]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
55745e5e8140da8be2e91c829148aa69cf1c4f20
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 QWT_LIB
778 QWT
779 WXCONS_CPPFLAGS
780 WXCONS_LDFLAGS
781 WX_DIR
782 TRAY_MONITOR_CPPFLAGS
783 TRAY_MONITOR_LDFLAGS
784 TRAY_MONITOR_DIR
785 TTOOL_LDFLAGS
786 STATIC_FD
787 STATIC_SD
788 STATIC_DIR
789 STATIC_CONS
790 STATIC_GNOME_CONS
791 STATIC_WX_CONS
792 ALL_DIRS
793 DIRD_DIR
794 DIR_TOOLS
795 STORED_DIR
796 CONS_INC
797 CONS_OBJ
798 CONS_SRC
799 CONS_LIBS
800 CONS_LDFLAGS
801 READLINE_SRC
802 PYTHON_LIBS
803 PYTHON_INCDIR
804 OPENSSL_LIBS
805 OPENSSL_INC
806 working_dir
807 archivedir
808 scriptdir
809 dump_email
810 job_email
811 smtp_host
812 piddir
813 subsysdir
814 baseport
815 dir_port
816 fd_port
817 sd_port
818 dir_password
819 fd_password
820 sd_password
821 mon_dir_password
822 mon_fd_password
823 mon_sd_password
824 db_name
825 db_user
826 dir_user
827 dir_group
828 sd_user
829 sd_group
830 fd_user
831 fd_group
832 SBINPERM
833 SQL_LFLAGS
834 SQL_INCLUDE
835 SQL_BINDIR
836 DBI_DBD_DRIVERDIR
837 DB_PROG
838 DB_PROG_LIB
839 cats
840 DB_TYPE
841 GETCONF
842 XMKMF
843 X_CFLAGS
844 X_PRE_LIBS
845 X_LIBS
846 X_EXTRA_LIBS
847 LIBOBJS
848 FDLIBS
849 DEBUG
850 DINCLUDE
851 DLIB
852 DB_LIBS
853 WCFLAGS
854 WLDFLAGS
855 WRAPLIBS
856 OBJLIST
857 hostname
858 TAPEDRIVE
859 PSCMD
860 WIN32
861 MACOSX
862 DISTNAME
863 DISTVER
864 LTLIBOBJS'
865 ac_subst_files='MCOMMON'
866       ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CXX
875 CXXFLAGS
876 CCC
877 CPP
878 WXCONFIG
879 WXFLAGS
880 XMKMF'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933   # If the previous option needs an argument, assign it.
934   if test -n "$ac_prev"; then
935     eval $ac_prev=\$ac_option
936     ac_prev=
937     continue
938   fi
939
940   case $ac_option in
941   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942   *)    ac_optarg=yes ;;
943   esac
944
945   # Accept the important Cygnus configure options, so we can diagnose typos.
946
947   case $ac_dashdash$ac_option in
948   --)
949     ac_dashdash=yes ;;
950
951   -bindir | --bindir | --bindi | --bind | --bin | --bi)
952     ac_prev=bindir ;;
953   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954     bindir=$ac_optarg ;;
955
956   -build | --build | --buil | --bui | --bu)
957     ac_prev=build_alias ;;
958   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959     build_alias=$ac_optarg ;;
960
961   -cache-file | --cache-file | --cache-fil | --cache-fi \
962   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963     ac_prev=cache_file ;;
964   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966     cache_file=$ac_optarg ;;
967
968   --config-cache | -C)
969     cache_file=config.cache ;;
970
971   -datadir | --datadir | --datadi | --datad)
972     ac_prev=datadir ;;
973   -datadir=* | --datadir=* | --datadi=* | --datad=*)
974     datadir=$ac_optarg ;;
975
976   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977   | --dataroo | --dataro | --datar)
978     ac_prev=datarootdir ;;
979   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981     datarootdir=$ac_optarg ;;
982
983   -disable-* | --disable-*)
984     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985     # Reject names that are not valid shell variable names.
986     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988    { (exit 1); exit 1; }; }
989     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990     eval enable_$ac_feature=no ;;
991
992   -docdir | --docdir | --docdi | --doc | --do)
993     ac_prev=docdir ;;
994   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995     docdir=$ac_optarg ;;
996
997   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998     ac_prev=dvidir ;;
999   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000     dvidir=$ac_optarg ;;
1001
1002   -enable-* | --enable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid package name: $ac_package" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206     eval with_$ac_package=\$ac_optarg ;;
1207
1208   -without-* | --without-*)
1209     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215     eval with_$ac_package=no ;;
1216
1217   --x)
1218     # Obsolete; use --with-x.
1219     with_x=yes ;;
1220
1221   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222   | --x-incl | --x-inc | --x-in | --x-i)
1223     ac_prev=x_includes ;;
1224   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226     x_includes=$ac_optarg ;;
1227
1228   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230     ac_prev=x_libraries ;;
1231   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233     x_libraries=$ac_optarg ;;
1234
1235   -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237    { (exit 1); exit 1; }; }
1238     ;;
1239
1240   *=*)
1241     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245    { (exit 1); exit 1; }; }
1246     eval $ac_envvar=\$ac_optarg
1247     export $ac_envvar ;;
1248
1249   *)
1250     # FIXME: should be removed in autoconf 3.0.
1251     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255     ;;
1256
1257   esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262   { echo "$as_me: error: missing argument to $ac_option" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265
1266 # Be sure to have absolute directory names.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278    { (exit 1); exit 1; }; }
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290   if test "x$build_alias" = x; then
1291     cross_compiling=maybe
1292     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293     If a cross compiler is detected then cross compile mode will be used." >&2
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   { echo "$as_me: error: Working directory cannot be determined" >&2
1309    { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   { echo "$as_me: error: pwd does not report name of working directory" >&2
1312    { (exit 1); exit 1; }; }
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317   ac_srcdir_defaulted=yes
1318   # Try the directory containing this script, then the parent directory.
1319   ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321          X"$0" : 'X\(//\)[^/]' \| \
1322          X"$0" : 'X\(//\)$' \| \
1323          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324 echo X"$0" |
1325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)[^/].*/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\).*/{
1338             s//\1/
1339             q
1340           }
1341           s/.*/./; q'`
1342   srcdir=$ac_confdir
1343   if test ! -r "$srcdir/$ac_unique_file"; then
1344     srcdir=..
1345   fi
1346 else
1347   ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357    { (exit 1); exit 1; }; }
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR           user executables [EPREFIX/bin]
1418   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR       program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR           object code libraries [EPREFIX/lib]
1424   --includedir=DIR       C header files [PREFIX/include]
1425   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR          info documentation [DATAROOTDIR/info]
1429   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR           man documentation [DATAROOTDIR/man]
1431   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1432   --htmldir=DIR          html documentation [DOCDIR]
1433   --dvidir=DIR           dvi documentation [DOCDIR]
1434   --pdfdir=DIR           pdf documentation [DOCDIR]
1435   --psdir=DIR            ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 X features:
1441   --x-includes=DIR    X include files are in DIR
1442   --x-libraries=DIR   X library files are in DIR
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --disable-nls           do not use Native Language Support
1458   --disable-rpath         do not hardcode runtime library paths
1459   --enable-gnome          enable build of bgnome-console GUI disabled
1460   --enable-bat  enable build of bat Qt4 GUI disabled
1461   --enable-bwx-console     enable build of wxWidgets console disabled
1462   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1463   --enable-smartalloc     enable smartalloc debugging support disabled
1464   --enable-faketape          enable faketape debugging support disabled
1465   --enable-static-tools   enable static tape tools disabled
1466   --enable-static-fd      enable static File daemon disabled
1467   --enable-static-sd      enable static Storage daemon disabled
1468   --enable-static-dir     enable static Director disabled
1469   --enable-static-cons    enable static Console disabled
1470   --enable-client-only    build client (File daemon) only disabled
1471   --enable-build-dird     enable building of dird (Director) enabled
1472   --enable-build-stored   enable building of stored (Storage daemon) enabled
1473  --disable-conio disable conio support enabled
1474
1475   --enable-ipv6             enable ipv6 support enabled
1476
1477   --disable-readline      disable readline support disable
1478
1479         --enable-batch-insert       enable the DB batch insert code disabled
1480  --enable-batch-insert      enable the DB batch insert code disabled
1481   --disable-largefile     omit support for large files
1482
1483 Optional Packages:
1484   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1487   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1488   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1489   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1490   --without-libintl-prefix     don't search for libintl in includedir and libdir
1491   --with-included-gettext use the GNU gettext library included here
1492  --with-qwt[=DIR]                 specify qwt library directory
1493  --with-readline[=DIR]         specify readline library directory
1494
1495   --with-python[=DIR]   Include Python support.  DIR is the Python base
1496                           install directory, default is to search through
1497                           a number of common places for the Python files.
1498   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1499   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1500   --with-working-dir=PATH        specify path of Bacula working directory
1501   --with-archivedir=PATH        specify path of SD archive directory
1502   --with-scriptdir=PATH    specify path of Bacula scripts directory
1503   --with-dump-email=EMAIL        dump email address
1504   --with-job-email=EMAIL         job output email address
1505   --with-smtp-host=HOST          SMTP mail host address
1506   --with-pid-dir=PATH            specify location of Bacula pid files
1507   --with-subsys-dir=PATH         specify location of Bacula subsys file
1508   --with-baseport=PORT           specify base port address for daemons
1509   --with-dir-password=PASSWORD   specify Director's password
1510   --with-fd-password=PASSWORD    specify Client's password
1511   --with-sd-password=PASSWORD    specify Storage daemon's password
1512   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1513   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1514   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1515   --with-db-name=DBNAME        specify database name (default bacula)
1516   --with-db-user=UNAME         specify database user (default bacula)
1517   --with-dir-user=USER           specify user for Director daemon
1518   --with-dir-group=GROUP                 specify group for Director daemon
1519   --with-sd-user=USER            specify user for Storage daemon
1520   --with-sd-group=GROUP          specify group for Storage daemon
1521   --with-fd-user=USER            specify user for File daemon
1522   --with-fd-group=GROUP          specify group for File daemon
1523   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1524   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1525                           base install directory, defaults to /usr/local/pgsql
1526
1527   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1528                           install directory, default is to search through
1529                           a number of common places for the MySQL files.
1530
1531   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1532                           install directory, default is to search through
1533                           a number of common places for the MySQL files.
1534
1535   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1536                           install directory, default is to search through
1537                           a number of common places for the SQLite3 files.
1538
1539   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1540                           install directory, default is to search through
1541                           a number of common places for the SQLite files.
1542
1543   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1544                           install directory, default is to search through
1545                           a number of common places for the DBI files.
1546
1547   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1548                           the one DBI driver like Mysql, Postgresql, others.
1549                           Default is to not configure any driver.
1550   --with-x                use the X Window System
1551
1552 Some influential environment variables:
1553   CC          C compiler command
1554   CFLAGS      C compiler flags
1555   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556               nonstandard directory <lib dir>
1557   LIBS        libraries to pass to the linker, e.g. -l<library>
1558   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559               you have headers in a nonstandard directory <include dir>
1560   CXX         C++ compiler command
1561   CXXFLAGS    C++ compiler flags
1562   CPP         C preprocessor
1563   WXCONFIG    wx-config command. On some systems, you must set it to
1564               wx-config-2.6 to use wxWidgets 2.6.
1565   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1566   XMKMF       Path to xmkmf, Makefile generator for X Window System
1567
1568 Use these variables to override the choices made by `configure' or to help
1569 it to find libraries and programs with nonstandard names/locations.
1570
1571 _ACEOF
1572 ac_status=$?
1573 fi
1574
1575 if test "$ac_init_help" = "recursive"; then
1576   # If there are subdirs, report their specific --help.
1577   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578     test -d "$ac_dir" || continue
1579     ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585   # A ".." for each directory in $ac_dir_suffix.
1586   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587   case $ac_top_builddir_sub in
1588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590   esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598   .)  # We are building in place.
1599     ac_srcdir=.
1600     ac_top_srcdir=$ac_top_builddir_sub
1601     ac_abs_top_srcdir=$ac_pwd ;;
1602   [\\/]* | ?:[\\/]* )  # Absolute name.
1603     ac_srcdir=$srcdir$ac_dir_suffix;
1604     ac_top_srcdir=$srcdir
1605     ac_abs_top_srcdir=$srcdir ;;
1606   *) # Relative name.
1607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608     ac_top_srcdir=$ac_top_build_prefix$srcdir
1609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613     cd "$ac_dir" || { ac_status=$?; continue; }
1614     # Check for guested configure.
1615     if test -f "$ac_srcdir/configure.gnu"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618     elif test -f "$ac_srcdir/configure"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure" --help=recursive
1621     else
1622       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623     fi || ac_status=$?
1624     cd "$ac_pwd" || { ac_status=$?; break; }
1625   done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630   cat <<\_ACEOF
1631 configure
1632 generated by GNU Autoconf 2.61
1633
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639   exit
1640 fi
1641 cat >config.log <<_ACEOF
1642 This file contains any messages produced by compilers while
1643 running configure, to aid debugging if configure makes a mistake.
1644
1645 It was created by $as_me, which was
1646 generated by GNU Autoconf 2.61.  Invocation command line was
1647
1648   $ $0 $@
1649
1650 _ACEOF
1651 exec 5>>config.log
1652 {
1653 cat <<_ASUNAME
1654 ## --------- ##
1655 ## Platform. ##
1656 ## --------- ##
1657
1658 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663
1664 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1666
1667 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1668 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1669 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1671 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1672 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1673 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1674
1675 _ASUNAME
1676
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   echo "PATH: $as_dir"
1683 done
1684 IFS=$as_save_IFS
1685
1686 } >&5
1687
1688 cat >&5 <<_ACEOF
1689
1690
1691 ## ----------- ##
1692 ## Core tests. ##
1693 ## ----------- ##
1694
1695 _ACEOF
1696
1697
1698 # Keep a trace of the command line.
1699 # Strip out --no-create and --no-recursion so they do not pile up.
1700 # Strip out --silent because we don't want to record it for future runs.
1701 # Also quote any args containing shell meta-characters.
1702 # Make two passes to allow for proper duplicate-argument suppression.
1703 ac_configure_args=
1704 ac_configure_args0=
1705 ac_configure_args1=
1706 ac_must_keep_next=false
1707 for ac_pass in 1 2
1708 do
1709   for ac_arg
1710   do
1711     case $ac_arg in
1712     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714     | -silent | --silent | --silen | --sile | --sil)
1715       continue ;;
1716     *\'*)
1717       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718     esac
1719     case $ac_pass in
1720     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721     2)
1722       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723       if test $ac_must_keep_next = true; then
1724         ac_must_keep_next=false # Got value, back to normal.
1725       else
1726         case $ac_arg in
1727           *=* | --config-cache | -C | -disable-* | --disable-* \
1728           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730           | -with-* | --with-* | -without-* | --without-* | --x)
1731             case "$ac_configure_args0 " in
1732               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733             esac
1734             ;;
1735           -* ) ac_must_keep_next=true ;;
1736         esac
1737       fi
1738       ac_configure_args="$ac_configure_args '$ac_arg'"
1739       ;;
1740     esac
1741   done
1742 done
1743 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745
1746 # When interrupted or exit'd, cleanup temporary files, and complete
1747 # config.log.  We remove comments because anyway the quotes in there
1748 # would cause problems or look ugly.
1749 # WARNING: Use '\'' to represent an apostrophe within the trap.
1750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751 trap 'exit_status=$?
1752   # Save into config.log some information that might help in debugging.
1753   {
1754     echo
1755
1756     cat <<\_ASBOX
1757 ## ---------------- ##
1758 ## Cache variables. ##
1759 ## ---------------- ##
1760 _ASBOX
1761     echo
1762     # The following way of writing the cache mishandles newlines in values,
1763 (
1764   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765     eval ac_val=\$$ac_var
1766     case $ac_val in #(
1767     *${as_nl}*)
1768       case $ac_var in #(
1769       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1771       esac
1772       case $ac_var in #(
1773       _ | IFS | as_nl) ;; #(
1774       *) $as_unset $ac_var ;;
1775       esac ;;
1776     esac
1777   done
1778   (set) 2>&1 |
1779     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780     *${as_nl}ac_space=\ *)
1781       sed -n \
1782         "s/'\''/'\''\\\\'\'''\''/g;
1783           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784       ;; #(
1785     *)
1786       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787       ;;
1788     esac |
1789     sort
1790 )
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1797 _ASBOX
1798     echo
1799     for ac_var in $ac_subst_vars
1800     do
1801       eval ac_val=\$$ac_var
1802       case $ac_val in
1803       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804       esac
1805       echo "$ac_var='\''$ac_val'\''"
1806     done | sort
1807     echo
1808
1809     if test -n "$ac_subst_files"; then
1810       cat <<\_ASBOX
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1814 _ASBOX
1815       echo
1816       for ac_var in $ac_subst_files
1817       do
1818         eval ac_val=\$$ac_var
1819         case $ac_val in
1820         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821         esac
1822         echo "$ac_var='\''$ac_val'\''"
1823       done | sort
1824       echo
1825     fi
1826
1827     if test -s confdefs.h; then
1828       cat <<\_ASBOX
1829 ## ----------- ##
1830 ## confdefs.h. ##
1831 ## ----------- ##
1832 _ASBOX
1833       echo
1834       cat confdefs.h
1835       echo
1836     fi
1837     test "$ac_signal" != 0 &&
1838       echo "$as_me: caught signal $ac_signal"
1839     echo "$as_me: exit $exit_status"
1840   } >&5
1841   rm -f core *.core core.conftest.* &&
1842     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843     exit $exit_status
1844 ' 0
1845 for ac_signal in 1 2 13 15; do
1846   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 done
1848 ac_signal=0
1849
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1852
1853 # Predefined preprocessor variables.
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 _ACEOF
1878
1879
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883   set x "$CONFIG_SITE"
1884 elif test "x$prefix" != xNONE; then
1885   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1886 else
1887   set x "$ac_default_prefix/share/config.site" \
1888         "$ac_default_prefix/etc/config.site"
1889 fi
1890 shift
1891 for ac_site_file
1892 do
1893   if test -r "$ac_site_file"; then
1894     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1941 echo "$as_me:   former value:  $ac_old_val" >&2;}
1942         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1943 echo "$as_me:   current value: $ac_new_val" >&2;}
1944         ac_cache_corrupted=:
1945       fi;;
1946   esac
1947   # Pass precious variables to config.status.
1948   if test "$ac_new_set" = set; then
1949     case $ac_new_val in
1950     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951     *) ac_arg=$ac_var=$ac_new_val ;;
1952     esac
1953     case " $ac_configure_args " in
1954       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1955       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956     esac
1957   fi
1958 done
1959 if $ac_cache_corrupted; then
1960   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964    { (exit 1); exit 1; }; }
1965 fi
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983 ac_ext=c
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988
1989
1990 BUILD_DIR=`pwd`
1991 cd ..
1992 TOP_DIR=`pwd`
1993 cd ${BUILD_DIR}
1994
1995
1996 ac_aux_dir=
1997 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1998   if test -f "$ac_dir/install-sh"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/install-sh -c"
2001     break
2002   elif test -f "$ac_dir/install.sh"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/install.sh -c"
2005     break
2006   elif test -f "$ac_dir/shtool"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/shtool install -c"
2009     break
2010   fi
2011 done
2012 if test -z "$ac_aux_dir"; then
2013   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2014 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2025
2026
2027 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2028
2029
2030
2031
2032
2033 for ac_prog in true
2034 do
2035   # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   case $TRUEPRG in
2043   [\\/]* | ?:[\\/]*)
2044   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2045   ;;
2046   *)
2047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2054     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060 IFS=$as_save_IFS
2061
2062   ;;
2063 esac
2064 fi
2065 TRUEPRG=$ac_cv_path_TRUEPRG
2066 if test -n "$TRUEPRG"; then
2067   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2068 echo "${ECHO_T}$TRUEPRG" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074
2075   test -n "$TRUEPRG" && break
2076 done
2077 test -n "$TRUEPRG" || TRUEPRG=":"
2078
2079 for ac_prog in false
2080 do
2081   # Extract the first word of "$ac_prog", so it can be a program name with args.
2082 set dummy $ac_prog; ac_word=$2
2083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2086   echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088   case $FALSEPRG in
2089   [\\/]* | ?:[\\/]*)
2090   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2091   ;;
2092   *)
2093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106 IFS=$as_save_IFS
2107
2108   ;;
2109 esac
2110 fi
2111 FALSEPRG=$ac_cv_path_FALSEPRG
2112 if test -n "$FALSEPRG"; then
2113   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2114 echo "${ECHO_T}$FALSEPRG" >&6; }
2115 else
2116   { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2118 fi
2119
2120
2121   test -n "$FALSEPRG" && break
2122 done
2123 test -n "$FALSEPRG" || FALSEPRG=":"
2124
2125
2126
2127 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2128 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2130 echo "configuring for bacula $VERSION ($DATE)"
2131
2132
2133
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$CC"; then
2148   ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2157     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163 IFS=$as_save_IFS
2164
2165 fi
2166 fi
2167 CC=$ac_cv_prog_CC
2168 if test -n "$CC"; then
2169   { echo "$as_me:$LINENO: result: $CC" >&5
2170 echo "${ECHO_T}$CC" >&6; }
2171 else
2172   { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2174 fi
2175
2176
2177 fi
2178 if test -z "$ac_cv_prog_CC"; then
2179   ac_ct_CC=$CC
2180   # Extract the first word of "gcc", so it can be a program name with args.
2181 set dummy gcc; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   if test -n "$ac_ct_CC"; then
2188   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2189 else
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195   for ac_exec_ext in '' $ac_executable_extensions; do
2196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197     ac_cv_prog_ac_ct_CC="gcc"
2198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199     break 2
2200   fi
2201 done
2202 done
2203 IFS=$as_save_IFS
2204
2205 fi
2206 fi
2207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2208 if test -n "$ac_ct_CC"; then
2209   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2210 echo "${ECHO_T}$ac_ct_CC" >&6; }
2211 else
2212   { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 fi
2215
2216   if test "x$ac_ct_CC" = x; then
2217     CC=""
2218   else
2219     case $cross_compiling:$ac_tool_warned in
2220 yes:)
2221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet.  If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet.  If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2228 esac
2229     CC=$ac_ct_CC
2230   fi
2231 else
2232   CC="$ac_cv_prog_CC"
2233 fi
2234
2235 if test -z "$CC"; then
2236           if test -n "$ac_tool_prefix"; then
2237     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}cc; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   if test -n "$CC"; then
2245   ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2249 do
2250   IFS=$as_save_IFS
2251   test -z "$as_dir" && as_dir=.
2252   for ac_exec_ext in '' $ac_executable_extensions; do
2253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254     ac_cv_prog_CC="${ac_tool_prefix}cc"
2255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256     break 2
2257   fi
2258 done
2259 done
2260 IFS=$as_save_IFS
2261
2262 fi
2263 fi
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266   { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2268 else
2269   { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2271 fi
2272
2273
2274   fi
2275 fi
2276 if test -z "$CC"; then
2277   # Extract the first word of "cc", so it can be a program name with args.
2278 set dummy cc; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_CC+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$CC"; then
2285   ac_cv_prog_CC="$CC" # Let the user override the test.
2286 else
2287   ac_prog_rejected=no
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296        ac_prog_rejected=yes
2297        continue
2298      fi
2299     ac_cv_prog_CC="cc"
2300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301     break 2
2302   fi
2303 done
2304 done
2305 IFS=$as_save_IFS
2306
2307 if test $ac_prog_rejected = yes; then
2308   # We found a bogon in the path, so make sure we never use it.
2309   set dummy $ac_cv_prog_CC
2310   shift
2311   if test $# != 0; then
2312     # We chose a different compiler from the bogus one.
2313     # However, it has the same basename, so the bogon will be chosen
2314     # first if we set CC to just the basename; use the full file name.
2315     shift
2316     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2317   fi
2318 fi
2319 fi
2320 fi
2321 CC=$ac_cv_prog_CC
2322 if test -n "$CC"; then
2323   { echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6; }
2325 else
2326   { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2328 fi
2329
2330
2331 fi
2332 if test -z "$CC"; then
2333   if test -n "$ac_tool_prefix"; then
2334   for ac_prog in cl.exe
2335   do
2336     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2340 if test "${ac_cv_prog_CC+set}" = set; then
2341   echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343   if test -n "$CC"; then
2344   ac_cv_prog_CC="$CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349   IFS=$as_save_IFS
2350   test -z "$as_dir" && as_dir=.
2351   for ac_exec_ext in '' $ac_executable_extensions; do
2352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2353     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355     break 2
2356   fi
2357 done
2358 done
2359 IFS=$as_save_IFS
2360
2361 fi
2362 fi
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365   { echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6; }
2367 else
2368   { echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6; }
2370 fi
2371
2372
2373     test -n "$CC" && break
2374   done
2375 fi
2376 if test -z "$CC"; then
2377   ac_ct_CC=$CC
2378   for ac_prog in cl.exe
2379 do
2380   # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   if test -n "$ac_ct_CC"; then
2388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395   for ac_exec_ext in '' $ac_executable_extensions; do
2396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397     ac_cv_prog_ac_ct_CC="$ac_prog"
2398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399     break 2
2400   fi
2401 done
2402 done
2403 IFS=$as_save_IFS
2404
2405 fi
2406 fi
2407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408 if test -n "$ac_ct_CC"; then
2409   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2410 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 else
2412   { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2414 fi
2415
2416
2417   test -n "$ac_ct_CC" && break
2418 done
2419
2420   if test "x$ac_ct_CC" = x; then
2421     CC=""
2422   else
2423     case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet.  If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet.  If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433     CC=$ac_ct_CC
2434   fi
2435 fi
2436
2437 fi
2438
2439
2440 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: no acceptable C compiler found in \$PATH
2443 See \`config.log' for more details." >&2;}
2444    { (exit 1); exit 1; }; }
2445
2446 # Provide some information about the compiler.
2447 echo "$as_me:$LINENO: checking for C compiler version" >&5
2448 ac_compiler=`set X $ac_compile; echo $2`
2449 { (ac_try="$ac_compiler --version >&5"
2450 case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455   (eval "$ac_compiler --version >&5") 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }
2459 { (ac_try="$ac_compiler -v >&5"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_compiler -v >&5") 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }
2469 { (ac_try="$ac_compiler -V >&5"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2475   (eval "$ac_compiler -V >&5") 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }
2479
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h.  */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h.  */
2486
2487 int
2488 main ()
2489 {
2490
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 ac_clean_files_save=$ac_clean_files
2496 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2497 # Try to create an executable without -o first, disregard a.out.
2498 # It will help us diagnose broken compilers, and finding out an intuition
2499 # of exeext.
2500 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2501 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2502 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2503 #
2504 # List of possible output files, starting from the most likely.
2505 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2506 # only as a last resort.  b.out is created by i960 compilers.
2507 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2508 #
2509 # The IRIX 6 linker writes into existing files which may not be
2510 # executable, retaining their permissions.  Remove them first so a
2511 # subsequent execution test works.
2512 ac_rmfiles=
2513 for ac_file in $ac_files
2514 do
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2517     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2518   esac
2519 done
2520 rm -f $ac_rmfiles
2521
2522 if { (ac_try="$ac_link_default"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528   (eval "$ac_link_default") 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }; then
2532   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2534 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2535 # so that the user can short-circuit this test for compilers unknown to
2536 # Autoconf.
2537 for ac_file in $ac_files ''
2538 do
2539   test -f "$ac_file" || continue
2540   case $ac_file in
2541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2542         ;;
2543     [ab].out )
2544         # We found the default executable, but exeext='' is most
2545         # certainly right.
2546         break;;
2547     *.* )
2548         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2549         then :; else
2550            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2551         fi
2552         # We set ac_cv_exeext here because the later test for it is not
2553         # safe: cross compilers may not add the suffix if given an `-o'
2554         # argument, so we may need to know it at that point already.
2555         # Even if this section looks crufty: it has the advantage of
2556         # actually working.
2557         break;;
2558     * )
2559         break;;
2560   esac
2561 done
2562 test "$ac_cv_exeext" = no && ac_cv_exeext=
2563
2564 else
2565   ac_file=''
2566 fi
2567
2568 { echo "$as_me:$LINENO: result: $ac_file" >&5
2569 echo "${ECHO_T}$ac_file" >&6; }
2570 if test -z "$ac_file"; then
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: C compiler cannot create executables
2577 See \`config.log' for more details." >&2;}
2578    { (exit 77); exit 77; }; }
2579 fi
2580
2581 ac_exeext=$ac_cv_exeext
2582
2583 # Check that the compiler produces executables we can run.  If not, either
2584 # the compiler is broken, or we cross compile.
2585 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2586 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2587 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2588 # If not cross compiling, check that we can run a simple program.
2589 if test "$cross_compiling" != yes; then
2590   if { ac_try='./$ac_file'
2591   { (case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596   (eval "$ac_try") 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600     cross_compiling=no
2601   else
2602     if test "$cross_compiling" = maybe; then
2603         cross_compiling=yes
2604     else
2605         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2606 If you meant to cross compile, use \`--host'.
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&2;}
2611    { (exit 1); exit 1; }; }
2612     fi
2613   fi
2614 fi
2615 { echo "$as_me:$LINENO: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6; }
2617
2618 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2619 ac_clean_files=$ac_clean_files_save
2620 # Check that the compiler produces executables we can run.  If not, either
2621 # the compiler is broken, or we cross compile.
2622 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2623 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2624 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2625 echo "${ECHO_T}$cross_compiling" >&6; }
2626
2627 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2628 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2629 if { (ac_try="$ac_link"
2630 case "(($ac_try" in
2631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632   *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635   (eval "$ac_link") 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; then
2639   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2640 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2641 # work properly (i.e., refer to `conftest.exe'), while it won't with
2642 # `rm'.
2643 for ac_file in conftest.exe conftest conftest.*; do
2644   test -f "$ac_file" || continue
2645   case $ac_file in
2646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2647     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648           break;;
2649     * ) break;;
2650   esac
2651 done
2652 else
2653   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658 fi
2659
2660 rm -f conftest$ac_cv_exeext
2661 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2663
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2669 if test "${ac_cv_objext+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678
2679 int
2680 main ()
2681 {
2682
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.o conftest.obj
2688 if { (ac_try="$ac_compile"
2689 case "(($ac_try" in
2690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691   *) ac_try_echo=$ac_try;;
2692 esac
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694   (eval "$ac_compile") 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; then
2698   for ac_file in conftest.o conftest.obj conftest.*; do
2699   test -f "$ac_file" || continue;
2700   case $ac_file in
2701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2702     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2703        break;;
2704   esac
2705 done
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details." >&2;}
2714    { (exit 1); exit 1; }; }
2715 fi
2716
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 fi
2719 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6; }
2721 OBJEXT=$ac_cv_objext
2722 ac_objext=$OBJEXT
2723 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734
2735 int
2736 main ()
2737 {
2738 #ifndef __GNUC__
2739        choke me
2740 #endif
2741
2742   ;
2743   return 0;
2744 }
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compile") 2>conftest.er1
2754   ac_status=$?
2755   grep -v '^ *+' conftest.er1 >conftest.err
2756   rm -f conftest.er1
2757   cat conftest.err >&5
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); } && {
2760          test -z "$ac_c_werror_flag" ||
2761          test ! -s conftest.err
2762        } && test -s conftest.$ac_objext; then
2763   ac_compiler_gnu=yes
2764 else
2765   echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2767
2768         ac_compiler_gnu=no
2769 fi
2770
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773
2774 fi
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783   echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785   ac_save_c_werror_flag=$ac_c_werror_flag
2786    ac_c_werror_flag=yes
2787    ac_cv_prog_cc_g=no
2788    CFLAGS="-g"
2789    cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795
2796 int
2797 main ()
2798 {
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_compile") 2>conftest.er1
2812   ac_status=$?
2813   grep -v '^ *+' conftest.er1 >conftest.err
2814   rm -f conftest.er1
2815   cat conftest.err >&5
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); } && {
2818          test -z "$ac_c_werror_flag" ||
2819          test ! -s conftest.err
2820        } && test -s conftest.$ac_objext; then
2821   ac_cv_prog_cc_g=yes
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826         CFLAGS=""
2827       cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833
2834 int
2835 main ()
2836 {
2837
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2844 case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_compile") 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } && {
2856          test -z "$ac_c_werror_flag" ||
2857          test ! -s conftest.err
2858        } && test -s conftest.$ac_objext; then
2859   :
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864         ac_c_werror_flag=$ac_save_c_werror_flag
2865          CFLAGS="-g"
2866          cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h.  */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h.  */
2872
2873 int
2874 main ()
2875 {
2876
2877   ;
2878   return 0;
2879 }
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (ac_try="$ac_compile"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compile") 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } && {
2895          test -z "$ac_c_werror_flag" ||
2896          test ! -s conftest.err
2897        } && test -s conftest.$ac_objext; then
2898   ac_cv_prog_cc_g=yes
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903
2904 fi
2905
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907 fi
2908
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913    ac_c_werror_flag=$ac_save_c_werror_flag
2914 fi
2915 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2916 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2917 if test "$ac_test_CFLAGS" = set; then
2918   CFLAGS=$ac_save_CFLAGS
2919 elif test $ac_cv_prog_cc_g = yes; then
2920   if test "$GCC" = yes; then
2921     CFLAGS="-g -O2"
2922   else
2923     CFLAGS="-g"
2924   fi
2925 else
2926   if test "$GCC" = yes; then
2927     CFLAGS="-O2"
2928   else
2929     CFLAGS=
2930   fi
2931 fi
2932 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2933 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2934 if test "${ac_cv_prog_cc_c89+set}" = set; then
2935   echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937   ac_cv_prog_cc_c89=no
2938 ac_save_CC=$CC
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #include <stdarg.h>
2946 #include <stdio.h>
2947 #include <sys/types.h>
2948 #include <sys/stat.h>
2949 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2950 struct buf { int x; };
2951 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2952 static char *e (p, i)
2953      char **p;
2954      int i;
2955 {
2956   return p[i];
2957 }
2958 static char *f (char * (*g) (char **, int), char **p, ...)
2959 {
2960   char *s;
2961   va_list v;
2962   va_start (v,p);
2963   s = g (p, va_arg (v,int));
2964   va_end (v);
2965   return s;
2966 }
2967
2968 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2969    function prototypes and stuff, but not '\xHH' hex character constants.
2970    These don't provoke an error unfortunately, instead are silently treated
2971    as 'x'.  The following induces an error, until -std is added to get
2972    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2973    array size at least.  It's necessary to write '\x00'==0 to get something
2974    that's true only with -std.  */
2975 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2976
2977 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2978    inside strings and character constants.  */
2979 #define FOO(x) 'x'
2980 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2981
2982 int test (int i, double x);
2983 struct s1 {int (*f) (int a);};
2984 struct s2 {int (*f) (double a);};
2985 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2986 int argc;
2987 char **argv;
2988 int
2989 main ()
2990 {
2991 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2997         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2998 do
2999   CC="$ac_save_CC $ac_arg"
3000   rm -f conftest.$ac_objext
3001 if { (ac_try="$ac_compile"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compile") 2>conftest.er1
3008   ac_status=$?
3009   grep -v '^ *+' conftest.er1 >conftest.err
3010   rm -f conftest.er1
3011   cat conftest.err >&5
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); } && {
3014          test -z "$ac_c_werror_flag" ||
3015          test ! -s conftest.err
3016        } && test -s conftest.$ac_objext; then
3017   ac_cv_prog_cc_c89=$ac_arg
3018 else
3019   echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022
3023 fi
3024
3025 rm -f core conftest.err conftest.$ac_objext
3026   test "x$ac_cv_prog_cc_c89" != "xno" && break
3027 done
3028 rm -f conftest.$ac_ext
3029 CC=$ac_save_CC
3030
3031 fi
3032 # AC_CACHE_VAL
3033 case "x$ac_cv_prog_cc_c89" in
3034   x)
3035     { echo "$as_me:$LINENO: result: none needed" >&5
3036 echo "${ECHO_T}none needed" >&6; } ;;
3037   xno)
3038     { echo "$as_me:$LINENO: result: unsupported" >&5
3039 echo "${ECHO_T}unsupported" >&6; } ;;
3040   *)
3041     CC="$CC $ac_cv_prog_cc_c89"
3042     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3043 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3044 esac
3045
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
3053 ac_ext=cpp
3054 ac_cpp='$CXXCPP $CPPFLAGS'
3055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3058 if test -z "$CXX"; then
3059   if test -n "$CCC"; then
3060     CXX=$CCC
3061   else
3062     if test -n "$ac_tool_prefix"; then
3063   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3064   do
3065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3069 if test "${ac_cv_prog_CXX+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   if test -n "$CXX"; then
3073   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   for ac_exec_ext in '' $ac_executable_extensions; do
3081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CXX=$ac_cv_prog_CXX
3093 if test -n "$CXX"; then
3094   { echo "$as_me:$LINENO: result: $CXX" >&5
3095 echo "${ECHO_T}$CXX" >&6; }
3096 else
3097   { echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6; }
3099 fi
3100
3101
3102     test -n "$CXX" && break
3103   done
3104 fi
3105 if test -z "$CXX"; then
3106   ac_ct_CXX=$CXX
3107   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3108 do
3109   # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3113 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   if test -n "$ac_ct_CXX"; then
3117   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   for ac_exec_ext in '' $ac_executable_extensions; do
3125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126     ac_cv_prog_ac_ct_CXX="$ac_prog"
3127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128     break 2
3129   fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3137 if test -n "$ac_ct_CXX"; then
3138   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3139 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3140 else
3141   { echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6; }
3143 fi
3144
3145
3146   test -n "$ac_ct_CXX" && break
3147 done
3148
3149   if test "x$ac_ct_CXX" = x; then
3150     CXX="g++"
3151   else
3152     case $cross_compiling:$ac_tool_warned in
3153 yes:)
3154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet.  If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&5
3157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3158 whose name does not start with the host triplet.  If you think this
3159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3160 ac_tool_warned=yes ;;
3161 esac
3162     CXX=$ac_ct_CXX
3163   fi
3164 fi
3165
3166   fi
3167 fi
3168 # Provide some information about the compiler.
3169 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3170 ac_compiler=`set X $ac_compile; echo $2`
3171 { (ac_try="$ac_compiler --version >&5"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compiler --version >&5") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }
3181 { (ac_try="$ac_compiler -v >&5"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compiler -v >&5") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }
3191 { (ac_try="$ac_compiler -V >&5"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compiler -V >&5") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }
3201
3202 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3203 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3204 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3205   echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207   cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h.  */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h.  */
3213
3214 int
3215 main ()
3216 {
3217 #ifndef __GNUC__
3218        choke me
3219 #endif
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229   *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232   (eval "$ac_compile") 2>conftest.er1
3233   ac_status=$?
3234   grep -v '^ *+' conftest.er1 >conftest.err
3235   rm -f conftest.er1
3236   cat conftest.err >&5
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); } && {
3239          test -z "$ac_cxx_werror_flag" ||
3240          test ! -s conftest.err
3241        } && test -s conftest.$ac_objext; then
3242   ac_compiler_gnu=yes
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247         ac_compiler_gnu=no
3248 fi
3249
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3252
3253 fi
3254 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3256 GXX=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CXXFLAGS=${CXXFLAGS+set}
3258 ac_save_CXXFLAGS=$CXXFLAGS
3259 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3260 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cxx_g+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3265    ac_cxx_werror_flag=yes
3266    ac_cv_prog_cxx_g=no
3267    CXXFLAGS="-g"
3268    cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h.  */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } && {
3297          test -z "$ac_cxx_werror_flag" ||
3298          test ! -s conftest.err
3299        } && test -s conftest.$ac_objext; then
3300   ac_cv_prog_cxx_g=yes
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305         CXXFLAGS=""
3306       cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h.  */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h.  */
3312
3313 int
3314 main ()
3315 {
3316
3317   ;
3318   return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_compile") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } && {
3335          test -z "$ac_cxx_werror_flag" ||
3336          test ! -s conftest.err
3337        } && test -s conftest.$ac_objext; then
3338   :
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3344          CXXFLAGS="-g"
3345          cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h.  */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h.  */
3351
3352 int
3353 main ()
3354 {
3355
3356   ;
3357   return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367   (eval "$ac_compile") 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } && {
3374          test -z "$ac_cxx_werror_flag" ||
3375          test ! -s conftest.err
3376        } && test -s conftest.$ac_objext; then
3377   ac_cv_prog_cxx_g=yes
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382
3383 fi
3384
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3393 fi
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3396 if test "$ac_test_CXXFLAGS" = set; then
3397   CXXFLAGS=$ac_save_CXXFLAGS
3398 elif test $ac_cv_prog_cxx_g = yes; then
3399   if test "$GXX" = yes; then
3400     CXXFLAGS="-g -O2"
3401   else
3402     CXXFLAGS="-g"
3403   fi
3404 else
3405   if test "$GXX" = yes; then
3406     CXXFLAGS="-O2"
3407   else
3408     CXXFLAGS=
3409   fi
3410 fi
3411 ac_ext=c
3412 ac_cpp='$CPP $CPPFLAGS'
3413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416
3417 if test "x$CC" != xcc; then
3418   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3419 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3420 else
3421   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3422 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3423 fi
3424 set dummy $CC; ac_cc=`echo $2 |
3425                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3426 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435
3436 int
3437 main ()
3438 {
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 # Make sure it works both with $CC and with simple cc.
3445 # We do the test twice because some compilers refuse to overwrite an
3446 # existing .o file with -o, though they will create one.
3447 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3448 rm -f conftest2.*
3449 if { (case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_try") 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } &&
3458    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463   (eval "$ac_try") 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); };
3467 then
3468   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3469   if test "x$CC" != xcc; then
3470     # Test first that cc exists at all.
3471     if { ac_try='cc -c conftest.$ac_ext >&5'
3472   { (case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_try") 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; }; then
3481       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3482       rm -f conftest2.*
3483       if { (case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_try") 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } &&
3492          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497   (eval "$ac_try") 2>&5
3498   ac_status=$?
3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500   (exit $ac_status); };
3501       then
3502         # cc works too.
3503         :
3504       else
3505         # cc exists but doesn't like -o.
3506         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3507       fi
3508     fi
3509   fi
3510 else
3511   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3512 fi
3513 rm -f core conftest*
3514
3515 fi
3516 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3517   { echo "$as_me:$LINENO: result: yes" >&5
3518 echo "${ECHO_T}yes" >&6; }
3519 else
3520   { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3522
3523 cat >>confdefs.h <<\_ACEOF
3524 #define NO_MINUS_C_MINUS_O 1
3525 _ACEOF
3526
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3535 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3536 # On Suns, sometimes $CPP names a directory.
3537 if test -n "$CPP" && test -d "$CPP"; then
3538   CPP=
3539 fi
3540 if test -z "$CPP"; then
3541   if test "${ac_cv_prog_CPP+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544       # Double quotes because CPP needs to be expanded
3545     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3546     do
3547       ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3549 do
3550   # Use a header file that comes with gcc, so configuring glibc
3551   # with a fresh cross-compiler works.
3552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553   # <limits.h> exists even on freestanding compilers.
3554   # On the NeXT, cc -E runs the code through the compiler's parser,
3555   # not just through cpp. "Syntax error" is here to catch this case.
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #ifdef __STDC__
3563 # include <limits.h>
3564 #else
3565 # include <assert.h>
3566 #endif
3567                      Syntax error
3568 _ACEOF
3569 if { (ac_try="$ac_cpp conftest.$ac_ext"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3576   ac_status=$?
3577   grep -v '^ *+' conftest.er1 >conftest.err
3578   rm -f conftest.er1
3579   cat conftest.err >&5
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } >/dev/null && {
3582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583          test ! -s conftest.err
3584        }; then
3585   :
3586 else
3587   echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590   # Broken: fails on valid input.
3591 continue
3592 fi
3593
3594 rm -f conftest.err conftest.$ac_ext
3595
3596   # OK, works on sane cases.  Now check whether nonexistent headers
3597   # can be detected and how.
3598   cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604 #include <ac_nonexistent.h>
3605 _ACEOF
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } >/dev/null && {
3619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620          test ! -s conftest.err
3621        }; then
3622   # Broken: success on invalid input.
3623 continue
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628   # Passes both tests.
3629 ac_preproc_ok=:
3630 break
3631 fi
3632
3633 rm -f conftest.err conftest.$ac_ext
3634
3635 done
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3639   break
3640 fi
3641
3642     done
3643     ac_cv_prog_CPP=$CPP
3644
3645 fi
3646   CPP=$ac_cv_prog_CPP
3647 else
3648   ac_cv_prog_CPP=$CPP
3649 fi
3650 { echo "$as_me:$LINENO: result: $CPP" >&5
3651 echo "${ECHO_T}$CPP" >&6; }
3652 ac_preproc_ok=false
3653 for ac_c_preproc_warn_flag in '' yes
3654 do
3655   # Use a header file that comes with gcc, so configuring glibc
3656   # with a fresh cross-compiler works.
3657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658   # <limits.h> exists even on freestanding compilers.
3659   # On the NeXT, cc -E runs the code through the compiler's parser,
3660   # not just through cpp. "Syntax error" is here to catch this case.
3661   cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #ifdef __STDC__
3668 # include <limits.h>
3669 #else
3670 # include <assert.h>
3671 #endif
3672                      Syntax error
3673 _ACEOF
3674 if { (ac_try="$ac_cpp conftest.$ac_ext"
3675 case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3681   ac_status=$?
3682   grep -v '^ *+' conftest.er1 >conftest.err
3683   rm -f conftest.er1
3684   cat conftest.err >&5
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } >/dev/null && {
3687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3688          test ! -s conftest.err
3689        }; then
3690   :
3691 else
3692   echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695   # Broken: fails on valid input.
3696 continue
3697 fi
3698
3699 rm -f conftest.err conftest.$ac_ext
3700
3701   # OK, works on sane cases.  Now check whether nonexistent headers
3702   # can be detected and how.
3703   cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h.  */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h.  */
3709 #include <ac_nonexistent.h>
3710 _ACEOF
3711 if { (ac_try="$ac_cpp conftest.$ac_ext"
3712 case "(($ac_try" in
3713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714   *) ac_try_echo=$ac_try;;
3715 esac
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3718   ac_status=$?
3719   grep -v '^ *+' conftest.er1 >conftest.err
3720   rm -f conftest.er1
3721   cat conftest.err >&5
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } >/dev/null && {
3724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3725          test ! -s conftest.err
3726        }; then
3727   # Broken: success on invalid input.
3728 continue
3729 else
3730   echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733   # Passes both tests.
3734 ac_preproc_ok=:
3735 break
3736 fi
3737
3738 rm -f conftest.err conftest.$ac_ext
3739
3740 done
3741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3742 rm -f conftest.err conftest.$ac_ext
3743 if $ac_preproc_ok; then
3744   :
3745 else
3746   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3747 See \`config.log' for more details." >&5
3748 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3749 See \`config.log' for more details." >&2;}
3750    { (exit 1); exit 1; }; }
3751 fi
3752
3753 ac_ext=c
3754 ac_cpp='$CPP $CPPFLAGS'
3755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758
3759
3760 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3761 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3762 if test "${ac_cv_path_GREP+set}" = set; then
3763   echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765   # Extract the first word of "grep ggrep" to use in msg output
3766 if test -z "$GREP"; then
3767 set dummy grep ggrep; ac_prog_name=$2
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   ac_path_GREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_prog in grep ggrep; do
3779   for ac_exec_ext in '' $ac_executable_extensions; do
3780     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3781     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3782     # Check for GNU ac_path_GREP and select it if it is found.
3783   # Check for GNU $ac_path_GREP
3784 case `"$ac_path_GREP" --version 2>&1` in
3785 *GNU*)
3786   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3787 *)
3788   ac_count=0
3789   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3790   while :
3791   do
3792     cat "conftest.in" "conftest.in" >"conftest.tmp"
3793     mv "conftest.tmp" "conftest.in"
3794     cp "conftest.in" "conftest.nl"
3795     echo 'GREP' >> "conftest.nl"
3796     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798     ac_count=`expr $ac_count + 1`
3799     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3800       # Best one so far, save it but keep looking for a better one
3801       ac_cv_path_GREP="$ac_path_GREP"
3802       ac_path_GREP_max=$ac_count
3803     fi
3804     # 10*(2^10) chars as input seems more than enough
3805     test $ac_count -gt 10 && break
3806   done
3807   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3808 esac
3809
3810
3811     $ac_path_GREP_found && break 3
3812   done
3813 done
3814
3815 done
3816 IFS=$as_save_IFS
3817
3818
3819 fi
3820
3821 GREP="$ac_cv_path_GREP"
3822 if test -z "$GREP"; then
3823   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3824 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3825    { (exit 1); exit 1; }; }
3826 fi
3827
3828 else
3829   ac_cv_path_GREP=$GREP
3830 fi
3831
3832
3833 fi
3834 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3835 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3836  GREP="$ac_cv_path_GREP"
3837
3838
3839 { echo "$as_me:$LINENO: checking for egrep" >&5
3840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3841 if test "${ac_cv_path_EGREP+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3845    then ac_cv_path_EGREP="$GREP -E"
3846    else
3847      # Extract the first word of "egrep" to use in msg output
3848 if test -z "$EGREP"; then
3849 set dummy egrep; ac_prog_name=$2
3850 if test "${ac_cv_path_EGREP+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   ac_path_EGREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_prog in egrep; do
3861   for ac_exec_ext in '' $ac_executable_extensions; do
3862     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3863     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3864     # Check for GNU ac_path_EGREP and select it if it is found.
3865   # Check for GNU $ac_path_EGREP
3866 case `"$ac_path_EGREP" --version 2>&1` in
3867 *GNU*)
3868   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3869 *)
3870   ac_count=0
3871   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3872   while :
3873   do
3874     cat "conftest.in" "conftest.in" >"conftest.tmp"
3875     mv "conftest.tmp" "conftest.in"
3876     cp "conftest.in" "conftest.nl"
3877     echo 'EGREP' >> "conftest.nl"
3878     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3879     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3880     ac_count=`expr $ac_count + 1`
3881     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3882       # Best one so far, save it but keep looking for a better one
3883       ac_cv_path_EGREP="$ac_path_EGREP"
3884       ac_path_EGREP_max=$ac_count
3885     fi
3886     # 10*(2^10) chars as input seems more than enough
3887     test $ac_count -gt 10 && break
3888   done
3889   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3890 esac
3891
3892
3893     $ac_path_EGREP_found && break 3
3894   done
3895 done
3896
3897 done
3898 IFS=$as_save_IFS
3899
3900
3901 fi
3902
3903 EGREP="$ac_cv_path_EGREP"
3904 if test -z "$EGREP"; then
3905   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3906 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3907    { (exit 1); exit 1; }; }
3908 fi
3909
3910 else
3911   ac_cv_path_EGREP=$EGREP
3912 fi
3913
3914
3915    fi
3916 fi
3917 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3918 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3919  EGREP="$ac_cv_path_EGREP"
3920
3921
3922 if test $ac_cv_c_compiler_gnu = yes; then
3923     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3924 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3925 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928     ac_pattern="Autoconf.*'x'"
3929   cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h.  */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h.  */
3935 #include <sgtty.h>
3936 Autoconf TIOCGETP
3937 _ACEOF
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3940   ac_cv_prog_gcc_traditional=yes
3941 else
3942   ac_cv_prog_gcc_traditional=no
3943 fi
3944 rm -f conftest*
3945
3946
3947   if test $ac_cv_prog_gcc_traditional = no; then
3948     cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954 #include <termio.h>
3955 Autoconf TCGETA
3956 _ACEOF
3957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3958   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3959   ac_cv_prog_gcc_traditional=yes
3960 fi
3961 rm -f conftest*
3962
3963   fi
3964 fi
3965 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3966 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3967   if test $ac_cv_prog_gcc_traditional = yes; then
3968     CC="$CC -traditional"
3969   fi
3970 fi
3971
3972 BASECC=`basename $CC`
3973 have_gcc=no
3974 if test "x$BASECC" = xgcc; then
3975    cat >>confdefs.h <<\_ACEOF
3976 #define HAVE_GCC 1
3977 _ACEOF
3978
3979    have_gcc=yes
3980 fi
3981 # Extract the first word of "$CXX", so it can be a program name with args.
3982 set dummy $CXX; ac_word=$2
3983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985 if test "${ac_cv_path_CXX+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   case $CXX in
3989   [\\/]* | ?:[\\/]*)
3990   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3991   ;;
3992   *)
3993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998   for ac_exec_ext in '' $ac_executable_extensions; do
3999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002     break 2
4003   fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4009   ;;
4010 esac
4011 fi
4012 CXX=$ac_cv_path_CXX
4013 if test -n "$CXX"; then
4014   { echo "$as_me:$LINENO: result: $CXX" >&5
4015 echo "${ECHO_T}$CXX" >&6; }
4016 else
4017   { echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6; }
4019 fi
4020
4021
4022 if test ! -e $CXX; then
4023    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4024 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4025    { (exit 1); exit 1; }; }
4026 fi
4027
4028 # Find a good install program.  We prefer a C program (faster),
4029 # so one script is as good as another.  But avoid the broken or
4030 # incompatible versions:
4031 # SysV /etc/install, /usr/sbin/install
4032 # SunOS /usr/etc/install
4033 # IRIX /sbin/install
4034 # AIX /bin/install
4035 # AmigaOS /C/install, which installs bootblocks on floppy discs
4036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4039 # OS/2's system install, which has a completely different semantic
4040 # ./install, which can be erroneously created by make from ./install.sh.
4041 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4043 if test -z "$INSTALL"; then
4044 if test "${ac_cv_path_install+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   # Account for people who put trailing slashes in PATH elements.
4053 case $as_dir/ in
4054   ./ | .// | /cC/* | \
4055   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4056   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4057   /usr/ucb/* ) ;;
4058   *)
4059     # OSF1 and SCO ODT 3.0 have their own names for install.
4060     # Don't use installbsd from OSF since it installs stuff as root
4061     # by default.
4062     for ac_prog in ginstall scoinst install; do
4063       for ac_exec_ext in '' $ac_executable_extensions; do
4064         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4065           if test $ac_prog = install &&
4066             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4067             # AIX install.  It has an incompatible calling convention.
4068             :
4069           elif test $ac_prog = install &&
4070             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4071             # program-specific install script used by HP pwplus--don't use.
4072             :
4073           else
4074             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4075             break 3
4076           fi
4077         fi
4078       done
4079     done
4080     ;;
4081 esac
4082 done
4083 IFS=$as_save_IFS
4084
4085
4086 fi
4087   if test "${ac_cv_path_install+set}" = set; then
4088     INSTALL=$ac_cv_path_install
4089   else
4090     # As a last resort, use the slow shell script.  Don't cache a
4091     # value for INSTALL within a source directory, because that will
4092     # break other packages using the cache if that directory is
4093     # removed, or if the value is a relative name.
4094     INSTALL=$ac_install_sh
4095   fi
4096 fi
4097 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4098 echo "${ECHO_T}$INSTALL" >&6; }
4099
4100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4101 # It thinks the first close brace ends the variable substitution.
4102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4103
4104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4105
4106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4107
4108 if test -n "$ac_tool_prefix"; then
4109   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4113 if test "${ac_cv_prog_RANLIB+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   if test -n "$RANLIB"; then
4117   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124   for ac_exec_ext in '' $ac_executable_extensions; do
4125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131 done
4132 IFS=$as_save_IFS
4133
4134 fi
4135 fi
4136 RANLIB=$ac_cv_prog_RANLIB
4137 if test -n "$RANLIB"; then
4138   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4139 echo "${ECHO_T}$RANLIB" >&6; }
4140 else
4141   { echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6; }
4143 fi
4144
4145
4146 fi
4147 if test -z "$ac_cv_prog_RANLIB"; then
4148   ac_ct_RANLIB=$RANLIB
4149   # Extract the first word of "ranlib", so it can be a program name with args.
4150 set dummy ranlib; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   if test -n "$ac_ct_RANLIB"; then
4157   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164   for ac_exec_ext in '' $ac_executable_extensions; do
4165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166     ac_cv_prog_ac_ct_RANLIB="ranlib"
4167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168     break 2
4169   fi
4170 done
4171 done
4172 IFS=$as_save_IFS
4173
4174 fi
4175 fi
4176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4177 if test -n "$ac_ct_RANLIB"; then
4178   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4179 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4180 else
4181   { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4183 fi
4184
4185   if test "x$ac_ct_RANLIB" = x; then
4186     RANLIB=":"
4187   else
4188     case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4191 whose name does not start with the host triplet.  If you think this
4192 configuration is useful to you, please write to autoconf@gnu.org." >&5
4193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4194 whose name does not start with the host triplet.  If you think this
4195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4196 ac_tool_warned=yes ;;
4197 esac
4198     RANLIB=$ac_ct_RANLIB
4199   fi
4200 else
4201   RANLIB="$ac_cv_prog_RANLIB"
4202 fi
4203
4204 # Extract the first word of "mv", so it can be a program name with args.
4205 set dummy mv; ac_word=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_path_MV+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   case $MV in
4212   [\\/]* | ?:[\\/]*)
4213   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4214   ;;
4215   *)
4216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221   for ac_exec_ext in '' $ac_executable_extensions; do
4222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225     break 2
4226   fi
4227 done
4228 done
4229 IFS=$as_save_IFS
4230
4231   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4232   ;;
4233 esac
4234 fi
4235 MV=$ac_cv_path_MV
4236 if test -n "$MV"; then
4237   { echo "$as_me:$LINENO: result: $MV" >&5
4238 echo "${ECHO_T}$MV" >&6; }
4239 else
4240   { echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6; }
4242 fi
4243
4244
4245 # Extract the first word of "rm", so it can be a program name with args.
4246 set dummy rm; ac_word=$2
4247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4249 if test "${ac_cv_path_RM+set}" = set; then
4250   echo $ECHO_N "(cached) $ECHO_C" >&6
4251 else
4252   case $RM in
4253   [\\/]* | ?:[\\/]*)
4254   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4255   ;;
4256   *)
4257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262   for ac_exec_ext in '' $ac_executable_extensions; do
4263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4273   ;;
4274 esac
4275 fi
4276 RM=$ac_cv_path_RM
4277 if test -n "$RM"; then
4278   { echo "$as_me:$LINENO: result: $RM" >&5
4279 echo "${ECHO_T}$RM" >&6; }
4280 else
4281   { echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6; }
4283 fi
4284
4285
4286 # Extract the first word of "cp", so it can be a program name with args.
4287 set dummy cp; ac_word=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_path_CP+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   case $CP in
4294   [\\/]* | ?:[\\/]*)
4295   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4296   ;;
4297   *)
4298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4314   ;;
4315 esac
4316 fi
4317 CP=$ac_cv_path_CP
4318 if test -n "$CP"; then
4319   { echo "$as_me:$LINENO: result: $CP" >&5
4320 echo "${ECHO_T}$CP" >&6; }
4321 else
4322   { echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6; }
4324 fi
4325
4326
4327 # Extract the first word of "sed", so it can be a program name with args.
4328 set dummy sed; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_path_SED+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   case $SED in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4355   ;;
4356 esac
4357 fi
4358 SED=$ac_cv_path_SED
4359 if test -n "$SED"; then
4360   { echo "$as_me:$LINENO: result: $SED" >&5
4361 echo "${ECHO_T}$SED" >&6; }
4362 else
4363   { echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6; }
4365 fi
4366
4367
4368 # Extract the first word of "echo", so it can be a program name with args.
4369 set dummy echo; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_ECHO+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   case $ECHO in
4376   [\\/]* | ?:[\\/]*)
4377   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4378   ;;
4379   *)
4380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4396   ;;
4397 esac
4398 fi
4399 ECHO=$ac_cv_path_ECHO
4400 if test -n "$ECHO"; then
4401   { echo "$as_me:$LINENO: result: $ECHO" >&5
4402 echo "${ECHO_T}$ECHO" >&6; }
4403 else
4404   { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4406 fi
4407
4408
4409 # Extract the first word of "cmp", so it can be a program name with args.
4410 set dummy cmp; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_path_CMP+set}" = set; then
4414   echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416   case $CMP in
4417   [\\/]* | ?:[\\/]*)
4418   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4419   ;;
4420   *)
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4437   ;;
4438 esac
4439 fi
4440 CMP=$ac_cv_path_CMP
4441 if test -n "$CMP"; then
4442   { echo "$as_me:$LINENO: result: $CMP" >&5
4443 echo "${ECHO_T}$CMP" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: no" >&5
4446 echo "${ECHO_T}no" >&6; }
4447 fi
4448
4449
4450 # Extract the first word of "tbl", so it can be a program name with args.
4451 set dummy tbl; ac_word=$2
4452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4454 if test "${ac_cv_path_TBL+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   case $TBL in
4458   [\\/]* | ?:[\\/]*)
4459   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4460   ;;
4461   *)
4462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4478   ;;
4479 esac
4480 fi
4481 TBL=$ac_cv_path_TBL
4482 if test -n "$TBL"; then
4483   { echo "$as_me:$LINENO: result: $TBL" >&5
4484 echo "${ECHO_T}$TBL" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }
4488 fi
4489
4490
4491 # Extract the first word of "ar", so it can be a program name with args.
4492 set dummy ar; ac_word=$2
4493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4495 if test "${ac_cv_path_AR+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   case $AR in
4499   [\\/]* | ?:[\\/]*)
4500   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4501   ;;
4502   *)
4503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4505 do
4506   IFS=$as_save_IFS
4507   test -z "$as_dir" && as_dir=.
4508   for ac_exec_ext in '' $ac_executable_extensions; do
4509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512     break 2
4513   fi
4514 done
4515 done
4516 IFS=$as_save_IFS
4517
4518   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4519   ;;
4520 esac
4521 fi
4522 AR=$ac_cv_path_AR
4523 if test -n "$AR"; then
4524   { echo "$as_me:$LINENO: result: $AR" >&5
4525 echo "${ECHO_T}$AR" >&6; }
4526 else
4527   { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4529 fi
4530
4531
4532 # Extract the first word of "openssl", so it can be a program name with args.
4533 set dummy openssl; ac_word=$2
4534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536 if test "${ac_cv_path_OPENSSL+set}" = set; then
4537   echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539   case $OPENSSL in
4540   [\\/]* | ?:[\\/]*)
4541   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4542   ;;
4543   *)
4544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549   for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556 done
4557 IFS=$as_save_IFS
4558
4559   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4560   ;;
4561 esac
4562 fi
4563 OPENSSL=$ac_cv_path_OPENSSL
4564 if test -n "$OPENSSL"; then
4565   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4566 echo "${ECHO_T}$OPENSSL" >&6; }
4567 else
4568   { echo "$as_me:$LINENO: result: no" >&5
4569 echo "${ECHO_T}no" >&6; }
4570 fi
4571
4572
4573 # Extract the first word of "mtx", so it can be a program name with args.
4574 set dummy mtx; ac_word=$2
4575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_MTX+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580   case $MTX in
4581   [\\/]* | ?:[\\/]*)
4582   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4583   ;;
4584   *)
4585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4601   ;;
4602 esac
4603 fi
4604 MTX=$ac_cv_path_MTX
4605 if test -n "$MTX"; then
4606   { echo "$as_me:$LINENO: result: $MTX" >&5
4607 echo "${ECHO_T}$MTX" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 fi
4612
4613
4614 # Extract the first word of "dd", so it can be a program name with args.
4615 set dummy dd; ac_word=$2
4616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618 if test "${ac_cv_path_DD+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   case $DD in
4622   [\\/]* | ?:[\\/]*)
4623   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4624   ;;
4625   *)
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4642   ;;
4643 esac
4644 fi
4645 DD=$ac_cv_path_DD
4646 if test -n "$DD"; then
4647   { echo "$as_me:$LINENO: result: $DD" >&5
4648 echo "${ECHO_T}$DD" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655 # Extract the first word of "mkisofs", so it can be a program name with args.
4656 set dummy mkisofs; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_path_MKISOFS+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   case $MKISOFS in
4663   [\\/]* | ?:[\\/]*)
4664   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4665   ;;
4666   *)
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4683   ;;
4684 esac
4685 fi
4686 MKISOFS=$ac_cv_path_MKISOFS
4687 if test -n "$MKISOFS"; then
4688   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4689 echo "${ECHO_T}$MKISOFS" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696 # Extract the first word of "python", so it can be a program name with args.
4697 set dummy python; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_PYTHON+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $PYTHON in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4724   ;;
4725 esac
4726 fi
4727 PYTHON=$ac_cv_path_PYTHON
4728 if test -n "$PYTHON"; then
4729   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4730 echo "${ECHO_T}$PYTHON" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737 # Extract the first word of "growisofs", so it can be a program name with args.
4738 set dummy growisofs; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4742   echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744   case $GROWISOFS in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754   for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4765   ;;
4766 esac
4767 fi
4768 GROWISOFS=$ac_cv_path_GROWISOFS
4769 if test -n "$GROWISOFS"; then
4770   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4771 echo "${ECHO_T}$GROWISOFS" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4779 set dummy dvd+rw-mediainfo; ac_word=$2
4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4782 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   case $DVDRWMEDIAINFO in
4786   [\\/]* | ?:[\\/]*)
4787   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4788   ;;
4789   *)
4790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795   for ac_exec_ext in '' $ac_executable_extensions; do
4796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4806   ;;
4807 esac
4808 fi
4809 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4810 if test -n "$DVDRWMEDIAINFO"; then
4811   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4812 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4813 else
4814   { echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6; }
4816 fi
4817
4818
4819 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4820 set dummy dvd+rw-format; ac_word=$2
4821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4823 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   case $DVDRWFORMAT in
4827   [\\/]* | ?:[\\/]*)
4828   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4829   ;;
4830   *)
4831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for ac_exec_ext in '' $ac_executable_extensions; do
4837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840     break 2
4841   fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4847   ;;
4848 esac
4849 fi
4850 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4851 if test -n "$DVDRWFORMAT"; then
4852   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4853 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4854 else
4855   { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4857 fi
4858
4859
4860 # Extract the first word of "pkg-config", so it can be a program name with args.
4861 set dummy pkg-config; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   case $PKGCONFIG in
4868   [\\/]* | ?:[\\/]*)
4869   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4870   ;;
4871   *)
4872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4888   ;;
4889 esac
4890 fi
4891 PKGCONFIG=$ac_cv_path_PKGCONFIG
4892 if test -n "$PKGCONFIG"; then
4893   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4894 echo "${ECHO_T}$PKGCONFIG" >&6; }
4895 else
4896   { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4898 fi
4899
4900
4901 # Extract the first word of "qmake", so it can be a program name with args.
4902 set dummy qmake; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_path_QMAKE+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   case $QMAKE in
4909   [\\/]* | ?:[\\/]*)
4910   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4911   ;;
4912   *)
4913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_exec_ext in '' $ac_executable_extensions; do
4919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4929   ;;
4930 esac
4931 fi
4932 QMAKE=$ac_cv_path_QMAKE
4933 if test -n "$QMAKE"; then
4934   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4935 echo "${ECHO_T}$QMAKE" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4943 set dummy qmake-qt4; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   case $QMAKEQT4 in
4950   [\\/]* | ?:[\\/]*)
4951   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4952   ;;
4953   *)
4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959   for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966 done
4967 IFS=$as_save_IFS
4968
4969   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4970   ;;
4971 esac
4972 fi
4973 QMAKEQT4=$ac_cv_path_QMAKEQT4
4974 if test -n "$QMAKEQT4"; then
4975   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4976 echo "${ECHO_T}$QMAKEQT4" >&6; }
4977 else
4978   { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4980 fi
4981
4982
4983
4984 if test "x$WXCONFIG" = x; then
4985   WXCONFIG=wx-config
4986 fi
4987 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4988 set dummy ${WXCONFIG}; ac_word=$2
4989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4991 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   case $WXCONFIG in
4995   [\\/]* | ?:[\\/]*)
4996   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4997   ;;
4998   *)
4999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004   for ac_exec_ext in '' $ac_executable_extensions; do
5005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011 done
5012 IFS=$as_save_IFS
5013
5014   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5015   ;;
5016 esac
5017 fi
5018 WXCONFIG=$ac_cv_path_WXCONFIG
5019 if test -n "$WXCONFIG"; then
5020   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5021 echo "${ECHO_T}$WXCONFIG" >&6; }
5022 else
5023   { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5025 fi
5026
5027
5028
5029 # Extract the first word of "cdrecord", so it can be a program name with args.
5030 set dummy cdrecord; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_CDRECORD+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   case $CDRECORD in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046   for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5057   ;;
5058 esac
5059 fi
5060 CDRECORD=$ac_cv_path_CDRECORD
5061 if test -n "$CDRECORD"; then
5062   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5063 echo "${ECHO_T}$CDRECORD" >&6; }
5064 else
5065   { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5067 fi
5068
5069
5070 # Extract the first word of "pidof", so it can be a program name with args.
5071 set dummy pidof; ac_word=$2
5072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_PIDOF+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077   case $PIDOF in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087   for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5098   ;;
5099 esac
5100 fi
5101 PIDOF=$ac_cv_path_PIDOF
5102 if test -n "$PIDOF"; then
5103   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5104 echo "${ECHO_T}$PIDOF" >&6; }
5105 else
5106   { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5108 fi
5109
5110
5111 for ac_prog in gawk mawk nawk awk
5112 do
5113   # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_AWK+set}" = set; then
5118   echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120   if test -n "$AWK"; then
5121   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128   for ac_exec_ext in '' $ac_executable_extensions; do
5129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130     ac_cv_prog_AWK="$ac_prog"
5131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 AWK=$ac_cv_prog_AWK
5141 if test -n "$AWK"; then
5142   { echo "$as_me:$LINENO: result: $AWK" >&5
5143 echo "${ECHO_T}$AWK" >&6; }
5144 else
5145   { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150   test -n "$AWK" && break
5151 done
5152
5153 # Some AWK programs fail, so test it and warn the user
5154 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5155       { if ((prog == $2) || (("(" prog ")") == $2) ||
5156            (("" prog "") == $2) ||
5157            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5158 else
5159   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5160    The regex engine of $AWK is too broken to be used you
5161    might want to install GNU AWK.
5162    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5163 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5164    The regex engine of $AWK is too broken to be used you
5165    might want to install GNU AWK.
5166    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5167    { (exit 1); exit 1; }; }
5168 fi
5169 THE_AWK=$AWK
5170 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5171 set dummy $THE_AWK; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_AWK+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   case $AWK in
5178   [\\/]* | ?:[\\/]*)
5179   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5180   ;;
5181   *)
5182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187   for ac_exec_ext in '' $ac_executable_extensions; do
5188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191     break 2
5192   fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5198   ;;
5199 esac
5200 fi
5201 AWK=$ac_cv_path_AWK
5202 if test -n "$AWK"; then
5203   { echo "$as_me:$LINENO: result: $AWK" >&5
5204 echo "${ECHO_T}$AWK" >&6; }
5205 else
5206   { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5208 fi
5209
5210
5211
5212
5213 test -n "$ARFLAG" || ARFLAGS="cr"
5214
5215
5216 MAKE_SHELL=/bin/sh
5217
5218
5219
5220
5221
5222
5223
5224 # Make sure we can run config.sub.
5225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5226   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5227 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5228    { (exit 1); exit 1; }; }
5229
5230 { echo "$as_me:$LINENO: checking build system type" >&5
5231 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5232 if test "${ac_cv_build+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   ac_build_alias=$build_alias
5236 test "x$ac_build_alias" = x &&
5237   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5238 test "x$ac_build_alias" = x &&
5239   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5240 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5241    { (exit 1); exit 1; }; }
5242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5243   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5244 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5245    { (exit 1); exit 1; }; }
5246
5247 fi
5248 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5249 echo "${ECHO_T}$ac_cv_build" >&6; }
5250 case $ac_cv_build in
5251 *-*-*) ;;
5252 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5253 echo "$as_me: error: invalid value of canonical build" >&2;}
5254    { (exit 1); exit 1; }; };;
5255 esac
5256 build=$ac_cv_build
5257 ac_save_IFS=$IFS; IFS='-'
5258 set x $ac_cv_build
5259 shift
5260 build_cpu=$1
5261 build_vendor=$2
5262 shift; shift
5263 # Remember, the first character of IFS is used to create $*,
5264 # except with old shells:
5265 build_os=$*
5266 IFS=$ac_save_IFS
5267 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5268
5269
5270
5271 { echo "$as_me:$LINENO: checking host system type" >&5
5272 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5273 if test "${ac_cv_host+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   if test "x$host_alias" = x; then
5277   ac_cv_host=$ac_cv_build
5278 else
5279   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5280     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5281 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5282    { (exit 1); exit 1; }; }
5283 fi
5284
5285 fi
5286 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5287 echo "${ECHO_T}$ac_cv_host" >&6; }
5288 case $ac_cv_host in
5289 *-*-*) ;;
5290 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5291 echo "$as_me: error: invalid value of canonical host" >&2;}
5292    { (exit 1); exit 1; }; };;
5293 esac
5294 host=$ac_cv_host
5295 ac_save_IFS=$IFS; IFS='-'
5296 set x $ac_cv_host
5297 shift
5298 host_cpu=$1
5299 host_vendor=$2
5300 shift; shift
5301 # Remember, the first character of IFS is used to create $*,
5302 # except with old shells:
5303 host_os=$*
5304 IFS=$ac_save_IFS
5305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5306
5307
5308 case $host_os in
5309   *cygwin* ) CYGWIN=yes;;
5310          * ) CYGWIN=no;;
5311 esac
5312
5313 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5314 then
5315
5316
5317 if $TRUEPRG; then
5318   HAVE_SUN_OS_TRUE=
5319   HAVE_SUN_OS_FALSE='#'
5320 else
5321   HAVE_SUN_OS_TRUE='#'
5322   HAVE_SUN_OS_FALSE=
5323 fi
5324         cat >>confdefs.h <<\_ACEOF
5325 #define HAVE_SUN_OS 1
5326 _ACEOF
5327
5328 else
5329
5330
5331 if $FALSEPRG; then
5332   HAVE_SUN_OS_TRUE=
5333   HAVE_SUN_OS_FALSE='#'
5334 else
5335   HAVE_SUN_OS_TRUE='#'
5336   HAVE_SUN_OS_FALSE=
5337 fi
5338 fi
5339
5340 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5341 then
5342
5343
5344 if $TRUEPRG; then
5345   HAVE_OSF1_OS_TRUE=
5346   HAVE_OSF1_OS_FALSE='#'
5347 else
5348   HAVE_OSF1_OS_TRUE='#'
5349   HAVE_OSF1_OS_FALSE=
5350 fi
5351         cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_OSF1_OS 1
5353 _ACEOF
5354
5355 else
5356
5357
5358 if $FALSEPRG; then
5359   HAVE_OSF1_OS_TRUE=
5360   HAVE_OSF1_OS_FALSE='#'
5361 else
5362   HAVE_OSF1_OS_TRUE='#'
5363   HAVE_OSF1_OS_FALSE=
5364 fi
5365 fi
5366
5367 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5368 then
5369
5370
5371 if $TRUEPRG; then
5372   HAVE_AIX_OS_TRUE=
5373   HAVE_AIX_OS_FALSE='#'
5374 else
5375   HAVE_AIX_OS_TRUE='#'
5376   HAVE_AIX_OS_FALSE=
5377 fi
5378         cat >>confdefs.h <<\_ACEOF
5379 #define HAVE_AIX_OS 1
5380 _ACEOF
5381
5382 else
5383
5384
5385 if $FALSEPRG; then
5386   HAVE_AIX_OS_TRUE=
5387   HAVE_AIX_OS_FALSE='#'
5388 else
5389   HAVE_AIX_OS_TRUE='#'
5390   HAVE_AIX_OS_FALSE=
5391 fi
5392 fi
5393
5394 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5395 then
5396
5397
5398 if $TRUEPRG; then
5399   HAVE_HPUX_OS_TRUE=
5400   HAVE_HPUX_OS_FALSE='#'
5401 else
5402   HAVE_HPUX_OS_TRUE='#'
5403   HAVE_HPUX_OS_FALSE=
5404 fi
5405         cat >>confdefs.h <<\_ACEOF
5406 #define HAVE_HPUX_OS 1
5407 _ACEOF
5408
5409 else
5410
5411
5412 if $FALSEPRG; then
5413   HAVE_HPUX_OS_TRUE=
5414   HAVE_HPUX_OS_FALSE='#'
5415 else
5416   HAVE_HPUX_OS_TRUE='#'
5417   HAVE_HPUX_OS_FALSE=
5418 fi
5419 fi
5420
5421 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5422 then
5423
5424
5425 if $TRUEPRG; then
5426   HAVE_LINUX_OS_TRUE=
5427   HAVE_LINUX_OS_FALSE='#'
5428 else
5429   HAVE_LINUX_OS_TRUE='#'
5430   HAVE_LINUX_OS_FALSE=
5431 fi
5432         cat >>confdefs.h <<\_ACEOF
5433 #define HAVE_LINUX_OS 1
5434 _ACEOF
5435
5436 else
5437
5438
5439 if $FALSEPRG; then
5440   HAVE_LINUX_OS_TRUE=
5441   HAVE_LINUX_OS_FALSE='#'
5442 else
5443   HAVE_LINUX_OS_TRUE='#'
5444   HAVE_LINUX_OS_FALSE=
5445 fi
5446 fi
5447
5448 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5449 then
5450
5451
5452 if $TRUEPRG; then
5453   HAVE_FREEBSD_OS_TRUE=
5454   HAVE_FREEBSD_OS_FALSE='#'
5455 else
5456   HAVE_FREEBSD_OS_TRUE='#'
5457   HAVE_FREEBSD_OS_FALSE=
5458 fi
5459         cat >>confdefs.h <<\_ACEOF
5460 #define HAVE_FREEBSD_OS 1
5461 _ACEOF
5462
5463 else
5464
5465
5466 if $FALSEPRG; then
5467   HAVE_FREEBSD_OS_TRUE=
5468   HAVE_FREEBSD_OS_FALSE='#'
5469 else
5470   HAVE_FREEBSD_OS_TRUE='#'
5471   HAVE_FREEBSD_OS_FALSE=
5472 fi
5473 fi
5474
5475 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5476 then
5477
5478
5479 if $TRUEPRG; then
5480   HAVE_NETBSD_OS_TRUE=
5481   HAVE_NETBSD_OS_FALSE='#'
5482 else
5483   HAVE_NETBSD_OS_TRUE='#'
5484   HAVE_NETBSD_OS_FALSE=
5485 fi
5486         cat >>confdefs.h <<\_ACEOF
5487 #define HAVE_NETBSD_OS 1
5488 _ACEOF
5489
5490 else
5491
5492
5493 if $FALSEPRG; then
5494   HAVE_NETBSD_OS_TRUE=
5495   HAVE_NETBSD_OS_FALSE='#'
5496 else
5497   HAVE_NETBSD_OS_TRUE='#'
5498   HAVE_NETBSD_OS_FALSE=
5499 fi
5500 fi
5501
5502 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5503 then
5504
5505
5506 if $TRUEPRG; then
5507   HAVE_OPENBSD_OS_TRUE=
5508   HAVE_OPENBSD_OS_FALSE='#'
5509 else
5510   HAVE_OPENBSD_OS_TRUE='#'
5511   HAVE_OPENBSD_OS_FALSE=
5512 fi
5513         cat >>confdefs.h <<\_ACEOF
5514 #define HAVE_OPENBSD_OS 1
5515 _ACEOF
5516
5517 else
5518
5519
5520 if $FALSEPRG; then
5521   HAVE_OPENBSD_OS_TRUE=
5522   HAVE_OPENBSD_OS_FALSE='#'
5523 else
5524   HAVE_OPENBSD_OS_TRUE='#'
5525   HAVE_OPENBSD_OS_FALSE=
5526 fi
5527 fi
5528
5529 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5530 then
5531
5532
5533 if $TRUEPRG; then
5534   HAVE_BSDI_OS_TRUE=
5535   HAVE_BSDI_OS_FALSE='#'
5536 else
5537   HAVE_BSDI_OS_TRUE='#'
5538   HAVE_BSDI_OS_FALSE=
5539 fi
5540         cat >>confdefs.h <<\_ACEOF
5541 #define HAVE_BSDI_OS 1
5542 _ACEOF
5543
5544 else
5545
5546
5547 if $FALSEPRG; then
5548   HAVE_BSDI_OS_TRUE=
5549   HAVE_BSDI_OS_FALSE='#'
5550 else
5551   HAVE_BSDI_OS_TRUE='#'
5552   HAVE_BSDI_OS_FALSE=
5553 fi
5554 fi
5555
5556 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5557 then
5558
5559
5560 if $TRUEPRG; then
5561   HAVE_SGI_OS_TRUE=
5562   HAVE_SGI_OS_FALSE='#'
5563 else
5564   HAVE_SGI_OS_TRUE='#'
5565   HAVE_SGI_OS_FALSE=
5566 fi
5567         cat >>confdefs.h <<\_ACEOF
5568 #define HAVE_SGI_OS 1
5569 _ACEOF
5570
5571 else
5572
5573
5574 if $FALSEPRG; then
5575   HAVE_SGI_OS_TRUE=
5576   HAVE_SGI_OS_FALSE='#'
5577 else
5578   HAVE_SGI_OS_TRUE='#'
5579   HAVE_SGI_OS_FALSE=
5580 fi
5581 fi
5582
5583 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5584 then
5585
5586
5587 if $TRUEPRG; then
5588   HAVE_IRIX_OS_TRUE=
5589   HAVE_IRIX_OS_FALSE='#'
5590 else
5591   HAVE_IRIX_OS_TRUE='#'
5592   HAVE_IRIX_OS_FALSE=
5593 fi
5594         cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_IRIX_OS 1
5596 _ACEOF
5597
5598 else
5599
5600
5601 if $FALSEPRG; then
5602   HAVE_IRIX_OS_TRUE=
5603   HAVE_IRIX_OS_FALSE='#'
5604 else
5605   HAVE_IRIX_OS_TRUE='#'
5606   HAVE_IRIX_OS_FALSE=
5607 fi
5608 fi
5609
5610 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5611 then
5612
5613
5614 if $TRUEPRG; then
5615   HAVE_DARWIN_OS_TRUE=
5616   HAVE_DARWIN_OS_FALSE='#'
5617 else
5618   HAVE_DARWIN_OS_TRUE='#'
5619   HAVE_DARWIN_OS_FALSE=
5620 fi
5621     cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_DARWIN_OS 1
5623 _ACEOF
5624
5625 else
5626
5627
5628 if $FALSEPRG; then
5629   HAVE_DARWIN_OS_TRUE=
5630   HAVE_DARWIN_OS_FALSE='#'
5631 else
5632   HAVE_DARWIN_OS_TRUE='#'
5633   HAVE_DARWIN_OS_FALSE=
5634 fi
5635 fi
5636
5637
5638 # -----------------------------------------------------------
5639 # ----------------------------------------------------------
5640 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5641 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5642 if test "x$DISTNAME" != "x"
5643 then
5644         echo "distname set to $DISTNAME"
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5646 then
5647         DISTNAME=alpha
5648 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5649 then
5650         DISTNAME=aix
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5652 then
5653         DISTNAME=hpux
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5655 then
5656         DISTNAME=solaris
5657 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5658 then
5659         DISTNAME=freebsd
5660 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5661 then
5662         DISTNAME=netbsd
5663 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5664 then
5665         DISTNAME=openbsd
5666 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5667 then
5668         DISTNAME=irix
5669 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5670 then
5671         DISTNAME=bsdi
5672 elif test -f /etc/SuSE-release
5673 then
5674         DISTNAME=suse
5675 elif test -d /etc/SuSEconfig
5676 then
5677         DISTNAME=suse5
5678 elif test -f /etc/mandrake-release
5679 then
5680         DISTNAME=mandrake
5681 elif test -f /etc/whitebox-release
5682 then
5683        DISTNAME=redhat
5684 elif test -f /etc/redhat-release
5685 then
5686         DISTNAME=redhat
5687 elif test -f /etc/gentoo-release
5688 then
5689         DISTNAME=gentoo
5690 elif test -f /etc/debian_version
5691 then
5692         DISTNAME=debian
5693 elif test -f /etc/slackware-version
5694 then
5695         DISTNAME=slackware
5696 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5697 then
5698     DISTNAME=darwin
5699 elif test -f /etc/engarde-version
5700 then
5701         DISTNAME=engarde
5702 elif test "$CYGWIN" = yes
5703 then
5704         DISTNAME=cygwin
5705         cat >>confdefs.h <<\_ACEOF
5706 #define HAVE_CYGWIN 1
5707 _ACEOF
5708
5709 else
5710         DISTNAME=unknown
5711 fi
5712 { echo "$as_me:$LINENO: result: done" >&5
5713 echo "${ECHO_T}done" >&6; }
5714
5715
5716 # --------------------------------------------------
5717 # Suppport for gettext (translations)
5718 # By default, $datadir is ${prefix}/share
5719 # --------------------------------------------------
5720 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5721 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5722 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   cat >conftest.make <<\_ACEOF
5727 SHELL = /bin/sh
5728 all:
5729         @echo '@@@%%%=$(MAKE)=@@@%%%'
5730 _ACEOF
5731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5733   *@@@%%%=?*=@@@%%%*)
5734     eval ac_cv_prog_make_${ac_make}_set=yes;;
5735   *)
5736     eval ac_cv_prog_make_${ac_make}_set=no;;
5737 esac
5738 rm -f conftest.make
5739 fi
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741   { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5743   SET_MAKE=
5744 else
5745   { echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6; }
5747   SET_MAKE="MAKE=${MAKE-make}"
5748 fi
5749
5750
5751
5752         MKINSTALLDIRS=
5753   if test -n "$ac_aux_dir"; then
5754     case "$ac_aux_dir" in
5755       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5756       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5757     esac
5758   fi
5759   if test -z "$MKINSTALLDIRS"; then
5760     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5761   fi
5762
5763
5764
5765   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5766 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5767     # Check whether --enable-nls was given.
5768 if test "${enable_nls+set}" = set; then
5769   enableval=$enable_nls; USE_NLS=$enableval
5770 else
5771   USE_NLS=yes
5772 fi
5773
5774   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5775 echo "${ECHO_T}$USE_NLS" >&6; }
5776
5777
5778
5779
5780
5781
5782 # Prepare PATH_SEPARATOR.
5783 # The user is always right.
5784 if test "${PATH_SEPARATOR+set}" != set; then
5785   echo "#! /bin/sh" >conf$$.sh
5786   echo  "exit 0"   >>conf$$.sh
5787   chmod +x conf$$.sh
5788   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5789     PATH_SEPARATOR=';'
5790   else
5791     PATH_SEPARATOR=:
5792   fi
5793   rm -f conf$$.sh
5794 fi
5795
5796 # Find out how to test for executable files. Don't use a zero-byte file,
5797 # as systems may use methods other than mode bits to determine executability.
5798 cat >conf$$.file <<_ASEOF
5799 #! /bin/sh
5800 exit 0
5801 _ASEOF
5802 chmod +x conf$$.file
5803 if test -x conf$$.file >/dev/null 2>&1; then
5804   ac_executable_p="test -x"
5805 else
5806   ac_executable_p="test -f"
5807 fi
5808 rm -f conf$$.file
5809
5810 # Extract the first word of "msgfmt", so it can be a program name with args.
5811 set dummy msgfmt; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_path_MSGFMT+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   case "$MSGFMT" in
5818   [\\/]* | ?:[\\/]*)
5819     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5820     ;;
5821   *)
5822     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5823     for ac_dir in $PATH; do
5824       IFS="$ac_save_IFS"
5825       test -z "$ac_dir" && ac_dir=.
5826       for ac_exec_ext in '' $ac_executable_extensions; do
5827         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5828           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5829           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5830      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5831             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5832             break 2
5833           fi
5834         fi
5835       done
5836     done
5837     IFS="$ac_save_IFS"
5838   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5839     ;;
5840 esac
5841 fi
5842 MSGFMT="$ac_cv_path_MSGFMT"
5843 if test "$MSGFMT" != ":"; then
5844   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5845 echo "${ECHO_T}$MSGFMT" >&6; }
5846 else
5847   { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5849 fi
5850
5851   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5852 set dummy gmsgfmt; ac_word=$2
5853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5855 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5856   echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858   case $GMSGFMT in
5859   [\\/]* | ?:[\\/]*)
5860   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5861   ;;
5862   *)
5863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868   for ac_exec_ext in '' $ac_executable_extensions; do
5869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5879   ;;
5880 esac
5881 fi
5882 GMSGFMT=$ac_cv_path_GMSGFMT
5883 if test -n "$GMSGFMT"; then
5884   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5885 echo "${ECHO_T}$GMSGFMT" >&6; }
5886 else
5887   { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5889 fi
5890
5891
5892
5893
5894 # Prepare PATH_SEPARATOR.
5895 # The user is always right.
5896 if test "${PATH_SEPARATOR+set}" != set; then
5897   echo "#! /bin/sh" >conf$$.sh
5898   echo  "exit 0"   >>conf$$.sh
5899   chmod +x conf$$.sh
5900   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5901     PATH_SEPARATOR=';'
5902   else
5903     PATH_SEPARATOR=:
5904   fi
5905   rm -f conf$$.sh
5906 fi
5907
5908 # Find out how to test for executable files. Don't use a zero-byte file,
5909 # as systems may use methods other than mode bits to determine executability.
5910 cat >conf$$.file <<_ASEOF
5911 #! /bin/sh
5912 exit 0
5913 _ASEOF
5914 chmod +x conf$$.file
5915 if test -x conf$$.file >/dev/null 2>&1; then
5916   ac_executable_p="test -x"
5917 else
5918   ac_executable_p="test -f"
5919 fi
5920 rm -f conf$$.file
5921
5922 # Extract the first word of "xgettext", so it can be a program name with args.
5923 set dummy xgettext; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   case "$XGETTEXT" in
5930   [\\/]* | ?:[\\/]*)
5931     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5932     ;;
5933   *)
5934     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5935     for ac_dir in $PATH; do
5936       IFS="$ac_save_IFS"
5937       test -z "$ac_dir" && ac_dir=.
5938       for ac_exec_ext in '' $ac_executable_extensions; do
5939         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5940           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5941           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5942      (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
5943             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5944             break 2
5945           fi
5946         fi
5947       done
5948     done
5949     IFS="$ac_save_IFS"
5950   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5951     ;;
5952 esac
5953 fi
5954 XGETTEXT="$ac_cv_path_XGETTEXT"
5955 if test "$XGETTEXT" != ":"; then
5956   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5957 echo "${ECHO_T}$XGETTEXT" >&6; }
5958 else
5959   { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5961 fi
5962
5963     rm -f messages.po
5964
5965
5966 # Prepare PATH_SEPARATOR.
5967 # The user is always right.
5968 if test "${PATH_SEPARATOR+set}" != set; then
5969   echo "#! /bin/sh" >conf$$.sh
5970   echo  "exit 0"   >>conf$$.sh
5971   chmod +x conf$$.sh
5972   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5973     PATH_SEPARATOR=';'
5974   else
5975     PATH_SEPARATOR=:
5976   fi
5977   rm -f conf$$.sh
5978 fi
5979
5980 # Find out how to test for executable files. Don't use a zero-byte file,
5981 # as systems may use methods other than mode bits to determine executability.
5982 cat >conf$$.file <<_ASEOF
5983 #! /bin/sh
5984 exit 0
5985 _ASEOF
5986 chmod +x conf$$.file
5987 if test -x conf$$.file >/dev/null 2>&1; then
5988   ac_executable_p="test -x"
5989 else
5990   ac_executable_p="test -f"
5991 fi
5992 rm -f conf$$.file
5993
5994 # Extract the first word of "msgmerge", so it can be a program name with args.
5995 set dummy msgmerge; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5999   echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001   case "$MSGMERGE" in
6002   [\\/]* | ?:[\\/]*)
6003     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6004     ;;
6005   *)
6006     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6007     for ac_dir in $PATH; do
6008       IFS="$ac_save_IFS"
6009       test -z "$ac_dir" && ac_dir=.
6010       for ac_exec_ext in '' $ac_executable_extensions; do
6011         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6012           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6013           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6014             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6015             break 2
6016           fi
6017         fi
6018       done
6019     done
6020     IFS="$ac_save_IFS"
6021   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6022     ;;
6023 esac
6024 fi
6025 MSGMERGE="$ac_cv_path_MSGMERGE"
6026 if test "$MSGMERGE" != ":"; then
6027   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6028 echo "${ECHO_T}$MSGMERGE" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035       if test "$GMSGFMT" != ":"; then
6036             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6037        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6038       : ;
6039     else
6040       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6041       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6042 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6043       GMSGFMT=":"
6044     fi
6045   fi
6046
6047       if test "$XGETTEXT" != ":"; then
6048             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6049        (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
6050       : ;
6051     else
6052       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6053 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6054       XGETTEXT=":"
6055     fi
6056         rm -f messages.po
6057   fi
6058
6059   ac_config_commands="$ac_config_commands default-1"
6060
6061
6062
6063       if test "X$prefix" = "XNONE"; then
6064     acl_final_prefix="$ac_default_prefix"
6065   else
6066     acl_final_prefix="$prefix"
6067   fi
6068   if test "X$exec_prefix" = "XNONE"; then
6069     acl_final_exec_prefix='${prefix}'
6070   else
6071     acl_final_exec_prefix="$exec_prefix"
6072   fi
6073   acl_save_prefix="$prefix"
6074   prefix="$acl_final_prefix"
6075   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6076   prefix="$acl_save_prefix"
6077
6078
6079 # Check whether --with-gnu-ld was given.
6080 if test "${with_gnu_ld+set}" = set; then
6081   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6082 else
6083   with_gnu_ld=no
6084 fi
6085
6086 # Prepare PATH_SEPARATOR.
6087 # The user is always right.
6088 if test "${PATH_SEPARATOR+set}" != set; then
6089   echo "#! /bin/sh" >conf$$.sh
6090   echo  "exit 0"   >>conf$$.sh
6091   chmod +x conf$$.sh
6092   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6093     PATH_SEPARATOR=';'
6094   else
6095     PATH_SEPARATOR=:
6096   fi
6097   rm -f conf$$.sh
6098 fi
6099 ac_prog=ld
6100 if test "$GCC" = yes; then
6101   # Check if gcc -print-prog-name=ld gives a path.
6102   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6104   case $host in
6105   *-*-mingw*)
6106     # gcc leaves a trailing carriage return which upsets mingw
6107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6108   *)
6109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6110   esac
6111   case $ac_prog in
6112     # Accept absolute paths.
6113     [\\/]* | [A-Za-z]:[\\/]*)
6114       re_direlt='/[^/][^/]*/\.\./'
6115       # Canonicalize the path of ld
6116       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6119       done
6120       test -z "$LD" && LD="$ac_prog"
6121       ;;
6122   "")
6123     # If it fails, then pretend we aren't using GCC.
6124     ac_prog=ld
6125     ;;
6126   *)
6127     # If it is relative, then search for the first ld in PATH.
6128     with_gnu_ld=unknown
6129     ;;
6130   esac
6131 elif test "$with_gnu_ld" = yes; then
6132   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6134 else
6135   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6137 fi
6138 if test "${acl_cv_path_LD+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -z "$LD"; then
6142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143   for ac_dir in $PATH; do
6144     test -z "$ac_dir" && ac_dir=.
6145     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146       acl_cv_path_LD="$ac_dir/$ac_prog"
6147       # Check to see if the program is GNU ld.  I'd rather use --version,
6148       # but apparently some GNU ld's only accept -v.
6149       # Break only if it was the GNU/non-GNU ld that we prefer.
6150       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6151       *GNU* | *'with BFD'*)
6152         test "$with_gnu_ld" != no && break ;;
6153       *)
6154         test "$with_gnu_ld" != yes && break ;;
6155       esac
6156     fi
6157   done
6158   IFS="$ac_save_ifs"
6159 else
6160   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6161 fi
6162 fi
6163
6164 LD="$acl_cv_path_LD"
6165 if test -n "$LD"; then
6166   { echo "$as_me:$LINENO: result: $LD" >&5
6167 echo "${ECHO_T}$LD" >&6; }
6168 else
6169   { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6171 fi
6172 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6173 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6174    { (exit 1); exit 1; }; }
6175 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6176 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6177 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6181 case `$LD -v 2>&1 </dev/null` in
6182 *GNU* | *'with BFD'*)
6183   acl_cv_prog_gnu_ld=yes ;;
6184 *)
6185   acl_cv_prog_gnu_ld=no ;;
6186 esac
6187 fi
6188 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6189 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6190 with_gnu_ld=$acl_cv_prog_gnu_ld
6191
6192
6193
6194
6195                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6196 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6197 if test "${acl_cv_rpath+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200
6201     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6202     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6203     . ./conftest.sh
6204     rm -f ./conftest.sh
6205     acl_cv_rpath=done
6206
6207 fi
6208 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6209 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6210   wl="$acl_cv_wl"
6211   libext="$acl_cv_libext"
6212   shlibext="$acl_cv_shlibext"
6213   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6214   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6215   hardcode_direct="$acl_cv_hardcode_direct"
6216   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6217     # Check whether --enable-rpath was given.
6218 if test "${enable_rpath+set}" = set; then
6219   enableval=$enable_rpath; :
6220 else
6221   enable_rpath=yes
6222 fi
6223
6224
6225
6226
6227
6228
6229
6230
6231     use_additional=yes
6232
6233   acl_save_prefix="$prefix"
6234   prefix="$acl_final_prefix"
6235   acl_save_exec_prefix="$exec_prefix"
6236   exec_prefix="$acl_final_exec_prefix"
6237
6238     eval additional_includedir=\"$includedir\"
6239     eval additional_libdir=\"$libdir\"
6240
6241   exec_prefix="$acl_save_exec_prefix"
6242   prefix="$acl_save_prefix"
6243
6244
6245 # Check whether --with-libiconv-prefix was given.
6246 if test "${with_libiconv_prefix+set}" = set; then
6247   withval=$with_libiconv_prefix;
6248     if test "X$withval" = "Xno"; then
6249       use_additional=no
6250     else
6251       if test "X$withval" = "X"; then
6252
6253   acl_save_prefix="$prefix"
6254   prefix="$acl_final_prefix"
6255   acl_save_exec_prefix="$exec_prefix"
6256   exec_prefix="$acl_final_exec_prefix"
6257
6258           eval additional_includedir=\"$includedir\"
6259           eval additional_libdir=\"$libdir\"
6260
6261   exec_prefix="$acl_save_exec_prefix"
6262   prefix="$acl_save_prefix"
6263
6264       else
6265         additional_includedir="$withval/include"
6266         additional_libdir="$withval/lib"
6267       fi
6268     fi
6269
6270 fi
6271
6272       LIBICONV=
6273   LTLIBICONV=
6274   INCICONV=
6275   rpathdirs=
6276   ltrpathdirs=
6277   names_already_handled=
6278   names_next_round='iconv '
6279   while test -n "$names_next_round"; do
6280     names_this_round="$names_next_round"
6281     names_next_round=
6282     for name in $names_this_round; do
6283       already_handled=
6284       for n in $names_already_handled; do
6285         if test "$n" = "$name"; then
6286           already_handled=yes
6287           break
6288         fi
6289       done
6290       if test -z "$already_handled"; then
6291         names_already_handled="$names_already_handled $name"
6292                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6293         eval value=\"\$HAVE_LIB$uppername\"
6294         if test -n "$value"; then
6295           if test "$value" = yes; then
6296             eval value=\"\$LIB$uppername\"
6297             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6298             eval value=\"\$LTLIB$uppername\"
6299             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6300           else
6301                                     :
6302           fi
6303         else
6304                               found_dir=
6305           found_la=
6306           found_so=
6307           found_a=
6308           if test $use_additional = yes; then
6309             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6310               found_dir="$additional_libdir"
6311               found_so="$additional_libdir/lib$name.$shlibext"
6312               if test -f "$additional_libdir/lib$name.la"; then
6313                 found_la="$additional_libdir/lib$name.la"
6314               fi
6315             else
6316               if test -f "$additional_libdir/lib$name.$libext"; then
6317                 found_dir="$additional_libdir"
6318                 found_a="$additional_libdir/lib$name.$libext"
6319                 if test -f "$additional_libdir/lib$name.la"; then
6320                   found_la="$additional_libdir/lib$name.la"
6321                 fi
6322               fi
6323             fi
6324           fi
6325           if test "X$found_dir" = "X"; then
6326             for x in $LDFLAGS $LTLIBICONV; do
6327
6328   acl_save_prefix="$prefix"
6329   prefix="$acl_final_prefix"
6330   acl_save_exec_prefix="$exec_prefix"
6331   exec_prefix="$acl_final_exec_prefix"
6332   eval x=\"$x\"
6333   exec_prefix="$acl_save_exec_prefix"
6334   prefix="$acl_save_prefix"
6335
6336               case "$x" in
6337                 -L*)
6338                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6339                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6340                     found_dir="$dir"
6341                     found_so="$dir/lib$name.$shlibext"
6342                     if test -f "$dir/lib$name.la"; then
6343                       found_la="$dir/lib$name.la"
6344                     fi
6345                   else
6346                     if test -f "$dir/lib$name.$libext"; then
6347                       found_dir="$dir"
6348                       found_a="$dir/lib$name.$libext"
6349                       if test -f "$dir/lib$name.la"; then
6350                         found_la="$dir/lib$name.la"
6351                       fi
6352                     fi
6353                   fi
6354                   ;;
6355               esac
6356               if test "X$found_dir" != "X"; then
6357                 break
6358               fi
6359             done
6360           fi
6361           if test "X$found_dir" != "X"; then
6362                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6363             if test "X$found_so" != "X"; then
6364                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6365                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6366               else
6367                                                                                 haveit=
6368                 for x in $ltrpathdirs; do
6369                   if test "X$x" = "X$found_dir"; then
6370                     haveit=yes
6371                     break
6372                   fi
6373                 done
6374                 if test -z "$haveit"; then
6375                   ltrpathdirs="$ltrpathdirs $found_dir"
6376                 fi
6377                                 if test "$hardcode_direct" = yes; then
6378                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6379                 else
6380                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6381                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6382                                                             haveit=
6383                     for x in $rpathdirs; do
6384                       if test "X$x" = "X$found_dir"; then
6385                         haveit=yes
6386                         break
6387                       fi
6388                     done
6389                     if test -z "$haveit"; then
6390                       rpathdirs="$rpathdirs $found_dir"
6391                     fi
6392                   else
6393                                                                                 haveit=
6394                     for x in $LDFLAGS $LIBICONV; do
6395
6396   acl_save_prefix="$prefix"
6397   prefix="$acl_final_prefix"
6398   acl_save_exec_prefix="$exec_prefix"
6399   exec_prefix="$acl_final_exec_prefix"
6400   eval x=\"$x\"
6401   exec_prefix="$acl_save_exec_prefix"
6402   prefix="$acl_save_prefix"
6403
6404                       if test "X$x" = "X-L$found_dir"; then
6405                         haveit=yes
6406                         break
6407                       fi
6408                     done
6409                     if test -z "$haveit"; then
6410                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6411                     fi
6412                     if test "$hardcode_minus_L" != no; then
6413                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6414                     else
6415                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6416                     fi
6417                   fi
6418                 fi
6419               fi
6420             else
6421               if test "X$found_a" != "X"; then
6422                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6423               else
6424                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6425               fi
6426             fi
6427                         additional_includedir=
6428             case "$found_dir" in
6429               */lib | */lib/)
6430                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6431                 additional_includedir="$basedir/include"
6432                 ;;
6433             esac
6434             if test "X$additional_includedir" != "X"; then
6435                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6436                 haveit=
6437                 if test "X$additional_includedir" = "X/usr/local/include"; then
6438                   if test -n "$GCC"; then
6439                     case $host_os in
6440                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6441                     esac
6442                   fi
6443                 fi
6444                 if test -z "$haveit"; then
6445                   for x in $CPPFLAGS $INCICONV; do
6446
6447   acl_save_prefix="$prefix"
6448   prefix="$acl_final_prefix"
6449   acl_save_exec_prefix="$exec_prefix"
6450   exec_prefix="$acl_final_exec_prefix"
6451   eval x=\"$x\"
6452   exec_prefix="$acl_save_exec_prefix"
6453   prefix="$acl_save_prefix"
6454
6455                     if test "X$x" = "X-I$additional_includedir"; then
6456                       haveit=yes
6457                       break
6458                     fi
6459                   done
6460                   if test -z "$haveit"; then
6461                     if test -d "$additional_includedir"; then
6462                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6463                     fi
6464                   fi
6465                 fi
6466               fi
6467             fi
6468                         if test -n "$found_la"; then
6469                                                         save_libdir="$libdir"
6470               case "$found_la" in
6471                 */* | *\\*) . "$found_la" ;;
6472                 *) . "./$found_la" ;;
6473               esac
6474               libdir="$save_libdir"
6475                             for dep in $dependency_libs; do
6476                 case "$dep" in
6477                   -L*)
6478                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6479                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6480                       haveit=
6481                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6482                         if test -n "$GCC"; then
6483                           case $host_os in
6484                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6485                           esac
6486                         fi
6487                       fi
6488                       if test -z "$haveit"; then
6489                         haveit=
6490                         for x in $LDFLAGS $LIBICONV; do
6491
6492   acl_save_prefix="$prefix"
6493   prefix="$acl_final_prefix"
6494   acl_save_exec_prefix="$exec_prefix"
6495   exec_prefix="$acl_final_exec_prefix"
6496   eval x=\"$x\"
6497   exec_prefix="$acl_save_exec_prefix"
6498   prefix="$acl_save_prefix"
6499
6500                           if test "X$x" = "X-L$additional_libdir"; then
6501                             haveit=yes
6502                             break
6503                           fi
6504                         done
6505                         if test -z "$haveit"; then
6506                           if test -d "$additional_libdir"; then
6507                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6508                           fi
6509                         fi
6510                         haveit=
6511                         for x in $LDFLAGS $LTLIBICONV; do
6512
6513   acl_save_prefix="$prefix"
6514   prefix="$acl_final_prefix"
6515   acl_save_exec_prefix="$exec_prefix"
6516   exec_prefix="$acl_final_exec_prefix"
6517   eval x=\"$x\"
6518   exec_prefix="$acl_save_exec_prefix"
6519   prefix="$acl_save_prefix"
6520
6521                           if test "X$x" = "X-L$additional_libdir"; then
6522                             haveit=yes
6523                             break
6524                           fi
6525                         done
6526                         if test -z "$haveit"; then
6527                           if test -d "$additional_libdir"; then
6528                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6529                           fi
6530                         fi
6531                       fi
6532                     fi
6533                     ;;
6534                   -R*)
6535                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6536                     if test "$enable_rpath" != no; then
6537                                                                   haveit=
6538                       for x in $rpathdirs; do
6539                         if test "X$x" = "X$dir"; then
6540                           haveit=yes
6541                           break
6542                         fi
6543                       done
6544                       if test -z "$haveit"; then
6545                         rpathdirs="$rpathdirs $dir"
6546                       fi
6547                                                                   haveit=
6548                       for x in $ltrpathdirs; do
6549                         if test "X$x" = "X$dir"; then
6550                           haveit=yes
6551                           break
6552                         fi
6553                       done
6554                       if test -z "$haveit"; then
6555                         ltrpathdirs="$ltrpathdirs $dir"
6556                       fi
6557                     fi
6558                     ;;
6559                   -l*)
6560                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6561                     ;;
6562                   *.la)
6563                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6564                     ;;
6565                   *)
6566                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6567                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6568                     ;;
6569                 esac
6570               done
6571             fi
6572           else
6573                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6574             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6575           fi
6576         fi
6577       fi
6578     done
6579   done
6580   if test "X$rpathdirs" != "X"; then
6581     if test -n "$hardcode_libdir_separator"; then
6582                         alldirs=
6583       for found_dir in $rpathdirs; do
6584         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6585       done
6586             acl_save_libdir="$libdir"
6587       libdir="$alldirs"
6588       eval flag=\"$hardcode_libdir_flag_spec\"
6589       libdir="$acl_save_libdir"
6590       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6591     else
6592             for found_dir in $rpathdirs; do
6593         acl_save_libdir="$libdir"
6594         libdir="$found_dir"
6595         eval flag=\"$hardcode_libdir_flag_spec\"
6596         libdir="$acl_save_libdir"
6597         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6598       done
6599     fi
6600   fi
6601   if test "X$ltrpathdirs" != "X"; then
6602             for found_dir in $ltrpathdirs; do
6603       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6604     done
6605   fi
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6625 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6626 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   gt_save_CPPFLAGS="$CPPFLAGS"
6630      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6631      gt_save_LIBS="$LIBS"
6632      LIBS="$LIBS -framework CoreFoundation"
6633      cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639 #include <CFPreferences.h>
6640 int
6641 main ()
6642 {
6643 CFPreferencesCopyAppValue(NULL, NULL)
6644   ;
6645   return 0;
6646 }
6647 _ACEOF
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6650 case "(($ac_try" in
6651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652   *) ac_try_echo=$ac_try;;
6653 esac
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655   (eval "$ac_link") 2>conftest.er1
6656   ac_status=$?
6657   grep -v '^ *+' conftest.er1 >conftest.err
6658   rm -f conftest.er1
6659   cat conftest.err >&5
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); } && {
6662          test -z "$ac_c_werror_flag" ||
6663          test ! -s conftest.err
6664        } && test -s conftest$ac_exeext &&
6665        $as_test_x conftest$ac_exeext; then
6666   gt_cv_func_CFPreferencesCopyAppValue=yes
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671         gt_cv_func_CFPreferencesCopyAppValue=no
6672 fi
6673
6674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6675       conftest$ac_exeext conftest.$ac_ext
6676      CPPFLAGS="$gt_save_CPPFLAGS"
6677      LIBS="$gt_save_LIBS"
6678 fi
6679 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6680 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6681   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6685 _ACEOF
6686
6687   fi
6688     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6689 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6690 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   gt_save_CPPFLAGS="$CPPFLAGS"
6694      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6695      gt_save_LIBS="$LIBS"
6696      LIBS="$LIBS -framework CoreFoundation"
6697      cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #include <CFLocale.h>
6704 int
6705 main ()
6706 {
6707 CFLocaleCopyCurrent();
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (ac_try="$ac_link"
6714 case "(($ac_try" in
6715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716   *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719   (eval "$ac_link") 2>conftest.er1
6720   ac_status=$?
6721   grep -v '^ *+' conftest.er1 >conftest.err
6722   rm -f conftest.er1
6723   cat conftest.err >&5
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); } && {
6726          test -z "$ac_c_werror_flag" ||
6727          test ! -s conftest.err
6728        } && test -s conftest$ac_exeext &&
6729        $as_test_x conftest$ac_exeext; then
6730   gt_cv_func_CFLocaleCopyCurrent=yes
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735         gt_cv_func_CFLocaleCopyCurrent=no
6736 fi
6737
6738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6739       conftest$ac_exeext conftest.$ac_ext
6740      CPPFLAGS="$gt_save_CPPFLAGS"
6741      LIBS="$gt_save_LIBS"
6742 fi
6743 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6744 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6745   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_CFLOCALECOPYCURRENT 1
6749 _ACEOF
6750
6751   fi
6752   INTL_MACOSX_LIBS=
6753   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6754     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6755   fi
6756
6757
6758
6759
6760   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6762     # Check whether --enable-nls was given.
6763 if test "${enable_nls+set}" = set; then
6764   enableval=$enable_nls; USE_NLS=$enableval
6765 else
6766   USE_NLS=yes
6767 fi
6768
6769   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6770 echo "${ECHO_T}$USE_NLS" >&6; }
6771
6772
6773
6774
6775   LIBINTL=
6776   LTLIBINTL=
6777   POSUB=
6778
6779     if test "$USE_NLS" = "yes"; then
6780     gt_use_preinstalled_gnugettext=no
6781
6782
6783
6784
6785
6786
6787         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6788 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6789 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798 #include <libintl.h>
6799 extern int _nl_msg_cat_cntr;
6800 extern int *_nl_domain_bindings;
6801 int
6802 main ()
6803 {
6804 bindtextdomain ("", "");
6805 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6806   ;
6807   return 0;
6808 }
6809 _ACEOF
6810 rm -f conftest.$ac_objext conftest$ac_exeext
6811 if { (ac_try="$ac_link"
6812 case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817   (eval "$ac_link") 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } && {
6824          test -z "$ac_c_werror_flag" ||
6825          test ! -s conftest.err
6826        } && test -s conftest$ac_exeext &&
6827        $as_test_x conftest$ac_exeext; then
6828   gt_cv_func_gnugettext1_libc=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833         gt_cv_func_gnugettext1_libc=no
6834 fi
6835
6836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6837       conftest$ac_exeext conftest.$ac_ext
6838 fi
6839 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6840 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6841
6842         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6843
6844
6845
6846
6847
6848           am_save_CPPFLAGS="$CPPFLAGS"
6849
6850   for element in $INCICONV; do
6851     haveit=
6852     for x in $CPPFLAGS; do
6853
6854   acl_save_prefix="$prefix"
6855   prefix="$acl_final_prefix"
6856   acl_save_exec_prefix="$exec_prefix"
6857   exec_prefix="$acl_final_exec_prefix"
6858   eval x=\"$x\"
6859   exec_prefix="$acl_save_exec_prefix"
6860   prefix="$acl_save_prefix"
6861
6862       if test "X$x" = "X$element"; then
6863         haveit=yes
6864         break
6865       fi
6866     done
6867     if test -z "$haveit"; then
6868       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6869     fi
6870   done
6871
6872
6873   { echo "$as_me:$LINENO: checking for iconv" >&5
6874 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6875 if test "${am_cv_func_iconv+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878
6879     am_cv_func_iconv="no, consider installing GNU libiconv"
6880     am_cv_lib_iconv=no
6881     cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h.  */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h.  */
6887 #include <stdlib.h>
6888 #include <iconv.h>
6889 int
6890 main ()
6891 {
6892 iconv_t cd = iconv_open("","");
6893        iconv(cd,NULL,NULL,NULL,NULL);
6894        iconv_close(cd);
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6901 case "(($ac_try" in
6902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903   *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906   (eval "$ac_link") 2>conftest.er1
6907   ac_status=$?
6908   grep -v '^ *+' conftest.er1 >conftest.err
6909   rm -f conftest.er1
6910   cat conftest.err >&5
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } && {
6913          test -z "$ac_c_werror_flag" ||
6914          test ! -s conftest.err
6915        } && test -s conftest$ac_exeext &&
6916        $as_test_x conftest$ac_exeext; then
6917   am_cv_func_iconv=yes
6918 else
6919   echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6921
6922
6923 fi
6924
6925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6926       conftest$ac_exeext conftest.$ac_ext
6927     if test "$am_cv_func_iconv" != yes; then
6928       am_save_LIBS="$LIBS"
6929       LIBS="$LIBS $LIBICONV"
6930       cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 #include <stdlib.h>
6937 #include <iconv.h>
6938 int
6939 main ()
6940 {
6941 iconv_t cd = iconv_open("","");
6942          iconv(cd,NULL,NULL,NULL,NULL);
6943          iconv_close(cd);
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6950 case "(($ac_try" in
6951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952   *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955   (eval "$ac_link") 2>conftest.er1
6956   ac_status=$?
6957   grep -v '^ *+' conftest.er1 >conftest.err
6958   rm -f conftest.er1
6959   cat conftest.err >&5
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } && {
6962          test -z "$ac_c_werror_flag" ||
6963          test ! -s conftest.err
6964        } && test -s conftest$ac_exeext &&
6965        $as_test_x conftest$ac_exeext; then
6966   am_cv_lib_iconv=yes
6967         am_cv_func_iconv=yes
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972
6973 fi
6974
6975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6976       conftest$ac_exeext conftest.$ac_ext
6977       LIBS="$am_save_LIBS"
6978     fi
6979
6980 fi
6981 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6982 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6983   if test "$am_cv_func_iconv" = yes; then
6984
6985 cat >>confdefs.h <<\_ACEOF
6986 #define HAVE_ICONV 1
6987 _ACEOF
6988
6989   fi
6990   if test "$am_cv_lib_iconv" = yes; then
6991     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6992 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6993     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6994 echo "${ECHO_T}$LIBICONV" >&6; }
6995   else
6996             CPPFLAGS="$am_save_CPPFLAGS"
6997     LIBICONV=
6998     LTLIBICONV=
6999   fi
7000
7001
7002
7003
7004
7005
7006     use_additional=yes
7007
7008   acl_save_prefix="$prefix"
7009   prefix="$acl_final_prefix"
7010   acl_save_exec_prefix="$exec_prefix"
7011   exec_prefix="$acl_final_exec_prefix"
7012
7013     eval additional_includedir=\"$includedir\"
7014     eval additional_libdir=\"$libdir\"
7015
7016   exec_prefix="$acl_save_exec_prefix"
7017   prefix="$acl_save_prefix"
7018
7019
7020 # Check whether --with-libintl-prefix was given.
7021 if test "${with_libintl_prefix+set}" = set; then
7022   withval=$with_libintl_prefix;
7023     if test "X$withval" = "Xno"; then
7024       use_additional=no
7025     else
7026       if test "X$withval" = "X"; then
7027
7028   acl_save_prefix="$prefix"
7029   prefix="$acl_final_prefix"
7030   acl_save_exec_prefix="$exec_prefix"
7031   exec_prefix="$acl_final_exec_prefix"
7032
7033           eval additional_includedir=\"$includedir\"
7034           eval additional_libdir=\"$libdir\"
7035
7036   exec_prefix="$acl_save_exec_prefix"
7037   prefix="$acl_save_prefix"
7038
7039       else
7040         additional_includedir="$withval/include"
7041         additional_libdir="$withval/lib"
7042       fi
7043     fi
7044
7045 fi
7046
7047       LIBINTL=
7048   LTLIBINTL=
7049   INCINTL=
7050   rpathdirs=
7051   ltrpathdirs=
7052   names_already_handled=
7053   names_next_round='intl '
7054   while test -n "$names_next_round"; do
7055     names_this_round="$names_next_round"
7056     names_next_round=
7057     for name in $names_this_round; do
7058       already_handled=
7059       for n in $names_already_handled; do
7060         if test "$n" = "$name"; then
7061           already_handled=yes
7062           break
7063         fi
7064       done
7065       if test -z "$already_handled"; then
7066         names_already_handled="$names_already_handled $name"
7067                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7068         eval value=\"\$HAVE_LIB$uppername\"
7069         if test -n "$value"; then
7070           if test "$value" = yes; then
7071             eval value=\"\$LIB$uppername\"
7072             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7073             eval value=\"\$LTLIB$uppername\"
7074             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7075           else
7076                                     :
7077           fi
7078         else
7079                               found_dir=
7080           found_la=
7081           found_so=
7082           found_a=
7083           if test $use_additional = yes; then
7084             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7085               found_dir="$additional_libdir"
7086               found_so="$additional_libdir/lib$name.$shlibext"
7087               if test -f "$additional_libdir/lib$name.la"; then
7088                 found_la="$additional_libdir/lib$name.la"
7089               fi
7090             else
7091               if test -f "$additional_libdir/lib$name.$libext"; then
7092                 found_dir="$additional_libdir"
7093                 found_a="$additional_libdir/lib$name.$libext"
7094                 if test -f "$additional_libdir/lib$name.la"; then
7095                   found_la="$additional_libdir/lib$name.la"
7096                 fi
7097               fi
7098             fi
7099           fi
7100           if test "X$found_dir" = "X"; then
7101             for x in $LDFLAGS $LTLIBINTL; do
7102
7103   acl_save_prefix="$prefix"
7104   prefix="$acl_final_prefix"
7105   acl_save_exec_prefix="$exec_prefix"
7106   exec_prefix="$acl_final_exec_prefix"
7107   eval x=\"$x\"
7108   exec_prefix="$acl_save_exec_prefix"
7109   prefix="$acl_save_prefix"
7110
7111               case "$x" in
7112                 -L*)
7113                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7114                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7115                     found_dir="$dir"
7116                     found_so="$dir/lib$name.$shlibext"
7117                     if test -f "$dir/lib$name.la"; then
7118                       found_la="$dir/lib$name.la"
7119                     fi
7120                   else
7121                     if test -f "$dir/lib$name.$libext"; then
7122                       found_dir="$dir"
7123                       found_a="$dir/lib$name.$libext"
7124                       if test -f "$dir/lib$name.la"; then
7125                         found_la="$dir/lib$name.la"
7126                       fi
7127                     fi
7128                   fi
7129                   ;;
7130               esac
7131               if test "X$found_dir" != "X"; then
7132                 break
7133               fi
7134             done
7135           fi
7136           if test "X$found_dir" != "X"; then
7137                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7138             if test "X$found_so" != "X"; then
7139                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7140                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7141               else
7142                                                                                 haveit=
7143                 for x in $ltrpathdirs; do
7144                   if test "X$x" = "X$found_dir"; then
7145                     haveit=yes
7146                     break
7147                   fi
7148                 done
7149                 if test -z "$haveit"; then
7150                   ltrpathdirs="$ltrpathdirs $found_dir"
7151                 fi
7152                                 if test "$hardcode_direct" = yes; then
7153                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7154                 else
7155                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7156                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7157                                                             haveit=
7158                     for x in $rpathdirs; do
7159                       if test "X$x" = "X$found_dir"; then
7160                         haveit=yes
7161                         break
7162                       fi
7163                     done
7164                     if test -z "$haveit"; then
7165                       rpathdirs="$rpathdirs $found_dir"
7166                     fi
7167                   else
7168                                                                                 haveit=
7169                     for x in $LDFLAGS $LIBINTL; do
7170
7171   acl_save_prefix="$prefix"
7172   prefix="$acl_final_prefix"
7173   acl_save_exec_prefix="$exec_prefix"
7174   exec_prefix="$acl_final_exec_prefix"
7175   eval x=\"$x\"
7176   exec_prefix="$acl_save_exec_prefix"
7177   prefix="$acl_save_prefix"
7178
7179                       if test "X$x" = "X-L$found_dir"; then
7180                         haveit=yes
7181                         break
7182                       fi
7183                     done
7184                     if test -z "$haveit"; then
7185                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7186                     fi
7187                     if test "$hardcode_minus_L" != no; then
7188                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7189                     else
7190                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7191                     fi
7192                   fi
7193                 fi
7194               fi
7195             else
7196               if test "X$found_a" != "X"; then
7197                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7198               else
7199                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7200               fi
7201             fi
7202                         additional_includedir=
7203             case "$found_dir" in
7204               */lib | */lib/)
7205                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7206                 additional_includedir="$basedir/include"
7207                 ;;
7208             esac
7209             if test "X$additional_includedir" != "X"; then
7210                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7211                 haveit=
7212                 if test "X$additional_includedir" = "X/usr/local/include"; then
7213                   if test -n "$GCC"; then
7214                     case $host_os in
7215                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7216                     esac
7217                   fi
7218                 fi
7219                 if test -z "$haveit"; then
7220                   for x in $CPPFLAGS $INCINTL; do
7221
7222   acl_save_prefix="$prefix"
7223   prefix="$acl_final_prefix"
7224   acl_save_exec_prefix="$exec_prefix"
7225   exec_prefix="$acl_final_exec_prefix"
7226   eval x=\"$x\"
7227   exec_prefix="$acl_save_exec_prefix"
7228   prefix="$acl_save_prefix"
7229
7230                     if test "X$x" = "X-I$additional_includedir"; then
7231                       haveit=yes
7232                       break
7233                     fi
7234                   done
7235                   if test -z "$haveit"; then
7236                     if test -d "$additional_includedir"; then
7237                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7238                     fi
7239                   fi
7240                 fi
7241               fi
7242             fi
7243                         if test -n "$found_la"; then
7244                                                         save_libdir="$libdir"
7245               case "$found_la" in
7246                 */* | *\\*) . "$found_la" ;;
7247                 *) . "./$found_la" ;;
7248               esac
7249               libdir="$save_libdir"
7250                             for dep in $dependency_libs; do
7251                 case "$dep" in
7252                   -L*)
7253                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7254                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7255                       haveit=
7256                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7257                         if test -n "$GCC"; then
7258                           case $host_os in
7259                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7260                           esac
7261                         fi
7262                       fi
7263                       if test -z "$haveit"; then
7264                         haveit=
7265                         for x in $LDFLAGS $LIBINTL; do
7266
7267   acl_save_prefix="$prefix"
7268   prefix="$acl_final_prefix"
7269   acl_save_exec_prefix="$exec_prefix"
7270   exec_prefix="$acl_final_exec_prefix"
7271   eval x=\"$x\"
7272   exec_prefix="$acl_save_exec_prefix"
7273   prefix="$acl_save_prefix"
7274
7275                           if test "X$x" = "X-L$additional_libdir"; then
7276                             haveit=yes
7277                             break
7278                           fi
7279                         done
7280                         if test -z "$haveit"; then
7281                           if test -d "$additional_libdir"; then
7282                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7283                           fi
7284                         fi
7285                         haveit=
7286                         for x in $LDFLAGS $LTLIBINTL; do
7287
7288   acl_save_prefix="$prefix"
7289   prefix="$acl_final_prefix"
7290   acl_save_exec_prefix="$exec_prefix"
7291   exec_prefix="$acl_final_exec_prefix"
7292   eval x=\"$x\"
7293   exec_prefix="$acl_save_exec_prefix"
7294   prefix="$acl_save_prefix"
7295
7296                           if test "X$x" = "X-L$additional_libdir"; then
7297                             haveit=yes
7298                             break
7299                           fi
7300                         done
7301                         if test -z "$haveit"; then
7302                           if test -d "$additional_libdir"; then
7303                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7304                           fi
7305                         fi
7306                       fi
7307                     fi
7308                     ;;
7309                   -R*)
7310                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7311                     if test "$enable_rpath" != no; then
7312                                                                   haveit=
7313                       for x in $rpathdirs; do
7314                         if test "X$x" = "X$dir"; then
7315                           haveit=yes
7316                           break
7317                         fi
7318                       done
7319                       if test -z "$haveit"; then
7320                         rpathdirs="$rpathdirs $dir"
7321                       fi
7322                                                                   haveit=
7323                       for x in $ltrpathdirs; do
7324                         if test "X$x" = "X$dir"; then
7325                           haveit=yes
7326                           break
7327                         fi
7328                       done
7329                       if test -z "$haveit"; then
7330                         ltrpathdirs="$ltrpathdirs $dir"
7331                       fi
7332                     fi
7333                     ;;
7334                   -l*)
7335                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7336                     ;;
7337                   *.la)
7338                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7339                     ;;
7340                   *)
7341                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7342                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7343                     ;;
7344                 esac
7345               done
7346             fi
7347           else
7348                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7349             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7350           fi
7351         fi
7352       fi
7353     done
7354   done
7355   if test "X$rpathdirs" != "X"; then
7356     if test -n "$hardcode_libdir_separator"; then
7357                         alldirs=
7358       for found_dir in $rpathdirs; do
7359         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7360       done
7361             acl_save_libdir="$libdir"
7362       libdir="$alldirs"
7363       eval flag=\"$hardcode_libdir_flag_spec\"
7364       libdir="$acl_save_libdir"
7365       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7366     else
7367             for found_dir in $rpathdirs; do
7368         acl_save_libdir="$libdir"
7369         libdir="$found_dir"
7370         eval flag=\"$hardcode_libdir_flag_spec\"
7371         libdir="$acl_save_libdir"
7372         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7373       done
7374     fi
7375   fi
7376   if test "X$ltrpathdirs" != "X"; then
7377             for found_dir in $ltrpathdirs; do
7378       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7379     done
7380   fi
7381
7382           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7383 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7384 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   gt_save_CPPFLAGS="$CPPFLAGS"
7388             CPPFLAGS="$CPPFLAGS $INCINTL"
7389             gt_save_LIBS="$LIBS"
7390             LIBS="$LIBS $LIBINTL"
7391                         cat >conftest.$ac_ext <<_ACEOF
7392 /* confdefs.h.  */
7393 _ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h.  */
7397 #include <libintl.h>
7398 extern int _nl_msg_cat_cntr;
7399 extern
7400 #ifdef __cplusplus
7401 "C"
7402 #endif
7403 const char *_nl_expand_alias (const char *);
7404 int
7405 main ()
7406 {
7407 bindtextdomain ("", "");
7408 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7415 case "(($ac_try" in
7416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417   *) ac_try_echo=$ac_try;;
7418 esac
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420   (eval "$ac_link") 2>conftest.er1
7421   ac_status=$?
7422   grep -v '^ *+' conftest.er1 >conftest.err
7423   rm -f conftest.er1
7424   cat conftest.err >&5
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); } && {
7427          test -z "$ac_c_werror_flag" ||
7428          test ! -s conftest.err
7429        } && test -s conftest$ac_exeext &&
7430        $as_test_x conftest$ac_exeext; then
7431   gt_cv_func_gnugettext1_libintl=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         gt_cv_func_gnugettext1_libintl=no
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440       conftest$ac_exeext conftest.$ac_ext
7441                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7442               LIBS="$LIBS $LIBICONV"
7443               cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h.  */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h.  */
7449 #include <libintl.h>
7450 extern int _nl_msg_cat_cntr;
7451 extern
7452 #ifdef __cplusplus
7453 "C"
7454 #endif
7455 const char *_nl_expand_alias (const char *);
7456 int
7457 main ()
7458 {
7459 bindtextdomain ("", "");
7460 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7461   ;
7462   return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7467 case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472   (eval "$ac_link") 2>conftest.er1
7473   ac_status=$?
7474   grep -v '^ *+' conftest.er1 >conftest.err
7475   rm -f conftest.er1
7476   cat conftest.err >&5
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } && {
7479          test -z "$ac_c_werror_flag" ||
7480          test ! -s conftest.err
7481        } && test -s conftest$ac_exeext &&
7482        $as_test_x conftest$ac_exeext; then
7483   LIBINTL="$LIBINTL $LIBICONV"
7484                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7485                 gt_cv_func_gnugettext1_libintl=yes
7486
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7495       conftest$ac_exeext conftest.$ac_ext
7496             fi
7497             CPPFLAGS="$gt_save_CPPFLAGS"
7498             LIBS="$gt_save_LIBS"
7499 fi
7500 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7501 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7502         fi
7503
7504                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7505            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7506                 && test "$PACKAGE" != gettext-runtime \
7507                 && test "$PACKAGE" != gettext-tools; }; then
7508           gt_use_preinstalled_gnugettext=yes
7509         else
7510                     LIBINTL=
7511           LTLIBINTL=
7512           INCINTL=
7513         fi
7514
7515
7516
7517     if test -n "$INTL_MACOSX_LIBS"; then
7518       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7519          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7520                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7521         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7522       fi
7523     fi
7524
7525     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7526        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7527
7528 cat >>confdefs.h <<\_ACEOF
7529 #define ENABLE_NLS 1
7530 _ACEOF
7531
7532     else
7533       USE_NLS=no
7534     fi
7535   fi
7536
7537   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7538 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7539   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7540 echo "${ECHO_T}$USE_NLS" >&6; }
7541   if test "$USE_NLS" = "yes"; then
7542     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7543 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7544     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7545       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7546         gt_source="external libintl"
7547       else
7548         gt_source="libc"
7549       fi
7550     else
7551       gt_source="included intl directory"
7552     fi
7553     { echo "$as_me:$LINENO: result: $gt_source" >&5
7554 echo "${ECHO_T}$gt_source" >&6; }
7555   fi
7556
7557   if test "$USE_NLS" = "yes"; then
7558
7559     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7560       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7561         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7562 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7563         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7564 echo "${ECHO_T}$LIBINTL" >&6; }
7565
7566   for element in $INCINTL; do
7567     haveit=
7568     for x in $CPPFLAGS; do
7569
7570   acl_save_prefix="$prefix"
7571   prefix="$acl_final_prefix"
7572   acl_save_exec_prefix="$exec_prefix"
7573   exec_prefix="$acl_final_exec_prefix"
7574   eval x=\"$x\"
7575   exec_prefix="$acl_save_exec_prefix"
7576   prefix="$acl_save_prefix"
7577
7578       if test "X$x" = "X$element"; then
7579         haveit=yes
7580         break
7581       fi
7582     done
7583     if test -z "$haveit"; then
7584       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7585     fi
7586   done
7587
7588       fi
7589
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_GETTEXT 1
7593 _ACEOF
7594
7595
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_DCGETTEXT 1
7598 _ACEOF
7599
7600     fi
7601
7602         POSUB=po
7603   fi
7604
7605
7606
7607     INTLLIBS="$LIBINTL"
7608
7609
7610
7611
7612
7613
7614 if test x${prefix} = xNONE ; then
7615    if test `eval echo ${datadir}` = NONE/share ; then
7616       datadir=/usr/share
7617    fi
7618 fi
7619
7620 # ------------------------------------------------------------------
7621 #  If the user has not set --prefix, we set our default to nothing.
7622 #  In this case, if the user has not set --sysconfdir, we set it
7623 #  to the package default of /etc/bacula.  If either --prefix or
7624 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7625 # ------------------------------------------------------------------
7626 if test x${prefix} = xNONE ; then
7627     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7628         sysconfdir=/etc/bacula
7629     fi
7630     prefix=
7631 fi
7632 sysconfdir=`eval echo ${sysconfdir}`
7633 datadir=`eval echo ${datadir}`
7634 localedir=`eval echo ${datadir}/locale`
7635 cat >>confdefs.h <<_ACEOF
7636 #define LOCALEDIR "$localedir"
7637 _ACEOF
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define SYSCONFDIR "$sysconfdir"
7641 _ACEOF
7642
7643
7644 # -------------------------------------------------------------------------
7645 #  If the user has not set --exec-prefix, we default to ${prefix}
7646 # -------------------------------------------------------------------------
7647 if test x${exec_prefix} = xNONE ; then
7648     exec_prefix=${prefix}
7649 fi
7650
7651 # ------------------------------------------------------------------
7652 # If the user has not set --sbindir, we set our default as /sbin
7653 # ------------------------------------------------------------------
7654 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7655     sbindir=${exec_prefix}/sbin
7656 fi
7657 sbindir=`eval echo ${sbindir}`
7658
7659
7660 # -------------------------------------------------------------------------
7661 #  If the user has not set --mandir, we default to /usr/share/man
7662 # -------------------------------------------------------------------------
7663 if test x$mandir = x'${prefix}/man' ; then
7664    mandir=/usr/share/man
7665 fi
7666
7667
7668 for ac_prog in msgfmt
7669 do
7670   # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_MSGFMT+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   case $MSGFMT in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697   ;;
7698 esac
7699 fi
7700 MSGFMT=$ac_cv_path_MSGFMT
7701 if test -n "$MSGFMT"; then
7702   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7703 echo "${ECHO_T}$MSGFMT" >&6; }
7704 else
7705   { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7707 fi
7708
7709
7710   test -n "$MSGFMT" && break
7711 done
7712 test -n "$MSGFMT" || MSGFMT="no"
7713
7714 if test "$MSGFMT" = "no"
7715 then
7716    echo 'msgfmt program not found, disabling NLS !'
7717    USE_NLS=no
7718    USE_INCLUDED_LIBINTL=no
7719 #else
7720
7721     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7722 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7723 if test "${ac_cv_gnu_library_2+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   cat >conftest.$ac_ext <<_ACEOF
7727 /* confdefs.h.  */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h.  */
7732
7733 #include <features.h>
7734 #ifdef __GNU_LIBRARY__
7735  #if (__GLIBC__ >= 2)
7736   Lucky GNU user
7737  #endif
7738 #endif
7739
7740 _ACEOF
7741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7743   ac_cv_gnu_library_2=yes
7744 else
7745   ac_cv_gnu_library_2=no
7746 fi
7747 rm -f conftest*
7748
7749
7750
7751 fi
7752 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7753 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7754
7755     GLIBC2="$ac_cv_gnu_library_2"
7756
7757
7758
7759         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7760 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7761 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   ac_check_lib_save_LIBS=$LIBS
7765 LIBS="-lcposix  $LIBS"
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h.  */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h.  */
7772
7773 /* Override any GCC internal prototype to avoid an error.
7774    Use char because int might match the return type of a GCC
7775    builtin and then its argument prototype would still apply.  */
7776 #ifdef __cplusplus
7777 extern "C"
7778 #endif
7779 char strerror ();
7780 int
7781 main ()
7782 {
7783 return strerror ();
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext conftest$ac_exeext
7789 if { (ac_try="$ac_link"
7790 case "(($ac_try" in
7791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792   *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795   (eval "$ac_link") 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } && {
7802          test -z "$ac_c_werror_flag" ||
7803          test ! -s conftest.err
7804        } && test -s conftest$ac_exeext &&
7805        $as_test_x conftest$ac_exeext; then
7806   ac_cv_lib_cposix_strerror=yes
7807 else
7808   echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7810
7811         ac_cv_lib_cposix_strerror=no
7812 fi
7813
7814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7815       conftest$ac_exeext conftest.$ac_ext
7816 LIBS=$ac_check_lib_save_LIBS
7817 fi
7818 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7819 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7820 if test $ac_cv_lib_cposix_strerror = yes; then
7821   LIBS="$LIBS -lcposix"
7822 fi
7823
7824
7825
7826 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7827 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7828 if test "${ac_cv_header_stdc+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837 #include <stdlib.h>
7838 #include <stdarg.h>
7839 #include <string.h>
7840 #include <float.h>
7841
7842 int
7843 main ()
7844 {
7845
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7852 case "(($ac_try" in
7853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854   *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857   (eval "$ac_compile") 2>conftest.er1
7858   ac_status=$?
7859   grep -v '^ *+' conftest.er1 >conftest.err
7860   rm -f conftest.er1
7861   cat conftest.err >&5
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } && {
7864          test -z "$ac_c_werror_flag" ||
7865          test ! -s conftest.err
7866        } && test -s conftest.$ac_objext; then
7867   ac_cv_header_stdc=yes
7868 else
7869   echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872         ac_cv_header_stdc=no
7873 fi
7874
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876
7877 if test $ac_cv_header_stdc = yes; then
7878   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7879   cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885 #include <string.h>
7886
7887 _ACEOF
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889   $EGREP "memchr" >/dev/null 2>&1; then
7890   :
7891 else
7892   ac_cv_header_stdc=no
7893 fi
7894 rm -f conftest*
7895
7896 fi
7897
7898 if test $ac_cv_header_stdc = yes; then
7899   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7900   cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906 #include <stdlib.h>
7907
7908 _ACEOF
7909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910   $EGREP "free" >/dev/null 2>&1; then
7911   :
7912 else
7913   ac_cv_header_stdc=no
7914 fi
7915 rm -f conftest*
7916
7917 fi
7918
7919 if test $ac_cv_header_stdc = yes; then
7920   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7921   if test "$cross_compiling" = yes; then
7922   :
7923 else
7924   cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h.  */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h.  */
7930 #include <ctype.h>
7931 #include <stdlib.h>
7932 #if ((' ' & 0x0FF) == 0x020)
7933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7935 #else
7936 # define ISLOWER(c) \
7937                    (('a' <= (c) && (c) <= 'i') \
7938                      || ('j' <= (c) && (c) <= 'r') \
7939                      || ('s' <= (c) && (c) <= 'z'))
7940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7941 #endif
7942
7943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7944 int
7945 main ()
7946 {
7947   int i;
7948   for (i = 0; i < 256; i++)
7949     if (XOR (islower (i), ISLOWER (i))
7950         || toupper (i) != TOUPPER (i))
7951       return 2;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7957 case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962   (eval "$ac_link") 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7966   { (case "(($ac_try" in
7967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968   *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971   (eval "$ac_try") 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   :
7976 else
7977   echo "$as_me: program exited with status $ac_status" >&5
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ( exit $ac_status )
7982 ac_cv_header_stdc=no
7983 fi
7984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7985 fi
7986
7987
7988 fi
7989 fi
7990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7992 if test $ac_cv_header_stdc = yes; then
7993
7994 cat >>confdefs.h <<\_ACEOF
7995 #define STDC_HEADERS 1
7996 _ACEOF
7997
7998 fi
7999
8000 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8001 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8002 if test "${ac_cv_c_const+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011
8012 int
8013 main ()
8014 {
8015 /* FIXME: Include the comments suggested by Paul. */
8016 #ifndef __cplusplus
8017   /* Ultrix mips cc rejects this.  */
8018   typedef int charset[2];
8019   const charset cs;
8020   /* SunOS 4.1.1 cc rejects this.  */
8021   char const *const *pcpcc;
8022   char **ppc;
8023   /* NEC SVR4.0.2 mips cc rejects this.  */
8024   struct point {int x, y;};
8025   static struct point const zero = {0,0};
8026   /* AIX XL C 1.02.0.0 rejects this.
8027      It does not let you subtract one const X* pointer from another in
8028      an arm of an if-expression whose if-part is not a constant
8029      expression */
8030   const char *g = "string";
8031   pcpcc = &g + (g ? g-g : 0);
8032   /* HPUX 7.0 cc rejects these. */
8033   ++pcpcc;
8034   ppc = (char**) pcpcc;
8035   pcpcc = (char const *const *) ppc;
8036   { /* SCO 3.2v4 cc rejects this.  */
8037     char *t;
8038     char const *s = 0 ? (char *) 0 : (char const *) 0;
8039
8040     *t++ = 0;
8041     if (s) return 0;
8042   }
8043   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8044     int x[] = {25, 17};
8045     const int *foo = &x[0];
8046     ++foo;
8047   }
8048   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8049     typedef const int *iptr;
8050     iptr p = 0;
8051     ++p;
8052   }
8053   { /* AIX XL C 1.02.0.0 rejects this saying
8054        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8055     struct s { int j; const int *ap[3]; };
8056     struct s *b; b->j = 5;
8057   }
8058   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8059     const int foo = 10;
8060     if (!foo) return 0;
8061   }
8062   return !cs[0] && !zero.x;
8063 #endif
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076   (eval "$ac_compile") 2>conftest.er1
8077   ac_status=$?
8078   grep -v '^ *+' conftest.er1 >conftest.err
8079   rm -f conftest.er1
8080   cat conftest.err >&5
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } && {
8083          test -z "$ac_c_werror_flag" ||
8084          test ! -s conftest.err
8085        } && test -s conftest.$ac_objext; then
8086   ac_cv_c_const=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091         ac_cv_c_const=no
8092 fi
8093
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8097 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8098 if test $ac_cv_c_const = no; then
8099
8100 cat >>confdefs.h <<\_ACEOF
8101 #define const
8102 _ACEOF
8103
8104 fi
8105
8106
8107   { echo "$as_me:$LINENO: checking for signed" >&5
8108 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8109 if test "${bh_cv_c_signed+set}" = set; then
8110   echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112   cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118
8119 int
8120 main ()
8121 {
8122 signed char x;
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (ac_try="$ac_compile"
8129 case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_compile") 2>conftest.er1
8135   ac_status=$?
8136   grep -v '^ *+' conftest.er1 >conftest.err
8137   rm -f conftest.er1
8138   cat conftest.err >&5
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); } && {
8141          test -z "$ac_c_werror_flag" ||
8142          test ! -s conftest.err
8143        } && test -s conftest.$ac_objext; then
8144   bh_cv_c_signed=yes
8145 else
8146   echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8148
8149         bh_cv_c_signed=no
8150 fi
8151
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8155 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8156   if test $bh_cv_c_signed = no; then
8157
8158 cat >>confdefs.h <<\_ACEOF
8159 #define signed
8160 _ACEOF
8161
8162   fi
8163
8164 { echo "$as_me:$LINENO: checking for inline" >&5
8165 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8166 if test "${ac_cv_c_inline+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   ac_cv_c_inline=no
8170 for ac_kw in inline __inline__ __inline; do
8171   cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h.  */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h.  */
8177 #ifndef __cplusplus
8178 typedef int foo_t;
8179 static $ac_kw foo_t static_foo () {return 0; }
8180 $ac_kw foo_t foo () {return 0; }
8181 #endif
8182
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191   (eval "$ac_compile") 2>conftest.er1
8192   ac_status=$?
8193   grep -v '^ *+' conftest.er1 >conftest.err
8194   rm -f conftest.er1
8195   cat conftest.err >&5
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } && {
8198          test -z "$ac_c_werror_flag" ||
8199          test ! -s conftest.err
8200        } && test -s conftest.$ac_objext; then
8201   ac_cv_c_inline=$ac_kw
8202 else
8203   echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206
8207 fi
8208
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210   test "$ac_cv_c_inline" != no && break
8211 done
8212
8213 fi
8214 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8215 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8216
8217
8218 case $ac_cv_c_inline in
8219   inline | yes) ;;
8220   *)
8221     case $ac_cv_c_inline in
8222       no) ac_val=;;
8223       *) ac_val=$ac_cv_c_inline;;
8224     esac
8225     cat >>confdefs.h <<_ACEOF
8226 #ifndef __cplusplus
8227 #define inline $ac_val
8228 #endif
8229 _ACEOF
8230     ;;
8231 esac
8232
8233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8244                   inttypes.h stdint.h unistd.h
8245 do
8246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8250   echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252   cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h.  */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h.  */
8258 $ac_includes_default
8259
8260 #include <$ac_header>
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8264 case "(($ac_try" in
8265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266   *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } && {
8276          test -z "$ac_c_werror_flag" ||
8277          test ! -s conftest.err
8278        } && test -s conftest.$ac_objext; then
8279   eval "$as_ac_Header=yes"
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         eval "$as_ac_Header=no"
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 fi
8289 ac_res=`eval echo '${'$as_ac_Header'}'`
8290                { echo "$as_me:$LINENO: result: $ac_res" >&5
8291 echo "${ECHO_T}$ac_res" >&6; }
8292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8293   cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8295 _ACEOF
8296
8297 fi
8298
8299 done
8300
8301
8302 { echo "$as_me:$LINENO: checking for off_t" >&5
8303 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8304 if test "${ac_cv_type_off_t+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313 $ac_includes_default
8314 typedef off_t ac__type_new_;
8315 int
8316 main ()
8317 {
8318 if ((ac__type_new_ *) 0)
8319   return 0;
8320 if (sizeof (ac__type_new_))
8321   return 0;
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 rm -f conftest.$ac_objext
8327 if { (ac_try="$ac_compile"
8328 case "(($ac_try" in
8329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330   *) ac_try_echo=$ac_try;;
8331 esac
8332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333   (eval "$ac_compile") 2>conftest.er1
8334   ac_status=$?
8335   grep -v '^ *+' conftest.er1 >conftest.err
8336   rm -f conftest.er1
8337   cat conftest.err >&5
8338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339   (exit $ac_status); } && {
8340          test -z "$ac_c_werror_flag" ||
8341          test ! -s conftest.err
8342        } && test -s conftest.$ac_objext; then
8343   ac_cv_type_off_t=yes
8344 else
8345   echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8347
8348         ac_cv_type_off_t=no
8349 fi
8350
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8354 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8355 if test $ac_cv_type_off_t = yes; then
8356   :
8357 else
8358
8359 cat >>confdefs.h <<_ACEOF
8360 #define off_t long int
8361 _ACEOF
8362
8363 fi
8364
8365 { echo "$as_me:$LINENO: checking for size_t" >&5
8366 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8367 if test "${ac_cv_type_size_t+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376 $ac_includes_default
8377 typedef size_t ac__type_new_;
8378 int
8379 main ()
8380 {
8381 if ((ac__type_new_ *) 0)
8382   return 0;
8383 if (sizeof (ac__type_new_))
8384   return 0;
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_compile") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } && {
8403          test -z "$ac_c_werror_flag" ||
8404          test ! -s conftest.err
8405        } && test -s conftest.$ac_objext; then
8406   ac_cv_type_size_t=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411         ac_cv_type_size_t=no
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 fi
8416 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8417 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8418 if test $ac_cv_type_size_t = yes; then
8419   :
8420 else
8421
8422 cat >>confdefs.h <<_ACEOF
8423 #define size_t unsigned int
8424 _ACEOF
8425
8426 fi
8427
8428
8429   { echo "$as_me:$LINENO: checking for long long" >&5
8430 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8431 if test "${ac_cv_type_long_long+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440 long long ll = 1LL; int i = 63;
8441 int
8442 main ()
8443 {
8444 long long llmax = (long long) -1;
8445      return ll << i | ll >> i | llmax / ll | llmax % ll;
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8452 case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_link") 2>conftest.er1
8458   ac_status=$?
8459   grep -v '^ *+' conftest.er1 >conftest.err
8460   rm -f conftest.er1
8461   cat conftest.err >&5
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } && {
8464          test -z "$ac_c_werror_flag" ||
8465          test ! -s conftest.err
8466        } && test -s conftest$ac_exeext &&
8467        $as_test_x conftest$ac_exeext; then
8468   ac_cv_type_long_long=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473         ac_cv_type_long_long=no
8474 fi
8475
8476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8477       conftest$ac_exeext conftest.$ac_ext
8478 fi
8479 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8480 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8481   if test $ac_cv_type_long_long = yes; then
8482
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_LONG_LONG 1
8485 _ACEOF
8486
8487   fi
8488
8489
8490   { echo "$as_me:$LINENO: checking for long double" >&5
8491 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8492 if test "${gt_cv_c_long_double+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   if test "$GCC" = yes; then
8496        gt_cv_c_long_double=yes
8497      else
8498        cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8506          long double foo = 0.0;
8507          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8508          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8509
8510 int
8511 main ()
8512 {
8513
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522   *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525   (eval "$ac_compile") 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } && {
8532          test -z "$ac_c_werror_flag" ||
8533          test ! -s conftest.err
8534        } && test -s conftest.$ac_objext; then
8535   gt_cv_c_long_double=yes
8536 else
8537   echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540         gt_cv_c_long_double=no
8541 fi
8542
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544      fi
8545 fi
8546 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8547 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8548   if test $gt_cv_c_long_double = yes; then
8549
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_LONG_DOUBLE 1
8552 _ACEOF
8553
8554   fi
8555
8556
8557   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8558 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8559 if test "${gt_cv_c_wchar_t+set}" = set; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562   cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568 #include <stddef.h>
8569        wchar_t foo = (wchar_t)'\0';
8570 int
8571 main ()
8572 {
8573
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_compile") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } && {
8592          test -z "$ac_c_werror_flag" ||
8593          test ! -s conftest.err
8594        } && test -s conftest.$ac_objext; then
8595   gt_cv_c_wchar_t=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600         gt_cv_c_wchar_t=no
8601 fi
8602
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 fi
8605 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8606 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8607   if test $gt_cv_c_wchar_t = yes; then
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define HAVE_WCHAR_T 1
8611 _ACEOF
8612
8613   fi
8614
8615
8616   { echo "$as_me:$LINENO: checking for wint_t" >&5
8617 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8618 if test "${gt_cv_c_wint_t+set}" = set; then
8619   echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621   cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627 #include <wchar.h>
8628        wint_t foo = (wchar_t)'\0';
8629 int
8630 main ()
8631 {
8632
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_compile") 2>conftest.er1
8645   ac_status=$?
8646   grep -v '^ *+' conftest.er1 >conftest.err
8647   rm -f conftest.er1
8648   cat conftest.err >&5
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); } && {
8651          test -z "$ac_c_werror_flag" ||
8652          test ! -s conftest.err
8653        } && test -s conftest.$ac_objext; then
8654   gt_cv_c_wint_t=yes
8655 else
8656   echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659         gt_cv_c_wint_t=no
8660 fi
8661
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8665 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8666   if test $gt_cv_c_wint_t = yes; then
8667
8668 cat >>confdefs.h <<\_ACEOF
8669 #define HAVE_WINT_T 1
8670 _ACEOF
8671
8672   fi
8673
8674
8675   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8676 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8677 if test "${gl_cv_header_inttypes_h+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686 #include <sys/types.h>
8687 #include <inttypes.h>
8688 int
8689 main ()
8690 {
8691 uintmax_t i = (uintmax_t) -1;
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700   *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703   (eval "$ac_compile") 2>conftest.er1
8704   ac_status=$?
8705   grep -v '^ *+' conftest.er1 >conftest.err
8706   rm -f conftest.er1
8707   cat conftest.err >&5
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); } && {
8710          test -z "$ac_c_werror_flag" ||
8711          test ! -s conftest.err
8712        } && test -s conftest.$ac_objext; then
8713   gl_cv_header_inttypes_h=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718         gl_cv_header_inttypes_h=no
8719 fi
8720
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8724 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8725   if test $gl_cv_header_inttypes_h = yes; then
8726
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8729 _ACEOF
8730
8731   fi
8732
8733
8734   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8735 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8736 if test "${gl_cv_header_stdint_h+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h.  */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h.  */
8745 #include <sys/types.h>
8746 #include <stdint.h>
8747 int
8748 main ()
8749 {
8750 uintmax_t i = (uintmax_t) -1;
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 rm -f conftest.$ac_objext
8756 if { (ac_try="$ac_compile"
8757 case "(($ac_try" in
8758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759   *) ac_try_echo=$ac_try;;
8760 esac
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762   (eval "$ac_compile") 2>conftest.er1
8763   ac_status=$?
8764   grep -v '^ *+' conftest.er1 >conftest.err
8765   rm -f conftest.er1
8766   cat conftest.err >&5
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } && {
8769          test -z "$ac_c_werror_flag" ||
8770          test ! -s conftest.err
8771        } && test -s conftest.$ac_objext; then
8772   gl_cv_header_stdint_h=yes
8773 else
8774   echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777         gl_cv_header_stdint_h=no
8778 fi
8779
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781 fi
8782 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8783 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8784   if test $gl_cv_header_stdint_h = yes; then
8785
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_STDINT_H_WITH_UINTMAX 1
8788 _ACEOF
8789
8790   fi
8791
8792
8793
8794
8795   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8796 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8797 if test "${gt_cv_c_intmax_t+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806
8807 #include <stddef.h>
8808 #include <stdlib.h>
8809 #if HAVE_STDINT_H_WITH_UINTMAX
8810 #include <stdint.h>
8811 #endif
8812 #if HAVE_INTTYPES_H_WITH_UINTMAX
8813 #include <inttypes.h>
8814 #endif
8815
8816 int
8817 main ()
8818 {
8819 intmax_t x = -1;
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext
8825 if { (ac_try="$ac_compile"
8826 case "(($ac_try" in
8827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828   *) ac_try_echo=$ac_try;;
8829 esac
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831   (eval "$ac_compile") 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } && {
8838          test -z "$ac_c_werror_flag" ||
8839          test ! -s conftest.err
8840        } && test -s conftest.$ac_objext; then
8841   gt_cv_c_intmax_t=yes
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846         gt_cv_c_intmax_t=no
8847 fi
8848
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8852 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8853   if test $gt_cv_c_intmax_t = yes; then
8854
8855 cat >>confdefs.h <<\_ACEOF
8856 #define HAVE_INTMAX_T 1
8857 _ACEOF
8858
8859   fi
8860
8861
8862
8863   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8864 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8865 if test "${gt_cv_func_printf_posix+set}" = set; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868
8869       if test "$cross_compiling" = yes; then
8870
8871         cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h.  */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h.  */
8877
8878 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8879   notposix
8880 #endif
8881
8882 _ACEOF
8883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8884   $EGREP "notposix" >/dev/null 2>&1; then
8885   gt_cv_func_printf_posix="guessing no"
8886 else
8887   gt_cv_func_printf_posix="guessing yes"
8888 fi
8889 rm -f conftest*
8890
8891
8892 else
8893   cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899
8900 #include <stdio.h>
8901 #include <string.h>
8902 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8903    dollar expansion (possibly an autoconf bug).  */
8904 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8905 static char buf[100];
8906 int main ()
8907 {
8908   sprintf (buf, format, 33, 55);
8909   return (strcmp (buf, "55 33") != 0);
8910 }
8911 _ACEOF
8912 rm -f conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_link") 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8923   { (case "(($ac_try" in
8924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925   *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928   (eval "$ac_try") 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; }; then
8932   gt_cv_func_printf_posix=yes
8933 else
8934   echo "$as_me: program exited with status $ac_status" >&5
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ( exit $ac_status )
8939 gt_cv_func_printf_posix=no
8940 fi
8941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8942 fi
8943
8944
8945
8946 fi
8947 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8948 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8949   case $gt_cv_func_printf_posix in
8950     *yes)
8951
8952 cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_POSIX_PRINTF 1
8954 _ACEOF
8955
8956       ;;
8957   esac
8958
8959 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8960 # for constant arguments.  Useless!
8961 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8962 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8963 if test "${ac_cv_working_alloca_h+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972 #include <alloca.h>
8973 int
8974 main ()
8975 {
8976 char *p = (char *) alloca (2 * sizeof (int));
8977                           if (p) return 0;
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 rm -f conftest.$ac_objext conftest$ac_exeext
8983 if { (ac_try="$ac_link"
8984 case "(($ac_try" in
8985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986   *) ac_try_echo=$ac_try;;
8987 esac
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989   (eval "$ac_link") 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } && {
8996          test -z "$ac_c_werror_flag" ||
8997          test ! -s conftest.err
8998        } && test -s conftest$ac_exeext &&
8999        $as_test_x conftest$ac_exeext; then
9000   ac_cv_working_alloca_h=yes
9001 else
9002   echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005         ac_cv_working_alloca_h=no
9006 fi
9007
9008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9009       conftest$ac_exeext conftest.$ac_ext
9010 fi
9011 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9012 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9013 if test $ac_cv_working_alloca_h = yes; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_ALLOCA_H 1
9017 _ACEOF
9018
9019 fi
9020
9021 { echo "$as_me:$LINENO: checking for alloca" >&5
9022 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9023 if test "${ac_cv_func_alloca_works+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032 #ifdef __GNUC__
9033 # define alloca __builtin_alloca
9034 #else
9035 # ifdef _MSC_VER
9036 #  include <malloc.h>
9037 #  define alloca _alloca
9038 # else
9039 #  ifdef HAVE_ALLOCA_H
9040 #   include <alloca.h>
9041 #  else
9042 #   ifdef _AIX
9043  #pragma alloca
9044 #   else
9045 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9046 char *alloca ();
9047 #    endif
9048 #   endif
9049 #  endif
9050 # endif
9051 #endif
9052
9053 int
9054 main ()
9055 {
9056 char *p = (char *) alloca (1);
9057                                     if (p) return 0;
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (ac_try="$ac_link"
9064 case "(($ac_try" in
9065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066   *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069   (eval "$ac_link") 2>conftest.er1
9070   ac_status=$?
9071   grep -v '^ *+' conftest.er1 >conftest.err
9072   rm -f conftest.er1
9073   cat conftest.err >&5
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); } && {
9076          test -z "$ac_c_werror_flag" ||
9077          test ! -s conftest.err
9078        } && test -s conftest$ac_exeext &&
9079        $as_test_x conftest$ac_exeext; then
9080   ac_cv_func_alloca_works=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085         ac_cv_func_alloca_works=no
9086 fi
9087
9088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9089       conftest$ac_exeext conftest.$ac_ext
9090 fi
9091 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9092 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9093
9094 if test $ac_cv_func_alloca_works = yes; then
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_ALLOCA 1
9098 _ACEOF
9099
9100 else
9101   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9102 # that cause trouble.  Some versions do not even contain alloca or
9103 # contain a buggy version.  If you still want to use their alloca,
9104 # use ar to extract alloca.o from them instead of compiling alloca.c.
9105
9106 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9107
9108 cat >>confdefs.h <<\_ACEOF
9109 #define C_ALLOCA 1
9110 _ACEOF
9111
9112
9113 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9114 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9115 if test "${ac_cv_os_cray+set}" = set; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124 #if defined CRAY && ! defined CRAY2
9125 webecray
9126 #else
9127 wenotbecray
9128 #endif
9129
9130 _ACEOF
9131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9132   $EGREP "webecray" >/dev/null 2>&1; then
9133   ac_cv_os_cray=yes
9134 else
9135   ac_cv_os_cray=no
9136 fi
9137 rm -f conftest*
9138
9139 fi
9140 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9141 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9142 if test $ac_cv_os_cray = yes; then
9143   for ac_func in _getb67 GETB67 getb67; do
9144     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9158 #define $ac_func innocuous_$ac_func
9159
9160 /* System header to define __stub macros and hopefully few prototypes,
9161     which can conflict with char $ac_func (); below.
9162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9163     <limits.h> exists even on freestanding compilers.  */
9164
9165 #ifdef __STDC__
9166 # include <limits.h>
9167 #else
9168 # include <assert.h>
9169 #endif
9170
9171 #undef $ac_func
9172
9173 /* Override any GCC internal prototype to avoid an error.
9174    Use char because int might match the return type of a GCC
9175    builtin and then its argument prototype would still apply.  */
9176 #ifdef __cplusplus
9177 extern "C"
9178 #endif
9179 char $ac_func ();
9180 /* The GNU C library defines this for functions which it implements
9181     to always fail with ENOSYS.  Some functions are actually named
9182     something starting with __ and the normal name is an alias.  */
9183 #if defined __stub_$ac_func || defined __stub___$ac_func
9184 choke me
9185 #endif
9186
9187 int
9188 main ()
9189 {
9190 return $ac_func ();
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9197 case "(($ac_try" in
9198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199   *) ac_try_echo=$ac_try;;
9200 esac
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202   (eval "$ac_link") 2>conftest.er1
9203   ac_status=$?
9204   grep -v '^ *+' conftest.er1 >conftest.err
9205   rm -f conftest.er1
9206   cat conftest.err >&5
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); } && {
9209          test -z "$ac_c_werror_flag" ||
9210          test ! -s conftest.err
9211        } && test -s conftest$ac_exeext &&
9212        $as_test_x conftest$ac_exeext; then
9213   eval "$as_ac_var=yes"
9214 else
9215   echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9217
9218         eval "$as_ac_var=no"
9219 fi
9220
9221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9222       conftest$ac_exeext conftest.$ac_ext
9223 fi
9224 ac_res=`eval echo '${'$as_ac_var'}'`
9225                { echo "$as_me:$LINENO: result: $ac_res" >&5
9226 echo "${ECHO_T}$ac_res" >&6; }
9227 if test `eval echo '${'$as_ac_var'}'` = yes; then
9228
9229 cat >>confdefs.h <<_ACEOF
9230 #define CRAY_STACKSEG_END $ac_func
9231 _ACEOF
9232
9233     break
9234 fi
9235
9236   done
9237 fi
9238
9239 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9241 if test "${ac_cv_c_stack_direction+set}" = set; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244   if test "$cross_compiling" = yes; then
9245   ac_cv_c_stack_direction=0
9246 else
9247   cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253 $ac_includes_default
9254 int
9255 find_stack_direction ()
9256 {
9257   static char *addr = 0;
9258   auto char dummy;
9259   if (addr == 0)
9260     {
9261       addr = &dummy;
9262       return find_stack_direction ();
9263     }
9264   else
9265     return (&dummy > addr) ? 1 : -1;
9266 }
9267
9268 int
9269 main ()
9270 {
9271   return find_stack_direction () < 0;
9272 }
9273 _ACEOF
9274 rm -f conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9276 case "(($ac_try" in
9277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278   *) ac_try_echo=$ac_try;;
9279 esac
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281   (eval "$ac_link") 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9285   { (case "(($ac_try" in
9286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287   *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290   (eval "$ac_try") 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; }; then
9294   ac_cv_c_stack_direction=1
9295 else
9296   echo "$as_me: program exited with status $ac_status" >&5
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ( exit $ac_status )
9301 ac_cv_c_stack_direction=-1
9302 fi
9303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9304 fi
9305
9306
9307 fi
9308 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9309 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9310
9311 cat >>confdefs.h <<_ACEOF
9312 #define STACK_DIRECTION $ac_cv_c_stack_direction
9313 _ACEOF
9314
9315
9316 fi
9317
9318
9319
9320 for ac_header in stdlib.h unistd.h
9321 do
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 fi
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330                { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9332 else
9333   # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h.  */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h.  */
9342 $ac_includes_default
9343 #include <$ac_header>
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9347 case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_compile") 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } && {
9359          test -z "$ac_c_werror_flag" ||
9360          test ! -s conftest.err
9361        } && test -s conftest.$ac_objext; then
9362   ac_header_compiler=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         ac_header_compiler=no
9368 fi
9369
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9373
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <$ac_header>
9384 _ACEOF
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } >/dev/null && {
9398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399          test ! -s conftest.err
9400        }; then
9401   ac_header_preproc=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406   ac_header_preproc=no
9407 fi
9408
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9412
9413 # So?  What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415   yes:no: )
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420     ac_header_preproc=yes
9421     ;;
9422   no:yes:* )
9423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9435
9436     ;;
9437 esac
9438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   eval "$as_ac_Header=\$ac_header_preproc"
9444 fi
9445 ac_res=`eval echo '${'$as_ac_Header'}'`
9446                { echo "$as_me:$LINENO: result: $ac_res" >&5
9447 echo "${ECHO_T}$ac_res" >&6; }
9448
9449 fi
9450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9451   cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9453 _ACEOF
9454
9455 fi
9456
9457 done
9458
9459
9460 for ac_func in getpagesize
9461 do
9462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9476 #define $ac_func innocuous_$ac_func
9477
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char $ac_func (); below.
9480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481     <limits.h> exists even on freestanding compilers.  */
9482
9483 #ifdef __STDC__
9484 # include <limits.h>
9485 #else
9486 # include <assert.h>
9487 #endif
9488
9489 #undef $ac_func
9490
9491 /* Override any GCC internal prototype to avoid an error.
9492    Use char because int might match the return type of a GCC
9493    builtin and then its argument prototype would still apply.  */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char $ac_func ();
9498 /* The GNU C library defines this for functions which it implements
9499     to always fail with ENOSYS.  Some functions are actually named
9500     something starting with __ and the normal name is an alias.  */
9501 #if defined __stub_$ac_func || defined __stub___$ac_func
9502 choke me
9503 #endif
9504
9505 int
9506 main ()
9507 {
9508 return $ac_func ();
9509   ;
9510   return 0;
9511 }
9512 _ACEOF
9513 rm -f conftest.$ac_objext conftest$ac_exeext
9514 if { (ac_try="$ac_link"
9515 case "(($ac_try" in
9516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517   *) ac_try_echo=$ac_try;;
9518 esac
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520   (eval "$ac_link") 2>conftest.er1
9521   ac_status=$?
9522   grep -v '^ *+' conftest.er1 >conftest.err
9523   rm -f conftest.er1
9524   cat conftest.err >&5
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); } && {
9527          test -z "$ac_c_werror_flag" ||
9528          test ! -s conftest.err
9529        } && test -s conftest$ac_exeext &&
9530        $as_test_x conftest$ac_exeext; then
9531   eval "$as_ac_var=yes"
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536         eval "$as_ac_var=no"
9537 fi
9538
9539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9540       conftest$ac_exeext conftest.$ac_ext
9541 fi
9542 ac_res=`eval echo '${'$as_ac_var'}'`
9543                { echo "$as_me:$LINENO: result: $ac_res" >&5
9544 echo "${ECHO_T}$ac_res" >&6; }
9545 if test `eval echo '${'$as_ac_var'}'` = yes; then
9546   cat >>confdefs.h <<_ACEOF
9547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9548 _ACEOF
9549
9550 fi
9551 done
9552
9553 { echo "$as_me:$LINENO: checking for working mmap" >&5
9554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9556   echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558   if test "$cross_compiling" = yes; then
9559   ac_cv_func_mmap_fixed_mapped=no
9560 else
9561   cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h.  */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h.  */
9567 $ac_includes_default
9568 /* malloc might have been renamed as rpl_malloc. */
9569 #undef malloc
9570
9571 /* Thanks to Mike Haertel and Jim Avera for this test.
9572    Here is a matrix of mmap possibilities:
9573         mmap private not fixed
9574         mmap private fixed at somewhere currently unmapped
9575         mmap private fixed at somewhere already mapped
9576         mmap shared not fixed
9577         mmap shared fixed at somewhere currently unmapped
9578         mmap shared fixed at somewhere already mapped
9579    For private mappings, we should verify that changes cannot be read()
9580    back from the file, nor mmap's back from the file at a different
9581    address.  (There have been systems where private was not correctly
9582    implemented like the infamous i386 svr4.0, and systems where the
9583    VM page cache was not coherent with the file system buffer cache
9584    like early versions of FreeBSD and possibly contemporary NetBSD.)
9585    For shared mappings, we should conversely verify that changes get
9586    propagated back to all the places they're supposed to be.
9587
9588    Grep wants private fixed already mapped.
9589    The main things grep needs to know about mmap are:
9590    * does it exist and is it safe to write into the mmap'd area
9591    * how to use it (BSD variants)  */
9592
9593 #include <fcntl.h>
9594 #include <sys/mman.h>
9595
9596 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9597 char *malloc ();
9598 #endif
9599
9600 /* This mess was copied from the GNU getpagesize.h.  */
9601 #ifndef HAVE_GETPAGESIZE
9602 /* Assume that all systems that can run configure have sys/param.h.  */
9603 # ifndef HAVE_SYS_PARAM_H
9604 #  define HAVE_SYS_PARAM_H 1
9605 # endif
9606
9607 # ifdef _SC_PAGESIZE
9608 #  define getpagesize() sysconf(_SC_PAGESIZE)
9609 # else /* no _SC_PAGESIZE */
9610 #  ifdef HAVE_SYS_PARAM_H
9611 #   include <sys/param.h>
9612 #   ifdef EXEC_PAGESIZE
9613 #    define getpagesize() EXEC_PAGESIZE
9614 #   else /* no EXEC_PAGESIZE */
9615 #    ifdef NBPG
9616 #     define getpagesize() NBPG * CLSIZE
9617 #     ifndef CLSIZE
9618 #      define CLSIZE 1
9619 #     endif /* no CLSIZE */
9620 #    else /* no NBPG */
9621 #     ifdef NBPC
9622 #      define getpagesize() NBPC
9623 #     else /* no NBPC */
9624 #      ifdef PAGESIZE
9625 #       define getpagesize() PAGESIZE
9626 #      endif /* PAGESIZE */
9627 #     endif /* no NBPC */
9628 #    endif /* no NBPG */
9629 #   endif /* no EXEC_PAGESIZE */
9630 #  else /* no HAVE_SYS_PARAM_H */
9631 #   define getpagesize() 8192   /* punt totally */
9632 #  endif /* no HAVE_SYS_PARAM_H */
9633 # endif /* no _SC_PAGESIZE */
9634
9635 #endif /* no HAVE_GETPAGESIZE */
9636
9637 int
9638 main ()
9639 {
9640   char *data, *data2, *data3;
9641   int i, pagesize;
9642   int fd;
9643
9644   pagesize = getpagesize ();
9645
9646   /* First, make a file with some known garbage in it. */
9647   data = (char *) malloc (pagesize);
9648   if (!data)
9649     return 1;
9650   for (i = 0; i < pagesize; ++i)
9651     *(data + i) = rand ();
9652   umask (0);
9653   fd = creat ("conftest.mmap", 0600);
9654   if (fd < 0)
9655     return 1;
9656   if (write (fd, data, pagesize) != pagesize)
9657     return 1;
9658   close (fd);
9659
9660   /* Next, try to mmap the file at a fixed address which already has
9661      something else allocated at it.  If we can, also make sure that
9662      we see the same garbage.  */
9663   fd = open ("conftest.mmap", O_RDWR);
9664   if (fd < 0)
9665     return 1;
9666   data2 = (char *) malloc (2 * pagesize);
9667   if (!data2)
9668     return 1;
9669   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9670   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9671                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9672     return 1;
9673   for (i = 0; i < pagesize; ++i)
9674     if (*(data + i) != *(data2 + i))
9675       return 1;
9676
9677   /* Finally, make sure that changes to the mapped area do not
9678      percolate back to the file as seen by read().  (This is a bug on
9679      some variants of i386 svr4.0.)  */
9680   for (i = 0; i < pagesize; ++i)
9681     *(data2 + i) = *(data2 + i) + 1;
9682   data3 = (char *) malloc (pagesize);
9683   if (!data3)
9684     return 1;
9685   if (read (fd, data3, pagesize) != pagesize)
9686     return 1;
9687   for (i = 0; i < pagesize; ++i)
9688     if (*(data + i) != *(data3 + i))
9689       return 1;
9690   close (fd);
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9696 case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_link") 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9705   { (case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710   (eval "$ac_try") 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_func_mmap_fixed_mapped=yes
9715 else
9716   echo "$as_me: program exited with status $ac_status" >&5
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 ( exit $ac_status )
9721 ac_cv_func_mmap_fixed_mapped=no
9722 fi
9723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9724 fi
9725
9726
9727 fi
9728 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9729 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9730 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9731
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_MMAP 1
9734 _ACEOF
9735
9736 fi
9737 rm -f conftest.mmap
9738
9739
9740     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9741 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9742 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9743   echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745   cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751
9752 #include <features.h>
9753 #ifdef __GNU_LIBRARY__
9754  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9755   Lucky GNU user
9756  #endif
9757 #endif
9758
9759 _ACEOF
9760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9761   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9762   ac_cv_gnu_library_2_1=yes
9763 else
9764   ac_cv_gnu_library_2_1=no
9765 fi
9766 rm -f conftest*
9767
9768
9769
9770 fi
9771 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9772 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9773
9774     GLIBC21="$ac_cv_gnu_library_2_1"
9775
9776
9777
9778
9779   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9780 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9781 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784
9785       if test "$cross_compiling" = yes; then
9786
9787           # Guess based on the CPU.
9788           case "$host_cpu" in
9789             alpha* | i3456786 | m68k | s390*)
9790               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9791             *)
9792               gt_cv_int_divbyzero_sigfpe="guessing no";;
9793           esac
9794
9795 else
9796   cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 #include <stdlib.h>
9804 #include <signal.h>
9805
9806 static void
9807 #ifdef __cplusplus
9808 sigfpe_handler (int sig)
9809 #else
9810 sigfpe_handler (sig) int sig;
9811 #endif
9812 {
9813   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9814   exit (sig != SIGFPE);
9815 }
9816
9817 int x = 1;
9818 int y = 0;
9819 int z;
9820 int nan;
9821
9822 int main ()
9823 {
9824   signal (SIGFPE, sigfpe_handler);
9825 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9826 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9827   signal (SIGTRAP, sigfpe_handler);
9828 #endif
9829 /* Linux/SPARC yields signal SIGILL.  */
9830 #if defined (__sparc__) && defined (__linux__)
9831   signal (SIGILL, sigfpe_handler);
9832 #endif
9833
9834   z = x / y;
9835   nan = y / y;
9836   exit (1);
9837 }
9838
9839 _ACEOF
9840 rm -f conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9842 case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_link") 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9851   { (case "(($ac_try" in
9852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853   *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856   (eval "$ac_try") 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860   gt_cv_int_divbyzero_sigfpe=yes
9861 else
9862   echo "$as_me: program exited with status $ac_status" >&5
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ( exit $ac_status )
9867 gt_cv_int_divbyzero_sigfpe=no
9868 fi
9869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9870 fi
9871
9872
9873
9874 fi
9875 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9876 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9877   case "$gt_cv_int_divbyzero_sigfpe" in
9878     *yes) value=1;;
9879     *) value=0;;
9880   esac
9881
9882 cat >>confdefs.h <<_ACEOF
9883 #define INTDIV0_RAISES_SIGFPE $value
9884 _ACEOF
9885
9886
9887
9888   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9889 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9890 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h.  */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h.  */
9899 unsigned long long ull = 1ULL; int i = 63;
9900 int
9901 main ()
9902 {
9903 unsigned long long ullmax = (unsigned long long) -1;
9904      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (ac_try="$ac_link"
9911 case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_link") 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } && {
9923          test -z "$ac_c_werror_flag" ||
9924          test ! -s conftest.err
9925        } && test -s conftest$ac_exeext &&
9926        $as_test_x conftest$ac_exeext; then
9927   ac_cv_type_unsigned_long_long=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932         ac_cv_type_unsigned_long_long=no
9933 fi
9934
9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9936       conftest$ac_exeext conftest.$ac_ext
9937 fi
9938 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9939 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9940   if test $ac_cv_type_unsigned_long_long = yes; then
9941
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_UNSIGNED_LONG_LONG 1
9944 _ACEOF
9945
9946   fi
9947
9948
9949
9950
9951   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9952
9953     test $ac_cv_type_unsigned_long_long = yes \
9954       && ac_type='unsigned long long' \
9955       || ac_type='unsigned long'
9956
9957 cat >>confdefs.h <<_ACEOF
9958 #define uintmax_t $ac_type
9959 _ACEOF
9960
9961   else
9962
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_UINTMAX_T 1
9965 _ACEOF
9966
9967   fi
9968
9969
9970   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9971 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9972 if test "${gt_cv_header_inttypes_h+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975
9976     cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982 #include <sys/types.h>
9983 #include <inttypes.h>
9984 int
9985 main ()
9986 {
9987
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9994 case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_compile") 2>conftest.er1
10000   ac_status=$?
10001   grep -v '^ *+' conftest.er1 >conftest.err
10002   rm -f conftest.er1
10003   cat conftest.err >&5
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } && {
10006          test -z "$ac_c_werror_flag" ||
10007          test ! -s conftest.err
10008        } && test -s conftest.$ac_objext; then
10009   gt_cv_header_inttypes_h=yes
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014         gt_cv_header_inttypes_h=no
10015 fi
10016
10017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018
10019 fi
10020 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10021 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10022   if test $gt_cv_header_inttypes_h = yes; then
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_INTTYPES_H 1
10026 _ACEOF
10027
10028   fi
10029
10030
10031
10032   if test $gt_cv_header_inttypes_h = yes; then
10033     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10034 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10035 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10036   echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038
10039         cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 #include <inttypes.h>
10046 #ifdef PRId32
10047 char *p = PRId32;
10048 #endif
10049
10050 int
10051 main ()
10052 {
10053
10054   ;
10055   return 0;
10056 }
10057 _ACEOF
10058 rm -f conftest.$ac_objext
10059 if { (ac_try="$ac_compile"
10060 case "(($ac_try" in
10061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062   *) ac_try_echo=$ac_try;;
10063 esac
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065   (eval "$ac_compile") 2>conftest.er1
10066   ac_status=$?
10067   grep -v '^ *+' conftest.er1 >conftest.err
10068   rm -f conftest.er1
10069   cat conftest.err >&5
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } && {
10072          test -z "$ac_c_werror_flag" ||
10073          test ! -s conftest.err
10074        } && test -s conftest.$ac_objext; then
10075   gt_cv_inttypes_pri_broken=no
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080         gt_cv_inttypes_pri_broken=yes
10081 fi
10082
10083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084
10085 fi
10086 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10087 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10088   fi
10089   if test "$gt_cv_inttypes_pri_broken" = yes; then
10090
10091 cat >>confdefs.h <<_ACEOF
10092 #define PRI_MACROS_BROKEN 1
10093 _ACEOF
10094
10095   fi
10096
10097
10098
10099 for ac_header in stdint.h
10100 do
10101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 fi
10108 ac_res=`eval echo '${'$as_ac_Header'}'`
10109                { echo "$as_me:$LINENO: result: $ac_res" >&5
10110 echo "${ECHO_T}$ac_res" >&6; }
10111 else
10112   # Is the header compilable?
10113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121 $ac_includes_default
10122 #include <$ac_header>
10123 _ACEOF
10124 rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128   *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131   (eval "$ac_compile") 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } && {
10138          test -z "$ac_c_werror_flag" ||
10139          test ! -s conftest.err
10140        } && test -s conftest.$ac_objext; then
10141   ac_header_compiler=yes
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146         ac_header_compiler=no
10147 fi
10148
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10151 echo "${ECHO_T}$ac_header_compiler" >&6; }
10152
10153 # Is the header present?
10154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10156 cat >conftest.$ac_ext <<_ACEOF
10157 /* confdefs.h.  */
10158 _ACEOF
10159 cat confdefs.h >>conftest.$ac_ext
10160 cat >>conftest.$ac_ext <<_ACEOF
10161 /* end confdefs.h.  */
10162 #include <$ac_header>
10163 _ACEOF
10164 if { (ac_try="$ac_cpp conftest.$ac_ext"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } >/dev/null && {
10177          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10178          test ! -s conftest.err
10179        }; then
10180   ac_header_preproc=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185   ac_header_preproc=no
10186 fi
10187
10188 rm -f conftest.err conftest.$ac_ext
10189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10190 echo "${ECHO_T}$ac_header_preproc" >&6; }
10191
10192 # So?  What about this header?
10193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10194   yes:no: )
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10199     ac_header_preproc=yes
10200     ;;
10201   no:yes:* )
10202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10214
10215     ;;
10216 esac
10217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   eval "$as_ac_Header=\$ac_header_preproc"
10223 fi
10224 ac_res=`eval echo '${'$as_ac_Header'}'`
10225                { echo "$as_me:$LINENO: result: $ac_res" >&5
10226 echo "${ECHO_T}$ac_res" >&6; }
10227
10228 fi
10229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10230   cat >>confdefs.h <<_ACEOF
10231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10232 _ACEOF
10233
10234 fi
10235
10236 done
10237
10238     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10239 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10240   result=
10241   cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h.  */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h.  */
10247
10248 #include <limits.h>
10249 #if HAVE_STDINT_H
10250 #include <stdint.h>
10251 #endif
10252 #ifdef SIZE_MAX
10253 Found it
10254 #endif
10255
10256 _ACEOF
10257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10258   $EGREP "Found it" >/dev/null 2>&1; then
10259   result=yes
10260 fi
10261 rm -f conftest*
10262
10263   if test -z "$result"; then
10264                     if test "$cross_compiling" = yes; then
10265   # Depending upon the size, compute the lo and hi bounds.
10266 cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272 #include <stddef.h>
10273 int
10274 main ()
10275 {
10276 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10277 test_array [0] = 0
10278
10279   ;
10280   return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290   (eval "$ac_compile") 2>conftest.er1
10291   ac_status=$?
10292   grep -v '^ *+' conftest.er1 >conftest.err
10293   rm -f conftest.er1
10294   cat conftest.err >&5
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); } && {
10297          test -z "$ac_c_werror_flag" ||
10298          test ! -s conftest.err
10299        } && test -s conftest.$ac_objext; then
10300   ac_lo=0 ac_mid=0
10301   while :; do
10302     cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 #include <stddef.h>
10309 int
10310 main ()
10311 {
10312 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10313 test_array [0] = 0
10314
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext
10320 if { (ac_try="$ac_compile"
10321 case "(($ac_try" in
10322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323   *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326   (eval "$ac_compile") 2>conftest.er1
10327   ac_status=$?
10328   grep -v '^ *+' conftest.er1 >conftest.err
10329   rm -f conftest.er1
10330   cat conftest.err >&5
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); } && {
10333          test -z "$ac_c_werror_flag" ||
10334          test ! -s conftest.err
10335        } && test -s conftest.$ac_objext; then
10336   ac_hi=$ac_mid; break
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341         ac_lo=`expr $ac_mid + 1`
10342                         if test $ac_lo -le $ac_mid; then
10343                           ac_lo= ac_hi=
10344                           break
10345                         fi
10346                         ac_mid=`expr 2 '*' $ac_mid + 1`
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350   done
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355         cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h.  */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h.  */
10361 #include <stddef.h>
10362 int
10363 main ()
10364 {
10365 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10366 test_array [0] = 0
10367
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376   *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379   (eval "$ac_compile") 2>conftest.er1
10380   ac_status=$?
10381   grep -v '^ *+' conftest.er1 >conftest.err
10382   rm -f conftest.er1
10383   cat conftest.err >&5
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } && {
10386          test -z "$ac_c_werror_flag" ||
10387          test ! -s conftest.err
10388        } && test -s conftest.$ac_objext; then
10389   ac_hi=-1 ac_mid=-1
10390   while :; do
10391     cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h.  */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h.  */
10397 #include <stddef.h>
10398 int
10399 main ()
10400 {
10401 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10402 test_array [0] = 0
10403
10404   ;
10405   return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (ac_try="$ac_compile"
10410 case "(($ac_try" in
10411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412   *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415   (eval "$ac_compile") 2>conftest.er1
10416   ac_status=$?
10417   grep -v '^ *+' conftest.er1 >conftest.err
10418   rm -f conftest.er1
10419   cat conftest.err >&5
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); } && {
10422          test -z "$ac_c_werror_flag" ||
10423          test ! -s conftest.err
10424        } && test -s conftest.$ac_objext; then
10425   ac_lo=$ac_mid; break
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430         ac_hi=`expr '(' $ac_mid ')' - 1`
10431                         if test $ac_mid -le $ac_hi; then
10432                           ac_lo= ac_hi=
10433                           break
10434                         fi
10435                         ac_mid=`expr 2 '*' $ac_mid`
10436 fi
10437
10438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439   done
10440 else
10441   echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444         ac_lo= ac_hi=
10445 fi
10446
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 fi
10449
10450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 # Binary search between lo and hi bounds.
10452 while test "x$ac_lo" != "x$ac_hi"; do
10453   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10454   cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h.  */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h.  */
10460 #include <stddef.h>
10461 int
10462 main ()
10463 {
10464 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10465 test_array [0] = 0
10466
10467   ;
10468   return 0;
10469 }
10470 _ACEOF
10471 rm -f conftest.$ac_objext
10472 if { (ac_try="$ac_compile"
10473 case "(($ac_try" in
10474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475   *) ac_try_echo=$ac_try;;
10476 esac
10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478   (eval "$ac_compile") 2>conftest.er1
10479   ac_status=$?
10480   grep -v '^ *+' conftest.er1 >conftest.err
10481   rm -f conftest.er1
10482   cat conftest.err >&5
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); } && {
10485          test -z "$ac_c_werror_flag" ||
10486          test ! -s conftest.err
10487        } && test -s conftest.$ac_objext; then
10488   ac_hi=$ac_mid
10489 else
10490   echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493         ac_lo=`expr '(' $ac_mid ')' + 1`
10494 fi
10495
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10497 done
10498 case $ac_lo in
10499 ?*) res_hi=$ac_lo;;
10500 '') result=? ;;
10501 esac
10502 else
10503   cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 #include <stddef.h>
10510 static long int longval () { return ~(size_t)0 / 10; }
10511 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10512 #include <stdio.h>
10513 #include <stdlib.h>
10514 int
10515 main ()
10516 {
10517
10518   FILE *f = fopen ("conftest.val", "w");
10519   if (! f)
10520     return 1;
10521   if ((~(size_t)0 / 10) < 0)
10522     {
10523       long int i = longval ();
10524       if (i != (~(size_t)0 / 10))
10525         return 1;
10526       fprintf (f, "%ld\n", i);
10527     }
10528   else
10529     {
10530       unsigned long int i = ulongval ();
10531       if (i != (~(size_t)0 / 10))
10532         return 1;
10533       fprintf (f, "%lu\n", i);
10534     }
10535   return ferror (f) || fclose (f) != 0;
10536
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545   *) ac_try_echo=$ac_try;;
10546 esac
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548   (eval "$ac_link") 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10552   { (case "(($ac_try" in
10553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554   *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557   (eval "$ac_try") 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   res_hi=`cat conftest.val`
10562 else
10563   echo "$as_me: program exited with status $ac_status" >&5
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ( exit $ac_status )
10568 result=?
10569 fi
10570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10571 fi
10572 rm -f conftest.val
10573
10574     if test "$cross_compiling" = yes; then
10575   # Depending upon the size, compute the lo and hi bounds.
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <stddef.h>
10583 int
10584 main ()
10585 {
10586 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10587 test_array [0] = 0
10588
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext
10594 if { (ac_try="$ac_compile"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600   (eval "$ac_compile") 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } && {
10607          test -z "$ac_c_werror_flag" ||
10608          test ! -s conftest.err
10609        } && test -s conftest.$ac_objext; then
10610   ac_lo=0 ac_mid=0
10611   while :; do
10612     cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 #include <stddef.h>
10619 int
10620 main ()
10621 {
10622 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10623 test_array [0] = 0
10624
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 rm -f conftest.$ac_objext
10630 if { (ac_try="$ac_compile"
10631 case "(($ac_try" in
10632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633   *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636   (eval "$ac_compile") 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } && {
10643          test -z "$ac_c_werror_flag" ||
10644          test ! -s conftest.err
10645        } && test -s conftest.$ac_objext; then
10646   ac_hi=$ac_mid; break
10647 else
10648   echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651         ac_lo=`expr $ac_mid + 1`
10652                         if test $ac_lo -le $ac_mid; then
10653                           ac_lo= ac_hi=
10654                           break
10655                         fi
10656                         ac_mid=`expr 2 '*' $ac_mid + 1`
10657 fi
10658
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660   done
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10664
10665         cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671 #include <stddef.h>
10672 int
10673 main ()
10674 {
10675 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10676 test_array [0] = 0
10677
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 rm -f conftest.$ac_objext
10683 if { (ac_try="$ac_compile"
10684 case "(($ac_try" in
10685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686   *) ac_try_echo=$ac_try;;
10687 esac
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689   (eval "$ac_compile") 2>conftest.er1
10690   ac_status=$?
10691   grep -v '^ *+' conftest.er1 >conftest.err
10692   rm -f conftest.er1
10693   cat conftest.err >&5
10694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695   (exit $ac_status); } && {
10696          test -z "$ac_c_werror_flag" ||
10697          test ! -s conftest.err
10698        } && test -s conftest.$ac_objext; then
10699   ac_hi=-1 ac_mid=-1
10700   while :; do
10701     cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707 #include <stddef.h>
10708 int
10709 main ()
10710 {
10711 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10712 test_array [0] = 0
10713
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (ac_try="$ac_compile"
10720 case "(($ac_try" in
10721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722   *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725   (eval "$ac_compile") 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } && {
10732          test -z "$ac_c_werror_flag" ||
10733          test ! -s conftest.err
10734        } && test -s conftest.$ac_objext; then
10735   ac_lo=$ac_mid; break
10736 else
10737   echo "$as_me: failed program was:" >&5
10738 sed 's/^/| /' conftest.$ac_ext >&5
10739
10740         ac_hi=`expr '(' $ac_mid ')' - 1`
10741                         if test $ac_mid -le $ac_hi; then
10742                           ac_lo= ac_hi=
10743                           break
10744                         fi
10745                         ac_mid=`expr 2 '*' $ac_mid`
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749   done
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754         ac_lo= ac_hi=
10755 fi
10756
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 fi
10759
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 # Binary search between lo and hi bounds.
10762 while test "x$ac_lo" != "x$ac_hi"; do
10763   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10764   cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770 #include <stddef.h>
10771 int
10772 main ()
10773 {
10774 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10775 test_array [0] = 0
10776
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext
10782 if { (ac_try="$ac_compile"
10783 case "(($ac_try" in
10784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785   *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788   (eval "$ac_compile") 2>conftest.er1
10789   ac_status=$?
10790   grep -v '^ *+' conftest.er1 >conftest.err
10791   rm -f conftest.er1
10792   cat conftest.err >&5
10793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794   (exit $ac_status); } && {
10795          test -z "$ac_c_werror_flag" ||
10796          test ! -s conftest.err
10797        } && test -s conftest.$ac_objext; then
10798   ac_hi=$ac_mid
10799 else
10800   echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10802
10803         ac_lo=`expr '(' $ac_mid ')' + 1`
10804 fi
10805
10806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10807 done
10808 case $ac_lo in
10809 ?*) res_lo=$ac_lo;;
10810 '') result=? ;;
10811 esac
10812 else
10813   cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h.  */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h.  */
10819 #include <stddef.h>
10820 static long int longval () { return ~(size_t)0 % 10; }
10821 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10822 #include <stdio.h>
10823 #include <stdlib.h>
10824 int
10825 main ()
10826 {
10827
10828   FILE *f = fopen ("conftest.val", "w");
10829   if (! f)
10830     return 1;
10831   if ((~(size_t)0 % 10) < 0)
10832     {
10833       long int i = longval ();
10834       if (i != (~(size_t)0 % 10))
10835         return 1;
10836       fprintf (f, "%ld\n", i);
10837     }
10838   else
10839     {
10840       unsigned long int i = ulongval ();
10841       if (i != (~(size_t)0 % 10))
10842         return 1;
10843       fprintf (f, "%lu\n", i);
10844     }
10845   return ferror (f) || fclose (f) != 0;
10846
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855   *) ac_try_echo=$ac_try;;
10856 esac
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858   (eval "$ac_link") 2>&5
10859   ac_status=$?
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10862   { (case "(($ac_try" in
10863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864   *) ac_try_echo=$ac_try;;
10865 esac
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867   (eval "$ac_try") 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; }; then
10871   res_lo=`cat conftest.val`
10872 else
10873   echo "$as_me: program exited with status $ac_status" >&5
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 ( exit $ac_status )
10878 result=?
10879 fi
10880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10881 fi
10882 rm -f conftest.val
10883
10884     if test "$cross_compiling" = yes; then
10885   # Depending upon the size, compute the lo and hi bounds.
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892 #include <stddef.h>
10893 int
10894 main ()
10895 {
10896 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10897 test_array [0] = 0
10898
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (ac_try="$ac_compile"
10905 case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_compile") 2>conftest.er1
10911   ac_status=$?
10912   grep -v '^ *+' conftest.er1 >conftest.err
10913   rm -f conftest.er1
10914   cat conftest.err >&5
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } && {
10917          test -z "$ac_c_werror_flag" ||
10918          test ! -s conftest.err
10919        } && test -s conftest.$ac_objext; then
10920   ac_lo=0 ac_mid=0
10921   while :; do
10922     cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 #include <stddef.h>
10929 int
10930 main ()
10931 {
10932 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10933 test_array [0] = 0
10934
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 rm -f conftest.$ac_objext
10940 if { (ac_try="$ac_compile"
10941 case "(($ac_try" in
10942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943   *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946   (eval "$ac_compile") 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } && {
10953          test -z "$ac_c_werror_flag" ||
10954          test ! -s conftest.err
10955        } && test -s conftest.$ac_objext; then
10956   ac_hi=$ac_mid; break
10957 else
10958   echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10960
10961         ac_lo=`expr $ac_mid + 1`
10962                         if test $ac_lo -le $ac_mid; then
10963                           ac_lo= ac_hi=
10964                           break
10965                         fi
10966                         ac_mid=`expr 2 '*' $ac_mid + 1`
10967 fi
10968
10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970   done
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981 #include <stddef.h>
10982 int
10983 main ()
10984 {
10985 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10986 test_array [0] = 0
10987
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999   (eval "$ac_compile") 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } && {
11006          test -z "$ac_c_werror_flag" ||
11007          test ! -s conftest.err
11008        } && test -s conftest.$ac_objext; then
11009   ac_hi=-1 ac_mid=-1
11010   while :; do
11011     cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #include <stddef.h>
11018 int
11019 main ()
11020 {
11021 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11022 test_array [0] = 0
11023
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (ac_try="$ac_compile"
11030 case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_compile") 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } && {
11042          test -z "$ac_c_werror_flag" ||
11043          test ! -s conftest.err
11044        } && test -s conftest.$ac_objext; then
11045   ac_lo=$ac_mid; break
11046 else
11047   echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11049
11050         ac_hi=`expr '(' $ac_mid ')' - 1`
11051                         if test $ac_mid -le $ac_hi; then
11052                           ac_lo= ac_hi=
11053                           break
11054                         fi
11055                         ac_mid=`expr 2 '*' $ac_mid`
11056 fi
11057
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059   done
11060 else
11061   echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11063
11064         ac_lo= ac_hi=
11065 fi
11066
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 fi
11069
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 # Binary search between lo and hi bounds.
11072 while test "x$ac_lo" != "x$ac_hi"; do
11073   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <stddef.h>
11081 int
11082 main ()
11083 {
11084 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11085 test_array [0] = 0
11086
11087   ;
11088   return 0;
11089 }
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (ac_try="$ac_compile"
11093 case "(($ac_try" in
11094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095   *) ac_try_echo=$ac_try;;
11096 esac
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098   (eval "$ac_compile") 2>conftest.er1
11099   ac_status=$?
11100   grep -v '^ *+' conftest.er1 >conftest.err
11101   rm -f conftest.er1
11102   cat conftest.err >&5
11103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104   (exit $ac_status); } && {
11105          test -z "$ac_c_werror_flag" ||
11106          test ! -s conftest.err
11107        } && test -s conftest.$ac_objext; then
11108   ac_hi=$ac_mid
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113         ac_lo=`expr '(' $ac_mid ')' + 1`
11114 fi
11115
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 done
11118 case $ac_lo in
11119 ?*) fits_in_uint=$ac_lo;;
11120 '') result=? ;;
11121 esac
11122 else
11123   cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h.  */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h.  */
11129 #include <stddef.h>
11130 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11131 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11132 #include <stdio.h>
11133 #include <stdlib.h>
11134 int
11135 main ()
11136 {
11137
11138   FILE *f = fopen ("conftest.val", "w");
11139   if (! f)
11140     return 1;
11141   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11142     {
11143       long int i = longval ();
11144       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11145         return 1;
11146       fprintf (f, "%ld\n", i);
11147     }
11148   else
11149     {
11150       unsigned long int i = ulongval ();
11151       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11152         return 1;
11153       fprintf (f, "%lu\n", i);
11154     }
11155   return ferror (f) || fclose (f) != 0;
11156
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest$ac_exeext
11162 if { (ac_try="$ac_link"
11163 case "(($ac_try" in
11164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165   *) ac_try_echo=$ac_try;;
11166 esac
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168   (eval "$ac_link") 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11172   { (case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_try") 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; }; then
11181   fits_in_uint=`cat conftest.val`
11182 else
11183   echo "$as_me: program exited with status $ac_status" >&5
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187 ( exit $ac_status )
11188 result=?
11189 fi
11190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11191 fi
11192 rm -f conftest.val
11193
11194     if test "$fits_in_uint" = 1; then
11195                   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 #include <stddef.h>
11202         extern size_t foo;
11203         extern unsigned long foo;
11204
11205 int
11206 main ()
11207 {
11208
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext
11214 if { (ac_try="$ac_compile"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_compile") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } && {
11227          test -z "$ac_c_werror_flag" ||
11228          test ! -s conftest.err
11229        } && test -s conftest.$ac_objext; then
11230   fits_in_uint=0
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239     fi
11240     if test -z "$result"; then
11241       if test "$fits_in_uint" = 1; then
11242         result="$res_hi$res_lo"U
11243       else
11244         result="$res_hi$res_lo"UL
11245       fi
11246     else
11247             result='~(size_t)0'
11248     fi
11249   fi
11250   { echo "$as_me:$LINENO: result: $result" >&5
11251 echo "${ECHO_T}$result" >&6; }
11252   if test "$result" != yes; then
11253
11254 cat >>confdefs.h <<_ACEOF
11255 #define SIZE_MAX $result
11256 _ACEOF
11257
11258   fi
11259
11260
11261
11262
11263
11264 for ac_header in stdint.h
11265 do
11266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271   echo $ECHO_N "(cached) $ECHO_C" >&6
11272 fi
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274                { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11276 else
11277   # Is the header compilable?
11278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 $ac_includes_default
11287 #include <$ac_header>
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293   *) ac_try_echo=$ac_try;;
11294 esac
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296   (eval "$ac_compile") 2>conftest.er1
11297   ac_status=$?
11298   grep -v '^ *+' conftest.er1 >conftest.err
11299   rm -f conftest.er1
11300   cat conftest.err >&5
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); } && {
11303          test -z "$ac_c_werror_flag" ||
11304          test ! -s conftest.err
11305        } && test -s conftest.$ac_objext; then
11306   ac_header_compiler=yes
11307 else
11308   echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311         ac_header_compiler=no
11312 fi
11313
11314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11316 echo "${ECHO_T}$ac_header_compiler" >&6; }
11317
11318 # Is the header present?
11319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <$ac_header>
11328 _ACEOF
11329 if { (ac_try="$ac_cpp conftest.$ac_ext"
11330 case "(($ac_try" in
11331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332   *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11336   ac_status=$?
11337   grep -v '^ *+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); } >/dev/null && {
11342          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11343          test ! -s conftest.err
11344        }; then
11345   ac_header_preproc=yes
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350   ac_header_preproc=no
11351 fi
11352
11353 rm -f conftest.err conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11355 echo "${ECHO_T}$ac_header_preproc" >&6; }
11356
11357 # So?  What about this header?
11358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11359   yes:no: )
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11364     ac_header_preproc=yes
11365     ;;
11366   no:yes:* )
11367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11379
11380     ;;
11381 esac
11382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   eval "$as_ac_Header=\$ac_header_preproc"
11388 fi
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390                { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392
11393 fi
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395   cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 _ACEOF
11398
11399 fi
11400
11401 done
11402
11403
11404
11405
11406
11407
11408
11409
11410   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11411 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11412 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 $ac_includes_default
11422 typedef ptrdiff_t ac__type_new_;
11423 int
11424 main ()
11425 {
11426 if ((ac__type_new_ *) 0)
11427   return 0;
11428 if (sizeof (ac__type_new_))
11429   return 0;
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext
11435 if { (ac_try="$ac_compile"
11436 case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_compile") 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } && {
11448          test -z "$ac_c_werror_flag" ||
11449          test ! -s conftest.err
11450        } && test -s conftest.$ac_objext; then
11451   ac_cv_type_ptrdiff_t=yes
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456         ac_cv_type_ptrdiff_t=no
11457 fi
11458
11459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11460 fi
11461 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11462 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11463 if test $ac_cv_type_ptrdiff_t = yes; then
11464   :
11465 else
11466
11467 cat >>confdefs.h <<\_ACEOF
11468 #define ptrdiff_t long
11469 _ACEOF
11470
11471
11472 fi
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11485 stdlib.h string.h unistd.h sys/param.h
11486 do
11487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 fi
11494 ac_res=`eval echo '${'$as_ac_Header'}'`
11495                { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11497 else
11498   # Is the header compilable?
11499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 $ac_includes_default
11508 #include <$ac_header>
11509 _ACEOF
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_compile") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } && {
11524          test -z "$ac_c_werror_flag" ||
11525          test ! -s conftest.err
11526        } && test -s conftest.$ac_objext; then
11527   ac_header_compiler=yes
11528 else
11529   echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11531
11532         ac_header_compiler=no
11533 fi
11534
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11538
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548 #include <$ac_header>
11549 _ACEOF
11550 if { (ac_try="$ac_cpp conftest.$ac_ext"
11551 case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } >/dev/null && {
11563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11564          test ! -s conftest.err
11565        }; then
11566   ac_header_preproc=yes
11567 else
11568   echo "$as_me: failed program was:" >&5
11569 sed 's/^/| /' conftest.$ac_ext >&5
11570
11571   ac_header_preproc=no
11572 fi
11573
11574 rm -f conftest.err conftest.$ac_ext
11575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11576 echo "${ECHO_T}$ac_header_preproc" >&6; }
11577
11578 # So?  What about this header?
11579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11580   yes:no: )
11581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11585     ac_header_preproc=yes
11586     ;;
11587   no:yes:* )
11588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11600
11601     ;;
11602 esac
11603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   eval "$as_ac_Header=\$ac_header_preproc"
11609 fi
11610 ac_res=`eval echo '${'$as_ac_Header'}'`
11611                { echo "$as_me:$LINENO: result: $ac_res" >&5
11612 echo "${ECHO_T}$ac_res" >&6; }
11613
11614 fi
11615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616   cat >>confdefs.h <<_ACEOF
11617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11618 _ACEOF
11619
11620 fi
11621
11622 done
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11648 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11649 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11650 __fsetlocking
11651 do
11652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658   cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11666 #define $ac_func innocuous_$ac_func
11667
11668 /* System header to define __stub macros and hopefully few prototypes,
11669     which can conflict with char $ac_func (); below.
11670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11671     <limits.h> exists even on freestanding compilers.  */
11672
11673 #ifdef __STDC__
11674 # include <limits.h>
11675 #else
11676 # include <assert.h>
11677 #endif
11678
11679 #undef $ac_func
11680
11681 /* Override any GCC internal prototype to avoid an error.
11682    Use char because int might match the return type of a GCC
11683    builtin and then its argument prototype would still apply.  */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 char $ac_func ();
11688 /* The GNU C library defines this for functions which it implements
11689     to always fail with ENOSYS.  Some functions are actually named
11690     something starting with __ and the normal name is an alias.  */
11691 #if defined __stub_$ac_func || defined __stub___$ac_func
11692 choke me
11693 #endif
11694
11695 int
11696 main ()
11697 {
11698 return $ac_func ();
11699   ;
11700   return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext conftest$ac_exeext
11704 if { (ac_try="$ac_link"
11705 case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_link") 2>conftest.er1
11711   ac_status=$?
11712   grep -v '^ *+' conftest.er1 >conftest.err
11713   rm -f conftest.er1
11714   cat conftest.err >&5
11715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716   (exit $ac_status); } && {
11717          test -z "$ac_c_werror_flag" ||
11718          test ! -s conftest.err
11719        } && test -s conftest$ac_exeext &&
11720        $as_test_x conftest$ac_exeext; then
11721   eval "$as_ac_var=yes"
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726         eval "$as_ac_var=no"
11727 fi
11728
11729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11730       conftest$ac_exeext conftest.$ac_ext
11731 fi
11732 ac_res=`eval echo '${'$as_ac_var'}'`
11733                { echo "$as_me:$LINENO: result: $ac_res" >&5
11734 echo "${ECHO_T}$ac_res" >&6; }
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736   cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11739
11740 fi
11741 done
11742
11743
11744
11745   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11746 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11747 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750   cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756 #include <stdio.h>
11757 int
11758 main ()
11759 {
11760
11761 #ifndef _snprintf
11762   char *p = (char *) _snprintf;
11763 #endif
11764
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (ac_try="$ac_compile"
11771 case "(($ac_try" in
11772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773   *) ac_try_echo=$ac_try;;
11774 esac
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776   (eval "$ac_compile") 2>conftest.er1
11777   ac_status=$?
11778   grep -v '^ *+' conftest.er1 >conftest.err
11779   rm -f conftest.er1
11780   cat conftest.err >&5
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } && {
11783          test -z "$ac_c_werror_flag" ||
11784          test ! -s conftest.err
11785        } && test -s conftest.$ac_objext; then
11786   ac_cv_have_decl__snprintf=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791         ac_cv_have_decl__snprintf=no
11792 fi
11793
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 fi
11796 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11797 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11798   if test $ac_cv_have_decl__snprintf = yes; then
11799     gt_value=1
11800   else
11801     gt_value=0
11802   fi
11803
11804 cat >>confdefs.h <<_ACEOF
11805 #define HAVE_DECL__SNPRINTF $gt_value
11806 _ACEOF
11807
11808
11809
11810   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11811 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11812 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11813   echo $ECHO_N "(cached) $ECHO_C" >&6
11814 else
11815   cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h.  */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h.  */
11821 #include <stdio.h>
11822 int
11823 main ()
11824 {
11825
11826 #ifndef _snwprintf
11827   char *p = (char *) _snwprintf;
11828 #endif
11829
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841   (eval "$ac_compile") 2>conftest.er1
11842   ac_status=$?
11843   grep -v '^ *+' conftest.er1 >conftest.err
11844   rm -f conftest.er1
11845   cat conftest.err >&5
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } && {
11848          test -z "$ac_c_werror_flag" ||
11849          test ! -s conftest.err
11850        } && test -s conftest.$ac_objext; then
11851   ac_cv_have_decl__snwprintf=yes
11852 else
11853   echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856         ac_cv_have_decl__snwprintf=no
11857 fi
11858
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 fi
11861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11862 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11863   if test $ac_cv_have_decl__snwprintf = yes; then
11864     gt_value=1
11865   else
11866     gt_value=0
11867   fi
11868
11869 cat >>confdefs.h <<_ACEOF
11870 #define HAVE_DECL__SNWPRINTF $gt_value
11871 _ACEOF
11872
11873
11874
11875
11876   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11877 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11878 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887 #include <stdio.h>
11888 int
11889 main ()
11890 {
11891
11892 #ifndef feof_unlocked
11893   char *p = (char *) feof_unlocked;
11894 #endif
11895
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904   *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907   (eval "$ac_compile") 2>conftest.er1
11908   ac_status=$?
11909   grep -v '^ *+' conftest.er1 >conftest.err
11910   rm -f conftest.er1
11911   cat conftest.err >&5
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } && {
11914          test -z "$ac_c_werror_flag" ||
11915          test ! -s conftest.err
11916        } && test -s conftest.$ac_objext; then
11917   ac_cv_have_decl_feof_unlocked=yes
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922         ac_cv_have_decl_feof_unlocked=no
11923 fi
11924
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11928 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11929   if test $ac_cv_have_decl_feof_unlocked = yes; then
11930     gt_value=1
11931   else
11932     gt_value=0
11933   fi
11934
11935 cat >>confdefs.h <<_ACEOF
11936 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11937 _ACEOF
11938
11939
11940
11941   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11942 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11943 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 #include <stdio.h>
11953 int
11954 main ()
11955 {
11956
11957 #ifndef fgets_unlocked
11958   char *p = (char *) fgets_unlocked;
11959 #endif
11960
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (ac_try="$ac_compile"
11967 case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_compile") 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } && {
11979          test -z "$ac_c_werror_flag" ||
11980          test ! -s conftest.err
11981        } && test -s conftest.$ac_objext; then
11982   ac_cv_have_decl_fgets_unlocked=yes
11983 else
11984   echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987         ac_cv_have_decl_fgets_unlocked=no
11988 fi
11989
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 fi
11992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11993 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11994   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11995     gt_value=1
11996   else
11997     gt_value=0
11998   fi
11999
12000 cat >>confdefs.h <<_ACEOF
12001 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12002 _ACEOF
12003
12004
12005
12006   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12007 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12008 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011   cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017 #include <stdio.h>
12018 int
12019 main ()
12020 {
12021
12022 #ifndef getc_unlocked
12023   char *p = (char *) getc_unlocked;
12024 #endif
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext
12031 if { (ac_try="$ac_compile"
12032 case "(($ac_try" in
12033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034   *) ac_try_echo=$ac_try;;
12035 esac
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037   (eval "$ac_compile") 2>conftest.er1
12038   ac_status=$?
12039   grep -v '^ *+' conftest.er1 >conftest.err
12040   rm -f conftest.er1
12041   cat conftest.err >&5
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); } && {
12044          test -z "$ac_c_werror_flag" ||
12045          test ! -s conftest.err
12046        } && test -s conftest.$ac_objext; then
12047   ac_cv_have_decl_getc_unlocked=yes
12048 else
12049   echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052         ac_cv_have_decl_getc_unlocked=no
12053 fi
12054
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 fi
12057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12058 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12059   if test $ac_cv_have_decl_getc_unlocked = yes; then
12060     gt_value=1
12061   else
12062     gt_value=0
12063   fi
12064
12065 cat >>confdefs.h <<_ACEOF
12066 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12067 _ACEOF
12068
12069
12070
12071   case $gt_cv_func_printf_posix in
12072     *yes) HAVE_POSIX_PRINTF=1 ;;
12073     *) HAVE_POSIX_PRINTF=0 ;;
12074   esac
12075
12076   if test "$ac_cv_func_asprintf" = yes; then
12077     HAVE_ASPRINTF=1
12078   else
12079     HAVE_ASPRINTF=0
12080   fi
12081
12082   if test "$ac_cv_func_snprintf" = yes; then
12083     HAVE_SNPRINTF=1
12084   else
12085     HAVE_SNPRINTF=0
12086   fi
12087
12088   if test "$ac_cv_func_wprintf" = yes; then
12089     HAVE_WPRINTF=1
12090   else
12091     HAVE_WPRINTF=0
12092   fi
12093
12094
12095
12096
12097
12098
12099
12100           am_save_CPPFLAGS="$CPPFLAGS"
12101
12102   for element in $INCICONV; do
12103     haveit=
12104     for x in $CPPFLAGS; do
12105
12106   acl_save_prefix="$prefix"
12107   prefix="$acl_final_prefix"
12108   acl_save_exec_prefix="$exec_prefix"
12109   exec_prefix="$acl_final_exec_prefix"
12110   eval x=\"$x\"
12111   exec_prefix="$acl_save_exec_prefix"
12112   prefix="$acl_save_prefix"
12113
12114       if test "X$x" = "X$element"; then
12115         haveit=yes
12116         break
12117       fi
12118     done
12119     if test -z "$haveit"; then
12120       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12121     fi
12122   done
12123
12124
12125   { echo "$as_me:$LINENO: checking for iconv" >&5
12126 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12127 if test "${am_cv_func_iconv+set}" = set; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130
12131     am_cv_func_iconv="no, consider installing GNU libiconv"
12132     am_cv_lib_iconv=no
12133     cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h.  */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h.  */
12139 #include <stdlib.h>
12140 #include <iconv.h>
12141 int
12142 main ()
12143 {
12144 iconv_t cd = iconv_open("","");
12145        iconv(cd,NULL,NULL,NULL,NULL);
12146        iconv_close(cd);
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155   *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158   (eval "$ac_link") 2>conftest.er1
12159   ac_status=$?
12160   grep -v '^ *+' conftest.er1 >conftest.err
12161   rm -f conftest.er1
12162   cat conftest.err >&5
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } && {
12165          test -z "$ac_c_werror_flag" ||
12166          test ! -s conftest.err
12167        } && test -s conftest$ac_exeext &&
12168        $as_test_x conftest$ac_exeext; then
12169   am_cv_func_iconv=yes
12170 else
12171   echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12173
12174
12175 fi
12176
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178       conftest$ac_exeext conftest.$ac_ext
12179     if test "$am_cv_func_iconv" != yes; then
12180       am_save_LIBS="$LIBS"
12181       LIBS="$LIBS $LIBICONV"
12182       cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188 #include <stdlib.h>
12189 #include <iconv.h>
12190 int
12191 main ()
12192 {
12193 iconv_t cd = iconv_open("","");
12194          iconv(cd,NULL,NULL,NULL,NULL);
12195          iconv_close(cd);
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_link") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } && {
12214          test -z "$ac_c_werror_flag" ||
12215          test ! -s conftest.err
12216        } && test -s conftest$ac_exeext &&
12217        $as_test_x conftest$ac_exeext; then
12218   am_cv_lib_iconv=yes
12219         am_cv_func_iconv=yes
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224
12225 fi
12226
12227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228       conftest$ac_exeext conftest.$ac_ext
12229       LIBS="$am_save_LIBS"
12230     fi
12231
12232 fi
12233 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12234 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12235   if test "$am_cv_func_iconv" = yes; then
12236
12237 cat >>confdefs.h <<\_ACEOF
12238 #define HAVE_ICONV 1
12239 _ACEOF
12240
12241   fi
12242   if test "$am_cv_lib_iconv" = yes; then
12243     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12244 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12245     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12246 echo "${ECHO_T}$LIBICONV" >&6; }
12247   else
12248             CPPFLAGS="$am_save_CPPFLAGS"
12249     LIBICONV=
12250     LTLIBICONV=
12251   fi
12252
12253
12254
12255   if test "$am_cv_func_iconv" = yes; then
12256     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12257 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12258     if test "${am_cv_proto_iconv+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261
12262       cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268
12269 #include <stdlib.h>
12270 #include <iconv.h>
12271 extern
12272 #ifdef __cplusplus
12273 "C"
12274 #endif
12275 #if defined(__STDC__) || defined(__cplusplus)
12276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12277 #else
12278 size_t iconv();
12279 #endif
12280
12281 int
12282 main ()
12283 {
12284
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_compile") 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } && {
12303          test -z "$ac_c_werror_flag" ||
12304          test ! -s conftest.err
12305        } && test -s conftest.$ac_objext; then
12306   am_cv_proto_iconv_arg1=""
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311         am_cv_proto_iconv_arg1="const"
12312 fi
12313
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315       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);"
12316 fi
12317
12318     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12319     { echo "$as_me:$LINENO: result: ${ac_t:-
12320          }$am_cv_proto_iconv" >&5
12321 echo "${ECHO_T}${ac_t:-
12322          }$am_cv_proto_iconv" >&6; }
12323
12324 cat >>confdefs.h <<_ACEOF
12325 #define ICONV_CONST $am_cv_proto_iconv_arg1
12326 _ACEOF
12327
12328   fi
12329
12330
12331   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12332 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12333 if test "${am_cv_langinfo_codeset+set}" = set; then
12334   echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336   cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342 #include <langinfo.h>
12343 int
12344 main ()
12345 {
12346 char* cs = nl_langinfo(CODESET);
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355   *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358   (eval "$ac_link") 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } && {
12365          test -z "$ac_c_werror_flag" ||
12366          test ! -s conftest.err
12367        } && test -s conftest$ac_exeext &&
12368        $as_test_x conftest$ac_exeext; then
12369   am_cv_langinfo_codeset=yes
12370 else
12371   echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12373
12374         am_cv_langinfo_codeset=no
12375 fi
12376
12377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12378       conftest$ac_exeext conftest.$ac_ext
12379
12380 fi
12381 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12382 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12383   if test $am_cv_langinfo_codeset = yes; then
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_LANGINFO_CODESET 1
12387 _ACEOF
12388
12389   fi
12390
12391   if test $ac_cv_header_locale_h = yes; then
12392
12393   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12394 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12395 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404 #include <locale.h>
12405 int
12406 main ()
12407 {
12408 return LC_MESSAGES
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417   *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420   (eval "$ac_link") 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } && {
12427          test -z "$ac_c_werror_flag" ||
12428          test ! -s conftest.err
12429        } && test -s conftest$ac_exeext &&
12430        $as_test_x conftest$ac_exeext; then
12431   gt_cv_val_LC_MESSAGES=yes
12432 else
12433   echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12435
12436         gt_cv_val_LC_MESSAGES=no
12437 fi
12438
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440       conftest$ac_exeext conftest.$ac_ext
12441 fi
12442 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12443 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12444   if test $gt_cv_val_LC_MESSAGES = yes; then
12445
12446 cat >>confdefs.h <<\_ACEOF
12447 #define HAVE_LC_MESSAGES 1
12448 _ACEOF
12449
12450   fi
12451
12452   fi
12453
12454   if test -n "$INTL_MACOSX_LIBS"; then
12455     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12456   fi
12457
12458                       for ac_prog in bison
12459 do
12460   # Extract the first word of "$ac_prog", so it can be a program name with args.
12461 set dummy $ac_prog; ac_word=$2
12462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12464 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   if test -n "$INTLBISON"; then
12468   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12469 else
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12472 do
12473   IFS=$as_save_IFS
12474   test -z "$as_dir" && as_dir=.
12475   for ac_exec_ext in '' $ac_executable_extensions; do
12476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477     ac_cv_prog_INTLBISON="$ac_prog"
12478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12479     break 2
12480   fi
12481 done
12482 done
12483 IFS=$as_save_IFS
12484
12485 fi
12486 fi
12487 INTLBISON=$ac_cv_prog_INTLBISON
12488 if test -n "$INTLBISON"; then
12489   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12490 echo "${ECHO_T}$INTLBISON" >&6; }
12491 else
12492   { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12494 fi
12495
12496
12497   test -n "$INTLBISON" && break
12498 done
12499
12500   if test -z "$INTLBISON"; then
12501     ac_verc_fail=yes
12502   else
12503         { echo "$as_me:$LINENO: checking version of bison" >&5
12504 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12505     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12506     case $ac_prog_version in
12507       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12508       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12509          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12510       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12511     esac
12512     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12513 echo "${ECHO_T}$ac_prog_version" >&6; }
12514   fi
12515   if test $ac_verc_fail = yes; then
12516     INTLBISON=:
12517   fi
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12535 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12536 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   gt_save_CPPFLAGS="$CPPFLAGS"
12540      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12541      gt_save_LIBS="$LIBS"
12542      LIBS="$LIBS -framework CoreFoundation"
12543      cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 #include <CFPreferences.h>
12550 int
12551 main ()
12552 {
12553 CFPreferencesCopyAppValue(NULL, NULL)
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562   *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565   (eval "$ac_link") 2>conftest.er1
12566   ac_status=$?
12567   grep -v '^ *+' conftest.er1 >conftest.err
12568   rm -f conftest.er1
12569   cat conftest.err >&5
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); } && {
12572          test -z "$ac_c_werror_flag" ||
12573          test ! -s conftest.err
12574        } && test -s conftest$ac_exeext &&
12575        $as_test_x conftest$ac_exeext; then
12576   gt_cv_func_CFPreferencesCopyAppValue=yes
12577 else
12578   echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581         gt_cv_func_CFPreferencesCopyAppValue=no
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12585       conftest$ac_exeext conftest.$ac_ext
12586      CPPFLAGS="$gt_save_CPPFLAGS"
12587      LIBS="$gt_save_LIBS"
12588 fi
12589 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12590 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12591   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12592
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12595 _ACEOF
12596
12597   fi
12598     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12599 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12600 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   gt_save_CPPFLAGS="$CPPFLAGS"
12604      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12605      gt_save_LIBS="$LIBS"
12606      LIBS="$LIBS -framework CoreFoundation"
12607      cat >conftest.$ac_ext <<_ACEOF
12608 /* confdefs.h.  */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h.  */
12613 #include <CFLocale.h>
12614 int
12615 main ()
12616 {
12617 CFLocaleCopyCurrent();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629   (eval "$ac_link") 2>conftest.er1
12630   ac_status=$?
12631   grep -v '^ *+' conftest.er1 >conftest.err
12632   rm -f conftest.er1
12633   cat conftest.err >&5
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } && {
12636          test -z "$ac_c_werror_flag" ||
12637          test ! -s conftest.err
12638        } && test -s conftest$ac_exeext &&
12639        $as_test_x conftest$ac_exeext; then
12640   gt_cv_func_CFLocaleCopyCurrent=yes
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645         gt_cv_func_CFLocaleCopyCurrent=no
12646 fi
12647
12648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649       conftest$ac_exeext conftest.$ac_ext
12650      CPPFLAGS="$gt_save_CPPFLAGS"
12651      LIBS="$gt_save_LIBS"
12652 fi
12653 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12654 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12655   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12656
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_CFLOCALECOPYCURRENT 1
12659 _ACEOF
12660
12661   fi
12662   INTL_MACOSX_LIBS=
12663   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12664     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12665   fi
12666
12667
12668
12669
12670   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12671 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12672     # Check whether --enable-nls was given.
12673 if test "${enable_nls+set}" = set; then
12674   enableval=$enable_nls; USE_NLS=$enableval
12675 else
12676   USE_NLS=yes
12677 fi
12678
12679   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12680 echo "${ECHO_T}$USE_NLS" >&6; }
12681
12682
12683
12684
12685     BUILD_INCLUDED_LIBINTL=no
12686     USE_INCLUDED_LIBINTL=no
12687
12688   LIBINTL=
12689   LTLIBINTL=
12690   POSUB=
12691
12692     if test "$USE_NLS" = "yes"; then
12693     gt_use_preinstalled_gnugettext=no
12694
12695       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12696 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12697
12698 # Check whether --with-included-gettext was given.
12699 if test "${with_included_gettext+set}" = set; then
12700   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12701 else
12702   nls_cv_force_use_gnu_gettext=no
12703 fi
12704
12705       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12706 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12707
12708       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12709       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12710
12711
12712
12713
12714
12715
12716         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12717 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12718 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   cat >conftest.$ac_ext <<_ACEOF
12722 /* confdefs.h.  */
12723 _ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h.  */
12727 #include <libintl.h>
12728 extern int _nl_msg_cat_cntr;
12729 extern int *_nl_domain_bindings;
12730 int
12731 main ()
12732 {
12733 bindtextdomain ("", "");
12734 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746   (eval "$ac_link") 2>conftest.er1
12747   ac_status=$?
12748   grep -v '^ *+' conftest.er1 >conftest.err
12749   rm -f conftest.er1
12750   cat conftest.err >&5
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } && {
12753          test -z "$ac_c_werror_flag" ||
12754          test ! -s conftest.err
12755        } && test -s conftest$ac_exeext &&
12756        $as_test_x conftest$ac_exeext; then
12757   gt_cv_func_gnugettext1_libc=yes
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762         gt_cv_func_gnugettext1_libc=no
12763 fi
12764
12765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12766       conftest$ac_exeext conftest.$ac_ext
12767 fi
12768 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12769 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12770
12771         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12772
12773
12774
12775     use_additional=yes
12776
12777   acl_save_prefix="$prefix"
12778   prefix="$acl_final_prefix"
12779   acl_save_exec_prefix="$exec_prefix"
12780   exec_prefix="$acl_final_exec_prefix"
12781
12782     eval additional_includedir=\"$includedir\"
12783     eval additional_libdir=\"$libdir\"
12784
12785   exec_prefix="$acl_save_exec_prefix"
12786   prefix="$acl_save_prefix"
12787
12788
12789 # Check whether --with-libintl-prefix was given.
12790 if test "${with_libintl_prefix+set}" = set; then
12791   withval=$with_libintl_prefix;
12792     if test "X$withval" = "Xno"; then
12793       use_additional=no
12794     else
12795       if test "X$withval" = "X"; then
12796
12797   acl_save_prefix="$prefix"
12798   prefix="$acl_final_prefix"
12799   acl_save_exec_prefix="$exec_prefix"
12800   exec_prefix="$acl_final_exec_prefix"
12801
12802           eval additional_includedir=\"$includedir\"
12803           eval additional_libdir=\"$libdir\"
12804
12805   exec_prefix="$acl_save_exec_prefix"
12806   prefix="$acl_save_prefix"
12807
12808       else
12809         additional_includedir="$withval/include"
12810         additional_libdir="$withval/lib"
12811       fi
12812     fi
12813
12814 fi
12815
12816       LIBINTL=
12817   LTLIBINTL=
12818   INCINTL=
12819   rpathdirs=
12820   ltrpathdirs=
12821   names_already_handled=
12822   names_next_round='intl '
12823   while test -n "$names_next_round"; do
12824     names_this_round="$names_next_round"
12825     names_next_round=
12826     for name in $names_this_round; do
12827       already_handled=
12828       for n in $names_already_handled; do
12829         if test "$n" = "$name"; then
12830           already_handled=yes
12831           break
12832         fi
12833       done
12834       if test -z "$already_handled"; then
12835         names_already_handled="$names_already_handled $name"
12836                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12837         eval value=\"\$HAVE_LIB$uppername\"
12838         if test -n "$value"; then
12839           if test "$value" = yes; then
12840             eval value=\"\$LIB$uppername\"
12841             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12842             eval value=\"\$LTLIB$uppername\"
12843             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12844           else
12845                                     :
12846           fi
12847         else
12848                               found_dir=
12849           found_la=
12850           found_so=
12851           found_a=
12852           if test $use_additional = yes; then
12853             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12854               found_dir="$additional_libdir"
12855               found_so="$additional_libdir/lib$name.$shlibext"
12856               if test -f "$additional_libdir/lib$name.la"; then
12857                 found_la="$additional_libdir/lib$name.la"
12858               fi
12859             else
12860               if test -f "$additional_libdir/lib$name.$libext"; then
12861                 found_dir="$additional_libdir"
12862                 found_a="$additional_libdir/lib$name.$libext"
12863                 if test -f "$additional_libdir/lib$name.la"; then
12864                   found_la="$additional_libdir/lib$name.la"
12865                 fi
12866               fi
12867             fi
12868           fi
12869           if test "X$found_dir" = "X"; then
12870             for x in $LDFLAGS $LTLIBINTL; do
12871
12872   acl_save_prefix="$prefix"
12873   prefix="$acl_final_prefix"
12874   acl_save_exec_prefix="$exec_prefix"
12875   exec_prefix="$acl_final_exec_prefix"
12876   eval x=\"$x\"
12877   exec_prefix="$acl_save_exec_prefix"
12878   prefix="$acl_save_prefix"
12879
12880               case "$x" in
12881                 -L*)
12882                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12883                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12884                     found_dir="$dir"
12885                     found_so="$dir/lib$name.$shlibext"
12886                     if test -f "$dir/lib$name.la"; then
12887                       found_la="$dir/lib$name.la"
12888                     fi
12889                   else
12890                     if test -f "$dir/lib$name.$libext"; then
12891                       found_dir="$dir"
12892                       found_a="$dir/lib$name.$libext"
12893                       if test -f "$dir/lib$name.la"; then
12894                         found_la="$dir/lib$name.la"
12895                       fi
12896                     fi
12897                   fi
12898                   ;;
12899               esac
12900               if test "X$found_dir" != "X"; then
12901                 break
12902               fi
12903             done
12904           fi
12905           if test "X$found_dir" != "X"; then
12906                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12907             if test "X$found_so" != "X"; then
12908                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12909                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12910               else
12911                                                                                 haveit=
12912                 for x in $ltrpathdirs; do
12913                   if test "X$x" = "X$found_dir"; then
12914                     haveit=yes
12915                     break
12916                   fi
12917                 done
12918                 if test -z "$haveit"; then
12919                   ltrpathdirs="$ltrpathdirs $found_dir"
12920                 fi
12921                                 if test "$hardcode_direct" = yes; then
12922                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12923                 else
12924                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12925                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12926                                                             haveit=
12927                     for x in $rpathdirs; do
12928                       if test "X$x" = "X$found_dir"; then
12929                         haveit=yes
12930                         break
12931                       fi
12932                     done
12933                     if test -z "$haveit"; then
12934                       rpathdirs="$rpathdirs $found_dir"
12935                     fi
12936                   else
12937                                                                                 haveit=
12938                     for x in $LDFLAGS $LIBINTL; do
12939
12940   acl_save_prefix="$prefix"
12941   prefix="$acl_final_prefix"
12942   acl_save_exec_prefix="$exec_prefix"
12943   exec_prefix="$acl_final_exec_prefix"
12944   eval x=\"$x\"
12945   exec_prefix="$acl_save_exec_prefix"
12946   prefix="$acl_save_prefix"
12947
12948                       if test "X$x" = "X-L$found_dir"; then
12949                         haveit=yes
12950                         break
12951                       fi
12952                     done
12953                     if test -z "$haveit"; then
12954                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12955                     fi
12956                     if test "$hardcode_minus_L" != no; then
12957                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12958                     else
12959                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12960                     fi
12961                   fi
12962                 fi
12963               fi
12964             else
12965               if test "X$found_a" != "X"; then
12966                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12967               else
12968                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12969               fi
12970             fi
12971                         additional_includedir=
12972             case "$found_dir" in
12973               */lib | */lib/)
12974                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12975                 additional_includedir="$basedir/include"
12976                 ;;
12977             esac
12978             if test "X$additional_includedir" != "X"; then
12979                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12980                 haveit=
12981                 if test "X$additional_includedir" = "X/usr/local/include"; then
12982                   if test -n "$GCC"; then
12983                     case $host_os in
12984                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12985                     esac
12986                   fi
12987                 fi
12988                 if test -z "$haveit"; then
12989                   for x in $CPPFLAGS $INCINTL; do
12990
12991   acl_save_prefix="$prefix"
12992   prefix="$acl_final_prefix"
12993   acl_save_exec_prefix="$exec_prefix"
12994   exec_prefix="$acl_final_exec_prefix"
12995   eval x=\"$x\"
12996   exec_prefix="$acl_save_exec_prefix"
12997   prefix="$acl_save_prefix"
12998
12999                     if test "X$x" = "X-I$additional_includedir"; then
13000                       haveit=yes
13001                       break
13002                     fi
13003                   done
13004                   if test -z "$haveit"; then
13005                     if test -d "$additional_includedir"; then
13006                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13007                     fi
13008                   fi
13009                 fi
13010               fi
13011             fi
13012                         if test -n "$found_la"; then
13013                                                         save_libdir="$libdir"
13014               case "$found_la" in
13015                 */* | *\\*) . "$found_la" ;;
13016                 *) . "./$found_la" ;;
13017               esac
13018               libdir="$save_libdir"
13019                             for dep in $dependency_libs; do
13020                 case "$dep" in
13021                   -L*)
13022                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13023                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13024                       haveit=
13025                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13026                         if test -n "$GCC"; then
13027                           case $host_os in
13028                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13029                           esac
13030                         fi
13031                       fi
13032                       if test -z "$haveit"; then
13033                         haveit=
13034                         for x in $LDFLAGS $LIBINTL; do
13035
13036   acl_save_prefix="$prefix"
13037   prefix="$acl_final_prefix"
13038   acl_save_exec_prefix="$exec_prefix"
13039   exec_prefix="$acl_final_exec_prefix"
13040   eval x=\"$x\"
13041   exec_prefix="$acl_save_exec_prefix"
13042   prefix="$acl_save_prefix"
13043
13044                           if test "X$x" = "X-L$additional_libdir"; then
13045                             haveit=yes
13046                             break
13047                           fi
13048                         done
13049                         if test -z "$haveit"; then
13050                           if test -d "$additional_libdir"; then
13051                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13052                           fi
13053                         fi
13054                         haveit=
13055                         for x in $LDFLAGS $LTLIBINTL; do
13056
13057   acl_save_prefix="$prefix"
13058   prefix="$acl_final_prefix"
13059   acl_save_exec_prefix="$exec_prefix"
13060   exec_prefix="$acl_final_exec_prefix"
13061   eval x=\"$x\"
13062   exec_prefix="$acl_save_exec_prefix"
13063   prefix="$acl_save_prefix"
13064
13065                           if test "X$x" = "X-L$additional_libdir"; then
13066                             haveit=yes
13067                             break
13068                           fi
13069                         done
13070                         if test -z "$haveit"; then
13071                           if test -d "$additional_libdir"; then
13072                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13073                           fi
13074                         fi
13075                       fi
13076                     fi
13077                     ;;
13078                   -R*)
13079                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13080                     if test "$enable_rpath" != no; then
13081                                                                   haveit=
13082                       for x in $rpathdirs; do
13083                         if test "X$x" = "X$dir"; then
13084                           haveit=yes
13085                           break
13086                         fi
13087                       done
13088                       if test -z "$haveit"; then
13089                         rpathdirs="$rpathdirs $dir"
13090                       fi
13091                                                                   haveit=
13092                       for x in $ltrpathdirs; do
13093                         if test "X$x" = "X$dir"; then
13094                           haveit=yes
13095                           break
13096                         fi
13097                       done
13098                       if test -z "$haveit"; then
13099                         ltrpathdirs="$ltrpathdirs $dir"
13100                       fi
13101                     fi
13102                     ;;
13103                   -l*)
13104                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13105                     ;;
13106                   *.la)
13107                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13108                     ;;
13109                   *)
13110                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13111                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13112                     ;;
13113                 esac
13114               done
13115             fi
13116           else
13117                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13118             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13119           fi
13120         fi
13121       fi
13122     done
13123   done
13124   if test "X$rpathdirs" != "X"; then
13125     if test -n "$hardcode_libdir_separator"; then
13126                         alldirs=
13127       for found_dir in $rpathdirs; do
13128         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13129       done
13130             acl_save_libdir="$libdir"
13131       libdir="$alldirs"
13132       eval flag=\"$hardcode_libdir_flag_spec\"
13133       libdir="$acl_save_libdir"
13134       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13135     else
13136             for found_dir in $rpathdirs; do
13137         acl_save_libdir="$libdir"
13138         libdir="$found_dir"
13139         eval flag=\"$hardcode_libdir_flag_spec\"
13140         libdir="$acl_save_libdir"
13141         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13142       done
13143     fi
13144   fi
13145   if test "X$ltrpathdirs" != "X"; then
13146             for found_dir in $ltrpathdirs; do
13147       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13148     done
13149   fi
13150
13151           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13152 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13153 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13154   echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156   gt_save_CPPFLAGS="$CPPFLAGS"
13157             CPPFLAGS="$CPPFLAGS $INCINTL"
13158             gt_save_LIBS="$LIBS"
13159             LIBS="$LIBS $LIBINTL"
13160                         cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h.  */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h.  */
13166 #include <libintl.h>
13167 extern int _nl_msg_cat_cntr;
13168 extern
13169 #ifdef __cplusplus
13170 "C"
13171 #endif
13172 const char *_nl_expand_alias (const char *);
13173 int
13174 main ()
13175 {
13176 bindtextdomain ("", "");
13177 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189   (eval "$ac_link") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } && {
13196          test -z "$ac_c_werror_flag" ||
13197          test ! -s conftest.err
13198        } && test -s conftest$ac_exeext &&
13199        $as_test_x conftest$ac_exeext; then
13200   gt_cv_func_gnugettext1_libintl=yes
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205         gt_cv_func_gnugettext1_libintl=no
13206 fi
13207
13208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13209       conftest$ac_exeext conftest.$ac_ext
13210                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13211               LIBS="$LIBS $LIBICONV"
13212               cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 #include <libintl.h>
13219 extern int _nl_msg_cat_cntr;
13220 extern
13221 #ifdef __cplusplus
13222 "C"
13223 #endif
13224 const char *_nl_expand_alias (const char *);
13225 int
13226 main ()
13227 {
13228 bindtextdomain ("", "");
13229 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_link") 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } && {
13248          test -z "$ac_c_werror_flag" ||
13249          test ! -s conftest.err
13250        } && test -s conftest$ac_exeext &&
13251        $as_test_x conftest$ac_exeext; then
13252   LIBINTL="$LIBINTL $LIBICONV"
13253                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13254                 gt_cv_func_gnugettext1_libintl=yes
13255
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260
13261 fi
13262
13263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13264       conftest$ac_exeext conftest.$ac_ext
13265             fi
13266             CPPFLAGS="$gt_save_CPPFLAGS"
13267             LIBS="$gt_save_LIBS"
13268 fi
13269 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13270 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13271         fi
13272
13273                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13274            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13275                 && test "$PACKAGE" != gettext-runtime \
13276                 && test "$PACKAGE" != gettext-tools; }; then
13277           gt_use_preinstalled_gnugettext=yes
13278         else
13279                     LIBINTL=
13280           LTLIBINTL=
13281           INCINTL=
13282         fi
13283
13284
13285         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13286                               nls_cv_use_gnu_gettext=yes
13287         fi
13288       fi
13289
13290       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13291                 BUILD_INCLUDED_LIBINTL=yes
13292         USE_INCLUDED_LIBINTL=yes
13293         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13294         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13295         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13296       fi
13297
13298       CATOBJEXT=
13299       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13300          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13301                 CATOBJEXT=.gmo
13302       fi
13303
13304
13305     if test -n "$INTL_MACOSX_LIBS"; then
13306       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13307          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13308                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13309         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13310       fi
13311     fi
13312
13313     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13314        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13315
13316 cat >>confdefs.h <<\_ACEOF
13317 #define ENABLE_NLS 1
13318 _ACEOF
13319
13320     else
13321       USE_NLS=no
13322     fi
13323   fi
13324
13325   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13326 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13327   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13328 echo "${ECHO_T}$USE_NLS" >&6; }
13329   if test "$USE_NLS" = "yes"; then
13330     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13331 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13332     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13333       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13334         gt_source="external libintl"
13335       else
13336         gt_source="libc"
13337       fi
13338     else
13339       gt_source="included intl directory"
13340     fi
13341     { echo "$as_me:$LINENO: result: $gt_source" >&5
13342 echo "${ECHO_T}$gt_source" >&6; }
13343   fi
13344
13345   if test "$USE_NLS" = "yes"; then
13346
13347     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13348       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13349         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13350 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13351         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13352 echo "${ECHO_T}$LIBINTL" >&6; }
13353
13354   for element in $INCINTL; do
13355     haveit=
13356     for x in $CPPFLAGS; do
13357
13358   acl_save_prefix="$prefix"
13359   prefix="$acl_final_prefix"
13360   acl_save_exec_prefix="$exec_prefix"
13361   exec_prefix="$acl_final_exec_prefix"
13362   eval x=\"$x\"
13363   exec_prefix="$acl_save_exec_prefix"
13364   prefix="$acl_save_prefix"
13365
13366       if test "X$x" = "X$element"; then
13367         haveit=yes
13368         break
13369       fi
13370     done
13371     if test -z "$haveit"; then
13372       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13373     fi
13374   done
13375
13376       fi
13377
13378
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_GETTEXT 1
13381 _ACEOF
13382
13383
13384 cat >>confdefs.h <<\_ACEOF
13385 #define HAVE_DCGETTEXT 1
13386 _ACEOF
13387
13388     fi
13389
13390         POSUB=po
13391   fi
13392
13393
13394             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13395       BUILD_INCLUDED_LIBINTL=yes
13396     fi
13397
13398
13399
13400
13401
13402         nls_cv_header_intl=
13403     nls_cv_header_libgt=
13404
13405         DATADIRNAME=share
13406
13407
13408         INSTOBJEXT=.mo
13409
13410
13411         GENCAT=gencat
13412
13413
13414         INTLOBJS=
13415     if test "$USE_INCLUDED_LIBINTL" = yes; then
13416       INTLOBJS="\$(GETTOBJS)"
13417     fi
13418
13419
13420         INTL_LIBTOOL_SUFFIX_PREFIX=
13421
13422
13423
13424     INTLLIBS="$LIBINTL"
13425
13426
13427
13428
13429
13430
13431 fi
13432
13433 support_faketape=no
13434 support_mysql=no
13435 support_sqlite=no
13436 support_sqlite3=no
13437 support_postgresql=no
13438 support_dbi=no
13439 support_smartalloc=yes
13440 support_readline=yes
13441 support_conio=yes
13442 support_gnome=no
13443 support_bat=no
13444 support_wx_console=no
13445 support_tls=no
13446 support_crypto=no
13447 gnome_version=
13448 wx_version=
13449 support_static_tools=no
13450 support_static_fd=no
13451 support_static_sd=no
13452 support_static_dir=no
13453 support_static_cons=no
13454 support_python=no
13455 build_client_only=no
13456 build_dird=yes
13457 build_stored=yes
13458 cats=
13459 db_type=Internal
13460 DB_TYPE=bdb
13461
13462
13463 # -------------------------------------------
13464 # gnome (default off)
13465 # -------------------------------------------
13466 # Check whether --enable-gnome was given.
13467 if test "${enable_gnome+set}" = set; then
13468   enableval=$enable_gnome; if test x$enableval = xyes; then
13469     support_gnome=yes
13470   fi
13471 fi
13472
13473
13474 GNOME_DIR=
13475 if test x$support_gnome = xyes; then
13476   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13477   pkg=$?
13478   if test $pkg = 0; then
13479      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13480      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13481      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13482      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13483
13484
13485
13486
13487      GNOME_DIR=src/gnome2-console
13488      gnome_version="Version 2.x"
13489   else
13490      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13491 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13492    { (exit 1); exit 1; }; }
13493   fi
13494 fi
13495
13496
13497 # -------------------------------------------
13498 # bat (default off)
13499 # -------------------------------------------
13500 # Check whether --enable-bat was given.
13501 if test "${enable_bat+set}" = set; then
13502   enableval=$enable_bat; if test x$enableval = xyes; then
13503
13504 cat >>confdefs.h <<\_ACEOF
13505 #define HAVE_BAT 1
13506 _ACEOF
13507
13508     support_bat=yes
13509   fi
13510 fi
13511
13512
13513 BAT_DIR=
13514 if test x$support_bat = xyes; then
13515   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13516   pkg=$?
13517   if test $pkg = 0; then
13518      BAT_DIR=src/qt-console
13519   else
13520      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13521 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13522    { (exit 1); exit 1; }; }
13523   fi
13524 fi
13525
13526 #
13527 #  If bat is enabled, we need the qwt library
13528 got_qwt=no
13529 QWT_INC=
13530 QWT_LDFLAGS=
13531 QWT_LIB=
13532 QWT=
13533 no_qwt=no
13534 if test x$support_bat = xyes; then
13535    { echo "$as_me:$LINENO: checking for qwt support" >&5
13536 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13537
13538 # Check whether --with-qwt was given.
13539 if test "${with_qwt+set}" = set; then
13540   withval=$with_qwt;
13541         case "$with_qwt" in
13542         no)
13543            no_qwt=yes
13544           ;;
13545         yes|*)
13546           if test -f ${with_qwt}/include/qwt.h; then
13547              QWT_INC="${with_qwt}/include"
13548              QWT_LDFLAGS="-L${with_qwt}/lib"
13549              QWT_LIB="-lqwt"
13550              QWT="qwt"
13551           fi
13552           ;;
13553         esac
13554
13555
13556 fi
13557
13558 #
13559 # Search in standard places, or --with-qwt not specified
13560 #
13561    if test $no_qwt = no; then
13562     if test x$QWT_INC = x; then
13563       for root in /usr /usr/local; do
13564          for ver in qwt qwt5 qwt-qt4; do
13565             if test -f ${root}/include/${ver}/qwt.h; then
13566                QWT_INC="${root}/include/${ver}"
13567                if test -d ${root}/lib64/; then
13568                   QWT_LDFLAGS="-L${root}/lib64"
13569                else
13570                   QWT_LDFLAGS="-L${root}/lib"
13571                fi
13572                QWT_LIB="-lqwt"
13573                QWT="qwt"
13574                got_qwt=yes
13575                break;
13576             fi
13577          done
13578       done
13579     fi
13580    fi
13581    if test x$QWT_INC = x; then
13582       { echo "$as_me:$LINENO: result: no" >&5
13583 echo "${ECHO_T}no" >&6; }
13584    else
13585
13586 cat >>confdefs.h <<\_ACEOF
13587 #define HAVE_QWT 1
13588 _ACEOF
13589
13590       { echo "$as_me:$LINENO: result: yes" >&5
13591 echo "${ECHO_T}yes" >&6; }
13592    fi
13593 fi
13594
13595
13596
13597
13598
13599
13600
13601
13602 # -------------------------------------------
13603 # bwx-console (default off)
13604 # -------------------------------------------
13605 # Check whether --enable-bwx-console was given.
13606 if test "${enable_bwx_console+set}" = set; then
13607   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13608     support_wx_console=yes
13609   fi
13610 fi
13611
13612
13613 WX_DIR=
13614 if test x$support_wx_console = xyes; then
13615   abc=`$WXCONFIG $WXFLAGS --cppflags`
13616   pkg=$?
13617   if test $pkg = 0; then
13618      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13619      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13620      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13621
13622
13623
13624      WX_DIR=src/wx-console
13625   else
13626      echo " "
13627      echo "wx-config program not found. bwx-console disabled."
13628      echo " "
13629      support_wx_console=no
13630   fi
13631 fi
13632
13633
13634
13635 # -------------------------------------------
13636 # tray-monitor (default off)
13637 # -------------------------------------------
13638 # Check whether --enable-tray-monitor was given.
13639 if test "${enable_tray_monitor+set}" = set; then
13640   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13641     support_tray_monitor=yes
13642   fi
13643 fi
13644
13645
13646 TRAY_MONITOR_DIR=
13647 if test x$support_tray_monitor = xyes; then
13648   abc=`$PKGCONFIG --exists gtk+-2.0`
13649   pkg=$?
13650   if test $pkg = 0; then
13651      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13652      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13653
13654
13655      TRAY_MONITOR_DIR=src/tray-monitor
13656      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13657      pkg=$?
13658      if test $pkg = 0; then
13659
13660 cat >>confdefs.h <<\_ACEOF
13661 #define HAVE_GTK_2_4 1
13662 _ACEOF
13663
13664      fi
13665   fi
13666 fi
13667
13668
13669 # -------------------------------------------
13670 # smartalloc (default off)
13671 # -------------------------------------------
13672 # Check whether --enable-smartalloc was given.
13673 if test "${enable_smartalloc+set}" = set; then
13674   enableval=$enable_smartalloc; if test x$enableval = xno; then
13675     support_smartalloc=no
13676   fi
13677 fi
13678
13679
13680 if test x$support_smartalloc = xyes; then
13681
13682 cat >>confdefs.h <<\_ACEOF
13683 #define SMARTALLOC 1
13684 _ACEOF
13685
13686 fi
13687
13688 # -------------------------------------------
13689 # faketape (default off)
13690 # -------------------------------------------
13691 # Check whether --enable-faketape was given.
13692 if test "${enable_faketape+set}" = set; then
13693   enableval=$enable_faketape; if test x$enableval = xyes; then
13694     support_faketape=yes
13695   fi
13696 fi
13697
13698
13699 if test x$support_faketape = xyes; then
13700
13701 cat >>confdefs.h <<\_ACEOF
13702 #define USE_FAKETAPE 1
13703 _ACEOF
13704
13705 fi
13706
13707 # -------------------------------------------
13708 # static-tools (default off)
13709 # -------------------------------------------
13710 # Check whether --enable-static-tools was given.
13711 if test "${enable_static_tools+set}" = set; then
13712   enableval=$enable_static_tools; if test x$enableval = xyes; then
13713      support_static_tools=yes
13714    fi
13715 fi
13716
13717
13718 TTOOL_LDFLAGS=
13719 if test x$support_static_tools = xyes; then
13720    TTOOL_LDFLAGS="-static"
13721 fi
13722
13723
13724 # -------------------------------------------
13725 # static-fd    (default off)
13726 # -------------------------------------------
13727 # Check whether --enable-static-fd was given.
13728 if test "${enable_static_fd+set}" = set; then
13729   enableval=$enable_static_fd; if test x$enableval = xyes; then
13730      support_static_fd=yes
13731    fi
13732 fi
13733
13734
13735 STATIC_FD=
13736 if test x$support_static_fd = xyes; then
13737    STATIC_FD="static-bacula-fd"
13738 fi
13739
13740
13741 # -------------------------------------------
13742 # static-sd    (default off)
13743 # -------------------------------------------
13744 # Check whether --enable-static-sd was given.
13745 if test "${enable_static_sd+set}" = set; then
13746   enableval=$enable_static_sd; if test x$enableval = xyes; then
13747      support_static_sd=yes
13748    fi
13749 fi
13750
13751
13752 STATIC_SD=
13753 if test x$support_static_sd = xyes; then
13754    STATIC_SD="static-bacula-sd"
13755 fi
13756
13757
13758 # -------------------------------------------
13759 # static-dir   (default off)
13760 # -------------------------------------------
13761 # Check whether --enable-static-dir was given.
13762 if test "${enable_static_dir+set}" = set; then
13763   enableval=$enable_static_dir; if test x$enableval = xyes; then
13764      support_static_dir=yes
13765    fi
13766 fi
13767
13768
13769 STATIC_DIR=
13770 if test x$support_static_dir = xyes; then
13771    STATIC_DIR="static-bacula-dir"
13772 fi
13773
13774
13775 # -------------------------------------------
13776 # static-cons  (default off)
13777 # -------------------------------------------
13778 # Check whether --enable-static-cons was given.
13779 if test "${enable_static_cons+set}" = set; then
13780   enableval=$enable_static_cons; if test x$enableval = xyes; then
13781      support_static_cons=yes
13782    fi
13783 fi
13784
13785
13786 STATIC_CONS=
13787 STATIC_GNOME_CONS=
13788 STATIC_WX_CONS=
13789 if test x$support_static_cons = xyes; then
13790    STATIC_CONS="static-bconsole"
13791    STATIC_GNOME_CONS="static-bgnome-console"
13792    STATIC_WX_CONS="static-bwx-console"
13793 fi
13794
13795
13796
13797
13798 # -------------------------------------------
13799 # client_only  (default off)
13800 # -------------------------------------------
13801 # Check whether --enable-client-only was given.
13802 if test "${enable_client_only+set}" = set; then
13803   enableval=$enable_client_only; if test x$enableval = xyes; then
13804       build_client_only=yes
13805       db_type=None
13806       DB_TYPE=none
13807    fi
13808 fi
13809
13810 if test x$build_client_only = xno; then
13811    ALL_DIRS="subdirs"
13812 else
13813    ALL_DIRS=""
13814 fi
13815
13816
13817 # -------------------------------------------
13818 # director  (default on)
13819 # -------------------------------------------
13820 # Check whether --enable-build-dird was given.
13821 if test "${enable_build_dird+set}" = set; then
13822   enableval=$enable_build_dird; if test x$enableval = xno; then
13823       build_dird=no
13824    fi
13825 fi
13826
13827 if test x$build_dird = xyes; then
13828    DIRD_DIR="src/dird"
13829    DIR_TOOLS="DIRTOOLS"
13830 else
13831    DIRD_DIR=""
13832    DIR_TOOLS="NODIRTOOLS"
13833 fi
13834
13835
13836
13837 # -------------------------------------------
13838 # stored  (default on)
13839 # -------------------------------------------
13840 # Check whether --enable-build-stored was given.
13841 if test "${enable_build_stored+set}" = set; then
13842   enableval=$enable_build_stored; if test x$enableval = xno; then
13843       build_stored=no
13844    fi
13845 fi
13846
13847 if test x$build_stored = xyes; then
13848    STORED_DIR="src/stored"
13849 else
13850    STORED_DIR=""
13851 fi
13852
13853
13854 # ---------------------------------------------------
13855 # Check for conio (Bacula readline substitute)(
13856 # ---------------------------------------------------
13857 # this allows you to turn it completely off
13858 # Check whether --enable-conio was given.
13859 if test "${enable_conio+set}" = set; then
13860   enableval=$enable_conio; if test x$enableval = xno; then
13861      support_conio=no
13862   fi
13863
13864 fi
13865
13866
13867
13868 # ---------------------------------------------------
13869 # Check for IPv6 support
13870 # ---------------------------------------------------
13871 # this allows you to turn it completely off
13872 support_ipv6=yes
13873 # Check whether --enable-ipv6 was given.
13874 if test "${enable_ipv6+set}" = set; then
13875   enableval=$enable_ipv6; if test x$enableval = xno; then
13876      support_ipv6=no
13877   fi
13878
13879 fi
13880
13881
13882 if test x$support_ipv6 = xyes; then
13883     cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889  #include <sys/types.h>
13890 #include <sys/socket.h>
13891 #include <netinet/in.h>
13892 int
13893 main ()
13894 {
13895 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13896   ;
13897   return 0;
13898 }
13899 _ACEOF
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904   *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907   (eval "$ac_link") 2>conftest.er1
13908   ac_status=$?
13909   grep -v '^ *+' conftest.er1 >conftest.err
13910   rm -f conftest.er1
13911   cat conftest.err >&5
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); } && {
13914          test -z "$ac_c_werror_flag" ||
13915          test ! -s conftest.err
13916        } && test -s conftest$ac_exeext &&
13917        $as_test_x conftest$ac_exeext; then
13918   support_ipv6=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923         support_ipv6=no
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927       conftest$ac_exeext conftest.$ac_ext
13928 fi
13929
13930 if test x$support_ipv6 = xyes; then
13931
13932 cat >>confdefs.h <<\_ACEOF
13933 #define HAVE_IPV6 1
13934 _ACEOF
13935
13936 fi
13937
13938
13939
13940 got_conio="no"
13941 if test x$support_conio = xyes; then
13942    if test "${ac_cv_header_termcap_h+set}" = set; then
13943   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13944 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13945 if test "${ac_cv_header_termcap_h+set}" = set; then
13946   echo $ECHO_N "(cached) $ECHO_C" >&6
13947 fi
13948 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13949 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13950 else
13951   # Is the header compilable?
13952 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13953 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h.  */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h.  */
13960 $ac_includes_default
13961 #include <termcap.h>
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967   *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970   (eval "$ac_compile") 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } && {
13977          test -z "$ac_c_werror_flag" ||
13978          test ! -s conftest.err
13979        } && test -s conftest.$ac_objext; then
13980   ac_header_compiler=yes
13981 else
13982   echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985         ac_header_compiler=no
13986 fi
13987
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 echo "${ECHO_T}$ac_header_compiler" >&6; }
13991
13992 # Is the header present?
13993 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13994 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 #include <termcap.h>
14002 _ACEOF
14003 if { (ac_try="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14010   ac_status=$?
14011   grep -v '^ *+' conftest.er1 >conftest.err
14012   rm -f conftest.er1
14013   cat conftest.err >&5
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } >/dev/null && {
14016          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14017          test ! -s conftest.err
14018        }; then
14019   ac_header_preproc=yes
14020 else
14021   echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024   ac_header_preproc=no
14025 fi
14026
14027 rm -f conftest.err conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6; }
14030
14031 # So?  What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14033   yes:no: )
14034     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14038     ac_header_preproc=yes
14039     ;;
14040   no:yes:* )
14041     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14043     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14045     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14047     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14049     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14051     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14053
14054     ;;
14055 esac
14056 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14057 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14058 if test "${ac_cv_header_termcap_h+set}" = set; then
14059   echo $ECHO_N "(cached) $ECHO_C" >&6
14060 else
14061   ac_cv_header_termcap_h=$ac_header_preproc
14062 fi
14063 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14064 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14065
14066 fi
14067 if test $ac_cv_header_termcap_h = yes; then
14068    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14069 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14070 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14071   echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073   ac_check_lib_save_LIBS=$LIBS
14074 LIBS="-ltermcap  $LIBS"
14075 cat >conftest.$ac_ext <<_ACEOF
14076 /* confdefs.h.  */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h.  */
14081
14082 /* Override any GCC internal prototype to avoid an error.
14083    Use char because int might match the return type of a GCC
14084    builtin and then its argument prototype would still apply.  */
14085 #ifdef __cplusplus
14086 extern "C"
14087 #endif
14088 char tgetent ();
14089 int
14090 main ()
14091 {
14092 return tgetent ();
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (ac_try="$ac_link"
14099 case "(($ac_try" in
14100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101   *) ac_try_echo=$ac_try;;
14102 esac
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104   (eval "$ac_link") 2>conftest.er1
14105   ac_status=$?
14106   grep -v '^ *+' conftest.er1 >conftest.err
14107   rm -f conftest.er1
14108   cat conftest.err >&5
14109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110   (exit $ac_status); } && {
14111          test -z "$ac_c_werror_flag" ||
14112          test ! -s conftest.err
14113        } && test -s conftest$ac_exeext &&
14114        $as_test_x conftest$ac_exeext; then
14115   ac_cv_lib_termcap_tgetent=yes
14116 else
14117   echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14119
14120         ac_cv_lib_termcap_tgetent=no
14121 fi
14122
14123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14124       conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14126 fi
14127 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14128 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14129 if test $ac_cv_lib_termcap_tgetent = yes; then
14130    CONS_LIBS="-ltermcap"
14131          CONS_OBJ="conio.o"
14132          CONS_SRC="conio.c"
14133          got_conio="yes"
14134          support_readline=no
14135
14136 cat >>confdefs.h <<\_ACEOF
14137 #define HAVE_CONIO 1
14138 _ACEOF
14139
14140
14141 else
14142    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14143 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14144 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14145   echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147   ac_check_lib_save_LIBS=$LIBS
14148 LIBS="-lncurses  $LIBS"
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155
14156 /* Override any GCC internal prototype to avoid an error.
14157    Use char because int might match the return type of a GCC
14158    builtin and then its argument prototype would still apply.  */
14159 #ifdef __cplusplus
14160 extern "C"
14161 #endif
14162 char tgetent ();
14163 int
14164 main ()
14165 {
14166 return tgetent ();
14167   ;
14168   return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (ac_try="$ac_link"
14173 case "(($ac_try" in
14174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175   *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178   (eval "$ac_link") 2>conftest.er1
14179   ac_status=$?
14180   grep -v '^ *+' conftest.er1 >conftest.err
14181   rm -f conftest.er1
14182   cat conftest.err >&5
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } && {
14185          test -z "$ac_c_werror_flag" ||
14186          test ! -s conftest.err
14187        } && test -s conftest$ac_exeext &&
14188        $as_test_x conftest$ac_exeext; then
14189   ac_cv_lib_ncurses_tgetent=yes
14190 else
14191   echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194         ac_cv_lib_ncurses_tgetent=no
14195 fi
14196
14197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14198       conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14202 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14203 if test $ac_cv_lib_ncurses_tgetent = yes; then
14204    CONS_LIBS="-lncurses"
14205            CONS_OBJ="conio.o"
14206            CONS_SRC="conio.c"
14207            got_conio="yes"
14208            support_readline=no
14209
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_CONIO 1
14212 _ACEOF
14213
14214
14215 fi
14216
14217
14218 fi
14219
14220
14221 else
14222
14223
14224 for ac_header in curses.h
14225 do
14226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14228   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14231   echo $ECHO_N "(cached) $ECHO_C" >&6
14232 fi
14233 ac_res=`eval echo '${'$as_ac_Header'}'`
14234                { echo "$as_me:$LINENO: result: $ac_res" >&5
14235 echo "${ECHO_T}$ac_res" >&6; }
14236 else
14237   # Is the header compilable?
14238 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 $ac_includes_default
14247 #include <$ac_header>
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253   *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256   (eval "$ac_compile") 2>conftest.er1
14257   ac_status=$?
14258   grep -v '^ *+' conftest.er1 >conftest.err
14259   rm -f conftest.er1
14260   cat conftest.err >&5
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } && {
14263          test -z "$ac_c_werror_flag" ||
14264          test ! -s conftest.err
14265        } && test -s conftest.$ac_objext; then
14266   ac_header_compiler=yes
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271         ac_header_compiler=no
14272 fi
14273
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14276 echo "${ECHO_T}$ac_header_compiler" >&6; }
14277
14278 # Is the header present?
14279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14281 cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h.  */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h.  */
14287 #include <$ac_header>
14288 _ACEOF
14289 if { (ac_try="$ac_cpp conftest.$ac_ext"
14290 case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14296   ac_status=$?
14297   grep -v '^ *+' conftest.er1 >conftest.err
14298   rm -f conftest.er1
14299   cat conftest.err >&5
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); } >/dev/null && {
14302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14303          test ! -s conftest.err
14304        }; then
14305   ac_header_preproc=yes
14306 else
14307   echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14309
14310   ac_header_preproc=no
14311 fi
14312
14313 rm -f conftest.err conftest.$ac_ext
14314 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14315 echo "${ECHO_T}$ac_header_preproc" >&6; }
14316
14317 # So?  What about this header?
14318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14319   yes:no: )
14320     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14324     ac_header_preproc=yes
14325     ;;
14326   no:yes:* )
14327     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14329     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14330 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14331     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14333     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14334 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14337     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14339
14340     ;;
14341 esac
14342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   eval "$as_ac_Header=\$ac_header_preproc"
14348 fi
14349 ac_res=`eval echo '${'$as_ac_Header'}'`
14350                { echo "$as_me:$LINENO: result: $ac_res" >&5
14351 echo "${ECHO_T}$ac_res" >&6; }
14352
14353 fi
14354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14355   cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14357 _ACEOF
14358
14359 fi
14360
14361 done
14362
14363          { echo "$as_me:$LINENO: checking for term.h" >&5
14364 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14365 if test "${ac_cv_header_term_h+set}" = set; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368   cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h.  */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h.  */
14374 #if HAVE_CURSES_H
14375 #include <curses.h>
14376 #endif
14377
14378
14379 #include <term.h>
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (ac_try="$ac_compile"
14383 case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_compile") 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } && {
14395          test -z "$ac_c_werror_flag" ||
14396          test ! -s conftest.err
14397        } && test -s conftest.$ac_objext; then
14398   ac_cv_header_term_h=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403         ac_cv_header_term_h=no
14404 fi
14405
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 fi
14408 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14409 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14410 if test $ac_cv_header_term_h = yes; then
14411    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14412 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14413 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14414   echo $ECHO_N "(cached) $ECHO_C" >&6
14415 else
14416   ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-lcurses  $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h.  */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h.  */
14424
14425 /* Override any GCC internal prototype to avoid an error.
14426    Use char because int might match the return type of a GCC
14427    builtin and then its argument prototype would still apply.  */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 char tgetent ();
14432 int
14433 main ()
14434 {
14435 return tgetent ();
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444   *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447   (eval "$ac_link") 2>conftest.er1
14448   ac_status=$?
14449   grep -v '^ *+' conftest.er1 >conftest.err
14450   rm -f conftest.er1
14451   cat conftest.err >&5
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); } && {
14454          test -z "$ac_c_werror_flag" ||
14455          test ! -s conftest.err
14456        } && test -s conftest$ac_exeext &&
14457        $as_test_x conftest$ac_exeext; then
14458   ac_cv_lib_curses_tgetent=yes
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463         ac_cv_lib_curses_tgetent=no
14464 fi
14465
14466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14467       conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14469 fi
14470 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14471 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14472 if test $ac_cv_lib_curses_tgetent = yes; then
14473    CONS_LIBS="-lcurses"
14474                    CONS_OBJ="conio.o"
14475                    CONS_SRC="conio.c"
14476                    got_conio="yes"
14477                    support_readline=no
14478
14479 cat >>confdefs.h <<\_ACEOF
14480 #define HAVE_CONIO 1
14481 _ACEOF
14482
14483
14484 fi
14485
14486
14487 else
14488    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14489 fi
14490
14491
14492
14493 fi
14494
14495
14496 fi
14497
14498
14499 # ---------------------------------------------------
14500 # Check for readline support/directory (default off)
14501 # ---------------------------------------------------
14502 # this allows you to turn it completely off
14503 # Check whether --enable-readline was given.
14504 if test "${enable_readline+set}" = set; then
14505   enableval=$enable_readline; if test x$enableval = xno; then
14506     support_readline=no
14507   fi
14508 fi
14509
14510
14511 got_readline="no"
14512 READLINE_SRC=
14513 if test x$support_readline = xyes; then
14514
14515 # Check whether --with-readline was given.
14516 if test "${with_readline+set}" = set; then
14517   withval=$with_readline;
14518         case "$with_readline" in
14519         no) : ;;
14520         yes|*)
14521           if test -f ${with_readline}/readline.h; then
14522              CONS_INC="-I${with_readline}"
14523              CONS_LDFLAGS="-L$with_readline"
14524           elif test -f ${with_readline}/include/readline/readline.h; then
14525              CONS_INC="-I${with_readline}/include/readline"
14526              CONS_LDFLAGS="-L${with_readline}/lib"
14527              with_readline="${with_readline}/include/readline"
14528           else
14529              with_readline="/usr/include/readline"
14530           fi
14531           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14534 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 fi
14538 ac_res=`eval echo '${'$as_ac_Header'}'`
14539                { echo "$as_me:$LINENO: result: $ac_res" >&5
14540 echo "${ECHO_T}$ac_res" >&6; }
14541 else
14542   # Is the header compilable?
14543 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14544 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h.  */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h.  */
14551 $ac_includes_default
14552 #include <${with_readline}/readline.h>
14553 _ACEOF
14554 rm -f conftest.$ac_objext
14555 if { (ac_try="$ac_compile"
14556 case "(($ac_try" in
14557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558   *) ac_try_echo=$ac_try;;
14559 esac
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561   (eval "$ac_compile") 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } && {
14568          test -z "$ac_c_werror_flag" ||
14569          test ! -s conftest.err
14570        } && test -s conftest.$ac_objext; then
14571   ac_header_compiler=yes
14572 else
14573   echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14575
14576         ac_header_compiler=no
14577 fi
14578
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14581 echo "${ECHO_T}$ac_header_compiler" >&6; }
14582
14583 # Is the header present?
14584 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14585 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h.  */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h.  */
14592 #include <${with_readline}/readline.h>
14593 _ACEOF
14594 if { (ac_try="$ac_cpp conftest.$ac_ext"
14595 case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14601   ac_status=$?
14602   grep -v '^ *+' conftest.er1 >conftest.err
14603   rm -f conftest.er1
14604   cat conftest.err >&5
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } >/dev/null && {
14607          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14608          test ! -s conftest.err
14609        }; then
14610   ac_header_preproc=yes
14611 else
14612   echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615   ac_header_preproc=no
14616 fi
14617
14618 rm -f conftest.err conftest.$ac_ext
14619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14620 echo "${ECHO_T}$ac_header_preproc" >&6; }
14621
14622 # So?  What about this header?
14623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14624   yes:no: )
14625     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14626 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14627     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14628 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14629     ac_header_preproc=yes
14630     ;;
14631   no:yes:* )
14632     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14633 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14634     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14635 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14636     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14637 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14638     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14639 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14640     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14641 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14642     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14643 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14644
14645     ;;
14646 esac
14647 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14648 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650   echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652   eval "$as_ac_Header=\$ac_header_preproc"
14653 fi
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655                { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14657
14658 fi
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_READLINE 1
14663 _ACEOF
14664
14665                CONS_LIBS="-lreadline -lhistory -ltermcap"
14666                got_readline="yes"
14667
14668 else
14669    echo " "
14670                echo "readline.h not found. readline turned off ..."
14671                echo " "
14672
14673
14674 fi
14675
14676
14677           ;;
14678         esac
14679
14680 else
14681
14682        # check for standard readline library
14683        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14684   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14685 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14686 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 fi
14689 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14690 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14691 else
14692   # Is the header compilable?
14693 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14694 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14695 cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701 $ac_includes_default
14702 #include </usr/include/readline/readline.h>
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (ac_try="$ac_compile"
14706 case "(($ac_try" in
14707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708   *) ac_try_echo=$ac_try;;
14709 esac
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711   (eval "$ac_compile") 2>conftest.er1
14712   ac_status=$?
14713   grep -v '^ *+' conftest.er1 >conftest.err
14714   rm -f conftest.er1
14715   cat conftest.err >&5
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); } && {
14718          test -z "$ac_c_werror_flag" ||
14719          test ! -s conftest.err
14720        } && test -s conftest.$ac_objext; then
14721   ac_header_compiler=yes
14722 else
14723   echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726         ac_header_compiler=no
14727 fi
14728
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14731 echo "${ECHO_T}$ac_header_compiler" >&6; }
14732
14733 # Is the header present?
14734 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14735 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14736 cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h.  */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h.  */
14742 #include </usr/include/readline/readline.h>
14743 _ACEOF
14744 if { (ac_try="$ac_cpp conftest.$ac_ext"
14745 case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14751   ac_status=$?
14752   grep -v '^ *+' conftest.er1 >conftest.err
14753   rm -f conftest.er1
14754   cat conftest.err >&5
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); } >/dev/null && {
14757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14758          test ! -s conftest.err
14759        }; then
14760   ac_header_preproc=yes
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765   ac_header_preproc=no
14766 fi
14767
14768 rm -f conftest.err conftest.$ac_ext
14769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14770 echo "${ECHO_T}$ac_header_preproc" >&6; }
14771
14772 # So?  What about this header?
14773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14774   yes:no: )
14775     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14776 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14777     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14778 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14779     ac_header_preproc=yes
14780     ;;
14781   no:yes:* )
14782     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14783 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14784     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14785 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14787 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14789 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14790     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14791 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14792     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14793 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14794
14795     ;;
14796 esac
14797 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14798 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14799 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 else
14802   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14803 fi
14804 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14805 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14806
14807 fi
14808 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14809
14810 cat >>confdefs.h <<\_ACEOF
14811 #define HAVE_READLINE 1
14812 _ACEOF
14813
14814            got_readline="yes"
14815            CONS_INC="-I/usr/include/readline"
14816            CONS_LIBS="-lreadline -ltermcap"
14817
14818 else
14819
14820            # Did not find standard library, so try Bacula's default
14821             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14823   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14824 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14826   echo $ECHO_N "(cached) $ECHO_C" >&6
14827 fi
14828 ac_res=`eval echo '${'$as_ac_Header'}'`
14829                { echo "$as_me:$LINENO: result: $ac_res" >&5
14830 echo "${ECHO_T}$ac_res" >&6; }
14831 else
14832   # Is the header compilable?
14833 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14834 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 $ac_includes_default
14842 #include <${TOP_DIR}/depkgs/readline/readline.h>
14843 _ACEOF
14844 rm -f conftest.$ac_objext
14845 if { (ac_try="$ac_compile"
14846 case "(($ac_try" in
14847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848   *) ac_try_echo=$ac_try;;
14849 esac
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851   (eval "$ac_compile") 2>conftest.er1
14852   ac_status=$?
14853   grep -v '^ *+' conftest.er1 >conftest.err
14854   rm -f conftest.er1
14855   cat conftest.err >&5
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); } && {
14858          test -z "$ac_c_werror_flag" ||
14859          test ! -s conftest.err
14860        } && test -s conftest.$ac_objext; then
14861   ac_header_compiler=yes
14862 else
14863   echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14865
14866         ac_header_compiler=no
14867 fi
14868
14869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14871 echo "${ECHO_T}$ac_header_compiler" >&6; }
14872
14873 # Is the header present?
14874 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14875 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 #include <${TOP_DIR}/depkgs/readline/readline.h>
14883 _ACEOF
14884 if { (ac_try="$ac_cpp conftest.$ac_ext"
14885 case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14891   ac_status=$?
14892   grep -v '^ *+' conftest.er1 >conftest.err
14893   rm -f conftest.er1
14894   cat conftest.err >&5
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } >/dev/null && {
14897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14898          test ! -s conftest.err
14899        }; then
14900   ac_header_preproc=yes
14901 else
14902   echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905   ac_header_preproc=no
14906 fi
14907
14908 rm -f conftest.err conftest.$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14910 echo "${ECHO_T}$ac_header_preproc" >&6; }
14911
14912 # So?  What about this header?
14913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14914   yes:no: )
14915     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14916 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14917     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14918 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14919     ac_header_preproc=yes
14920     ;;
14921   no:yes:* )
14922     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14923 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14924     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14925 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14926     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14927 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14928     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14929 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14930     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14931 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14932     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14933 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14934
14935     ;;
14936 esac
14937 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14938 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940   echo $ECHO_N "(cached) $ECHO_C" >&6
14941 else
14942   eval "$as_ac_Header=\$ac_header_preproc"
14943 fi
14944 ac_res=`eval echo '${'$as_ac_Header'}'`
14945                { echo "$as_me:$LINENO: result: $ac_res" >&5
14946 echo "${ECHO_T}$ac_res" >&6; }
14947
14948 fi
14949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14950
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_READLINE 1
14953 _ACEOF
14954
14955                  got_readline="yes"
14956                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14957                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14958                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14959                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14960
14961 else
14962    echo " "
14963                 echo "readline.h not found. readline turned off ..."
14964                 echo " "
14965
14966
14967 fi
14968
14969
14970
14971
14972 fi
14973
14974
14975
14976
14977 fi
14978
14979 fi
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990 # Minimal stuff for readline Makefile configuration
14991 MAKE_SHELL=/bin/sh
14992
14993 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14994 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14995 if test "${ac_cv_header_stat_broken+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004 #include <sys/types.h>
15005 #include <sys/stat.h>
15006
15007 #if defined S_ISBLK && defined S_IFDIR
15008 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15009 #endif
15010
15011 #if defined S_ISBLK && defined S_IFCHR
15012 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15013 #endif
15014
15015 #if defined S_ISLNK && defined S_IFREG
15016 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15017 #endif
15018
15019 #if defined S_ISSOCK && defined S_IFREG
15020 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15021 #endif
15022
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031   (eval "$ac_compile") 2>conftest.er1
15032   ac_status=$?
15033   grep -v '^ *+' conftest.er1 >conftest.err
15034   rm -f conftest.er1
15035   cat conftest.err >&5
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } && {
15038          test -z "$ac_c_werror_flag" ||
15039          test ! -s conftest.err
15040        } && test -s conftest.$ac_objext; then
15041   ac_cv_header_stat_broken=no
15042 else
15043   echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15045
15046         ac_cv_header_stat_broken=yes
15047 fi
15048
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050 fi
15051 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15052 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15053 if test $ac_cv_header_stat_broken = yes; then
15054
15055 cat >>confdefs.h <<\_ACEOF
15056 #define STAT_MACROS_BROKEN 1
15057 _ACEOF
15058
15059 fi
15060
15061
15062
15063
15064
15065
15066 ac_header_dirent=no
15067 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15068   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15069 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15070 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #include <sys/types.h>
15081 #include <$ac_hdr>
15082
15083 int
15084 main ()
15085 {
15086 if ((DIR *) 0)
15087 return 0;
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext
15093 if { (ac_try="$ac_compile"
15094 case "(($ac_try" in
15095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096   *) ac_try_echo=$ac_try;;
15097 esac
15098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15099   (eval "$ac_compile") 2>conftest.er1
15100   ac_status=$?
15101   grep -v '^ *+' conftest.er1 >conftest.err
15102   rm -f conftest.er1
15103   cat conftest.err >&5
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } && {
15106          test -z "$ac_c_werror_flag" ||
15107          test ! -s conftest.err
15108        } && test -s conftest.$ac_objext; then
15109   eval "$as_ac_Header=yes"
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114         eval "$as_ac_Header=no"
15115 fi
15116
15117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15118 fi
15119 ac_res=`eval echo '${'$as_ac_Header'}'`
15120                { echo "$as_me:$LINENO: result: $ac_res" >&5
15121 echo "${ECHO_T}$ac_res" >&6; }
15122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15123   cat >>confdefs.h <<_ACEOF
15124 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15125 _ACEOF
15126
15127 ac_header_dirent=$ac_hdr; break
15128 fi
15129
15130 done
15131 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15132 if test $ac_header_dirent = dirent.h; then
15133   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15134 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15135 if test "${ac_cv_search_opendir+set}" = set; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138   ac_func_search_save_LIBS=$LIBS
15139 cat >conftest.$ac_ext <<_ACEOF
15140 /* confdefs.h.  */
15141 _ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h.  */
15145
15146 /* Override any GCC internal prototype to avoid an error.
15147    Use char because int might match the return type of a GCC
15148    builtin and then its argument prototype would still apply.  */
15149 #ifdef __cplusplus
15150 extern "C"
15151 #endif
15152 char opendir ();
15153 int
15154 main ()
15155 {
15156 return opendir ();
15157   ;
15158   return 0;
15159 }
15160 _ACEOF
15161 for ac_lib in '' dir; do
15162   if test -z "$ac_lib"; then
15163     ac_res="none required"
15164   else
15165     ac_res=-l$ac_lib
15166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15167   fi
15168   rm -f conftest.$ac_objext conftest$ac_exeext
15169 if { (ac_try="$ac_link"
15170 case "(($ac_try" in
15171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172   *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175   (eval "$ac_link") 2>conftest.er1
15176   ac_status=$?
15177   grep -v '^ *+' conftest.er1 >conftest.err
15178   rm -f conftest.er1
15179   cat conftest.err >&5
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); } && {
15182          test -z "$ac_c_werror_flag" ||
15183          test ! -s conftest.err
15184        } && test -s conftest$ac_exeext &&
15185        $as_test_x conftest$ac_exeext; then
15186   ac_cv_search_opendir=$ac_res
15187 else
15188   echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191
15192 fi
15193
15194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15195       conftest$ac_exeext
15196   if test "${ac_cv_search_opendir+set}" = set; then
15197   break
15198 fi
15199 done
15200 if test "${ac_cv_search_opendir+set}" = set; then
15201   :
15202 else
15203   ac_cv_search_opendir=no
15204 fi
15205 rm conftest.$ac_ext
15206 LIBS=$ac_func_search_save_LIBS
15207 fi
15208 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15209 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15210 ac_res=$ac_cv_search_opendir
15211 if test "$ac_res" != no; then
15212   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15213
15214 fi
15215
15216 else
15217   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15219 if test "${ac_cv_search_opendir+set}" = set; then
15220   echo $ECHO_N "(cached) $ECHO_C" >&6
15221 else
15222   ac_func_search_save_LIBS=$LIBS
15223 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h.  */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h.  */
15229
15230 /* Override any GCC internal prototype to avoid an error.
15231    Use char because int might match the return type of a GCC
15232    builtin and then its argument prototype would still apply.  */
15233 #ifdef __cplusplus
15234 extern "C"
15235 #endif
15236 char opendir ();
15237 int
15238 main ()
15239 {
15240 return opendir ();
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 for ac_lib in '' x; do
15246   if test -z "$ac_lib"; then
15247     ac_res="none required"
15248   else
15249     ac_res=-l$ac_lib
15250     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15251   fi
15252   rm -f conftest.$ac_objext conftest$ac_exeext
15253 if { (ac_try="$ac_link"
15254 case "(($ac_try" in
15255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256   *) ac_try_echo=$ac_try;;
15257 esac
15258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259   (eval "$ac_link") 2>conftest.er1
15260   ac_status=$?
15261   grep -v '^ *+' conftest.er1 >conftest.err
15262   rm -f conftest.er1
15263   cat conftest.err >&5
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } && {
15266          test -z "$ac_c_werror_flag" ||
15267          test ! -s conftest.err
15268        } && test -s conftest$ac_exeext &&
15269        $as_test_x conftest$ac_exeext; then
15270   ac_cv_search_opendir=$ac_res
15271 else
15272   echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275
15276 fi
15277
15278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15279       conftest$ac_exeext
15280   if test "${ac_cv_search_opendir+set}" = set; then
15281   break
15282 fi
15283 done
15284 if test "${ac_cv_search_opendir+set}" = set; then
15285   :
15286 else
15287   ac_cv_search_opendir=no
15288 fi
15289 rm conftest.$ac_ext
15290 LIBS=$ac_func_search_save_LIBS
15291 fi
15292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15294 ac_res=$ac_cv_search_opendir
15295 if test "$ac_res" != no; then
15296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15297
15298 fi
15299
15300 fi
15301
15302
15303
15304
15305
15306
15307
15308
15309 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15310 do
15311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15315   echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317   cat >conftest.$ac_ext <<_ACEOF
15318 /* confdefs.h.  */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h.  */
15323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15325 #define $ac_func innocuous_$ac_func
15326
15327 /* System header to define __stub macros and hopefully few prototypes,
15328     which can conflict with char $ac_func (); below.
15329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330     <limits.h> exists even on freestanding compilers.  */
15331
15332 #ifdef __STDC__
15333 # include <limits.h>
15334 #else
15335 # include <assert.h>
15336 #endif
15337
15338 #undef $ac_func
15339
15340 /* Override any GCC internal prototype to avoid an error.
15341    Use char because int might match the return type of a GCC
15342    builtin and then its argument prototype would still apply.  */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 char $ac_func ();
15347 /* The GNU C library defines this for functions which it implements
15348     to always fail with ENOSYS.  Some functions are actually named
15349     something starting with __ and the normal name is an alias.  */
15350 #if defined __stub_$ac_func || defined __stub___$ac_func
15351 choke me
15352 #endif
15353
15354 int
15355 main ()
15356 {
15357 return $ac_func ();
15358   ;
15359   return 0;
15360 }
15361 _ACEOF
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366   *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369   (eval "$ac_link") 2>conftest.er1
15370   ac_status=$?
15371   grep -v '^ *+' conftest.er1 >conftest.err
15372   rm -f conftest.er1
15373   cat conftest.err >&5
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); } && {
15376          test -z "$ac_c_werror_flag" ||
15377          test ! -s conftest.err
15378        } && test -s conftest$ac_exeext &&
15379        $as_test_x conftest$ac_exeext; then
15380   eval "$as_ac_var=yes"
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385         eval "$as_ac_var=no"
15386 fi
15387
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389       conftest$ac_exeext conftest.$ac_ext
15390 fi
15391 ac_res=`eval echo '${'$as_ac_var'}'`
15392                { echo "$as_me:$LINENO: result: $ac_res" >&5
15393 echo "${ECHO_T}$ac_res" >&6; }
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395   cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15397 _ACEOF
15398
15399 fi
15400 done
15401
15402
15403
15404 for ac_func in nanosleep nl_langinfo
15405 do
15406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15420 #define $ac_func innocuous_$ac_func
15421
15422 /* System header to define __stub macros and hopefully few prototypes,
15423     which can conflict with char $ac_func (); below.
15424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425     <limits.h> exists even on freestanding compilers.  */
15426
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15432
15433 #undef $ac_func
15434
15435 /* Override any GCC internal prototype to avoid an error.
15436    Use char because int might match the return type of a GCC
15437    builtin and then its argument prototype would still apply.  */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char $ac_func ();
15442 /* The GNU C library defines this for functions which it implements
15443     to always fail with ENOSYS.  Some functions are actually named
15444     something starting with __ and the normal name is an alias.  */
15445 #if defined __stub_$ac_func || defined __stub___$ac_func
15446 choke me
15447 #endif
15448
15449 int
15450 main ()
15451 {
15452 return $ac_func ();
15453   ;
15454   return 0;
15455 }
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461   *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464   (eval "$ac_link") 2>conftest.er1
15465   ac_status=$?
15466   grep -v '^ *+' conftest.er1 >conftest.err
15467   rm -f conftest.er1
15468   cat conftest.err >&5
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); } && {
15471          test -z "$ac_c_werror_flag" ||
15472          test ! -s conftest.err
15473        } && test -s conftest$ac_exeext &&
15474        $as_test_x conftest$ac_exeext; then
15475   eval "$as_ac_var=yes"
15476 else
15477   echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15479
15480         eval "$as_ac_var=no"
15481 fi
15482
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484       conftest$ac_exeext conftest.$ac_ext
15485 fi
15486 ac_res=`eval echo '${'$as_ac_var'}'`
15487                { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15490   cat >>confdefs.h <<_ACEOF
15491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 _ACEOF
15493
15494 fi
15495 done
15496
15497
15498 for ac_header in varargs.h
15499 do
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 fi
15507 ac_res=`eval echo '${'$as_ac_Header'}'`
15508                { echo "$as_me:$LINENO: result: $ac_res" >&5
15509 echo "${ECHO_T}$ac_res" >&6; }
15510 else
15511   # Is the header compilable?
15512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520 $ac_includes_default
15521 #include <$ac_header>
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (ac_try="$ac_compile"
15525 case "(($ac_try" in
15526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527   *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530   (eval "$ac_compile") 2>conftest.er1
15531   ac_status=$?
15532   grep -v '^ *+' conftest.er1 >conftest.err
15533   rm -f conftest.er1
15534   cat conftest.err >&5
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); } && {
15537          test -z "$ac_c_werror_flag" ||
15538          test ! -s conftest.err
15539        } && test -s conftest.$ac_objext; then
15540   ac_header_compiler=yes
15541 else
15542   echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545         ac_header_compiler=no
15546 fi
15547
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15550 echo "${ECHO_T}$ac_header_compiler" >&6; }
15551
15552 # Is the header present?
15553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h.  */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h.  */
15561 #include <$ac_header>
15562 _ACEOF
15563 if { (ac_try="$ac_cpp conftest.$ac_ext"
15564 case "(($ac_try" in
15565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566   *) ac_try_echo=$ac_try;;
15567 esac
15568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15570   ac_status=$?
15571   grep -v '^ *+' conftest.er1 >conftest.err
15572   rm -f conftest.er1
15573   cat conftest.err >&5
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); } >/dev/null && {
15576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15577          test ! -s conftest.err
15578        }; then
15579   ac_header_preproc=yes
15580 else
15581   echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584   ac_header_preproc=no
15585 fi
15586
15587 rm -f conftest.err conftest.$ac_ext
15588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589 echo "${ECHO_T}$ac_header_preproc" >&6; }
15590
15591 # So?  What about this header?
15592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15593   yes:no: )
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598     ac_header_preproc=yes
15599     ;;
15600   no:yes:* )
15601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15613
15614     ;;
15615 esac
15616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   eval "$as_ac_Header=\$ac_header_preproc"
15622 fi
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624                { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15626
15627 fi
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629   cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 _ACEOF
15632
15633 fi
15634
15635 done
15636
15637
15638 # End of readline/conio stuff
15639 # -----------------------------------------------------------------------
15640
15641 # -----------------------------------------------------------------------
15642 #  Check for Python support
15643 #
15644 { echo "$as_me:$LINENO: checking for Python support" >&5
15645 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15646
15647 # Check whether --with-python was given.
15648 if test "${with_python+set}" = set; then
15649   withval=$with_python;
15650   PYTHON_INCDIR=
15651   PYTHON_LIBS=
15652   if test "$withval" != "no"; then
15653      if test "$withval" = "yes"; then
15654         for python_root in /usr /usr/local /usr/sfw; do
15655           for ver in python2.2 python2.3 python2.4 python2.5; do
15656              if test -f $python_root/include/${ver}/Python.h; then
15657                 PYTHON_INCDIR=-I$python_root/include/${ver}
15658                 if test -d $python_root/lib64/${ver}/config; then
15659                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15660                 else
15661                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15662                 fi
15663                 break
15664              fi
15665           done
15666         done
15667         if test x$PYTHON_INCDIR = x; then
15668           if test -f $prefix/include/Python.h; then
15669              PYTHON_INCDIR=-I$prefix/include
15670              if test -d $prefix/lib64/config; then
15671                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15672              else
15673                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15674              fi
15675           else
15676            { echo "$as_me:$LINENO: result: no" >&5
15677 echo "${ECHO_T}no" >&6; }
15678            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15679 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15680    { (exit 1); exit 1; }; }
15681           fi
15682         fi
15683      else
15684         if test -f $withval/Python.h; then
15685            PYTHON_INCDIR=-I$withval
15686            PYTHON_LIBS="-L$withval/config -lpython"
15687         elif test -f $withval/include/Python.h; then
15688            PYTHON_INCDIR=-I$withval/include
15689            if test -d $withval/lib64/config; then
15690               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15691            else
15692               PYTHON_LIBS="-L$withval/lib/config -lpython"
15693            fi
15694         elif test -f $withval/include/python/Python.h; then
15695            PYTHON_INCDIR=-I$withval/include/python
15696            if test -d $withval/lib64/python/config; then
15697               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15698            else
15699               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15700            fi
15701         else
15702            { echo "$as_me:$LINENO: result: no" >&5
15703 echo "${ECHO_T}no" >&6; }
15704            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15705 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15706    { (exit 1); exit 1; }; }
15707         fi
15708      fi
15709      cat >>confdefs.h <<\_ACEOF
15710 #define HAVE_PYTHON 1
15711 _ACEOF
15712
15713      { echo "$as_me:$LINENO: result: yes" >&5
15714 echo "${ECHO_T}yes" >&6; }
15715      support_python=yes
15716      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15717 echo "$as_me: checking for more Python libs" >&6;}
15718      saved_LIBS="$LIBS"; LIBS=
15719      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15720 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15721 if test "${ac_cv_search_shm_open+set}" = set; then
15722   echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724   ac_func_search_save_LIBS=$LIBS
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h.  */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h.  */
15731
15732 /* Override any GCC internal prototype to avoid an error.
15733    Use char because int might match the return type of a GCC
15734    builtin and then its argument prototype would still apply.  */
15735 #ifdef __cplusplus
15736 extern "C"
15737 #endif
15738 char shm_open ();
15739 int
15740 main ()
15741 {
15742 return shm_open ();
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 for ac_lib in '' rt; do
15748   if test -z "$ac_lib"; then
15749     ac_res="none required"
15750   else
15751     ac_res=-l$ac_lib
15752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15753   fi
15754   rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (ac_try="$ac_link"
15756 case "(($ac_try" in
15757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758   *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761   (eval "$ac_link") 2>conftest.er1
15762   ac_status=$?
15763   grep -v '^ *+' conftest.er1 >conftest.err
15764   rm -f conftest.er1
15765   cat conftest.err >&5
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); } && {
15768          test -z "$ac_c_werror_flag" ||
15769          test ! -s conftest.err
15770        } && test -s conftest$ac_exeext &&
15771        $as_test_x conftest$ac_exeext; then
15772   ac_cv_search_shm_open=$ac_res
15773 else
15774   echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15776
15777
15778 fi
15779
15780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15781       conftest$ac_exeext
15782   if test "${ac_cv_search_shm_open+set}" = set; then
15783   break
15784 fi
15785 done
15786 if test "${ac_cv_search_shm_open+set}" = set; then
15787   :
15788 else
15789   ac_cv_search_shm_open=no
15790 fi
15791 rm conftest.$ac_ext
15792 LIBS=$ac_func_search_save_LIBS
15793 fi
15794 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15795 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15796 ac_res=$ac_cv_search_shm_open
15797 if test "$ac_res" != no; then
15798   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15799
15800 fi
15801
15802
15803 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15804 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15805 if test "${ac_cv_lib_util_openpty+set}" = set; then
15806   echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808   ac_check_lib_save_LIBS=$LIBS
15809 LIBS="-lutil  $LIBS"
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h.  */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h.  */
15816
15817 /* Override any GCC internal prototype to avoid an error.
15818    Use char because int might match the return type of a GCC
15819    builtin and then its argument prototype would still apply.  */
15820 #ifdef __cplusplus
15821 extern "C"
15822 #endif
15823 char openpty ();
15824 int
15825 main ()
15826 {
15827 return openpty ();
15828   ;
15829   return 0;
15830 }
15831 _ACEOF
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (ac_try="$ac_link"
15834 case "(($ac_try" in
15835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836   *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839   (eval "$ac_link") 2>conftest.er1
15840   ac_status=$?
15841   grep -v '^ *+' conftest.er1 >conftest.err
15842   rm -f conftest.er1
15843   cat conftest.err >&5
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } && {
15846          test -z "$ac_c_werror_flag" ||
15847          test ! -s conftest.err
15848        } && test -s conftest$ac_exeext &&
15849        $as_test_x conftest$ac_exeext; then
15850   ac_cv_lib_util_openpty=yes
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855         ac_cv_lib_util_openpty=no
15856 fi
15857
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859       conftest$ac_exeext conftest.$ac_ext
15860 LIBS=$ac_check_lib_save_LIBS
15861 fi
15862 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15863 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15864 if test $ac_cv_lib_util_openpty = yes; then
15865   cat >>confdefs.h <<_ACEOF
15866 #define HAVE_LIBUTIL 1
15867 _ACEOF
15868
15869   LIBS="-lutil $LIBS"
15870
15871 fi
15872
15873      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15874      LIBS="$saved_LIBS"
15875   else
15876      { echo "$as_me:$LINENO: result: no" >&5
15877 echo "${ECHO_T}no" >&6; }
15878   fi
15879
15880 else
15881
15882   { echo "$as_me:$LINENO: result: no" >&5
15883 echo "${ECHO_T}no" >&6; }
15884
15885 fi
15886
15887
15888
15889
15890 #
15891 # Find where sockets are (especially for Solaris)
15892 # Do this before the TCP Wrappers test since tcp wrappers
15893 # uses the socket library and some linkers are stupid.
15894 #
15895 { echo "$as_me:$LINENO: checking for socket" >&5
15896 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15897 if test "${ac_cv_func_socket+set}" = set; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h.  */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h.  */
15906 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15908 #define socket innocuous_socket
15909
15910 /* System header to define __stub macros and hopefully few prototypes,
15911     which can conflict with char socket (); below.
15912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15913     <limits.h> exists even on freestanding compilers.  */
15914
15915 #ifdef __STDC__
15916 # include <limits.h>
15917 #else
15918 # include <assert.h>
15919 #endif
15920
15921 #undef socket
15922
15923 /* Override any GCC internal prototype to avoid an error.
15924    Use char because int might match the return type of a GCC
15925    builtin and then its argument prototype would still apply.  */
15926 #ifdef __cplusplus
15927 extern "C"
15928 #endif
15929 char socket ();
15930 /* The GNU C library defines this for functions which it implements
15931     to always fail with ENOSYS.  Some functions are actually named
15932     something starting with __ and the normal name is an alias.  */
15933 #if defined __stub_socket || defined __stub___socket
15934 choke me
15935 #endif
15936
15937 int
15938 main ()
15939 {
15940 return socket ();
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (ac_try="$ac_link"
15947 case "(($ac_try" in
15948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949   *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952   (eval "$ac_link") 2>conftest.er1
15953   ac_status=$?
15954   grep -v '^ *+' conftest.er1 >conftest.err
15955   rm -f conftest.er1
15956   cat conftest.err >&5
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } && {
15959          test -z "$ac_c_werror_flag" ||
15960          test ! -s conftest.err
15961        } && test -s conftest$ac_exeext &&
15962        $as_test_x conftest$ac_exeext; then
15963   ac_cv_func_socket=yes
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968         ac_cv_func_socket=no
15969 fi
15970
15971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15972       conftest$ac_exeext conftest.$ac_ext
15973 fi
15974 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15975 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15976 if test $ac_cv_func_socket = yes; then
15977   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15978 echo "${ECHO_T}using libc's socket" >&6; }
15979 else
15980
15981 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15982 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15983 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15984   echo $ECHO_N "(cached) $ECHO_C" >&6
15985 else
15986   ac_check_lib_save_LIBS=$LIBS
15987 LIBS="-lxnet  $LIBS"
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994
15995 /* Override any GCC internal prototype to avoid an error.
15996    Use char because int might match the return type of a GCC
15997    builtin and then its argument prototype would still apply.  */
15998 #ifdef __cplusplus
15999 extern "C"
16000 #endif
16001 char socket ();
16002 int
16003 main ()
16004 {
16005 return socket ();
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (ac_try="$ac_link"
16012 case "(($ac_try" in
16013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014   *) ac_try_echo=$ac_try;;
16015 esac
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017   (eval "$ac_link") 2>conftest.er1
16018   ac_status=$?
16019   grep -v '^ *+' conftest.er1 >conftest.err
16020   rm -f conftest.er1
16021   cat conftest.err >&5
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); } && {
16024          test -z "$ac_c_werror_flag" ||
16025          test ! -s conftest.err
16026        } && test -s conftest$ac_exeext &&
16027        $as_test_x conftest$ac_exeext; then
16028   ac_cv_lib_xnet_socket=yes
16029 else
16030   echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033         ac_cv_lib_xnet_socket=no
16034 fi
16035
16036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16037       conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16039 fi
16040 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16041 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16042 if test $ac_cv_lib_xnet_socket = yes; then
16043   cat >>confdefs.h <<_ACEOF
16044 #define HAVE_LIBXNET 1
16045 _ACEOF
16046
16047   LIBS="-lxnet $LIBS"
16048
16049 fi
16050
16051
16052 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16053 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16054 if test "${ac_cv_lib_socket_socket+set}" = set; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   ac_check_lib_save_LIBS=$LIBS
16058 LIBS="-lsocket  $LIBS"
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065
16066 /* Override any GCC internal prototype to avoid an error.
16067    Use char because int might match the return type of a GCC
16068    builtin and then its argument prototype would still apply.  */
16069 #ifdef __cplusplus
16070 extern "C"
16071 #endif
16072 char socket ();
16073 int
16074 main ()
16075 {
16076 return socket ();
16077   ;
16078   return 0;
16079 }
16080 _ACEOF
16081 rm -f conftest.$ac_objext conftest$ac_exeext
16082 if { (ac_try="$ac_link"
16083 case "(($ac_try" in
16084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085   *) ac_try_echo=$ac_try;;
16086 esac
16087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088   (eval "$ac_link") 2>conftest.er1
16089   ac_status=$?
16090   grep -v '^ *+' conftest.er1 >conftest.err
16091   rm -f conftest.er1
16092   cat conftest.err >&5
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); } && {
16095          test -z "$ac_c_werror_flag" ||
16096          test ! -s conftest.err
16097        } && test -s conftest$ac_exeext &&
16098        $as_test_x conftest$ac_exeext; then
16099   ac_cv_lib_socket_socket=yes
16100 else
16101   echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16103
16104         ac_cv_lib_socket_socket=no
16105 fi
16106
16107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16108       conftest$ac_exeext conftest.$ac_ext
16109 LIBS=$ac_check_lib_save_LIBS
16110 fi
16111 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16112 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16113 if test $ac_cv_lib_socket_socket = yes; then
16114   cat >>confdefs.h <<_ACEOF
16115 #define HAVE_LIBSOCKET 1
16116 _ACEOF
16117
16118   LIBS="-lsocket $LIBS"
16119
16120 fi
16121
16122
16123 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16124 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16125 if test "${ac_cv_lib_inet_socket+set}" = set; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128   ac_check_lib_save_LIBS=$LIBS
16129 LIBS="-linet  $LIBS"
16130 cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136
16137 /* Override any GCC internal prototype to avoid an error.
16138    Use char because int might match the return type of a GCC
16139    builtin and then its argument prototype would still apply.  */
16140 #ifdef __cplusplus
16141 extern "C"
16142 #endif
16143 char socket ();
16144 int
16145 main ()
16146 {
16147 return socket ();
16148   ;
16149   return 0;
16150 }
16151 _ACEOF
16152 rm -f conftest.$ac_objext conftest$ac_exeext
16153 if { (ac_try="$ac_link"
16154 case "(($ac_try" in
16155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156   *) ac_try_echo=$ac_try;;
16157 esac
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159   (eval "$ac_link") 2>conftest.er1
16160   ac_status=$?
16161   grep -v '^ *+' conftest.er1 >conftest.err
16162   rm -f conftest.er1
16163   cat conftest.err >&5
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } && {
16166          test -z "$ac_c_werror_flag" ||
16167          test ! -s conftest.err
16168        } && test -s conftest$ac_exeext &&
16169        $as_test_x conftest$ac_exeext; then
16170   ac_cv_lib_inet_socket=yes
16171 else
16172   echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175         ac_cv_lib_inet_socket=no
16176 fi
16177
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179       conftest$ac_exeext conftest.$ac_ext
16180 LIBS=$ac_check_lib_save_LIBS
16181 fi
16182 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16183 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16184 if test $ac_cv_lib_inet_socket = yes; then
16185   cat >>confdefs.h <<_ACEOF
16186 #define HAVE_LIBINET 1
16187 _ACEOF
16188
16189   LIBS="-linet $LIBS"
16190
16191 fi
16192
16193 fi
16194
16195
16196
16197 # -----------------------------------------------------------
16198 # Check whether user wants TCP wrappers support (default off)
16199 # -----------------------------------------------------------
16200 TCPW_MSG="no"
16201 WRAPLIBS=""
16202
16203 # Check whether --with-tcp-wrappers was given.
16204 if test "${with_tcp_wrappers+set}" = set; then
16205   withval=$with_tcp_wrappers;
16206     if test "x$withval" != "xno" ; then
16207        saved_LIBS="$LIBS"
16208        LIBS="$saved_LIBS -lwrap"
16209        { echo "$as_me:$LINENO: checking for libwrap" >&5
16210 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16211        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16212 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16213 if test "${ac_cv_search_nanosleep+set}" = set; then
16214   echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216   ac_func_search_save_LIBS=$LIBS
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h.  */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h.  */
16223
16224 /* Override any GCC internal prototype to avoid an error.
16225    Use char because int might match the return type of a GCC
16226    builtin and then its argument prototype would still apply.  */
16227 #ifdef __cplusplus
16228 extern "C"
16229 #endif
16230 char nanosleep ();
16231 int
16232 main ()
16233 {
16234 return nanosleep ();
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 for ac_lib in '' rt; do
16240   if test -z "$ac_lib"; then
16241     ac_res="none required"
16242   else
16243     ac_res=-l$ac_lib
16244     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16245   fi
16246   rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (ac_try="$ac_link"
16248 case "(($ac_try" in
16249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250   *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253   (eval "$ac_link") 2>conftest.er1
16254   ac_status=$?
16255   grep -v '^ *+' conftest.er1 >conftest.err
16256   rm -f conftest.er1
16257   cat conftest.err >&5
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); } && {
16260          test -z "$ac_c_werror_flag" ||
16261          test ! -s conftest.err
16262        } && test -s conftest$ac_exeext &&
16263        $as_test_x conftest$ac_exeext; then
16264   ac_cv_search_nanosleep=$ac_res
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269
16270 fi
16271
16272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16273       conftest$ac_exeext
16274   if test "${ac_cv_search_nanosleep+set}" = set; then
16275   break
16276 fi
16277 done
16278 if test "${ac_cv_search_nanosleep+set}" = set; then
16279   :
16280 else
16281   ac_cv_search_nanosleep=no
16282 fi
16283 rm conftest.$ac_ext
16284 LIBS=$ac_func_search_save_LIBS
16285 fi
16286 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16287 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16288 ac_res=$ac_cv_search_nanosleep
16289 if test "$ac_res" != no; then
16290   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16291
16292 fi
16293
16294        cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300  #include <sys/types.h>
16301             #include <tcpd.h>
16302              int deny_severity = 0;
16303              int allow_severity = 0;
16304              struct request_info *req;
16305 int
16306 main ()
16307 {
16308  hosts_access(req);
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (ac_try="$ac_link"
16315 case "(($ac_try" in
16316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317   *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320   (eval "$ac_link") 2>conftest.er1
16321   ac_status=$?
16322   grep -v '^ *+' conftest.er1 >conftest.err
16323   rm -f conftest.er1
16324   cat conftest.err >&5
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); } && {
16327          test -z "$ac_c_werror_flag" ||
16328          test ! -s conftest.err
16329        } && test -s conftest$ac_exeext &&
16330        $as_test_x conftest$ac_exeext; then
16331
16332             { echo "$as_me:$LINENO: result: yes" >&5
16333 echo "${ECHO_T}yes" >&6; }
16334
16335 cat >>confdefs.h <<\_ACEOF
16336 #define HAVE_LIBWRAP 1
16337 _ACEOF
16338
16339             TCPW_MSG="yes"
16340             LIBS="$saved_LIBS"
16341             WRAPLIBS="-lwrap"
16342
16343 else
16344   echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347
16348             LIBS="$saved_LIBS -lwrap -lnsl"
16349             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16350             cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356  #include <sys/types.h>
16357                  #include <tcpd.h>
16358                  int deny_severity = 0;
16359                  int allow_severity = 0;
16360                  struct request_info *req;
16361 int
16362 main ()
16363 {
16364  hosts_access(req);
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373   *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376   (eval "$ac_link") 2>conftest.er1
16377   ac_status=$?
16378   grep -v '^ *+' conftest.er1 >conftest.err
16379   rm -f conftest.er1
16380   cat conftest.err >&5
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); } && {
16383          test -z "$ac_c_werror_flag" ||
16384          test ! -s conftest.err
16385        } && test -s conftest$ac_exeext &&
16386        $as_test_x conftest$ac_exeext; then
16387
16388                  { echo "$as_me:$LINENO: result: yes" >&5
16389 echo "${ECHO_T}yes" >&6; }
16390
16391 cat >>confdefs.h <<\_ACEOF
16392 #define HAVE_LIBWRAP 1
16393 _ACEOF
16394
16395                  TCPW_MSG="yes"
16396                  LIBS="$saved_LIBS"
16397                  WRAPLIBS="-lwrap"
16398
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16404 echo "$as_me: error: *** libwrap missing" >&2;}
16405    { (exit 1); exit 1; }; }
16406
16407 fi
16408
16409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16410       conftest$ac_exeext conftest.$ac_ext
16411
16412 fi
16413
16414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16415       conftest$ac_exeext conftest.$ac_ext
16416     fi
16417
16418
16419 fi
16420
16421
16422 # -----------------------------------------------------------
16423 # Check whether OpenSSL is available
16424 # -----------------------------------------------------------
16425 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16426 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16427
16428 # Check whether --with-openssl was given.
16429 if test "${with_openssl+set}" = set; then
16430   withval=$with_openssl; with_openssl_directory=${withval}
16431 fi
16432
16433
16434 if test "x$with_openssl_directory" != "x"; then
16435         OPENSSL_LIBS="-lssl -lcrypto"
16436         OPENSSL_INC=""
16437
16438         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16439                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16440                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16441         fi
16442
16443         saved_LIBS="${LIBS}"
16444         saved_CFLAGS="${CFLAGS}"
16445         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16446         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16447
16448         cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h.  */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h.  */
16454  #include <openssl/ssl.h>
16455 int
16456 main ()
16457 {
16458  CRYPTO_set_id_callback(NULL);
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (ac_try="$ac_link"
16465 case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470   (eval "$ac_link") 2>conftest.er1
16471   ac_status=$?
16472   grep -v '^ *+' conftest.er1 >conftest.err
16473   rm -f conftest.er1
16474   cat conftest.err >&5
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); } && {
16477          test -z "$ac_c_werror_flag" ||
16478          test ! -s conftest.err
16479        } && test -s conftest$ac_exeext &&
16480        $as_test_x conftest$ac_exeext; then
16481
16482                         support_tls="yes"
16483                         support_crypto="yes"
16484
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489          support_tls="no"
16490
16491 fi
16492
16493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16494       conftest$ac_exeext conftest.$ac_ext
16495
16496         cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502  #include <openssl/evp.h>
16503 int
16504 main ()
16505 {
16506  EVP_sha512();
16507   ;
16508   return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_link") 2>conftest.er1
16519   ac_status=$?
16520   grep -v '^ *+' conftest.er1 >conftest.err
16521   rm -f conftest.er1
16522   cat conftest.err >&5
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); } && {
16525          test -z "$ac_c_werror_flag" ||
16526          test ! -s conftest.err
16527        } && test -s conftest$ac_exeext &&
16528        $as_test_x conftest$ac_exeext; then
16529    ac_cv_openssl_sha2="yes"
16530 else
16531   echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16533
16534          ac_cv_openssl_sha2="no"
16535
16536 fi
16537
16538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16539       conftest$ac_exeext conftest.$ac_ext
16540
16541         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16542         # implementation, presumably for export reasons. If 192bit AES
16543         # is available, we assume that we're running with a 'non-export'
16544         # openssl library.
16545         cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h.  */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h.  */
16551  #include <openssl/evp.h>
16552 int
16553 main ()
16554 {
16555  EVP_aes_192_cbc();
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_link") 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } && {
16574          test -z "$ac_c_werror_flag" ||
16575          test ! -s conftest.err
16576        } && test -s conftest$ac_exeext &&
16577        $as_test_x conftest$ac_exeext; then
16578    ac_cv_openssl_export="no"
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583          ac_cv_openssl_export="yes"
16584
16585 fi
16586
16587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16588       conftest$ac_exeext conftest.$ac_ext
16589
16590         LIBS="${saved_LIBS}"
16591         CFLAGS="${saved_CFLAGS}"
16592
16593         if test "$support_tls" = "yes"; then
16594
16595 cat >>confdefs.h <<\_ACEOF
16596 #define HAVE_OPENSSL 1
16597 _ACEOF
16598
16599
16600 cat >>confdefs.h <<\_ACEOF
16601 #define HAVE_TLS 1
16602 _ACEOF
16603
16604
16605 cat >>confdefs.h <<\_ACEOF
16606 #define HAVE_CRYPTO 1
16607 _ACEOF
16608
16609         fi
16610
16611         if test "$ac_cv_openssl_sha2" = "yes"; then
16612
16613 cat >>confdefs.h <<\_ACEOF
16614 #define HAVE_SHA2 1
16615 _ACEOF
16616
16617         fi
16618
16619         if test "$ac_cv_openssl_export" = "yes"; then
16620
16621 cat >>confdefs.h <<\_ACEOF
16622 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16623 _ACEOF
16624
16625         fi
16626 else
16627         support_tls="no"
16628         support_crypto="no"
16629         OPENSSL_LIBS=""
16630         OPENSSL_INC=""
16631 fi
16632
16633 { echo "$as_me:$LINENO: result: $support_tls" >&5
16634 echo "${ECHO_T}$support_tls" >&6; }
16635
16636
16637
16638
16639 # -----------------------------------------------------------
16640 # dlopen is needed for plugins
16641 # -----------------------------------------------------------
16642 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16643 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16644 if test "${ac_cv_search_dlopen+set}" = set; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   ac_func_search_save_LIBS=$LIBS
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654
16655 /* Override any GCC internal prototype to avoid an error.
16656    Use char because int might match the return type of a GCC
16657    builtin and then its argument prototype would still apply.  */
16658 #ifdef __cplusplus
16659 extern "C"
16660 #endif
16661 char dlopen ();
16662 int
16663 main ()
16664 {
16665 return dlopen ();
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 for ac_lib in '' dl; do
16671   if test -z "$ac_lib"; then
16672     ac_res="none required"
16673   else
16674     ac_res=-l$ac_lib
16675     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16676   fi
16677   rm -f conftest.$ac_objext conftest$ac_exeext
16678 if { (ac_try="$ac_link"
16679 case "(($ac_try" in
16680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681   *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684   (eval "$ac_link") 2>conftest.er1
16685   ac_status=$?
16686   grep -v '^ *+' conftest.er1 >conftest.err
16687   rm -f conftest.er1
16688   cat conftest.err >&5
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); } && {
16691          test -z "$ac_c_werror_flag" ||
16692          test ! -s conftest.err
16693        } && test -s conftest$ac_exeext &&
16694        $as_test_x conftest$ac_exeext; then
16695   ac_cv_search_dlopen=$ac_res
16696 else
16697   echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700
16701 fi
16702
16703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16704       conftest$ac_exeext
16705   if test "${ac_cv_search_dlopen+set}" = set; then
16706   break
16707 fi
16708 done
16709 if test "${ac_cv_search_dlopen+set}" = set; then
16710   :
16711 else
16712   ac_cv_search_dlopen=no
16713 fi
16714 rm conftest.$ac_ext
16715 LIBS=$ac_func_search_save_LIBS
16716 fi
16717 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16718 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16719 ac_res=$ac_cv_search_dlopen
16720 if test "$ac_res" != no; then
16721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16722
16723 fi
16724
16725
16726 # ------------------------------------------
16727 # Where to place working dir
16728 # ------------------------------------------
16729 working_dir=`eval echo ${prefix}/var/bacula/working`
16730
16731 # Check whether --with-working-dir was given.
16732 if test "${with_working_dir+set}" = set; then
16733   withval=$with_working_dir;
16734        if test "x$withval" != "xno" ; then
16735               working_dir=$withval
16736        fi
16737
16738
16739 fi
16740
16741
16742
16743
16744 # ------------------------------------------------------------------
16745 # If the user has not set archivedir, we set our default as /tmp
16746 # ------------------------------------------------------------------
16747 archive_dir=/tmp
16748
16749 # Check whether --with-archivedir was given.
16750 if test "${with_archivedir+set}" = set; then
16751   withval=$with_archivedir;
16752        if test "x$withval" != "xno" ; then
16753               archivedir=$withval
16754        fi
16755
16756
16757 fi
16758
16759
16760
16761
16762
16763
16764 # ------------------------------------------
16765 # Where to place scriptdir (script files)
16766 # ------------------------------------------
16767 scriptdir=`eval echo ${sysconfdir}`
16768
16769 # Check whether --with-scriptdir was given.
16770 if test "${with_scriptdir+set}" = set; then
16771   withval=$with_scriptdir;
16772        if test "x$withval" != "xno" ; then
16773               scriptdir=$withval
16774        fi
16775
16776
16777 fi
16778
16779
16780
16781
16782
16783 # ------------------------------------------
16784 # Where to send dump email
16785 # ------------------------------------------
16786 dump_email=root@localhost
16787
16788 # Check whether --with-dump-email was given.
16789 if test "${with_dump_email+set}" = set; then
16790   withval=$with_dump_email;
16791        if test "x$withval" != "xno" ; then
16792               dump_email=$withval
16793        fi
16794
16795
16796 fi
16797
16798
16799
16800
16801 # ------------------------------------------
16802 # Where to send job email
16803 # ------------------------------------------
16804 job_email=root@localhost
16805
16806 # Check whether --with-job-email was given.
16807 if test "${with_job_email+set}" = set; then
16808   withval=$with_job_email;
16809        if test "x$withval" != "xno" ; then
16810               job_email=$withval
16811        fi
16812
16813
16814 fi
16815
16816
16817
16818
16819 # ------------------------------------------
16820 # Where to find smtp host
16821 # ------------------------------------------
16822 smtp_host=localhost
16823
16824 # Check whether --with-smtp_host was given.
16825 if test "${with_smtp_host+set}" = set; then
16826   withval=$with_smtp_host;
16827        if test "x$withval" != "xno" ; then
16828               smtp_host=$withval
16829        fi
16830
16831
16832 fi
16833
16834
16835
16836
16837
16838 # ------------------------------------
16839 # Where to place pid files
16840 # ------------------------------------
16841 piddir=/var/run
16842
16843 # Check whether --with-pid-dir was given.
16844 if test "${with_pid_dir+set}" = set; then
16845   withval=$with_pid_dir;
16846         if test "x$withval" != "xno" ; then
16847             piddir=$withval
16848         fi
16849
16850
16851 fi
16852
16853
16854 cat >>confdefs.h <<_ACEOF
16855 #define _PATH_BACULA_PIDDIR "$piddir"
16856 _ACEOF
16857
16858
16859
16860
16861 # ------------------------------------
16862 # Where to place subsys "lock file"
16863 # ------------------------------------
16864 subsysdir=/var/run/subsys
16865 if test -d /var/run/subsys; then
16866    subsysdir=/var/run/subsys
16867 elif test -d /var/lock/subsys; then
16868    subsysdir=/var/lock/subsys
16869 else
16870    subsysdir=/var/run/subsys
16871 fi
16872
16873 # Check whether --with-subsys-dir was given.
16874 if test "${with_subsys_dir+set}" = set; then
16875   withval=$with_subsys_dir;
16876         if test "x$withval" != "xno" ; then
16877             subsysdir=$withval
16878         fi
16879
16880
16881 fi
16882
16883
16884
16885
16886
16887
16888 # ------------------------------------
16889 # Where to start assigning ports
16890 # ------------------------------------
16891 baseport=9101
16892
16893 # Check whether --with-baseport was given.
16894 if test "${with_baseport+set}" = set; then
16895   withval=$with_baseport;
16896         if test "x$withval" != "xno" ; then
16897              baseport=$withval
16898         fi
16899
16900
16901 fi
16902
16903
16904
16905 dir_port=`expr $baseport`
16906 fd_port=`expr $baseport + 1`
16907 sd_port=`expr $fd_port + 1`
16908
16909
16910
16911
16912
16913
16914 # ------------------------------------------
16915 # Generate passwords
16916 # ------------------------------------------
16917 dir_password=
16918
16919 # Check whether --with-dir-password was given.
16920 if test "${with_dir_password+set}" = set; then
16921   withval=$with_dir_password;
16922        if test "x$withval" != "xno" ; then
16923            dir_password=$withval
16924        fi
16925
16926
16927 fi
16928
16929
16930 if test "x$dir_password" = "x" ; then
16931    if test "x$OPENSSL" = "xnone" ; then
16932       key=`autoconf/randpass 33`
16933    else
16934       key=`openssl rand -base64 33`
16935    fi
16936    dir_password=$key
16937 fi
16938
16939 fd_password=
16940
16941 # Check whether --with-fd-password was given.
16942 if test "${with_fd_password+set}" = set; then
16943   withval=$with_fd_password;
16944        if test "x$withval" != "xno" ; then
16945            fd_password=$withval
16946        fi
16947
16948
16949 fi
16950
16951
16952 if test "x$fd_password" = "x" ; then
16953    if test "x$OPENSSL" = "xnone" ; then
16954       key=`autoconf/randpass 37`
16955    else
16956       key=`openssl rand -base64 33`
16957    fi
16958    fd_password=$key
16959 fi
16960
16961 sd_password=
16962
16963 # Check whether --with-sd-password was given.
16964 if test "${with_sd_password+set}" = set; then
16965   withval=$with_sd_password;
16966        if test "x$withval" != "xno" ; then
16967            sd_password=$withval
16968        fi
16969
16970
16971 fi
16972
16973
16974 if test "x$sd_password" = "x" ; then
16975    if test "x$OPENSSL" = "xnone" ; then
16976       key=`autoconf/randpass 41`
16977    else
16978       key=`openssl rand -base64 33`
16979    fi
16980    sd_password=$key
16981 fi
16982
16983 mon_dir_password=
16984
16985 # Check whether --with-mon-dir-password was given.
16986 if test "${with_mon_dir_password+set}" = set; then
16987   withval=$with_mon_dir_password;
16988        if test "x$withval" != "xno" ; then
16989            mon_dir_password=$withval
16990        fi
16991
16992
16993 fi
16994
16995
16996 if test "x$mon_dir_password" = "x" ; then
16997    if test "x$OPENSSL" = "xnone" ; then
16998       key=`autoconf/randpass 33`
16999    else
17000       key=`openssl rand -base64 33`
17001    fi
17002    mon_dir_password=$key
17003 fi
17004
17005 mon_fd_password=
17006
17007 # Check whether --with-mon-fd-password was given.
17008 if test "${with_mon_fd_password+set}" = set; then
17009   withval=$with_mon_fd_password;
17010        if test "x$withval" != "xno" ; then
17011            mon_fd_password=$withval
17012        fi
17013
17014
17015 fi
17016
17017
17018 if test "x$mon_fd_password" = "x" ; then
17019    if test "x$OPENSSL" = "xnone" ; then
17020       key=`autoconf/randpass 37`
17021    else
17022       key=`openssl rand -base64 33`
17023    fi
17024    mon_fd_password=$key
17025 fi
17026
17027 mon_sd_password=
17028
17029 # Check whether --with-mon-sd-password was given.
17030 if test "${with_mon_sd_password+set}" = set; then
17031   withval=$with_mon_sd_password;
17032        if test "x$withval" != "xno" ; then
17033            mon_sd_password=$withval
17034        fi
17035
17036
17037 fi
17038
17039
17040 if test "x$mon_sd_password" = "x" ; then
17041    if test "x$OPENSSL" = "xnone" ; then
17042       key=`autoconf/randpass 41`
17043    else
17044       key=`openssl rand -base64 33`
17045    fi
17046    mon_sd_password=$key
17047 fi
17048
17049
17050
17051
17052
17053
17054
17055
17056 #
17057 # Pickup any database name
17058 #
17059 db_name=bacula
17060
17061 # Check whether --with-db_name was given.
17062 if test "${with_db_name+set}" = set; then
17063   withval=$with_db_name;
17064         if test "x$withval" != "x" ; then
17065              db_name=$withval
17066         fi
17067
17068
17069 fi
17070
17071
17072
17073 db_user=bacula
17074
17075 # Check whether --with-db_user was given.
17076 if test "${with_db_user+set}" = set; then
17077   withval=$with_db_user;
17078         if test "x$withval" != "x" ; then
17079              db_user=$withval
17080         fi
17081
17082
17083 fi
17084
17085
17086
17087
17088 #
17089 # Handle users and groups for each daemon
17090 #
17091 dir_user=
17092
17093 # Check whether --with-dir_user was given.
17094 if test "${with_dir_user+set}" = set; then
17095   withval=$with_dir_user;
17096         if test "x$withval" != "x" ; then
17097              dir_user=$withval
17098         fi
17099
17100
17101 fi
17102
17103
17104 dir_group=
17105
17106 # Check whether --with-dir_group was given.
17107 if test "${with_dir_group+set}" = set; then
17108   withval=$with_dir_group;
17109         if test "x$withval" != "x" ; then
17110              dir_group=$withval
17111         fi
17112
17113
17114 fi
17115
17116
17117 sd_user=
17118
17119 # Check whether --with-sd_user was given.
17120 if test "${with_sd_user+set}" = set; then
17121   withval=$with_sd_user;
17122         if test "x$withval" != "x" ; then
17123              sd_user=$withval
17124         fi
17125
17126
17127 fi
17128
17129
17130 sd_group=
17131
17132 # Check whether --with-sd_group was given.
17133 if test "${with_sd_group+set}" = set; then
17134   withval=$with_sd_group;
17135         if test "x$withval" != "x" ; then
17136              sd_group=$withval
17137         fi
17138
17139
17140 fi
17141
17142
17143 fd_user=
17144
17145 # Check whether --with-fd_user was given.
17146 if test "${with_fd_user+set}" = set; then
17147   withval=$with_fd_user;
17148         if test "x$withval" != "x" ; then
17149              fd_user=$withval
17150         fi
17151
17152
17153 fi
17154
17155
17156 fd_group=
17157
17158 # Check whether --with-fd_group was given.
17159 if test "${with_fd_group+set}" = set; then
17160   withval=$with_fd_group;
17161         if test "x$withval" != "x" ; then
17162              fd_group=$withval
17163         fi
17164
17165
17166 fi
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176 #
17177 # allow setting default executable permissions
17178 #
17179 SBINPERM=0754
17180
17181 # Check whether --with-sbin-perm was given.
17182 if test "${with_sbin_perm+set}" = set; then
17183   withval=$with_sbin_perm;
17184         if test "x$withval" != "x" ; then
17185             SBINPERM=$withval
17186         fi
17187
17188
17189 fi
17190
17191
17192
17193
17194 # ------------------------------------------------
17195 # Bacula check for various SQL database engines
17196 # ------------------------------------------------
17197 SQL_LIB=
17198
17199 db_found=no
17200 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17201 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17202
17203 # Check whether --with-postgresql was given.
17204 if test "${with_postgresql+set}" = set; then
17205   withval=$with_postgresql;
17206   if test "$withval" != "no"; then
17207       if test "$db_found" = "yes"; then
17208           { echo "$as_me:$LINENO: result: error" >&5
17209 echo "${ECHO_T}error" >&6; }
17210           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17211 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17212    { (exit 1); exit 1; }; };
17213       fi
17214       if test "$withval" = "yes"; then
17215           PG_CONFIG=`which pg_config`
17216           if test -n "$PG_CONFIG";then
17217               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17218               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17219               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17220           elif test -f /usr/local/include/libpq-fe.h; then
17221               POSTGRESQL_INCDIR=/usr/local/include
17222               if test -d /usr/local/lib64; then
17223                  POSTGRESQL_LIBDIR=/usr/local/lib64
17224               else
17225                  POSTGRESQL_LIBDIR=/usr/local/lib
17226               fi
17227               POSTGRESQL_BINDIR=/usr/local/bin
17228           elif test -f /usr/include/libpq-fe.h; then
17229               POSTGRESQL_INCDIR=/usr/include
17230               if test -d /usr/lib64; then
17231                  POSTGRESQL_LIBDIR=/usr/lib64
17232               else
17233                  POSTGRESQL_LIBDIR=/usr/lib
17234               fi
17235               POSTGRESQL_BINDIR=/usr/bin
17236           elif test -f /usr/include/pgsql/libpq-fe.h; then
17237               POSTGRESQL_INCDIR=/usr/include/pgsql
17238               if test -d /usr/lib64/pgsql; then
17239                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17240               else
17241                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17242               fi
17243               POSTGRESQL_BINDIR=/usr/bin
17244           elif test -f /usr/include/postgresql/libpq-fe.h; then
17245               POSTGRESQL_INCDIR=/usr/include/postgresql
17246               if test -d /usr/lib64/postgresql; then
17247                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17248               else
17249                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17250               fi
17251               POSTGRESQL_BINDIR=/usr/bin
17252           else
17253               { echo "$as_me:$LINENO: result: no" >&5
17254 echo "${ECHO_T}no" >&6; }
17255               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17256 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17257    { (exit 1); exit 1; }; }
17258           fi
17259       elif test -f $withval/include/libpq-fe.h; then
17260           POSTGRESQL_INCDIR=$withval/include
17261           POSTGRESQL_LIBDIR=$withval/lib
17262           POSTGRESQL_BINDIR=$withval/bin
17263       elif test -f $withval/include/postgresql/libpq-fe.h; then
17264           POSTGRESQL_INCDIR=$withval/include/postgresql
17265      if test -d $withval/lib64; then
17266          POSTGRESQL_LIBDIR=$withval/lib64
17267      else
17268          POSTGRESQL_LIBDIR=$withval/lib
17269      fi
17270           POSTGRESQL_BINDIR=$withval/bin
17271       else
17272           { echo "$as_me:$LINENO: result: no" >&5
17273 echo "${ECHO_T}no" >&6; }
17274           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17275 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17276    { (exit 1); exit 1; }; }
17277       fi
17278       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17279       { echo "$as_me:$LINENO: checking for crypt" >&5
17280 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17281 if test "${ac_cv_func_crypt+set}" = set; then
17282   echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284   cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17292 #define crypt innocuous_crypt
17293
17294 /* System header to define __stub macros and hopefully few prototypes,
17295     which can conflict with char crypt (); below.
17296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297     <limits.h> exists even on freestanding compilers.  */
17298
17299 #ifdef __STDC__
17300 # include <limits.h>
17301 #else
17302 # include <assert.h>
17303 #endif
17304
17305 #undef crypt
17306
17307 /* Override any GCC internal prototype to avoid an error.
17308    Use char because int might match the return type of a GCC
17309    builtin and then its argument prototype would still apply.  */
17310 #ifdef __cplusplus
17311 extern "C"
17312 #endif
17313 char crypt ();
17314 /* The GNU C library defines this for functions which it implements
17315     to always fail with ENOSYS.  Some functions are actually named
17316     something starting with __ and the normal name is an alias.  */
17317 #if defined __stub_crypt || defined __stub___crypt
17318 choke me
17319 #endif
17320
17321 int
17322 main ()
17323 {
17324 return crypt ();
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_link") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && {
17343          test -z "$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        } && test -s conftest$ac_exeext &&
17346        $as_test_x conftest$ac_exeext; then
17347   ac_cv_func_crypt=yes
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352         ac_cv_func_crypt=no
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356       conftest$ac_exeext conftest.$ac_ext
17357 fi
17358 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17359 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17360 if test $ac_cv_func_crypt = yes; then
17361   :
17362 else
17363   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17364 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17365 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17366   echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368   ac_check_lib_save_LIBS=$LIBS
17369 LIBS="-lcrypt  $LIBS"
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376
17377 /* Override any GCC internal prototype to avoid an error.
17378    Use char because int might match the return type of a GCC
17379    builtin and then its argument prototype would still apply.  */
17380 #ifdef __cplusplus
17381 extern "C"
17382 #endif
17383 char crypt ();
17384 int
17385 main ()
17386 {
17387 return crypt ();
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396   *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399   (eval "$ac_link") 2>conftest.er1
17400   ac_status=$?
17401   grep -v '^ *+' conftest.er1 >conftest.err
17402   rm -f conftest.er1
17403   cat conftest.err >&5
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } && {
17406          test -z "$ac_c_werror_flag" ||
17407          test ! -s conftest.err
17408        } && test -s conftest$ac_exeext &&
17409        $as_test_x conftest$ac_exeext; then
17410   ac_cv_lib_crypt_crypt=yes
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415         ac_cv_lib_crypt_crypt=no
17416 fi
17417
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419       conftest$ac_exeext conftest.$ac_ext
17420 LIBS=$ac_check_lib_save_LIBS
17421 fi
17422 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17423 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17424 if test $ac_cv_lib_crypt_crypt = yes; then
17425   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17426 fi
17427
17428 fi
17429
17430       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17431       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17432       SQL_BINDIR=$POSTGRESQL_BINDIR
17433       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17434
17435       cat >>confdefs.h <<\_ACEOF
17436 #define HAVE_POSTGRESQL 1
17437 _ACEOF
17438
17439       { echo "$as_me:$LINENO: result: yes" >&5
17440 echo "${ECHO_T}yes" >&6; }
17441       db_found=yes
17442       support_postgresql=yes
17443       db_type=PostgreSQL
17444       DB_TYPE=postgresql
17445   else
17446       { echo "$as_me:$LINENO: result: no" >&5
17447 echo "${ECHO_T}no" >&6; }
17448   fi
17449
17450 else
17451
17452   { echo "$as_me:$LINENO: result: no" >&5
17453 echo "${ECHO_T}no" >&6; }
17454
17455 fi
17456
17457
17458
17459
17460
17461
17462
17463
17464 db_found=no
17465 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17466 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17467
17468 # Check whether --with-mysql was given.
17469 if test "${with_mysql+set}" = set; then
17470   withval=$with_mysql;
17471   if test "$withval" != "no"; then
17472         if test "$withval" = "yes"; then
17473            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17474                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17475                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17476                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17477                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17478                    else
17479                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17480                    fi
17481                    MYSQL_BINDIR=/usr/local/mysql/bin
17482            elif test -f /usr/include/mysql/mysql.h; then
17483                    MYSQL_INCDIR=/usr/include/mysql
17484                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17485                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17486                            MYSQL_LIBDIR=/usr/lib64/mysql
17487                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17488                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17489                            MYSQL_LIBDIR=/usr/lib/mysql
17490                    else
17491                            MYSQL_LIBDIR=/usr/lib
17492                    fi
17493                    MYSQL_BINDIR=/usr/bin
17494            elif test -f /usr/include/mysql.h; then
17495                    MYSQL_INCDIR=/usr/include
17496                    if test -f /usr/lib64/libmysqlclient_r.a \
17497                         -o -f /usr/lib64/libmysqlclient_r.so; then
17498                            MYSQL_LIBDIR=/usr/lib64
17499                    else
17500                            MYSQL_LIBDIR=/usr/lib
17501                    fi
17502                    MYSQL_BINDIR=/usr/bin
17503            elif test -f /usr/local/include/mysql/mysql.h; then
17504                    MYSQL_INCDIR=/usr/local/include/mysql
17505                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17506                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17507                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17508                    else
17509                            MYSQL_LIBDIR=/usr/local/lib/mysql
17510                    fi
17511                    MYSQL_BINDIR=/usr/local/bin
17512            elif test -f /usr/local/include/mysql.h; then
17513                    MYSQL_INCDIR=/usr/local/include
17514                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17515                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17516                            MYSQL_LIBDIR=/usr/local/lib64
17517                    else
17518                            MYSQL_LIBDIR=/usr/local/lib
17519                    fi
17520                    MYSQL_BINDIR=/usr/local/bin
17521            else
17522               { echo "$as_me:$LINENO: result: no" >&5
17523 echo "${ECHO_T}no" >&6; }
17524               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17525 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17526    { (exit 1); exit 1; }; }
17527            fi
17528         else
17529            if test -f $withval/include/mysql/mysql.h; then
17530               MYSQL_INCDIR=$withval/include/mysql
17531               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17532                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17533                  MYSQL_LIBDIR=$withval/lib64/mysql
17534               else
17535                  MYSQL_LIBDIR=$withval/lib/mysql
17536                  # Solaris ...
17537                  if test -f $withval/lib/libmysqlclient_r.so; then
17538                     MYSQL_LIBDIR=$withval/lib
17539                  fi
17540               fi
17541               MYSQL_BINDIR=$withval/bin
17542            elif test -f $withval/include/mysql.h; then
17543               MYSQL_INCDIR=$withval/include
17544               if test -f $withval/lib64/libmysqlclient_r.a \
17545                    -o -f $withval/lib64/libmysqlclient_r.so; then
17546                  MYSQL_LIBDIR=$withval/lib64
17547               else
17548                  MYSQL_LIBDIR=$withval/lib
17549               fi
17550               MYSQL_BINDIR=$withval/bin
17551            else
17552               { echo "$as_me:$LINENO: result: no" >&5
17553 echo "${ECHO_T}no" >&6; }
17554               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17555 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17556    { (exit 1); exit 1; }; }
17557            fi
17558         fi
17559     SQL_INCLUDE=-I$MYSQL_INCDIR
17560     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17561          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17562        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17563        cat >>confdefs.h <<\_ACEOF
17564 #define HAVE_THREAD_SAFE_MYSQL 1
17565 _ACEOF
17566
17567     fi
17568     SQL_BINDIR=$MYSQL_BINDIR
17569     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17570
17571     cat >>confdefs.h <<\_ACEOF
17572 #define HAVE_MYSQL 1
17573 _ACEOF
17574
17575     { echo "$as_me:$LINENO: result: yes" >&5
17576 echo "${ECHO_T}yes" >&6; }
17577     db_found=yes
17578     support_mysql=yes
17579     db_type=MySQL
17580     DB_TYPE=mysql
17581
17582   else
17583         { echo "$as_me:$LINENO: result: no" >&5
17584 echo "${ECHO_T}no" >&6; }
17585   fi
17586
17587
17588 fi
17589
17590
17591
17592 # Check whether --with-embedded-mysql was given.
17593 if test "${with_embedded_mysql+set}" = set; then
17594   withval=$with_embedded_mysql;
17595   if test "$withval" != "no"; then
17596         if test "$withval" = "yes"; then
17597                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17598                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17599                         if test -d /usr/local/mysql/lib64/mysql; then
17600                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17601                         else
17602                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17603                         fi
17604                         MYSQL_BINDIR=/usr/local/mysql/bin
17605                 elif test -f /usr/include/mysql/mysql.h; then
17606                         MYSQL_INCDIR=/usr/include/mysql
17607                         if test -d /usr/lib64/mysql; then
17608                                 MYSQL_LIBDIR=/usr/lib64/mysql
17609                         else
17610                                 MYSQL_LIBDIR=/usr/lib/mysql
17611                         fi
17612                         MYSQL_BINDIR=/usr/bin
17613                 elif test -f /usr/include/mysql.h; then
17614                         MYSQL_INCDIR=/usr/include
17615                         if test -d /usr/lib64; then
17616                                 MYSQL_LIBDIR=/usr/lib64
17617                         else
17618                                 MYSQL_LIBDIR=/usr/lib
17619                         fi
17620                         MYSQL_BINDIR=/usr/bin
17621                 elif test -f /usr/local/include/mysql/mysql.h; then
17622                         MYSQL_INCDIR=/usr/local/include/mysql
17623                         if test -d /usr/local/lib64/mysql; then
17624                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17625                         else
17626                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17627                         fi
17628                         MYSQL_BINDIR=/usr/local/bin
17629                 elif test -f /usr/local/include/mysql.h; then
17630                         MYSQL_INCDIR=/usr/local/include
17631                         if test -d /usr/local/lib64; then
17632                                 MYSQL_LIBDIR=/usr/local/lib64
17633                         else
17634                                 MYSQL_LIBDIR=/usr/local/lib
17635                         fi
17636                         MYSQL_BINDIR=/usr/local/bin
17637                 else
17638                    { echo "$as_me:$LINENO: result: no" >&5
17639 echo "${ECHO_T}no" >&6; }
17640                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17641 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17642    { (exit 1); exit 1; }; }
17643                 fi
17644         else
17645                 if test -f $withval/include/mysql/mysql.h; then
17646                         MYSQL_INCDIR=$withval/include/mysql
17647                         if test -d $withval/lib64/mysql; then
17648                                 MYSQL_LIBDIR=$withval/lib64/mysql
17649                         else
17650                                 MYSQL_LIBDIR=$withval/lib/mysql
17651                         fi
17652                         MYSQL_BINDIR=$withval/bin
17653                 elif test -f $withval/include/mysql.h; then
17654                         MYSQL_INCDIR=$withval/include
17655                         if test -d $withval/lib64; then
17656                                 MYSQL_LIBDIR=$withval/lib64
17657                         else
17658                                 MYSQL_LIBDIR=$withval/lib
17659                         fi
17660                         MYSQL_BINDIR=$withval/bin
17661                 else
17662                    { echo "$as_me:$LINENO: result: no" >&5
17663 echo "${ECHO_T}no" >&6; }
17664                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17665 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17666    { (exit 1); exit 1; }; }
17667                 fi
17668         fi
17669     SQL_INCLUDE=-I$MYSQL_INCDIR
17670     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17671     SQL_BINDIR=$MYSQL_BINDIR
17672     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17673
17674     cat >>confdefs.h <<\_ACEOF
17675 #define HAVE_MYSQL 1
17676 _ACEOF
17677
17678     cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_EMBEDDED_MYSQL 1
17680 _ACEOF
17681
17682     { echo "$as_me:$LINENO: result: yes" >&5
17683 echo "${ECHO_T}yes" >&6; }
17684     db_found=yes
17685     support_mysql=yes
17686     db_type=MySQL
17687     DB_TYPE=mysql
17688
17689   else
17690         { echo "$as_me:$LINENO: result: no" >&5
17691 echo "${ECHO_T}no" >&6; }
17692   fi
17693
17694
17695 fi
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706 db_found=no
17707 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17708 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17709
17710 # Check whether --with-sqlite3 was given.
17711 if test "${with_sqlite3+set}" = set; then
17712   withval=$with_sqlite3;
17713   if test "$withval" != "no"; then
17714      if test "$withval" = "yes"; then
17715         if test -f /usr/local/include/sqlite3.h; then
17716            SQLITE_INCDIR=/usr/local/include
17717            if test -d /usr/local/lib64; then
17718               SQLITE_LIBDIR=/usr/local/lib64
17719            else
17720               SQLITE_LIBDIR=/usr/local/lib
17721            fi
17722            SQLITE_BINDIR=/usr/local/bin
17723         elif test -f /usr/include/sqlite3.h; then
17724            SQLITE_INCDIR=/usr/include
17725            if test -d /usr/lib64; then
17726               SQLITE_LIBDIR=/usr/lib64
17727            else
17728               SQLITE_LIBDIR=/usr/lib
17729            fi
17730            SQLITE_BINDIR=/usr/bin
17731         elif test -f $prefix/include/sqlite3.h; then
17732            SQLITE_INCDIR=$prefix/include
17733            if test -d $prefix/lib64; then
17734               SQLITE_LIBDIR=$prefix/lib64
17735            else
17736               SQLITE_LIBDIR=$prefix/lib
17737            fi
17738            SQLITE_BINDIR=$prefix/bin
17739         else
17740            { echo "$as_me:$LINENO: result: no" >&5
17741 echo "${ECHO_T}no" >&6; }
17742            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17743 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17744    { (exit 1); exit 1; }; }
17745         fi
17746      else
17747         if test -f $withval/sqlite3.h; then
17748            SQLITE_INCDIR=$withval
17749            SQLITE_LIBDIR=$withval
17750            SQLITE_BINDIR=$withval
17751         elif test -f $withval/include/sqlite3.h; then
17752            SQLITE_INCDIR=$withval/include
17753            if test -d $withval/lib64; then
17754               SQLITE_LIBDIR=$withval/lib64
17755            else
17756               SQLITE_LIBDIR=$withval/lib
17757            fi
17758            SQLITE_BINDIR=$withval/bin
17759         else
17760            { echo "$as_me:$LINENO: result: no" >&5
17761 echo "${ECHO_T}no" >&6; }
17762            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17763 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17764    { (exit 1); exit 1; }; }
17765         fi
17766      fi
17767      SQL_INCLUDE=-I$SQLITE_INCDIR
17768      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17769      SQL_BINDIR=$SQLITE_BINDIR
17770      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17771
17772      cat >>confdefs.h <<\_ACEOF
17773 #define HAVE_SQLITE3 1
17774 _ACEOF
17775
17776      { echo "$as_me:$LINENO: result: yes" >&5
17777 echo "${ECHO_T}yes" >&6; }
17778      db_found=yes
17779      support_sqlite3=yes
17780      db_type=SQLite3
17781      DB_TYPE=sqlite3
17782
17783   else
17784      { echo "$as_me:$LINENO: result: no" >&5
17785 echo "${ECHO_T}no" >&6; }
17786   fi
17787
17788 else
17789
17790   { echo "$as_me:$LINENO: result: no" >&5
17791 echo "${ECHO_T}no" >&6; }
17792
17793 fi
17794
17795
17796
17797
17798
17799
17800
17801
17802 db_found=no
17803 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17804 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17805
17806 # Check whether --with-sqlite was given.
17807 if test "${with_sqlite+set}" = set; then
17808   withval=$with_sqlite;
17809   if test "$withval" != "no"; then
17810      if test "$withval" = "yes"; then
17811         if test -f /usr/local/include/sqlite.h; then
17812            SQLITE_INCDIR=/usr/local/include
17813            if test -d /usr/local/lib64; then
17814               SQLITE_LIBDIR=/usr/local/lib64
17815            else
17816               SQLITE_LIBDIR=/usr/local/lib
17817            fi
17818            SQLITE_BINDIR=/usr/local/bin
17819         elif test -f /usr/include/sqlite.h; then
17820            SQLITE_INCDIR=/usr/include
17821            if test -d /usr/lib64; then
17822               SQLITE_LIBDIR=/usr/lib64
17823            else
17824               SQLITE_LIBDIR=/usr/lib
17825            fi
17826            SQLITE_BINDIR=/usr/bin
17827         elif test -f $prefix/include/sqlite.h; then
17828            SQLITE_INCDIR=$prefix/include
17829            if test -d $prefix/lib64; then
17830               SQLITE_LIBDIR=$prefix/lib64
17831            else
17832               SQLITE_LIBDIR=$prefix/lib
17833            fi
17834            SQLITE_BINDIR=$prefix/bin
17835         else
17836            { echo "$as_me:$LINENO: result: no" >&5
17837 echo "${ECHO_T}no" >&6; }
17838            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17839 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17840    { (exit 1); exit 1; }; }
17841         fi
17842      else
17843         if test -f $withval/sqlite.h; then
17844            SQLITE_INCDIR=$withval
17845            SQLITE_LIBDIR=$withval
17846            SQLITE_BINDIR=$withval
17847         elif test -f $withval/include/sqlite.h; then
17848            SQLITE_INCDIR=$withval/include
17849            if test -d $withval/lib64; then
17850               SQLITE_LIBDIR=$withval/lib64
17851            else
17852               SQLITE_LIBDIR=$withval/lib
17853            fi
17854            SQLITE_BINDIR=$withval/bin
17855         else
17856            { echo "$as_me:$LINENO: result: no" >&5
17857 echo "${ECHO_T}no" >&6; }
17858            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17859 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17860    { (exit 1); exit 1; }; }
17861         fi
17862      fi
17863      SQL_INCLUDE=-I$SQLITE_INCDIR
17864      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17865      SQL_BINDIR=$SQLITE_BINDIR
17866      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17867
17868      cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_SQLITE 1
17870 _ACEOF
17871
17872      { echo "$as_me:$LINENO: result: yes" >&5
17873 echo "${ECHO_T}yes" >&6; }
17874      db_found=yes
17875      support_sqlite=yes
17876      db_type=SQLite
17877      DB_TYPE=sqlite
17878
17879   else
17880      { echo "$as_me:$LINENO: result: no" >&5
17881 echo "${ECHO_T}no" >&6; }
17882   fi
17883
17884 else
17885
17886   { echo "$as_me:$LINENO: result: no" >&5
17887 echo "${ECHO_T}no" >&6; }
17888
17889 fi
17890
17891
17892
17893
17894
17895
17896
17897
17898 db_found=no
17899 { echo "$as_me:$LINENO: checking for DBI support" >&5
17900 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17901
17902 # Check whether --with-dbi was given.
17903 if test "${with_dbi+set}" = set; then
17904   withval=$with_dbi;
17905   if test "$withval" != "no"; then
17906      if test "$withval" = "yes"; then
17907         if test -f /usr/local/include/dbi/dbi.h; then
17908            DBI_INCDIR=/usr/local/dbi/include
17909            if test -d /usr/local/lib64; then
17910               DBI_LIBDIR=/usr/local/lib64
17911            else
17912               DBI_LIBDIR=/usr/local/lib
17913            fi
17914            DBI_BINDIR=/usr/local/bin
17915         elif test -f /usr/include/dbi/dbi.h; then
17916            DBI_INCDIR=/usr/include
17917            if test -d /usr/lib64; then
17918               DBI_LIBDIR=/usr/lib64
17919            else
17920               DBI_LIBDIR=/usr/lib
17921            fi
17922            DBI_BINDIR=/usr/bin
17923         elif test -f $prefix/include/dbi/dbi.h; then
17924            DBI_INCDIR=$prefix/include
17925            if test -d $prefix/lib64; then
17926               DBI_LIBDIR=$prefix/lib64
17927            else
17928               DBI_LIBDIR=$prefix/lib
17929            fi
17930            DBI_BINDIR=$prefix/bin
17931         else
17932            { echo "$as_me:$LINENO: result: no" >&5
17933 echo "${ECHO_T}no" >&6; }
17934            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17935 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17936    { (exit 1); exit 1; }; }
17937         fi
17938         if test -d /usr/local/lib/dbd; then
17939            DRIVERDIR=/usr/local/lib/dbd
17940            if test -d /usr/local/lib64/dbd; then
17941               DRIVERDIR=/usr/local/lib64/dbd
17942            else
17943               DRIVERDIR=/usr/local/lib/dbd
17944            fi
17945         elif test -d /usr/lib/dbd; then
17946            DRIVERDIR=/usr/lib/dbd
17947            if test -d /usr/lib64/dbd; then
17948               DRIVERDIR=/usr/lib64/dbd
17949            else
17950               DRIVERDIR=/usr/lib/dbd
17951            fi
17952         elif test -d $prefix/lib/dbd; then
17953            if test -d $prefix/lib64/dbd; then
17954               DRIVERDIR=$prefix/lib64/dbd
17955            else
17956               DRIVERDIR=$prefix/lib/dbd
17957            fi
17958         else
17959            { echo "$as_me:$LINENO: result: no" >&5
17960 echo "${ECHO_T}no" >&6; }
17961            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17962 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17963    { (exit 1); exit 1; }; }
17964         fi
17965      else
17966         if test -f $withval/dbi.h; then
17967            DBI_INCDIR=$withval
17968            DBI_LIBDIR=$withval
17969            DBI_BINDIR=$withval
17970         elif test -f $withval/include/dbi/dbi.h; then
17971            DBI_INCDIR=$withval/include
17972            if test -d $withval/lib64; then
17973               DBI_LIBDIR=$withval/lib64
17974            else
17975               DBI_LIBDIR=$withval/lib
17976            fi
17977            DBI_BINDIR=$withval/bin
17978         else
17979            { echo "$as_me:$LINENO: result: no" >&5
17980 echo "${ECHO_T}no" >&6; }
17981            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17982 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17983    { (exit 1); exit 1; }; }
17984         fi
17985         if test -d $withval/dbd; then
17986            DRIVERDIR=$withval/dbd
17987         elif test -d $withval/lib/; then
17988            if test -d $withval/lib64/dbd; then
17989               DRIVERDIR=$withval/lib64/dbd
17990            else
17991               DRIVERDIR=$withval/lib/dbd
17992            fi
17993         else
17994            { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17996            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17997 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17998    { (exit 1); exit 1; }; }
17999         fi
18000      fi
18001      SQL_INCLUDE=-I$DBI_INCDIR
18002      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18003      SQL_BINDIR=$DBI_BINDIR
18004      SQL_LIB=$DBI_LIBDIR/libdbi.a
18005      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18006
18007
18008 cat >>confdefs.h <<\_ACEOF
18009 #define HAVE_DBI 1
18010 _ACEOF
18011
18012      { echo "$as_me:$LINENO: result: yes" >&5
18013 echo "${ECHO_T}yes" >&6; }
18014      db_found=yes
18015      support_dbi=yes
18016      db_type=DBI
18017      DB_TYPE=dbi
18018
18019   else
18020      { echo "$as_me:$LINENO: result: no" >&5
18021 echo "${ECHO_T}no" >&6; }
18022   fi
18023
18024 else
18025
18026   { echo "$as_me:$LINENO: result: no" >&5
18027 echo "${ECHO_T}no" >&6; }
18028
18029 fi
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039 db_found=no
18040 db_prog=no
18041 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18042 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18043
18044 # Check whether --with-dbi-driver was given.
18045 if test "${with_dbi_driver+set}" = set; then
18046   withval=$with_dbi_driver;
18047   if test "$withval" != "no"; then
18048      case $withval in
18049         "mysql")
18050            db_prog="mysql"
18051            if test -f /usr/local/mysql/bin/mysql; then
18052               SQL_BINDIR=/usr/local/mysql/bin
18053               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18054                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18055                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18056               else
18057                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
18058               fi
18059            elif test -f /usr/bin/mysql; then
18060               SQL_BINDIR=/usr/bin
18061               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18062                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18063                   SQL_LIBDIR=/usr/lib64/mysql
18064               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18065                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18066                   SQL_LIBDIR=/usr/lib/mysql
18067               else
18068                   SQL_LIBDIR=/usr/lib
18069               fi
18070            elif test -f /usr/local/bin/mysql; then
18071               SQL_BINDIR=/usr/local/bin
18072               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18073                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18074                   SQL_LIBDIR=/usr/local/lib64/mysql
18075               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18076                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18077                   SQL_LIBDIR=/usr/local/lib/mysql
18078               else
18079                   SQL_LIBDIR=/usr/local/lib
18080               fi
18081            elif test -f $withval/bin/mysql; then
18082               SQL_BINDIR=$withval/bin
18083               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18084                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18085                   SQL_LIBDIR=$withval/lib64/mysql
18086               elif test -f $withval/lib64/libmysqlclient_r.a \
18087                   -o -f $withval/lib64/libmysqlclient_r.so; then
18088                   SQL_LIBDIR=$withval/lib64
18089               elif test -f $withval/lib/libmysqlclient_r.a \
18090                   -o -f $withval/lib/libmysqlclient_r.so; then
18091                   SQL_LIBDIR=$withval/lib/
18092               else
18093                   SQL_LIBDIR=$withval/lib/mysql
18094               fi
18095            else
18096               { echo "$as_me:$LINENO: result: no" >&5
18097 echo "${ECHO_T}no" >&6; }
18098               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18099 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18100    { (exit 1); exit 1; }; }
18101            fi
18102            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18103         ;;
18104         "postgresql")
18105            db_prog="postgresql"
18106            PG_CONFIG=`which pg_config`
18107            if test -n "$PG_CONFIG"; then
18108               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18109               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18110            elif test -f /usr/local/bin/psql; then
18111               SQL_BINDIR=/usr/local/bin
18112               if test -d /usr/local/lib64; then
18113                  SQL_LIBDIR=/usr/local/lib64
18114               else
18115                  SQL_LIBDIR=/usr/local/lib
18116               fi
18117            elif test -f /usr/bin/psql; then
18118               SQL_BINDIR=/usr/local/bin
18119               if test -d /usr/lib64/postgresql; then
18120                  SQL_LIBDIR=/usr/lib64/postgresql
18121               elif test -d /usr/lib/postgresql; then
18122                  SQL_LIBDIR=/usr/lib/postgresql
18123               elif test -d /usr/lib64; then
18124                  SQL_LIBDIR=/usr/lib64
18125               else
18126                  SQL_LIBDIR=/usr/lib
18127               fi
18128            elif test -f $withval/bin/psql; then
18129               SQL_BINDIR=$withval/bin
18130               if test -d $withval/lib64; then
18131                  SQL_LIBDIR=$withval/lib64
18132               else
18133                  SQL_LIBDIR=$withval/lib
18134               fi
18135            else
18136               { echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6; }
18138               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18139 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18140    { (exit 1); exit 1; }; }
18141            fi
18142            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18143         ;;
18144         *)
18145            { echo "$as_me:$LINENO: result: no" >&5
18146 echo "${ECHO_T}no" >&6; }
18147            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18148 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18149    { (exit 1); exit 1; }; }
18150         ;;
18151      esac
18152
18153      { echo "$as_me:$LINENO: result: yes" >&5
18154 echo "${ECHO_T}yes" >&6; }
18155      DB_PROG=$db_prog
18156   else
18157      { echo "$as_me:$LINENO: result: no" >&5
18158 echo "${ECHO_T}no" >&6; }
18159   fi
18160
18161 else
18162
18163   { echo "$as_me:$LINENO: result: no" >&5
18164 echo "${ECHO_T}no" >&6; }
18165
18166 fi
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177 # -------------------------------------------
18178 # enable batch attribute DB insert (default on)
18179 # -------------------------------------------
18180 support_batch_insert=no
18181 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18182 pkg=$?
18183 if test $pkg = 0; then
18184    support_batch_insert=yes
18185    # Check whether --enable-batch-insert was given.
18186 if test "${enable_batch_insert+set}" = set; then
18187   enableval=$enable_batch_insert; if test x$enableval = xno; then
18188        support_batch_insert=no
18189       else
18190        support_batch_insert=yes
18191      fi
18192 fi
18193
18194 fi
18195
18196 # Check if postgresql support batch mode
18197 if test x$DB_TYPE = xpostgresql; then
18198    A=`nm $SQL_LIB | grep PQputCopyData`
18199    pkg=$?
18200    if test $pkg != 0; then
18201       support_batch_insert=no
18202    fi
18203 fi
18204
18205 if test x$DB_TYPE = xdbi; then
18206    DB_TYPE=$DB_PROG
18207    db_type=$DB_PROG
18208    pkg=1
18209    # Check for batch insert
18210    if test $DB_PROG = postgresql; then
18211       A=`nm $DB_PROG_LIB | grep PQputCopyData`
18212       pkg=$?
18213    fi
18214
18215    if test $DB_PROG = mysql; then
18216       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18217       pkg=$?
18218    fi
18219
18220    if test $pkg = 0; then
18221       # Check whether --enable-batch-insert was given.
18222 if test "${enable_batch_insert+set}" = set; then
18223   enableval=$enable_batch_insert; if test x$enableval = xno; then
18224          support_batch_insert=no
18225        else
18226          support_batch_insert=yes
18227       fi
18228 fi
18229
18230    fi
18231 fi
18232
18233 if test $support_batch_insert = yes ; then
18234
18235 cat >>confdefs.h <<\_ACEOF
18236 #define HAVE_BATCH_FILE_INSERT 1
18237 _ACEOF
18238
18239 fi
18240
18241
18242 cat >>confdefs.h <<\_ACEOF
18243 #define PROTOTYPES 1
18244 _ACEOF
18245
18246
18247 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18248     if test -z "$CCOPTS"; then
18249         CCOPTS='-g -O2 -Wall'
18250     fi
18251     CFLAGS="$CCOPTS"
18252 fi
18253
18254
18255
18256
18257 largefile_support="no"
18258
18259    # Check whether --enable-largefile was given.
18260 if test "${enable_largefile+set}" = set; then
18261   enableval=$enable_largefile;
18262 fi
18263
18264    if test "$enable_largefile" != no; then
18265      if test -n "$ac_tool_prefix"; then
18266   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18267 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18270 if test "${ac_cv_prog_GETCONF+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   if test -n "$GETCONF"; then
18274   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18275 else
18276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18277 for as_dir in $PATH
18278 do
18279   IFS=$as_save_IFS
18280   test -z "$as_dir" && as_dir=.
18281   for ac_exec_ext in '' $ac_executable_extensions; do
18282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18283     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18285     break 2
18286   fi
18287 done
18288 done
18289 IFS=$as_save_IFS
18290
18291 fi
18292 fi
18293 GETCONF=$ac_cv_prog_GETCONF
18294 if test -n "$GETCONF"; then
18295   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18296 echo "${ECHO_T}$GETCONF" >&6; }
18297 else
18298   { echo "$as_me:$LINENO: result: no" >&5
18299 echo "${ECHO_T}no" >&6; }
18300 fi
18301
18302
18303 fi
18304 if test -z "$ac_cv_prog_GETCONF"; then
18305   ac_ct_GETCONF=$GETCONF
18306   # Extract the first word of "getconf", so it can be a program name with args.
18307 set dummy getconf; ac_word=$2
18308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18310 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18311   echo $ECHO_N "(cached) $ECHO_C" >&6
18312 else
18313   if test -n "$ac_ct_GETCONF"; then
18314   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18315 else
18316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18318 do
18319   IFS=$as_save_IFS
18320   test -z "$as_dir" && as_dir=.
18321   for ac_exec_ext in '' $ac_executable_extensions; do
18322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18323     ac_cv_prog_ac_ct_GETCONF="getconf"
18324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18325     break 2
18326   fi
18327 done
18328 done
18329 IFS=$as_save_IFS
18330
18331 fi
18332 fi
18333 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18334 if test -n "$ac_ct_GETCONF"; then
18335   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18336 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18337 else
18338   { echo "$as_me:$LINENO: result: no" >&5
18339 echo "${ECHO_T}no" >&6; }
18340 fi
18341
18342   if test "x$ac_ct_GETCONF" = x; then
18343     GETCONF=""
18344   else
18345     case $cross_compiling:$ac_tool_warned in
18346 yes:)
18347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18348 whose name does not start with the host triplet.  If you think this
18349 configuration is useful to you, please write to autoconf@gnu.org." >&5
18350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18351 whose name does not start with the host triplet.  If you think this
18352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18353 ac_tool_warned=yes ;;
18354 esac
18355     GETCONF=$ac_ct_GETCONF
18356   fi
18357 else
18358   GETCONF="$ac_cv_prog_GETCONF"
18359 fi
18360
18361      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18362 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18363 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18364   echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18367         ac_cv_sys_largefile_CFLAGS=no
18368         case "$host_os" in
18369            # IRIX 6.2 and later require cc -n32.
18370            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18371              if test "$GCC" != yes; then
18372                ac_cv_sys_largefile_CFLAGS=-n32
18373              fi
18374              ac_save_CC="$CC"
18375              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18376              cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382
18383 int
18384 main ()
18385 {
18386
18387   ;
18388   return 0;
18389 }
18390 _ACEOF
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395   *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398   (eval "$ac_link") 2>conftest.er1
18399   ac_status=$?
18400   grep -v '^ *+' conftest.er1 >conftest.err
18401   rm -f conftest.er1
18402   cat conftest.err >&5
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); } && {
18405          test -z "$ac_c_werror_flag" ||
18406          test ! -s conftest.err
18407        } && test -s conftest$ac_exeext &&
18408        $as_test_x conftest$ac_exeext; then
18409   :
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414         ac_cv_sys_largefile_CFLAGS=no
18415 fi
18416
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418       conftest$ac_exeext conftest.$ac_ext
18419              CC="$ac_save_CC"
18420            esac
18421       }
18422 fi
18423 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18424 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18425      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18426 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18427 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18428   echo $ECHO_N "(cached) $ECHO_C" >&6
18429 else
18430   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18431         ac_cv_sys_largefile_LDFLAGS=no
18432
18433       }
18434 fi
18435 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18436 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18437      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18438 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18439 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18440   echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18443         ac_cv_sys_largefile_LIBS=no
18444
18445       }
18446 fi
18447 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18448 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18449
18450      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18451        case "$ac_flag" in
18452        no) ;;
18453        -D_FILE_OFFSET_BITS=*) ;;
18454        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18455        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18456        -D?* | -I?*)
18457          case "$ac_flag" in
18458    no) ;;
18459    ?*)
18460      case "$CPPFLAGS" in
18461      '') CPPFLAGS="$ac_flag" ;;
18462      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18463      esac ;;
18464    esac ;;
18465        *)
18466          case "$ac_flag" in
18467    no) ;;
18468    ?*)
18469      case "$CFLAGS" in
18470      '') CFLAGS="$ac_flag" ;;
18471      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18472      esac ;;
18473    esac ;;
18474        esac
18475      done
18476      case "$ac_cv_sys_largefile_LDFLAGS" in
18477    no) ;;
18478    ?*)
18479      case "$LDFLAGS" in
18480      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18481      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18482      esac ;;
18483    esac
18484      case "$ac_cv_sys_largefile_LIBS" in
18485    no) ;;
18486    ?*)
18487      case "$LIBS" in
18488      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18489      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18490      esac ;;
18491    esac
18492      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18493 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18494 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18495   echo $ECHO_N "(cached) $ECHO_C" >&6
18496 else
18497   ac_cv_sys_file_offset_bits=no
18498       ac_cv_sys_file_offset_bits=64
18499       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18500         case "$ac_flag" in
18501         -D_FILE_OFFSET_BITS)
18502           ac_cv_sys_file_offset_bits=1 ;;
18503         -D_FILE_OFFSET_BITS=*)
18504           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18505         esac
18506       done
18507
18508 fi
18509 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18510 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18511    if test "$ac_cv_sys_file_offset_bits" != no; then
18512
18513 cat >>confdefs.h <<_ACEOF
18514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18515 _ACEOF
18516
18517    fi
18518      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18519 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18520 if test "${ac_cv_sys_largefile_source+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   ac_cv_sys_largefile_source=no
18524       ac_cv_sys_largefile_source=1
18525       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18526         case "$ac_flag" in
18527         -D_LARGEFILE_SOURCE)
18528           ac_cv_sys_largefile_source=1 ;;
18529         -D_LARGEFILE_SOURCE=*)
18530           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18531         esac
18532       done
18533
18534 fi
18535 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18536 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18537    if test "$ac_cv_sys_largefile_source" != no; then
18538
18539 cat >>confdefs.h <<_ACEOF
18540 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18541 _ACEOF
18542
18543    fi
18544      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18545 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18546 if test "${ac_cv_sys_large_files+set}" = set; then
18547   echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549   ac_cv_sys_large_files=no
18550       ac_cv_sys_large_files=1
18551       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18552         case "$ac_flag" in
18553         -D_LARGE_FILES)
18554           ac_cv_sys_large_files=1 ;;
18555         -D_LARGE_FILES=*)
18556           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18557         esac
18558       done
18559
18560 fi
18561 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18562 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18563    if test "$ac_cv_sys_large_files" != no; then
18564
18565 cat >>confdefs.h <<_ACEOF
18566 #define _LARGE_FILES $ac_cv_sys_large_files
18567 _ACEOF
18568
18569    fi
18570    fi
18571
18572
18573
18574 { echo "$as_me:$LINENO: checking for X" >&5
18575 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18576
18577
18578 # Check whether --with-x was given.
18579 if test "${with_x+set}" = set; then
18580   withval=$with_x;
18581 fi
18582
18583 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18584 if test "x$with_x" = xno; then
18585   # The user explicitly disabled X.
18586   have_x=disabled
18587 else
18588   case $x_includes,$x_libraries in #(
18589     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18590 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18591    { (exit 1); exit 1; }; };; #(
18592     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18593   echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595   # One or both of the vars are not set, and there is no cached value.
18596 ac_x_includes=no ac_x_libraries=no
18597 rm -f -r conftest.dir
18598 if mkdir conftest.dir; then
18599   cd conftest.dir
18600   cat >Imakefile <<'_ACEOF'
18601 incroot:
18602         @echo incroot='${INCROOT}'
18603 usrlibdir:
18604         @echo usrlibdir='${USRLIBDIR}'
18605 libdir:
18606         @echo libdir='${LIBDIR}'
18607 _ACEOF
18608   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18609     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18610     for ac_var in incroot usrlibdir libdir; do
18611       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18612     done
18613     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18614     for ac_extension in a so sl; do
18615       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18616          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18617         ac_im_usrlibdir=$ac_im_libdir; break
18618       fi
18619     done
18620     # Screen out bogus values from the imake configuration.  They are
18621     # bogus both because they are the default anyway, and because
18622     # using them would break gcc on systems where it needs fixed includes.
18623     case $ac_im_incroot in
18624         /usr/include) ac_x_includes= ;;
18625         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18626     esac
18627     case $ac_im_usrlibdir in
18628         /usr/lib | /lib) ;;
18629         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18630     esac
18631   fi
18632   cd ..
18633   rm -f -r conftest.dir
18634 fi
18635
18636 # Standard set of common directories for X headers.
18637 # Check X11 before X11Rn because it is often a symlink to the current release.
18638 ac_x_header_dirs='
18639 /usr/X11/include
18640 /usr/X11R6/include
18641 /usr/X11R5/include
18642 /usr/X11R4/include
18643
18644 /usr/include/X11
18645 /usr/include/X11R6
18646 /usr/include/X11R5
18647 /usr/include/X11R4
18648
18649 /usr/local/X11/include
18650 /usr/local/X11R6/include
18651 /usr/local/X11R5/include
18652 /usr/local/X11R4/include
18653
18654 /usr/local/include/X11
18655 /usr/local/include/X11R6
18656 /usr/local/include/X11R5
18657 /usr/local/include/X11R4
18658
18659 /usr/X386/include
18660 /usr/x386/include
18661 /usr/XFree86/include/X11
18662
18663 /usr/include
18664 /usr/local/include
18665 /usr/unsupported/include
18666 /usr/athena/include
18667 /usr/local/x11r5/include
18668 /usr/lpp/Xamples/include
18669
18670 /usr/openwin/include
18671 /usr/openwin/share/include'
18672
18673 if test "$ac_x_includes" = no; then
18674   # Guess where to find include files, by looking for Xlib.h.
18675   # First, try using that file with no special directory specified.
18676   cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682 #include <X11/Xlib.h>
18683 _ACEOF
18684 if { (ac_try="$ac_cpp conftest.$ac_ext"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } >/dev/null && {
18697          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18698          test ! -s conftest.err
18699        }; then
18700   # We can compile using X headers with no special include directory.
18701 ac_x_includes=
18702 else
18703   echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706   for ac_dir in $ac_x_header_dirs; do
18707   if test -r "$ac_dir/X11/Xlib.h"; then
18708     ac_x_includes=$ac_dir
18709     break
18710   fi
18711 done
18712 fi
18713
18714 rm -f conftest.err conftest.$ac_ext
18715 fi # $ac_x_includes = no
18716
18717 if test "$ac_x_libraries" = no; then
18718   # Check for the libraries.
18719   # See if we find them without any special options.
18720   # Don't add to $LIBS permanently.
18721   ac_save_LIBS=$LIBS
18722   LIBS="-lX11 $LIBS"
18723   cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h.  */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h.  */
18729 #include <X11/Xlib.h>
18730 int
18731 main ()
18732 {
18733 XrmInitialize ()
18734   ;
18735   return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest.$ac_objext conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742   *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745   (eval "$ac_link") 2>conftest.er1
18746   ac_status=$?
18747   grep -v '^ *+' conftest.er1 >conftest.err
18748   rm -f conftest.er1
18749   cat conftest.err >&5
18750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751   (exit $ac_status); } && {
18752          test -z "$ac_c_werror_flag" ||
18753          test ! -s conftest.err
18754        } && test -s conftest$ac_exeext &&
18755        $as_test_x conftest$ac_exeext; then
18756   LIBS=$ac_save_LIBS
18757 # We can link X programs with no special library path.
18758 ac_x_libraries=
18759 else
18760   echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.$ac_ext >&5
18762
18763         LIBS=$ac_save_LIBS
18764 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18765 do
18766   # Don't even attempt the hair of trying to link an X program!
18767   for ac_extension in a so sl; do
18768     if test -r "$ac_dir/libX11.$ac_extension"; then
18769       ac_x_libraries=$ac_dir
18770       break 2
18771     fi
18772   done
18773 done
18774 fi
18775
18776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18777       conftest$ac_exeext conftest.$ac_ext
18778 fi # $ac_x_libraries = no
18779
18780 case $ac_x_includes,$ac_x_libraries in #(
18781   no,* | *,no | *\'*)
18782     # Didn't find X, or a directory has "'" in its name.
18783     ac_cv_have_x="have_x=no";; #(
18784   *)
18785     # Record where we found X for the cache.
18786     ac_cv_have_x="have_x=yes\
18787         ac_x_includes='$ac_x_includes'\
18788         ac_x_libraries='$ac_x_libraries'"
18789 esac
18790 fi
18791 ;; #(
18792     *) have_x=yes;;
18793   esac
18794   eval "$ac_cv_have_x"
18795 fi # $with_x != no
18796
18797 if test "$have_x" != yes; then
18798   { echo "$as_me:$LINENO: result: $have_x" >&5
18799 echo "${ECHO_T}$have_x" >&6; }
18800   no_x=yes
18801 else
18802   # If each of the values was on the command line, it overrides each guess.
18803   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18804   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18805   # Update the cache value to reflect the command line values.
18806   ac_cv_have_x="have_x=yes\
18807         ac_x_includes='$x_includes'\
18808         ac_x_libraries='$x_libraries'"
18809   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18810 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18811 fi
18812
18813 if test "$no_x" = yes; then
18814   # Not all programs may use this symbol, but it does not hurt to define it.
18815
18816 cat >>confdefs.h <<\_ACEOF
18817 #define X_DISPLAY_MISSING 1
18818 _ACEOF
18819
18820   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18821 else
18822   if test -n "$x_includes"; then
18823     X_CFLAGS="$X_CFLAGS -I$x_includes"
18824   fi
18825
18826   # It would also be nice to do this for all -L options, not just this one.
18827   if test -n "$x_libraries"; then
18828     X_LIBS="$X_LIBS -L$x_libraries"
18829     # For Solaris; some versions of Sun CC require a space after -R and
18830     # others require no space.  Words are not sufficient . . . .
18831     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18832 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18833     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18834     ac_xsave_c_werror_flag=$ac_c_werror_flag
18835     ac_c_werror_flag=yes
18836     cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h.  */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h.  */
18842
18843 int
18844 main ()
18845 {
18846
18847   ;
18848   return 0;
18849 }
18850 _ACEOF
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (ac_try="$ac_link"
18853 case "(($ac_try" in
18854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855   *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858   (eval "$ac_link") 2>conftest.er1
18859   ac_status=$?
18860   grep -v '^ *+' conftest.er1 >conftest.err
18861   rm -f conftest.er1
18862   cat conftest.err >&5
18863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864   (exit $ac_status); } && {
18865          test -z "$ac_c_werror_flag" ||
18866          test ! -s conftest.err
18867        } && test -s conftest$ac_exeext &&
18868        $as_test_x conftest$ac_exeext; then
18869   { echo "$as_me:$LINENO: result: no" >&5
18870 echo "${ECHO_T}no" >&6; }
18871        X_LIBS="$X_LIBS -R$x_libraries"
18872 else
18873   echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18875
18876         LIBS="$ac_xsave_LIBS -R $x_libraries"
18877        cat >conftest.$ac_ext <<_ACEOF
18878 /* confdefs.h.  */
18879 _ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h.  */
18883
18884 int
18885 main ()
18886 {
18887
18888   ;
18889   return 0;
18890 }
18891 _ACEOF
18892 rm -f conftest.$ac_objext conftest$ac_exeext
18893 if { (ac_try="$ac_link"
18894 case "(($ac_try" in
18895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896   *) ac_try_echo=$ac_try;;
18897 esac
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899   (eval "$ac_link") 2>conftest.er1
18900   ac_status=$?
18901   grep -v '^ *+' conftest.er1 >conftest.err
18902   rm -f conftest.er1
18903   cat conftest.err >&5
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); } && {
18906          test -z "$ac_c_werror_flag" ||
18907          test ! -s conftest.err
18908        } && test -s conftest$ac_exeext &&
18909        $as_test_x conftest$ac_exeext; then
18910   { echo "$as_me:$LINENO: result: yes" >&5
18911 echo "${ECHO_T}yes" >&6; }
18912           X_LIBS="$X_LIBS -R $x_libraries"
18913 else
18914   echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18916
18917         { echo "$as_me:$LINENO: result: neither works" >&5
18918 echo "${ECHO_T}neither works" >&6; }
18919 fi
18920
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922       conftest$ac_exeext conftest.$ac_ext
18923 fi
18924
18925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18926       conftest$ac_exeext conftest.$ac_ext
18927     ac_c_werror_flag=$ac_xsave_c_werror_flag
18928     LIBS=$ac_xsave_LIBS
18929   fi
18930
18931   # Check for system-dependent libraries X programs must link with.
18932   # Do this before checking for the system-independent R6 libraries
18933   # (-lICE), since we may need -lsocket or whatever for X linking.
18934
18935   if test "$ISC" = yes; then
18936     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18937   else
18938     # Martyn Johnson says this is needed for Ultrix, if the X
18939     # libraries were built with DECnet support.  And Karl Berry says
18940     # the Alpha needs dnet_stub (dnet does not exist).
18941     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18942     cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948
18949 /* Override any GCC internal prototype to avoid an error.
18950    Use char because int might match the return type of a GCC
18951    builtin and then its argument prototype would still apply.  */
18952 #ifdef __cplusplus
18953 extern "C"
18954 #endif
18955 char XOpenDisplay ();
18956 int
18957 main ()
18958 {
18959 return XOpenDisplay ();
18960   ;
18961   return 0;
18962 }
18963 _ACEOF
18964 rm -f conftest.$ac_objext conftest$ac_exeext
18965 if { (ac_try="$ac_link"
18966 case "(($ac_try" in
18967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968   *) ac_try_echo=$ac_try;;
18969 esac
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971   (eval "$ac_link") 2>conftest.er1
18972   ac_status=$?
18973   grep -v '^ *+' conftest.er1 >conftest.err
18974   rm -f conftest.er1
18975   cat conftest.err >&5
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); } && {
18978          test -z "$ac_c_werror_flag" ||
18979          test ! -s conftest.err
18980        } && test -s conftest$ac_exeext &&
18981        $as_test_x conftest$ac_exeext; then
18982   :
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18988 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18990   echo $ECHO_N "(cached) $ECHO_C" >&6
18991 else
18992   ac_check_lib_save_LIBS=$LIBS
18993 LIBS="-ldnet  $LIBS"
18994 cat >conftest.$ac_ext <<_ACEOF
18995 /* confdefs.h.  */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h.  */
19000
19001 /* Override any GCC internal prototype to avoid an error.
19002    Use char because int might match the return type of a GCC
19003    builtin and then its argument prototype would still apply.  */
19004 #ifdef __cplusplus
19005 extern "C"
19006 #endif
19007 char dnet_ntoa ();
19008 int
19009 main ()
19010 {
19011 return dnet_ntoa ();
19012   ;
19013   return 0;
19014 }
19015 _ACEOF
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020   *) ac_try_echo=$ac_try;;
19021 esac
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023   (eval "$ac_link") 2>conftest.er1
19024   ac_status=$?
19025   grep -v '^ *+' conftest.er1 >conftest.err
19026   rm -f conftest.er1
19027   cat conftest.err >&5
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); } && {
19030          test -z "$ac_c_werror_flag" ||
19031          test ! -s conftest.err
19032        } && test -s conftest$ac_exeext &&
19033        $as_test_x conftest$ac_exeext; then
19034   ac_cv_lib_dnet_dnet_ntoa=yes
19035 else
19036   echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039         ac_cv_lib_dnet_dnet_ntoa=no
19040 fi
19041
19042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19043       conftest$ac_exeext conftest.$ac_ext
19044 LIBS=$ac_check_lib_save_LIBS
19045 fi
19046 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19047 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19048 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19049   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19050 fi
19051
19052     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19053       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19054 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19055 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   ac_check_lib_save_LIBS=$LIBS
19059 LIBS="-ldnet_stub  $LIBS"
19060 cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066
19067 /* Override any GCC internal prototype to avoid an error.
19068    Use char because int might match the return type of a GCC
19069    builtin and then its argument prototype would still apply.  */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char dnet_ntoa ();
19074 int
19075 main ()
19076 {
19077 return dnet_ntoa ();
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_link") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } && {
19096          test -z "$ac_c_werror_flag" ||
19097          test ! -s conftest.err
19098        } && test -s conftest$ac_exeext &&
19099        $as_test_x conftest$ac_exeext; then
19100   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19101 else
19102   echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105         ac_cv_lib_dnet_stub_dnet_ntoa=no
19106 fi
19107
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109       conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19111 fi
19112 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19113 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19114 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19115   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19116 fi
19117
19118     fi
19119 fi
19120
19121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19122       conftest$ac_exeext conftest.$ac_ext
19123     LIBS="$ac_xsave_LIBS"
19124
19125     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19126     # to get the SysV transport functions.
19127     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19128     # needs -lnsl.
19129     # The nsl library prevents programs from opening the X display
19130     # on Irix 5.2, according to T.E. Dickey.
19131     # The functions gethostbyname, getservbyname, and inet_addr are
19132     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19133     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19135 if test "${ac_cv_func_gethostbyname+set}" = set; then
19136   echo $ECHO_N "(cached) $ECHO_C" >&6
19137 else
19138   cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h.  */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h.  */
19144 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19146 #define gethostbyname innocuous_gethostbyname
19147
19148 /* System header to define __stub macros and hopefully few prototypes,
19149     which can conflict with char gethostbyname (); below.
19150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19151     <limits.h> exists even on freestanding compilers.  */
19152
19153 #ifdef __STDC__
19154 # include <limits.h>
19155 #else
19156 # include <assert.h>
19157 #endif
19158
19159 #undef gethostbyname
19160
19161 /* Override any GCC internal prototype to avoid an error.
19162    Use char because int might match the return type of a GCC
19163    builtin and then its argument prototype would still apply.  */
19164 #ifdef __cplusplus
19165 extern "C"
19166 #endif
19167 char gethostbyname ();
19168 /* The GNU C library defines this for functions which it implements
19169     to always fail with ENOSYS.  Some functions are actually named
19170     something starting with __ and the normal name is an alias.  */
19171 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19172 choke me
19173 #endif
19174
19175 int
19176 main ()
19177 {
19178 return gethostbyname ();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (ac_try="$ac_link"
19185 case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_link") 2>conftest.er1
19191   ac_status=$?
19192   grep -v '^ *+' conftest.er1 >conftest.err
19193   rm -f conftest.er1
19194   cat conftest.err >&5
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } && {
19197          test -z "$ac_c_werror_flag" ||
19198          test ! -s conftest.err
19199        } && test -s conftest$ac_exeext &&
19200        $as_test_x conftest$ac_exeext; then
19201   ac_cv_func_gethostbyname=yes
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206         ac_cv_func_gethostbyname=no
19207 fi
19208
19209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19210       conftest$ac_exeext conftest.$ac_ext
19211 fi
19212 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19213 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19214
19215     if test $ac_cv_func_gethostbyname = no; then
19216       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19217 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19218 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19219   echo $ECHO_N "(cached) $ECHO_C" >&6
19220 else
19221   ac_check_lib_save_LIBS=$LIBS
19222 LIBS="-lnsl  $LIBS"
19223 cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h.  */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h.  */
19229
19230 /* Override any GCC internal prototype to avoid an error.
19231    Use char because int might match the return type of a GCC
19232    builtin and then its argument prototype would still apply.  */
19233 #ifdef __cplusplus
19234 extern "C"
19235 #endif
19236 char gethostbyname ();
19237 int
19238 main ()
19239 {
19240 return gethostbyname ();
19241   ;
19242   return 0;
19243 }
19244 _ACEOF
19245 rm -f conftest.$ac_objext conftest$ac_exeext
19246 if { (ac_try="$ac_link"
19247 case "(($ac_try" in
19248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249   *) ac_try_echo=$ac_try;;
19250 esac
19251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19252   (eval "$ac_link") 2>conftest.er1
19253   ac_status=$?
19254   grep -v '^ *+' conftest.er1 >conftest.err
19255   rm -f conftest.er1
19256   cat conftest.err >&5
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); } && {
19259          test -z "$ac_c_werror_flag" ||
19260          test ! -s conftest.err
19261        } && test -s conftest$ac_exeext &&
19262        $as_test_x conftest$ac_exeext; then
19263   ac_cv_lib_nsl_gethostbyname=yes
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268         ac_cv_lib_nsl_gethostbyname=no
19269 fi
19270
19271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19272       conftest$ac_exeext conftest.$ac_ext
19273 LIBS=$ac_check_lib_save_LIBS
19274 fi
19275 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19276 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19277 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19278   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19279 fi
19280
19281       if test $ac_cv_lib_nsl_gethostbyname = no; then
19282         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19283 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19284 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19285   echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287   ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-lbsd  $LIBS"
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h.  */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h.  */
19295
19296 /* Override any GCC internal prototype to avoid an error.
19297    Use char because int might match the return type of a GCC
19298    builtin and then its argument prototype would still apply.  */
19299 #ifdef __cplusplus
19300 extern "C"
19301 #endif
19302 char gethostbyname ();
19303 int
19304 main ()
19305 {
19306 return gethostbyname ();
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315   *) ac_try_echo=$ac_try;;
19316 esac
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318   (eval "$ac_link") 2>conftest.er1
19319   ac_status=$?
19320   grep -v '^ *+' conftest.er1 >conftest.err
19321   rm -f conftest.er1
19322   cat conftest.err >&5
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); } && {
19325          test -z "$ac_c_werror_flag" ||
19326          test ! -s conftest.err
19327        } && test -s conftest$ac_exeext &&
19328        $as_test_x conftest$ac_exeext; then
19329   ac_cv_lib_bsd_gethostbyname=yes
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334         ac_cv_lib_bsd_gethostbyname=no
19335 fi
19336
19337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19338       conftest$ac_exeext conftest.$ac_ext
19339 LIBS=$ac_check_lib_save_LIBS
19340 fi
19341 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19342 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19343 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19344   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19345 fi
19346
19347       fi
19348     fi
19349
19350     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19351     # socket/setsockopt and other routines are undefined under SCO ODT
19352     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19353     # on later versions), says Simon Leinen: it contains gethostby*
19354     # variants that don't use the name server (or something).  -lsocket
19355     # must be given before -lnsl if both are needed.  We assume that
19356     # if connect needs -lnsl, so does gethostbyname.
19357     { echo "$as_me:$LINENO: checking for connect" >&5
19358 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19359 if test "${ac_cv_func_connect+set}" = set; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19370 #define connect innocuous_connect
19371
19372 /* System header to define __stub macros and hopefully few prototypes,
19373     which can conflict with char connect (); below.
19374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375     <limits.h> exists even on freestanding compilers.  */
19376
19377 #ifdef __STDC__
19378 # include <limits.h>
19379 #else
19380 # include <assert.h>
19381 #endif
19382
19383 #undef connect
19384
19385 /* Override any GCC internal prototype to avoid an error.
19386    Use char because int might match the return type of a GCC
19387    builtin and then its argument prototype would still apply.  */
19388 #ifdef __cplusplus
19389 extern "C"
19390 #endif
19391 char connect ();
19392 /* The GNU C library defines this for functions which it implements
19393     to always fail with ENOSYS.  Some functions are actually named
19394     something starting with __ and the normal name is an alias.  */
19395 #if defined __stub_connect || defined __stub___connect
19396 choke me
19397 #endif
19398
19399 int
19400 main ()
19401 {
19402 return connect ();
19403   ;
19404   return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_link") 2>conftest.er1
19415   ac_status=$?
19416   grep -v '^ *+' conftest.er1 >conftest.err
19417   rm -f conftest.er1
19418   cat conftest.err >&5
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } && {
19421          test -z "$ac_c_werror_flag" ||
19422          test ! -s conftest.err
19423        } && test -s conftest$ac_exeext &&
19424        $as_test_x conftest$ac_exeext; then
19425   ac_cv_func_connect=yes
19426 else
19427   echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430         ac_cv_func_connect=no
19431 fi
19432
19433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19434       conftest$ac_exeext conftest.$ac_ext
19435 fi
19436 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19437 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19438
19439     if test $ac_cv_func_connect = no; then
19440       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19441 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19442 if test "${ac_cv_lib_socket_connect+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445   ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h.  */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h.  */
19453
19454 /* Override any GCC internal prototype to avoid an error.
19455    Use char because int might match the return type of a GCC
19456    builtin and then its argument prototype would still apply.  */
19457 #ifdef __cplusplus
19458 extern "C"
19459 #endif
19460 char connect ();
19461 int
19462 main ()
19463 {
19464 return connect ();
19465   ;
19466   return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473   *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476   (eval "$ac_link") 2>conftest.er1
19477   ac_status=$?
19478   grep -v '^ *+' conftest.er1 >conftest.err
19479   rm -f conftest.er1
19480   cat conftest.err >&5
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } && {
19483          test -z "$ac_c_werror_flag" ||
19484          test ! -s conftest.err
19485        } && test -s conftest$ac_exeext &&
19486        $as_test_x conftest$ac_exeext; then
19487   ac_cv_lib_socket_connect=yes
19488 else
19489   echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492         ac_cv_lib_socket_connect=no
19493 fi
19494
19495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496       conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19498 fi
19499 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19500 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19501 if test $ac_cv_lib_socket_connect = yes; then
19502   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19503 fi
19504
19505     fi
19506
19507     # Guillermo Gomez says -lposix is necessary on A/UX.
19508     { echo "$as_me:$LINENO: checking for remove" >&5
19509 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19510 if test "${ac_cv_func_remove+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19521 #define remove innocuous_remove
19522
19523 /* System header to define __stub macros and hopefully few prototypes,
19524     which can conflict with char remove (); below.
19525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19526     <limits.h> exists even on freestanding compilers.  */
19527
19528 #ifdef __STDC__
19529 # include <limits.h>
19530 #else
19531 # include <assert.h>
19532 #endif
19533
19534 #undef remove
19535
19536 /* Override any GCC internal prototype to avoid an error.
19537    Use char because int might match the return type of a GCC
19538    builtin and then its argument prototype would still apply.  */
19539 #ifdef __cplusplus
19540 extern "C"
19541 #endif
19542 char remove ();
19543 /* The GNU C library defines this for functions which it implements
19544     to always fail with ENOSYS.  Some functions are actually named
19545     something starting with __ and the normal name is an alias.  */
19546 #if defined __stub_remove || defined __stub___remove
19547 choke me
19548 #endif
19549
19550 int
19551 main ()
19552 {
19553 return remove ();
19554   ;
19555   return 0;
19556 }
19557 _ACEOF
19558 rm -f conftest.$ac_objext conftest$ac_exeext
19559 if { (ac_try="$ac_link"
19560 case "(($ac_try" in
19561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562   *) ac_try_echo=$ac_try;;
19563 esac
19564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19565   (eval "$ac_link") 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } && {
19572          test -z "$ac_c_werror_flag" ||
19573          test ! -s conftest.err
19574        } && test -s conftest$ac_exeext &&
19575        $as_test_x conftest$ac_exeext; then
19576   ac_cv_func_remove=yes
19577 else
19578   echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19580
19581         ac_cv_func_remove=no
19582 fi
19583
19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19585       conftest$ac_exeext conftest.$ac_ext
19586 fi
19587 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19588 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19589
19590     if test $ac_cv_func_remove = no; then
19591       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19592 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19593 if test "${ac_cv_lib_posix_remove+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lposix  $LIBS"
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604
19605 /* Override any GCC internal prototype to avoid an error.
19606    Use char because int might match the return type of a GCC
19607    builtin and then its argument prototype would still apply.  */
19608 #ifdef __cplusplus
19609 extern "C"
19610 #endif
19611 char remove ();
19612 int
19613 main ()
19614 {
19615 return remove ();
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_link") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } && {
19634          test -z "$ac_c_werror_flag" ||
19635          test ! -s conftest.err
19636        } && test -s conftest$ac_exeext &&
19637        $as_test_x conftest$ac_exeext; then
19638   ac_cv_lib_posix_remove=yes
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643         ac_cv_lib_posix_remove=no
19644 fi
19645
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647       conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19649 fi
19650 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19651 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19652 if test $ac_cv_lib_posix_remove = yes; then
19653   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19654 fi
19655
19656     fi
19657
19658     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19659     { echo "$as_me:$LINENO: checking for shmat" >&5
19660 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19661 if test "${ac_cv_func_shmat+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19672 #define shmat innocuous_shmat
19673
19674 /* System header to define __stub macros and hopefully few prototypes,
19675     which can conflict with char shmat (); below.
19676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19677     <limits.h> exists even on freestanding compilers.  */
19678
19679 #ifdef __STDC__
19680 # include <limits.h>
19681 #else
19682 # include <assert.h>
19683 #endif
19684
19685 #undef shmat
19686
19687 /* Override any GCC internal prototype to avoid an error.
19688    Use char because int might match the return type of a GCC
19689    builtin and then its argument prototype would still apply.  */
19690 #ifdef __cplusplus
19691 extern "C"
19692 #endif
19693 char shmat ();
19694 /* The GNU C library defines this for functions which it implements
19695     to always fail with ENOSYS.  Some functions are actually named
19696     something starting with __ and the normal name is an alias.  */
19697 #if defined __stub_shmat || defined __stub___shmat
19698 choke me
19699 #endif
19700
19701 int
19702 main ()
19703 {
19704 return shmat ();
19705   ;
19706   return 0;
19707 }
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (ac_try="$ac_link"
19711 case "(($ac_try" in
19712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713   *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716   (eval "$ac_link") 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } && {
19723          test -z "$ac_c_werror_flag" ||
19724          test ! -s conftest.err
19725        } && test -s conftest$ac_exeext &&
19726        $as_test_x conftest$ac_exeext; then
19727   ac_cv_func_shmat=yes
19728 else
19729   echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19731
19732         ac_cv_func_shmat=no
19733 fi
19734
19735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19736       conftest$ac_exeext conftest.$ac_ext
19737 fi
19738 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19739 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19740
19741     if test $ac_cv_func_shmat = no; then
19742       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19743 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19744 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lipc  $LIBS"
19749 cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h.  */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h.  */
19755
19756 /* Override any GCC internal prototype to avoid an error.
19757    Use char because int might match the return type of a GCC
19758    builtin and then its argument prototype would still apply.  */
19759 #ifdef __cplusplus
19760 extern "C"
19761 #endif
19762 char shmat ();
19763 int
19764 main ()
19765 {
19766 return shmat ();
19767   ;
19768   return 0;
19769 }
19770 _ACEOF
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_link") 2>conftest.er1
19779   ac_status=$?
19780   grep -v '^ *+' conftest.er1 >conftest.err
19781   rm -f conftest.er1
19782   cat conftest.err >&5
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); } && {
19785          test -z "$ac_c_werror_flag" ||
19786          test ! -s conftest.err
19787        } && test -s conftest$ac_exeext &&
19788        $as_test_x conftest$ac_exeext; then
19789   ac_cv_lib_ipc_shmat=yes
19790 else
19791   echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794         ac_cv_lib_ipc_shmat=no
19795 fi
19796
19797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19798       conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19800 fi
19801 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19802 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19803 if test $ac_cv_lib_ipc_shmat = yes; then
19804   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19805 fi
19806
19807     fi
19808   fi
19809
19810   # Check for libraries that X11R6 Xt/Xaw programs need.
19811   ac_save_LDFLAGS=$LDFLAGS
19812   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19813   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19814   # check for ICE first), but we must link in the order -lSM -lICE or
19815   # we get undefined symbols.  So assume we have SM if we have ICE.
19816   # These have to be linked with before -lX11, unlike the other
19817   # libraries we check for below, so use a different variable.
19818   # John Interrante, Karl Berry
19819   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19820 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19821 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19822   echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824   ac_check_lib_save_LIBS=$LIBS
19825 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h.  */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h.  */
19832
19833 /* Override any GCC internal prototype to avoid an error.
19834    Use char because int might match the return type of a GCC
19835    builtin and then its argument prototype would still apply.  */
19836 #ifdef __cplusplus
19837 extern "C"
19838 #endif
19839 char IceConnectionNumber ();
19840 int
19841 main ()
19842 {
19843 return IceConnectionNumber ();
19844   ;
19845   return 0;
19846 }
19847 _ACEOF
19848 rm -f conftest.$ac_objext conftest$ac_exeext
19849 if { (ac_try="$ac_link"
19850 case "(($ac_try" in
19851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852   *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855   (eval "$ac_link") 2>conftest.er1
19856   ac_status=$?
19857   grep -v '^ *+' conftest.er1 >conftest.err
19858   rm -f conftest.er1
19859   cat conftest.err >&5
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } && {
19862          test -z "$ac_c_werror_flag" ||
19863          test ! -s conftest.err
19864        } && test -s conftest$ac_exeext &&
19865        $as_test_x conftest$ac_exeext; then
19866   ac_cv_lib_ICE_IceConnectionNumber=yes
19867 else
19868   echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19870
19871         ac_cv_lib_ICE_IceConnectionNumber=no
19872 fi
19873
19874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19875       conftest$ac_exeext conftest.$ac_ext
19876 LIBS=$ac_check_lib_save_LIBS
19877 fi
19878 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19879 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19880 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19881   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19882 fi
19883
19884   LDFLAGS=$ac_save_LDFLAGS
19885
19886 fi
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919 for ac_header in \
19920         assert.h \
19921         fcntl.h \
19922         grp.h \
19923         pwd.h \
19924         libc.h \
19925         limits.h \
19926         stdarg.h \
19927         stdlib.h \
19928         stdint.h \
19929         string.h \
19930         strings.h \
19931         termios.h \
19932         termcap.h \
19933         term.h \
19934         unistd.h \
19935         sys/bitypes.h \
19936         sys/byteorder.h \
19937         sys/ioctl.h \
19938         sys/select.h \
19939         sys/socket.h \
19940         sys/sockio.h \
19941         sys/stat.h \
19942         sys/time.h \
19943         sys/types.h \
19944         arpa/nameser.h \
19945         resolv.h \
19946         mtio.h \
19947         sys/mtio.h \
19948         sys/tape.h \
19949         regex.h \
19950
19951 do
19952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19954   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 fi
19959 ac_res=`eval echo '${'$as_ac_Header'}'`
19960                { echo "$as_me:$LINENO: result: $ac_res" >&5
19961 echo "${ECHO_T}$ac_res" >&6; }
19962 else
19963   # Is the header compilable?
19964 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h.  */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h.  */
19972 $ac_includes_default
19973 #include <$ac_header>
19974 _ACEOF
19975 rm -f conftest.$ac_objext
19976 if { (ac_try="$ac_compile"
19977 case "(($ac_try" in
19978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979   *) ac_try_echo=$ac_try;;
19980 esac
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982   (eval "$ac_compile") 2>conftest.er1
19983   ac_status=$?
19984   grep -v '^ *+' conftest.er1 >conftest.err
19985   rm -f conftest.er1
19986   cat conftest.err >&5
19987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988   (exit $ac_status); } && {
19989          test -z "$ac_c_werror_flag" ||
19990          test ! -s conftest.err
19991        } && test -s conftest.$ac_objext; then
19992   ac_header_compiler=yes
19993 else
19994   echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19996
19997         ac_header_compiler=no
19998 fi
19999
20000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20002 echo "${ECHO_T}$ac_header_compiler" >&6; }
20003
20004 # Is the header present?
20005 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 #include <$ac_header>
20014 _ACEOF
20015 if { (ac_try="$ac_cpp conftest.$ac_ext"
20016 case "(($ac_try" in
20017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018   *) ac_try_echo=$ac_try;;
20019 esac
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20022   ac_status=$?
20023   grep -v '^ *+' conftest.er1 >conftest.err
20024   rm -f conftest.er1
20025   cat conftest.err >&5
20026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027   (exit $ac_status); } >/dev/null && {
20028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20029          test ! -s conftest.err
20030        }; then
20031   ac_header_preproc=yes
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036   ac_header_preproc=no
20037 fi
20038
20039 rm -f conftest.err conftest.$ac_ext
20040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20041 echo "${ECHO_T}$ac_header_preproc" >&6; }
20042
20043 # So?  What about this header?
20044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20045   yes:no: )
20046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20050     ac_header_preproc=yes
20051     ;;
20052   no:yes:* )
20053     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20055     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20056 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20057     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20059     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20060 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20061     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20063     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20065
20066     ;;
20067 esac
20068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   eval "$as_ac_Header=\$ac_header_preproc"
20074 fi
20075 ac_res=`eval echo '${'$as_ac_Header'}'`
20076                { echo "$as_me:$LINENO: result: $ac_res" >&5
20077 echo "${ECHO_T}$ac_res" >&6; }
20078
20079 fi
20080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20081   cat >>confdefs.h <<_ACEOF
20082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20083 _ACEOF
20084
20085 fi
20086
20087 done
20088
20089 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20091 if test "${ac_cv_header_stdc+set}" = set; then
20092   echo $ECHO_N "(cached) $ECHO_C" >&6
20093 else
20094   cat >conftest.$ac_ext <<_ACEOF
20095 /* confdefs.h.  */
20096 _ACEOF
20097 cat confdefs.h >>conftest.$ac_ext
20098 cat >>conftest.$ac_ext <<_ACEOF
20099 /* end confdefs.h.  */
20100 #include <stdlib.h>
20101 #include <stdarg.h>
20102 #include <string.h>
20103 #include <float.h>
20104
20105 int
20106 main ()
20107 {
20108
20109   ;
20110   return 0;
20111 }
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117   *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120   (eval "$ac_compile") 2>conftest.er1
20121   ac_status=$?
20122   grep -v '^ *+' conftest.er1 >conftest.err
20123   rm -f conftest.er1
20124   cat conftest.err >&5
20125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126   (exit $ac_status); } && {
20127          test -z "$ac_c_werror_flag" ||
20128          test ! -s conftest.err
20129        } && test -s conftest.$ac_objext; then
20130   ac_cv_header_stdc=yes
20131 else
20132   echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20134
20135         ac_cv_header_stdc=no
20136 fi
20137
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20139
20140 if test $ac_cv_header_stdc = yes; then
20141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20142   cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148 #include <string.h>
20149
20150 _ACEOF
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152   $EGREP "memchr" >/dev/null 2>&1; then
20153   :
20154 else
20155   ac_cv_header_stdc=no
20156 fi
20157 rm -f conftest*
20158
20159 fi
20160
20161 if test $ac_cv_header_stdc = yes; then
20162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20163   cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169 #include <stdlib.h>
20170
20171 _ACEOF
20172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20173   $EGREP "free" >/dev/null 2>&1; then
20174   :
20175 else
20176   ac_cv_header_stdc=no
20177 fi
20178 rm -f conftest*
20179
20180 fi
20181
20182 if test $ac_cv_header_stdc = yes; then
20183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20184   if test "$cross_compiling" = yes; then
20185   :
20186 else
20187   cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193 #include <ctype.h>
20194 #include <stdlib.h>
20195 #if ((' ' & 0x0FF) == 0x020)
20196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20198 #else
20199 # define ISLOWER(c) \
20200                    (('a' <= (c) && (c) <= 'i') \
20201                      || ('j' <= (c) && (c) <= 'r') \
20202                      || ('s' <= (c) && (c) <= 'z'))
20203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20204 #endif
20205
20206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20207 int
20208 main ()
20209 {
20210   int i;
20211   for (i = 0; i < 256; i++)
20212     if (XOR (islower (i), ISLOWER (i))
20213         || toupper (i) != TOUPPER (i))
20214       return 2;
20215   return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_link") 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20229   { (case "(($ac_try" in
20230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231   *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234   (eval "$ac_try") 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   :
20239 else
20240   echo "$as_me: program exited with status $ac_status" >&5
20241 echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 ( exit $ac_status )
20245 ac_cv_header_stdc=no
20246 fi
20247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20248 fi
20249
20250
20251 fi
20252 fi
20253 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20254 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20255 if test $ac_cv_header_stdc = yes; then
20256
20257 cat >>confdefs.h <<\_ACEOF
20258 #define STDC_HEADERS 1
20259 _ACEOF
20260
20261 fi
20262
20263 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20264 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20265 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274 #include <sys/types.h>
20275 int
20276 main ()
20277 {
20278 return makedev(0, 0);
20279   ;
20280   return 0;
20281 }
20282 _ACEOF
20283 rm -f conftest.$ac_objext conftest$ac_exeext
20284 if { (ac_try="$ac_link"
20285 case "(($ac_try" in
20286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287   *) ac_try_echo=$ac_try;;
20288 esac
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290   (eval "$ac_link") 2>conftest.er1
20291   ac_status=$?
20292   grep -v '^ *+' conftest.er1 >conftest.err
20293   rm -f conftest.er1
20294   cat conftest.err >&5
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); } && {
20297          test -z "$ac_c_werror_flag" ||
20298          test ! -s conftest.err
20299        } && test -s conftest$ac_exeext &&
20300        $as_test_x conftest$ac_exeext; then
20301   ac_cv_header_sys_types_h_makedev=yes
20302 else
20303   echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306         ac_cv_header_sys_types_h_makedev=no
20307 fi
20308
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310       conftest$ac_exeext conftest.$ac_ext
20311
20312 fi
20313 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20314 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20315
20316 if test $ac_cv_header_sys_types_h_makedev = no; then
20317 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20318   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20319 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20320 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 fi
20323 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20324 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20325 else
20326   # Is the header compilable?
20327 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20328 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20329 cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335 $ac_includes_default
20336 #include <sys/mkdev.h>
20337 _ACEOF
20338 rm -f conftest.$ac_objext
20339 if { (ac_try="$ac_compile"
20340 case "(($ac_try" in
20341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342   *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345   (eval "$ac_compile") 2>conftest.er1
20346   ac_status=$?
20347   grep -v '^ *+' conftest.er1 >conftest.err
20348   rm -f conftest.er1
20349   cat conftest.err >&5
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); } && {
20352          test -z "$ac_c_werror_flag" ||
20353          test ! -s conftest.err
20354        } && test -s conftest.$ac_objext; then
20355   ac_header_compiler=yes
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360         ac_header_compiler=no
20361 fi
20362
20363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20365 echo "${ECHO_T}$ac_header_compiler" >&6; }
20366
20367 # Is the header present?
20368 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20369 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20370 cat >conftest.$ac_ext <<_ACEOF
20371 /* confdefs.h.  */
20372 _ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h.  */
20376 #include <sys/mkdev.h>
20377 _ACEOF
20378 if { (ac_try="$ac_cpp conftest.$ac_ext"
20379 case "(($ac_try" in
20380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381   *) ac_try_echo=$ac_try;;
20382 esac
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20385   ac_status=$?
20386   grep -v '^ *+' conftest.er1 >conftest.err
20387   rm -f conftest.er1
20388   cat conftest.err >&5
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } >/dev/null && {
20391          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20392          test ! -s conftest.err
20393        }; then
20394   ac_header_preproc=yes
20395 else
20396   echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399   ac_header_preproc=no
20400 fi
20401
20402 rm -f conftest.err conftest.$ac_ext
20403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20404 echo "${ECHO_T}$ac_header_preproc" >&6; }
20405
20406 # So?  What about this header?
20407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20408   yes:no: )
20409     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20410 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20411     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20412 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20413     ac_header_preproc=yes
20414     ;;
20415   no:yes:* )
20416     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20417 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20418     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20419 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20420     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20421 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20422     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20423 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20424     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20425 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20426     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20427 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20428
20429     ;;
20430 esac
20431 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20432 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20433 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20434   echo $ECHO_N "(cached) $ECHO_C" >&6
20435 else
20436   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20437 fi
20438 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20439 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20440
20441 fi
20442 if test $ac_cv_header_sys_mkdev_h = yes; then
20443
20444 cat >>confdefs.h <<\_ACEOF
20445 #define MAJOR_IN_MKDEV 1
20446 _ACEOF
20447
20448 fi
20449
20450
20451
20452   if test $ac_cv_header_sys_mkdev_h = no; then
20453     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20454   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20455 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20456 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20457   echo $ECHO_N "(cached) $ECHO_C" >&6
20458 fi
20459 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20460 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20461 else
20462   # Is the header compilable?
20463 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20464 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 $ac_includes_default
20472 #include <sys/sysmacros.h>
20473 _ACEOF
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_compile") 2>conftest.er1
20482   ac_status=$?
20483   grep -v '^ *+' conftest.er1 >conftest.err
20484   rm -f conftest.er1
20485   cat conftest.err >&5
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); } && {
20488          test -z "$ac_c_werror_flag" ||
20489          test ! -s conftest.err
20490        } && test -s conftest.$ac_objext; then
20491   ac_header_compiler=yes
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496         ac_header_compiler=no
20497 fi
20498
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501 echo "${ECHO_T}$ac_header_compiler" >&6; }
20502
20503 # Is the header present?
20504 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20505 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20506 cat >conftest.$ac_ext <<_ACEOF
20507 /* confdefs.h.  */
20508 _ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h.  */
20512 #include <sys/sysmacros.h>
20513 _ACEOF
20514 if { (ac_try="$ac_cpp conftest.$ac_ext"
20515 case "(($ac_try" in
20516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517   *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20521   ac_status=$?
20522   grep -v '^ *+' conftest.er1 >conftest.err
20523   rm -f conftest.er1
20524   cat conftest.err >&5
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } >/dev/null && {
20527          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20528          test ! -s conftest.err
20529        }; then
20530   ac_header_preproc=yes
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535   ac_header_preproc=no
20536 fi
20537
20538 rm -f conftest.err conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20540 echo "${ECHO_T}$ac_header_preproc" >&6; }
20541
20542 # So?  What about this header?
20543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20544   yes:no: )
20545     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20546 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20547     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20548 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20549     ac_header_preproc=yes
20550     ;;
20551   no:yes:* )
20552     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20553 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20554     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20555 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20556     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20557 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20558     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20559 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20560     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20561 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20562     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20563 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20564
20565     ;;
20566 esac
20567 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20568 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20569 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20573 fi
20574 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20575 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20576
20577 fi
20578 if test $ac_cv_header_sys_sysmacros_h = yes; then
20579
20580 cat >>confdefs.h <<\_ACEOF
20581 #define MAJOR_IN_SYSMACROS 1
20582 _ACEOF
20583
20584 fi
20585
20586
20587   fi
20588 fi
20589
20590
20591
20592
20593
20594
20595 ac_header_dirent=no
20596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20597   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20598 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20599 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603   cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h.  */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h.  */
20609 #include <sys/types.h>
20610 #include <$ac_hdr>
20611
20612 int
20613 main ()
20614 {
20615 if ((DIR *) 0)
20616 return 0;
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_compile") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } && {
20635          test -z "$ac_c_werror_flag" ||
20636          test ! -s conftest.err
20637        } && test -s conftest.$ac_objext; then
20638   eval "$as_ac_Header=yes"
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         eval "$as_ac_Header=no"
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 fi
20648 ac_res=`eval echo '${'$as_ac_Header'}'`
20649                { echo "$as_me:$LINENO: result: $ac_res" >&5
20650 echo "${ECHO_T}$ac_res" >&6; }
20651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20652   cat >>confdefs.h <<_ACEOF
20653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20654 _ACEOF
20655
20656 ac_header_dirent=$ac_hdr; break
20657 fi
20658
20659 done
20660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20661 if test $ac_header_dirent = dirent.h; then
20662   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20664 if test "${ac_cv_search_opendir+set}" = set; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667   ac_func_search_save_LIBS=$LIBS
20668 cat >conftest.$ac_ext <<_ACEOF
20669 /* confdefs.h.  */
20670 _ACEOF
20671 cat confdefs.h >>conftest.$ac_ext
20672 cat >>conftest.$ac_ext <<_ACEOF
20673 /* end confdefs.h.  */
20674
20675 /* Override any GCC internal prototype to avoid an error.
20676    Use char because int might match the return type of a GCC
20677    builtin and then its argument prototype would still apply.  */
20678 #ifdef __cplusplus
20679 extern "C"
20680 #endif
20681 char opendir ();
20682 int
20683 main ()
20684 {
20685 return opendir ();
20686   ;
20687   return 0;
20688 }
20689 _ACEOF
20690 for ac_lib in '' dir; do
20691   if test -z "$ac_lib"; then
20692     ac_res="none required"
20693   else
20694     ac_res=-l$ac_lib
20695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20696   fi
20697   rm -f conftest.$ac_objext conftest$ac_exeext
20698 if { (ac_try="$ac_link"
20699 case "(($ac_try" in
20700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701   *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704   (eval "$ac_link") 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
20708   cat conftest.err >&5
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } && {
20711          test -z "$ac_c_werror_flag" ||
20712          test ! -s conftest.err
20713        } && test -s conftest$ac_exeext &&
20714        $as_test_x conftest$ac_exeext; then
20715   ac_cv_search_opendir=$ac_res
20716 else
20717   echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720
20721 fi
20722
20723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20724       conftest$ac_exeext
20725   if test "${ac_cv_search_opendir+set}" = set; then
20726   break
20727 fi
20728 done
20729 if test "${ac_cv_search_opendir+set}" = set; then
20730   :
20731 else
20732   ac_cv_search_opendir=no
20733 fi
20734 rm conftest.$ac_ext
20735 LIBS=$ac_func_search_save_LIBS
20736 fi
20737 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20738 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20739 ac_res=$ac_cv_search_opendir
20740 if test "$ac_res" != no; then
20741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20742
20743 fi
20744
20745 else
20746   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20748 if test "${ac_cv_search_opendir+set}" = set; then
20749   echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751   ac_func_search_save_LIBS=$LIBS
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758
20759 /* Override any GCC internal prototype to avoid an error.
20760    Use char because int might match the return type of a GCC
20761    builtin and then its argument prototype would still apply.  */
20762 #ifdef __cplusplus
20763 extern "C"
20764 #endif
20765 char opendir ();
20766 int
20767 main ()
20768 {
20769 return opendir ();
20770   ;
20771   return 0;
20772 }
20773 _ACEOF
20774 for ac_lib in '' x; do
20775   if test -z "$ac_lib"; then
20776     ac_res="none required"
20777   else
20778     ac_res=-l$ac_lib
20779     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20780   fi
20781   rm -f conftest.$ac_objext conftest$ac_exeext
20782 if { (ac_try="$ac_link"
20783 case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_link") 2>conftest.er1
20789   ac_status=$?
20790   grep -v '^ *+' conftest.er1 >conftest.err
20791   rm -f conftest.er1
20792   cat conftest.err >&5
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); } && {
20795          test -z "$ac_c_werror_flag" ||
20796          test ! -s conftest.err
20797        } && test -s conftest$ac_exeext &&
20798        $as_test_x conftest$ac_exeext; then
20799   ac_cv_search_opendir=$ac_res
20800 else
20801   echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804
20805 fi
20806
20807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20808       conftest$ac_exeext
20809   if test "${ac_cv_search_opendir+set}" = set; then
20810   break
20811 fi
20812 done
20813 if test "${ac_cv_search_opendir+set}" = set; then
20814   :
20815 else
20816   ac_cv_search_opendir=no
20817 fi
20818 rm conftest.$ac_ext
20819 LIBS=$ac_func_search_save_LIBS
20820 fi
20821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20823 ac_res=$ac_cv_search_opendir
20824 if test "$ac_res" != no; then
20825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20826
20827 fi
20828
20829 fi
20830
20831 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20832 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20833 if test "${ac_cv_header_stat_broken+set}" = set; then
20834   echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836   cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h.  */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h.  */
20842 #include <sys/types.h>
20843 #include <sys/stat.h>
20844
20845 #if defined S_ISBLK && defined S_IFDIR
20846 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20847 #endif
20848
20849 #if defined S_ISBLK && defined S_IFCHR
20850 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20851 #endif
20852
20853 #if defined S_ISLNK && defined S_IFREG
20854 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20855 #endif
20856
20857 #if defined S_ISSOCK && defined S_IFREG
20858 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20859 #endif
20860
20861 _ACEOF
20862 rm -f conftest.$ac_objext
20863 if { (ac_try="$ac_compile"
20864 case "(($ac_try" in
20865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866   *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869   (eval "$ac_compile") 2>conftest.er1
20870   ac_status=$?
20871   grep -v '^ *+' conftest.er1 >conftest.err
20872   rm -f conftest.er1
20873   cat conftest.err >&5
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); } && {
20876          test -z "$ac_c_werror_flag" ||
20877          test ! -s conftest.err
20878        } && test -s conftest.$ac_objext; then
20879   ac_cv_header_stat_broken=no
20880 else
20881   echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884         ac_cv_header_stat_broken=yes
20885 fi
20886
20887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20888 fi
20889 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20890 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20891 if test $ac_cv_header_stat_broken = yes; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define STAT_MACROS_BROKEN 1
20895 _ACEOF
20896
20897 fi
20898
20899 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20900 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20901 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904   cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910 #include <sys/types.h>
20911 #include <sys/wait.h>
20912 #ifndef WEXITSTATUS
20913 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20914 #endif
20915 #ifndef WIFEXITED
20916 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20917 #endif
20918
20919 int
20920 main ()
20921 {
20922   int s;
20923   wait (&s);
20924   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933   *) ac_try_echo=$ac_try;;
20934 esac
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936   (eval "$ac_compile") 2>conftest.er1
20937   ac_status=$?
20938   grep -v '^ *+' conftest.er1 >conftest.err
20939   rm -f conftest.er1
20940   cat conftest.err >&5
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } && {
20943          test -z "$ac_c_werror_flag" ||
20944          test ! -s conftest.err
20945        } && test -s conftest.$ac_objext; then
20946   ac_cv_header_sys_wait_h=yes
20947 else
20948   echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951         ac_cv_header_sys_wait_h=no
20952 fi
20953
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20955 fi
20956 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20957 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20958 if test $ac_cv_header_sys_wait_h = yes; then
20959
20960 cat >>confdefs.h <<\_ACEOF
20961 #define HAVE_SYS_WAIT_H 1
20962 _ACEOF
20963
20964 fi
20965
20966 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20967 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20968 if test "${ac_cv_header_time+set}" = set; then
20969   echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971   cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h.  */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h.  */
20977 #include <sys/types.h>
20978 #include <sys/time.h>
20979 #include <time.h>
20980
20981 int
20982 main ()
20983 {
20984 if ((struct tm *) 0)
20985 return 0;
20986   ;
20987   return 0;
20988 }
20989 _ACEOF
20990 rm -f conftest.$ac_objext
20991 if { (ac_try="$ac_compile"
20992 case "(($ac_try" in
20993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994   *) ac_try_echo=$ac_try;;
20995 esac
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997   (eval "$ac_compile") 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } && {
21004          test -z "$ac_c_werror_flag" ||
21005          test ! -s conftest.err
21006        } && test -s conftest.$ac_objext; then
21007   ac_cv_header_time=yes
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012         ac_cv_header_time=no
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 fi
21017 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21018 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21019 if test $ac_cv_header_time = yes; then
21020
21021 cat >>confdefs.h <<\_ACEOF
21022 #define TIME_WITH_SYS_TIME 1
21023 _ACEOF
21024
21025 fi
21026
21027 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21028 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21029 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21030   echo $ECHO_N "(cached) $ECHO_C" >&6
21031 else
21032   cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038 $ac_includes_default
21039 int
21040 main ()
21041 {
21042 static struct stat ac_aggr;
21043 if (ac_aggr.st_blksize)
21044 return 0;
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 rm -f conftest.$ac_objext
21050 if { (ac_try="$ac_compile"
21051 case "(($ac_try" in
21052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053   *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056   (eval "$ac_compile") 2>conftest.er1
21057   ac_status=$?
21058   grep -v '^ *+' conftest.er1 >conftest.err
21059   rm -f conftest.er1
21060   cat conftest.err >&5
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); } && {
21063          test -z "$ac_c_werror_flag" ||
21064          test ! -s conftest.err
21065        } && test -s conftest.$ac_objext; then
21066   ac_cv_member_struct_stat_st_blksize=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071         cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 $ac_includes_default
21078 int
21079 main ()
21080 {
21081 static struct stat ac_aggr;
21082 if (sizeof ac_aggr.st_blksize)
21083 return 0;
21084   ;
21085   return 0;
21086 }
21087 _ACEOF
21088 rm -f conftest.$ac_objext
21089 if { (ac_try="$ac_compile"
21090 case "(($ac_try" in
21091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092   *) ac_try_echo=$ac_try;;
21093 esac
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095   (eval "$ac_compile") 2>conftest.er1
21096   ac_status=$?
21097   grep -v '^ *+' conftest.er1 >conftest.err
21098   rm -f conftest.er1
21099   cat conftest.err >&5
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } && {
21102          test -z "$ac_c_werror_flag" ||
21103          test ! -s conftest.err
21104        } && test -s conftest.$ac_objext; then
21105   ac_cv_member_struct_stat_st_blksize=yes
21106 else
21107   echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110         ac_cv_member_struct_stat_st_blksize=no
21111 fi
21112
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 fi
21115
21116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 fi
21118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21119 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21120 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21121
21122 cat >>confdefs.h <<_ACEOF
21123 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21124 _ACEOF
21125
21126
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_ST_BLKSIZE 1
21129 _ACEOF
21130
21131 fi
21132
21133
21134 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21135 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21136 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 else
21139   cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145 $ac_includes_default
21146 int
21147 main ()
21148 {
21149 static struct stat ac_aggr;
21150 if (ac_aggr.st_blocks)
21151 return 0;
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext
21157 if { (ac_try="$ac_compile"
21158 case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_compile") 2>conftest.er1
21164   ac_status=$?
21165   grep -v '^ *+' conftest.er1 >conftest.err
21166   rm -f conftest.er1
21167   cat conftest.err >&5
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } && {
21170          test -z "$ac_c_werror_flag" ||
21171          test ! -s conftest.err
21172        } && test -s conftest.$ac_objext; then
21173   ac_cv_member_struct_stat_st_blocks=yes
21174 else
21175   echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21177
21178         cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184 $ac_includes_default
21185 int
21186 main ()
21187 {
21188 static struct stat ac_aggr;
21189 if (sizeof ac_aggr.st_blocks)
21190 return 0;
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (ac_try="$ac_compile"
21197 case "(($ac_try" in
21198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199   *) ac_try_echo=$ac_try;;
21200 esac
21201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21202   (eval "$ac_compile") 2>conftest.er1
21203   ac_status=$?
21204   grep -v '^ *+' conftest.er1 >conftest.err
21205   rm -f conftest.er1
21206   cat conftest.err >&5
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); } && {
21209          test -z "$ac_c_werror_flag" ||
21210          test ! -s conftest.err
21211        } && test -s conftest.$ac_objext; then
21212   ac_cv_member_struct_stat_st_blocks=yes
21213 else
21214   echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21216
21217         ac_cv_member_struct_stat_st_blocks=no
21218 fi
21219
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 fi
21222
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 fi
21225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21226 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21227 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21228
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21231 _ACEOF
21232
21233
21234 cat >>confdefs.h <<\_ACEOF
21235 #define HAVE_ST_BLOCKS 1
21236 _ACEOF
21237
21238 else
21239   case " $LIBOBJS " in
21240   *" fileblocks.$ac_objext "* ) ;;
21241   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21242  ;;
21243 esac
21244
21245 fi
21246
21247
21248 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21249 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21250 if test "${ac_cv_struct_tm+set}" = set; then
21251   echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253   cat >conftest.$ac_ext <<_ACEOF
21254 /* confdefs.h.  */
21255 _ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h.  */
21259 #include <sys/types.h>
21260 #include <time.h>
21261
21262 int
21263 main ()
21264 {
21265 struct tm tm;
21266                                      int *p = &tm.tm_sec;
21267                                      return !p;
21268   ;
21269   return 0;
21270 }
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (ac_try="$ac_compile"
21274 case "(($ac_try" in
21275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276   *) ac_try_echo=$ac_try;;
21277 esac
21278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279   (eval "$ac_compile") 2>conftest.er1
21280   ac_status=$?
21281   grep -v '^ *+' conftest.er1 >conftest.err
21282   rm -f conftest.er1
21283   cat conftest.err >&5
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); } && {
21286          test -z "$ac_c_werror_flag" ||
21287          test ! -s conftest.err
21288        } && test -s conftest.$ac_objext; then
21289   ac_cv_struct_tm=time.h
21290 else
21291   echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294         ac_cv_struct_tm=sys/time.h
21295 fi
21296
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 fi
21299 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21300 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21301 if test $ac_cv_struct_tm = sys/time.h; then
21302
21303 cat >>confdefs.h <<\_ACEOF
21304 #define TM_IN_SYS_TIME 1
21305 _ACEOF
21306
21307 fi
21308
21309 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21310 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21311 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21312   echo $ECHO_N "(cached) $ECHO_C" >&6
21313 else
21314   cat >conftest.$ac_ext <<_ACEOF
21315 /* confdefs.h.  */
21316 _ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h.  */
21320 #include <sys/types.h>
21321 #include <$ac_cv_struct_tm>
21322
21323
21324 int
21325 main ()
21326 {
21327 static struct tm ac_aggr;
21328 if (ac_aggr.tm_zone)
21329 return 0;
21330   ;
21331   return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338   *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341   (eval "$ac_compile") 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } && {
21348          test -z "$ac_c_werror_flag" ||
21349          test ! -s conftest.err
21350        } && test -s conftest.$ac_objext; then
21351   ac_cv_member_struct_tm_tm_zone=yes
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 #include <sys/types.h>
21363 #include <$ac_cv_struct_tm>
21364
21365
21366 int
21367 main ()
21368 {
21369 static struct tm ac_aggr;
21370 if (sizeof ac_aggr.tm_zone)
21371 return 0;
21372   ;
21373   return 0;
21374 }
21375 _ACEOF
21376 rm -f conftest.$ac_objext
21377 if { (ac_try="$ac_compile"
21378 case "(($ac_try" in
21379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380   *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383   (eval "$ac_compile") 2>conftest.er1
21384   ac_status=$?
21385   grep -v '^ *+' conftest.er1 >conftest.err
21386   rm -f conftest.er1
21387   cat conftest.err >&5
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); } && {
21390          test -z "$ac_c_werror_flag" ||
21391          test ! -s conftest.err
21392        } && test -s conftest.$ac_objext; then
21393   ac_cv_member_struct_tm_tm_zone=yes
21394 else
21395   echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398         ac_cv_member_struct_tm_tm_zone=no
21399 fi
21400
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 fi
21403
21404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21405 fi
21406 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21407 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21408 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21409
21410 cat >>confdefs.h <<_ACEOF
21411 #define HAVE_STRUCT_TM_TM_ZONE 1
21412 _ACEOF
21413
21414
21415 fi
21416
21417 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21418
21419 cat >>confdefs.h <<\_ACEOF
21420 #define HAVE_TM_ZONE 1
21421 _ACEOF
21422
21423 else
21424   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21425 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21426 if test "${ac_cv_have_decl_tzname+set}" = set; then
21427   echo $ECHO_N "(cached) $ECHO_C" >&6
21428 else
21429   cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 #include <time.h>
21436
21437 int
21438 main ()
21439 {
21440 #ifndef tzname
21441   (void) tzname;
21442 #endif
21443
21444   ;
21445   return 0;
21446 }
21447 _ACEOF
21448 rm -f conftest.$ac_objext
21449 if { (ac_try="$ac_compile"
21450 case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_compile") 2>conftest.er1
21456   ac_status=$?
21457   grep -v '^ *+' conftest.er1 >conftest.err
21458   rm -f conftest.er1
21459   cat conftest.err >&5
21460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461   (exit $ac_status); } && {
21462          test -z "$ac_c_werror_flag" ||
21463          test ! -s conftest.err
21464        } && test -s conftest.$ac_objext; then
21465   ac_cv_have_decl_tzname=yes
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470         ac_cv_have_decl_tzname=no
21471 fi
21472
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 fi
21475 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21476 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21477 if test $ac_cv_have_decl_tzname = yes; then
21478
21479 cat >>confdefs.h <<_ACEOF
21480 #define HAVE_DECL_TZNAME 1
21481 _ACEOF
21482
21483
21484 else
21485   cat >>confdefs.h <<_ACEOF
21486 #define HAVE_DECL_TZNAME 0
21487 _ACEOF
21488
21489
21490 fi
21491
21492
21493   { echo "$as_me:$LINENO: checking for tzname" >&5
21494 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21495 if test "${ac_cv_var_tzname+set}" = set; then
21496   echo $ECHO_N "(cached) $ECHO_C" >&6
21497 else
21498   cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h.  */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h.  */
21504 #include <time.h>
21505 #if !HAVE_DECL_TZNAME
21506 extern char *tzname[];
21507 #endif
21508
21509 int
21510 main ()
21511 {
21512 return tzname[0][0];
21513   ;
21514   return 0;
21515 }
21516 _ACEOF
21517 rm -f conftest.$ac_objext conftest$ac_exeext
21518 if { (ac_try="$ac_link"
21519 case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_link") 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } && {
21531          test -z "$ac_c_werror_flag" ||
21532          test ! -s conftest.err
21533        } && test -s conftest$ac_exeext &&
21534        $as_test_x conftest$ac_exeext; then
21535   ac_cv_var_tzname=yes
21536 else
21537   echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21539
21540         ac_cv_var_tzname=no
21541 fi
21542
21543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21544       conftest$ac_exeext conftest.$ac_ext
21545 fi
21546 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21547 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21548   if test $ac_cv_var_tzname = yes; then
21549
21550 cat >>confdefs.h <<\_ACEOF
21551 #define HAVE_TZNAME 1
21552 _ACEOF
21553
21554   fi
21555 fi
21556
21557
21558 { echo "$as_me:$LINENO: checking for utime.h" >&5
21559 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21560 if test "${ba_cv_header_utime_h+set}" = set; then
21561   echo $ECHO_N "(cached) $ECHO_C" >&6
21562 else
21563   cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569
21570 #include <sys/types.h>
21571 #include <utime.h>
21572 int
21573 main ()
21574 {
21575 struct utimbuf foo
21576   ;
21577   return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584   *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587   (eval "$ac_compile") 2>conftest.er1
21588   ac_status=$?
21589   grep -v '^ *+' conftest.er1 >conftest.err
21590   rm -f conftest.er1
21591   cat conftest.err >&5
21592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593   (exit $ac_status); } && {
21594          test -z "$ac_c_werror_flag" ||
21595          test ! -s conftest.err
21596        } && test -s conftest.$ac_objext; then
21597   ba_cv_header_utime_h=yes
21598 else
21599   echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602         ba_cv_header_utime_h=no
21603 fi
21604
21605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 fi
21607 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21608 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21609 test $ba_cv_header_utime_h = yes &&
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_UTIME_H 1
21612 _ACEOF
21613
21614
21615 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21616 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21617 if test "${ba_cv_header_socklen_t+set}" = set; then
21618   echo $ECHO_N "(cached) $ECHO_C" >&6
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626
21627 #include <sys/types.h>
21628 #include <sys/socket.h>
21629 int
21630 main ()
21631 {
21632 socklen_t x
21633   ;
21634   return 0;
21635 }
21636 _ACEOF
21637 rm -f conftest.$ac_objext
21638 if { (ac_try="$ac_compile"
21639 case "(($ac_try" in
21640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641   *) ac_try_echo=$ac_try;;
21642 esac
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644   (eval "$ac_compile") 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } && {
21651          test -z "$ac_c_werror_flag" ||
21652          test ! -s conftest.err
21653        } && test -s conftest.$ac_objext; then
21654   ba_cv_header_socklen_t=yes
21655 else
21656   echo "$as_me: failed program was:" >&5
21657 sed 's/^/| /' conftest.$ac_ext >&5
21658
21659         ba_cv_header_socklen_t=no
21660 fi
21661
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663 fi
21664 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21665 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21666 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_SOCKLEN_T 1
21668 _ACEOF
21669
21670
21671 { echo "$as_me:$LINENO: checking for bigendian" >&5
21672 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21673 if test "${ba_cv_bigendian+set}" = set; then
21674   echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676   if test "$cross_compiling" = yes; then
21677   ba_cv_bigendian=no
21678 else
21679   cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21686 _ACEOF
21687 rm -f conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691   *) ac_try_echo=$ac_try;;
21692 esac
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694   (eval "$ac_link") 2>&5
21695   ac_status=$?
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21698   { (case "(($ac_try" in
21699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700   *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703   (eval "$ac_try") 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); }; }; then
21707   ba_cv_bigendian=yes
21708 else
21709   echo "$as_me: program exited with status $ac_status" >&5
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ( exit $ac_status )
21714 ba_cv_bigendian=no
21715 fi
21716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717 fi
21718
21719
21720 fi
21721 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21722 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21723 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21724 #define HAVE_BIGENDIAN 1
21725 _ACEOF
21726
21727
21728 ac_ext=cpp
21729 ac_cpp='$CXXCPP $CPPFLAGS'
21730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21733
21734
21735 { echo "$as_me:$LINENO: checking for typeof" >&5
21736 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21737 if test "${ba_cv_have_typeof+set}" = set; then
21738   echo $ECHO_N "(cached) $ECHO_C" >&6
21739 else
21740   if test "$cross_compiling" = yes; then
21741   ba_cv_have_typeof=no
21742 else
21743   cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 main(){char *a = 0; a = (typeof a)a;}
21750 _ACEOF
21751 rm -f conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_link") 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21762   { (case "(($ac_try" in
21763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764   *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767   (eval "$ac_try") 2>&5
21768   ac_status=$?
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); }; }; then
21771   ba_cv_have_typeof=yes
21772 else
21773   echo "$as_me: program exited with status $ac_status" >&5
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 ( exit $ac_status )
21778 ba_cv_have_typeof=no
21779 fi
21780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21781 fi
21782
21783
21784 fi
21785 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21786 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21787 test $ba_cv_have_typeof = yes &&
21788 cat >>confdefs.h <<\_ACEOF
21789 #define HAVE_TYPEOF 1
21790 _ACEOF
21791
21792 ac_ext=c
21793 ac_cpp='$CPP $CPPFLAGS'
21794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21797
21798
21799 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21801 if test "${ac_cv_c_const+set}" = set; then
21802   echo $ECHO_N "(cached) $ECHO_C" >&6
21803 else
21804   cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h.  */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h.  */
21810
21811 int
21812 main ()
21813 {
21814 /* FIXME: Include the comments suggested by Paul. */
21815 #ifndef __cplusplus
21816   /* Ultrix mips cc rejects this.  */
21817   typedef int charset[2];
21818   const charset cs;
21819   /* SunOS 4.1.1 cc rejects this.  */
21820   char const *const *pcpcc;
21821   char **ppc;
21822   /* NEC SVR4.0.2 mips cc rejects this.  */
21823   struct point {int x, y;};
21824   static struct point const zero = {0,0};
21825   /* AIX XL C 1.02.0.0 rejects this.
21826      It does not let you subtract one const X* pointer from another in
21827      an arm of an if-expression whose if-part is not a constant
21828      expression */
21829   const char *g = "string";
21830   pcpcc = &g + (g ? g-g : 0);
21831   /* HPUX 7.0 cc rejects these. */
21832   ++pcpcc;
21833   ppc = (char**) pcpcc;
21834   pcpcc = (char const *const *) ppc;
21835   { /* SCO 3.2v4 cc rejects this.  */
21836     char *t;
21837     char const *s = 0 ? (char *) 0 : (char const *) 0;
21838
21839     *t++ = 0;
21840     if (s) return 0;
21841   }
21842   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21843     int x[] = {25, 17};
21844     const int *foo = &x[0];
21845     ++foo;
21846   }
21847   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21848     typedef const int *iptr;
21849     iptr p = 0;
21850     ++p;
21851   }
21852   { /* AIX XL C 1.02.0.0 rejects this saying
21853        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21854     struct s { int j; const int *ap[3]; };
21855     struct s *b; b->j = 5;
21856   }
21857   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21858     const int foo = 10;
21859     if (!foo) return 0;
21860   }
21861   return !cs[0] && !zero.x;
21862 #endif
21863
21864   ;
21865   return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest.$ac_objext
21869 if { (ac_try="$ac_compile"
21870 case "(($ac_try" in
21871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872   *) ac_try_echo=$ac_try;;
21873 esac
21874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875   (eval "$ac_compile") 2>conftest.er1
21876   ac_status=$?
21877   grep -v '^ *+' conftest.er1 >conftest.err
21878   rm -f conftest.er1
21879   cat conftest.err >&5
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); } && {
21882          test -z "$ac_c_werror_flag" ||
21883          test ! -s conftest.err
21884        } && test -s conftest.$ac_objext; then
21885   ac_cv_c_const=yes
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 sed 's/^/| /' conftest.$ac_ext >&5
21889
21890         ac_cv_c_const=no
21891 fi
21892
21893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21894 fi
21895 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21896 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21897 if test $ac_cv_c_const = no; then
21898
21899 cat >>confdefs.h <<\_ACEOF
21900 #define const
21901 _ACEOF
21902
21903 fi
21904
21905
21906
21907 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21908 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21909 fstype=no
21910 # The order of these tests is important.
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 #include <sys/statvfs.h>
21918 #include <sys/fstyp.h>
21919 _ACEOF
21920 if { (ac_try="$ac_cpp conftest.$ac_ext"
21921 case "(($ac_try" in
21922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923   *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21927   ac_status=$?
21928   grep -v '^ *+' conftest.er1 >conftest.err
21929   rm -f conftest.er1
21930   cat conftest.err >&5
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); } >/dev/null && {
21933          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21934          test ! -s conftest.err
21935        }; then
21936   cat >>confdefs.h <<\_ACEOF
21937 #define FSTYPE_STATVFS 1
21938 _ACEOF
21939  fstype=SVR4
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944
21945 fi
21946
21947 rm -f conftest.err conftest.$ac_ext
21948 if test $fstype = no; then
21949 cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h.  */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h.  */
21955 #include <sys/statfs.h>
21956 #include <sys/fstyp.h>
21957 _ACEOF
21958 if { (ac_try="$ac_cpp conftest.$ac_ext"
21959 case "(($ac_try" in
21960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961   *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } >/dev/null && {
21971          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21972          test ! -s conftest.err
21973        }; then
21974   cat >>confdefs.h <<\_ACEOF
21975 #define FSTYPE_USG_STATFS 1
21976 _ACEOF
21977  fstype=SVR3
21978 else
21979   echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982
21983 fi
21984
21985 rm -f conftest.err conftest.$ac_ext
21986 fi
21987 if test $fstype = no; then
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h.  */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h.  */
21994 #include <sys/statfs.h>
21995 #include <sys/vmount.h>
21996 _ACEOF
21997 if { (ac_try="$ac_cpp conftest.$ac_ext"
21998 case "(($ac_try" in
21999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000   *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22004   ac_status=$?
22005   grep -v '^ *+' conftest.er1 >conftest.err
22006   rm -f conftest.er1
22007   cat conftest.err >&5
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); } >/dev/null && {
22010          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22011          test ! -s conftest.err
22012        }; then
22013   cat >>confdefs.h <<\_ACEOF
22014 #define FSTYPE_AIX_STATFS 1
22015 _ACEOF
22016  fstype=AIX
22017 else
22018   echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021
22022 fi
22023
22024 rm -f conftest.err conftest.$ac_ext
22025 fi
22026 if test $fstype = no; then
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h.  */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h.  */
22033 #include <mntent.h>
22034 _ACEOF
22035 if { (ac_try="$ac_cpp conftest.$ac_ext"
22036 case "(($ac_try" in
22037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038   *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22042   ac_status=$?
22043   grep -v '^ *+' conftest.er1 >conftest.err
22044   rm -f conftest.er1
22045   cat conftest.err >&5
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); } >/dev/null && {
22048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22049          test ! -s conftest.err
22050        }; then
22051   cat >>confdefs.h <<\_ACEOF
22052 #define FSTYPE_MNTENT 1
22053 _ACEOF
22054  fstype=4.3BSD
22055 else
22056   echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059
22060 fi
22061
22062 rm -f conftest.err conftest.$ac_ext
22063 fi
22064 if test $fstype = no; then
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071 #include <sys/mount.h>
22072
22073 _ACEOF
22074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22075   $EGREP "f_type;" >/dev/null 2>&1; then
22076   cat >>confdefs.h <<\_ACEOF
22077 #define FSTYPE_STATFS 1
22078 _ACEOF
22079  fstype=4.4BSD/OSF1
22080 fi
22081 rm -f conftest*
22082
22083 fi
22084 if test $fstype = no; then
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h.  */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h.  */
22091 #include <sys/mount.h>
22092 #include <sys/fs_types.h>
22093 _ACEOF
22094 if { (ac_try="$ac_cpp conftest.$ac_ext"
22095 case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22101   ac_status=$?
22102   grep -v '^ *+' conftest.er1 >conftest.err
22103   rm -f conftest.er1
22104   cat conftest.err >&5
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } >/dev/null && {
22107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22108          test ! -s conftest.err
22109        }; then
22110   cat >>confdefs.h <<\_ACEOF
22111 #define FSTYPE_GETMNT 1
22112 _ACEOF
22113  fstype=Ultrix
22114 else
22115   echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118
22119 fi
22120
22121 rm -f conftest.err conftest.$ac_ext
22122 fi
22123 { echo "$as_me:$LINENO: result: $fstype" >&5
22124 echo "${ECHO_T}$fstype" >&6; }
22125
22126 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22127   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22128 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22129 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22130   echo $ECHO_N "(cached) $ECHO_C" >&6
22131 fi
22132 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22133 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22134 else
22135   # Is the header compilable?
22136 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22137 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 $ac_includes_default
22145 #include <sys/statvfs.h>
22146 _ACEOF
22147 rm -f conftest.$ac_objext
22148 if { (ac_try="$ac_compile"
22149 case "(($ac_try" in
22150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151   *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154   (eval "$ac_compile") 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } && {
22161          test -z "$ac_c_werror_flag" ||
22162          test ! -s conftest.err
22163        } && test -s conftest.$ac_objext; then
22164   ac_header_compiler=yes
22165 else
22166   echo "$as_me: failed program was:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22168
22169         ac_header_compiler=no
22170 fi
22171
22172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22174 echo "${ECHO_T}$ac_header_compiler" >&6; }
22175
22176 # Is the header present?
22177 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22178 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 #include <sys/statvfs.h>
22186 _ACEOF
22187 if { (ac_try="$ac_cpp conftest.$ac_ext"
22188 case "(($ac_try" in
22189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190   *) ac_try_echo=$ac_try;;
22191 esac
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22194   ac_status=$?
22195   grep -v '^ *+' conftest.er1 >conftest.err
22196   rm -f conftest.er1
22197   cat conftest.err >&5
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); } >/dev/null && {
22200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22201          test ! -s conftest.err
22202        }; then
22203   ac_header_preproc=yes
22204 else
22205   echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22207
22208   ac_header_preproc=no
22209 fi
22210
22211 rm -f conftest.err conftest.$ac_ext
22212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22213 echo "${ECHO_T}$ac_header_preproc" >&6; }
22214
22215 # So?  What about this header?
22216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22217   yes:no: )
22218     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22219 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22220     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22221 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22222     ac_header_preproc=yes
22223     ;;
22224   no:yes:* )
22225     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22226 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22227     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22228 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22229     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22230 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22231     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22232 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22233     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22234 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22235     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22236 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22237
22238     ;;
22239 esac
22240 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22241 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22242 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22243   echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22246 fi
22247 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22248 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22249
22250 fi
22251 if test $ac_cv_header_sys_statvfs_h = yes; then
22252
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_SYS_STATVFS_H 1
22255 _ACEOF
22256
22257 fi
22258
22259
22260
22261 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22262 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22263 if test "${ac_cv_type_signal+set}" = set; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272 #include <sys/types.h>
22273 #include <signal.h>
22274
22275 int
22276 main ()
22277 {
22278 return *(signal (0, 0)) (0) == 1;
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext
22284 if { (ac_try="$ac_compile"
22285 case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_compile") 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } && {
22297          test -z "$ac_c_werror_flag" ||
22298          test ! -s conftest.err
22299        } && test -s conftest.$ac_objext; then
22300   ac_cv_type_signal=int
22301 else
22302   echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305         ac_cv_type_signal=void
22306 fi
22307
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309 fi
22310 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22311 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22312
22313 cat >>confdefs.h <<_ACEOF
22314 #define RETSIGTYPE $ac_cv_type_signal
22315 _ACEOF
22316
22317
22318
22319   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22320 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22321   if test "${bash_cv_signal_vintage+set}" = set; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324
22325     cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331 #include <signal.h>
22332 int
22333 main ()
22334 {
22335
22336       sigset_t ss;
22337       struct sigaction sa;
22338       sigemptyset(&ss); sigsuspend(&ss);
22339       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22340       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22341
22342   ;
22343   return 0;
22344 }
22345 _ACEOF
22346 rm -f conftest.$ac_objext conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350   *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353   (eval "$ac_link") 2>conftest.er1
22354   ac_status=$?
22355   grep -v '^ *+' conftest.er1 >conftest.err
22356   rm -f conftest.er1
22357   cat conftest.err >&5
22358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359   (exit $ac_status); } && {
22360          test -z "$ac_c_werror_flag" ||
22361          test ! -s conftest.err
22362        } && test -s conftest$ac_exeext &&
22363        $as_test_x conftest$ac_exeext; then
22364   bash_cv_signal_vintage="posix"
22365 else
22366   echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369
22370       cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h.  */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h.  */
22376 #include <signal.h>
22377 int
22378 main ()
22379 {
22380
22381           int mask = sigmask(SIGINT);
22382           sigsetmask(mask); sigblock(mask); sigpause(mask);
22383
22384   ;
22385   return 0;
22386 }
22387 _ACEOF
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392   *) ac_try_echo=$ac_try;;
22393 esac
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395   (eval "$ac_link") 2>conftest.er1
22396   ac_status=$?
22397   grep -v '^ *+' conftest.er1 >conftest.err
22398   rm -f conftest.er1
22399   cat conftest.err >&5
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); } && {
22402          test -z "$ac_c_werror_flag" ||
22403          test ! -s conftest.err
22404        } && test -s conftest$ac_exeext &&
22405        $as_test_x conftest$ac_exeext; then
22406   bash_cv_signal_vintage="4.2bsd"
22407 else
22408   echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411
22412         cat >conftest.$ac_ext <<_ACEOF
22413 /* confdefs.h.  */
22414 _ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h.  */
22418
22419           #include <signal.h>
22420           RETSIGTYPE foo() { }
22421 int
22422 main ()
22423 {
22424
22425                   int mask = sigmask(SIGINT);
22426                   sigset(SIGINT, foo); sigrelse(SIGINT);
22427                   sighold(SIGINT); sigpause(SIGINT);
22428
22429   ;
22430   return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440   (eval "$ac_link") 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } && {
22447          test -z "$ac_c_werror_flag" ||
22448          test ! -s conftest.err
22449        } && test -s conftest$ac_exeext &&
22450        $as_test_x conftest$ac_exeext; then
22451   bash_cv_signal_vintage="svr3"
22452 else
22453   echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456         bash_cv_signal_vintage="v7"
22457
22458 fi
22459
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461       conftest$ac_exeext conftest.$ac_ext
22462
22463 fi
22464
22465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22466       conftest$ac_exeext conftest.$ac_ext
22467
22468 fi
22469
22470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22471       conftest$ac_exeext conftest.$ac_ext
22472
22473 fi
22474
22475   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22476 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22477   if test "$bash_cv_signal_vintage" = "posix"; then
22478     cat >>confdefs.h <<\_ACEOF
22479 #define HAVE_POSIX_SIGNALS 1
22480 _ACEOF
22481
22482   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22483     cat >>confdefs.h <<\_ACEOF
22484 #define HAVE_BSD_SIGNALS 1
22485 _ACEOF
22486
22487   elif test "$bash_cv_signal_vintage" = "svr3"; then
22488     cat >>confdefs.h <<\_ACEOF
22489 #define HAVE_USG_SIGHOLD 1
22490 _ACEOF
22491
22492   fi
22493
22494 { echo "$as_me:$LINENO: checking for mode_t" >&5
22495 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22496 if test "${ac_cv_type_mode_t+set}" = set; then
22497   echo $ECHO_N "(cached) $ECHO_C" >&6
22498 else
22499   cat >conftest.$ac_ext <<_ACEOF
22500 /* confdefs.h.  */
22501 _ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h.  */
22505 $ac_includes_default
22506 typedef mode_t ac__type_new_;
22507 int
22508 main ()
22509 {
22510 if ((ac__type_new_ *) 0)
22511   return 0;
22512 if (sizeof (ac__type_new_))
22513   return 0;
22514   ;
22515   return 0;
22516 }
22517 _ACEOF
22518 rm -f conftest.$ac_objext
22519 if { (ac_try="$ac_compile"
22520 case "(($ac_try" in
22521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522   *) ac_try_echo=$ac_try;;
22523 esac
22524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22525   (eval "$ac_compile") 2>conftest.er1
22526   ac_status=$?
22527   grep -v '^ *+' conftest.er1 >conftest.err
22528   rm -f conftest.er1
22529   cat conftest.err >&5
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); } && {
22532          test -z "$ac_c_werror_flag" ||
22533          test ! -s conftest.err
22534        } && test -s conftest.$ac_objext; then
22535   ac_cv_type_mode_t=yes
22536 else
22537   echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22539
22540         ac_cv_type_mode_t=no
22541 fi
22542
22543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22544 fi
22545 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22546 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22547 if test $ac_cv_type_mode_t = yes; then
22548   :
22549 else
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define mode_t int
22553 _ACEOF
22554
22555 fi
22556
22557 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22558 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22559 if test "${ac_cv_type_uid_t+set}" = set; then
22560   echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562   cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568 #include <sys/types.h>
22569
22570 _ACEOF
22571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22572   $EGREP "uid_t" >/dev/null 2>&1; then
22573   ac_cv_type_uid_t=yes
22574 else
22575   ac_cv_type_uid_t=no
22576 fi
22577 rm -f conftest*
22578
22579 fi
22580 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22581 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22582 if test $ac_cv_type_uid_t = no; then
22583
22584 cat >>confdefs.h <<\_ACEOF
22585 #define uid_t int
22586 _ACEOF
22587
22588
22589 cat >>confdefs.h <<\_ACEOF
22590 #define gid_t int
22591 _ACEOF
22592
22593 fi
22594
22595 { echo "$as_me:$LINENO: checking for size_t" >&5
22596 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22597 if test "${ac_cv_type_size_t+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600   cat >conftest.$ac_ext <<_ACEOF
22601 /* confdefs.h.  */
22602 _ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h.  */
22606 $ac_includes_default
22607 typedef size_t ac__type_new_;
22608 int
22609 main ()
22610 {
22611 if ((ac__type_new_ *) 0)
22612   return 0;
22613 if (sizeof (ac__type_new_))
22614   return 0;
22615   ;
22616   return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623   *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626   (eval "$ac_compile") 2>conftest.er1
22627   ac_status=$?
22628   grep -v '^ *+' conftest.er1 >conftest.err
22629   rm -f conftest.er1
22630   cat conftest.err >&5
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); } && {
22633          test -z "$ac_c_werror_flag" ||
22634          test ! -s conftest.err
22635        } && test -s conftest.$ac_objext; then
22636   ac_cv_type_size_t=yes
22637 else
22638   echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641         ac_cv_type_size_t=no
22642 fi
22643
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 fi
22646 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22647 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22648 if test $ac_cv_type_size_t = yes; then
22649   :
22650 else
22651
22652 cat >>confdefs.h <<_ACEOF
22653 #define size_t unsigned int
22654 _ACEOF
22655
22656 fi
22657
22658 { echo "$as_me:$LINENO: checking for pid_t" >&5
22659 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22660 if test "${ac_cv_type_pid_t+set}" = set; then
22661   echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663   cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669 $ac_includes_default
22670 typedef pid_t ac__type_new_;
22671 int
22672 main ()
22673 {
22674 if ((ac__type_new_ *) 0)
22675   return 0;
22676 if (sizeof (ac__type_new_))
22677   return 0;
22678   ;
22679   return 0;
22680 }
22681 _ACEOF
22682 rm -f conftest.$ac_objext
22683 if { (ac_try="$ac_compile"
22684 case "(($ac_try" in
22685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686   *) ac_try_echo=$ac_try;;
22687 esac
22688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22689   (eval "$ac_compile") 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } && {
22696          test -z "$ac_c_werror_flag" ||
22697          test ! -s conftest.err
22698        } && test -s conftest.$ac_objext; then
22699   ac_cv_type_pid_t=yes
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704         ac_cv_type_pid_t=no
22705 fi
22706
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 fi
22709 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22710 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22711 if test $ac_cv_type_pid_t = yes; then
22712   :
22713 else
22714
22715 cat >>confdefs.h <<_ACEOF
22716 #define pid_t int
22717 _ACEOF
22718
22719 fi
22720
22721 { echo "$as_me:$LINENO: checking for off_t" >&5
22722 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22723 if test "${ac_cv_type_off_t+set}" = set; then
22724   echo $ECHO_N "(cached) $ECHO_C" >&6
22725 else
22726   cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h.  */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h.  */
22732 $ac_includes_default
22733 typedef off_t ac__type_new_;
22734 int
22735 main ()
22736 {
22737 if ((ac__type_new_ *) 0)
22738   return 0;
22739 if (sizeof (ac__type_new_))
22740   return 0;
22741   ;
22742   return 0;
22743 }
22744 _ACEOF
22745 rm -f conftest.$ac_objext
22746 if { (ac_try="$ac_compile"
22747 case "(($ac_try" in
22748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749   *) ac_try_echo=$ac_try;;
22750 esac
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752   (eval "$ac_compile") 2>conftest.er1
22753   ac_status=$?
22754   grep -v '^ *+' conftest.er1 >conftest.err
22755   rm -f conftest.er1
22756   cat conftest.err >&5
22757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758   (exit $ac_status); } && {
22759          test -z "$ac_c_werror_flag" ||
22760          test ! -s conftest.err
22761        } && test -s conftest.$ac_objext; then
22762   ac_cv_type_off_t=yes
22763 else
22764   echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767         ac_cv_type_off_t=no
22768 fi
22769
22770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 fi
22772 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22773 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22774 if test $ac_cv_type_off_t = yes; then
22775   :
22776 else
22777
22778 cat >>confdefs.h <<_ACEOF
22779 #define off_t long int
22780 _ACEOF
22781
22782 fi
22783
22784 { echo "$as_me:$LINENO: checking for ino_t" >&5
22785 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22786 if test "${ac_cv_type_ino_t+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   cat >conftest.$ac_ext <<_ACEOF
22790 /* confdefs.h.  */
22791 _ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h.  */
22795 $ac_includes_default
22796 typedef ino_t ac__type_new_;
22797 int
22798 main ()
22799 {
22800 if ((ac__type_new_ *) 0)
22801   return 0;
22802 if (sizeof (ac__type_new_))
22803   return 0;
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812   *) ac_try_echo=$ac_try;;
22813 esac
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815   (eval "$ac_compile") 2>conftest.er1
22816   ac_status=$?
22817   grep -v '^ *+' conftest.er1 >conftest.err
22818   rm -f conftest.er1
22819   cat conftest.err >&5
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); } && {
22822          test -z "$ac_c_werror_flag" ||
22823          test ! -s conftest.err
22824        } && test -s conftest.$ac_objext; then
22825   ac_cv_type_ino_t=yes
22826 else
22827   echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830         ac_cv_type_ino_t=no
22831 fi
22832
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834 fi
22835 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22836 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22837 if test $ac_cv_type_ino_t = yes; then
22838   :
22839 else
22840
22841 cat >>confdefs.h <<_ACEOF
22842 #define ino_t unsigned long
22843 _ACEOF
22844
22845 fi
22846
22847 { echo "$as_me:$LINENO: checking for dev_t" >&5
22848 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22849 if test "${ac_cv_type_dev_t+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852   cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858 $ac_includes_default
22859 typedef dev_t ac__type_new_;
22860 int
22861 main ()
22862 {
22863 if ((ac__type_new_ *) 0)
22864   return 0;
22865 if (sizeof (ac__type_new_))
22866   return 0;
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875   *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878   (eval "$ac_compile") 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } && {
22885          test -z "$ac_c_werror_flag" ||
22886          test ! -s conftest.err
22887        } && test -s conftest.$ac_objext; then
22888   ac_cv_type_dev_t=yes
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893         ac_cv_type_dev_t=no
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 fi
22898 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22899 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22900 if test $ac_cv_type_dev_t = yes; then
22901   :
22902 else
22903
22904 cat >>confdefs.h <<_ACEOF
22905 #define dev_t unsigned long
22906 _ACEOF
22907
22908 fi
22909
22910 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22911 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22912 if test "${ac_cv_type_daddr_t+set}" = set; then
22913   echo $ECHO_N "(cached) $ECHO_C" >&6
22914 else
22915   cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h.  */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h.  */
22921 $ac_includes_default
22922 typedef daddr_t ac__type_new_;
22923 int
22924 main ()
22925 {
22926 if ((ac__type_new_ *) 0)
22927   return 0;
22928 if (sizeof (ac__type_new_))
22929   return 0;
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest.$ac_objext
22935 if { (ac_try="$ac_compile"
22936 case "(($ac_try" in
22937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938   *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941   (eval "$ac_compile") 2>conftest.er1
22942   ac_status=$?
22943   grep -v '^ *+' conftest.er1 >conftest.err
22944   rm -f conftest.er1
22945   cat conftest.err >&5
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); } && {
22948          test -z "$ac_c_werror_flag" ||
22949          test ! -s conftest.err
22950        } && test -s conftest.$ac_objext; then
22951   ac_cv_type_daddr_t=yes
22952 else
22953   echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22955
22956         ac_cv_type_daddr_t=no
22957 fi
22958
22959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960 fi
22961 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22962 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22963 if test $ac_cv_type_daddr_t = yes; then
22964   :
22965 else
22966
22967 cat >>confdefs.h <<_ACEOF
22968 #define daddr_t long
22969 _ACEOF
22970
22971 fi
22972
22973 { echo "$as_me:$LINENO: checking for major_t" >&5
22974 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22975 if test "${ac_cv_type_major_t+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 $ac_includes_default
22985 typedef major_t ac__type_new_;
22986 int
22987 main ()
22988 {
22989 if ((ac__type_new_ *) 0)
22990   return 0;
22991 if (sizeof (ac__type_new_))
22992   return 0;
22993   ;
22994   return 0;
22995 }
22996 _ACEOF
22997 rm -f conftest.$ac_objext
22998 if { (ac_try="$ac_compile"
22999 case "(($ac_try" in
23000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001   *) ac_try_echo=$ac_try;;
23002 esac
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004   (eval "$ac_compile") 2>conftest.er1
23005   ac_status=$?
23006   grep -v '^ *+' conftest.er1 >conftest.err
23007   rm -f conftest.er1
23008   cat conftest.err >&5
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); } && {
23011          test -z "$ac_c_werror_flag" ||
23012          test ! -s conftest.err
23013        } && test -s conftest.$ac_objext; then
23014   ac_cv_type_major_t=yes
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019         ac_cv_type_major_t=no
23020 fi
23021
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023 fi
23024 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23025 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23026 if test $ac_cv_type_major_t = yes; then
23027   :
23028 else
23029
23030 cat >>confdefs.h <<_ACEOF
23031 #define major_t int
23032 _ACEOF
23033
23034 fi
23035
23036 { echo "$as_me:$LINENO: checking for minor_t" >&5
23037 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23038 if test "${ac_cv_type_minor_t+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041   cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h.  */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h.  */
23047 $ac_includes_default
23048 typedef minor_t ac__type_new_;
23049 int
23050 main ()
23051 {
23052 if ((ac__type_new_ *) 0)
23053   return 0;
23054 if (sizeof (ac__type_new_))
23055   return 0;
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 rm -f conftest.$ac_objext
23061 if { (ac_try="$ac_compile"
23062 case "(($ac_try" in
23063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064   *) ac_try_echo=$ac_try;;
23065 esac
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067   (eval "$ac_compile") 2>conftest.er1
23068   ac_status=$?
23069   grep -v '^ *+' conftest.er1 >conftest.err
23070   rm -f conftest.er1
23071   cat conftest.err >&5
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); } && {
23074          test -z "$ac_c_werror_flag" ||
23075          test ! -s conftest.err
23076        } && test -s conftest.$ac_objext; then
23077   ac_cv_type_minor_t=yes
23078 else
23079   echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082         ac_cv_type_minor_t=no
23083 fi
23084
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 fi
23087 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23088 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23089 if test $ac_cv_type_minor_t = yes; then
23090   :
23091 else
23092
23093 cat >>confdefs.h <<_ACEOF
23094 #define minor_t int
23095 _ACEOF
23096
23097 fi
23098
23099 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23100 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23101 if test "${ac_cv_type_ssize_t+set}" = set; then
23102   echo $ECHO_N "(cached) $ECHO_C" >&6
23103 else
23104   cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 $ac_includes_default
23111 typedef ssize_t ac__type_new_;
23112 int
23113 main ()
23114 {
23115 if ((ac__type_new_ *) 0)
23116   return 0;
23117 if (sizeof (ac__type_new_))
23118   return 0;
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext
23124 if { (ac_try="$ac_compile"
23125 case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_compile") 2>conftest.er1
23131   ac_status=$?
23132   grep -v '^ *+' conftest.er1 >conftest.err
23133   rm -f conftest.er1
23134   cat conftest.err >&5
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && {
23137          test -z "$ac_c_werror_flag" ||
23138          test ! -s conftest.err
23139        } && test -s conftest.$ac_objext; then
23140   ac_cv_type_ssize_t=yes
23141 else
23142   echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145         ac_cv_type_ssize_t=no
23146 fi
23147
23148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149 fi
23150 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23151 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23152 if test $ac_cv_type_ssize_t = yes; then
23153   :
23154 else
23155
23156 cat >>confdefs.h <<_ACEOF
23157 #define ssize_t int
23158 _ACEOF
23159
23160 fi
23161
23162 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23163 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23164 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23165   echo $ECHO_N "(cached) $ECHO_C" >&6
23166 else
23167   cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h.  */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h.  */
23173 $ac_includes_default
23174 int
23175 main ()
23176 {
23177 static struct stat ac_aggr;
23178 if (ac_aggr.st_blocks)
23179 return 0;
23180   ;
23181   return 0;
23182 }
23183 _ACEOF
23184 rm -f conftest.$ac_objext
23185 if { (ac_try="$ac_compile"
23186 case "(($ac_try" in
23187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188   *) ac_try_echo=$ac_try;;
23189 esac
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191   (eval "$ac_compile") 2>conftest.er1
23192   ac_status=$?
23193   grep -v '^ *+' conftest.er1 >conftest.err
23194   rm -f conftest.er1
23195   cat conftest.err >&5
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); } && {
23198          test -z "$ac_c_werror_flag" ||
23199          test ! -s conftest.err
23200        } && test -s conftest.$ac_objext; then
23201   ac_cv_member_struct_stat_st_blocks=yes
23202 else
23203   echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23205
23206         cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h.  */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h.  */
23212 $ac_includes_default
23213 int
23214 main ()
23215 {
23216 static struct stat ac_aggr;
23217 if (sizeof ac_aggr.st_blocks)
23218 return 0;
23219   ;
23220   return 0;
23221 }
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227   *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230   (eval "$ac_compile") 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } && {
23237          test -z "$ac_c_werror_flag" ||
23238          test ! -s conftest.err
23239        } && test -s conftest.$ac_objext; then
23240   ac_cv_member_struct_stat_st_blocks=yes
23241 else
23242   echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23244
23245         ac_cv_member_struct_stat_st_blocks=no
23246 fi
23247
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 fi
23250
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 fi
23253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23254 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23255 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23256
23257 cat >>confdefs.h <<_ACEOF
23258 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23259 _ACEOF
23260
23261
23262 cat >>confdefs.h <<\_ACEOF
23263 #define HAVE_ST_BLOCKS 1
23264 _ACEOF
23265
23266 else
23267   case " $LIBOBJS " in
23268   *" fileblocks.$ac_objext "* ) ;;
23269   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23270  ;;
23271 esac
23272
23273 fi
23274
23275
23276 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23277 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23278 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23279   echo $ECHO_N "(cached) $ECHO_C" >&6
23280 else
23281   cat >conftest.$ac_ext <<_ACEOF
23282 /* confdefs.h.  */
23283 _ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h.  */
23287 $ac_includes_default
23288 int
23289 main ()
23290 {
23291 static struct stat ac_aggr;
23292 if (ac_aggr.st_rdev)
23293 return 0;
23294   ;
23295   return 0;
23296 }
23297 _ACEOF
23298 rm -f conftest.$ac_objext
23299 if { (ac_try="$ac_compile"
23300 case "(($ac_try" in
23301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302   *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305   (eval "$ac_compile") 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } && {
23312          test -z "$ac_c_werror_flag" ||
23313          test ! -s conftest.err
23314        } && test -s conftest.$ac_objext; then
23315   ac_cv_member_struct_stat_st_rdev=yes
23316 else
23317   echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320         cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h.  */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h.  */
23326 $ac_includes_default
23327 int
23328 main ()
23329 {
23330 static struct stat ac_aggr;
23331 if (sizeof ac_aggr.st_rdev)
23332 return 0;
23333   ;
23334   return 0;
23335 }
23336 _ACEOF
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341   *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344   (eval "$ac_compile") 2>conftest.er1
23345   ac_status=$?
23346   grep -v '^ *+' conftest.er1 >conftest.err
23347   rm -f conftest.er1
23348   cat conftest.err >&5
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); } && {
23351          test -z "$ac_c_werror_flag" ||
23352          test ! -s conftest.err
23353        } && test -s conftest.$ac_objext; then
23354   ac_cv_member_struct_stat_st_rdev=yes
23355 else
23356   echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359         ac_cv_member_struct_stat_st_rdev=no
23360 fi
23361
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 fi
23364
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366 fi
23367 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23368 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23369 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23370
23371 cat >>confdefs.h <<_ACEOF
23372 #define HAVE_STRUCT_STAT_ST_RDEV 1
23373 _ACEOF
23374
23375
23376 cat >>confdefs.h <<\_ACEOF
23377 #define HAVE_ST_RDEV 1
23378 _ACEOF
23379
23380 fi
23381
23382
23383 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23384 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23385 if test "${ac_cv_struct_tm+set}" = set; then
23386   echo $ECHO_N "(cached) $ECHO_C" >&6
23387 else
23388   cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394 #include <sys/types.h>
23395 #include <time.h>
23396
23397 int
23398 main ()
23399 {
23400 struct tm tm;
23401                                      int *p = &tm.tm_sec;
23402                                      return !p;
23403   ;
23404   return 0;
23405 }
23406 _ACEOF
23407 rm -f conftest.$ac_objext
23408 if { (ac_try="$ac_compile"
23409 case "(($ac_try" in
23410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411   *) ac_try_echo=$ac_try;;
23412 esac
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414   (eval "$ac_compile") 2>conftest.er1
23415   ac_status=$?
23416   grep -v '^ *+' conftest.er1 >conftest.err
23417   rm -f conftest.er1
23418   cat conftest.err >&5
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); } && {
23421          test -z "$ac_c_werror_flag" ||
23422          test ! -s conftest.err
23423        } && test -s conftest.$ac_objext; then
23424   ac_cv_struct_tm=time.h
23425 else
23426   echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23428
23429         ac_cv_struct_tm=sys/time.h
23430 fi
23431
23432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23433 fi
23434 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23435 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23436 if test $ac_cv_struct_tm = sys/time.h; then
23437
23438 cat >>confdefs.h <<\_ACEOF
23439 #define TM_IN_SYS_TIME 1
23440 _ACEOF
23441
23442 fi
23443
23444 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23445 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23446 if test "${ac_cv_c_const+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449   cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455
23456 int
23457 main ()
23458 {
23459 /* FIXME: Include the comments suggested by Paul. */
23460 #ifndef __cplusplus
23461   /* Ultrix mips cc rejects this.  */
23462   typedef int charset[2];
23463   const charset cs;
23464   /* SunOS 4.1.1 cc rejects this.  */
23465   char const *const *pcpcc;
23466   char **ppc;
23467   /* NEC SVR4.0.2 mips cc rejects this.  */
23468   struct point {int x, y;};
23469   static struct point const zero = {0,0};
23470   /* AIX XL C 1.02.0.0 rejects this.
23471      It does not let you subtract one const X* pointer from another in
23472      an arm of an if-expression whose if-part is not a constant
23473      expression */
23474   const char *g = "string";
23475   pcpcc = &g + (g ? g-g : 0);
23476   /* HPUX 7.0 cc rejects these. */
23477   ++pcpcc;
23478   ppc = (char**) pcpcc;
23479   pcpcc = (char const *const *) ppc;
23480   { /* SCO 3.2v4 cc rejects this.  */
23481     char *t;
23482     char const *s = 0 ? (char *) 0 : (char const *) 0;
23483
23484     *t++ = 0;
23485     if (s) return 0;
23486   }
23487   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23488     int x[] = {25, 17};
23489     const int *foo = &x[0];
23490     ++foo;
23491   }
23492   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23493     typedef const int *iptr;
23494     iptr p = 0;
23495     ++p;
23496   }
23497   { /* AIX XL C 1.02.0.0 rejects this saying
23498        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23499     struct s { int j; const int *ap[3]; };
23500     struct s *b; b->j = 5;
23501   }
23502   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23503     const int foo = 10;
23504     if (!foo) return 0;
23505   }
23506   return !cs[0] && !zero.x;
23507 #endif
23508
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest.$ac_objext
23514 if { (ac_try="$ac_compile"
23515 case "(($ac_try" in
23516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517   *) ac_try_echo=$ac_try;;
23518 esac
23519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23520   (eval "$ac_compile") 2>conftest.er1
23521   ac_status=$?
23522   grep -v '^ *+' conftest.er1 >conftest.err
23523   rm -f conftest.er1
23524   cat conftest.err >&5
23525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526   (exit $ac_status); } && {
23527          test -z "$ac_c_werror_flag" ||
23528          test ! -s conftest.err
23529        } && test -s conftest.$ac_objext; then
23530   ac_cv_c_const=yes
23531 else
23532   echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23534
23535         ac_cv_c_const=no
23536 fi
23537
23538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539 fi
23540 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23541 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23542 if test $ac_cv_c_const = no; then
23543
23544 cat >>confdefs.h <<\_ACEOF
23545 #define const
23546 _ACEOF
23547
23548 fi
23549
23550
23551
23552 { echo "$as_me:$LINENO: checking for char" >&5
23553 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23554 if test "${ac_cv_type_char+set}" = set; then
23555   echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557   cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563 $ac_includes_default
23564 typedef char ac__type_new_;
23565 int
23566 main ()
23567 {
23568 if ((ac__type_new_ *) 0)
23569   return 0;
23570 if (sizeof (ac__type_new_))
23571   return 0;
23572   ;
23573   return 0;
23574 }
23575 _ACEOF
23576 rm -f conftest.$ac_objext
23577 if { (ac_try="$ac_compile"
23578 case "(($ac_try" in
23579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580   *) ac_try_echo=$ac_try;;
23581 esac
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583   (eval "$ac_compile") 2>conftest.er1
23584   ac_status=$?
23585   grep -v '^ *+' conftest.er1 >conftest.err
23586   rm -f conftest.er1
23587   cat conftest.err >&5
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); } && {
23590          test -z "$ac_c_werror_flag" ||
23591          test ! -s conftest.err
23592        } && test -s conftest.$ac_objext; then
23593   ac_cv_type_char=yes
23594 else
23595   echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23597
23598         ac_cv_type_char=no
23599 fi
23600
23601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602 fi
23603 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23604 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23605
23606 # The cast to long int works around a bug in the HP C Compiler
23607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23609 # This bug is HP SR number 8606223364.
23610 { echo "$as_me:$LINENO: checking size of char" >&5
23611 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23612 if test "${ac_cv_sizeof_char+set}" = set; then
23613   echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23615   if test "$cross_compiling" = yes; then
23616   # Depending upon the size, compute the lo and hi bounds.
23617 cat >conftest.$ac_ext <<_ACEOF
23618 /* confdefs.h.  */
23619 _ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h.  */
23623 $ac_includes_default
23624    typedef char ac__type_sizeof_;
23625 int
23626 main ()
23627 {
23628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23629 test_array [0] = 0
23630
23631   ;
23632   return 0;
23633 }
23634 _ACEOF
23635 rm -f conftest.$ac_objext
23636 if { (ac_try="$ac_compile"
23637 case "(($ac_try" in
23638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639   *) ac_try_echo=$ac_try;;
23640 esac
23641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642   (eval "$ac_compile") 2>conftest.er1
23643   ac_status=$?
23644   grep -v '^ *+' conftest.er1 >conftest.err
23645   rm -f conftest.er1
23646   cat conftest.err >&5
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); } && {
23649          test -z "$ac_c_werror_flag" ||
23650          test ! -s conftest.err
23651        } && test -s conftest.$ac_objext; then
23652   ac_lo=0 ac_mid=0
23653   while :; do
23654     cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h.  */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h.  */
23660 $ac_includes_default
23661    typedef char ac__type_sizeof_;
23662 int
23663 main ()
23664 {
23665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23666 test_array [0] = 0
23667
23668   ;
23669   return 0;
23670 }
23671 _ACEOF
23672 rm -f conftest.$ac_objext
23673 if { (ac_try="$ac_compile"
23674 case "(($ac_try" in
23675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23676   *) ac_try_echo=$ac_try;;
23677 esac
23678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23679   (eval "$ac_compile") 2>conftest.er1
23680   ac_status=$?
23681   grep -v '^ *+' conftest.er1 >conftest.err
23682   rm -f conftest.er1
23683   cat conftest.err >&5
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } && {
23686          test -z "$ac_c_werror_flag" ||
23687          test ! -s conftest.err
23688        } && test -s conftest.$ac_objext; then
23689   ac_hi=$ac_mid; break
23690 else
23691   echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694         ac_lo=`expr $ac_mid + 1`
23695                         if test $ac_lo -le $ac_mid; then
23696                           ac_lo= ac_hi=
23697                           break
23698                         fi
23699                         ac_mid=`expr 2 '*' $ac_mid + 1`
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703   done
23704 else
23705   echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708         cat >conftest.$ac_ext <<_ACEOF
23709 /* confdefs.h.  */
23710 _ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h.  */
23714 $ac_includes_default
23715    typedef char ac__type_sizeof_;
23716 int
23717 main ()
23718 {
23719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23720 test_array [0] = 0
23721
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext
23727 if { (ac_try="$ac_compile"
23728 case "(($ac_try" in
23729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730   *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733   (eval "$ac_compile") 2>conftest.er1
23734   ac_status=$?
23735   grep -v '^ *+' conftest.er1 >conftest.err
23736   rm -f conftest.er1
23737   cat conftest.err >&5
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); } && {
23740          test -z "$ac_c_werror_flag" ||
23741          test ! -s conftest.err
23742        } && test -s conftest.$ac_objext; then
23743   ac_hi=-1 ac_mid=-1
23744   while :; do
23745     cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751 $ac_includes_default
23752    typedef char ac__type_sizeof_;
23753 int
23754 main ()
23755 {
23756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23757 test_array [0] = 0
23758
23759   ;
23760   return 0;
23761 }
23762 _ACEOF
23763 rm -f conftest.$ac_objext
23764 if { (ac_try="$ac_compile"
23765 case "(($ac_try" in
23766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767   *) ac_try_echo=$ac_try;;
23768 esac
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770   (eval "$ac_compile") 2>conftest.er1
23771   ac_status=$?
23772   grep -v '^ *+' conftest.er1 >conftest.err
23773   rm -f conftest.er1
23774   cat conftest.err >&5
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } && {
23777          test -z "$ac_c_werror_flag" ||
23778          test ! -s conftest.err
23779        } && test -s conftest.$ac_objext; then
23780   ac_lo=$ac_mid; break
23781 else
23782   echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785         ac_hi=`expr '(' $ac_mid ')' - 1`
23786                         if test $ac_mid -le $ac_hi; then
23787                           ac_lo= ac_hi=
23788                           break
23789                         fi
23790                         ac_mid=`expr 2 '*' $ac_mid`
23791 fi
23792
23793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794   done
23795 else
23796   echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799         ac_lo= ac_hi=
23800 fi
23801
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23803 fi
23804
23805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23806 # Binary search between lo and hi bounds.
23807 while test "x$ac_lo" != "x$ac_hi"; do
23808   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23809   cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 $ac_includes_default
23816    typedef char ac__type_sizeof_;
23817 int
23818 main ()
23819 {
23820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23821 test_array [0] = 0
23822
23823   ;
23824   return 0;
23825 }
23826 _ACEOF
23827 rm -f conftest.$ac_objext
23828 if { (ac_try="$ac_compile"
23829 case "(($ac_try" in
23830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23831   *) ac_try_echo=$ac_try;;
23832 esac
23833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23834   (eval "$ac_compile") 2>conftest.er1
23835   ac_status=$?
23836   grep -v '^ *+' conftest.er1 >conftest.err
23837   rm -f conftest.er1
23838   cat conftest.err >&5
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); } && {
23841          test -z "$ac_c_werror_flag" ||
23842          test ! -s conftest.err
23843        } && test -s conftest.$ac_objext; then
23844   ac_hi=$ac_mid
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849         ac_lo=`expr '(' $ac_mid ')' + 1`
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 done
23854 case $ac_lo in
23855 ?*) ac_cv_sizeof_char=$ac_lo;;
23856 '') if test "$ac_cv_type_char" = yes; then
23857      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23858 See \`config.log' for more details." >&5
23859 echo "$as_me: error: cannot compute sizeof (char)
23860 See \`config.log' for more details." >&2;}
23861    { (exit 77); exit 77; }; }
23862    else
23863      ac_cv_sizeof_char=0
23864    fi ;;
23865 esac
23866 else
23867   cat >conftest.$ac_ext <<_ACEOF
23868 /* confdefs.h.  */
23869 _ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h.  */
23873 $ac_includes_default
23874    typedef char ac__type_sizeof_;
23875 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23876 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23877 #include <stdio.h>
23878 #include <stdlib.h>
23879 int
23880 main ()
23881 {
23882
23883   FILE *f = fopen ("conftest.val", "w");
23884   if (! f)
23885     return 1;
23886   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23887     {
23888       long int i = longval ();
23889       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23890         return 1;
23891       fprintf (f, "%ld\n", i);
23892     }
23893   else
23894     {
23895       unsigned long int i = ulongval ();
23896       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23897         return 1;
23898       fprintf (f, "%lu\n", i);
23899     }
23900   return ferror (f) || fclose (f) != 0;
23901
23902   ;
23903   return 0;
23904 }
23905 _ACEOF
23906 rm -f conftest$ac_exeext
23907 if { (ac_try="$ac_link"
23908 case "(($ac_try" in
23909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910   *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913   (eval "$ac_link") 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23917   { (case "(($ac_try" in
23918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919   *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922   (eval "$ac_try") 2>&5
23923   ac_status=$?
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); }; }; then
23926   ac_cv_sizeof_char=`cat conftest.val`
23927 else
23928   echo "$as_me: program exited with status $ac_status" >&5
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932 ( exit $ac_status )
23933 if test "$ac_cv_type_char" = yes; then
23934      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23935 See \`config.log' for more details." >&5
23936 echo "$as_me: error: cannot compute sizeof (char)
23937 See \`config.log' for more details." >&2;}
23938    { (exit 77); exit 77; }; }
23939    else
23940      ac_cv_sizeof_char=0
23941    fi
23942 fi
23943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23944 fi
23945 rm -f conftest.val
23946 fi
23947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23948 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23949
23950
23951
23952 cat >>confdefs.h <<_ACEOF
23953 #define SIZEOF_CHAR $ac_cv_sizeof_char
23954 _ACEOF
23955
23956
23957 { echo "$as_me:$LINENO: checking for short int" >&5
23958 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23959 if test "${ac_cv_type_short_int+set}" = set; then
23960   echo $ECHO_N "(cached) $ECHO_C" >&6
23961 else
23962   cat >conftest.$ac_ext <<_ACEOF
23963 /* confdefs.h.  */
23964 _ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h.  */
23968 $ac_includes_default
23969 typedef short int ac__type_new_;
23970 int
23971 main ()
23972 {
23973 if ((ac__type_new_ *) 0)
23974   return 0;
23975 if (sizeof (ac__type_new_))
23976   return 0;
23977   ;
23978   return 0;
23979 }
23980 _ACEOF
23981 rm -f conftest.$ac_objext
23982 if { (ac_try="$ac_compile"
23983 case "(($ac_try" in
23984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985   *) ac_try_echo=$ac_try;;
23986 esac
23987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23988   (eval "$ac_compile") 2>conftest.er1
23989   ac_status=$?
23990   grep -v '^ *+' conftest.er1 >conftest.err
23991   rm -f conftest.er1
23992   cat conftest.err >&5
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); } && {
23995          test -z "$ac_c_werror_flag" ||
23996          test ! -s conftest.err
23997        } && test -s conftest.$ac_objext; then
23998   ac_cv_type_short_int=yes
23999 else
24000   echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24002
24003         ac_cv_type_short_int=no
24004 fi
24005
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 fi
24008 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24009 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24010
24011 # The cast to long int works around a bug in the HP C Compiler
24012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24014 # This bug is HP SR number 8606223364.
24015 { echo "$as_me:$LINENO: checking size of short int" >&5
24016 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24017 if test "${ac_cv_sizeof_short_int+set}" = set; then
24018   echo $ECHO_N "(cached) $ECHO_C" >&6
24019 else
24020   if test "$cross_compiling" = yes; then
24021   # Depending upon the size, compute the lo and hi bounds.
24022 cat >conftest.$ac_ext <<_ACEOF
24023 /* confdefs.h.  */
24024 _ACEOF
24025 cat confdefs.h >>conftest.$ac_ext
24026 cat >>conftest.$ac_ext <<_ACEOF
24027 /* end confdefs.h.  */
24028 $ac_includes_default
24029    typedef short int ac__type_sizeof_;
24030 int
24031 main ()
24032 {
24033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24034 test_array [0] = 0
24035
24036   ;
24037   return 0;
24038 }
24039 _ACEOF
24040 rm -f conftest.$ac_objext
24041 if { (ac_try="$ac_compile"
24042 case "(($ac_try" in
24043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044   *) ac_try_echo=$ac_try;;
24045 esac
24046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24047   (eval "$ac_compile") 2>conftest.er1
24048   ac_status=$?
24049   grep -v '^ *+' conftest.er1 >conftest.err
24050   rm -f conftest.er1
24051   cat conftest.err >&5
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } && {
24054          test -z "$ac_c_werror_flag" ||
24055          test ! -s conftest.err
24056        } && test -s conftest.$ac_objext; then
24057   ac_lo=0 ac_mid=0
24058   while :; do
24059     cat >conftest.$ac_ext <<_ACEOF
24060 /* confdefs.h.  */
24061 _ACEOF
24062 cat confdefs.h >>conftest.$ac_ext
24063 cat >>conftest.$ac_ext <<_ACEOF
24064 /* end confdefs.h.  */
24065 $ac_includes_default
24066    typedef short int ac__type_sizeof_;
24067 int
24068 main ()
24069 {
24070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24071 test_array [0] = 0
24072
24073   ;
24074   return 0;
24075 }
24076 _ACEOF
24077 rm -f conftest.$ac_objext
24078 if { (ac_try="$ac_compile"
24079 case "(($ac_try" in
24080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081   *) ac_try_echo=$ac_try;;
24082 esac
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084   (eval "$ac_compile") 2>conftest.er1
24085   ac_status=$?
24086   grep -v '^ *+' conftest.er1 >conftest.err
24087   rm -f conftest.er1
24088   cat conftest.err >&5
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); } && {
24091          test -z "$ac_c_werror_flag" ||
24092          test ! -s conftest.err
24093        } && test -s conftest.$ac_objext; then
24094   ac_hi=$ac_mid; break
24095 else
24096   echo "$as_me: failed program was:" >&5
24097 sed 's/^/| /' conftest.$ac_ext >&5
24098
24099         ac_lo=`expr $ac_mid + 1`
24100                         if test $ac_lo -le $ac_mid; then
24101                           ac_lo= ac_hi=
24102                           break
24103                         fi
24104                         ac_mid=`expr 2 '*' $ac_mid + 1`
24105 fi
24106
24107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24108   done
24109 else
24110   echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24112
24113         cat >conftest.$ac_ext <<_ACEOF
24114 /* confdefs.h.  */
24115 _ACEOF
24116 cat confdefs.h >>conftest.$ac_ext
24117 cat >>conftest.$ac_ext <<_ACEOF
24118 /* end confdefs.h.  */
24119 $ac_includes_default
24120    typedef short int ac__type_sizeof_;
24121 int
24122 main ()
24123 {
24124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24125 test_array [0] = 0
24126
24127   ;
24128   return 0;
24129 }
24130 _ACEOF
24131 rm -f conftest.$ac_objext
24132 if { (ac_try="$ac_compile"
24133 case "(($ac_try" in
24134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135   *) ac_try_echo=$ac_try;;
24136 esac
24137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24138   (eval "$ac_compile") 2>conftest.er1
24139   ac_status=$?
24140   grep -v '^ *+' conftest.er1 >conftest.err
24141   rm -f conftest.er1
24142   cat conftest.err >&5
24143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144   (exit $ac_status); } && {
24145          test -z "$ac_c_werror_flag" ||
24146          test ! -s conftest.err
24147        } && test -s conftest.$ac_objext; then
24148   ac_hi=-1 ac_mid=-1
24149   while :; do
24150     cat >conftest.$ac_ext <<_ACEOF
24151 /* confdefs.h.  */
24152 _ACEOF
24153 cat confdefs.h >>conftest.$ac_ext
24154 cat >>conftest.$ac_ext <<_ACEOF
24155 /* end confdefs.h.  */
24156 $ac_includes_default
24157    typedef short int ac__type_sizeof_;
24158 int
24159 main ()
24160 {
24161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24162 test_array [0] = 0
24163
24164   ;
24165   return 0;
24166 }
24167 _ACEOF
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172   *) ac_try_echo=$ac_try;;
24173 esac
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175   (eval "$ac_compile") 2>conftest.er1
24176   ac_status=$?
24177   grep -v '^ *+' conftest.er1 >conftest.err
24178   rm -f conftest.er1
24179   cat conftest.err >&5
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); } && {
24182          test -z "$ac_c_werror_flag" ||
24183          test ! -s conftest.err
24184        } && test -s conftest.$ac_objext; then
24185   ac_lo=$ac_mid; break
24186 else
24187   echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24189
24190         ac_hi=`expr '(' $ac_mid ')' - 1`
24191                         if test $ac_mid -le $ac_hi; then
24192                           ac_lo= ac_hi=
24193                           break
24194                         fi
24195                         ac_mid=`expr 2 '*' $ac_mid`
24196 fi
24197
24198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199   done
24200 else
24201   echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24203
24204         ac_lo= ac_hi=
24205 fi
24206
24207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24208 fi
24209
24210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211 # Binary search between lo and hi bounds.
24212 while test "x$ac_lo" != "x$ac_hi"; do
24213   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24214   cat >conftest.$ac_ext <<_ACEOF
24215 /* confdefs.h.  */
24216 _ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h.  */
24220 $ac_includes_default
24221    typedef short int ac__type_sizeof_;
24222 int
24223 main ()
24224 {
24225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24226 test_array [0] = 0
24227
24228   ;
24229   return 0;
24230 }
24231 _ACEOF
24232 rm -f conftest.$ac_objext
24233 if { (ac_try="$ac_compile"
24234 case "(($ac_try" in
24235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24236   *) ac_try_echo=$ac_try;;
24237 esac
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239   (eval "$ac_compile") 2>conftest.er1
24240   ac_status=$?
24241   grep -v '^ *+' conftest.er1 >conftest.err
24242   rm -f conftest.er1
24243   cat conftest.err >&5
24244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245   (exit $ac_status); } && {
24246          test -z "$ac_c_werror_flag" ||
24247          test ! -s conftest.err
24248        } && test -s conftest.$ac_objext; then
24249   ac_hi=$ac_mid
24250 else
24251   echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24253
24254         ac_lo=`expr '(' $ac_mid ')' + 1`
24255 fi
24256
24257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24258 done
24259 case $ac_lo in
24260 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24261 '') if test "$ac_cv_type_short_int" = yes; then
24262      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24263 See \`config.log' for more details." >&5
24264 echo "$as_me: error: cannot compute sizeof (short int)
24265 See \`config.log' for more details." >&2;}
24266    { (exit 77); exit 77; }; }
24267    else
24268      ac_cv_sizeof_short_int=0
24269    fi ;;
24270 esac
24271 else
24272   cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h.  */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h.  */
24278 $ac_includes_default
24279    typedef short int ac__type_sizeof_;
24280 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24281 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24282 #include <stdio.h>
24283 #include <stdlib.h>
24284 int
24285 main ()
24286 {
24287
24288   FILE *f = fopen ("conftest.val", "w");
24289   if (! f)
24290     return 1;
24291   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24292     {
24293       long int i = longval ();
24294       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24295         return 1;
24296       fprintf (f, "%ld\n", i);
24297     }
24298   else
24299     {
24300       unsigned long int i = ulongval ();
24301       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24302         return 1;
24303       fprintf (f, "%lu\n", i);
24304     }
24305   return ferror (f) || fclose (f) != 0;
24306
24307   ;
24308   return 0;
24309 }
24310 _ACEOF
24311 rm -f conftest$ac_exeext
24312 if { (ac_try="$ac_link"
24313 case "(($ac_try" in
24314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315   *) ac_try_echo=$ac_try;;
24316 esac
24317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318   (eval "$ac_link") 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24322   { (case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_try") 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; }; then
24331   ac_cv_sizeof_short_int=`cat conftest.val`
24332 else
24333   echo "$as_me: program exited with status $ac_status" >&5
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337 ( exit $ac_status )
24338 if test "$ac_cv_type_short_int" = yes; then
24339      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24340 See \`config.log' for more details." >&5
24341 echo "$as_me: error: cannot compute sizeof (short int)
24342 See \`config.log' for more details." >&2;}
24343    { (exit 77); exit 77; }; }
24344    else
24345      ac_cv_sizeof_short_int=0
24346    fi
24347 fi
24348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24349 fi
24350 rm -f conftest.val
24351 fi
24352 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24353 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24354
24355
24356
24357 cat >>confdefs.h <<_ACEOF
24358 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24359 _ACEOF
24360
24361
24362 { echo "$as_me:$LINENO: checking for int" >&5
24363 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24364 if test "${ac_cv_type_int+set}" = set; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367   cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h.  */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h.  */
24373 $ac_includes_default
24374 typedef int ac__type_new_;
24375 int
24376 main ()
24377 {
24378 if ((ac__type_new_ *) 0)
24379   return 0;
24380 if (sizeof (ac__type_new_))
24381   return 0;
24382   ;
24383   return 0;
24384 }
24385 _ACEOF
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24390   *) ac_try_echo=$ac_try;;
24391 esac
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393   (eval "$ac_compile") 2>conftest.er1
24394   ac_status=$?
24395   grep -v '^ *+' conftest.er1 >conftest.err
24396   rm -f conftest.er1
24397   cat conftest.err >&5
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); } && {
24400          test -z "$ac_c_werror_flag" ||
24401          test ! -s conftest.err
24402        } && test -s conftest.$ac_objext; then
24403   ac_cv_type_int=yes
24404 else
24405   echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24407
24408         ac_cv_type_int=no
24409 fi
24410
24411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24412 fi
24413 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24414 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24415
24416 # The cast to long int works around a bug in the HP C Compiler
24417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24419 # This bug is HP SR number 8606223364.
24420 { echo "$as_me:$LINENO: checking size of int" >&5
24421 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24422 if test "${ac_cv_sizeof_int+set}" = set; then
24423   echo $ECHO_N "(cached) $ECHO_C" >&6
24424 else
24425   if test "$cross_compiling" = yes; then
24426   # Depending upon the size, compute the lo and hi bounds.
24427 cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h.  */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h.  */
24433 $ac_includes_default
24434    typedef int ac__type_sizeof_;
24435 int
24436 main ()
24437 {
24438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24439 test_array [0] = 0
24440
24441   ;
24442   return 0;
24443 }
24444 _ACEOF
24445 rm -f conftest.$ac_objext
24446 if { (ac_try="$ac_compile"
24447 case "(($ac_try" in
24448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24449   *) ac_try_echo=$ac_try;;
24450 esac
24451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24452   (eval "$ac_compile") 2>conftest.er1
24453   ac_status=$?
24454   grep -v '^ *+' conftest.er1 >conftest.err
24455   rm -f conftest.er1
24456   cat conftest.err >&5
24457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458   (exit $ac_status); } && {
24459          test -z "$ac_c_werror_flag" ||
24460          test ! -s conftest.err
24461        } && test -s conftest.$ac_objext; then
24462   ac_lo=0 ac_mid=0
24463   while :; do
24464     cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470 $ac_includes_default
24471    typedef int ac__type_sizeof_;
24472 int
24473 main ()
24474 {
24475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24476 test_array [0] = 0
24477
24478   ;
24479   return 0;
24480 }
24481 _ACEOF
24482 rm -f conftest.$ac_objext
24483 if { (ac_try="$ac_compile"
24484 case "(($ac_try" in
24485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486   *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489   (eval "$ac_compile") 2>conftest.er1
24490   ac_status=$?
24491   grep -v '^ *+' conftest.er1 >conftest.err
24492   rm -f conftest.er1
24493   cat conftest.err >&5
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); } && {
24496          test -z "$ac_c_werror_flag" ||
24497          test ! -s conftest.err
24498        } && test -s conftest.$ac_objext; then
24499   ac_hi=$ac_mid; break
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504         ac_lo=`expr $ac_mid + 1`
24505                         if test $ac_lo -le $ac_mid; then
24506                           ac_lo= ac_hi=
24507                           break
24508                         fi
24509                         ac_mid=`expr 2 '*' $ac_mid + 1`
24510 fi
24511
24512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24513   done
24514 else
24515   echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24517
24518         cat >conftest.$ac_ext <<_ACEOF
24519 /* confdefs.h.  */
24520 _ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h.  */
24524 $ac_includes_default
24525    typedef int ac__type_sizeof_;
24526 int
24527 main ()
24528 {
24529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24530 test_array [0] = 0
24531
24532   ;
24533   return 0;
24534 }
24535 _ACEOF
24536 rm -f conftest.$ac_objext
24537 if { (ac_try="$ac_compile"
24538 case "(($ac_try" in
24539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24540   *) ac_try_echo=$ac_try;;
24541 esac
24542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24543   (eval "$ac_compile") 2>conftest.er1
24544   ac_status=$?
24545   grep -v '^ *+' conftest.er1 >conftest.err
24546   rm -f conftest.er1
24547   cat conftest.err >&5
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); } && {
24550          test -z "$ac_c_werror_flag" ||
24551          test ! -s conftest.err
24552        } && test -s conftest.$ac_objext; then
24553   ac_hi=-1 ac_mid=-1
24554   while :; do
24555     cat >conftest.$ac_ext <<_ACEOF
24556 /* confdefs.h.  */
24557 _ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h.  */
24561 $ac_includes_default
24562    typedef int ac__type_sizeof_;
24563 int
24564 main ()
24565 {
24566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24567 test_array [0] = 0
24568
24569   ;
24570   return 0;
24571 }
24572 _ACEOF
24573 rm -f conftest.$ac_objext
24574 if { (ac_try="$ac_compile"
24575 case "(($ac_try" in
24576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577   *) ac_try_echo=$ac_try;;
24578 esac
24579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24580   (eval "$ac_compile") 2>conftest.er1
24581   ac_status=$?
24582   grep -v '^ *+' conftest.er1 >conftest.err
24583   rm -f conftest.er1
24584   cat conftest.err >&5
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); } && {
24587          test -z "$ac_c_werror_flag" ||
24588          test ! -s conftest.err
24589        } && test -s conftest.$ac_objext; then
24590   ac_lo=$ac_mid; break
24591 else
24592   echo "$as_me: failed program was:" >&5
24593 sed 's/^/| /' conftest.$ac_ext >&5
24594
24595         ac_hi=`expr '(' $ac_mid ')' - 1`
24596                         if test $ac_mid -le $ac_hi; then
24597                           ac_lo= ac_hi=
24598                           break
24599                         fi
24600                         ac_mid=`expr 2 '*' $ac_mid`
24601 fi
24602
24603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24604   done
24605 else
24606   echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24608
24609         ac_lo= ac_hi=
24610 fi
24611
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613 fi
24614
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24616 # Binary search between lo and hi bounds.
24617 while test "x$ac_lo" != "x$ac_hi"; do
24618   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24619   cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625 $ac_includes_default
24626    typedef int ac__type_sizeof_;
24627 int
24628 main ()
24629 {
24630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24631 test_array [0] = 0
24632
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext
24638 if { (ac_try="$ac_compile"
24639 case "(($ac_try" in
24640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641   *) ac_try_echo=$ac_try;;
24642 esac
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644   (eval "$ac_compile") 2>conftest.er1
24645   ac_status=$?
24646   grep -v '^ *+' conftest.er1 >conftest.err
24647   rm -f conftest.er1
24648   cat conftest.err >&5
24649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650   (exit $ac_status); } && {
24651          test -z "$ac_c_werror_flag" ||
24652          test ! -s conftest.err
24653        } && test -s conftest.$ac_objext; then
24654   ac_hi=$ac_mid
24655 else
24656   echo "$as_me: failed program was:" >&5
24657 sed 's/^/| /' conftest.$ac_ext >&5
24658
24659         ac_lo=`expr '(' $ac_mid ')' + 1`
24660 fi
24661
24662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24663 done
24664 case $ac_lo in
24665 ?*) ac_cv_sizeof_int=$ac_lo;;
24666 '') if test "$ac_cv_type_int" = yes; then
24667      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24668 See \`config.log' for more details." >&5
24669 echo "$as_me: error: cannot compute sizeof (int)
24670 See \`config.log' for more details." >&2;}
24671    { (exit 77); exit 77; }; }
24672    else
24673      ac_cv_sizeof_int=0
24674    fi ;;
24675 esac
24676 else
24677   cat >conftest.$ac_ext <<_ACEOF
24678 /* confdefs.h.  */
24679 _ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h.  */
24683 $ac_includes_default
24684    typedef int ac__type_sizeof_;
24685 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24686 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24687 #include <stdio.h>
24688 #include <stdlib.h>
24689 int
24690 main ()
24691 {
24692
24693   FILE *f = fopen ("conftest.val", "w");
24694   if (! f)
24695     return 1;
24696   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24697     {
24698       long int i = longval ();
24699       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24700         return 1;
24701       fprintf (f, "%ld\n", i);
24702     }
24703   else
24704     {
24705       unsigned long int i = ulongval ();
24706       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24707         return 1;
24708       fprintf (f, "%lu\n", i);
24709     }
24710   return ferror (f) || fclose (f) != 0;
24711
24712   ;
24713   return 0;
24714 }
24715 _ACEOF
24716 rm -f conftest$ac_exeext
24717 if { (ac_try="$ac_link"
24718 case "(($ac_try" in
24719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720   *) ac_try_echo=$ac_try;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723   (eval "$ac_link") 2>&5
24724   ac_status=$?
24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727   { (case "(($ac_try" in
24728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729   *) ac_try_echo=$ac_try;;
24730 esac
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732   (eval "$ac_try") 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; }; then
24736   ac_cv_sizeof_int=`cat conftest.val`
24737 else
24738   echo "$as_me: program exited with status $ac_status" >&5
24739 echo "$as_me: failed program was:" >&5
24740 sed 's/^/| /' conftest.$ac_ext >&5
24741
24742 ( exit $ac_status )
24743 if test "$ac_cv_type_int" = yes; then
24744      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24745 See \`config.log' for more details." >&5
24746 echo "$as_me: error: cannot compute sizeof (int)
24747 See \`config.log' for more details." >&2;}
24748    { (exit 77); exit 77; }; }
24749    else
24750      ac_cv_sizeof_int=0
24751    fi
24752 fi
24753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24754 fi
24755 rm -f conftest.val
24756 fi
24757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24758 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24759
24760
24761
24762 cat >>confdefs.h <<_ACEOF
24763 #define SIZEOF_INT $ac_cv_sizeof_int
24764 _ACEOF
24765
24766
24767 { echo "$as_me:$LINENO: checking for long int" >&5
24768 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24769 if test "${ac_cv_type_long_int+set}" = set; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778 $ac_includes_default
24779 typedef long int ac__type_new_;
24780 int
24781 main ()
24782 {
24783 if ((ac__type_new_ *) 0)
24784   return 0;
24785 if (sizeof (ac__type_new_))
24786   return 0;
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext
24792 if { (ac_try="$ac_compile"
24793 case "(($ac_try" in
24794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795   *) ac_try_echo=$ac_try;;
24796 esac
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798   (eval "$ac_compile") 2>conftest.er1
24799   ac_status=$?
24800   grep -v '^ *+' conftest.er1 >conftest.err
24801   rm -f conftest.er1
24802   cat conftest.err >&5
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); } && {
24805          test -z "$ac_c_werror_flag" ||
24806          test ! -s conftest.err
24807        } && test -s conftest.$ac_objext; then
24808   ac_cv_type_long_int=yes
24809 else
24810   echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24812
24813         ac_cv_type_long_int=no
24814 fi
24815
24816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24817 fi
24818 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24819 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24820
24821 # The cast to long int works around a bug in the HP C Compiler
24822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24824 # This bug is HP SR number 8606223364.
24825 { echo "$as_me:$LINENO: checking size of long int" >&5
24826 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24827 if test "${ac_cv_sizeof_long_int+set}" = set; then
24828   echo $ECHO_N "(cached) $ECHO_C" >&6
24829 else
24830   if test "$cross_compiling" = yes; then
24831   # Depending upon the size, compute the lo and hi bounds.
24832 cat >conftest.$ac_ext <<_ACEOF
24833 /* confdefs.h.  */
24834 _ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h.  */
24838 $ac_includes_default
24839    typedef long int ac__type_sizeof_;
24840 int
24841 main ()
24842 {
24843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24844 test_array [0] = 0
24845
24846   ;
24847   return 0;
24848 }
24849 _ACEOF
24850 rm -f conftest.$ac_objext
24851 if { (ac_try="$ac_compile"
24852 case "(($ac_try" in
24853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854   *) ac_try_echo=$ac_try;;
24855 esac
24856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24857   (eval "$ac_compile") 2>conftest.er1
24858   ac_status=$?
24859   grep -v '^ *+' conftest.er1 >conftest.err
24860   rm -f conftest.er1
24861   cat conftest.err >&5
24862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863   (exit $ac_status); } && {
24864          test -z "$ac_c_werror_flag" ||
24865          test ! -s conftest.err
24866        } && test -s conftest.$ac_objext; then
24867   ac_lo=0 ac_mid=0
24868   while :; do
24869     cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h.  */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h.  */
24875 $ac_includes_default
24876    typedef long int ac__type_sizeof_;
24877 int
24878 main ()
24879 {
24880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24881 test_array [0] = 0
24882
24883   ;
24884   return 0;
24885 }
24886 _ACEOF
24887 rm -f conftest.$ac_objext
24888 if { (ac_try="$ac_compile"
24889 case "(($ac_try" in
24890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891   *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894   (eval "$ac_compile") 2>conftest.er1
24895   ac_status=$?
24896   grep -v '^ *+' conftest.er1 >conftest.err
24897   rm -f conftest.er1
24898   cat conftest.err >&5
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } && {
24901          test -z "$ac_c_werror_flag" ||
24902          test ! -s conftest.err
24903        } && test -s conftest.$ac_objext; then
24904   ac_hi=$ac_mid; break
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909         ac_lo=`expr $ac_mid + 1`
24910                         if test $ac_lo -le $ac_mid; then
24911                           ac_lo= ac_hi=
24912                           break
24913                         fi
24914                         ac_mid=`expr 2 '*' $ac_mid + 1`
24915 fi
24916
24917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918   done
24919 else
24920   echo "$as_me: failed program was:" >&5
24921 sed 's/^/| /' conftest.$ac_ext >&5
24922
24923         cat >conftest.$ac_ext <<_ACEOF
24924 /* confdefs.h.  */
24925 _ACEOF
24926 cat confdefs.h >>conftest.$ac_ext
24927 cat >>conftest.$ac_ext <<_ACEOF
24928 /* end confdefs.h.  */
24929 $ac_includes_default
24930    typedef long int ac__type_sizeof_;
24931 int
24932 main ()
24933 {
24934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24935 test_array [0] = 0
24936
24937   ;
24938   return 0;
24939 }
24940 _ACEOF
24941 rm -f conftest.$ac_objext
24942 if { (ac_try="$ac_compile"
24943 case "(($ac_try" in
24944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945   *) ac_try_echo=$ac_try;;
24946 esac
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948   (eval "$ac_compile") 2>conftest.er1
24949   ac_status=$?
24950   grep -v '^ *+' conftest.er1 >conftest.err
24951   rm -f conftest.er1
24952   cat conftest.err >&5
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); } && {
24955          test -z "$ac_c_werror_flag" ||
24956          test ! -s conftest.err
24957        } && test -s conftest.$ac_objext; then
24958   ac_hi=-1 ac_mid=-1
24959   while :; do
24960     cat >conftest.$ac_ext <<_ACEOF
24961 /* confdefs.h.  */
24962 _ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h.  */
24966 $ac_includes_default
24967    typedef long int ac__type_sizeof_;
24968 int
24969 main ()
24970 {
24971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24972 test_array [0] = 0
24973
24974   ;
24975   return 0;
24976 }
24977 _ACEOF
24978 rm -f conftest.$ac_objext
24979 if { (ac_try="$ac_compile"
24980 case "(($ac_try" in
24981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24982   *) ac_try_echo=$ac_try;;
24983 esac
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985   (eval "$ac_compile") 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } && {
24992          test -z "$ac_c_werror_flag" ||
24993          test ! -s conftest.err
24994        } && test -s conftest.$ac_objext; then
24995   ac_lo=$ac_mid; break
24996 else
24997   echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
24999
25000         ac_hi=`expr '(' $ac_mid ')' - 1`
25001                         if test $ac_mid -le $ac_hi; then
25002                           ac_lo= ac_hi=
25003                           break
25004                         fi
25005                         ac_mid=`expr 2 '*' $ac_mid`
25006 fi
25007
25008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25009   done
25010 else
25011   echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014         ac_lo= ac_hi=
25015 fi
25016
25017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25018 fi
25019
25020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25021 # Binary search between lo and hi bounds.
25022 while test "x$ac_lo" != "x$ac_hi"; do
25023   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25024   cat >conftest.$ac_ext <<_ACEOF
25025 /* confdefs.h.  */
25026 _ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h.  */
25030 $ac_includes_default
25031    typedef long int ac__type_sizeof_;
25032 int
25033 main ()
25034 {
25035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25036 test_array [0] = 0
25037
25038   ;
25039   return 0;
25040 }
25041 _ACEOF
25042 rm -f conftest.$ac_objext
25043 if { (ac_try="$ac_compile"
25044 case "(($ac_try" in
25045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046   *) ac_try_echo=$ac_try;;
25047 esac
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049   (eval "$ac_compile") 2>conftest.er1
25050   ac_status=$?
25051   grep -v '^ *+' conftest.er1 >conftest.err
25052   rm -f conftest.er1
25053   cat conftest.err >&5
25054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055   (exit $ac_status); } && {
25056          test -z "$ac_c_werror_flag" ||
25057          test ! -s conftest.err
25058        } && test -s conftest.$ac_objext; then
25059   ac_hi=$ac_mid
25060 else
25061   echo "$as_me: failed program was:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25063
25064         ac_lo=`expr '(' $ac_mid ')' + 1`
25065 fi
25066
25067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25068 done
25069 case $ac_lo in
25070 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25071 '') if test "$ac_cv_type_long_int" = yes; then
25072      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25073 See \`config.log' for more details." >&5
25074 echo "$as_me: error: cannot compute sizeof (long int)
25075 See \`config.log' for more details." >&2;}
25076    { (exit 77); exit 77; }; }
25077    else
25078      ac_cv_sizeof_long_int=0
25079    fi ;;
25080 esac
25081 else
25082   cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088 $ac_includes_default
25089    typedef long int ac__type_sizeof_;
25090 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25091 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25092 #include <stdio.h>
25093 #include <stdlib.h>
25094 int
25095 main ()
25096 {
25097
25098   FILE *f = fopen ("conftest.val", "w");
25099   if (! f)
25100     return 1;
25101   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25102     {
25103       long int i = longval ();
25104       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25105         return 1;
25106       fprintf (f, "%ld\n", i);
25107     }
25108   else
25109     {
25110       unsigned long int i = ulongval ();
25111       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25112         return 1;
25113       fprintf (f, "%lu\n", i);
25114     }
25115   return ferror (f) || fclose (f) != 0;
25116
25117   ;
25118   return 0;
25119 }
25120 _ACEOF
25121 rm -f conftest$ac_exeext
25122 if { (ac_try="$ac_link"
25123 case "(($ac_try" in
25124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125   *) ac_try_echo=$ac_try;;
25126 esac
25127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128   (eval "$ac_link") 2>&5
25129   ac_status=$?
25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25132   { (case "(($ac_try" in
25133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25134   *) ac_try_echo=$ac_try;;
25135 esac
25136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25137   (eval "$ac_try") 2>&5
25138   ac_status=$?
25139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140   (exit $ac_status); }; }; then
25141   ac_cv_sizeof_long_int=`cat conftest.val`
25142 else
25143   echo "$as_me: program exited with status $ac_status" >&5
25144 echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.$ac_ext >&5
25146
25147 ( exit $ac_status )
25148 if test "$ac_cv_type_long_int" = yes; then
25149      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25150 See \`config.log' for more details." >&5
25151 echo "$as_me: error: cannot compute sizeof (long int)
25152 See \`config.log' for more details." >&2;}
25153    { (exit 77); exit 77; }; }
25154    else
25155      ac_cv_sizeof_long_int=0
25156    fi
25157 fi
25158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25159 fi
25160 rm -f conftest.val
25161 fi
25162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25163 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25164
25165
25166
25167 cat >>confdefs.h <<_ACEOF
25168 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25169 _ACEOF
25170
25171
25172 { echo "$as_me:$LINENO: checking for long long int" >&5
25173 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25174 if test "${ac_cv_type_long_long_int+set}" = set; then
25175   echo $ECHO_N "(cached) $ECHO_C" >&6
25176 else
25177   cat >conftest.$ac_ext <<_ACEOF
25178 /* confdefs.h.  */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h.  */
25183 $ac_includes_default
25184 typedef long long int ac__type_new_;
25185 int
25186 main ()
25187 {
25188 if ((ac__type_new_ *) 0)
25189   return 0;
25190 if (sizeof (ac__type_new_))
25191   return 0;
25192   ;
25193   return 0;
25194 }
25195 _ACEOF
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203   (eval "$ac_compile") 2>conftest.er1
25204   ac_status=$?
25205   grep -v '^ *+' conftest.er1 >conftest.err
25206   rm -f conftest.er1
25207   cat conftest.err >&5
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); } && {
25210          test -z "$ac_c_werror_flag" ||
25211          test ! -s conftest.err
25212        } && test -s conftest.$ac_objext; then
25213   ac_cv_type_long_long_int=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218         ac_cv_type_long_long_int=no
25219 fi
25220
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 fi
25223 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25224 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25225
25226 # The cast to long int works around a bug in the HP C Compiler
25227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25229 # This bug is HP SR number 8606223364.
25230 { echo "$as_me:$LINENO: checking size of long long int" >&5
25231 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25232 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25233   echo $ECHO_N "(cached) $ECHO_C" >&6
25234 else
25235   if test "$cross_compiling" = yes; then
25236   # Depending upon the size, compute the lo and hi bounds.
25237 cat >conftest.$ac_ext <<_ACEOF
25238 /* confdefs.h.  */
25239 _ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h.  */
25243 $ac_includes_default
25244    typedef long long int ac__type_sizeof_;
25245 int
25246 main ()
25247 {
25248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25249 test_array [0] = 0
25250
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259   *) ac_try_echo=$ac_try;;
25260 esac
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262   (eval "$ac_compile") 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } && {
25269          test -z "$ac_c_werror_flag" ||
25270          test ! -s conftest.err
25271        } && test -s conftest.$ac_objext; then
25272   ac_lo=0 ac_mid=0
25273   while :; do
25274     cat >conftest.$ac_ext <<_ACEOF
25275 /* confdefs.h.  */
25276 _ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>conftest.$ac_ext <<_ACEOF
25279 /* end confdefs.h.  */
25280 $ac_includes_default
25281    typedef long long int ac__type_sizeof_;
25282 int
25283 main ()
25284 {
25285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25286 test_array [0] = 0
25287
25288   ;
25289   return 0;
25290 }
25291 _ACEOF
25292 rm -f conftest.$ac_objext
25293 if { (ac_try="$ac_compile"
25294 case "(($ac_try" in
25295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296   *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299   (eval "$ac_compile") 2>conftest.er1
25300   ac_status=$?
25301   grep -v '^ *+' conftest.er1 >conftest.err
25302   rm -f conftest.er1
25303   cat conftest.err >&5
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); } && {
25306          test -z "$ac_c_werror_flag" ||
25307          test ! -s conftest.err
25308        } && test -s conftest.$ac_objext; then
25309   ac_hi=$ac_mid; break
25310 else
25311   echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25313
25314         ac_lo=`expr $ac_mid + 1`
25315                         if test $ac_lo -le $ac_mid; then
25316                           ac_lo= ac_hi=
25317                           break
25318                         fi
25319                         ac_mid=`expr 2 '*' $ac_mid + 1`
25320 fi
25321
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25323   done
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         cat >conftest.$ac_ext <<_ACEOF
25329 /* confdefs.h.  */
25330 _ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h.  */
25334 $ac_includes_default
25335    typedef long long int ac__type_sizeof_;
25336 int
25337 main ()
25338 {
25339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25340 test_array [0] = 0
25341
25342   ;
25343   return 0;
25344 }
25345 _ACEOF
25346 rm -f conftest.$ac_objext
25347 if { (ac_try="$ac_compile"
25348 case "(($ac_try" in
25349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350   *) ac_try_echo=$ac_try;;
25351 esac
25352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25353   (eval "$ac_compile") 2>conftest.er1
25354   ac_status=$?
25355   grep -v '^ *+' conftest.er1 >conftest.err
25356   rm -f conftest.er1
25357   cat conftest.err >&5
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); } && {
25360          test -z "$ac_c_werror_flag" ||
25361          test ! -s conftest.err
25362        } && test -s conftest.$ac_objext; then
25363   ac_hi=-1 ac_mid=-1
25364   while :; do
25365     cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371 $ac_includes_default
25372    typedef long long int ac__type_sizeof_;
25373 int
25374 main ()
25375 {
25376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25377 test_array [0] = 0
25378
25379   ;
25380   return 0;
25381 }
25382 _ACEOF
25383 rm -f conftest.$ac_objext
25384 if { (ac_try="$ac_compile"
25385 case "(($ac_try" in
25386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25387   *) ac_try_echo=$ac_try;;
25388 esac
25389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25390   (eval "$ac_compile") 2>conftest.er1
25391   ac_status=$?
25392   grep -v '^ *+' conftest.er1 >conftest.err
25393   rm -f conftest.er1
25394   cat conftest.err >&5
25395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396   (exit $ac_status); } && {
25397          test -z "$ac_c_werror_flag" ||
25398          test ! -s conftest.err
25399        } && test -s conftest.$ac_objext; then
25400   ac_lo=$ac_mid; break
25401 else
25402   echo "$as_me: failed program was:" >&5
25403 sed 's/^/| /' conftest.$ac_ext >&5
25404
25405         ac_hi=`expr '(' $ac_mid ')' - 1`
25406                         if test $ac_mid -le $ac_hi; then
25407                           ac_lo= ac_hi=
25408                           break
25409                         fi
25410                         ac_mid=`expr 2 '*' $ac_mid`
25411 fi
25412
25413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25414   done
25415 else
25416   echo "$as_me: failed program was:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25418
25419         ac_lo= ac_hi=
25420 fi
25421
25422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25423 fi
25424
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426 # Binary search between lo and hi bounds.
25427 while test "x$ac_lo" != "x$ac_hi"; do
25428   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25429   cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h.  */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h.  */
25435 $ac_includes_default
25436    typedef long long int ac__type_sizeof_;
25437 int
25438 main ()
25439 {
25440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25441 test_array [0] = 0
25442
25443   ;
25444   return 0;
25445 }
25446 _ACEOF
25447 rm -f conftest.$ac_objext
25448 if { (ac_try="$ac_compile"
25449 case "(($ac_try" in
25450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25451   *) ac_try_echo=$ac_try;;
25452 esac
25453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25454   (eval "$ac_compile") 2>conftest.er1
25455   ac_status=$?
25456   grep -v '^ *+' conftest.er1 >conftest.err
25457   rm -f conftest.er1
25458   cat conftest.err >&5
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); } && {
25461          test -z "$ac_c_werror_flag" ||
25462          test ! -s conftest.err
25463        } && test -s conftest.$ac_objext; then
25464   ac_hi=$ac_mid
25465 else
25466   echo "$as_me: failed program was:" >&5
25467 sed 's/^/| /' conftest.$ac_ext >&5
25468
25469         ac_lo=`expr '(' $ac_mid ')' + 1`
25470 fi
25471
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473 done
25474 case $ac_lo in
25475 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25476 '') if test "$ac_cv_type_long_long_int" = yes; then
25477      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25478 See \`config.log' for more details." >&5
25479 echo "$as_me: error: cannot compute sizeof (long long int)
25480 See \`config.log' for more details." >&2;}
25481    { (exit 77); exit 77; }; }
25482    else
25483      ac_cv_sizeof_long_long_int=0
25484    fi ;;
25485 esac
25486 else
25487   cat >conftest.$ac_ext <<_ACEOF
25488 /* confdefs.h.  */
25489 _ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h.  */
25493 $ac_includes_default
25494    typedef long long int ac__type_sizeof_;
25495 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25496 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25497 #include <stdio.h>
25498 #include <stdlib.h>
25499 int
25500 main ()
25501 {
25502
25503   FILE *f = fopen ("conftest.val", "w");
25504   if (! f)
25505     return 1;
25506   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25507     {
25508       long int i = longval ();
25509       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25510         return 1;
25511       fprintf (f, "%ld\n", i);
25512     }
25513   else
25514     {
25515       unsigned long int i = ulongval ();
25516       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25517         return 1;
25518       fprintf (f, "%lu\n", i);
25519     }
25520   return ferror (f) || fclose (f) != 0;
25521
25522   ;
25523   return 0;
25524 }
25525 _ACEOF
25526 rm -f conftest$ac_exeext
25527 if { (ac_try="$ac_link"
25528 case "(($ac_try" in
25529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530   *) ac_try_echo=$ac_try;;
25531 esac
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533   (eval "$ac_link") 2>&5
25534   ac_status=$?
25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25537   { (case "(($ac_try" in
25538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539   *) ac_try_echo=$ac_try;;
25540 esac
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542   (eval "$ac_try") 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; }; then
25546   ac_cv_sizeof_long_long_int=`cat conftest.val`
25547 else
25548   echo "$as_me: program exited with status $ac_status" >&5
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25551
25552 ( exit $ac_status )
25553 if test "$ac_cv_type_long_long_int" = yes; then
25554      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25555 See \`config.log' for more details." >&5
25556 echo "$as_me: error: cannot compute sizeof (long long int)
25557 See \`config.log' for more details." >&2;}
25558    { (exit 77); exit 77; }; }
25559    else
25560      ac_cv_sizeof_long_long_int=0
25561    fi
25562 fi
25563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25564 fi
25565 rm -f conftest.val
25566 fi
25567 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25568 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25569
25570
25571
25572 cat >>confdefs.h <<_ACEOF
25573 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25574 _ACEOF
25575
25576
25577 { echo "$as_me:$LINENO: checking for int *" >&5
25578 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25579 if test "${ac_cv_type_int_p+set}" = set; then
25580   echo $ECHO_N "(cached) $ECHO_C" >&6
25581 else
25582   cat >conftest.$ac_ext <<_ACEOF
25583 /* confdefs.h.  */
25584 _ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h.  */
25588 $ac_includes_default
25589 typedef int * ac__type_new_;
25590 int
25591 main ()
25592 {
25593 if ((ac__type_new_ *) 0)
25594   return 0;
25595 if (sizeof (ac__type_new_))
25596   return 0;
25597   ;
25598   return 0;
25599 }
25600 _ACEOF
25601 rm -f conftest.$ac_objext
25602 if { (ac_try="$ac_compile"
25603 case "(($ac_try" in
25604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605   *) ac_try_echo=$ac_try;;
25606 esac
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608   (eval "$ac_compile") 2>conftest.er1
25609   ac_status=$?
25610   grep -v '^ *+' conftest.er1 >conftest.err
25611   rm -f conftest.er1
25612   cat conftest.err >&5
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); } && {
25615          test -z "$ac_c_werror_flag" ||
25616          test ! -s conftest.err
25617        } && test -s conftest.$ac_objext; then
25618   ac_cv_type_int_p=yes
25619 else
25620   echo "$as_me: failed program was:" >&5
25621 sed 's/^/| /' conftest.$ac_ext >&5
25622
25623         ac_cv_type_int_p=no
25624 fi
25625
25626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25627 fi
25628 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25629 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25630
25631 # The cast to long int works around a bug in the HP C Compiler
25632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25634 # This bug is HP SR number 8606223364.
25635 { echo "$as_me:$LINENO: checking size of int *" >&5
25636 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25637 if test "${ac_cv_sizeof_int_p+set}" = set; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640   if test "$cross_compiling" = yes; then
25641   # Depending upon the size, compute the lo and hi bounds.
25642 cat >conftest.$ac_ext <<_ACEOF
25643 /* confdefs.h.  */
25644 _ACEOF
25645 cat confdefs.h >>conftest.$ac_ext
25646 cat >>conftest.$ac_ext <<_ACEOF
25647 /* end confdefs.h.  */
25648 $ac_includes_default
25649    typedef int * ac__type_sizeof_;
25650 int
25651 main ()
25652 {
25653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25654 test_array [0] = 0
25655
25656   ;
25657   return 0;
25658 }
25659 _ACEOF
25660 rm -f conftest.$ac_objext
25661 if { (ac_try="$ac_compile"
25662 case "(($ac_try" in
25663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664   *) ac_try_echo=$ac_try;;
25665 esac
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667   (eval "$ac_compile") 2>conftest.er1
25668   ac_status=$?
25669   grep -v '^ *+' conftest.er1 >conftest.err
25670   rm -f conftest.er1
25671   cat conftest.err >&5
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); } && {
25674          test -z "$ac_c_werror_flag" ||
25675          test ! -s conftest.err
25676        } && test -s conftest.$ac_objext; then
25677   ac_lo=0 ac_mid=0
25678   while :; do
25679     cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h.  */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h.  */
25685 $ac_includes_default
25686    typedef int * ac__type_sizeof_;
25687 int
25688 main ()
25689 {
25690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25691 test_array [0] = 0
25692
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (ac_try="$ac_compile"
25699 case "(($ac_try" in
25700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701   *) ac_try_echo=$ac_try;;
25702 esac
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704   (eval "$ac_compile") 2>conftest.er1
25705   ac_status=$?
25706   grep -v '^ *+' conftest.er1 >conftest.err
25707   rm -f conftest.er1
25708   cat conftest.err >&5
25709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710   (exit $ac_status); } && {
25711          test -z "$ac_c_werror_flag" ||
25712          test ! -s conftest.err
25713        } && test -s conftest.$ac_objext; then
25714   ac_hi=$ac_mid; break
25715 else
25716   echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719         ac_lo=`expr $ac_mid + 1`
25720                         if test $ac_lo -le $ac_mid; then
25721                           ac_lo= ac_hi=
25722                           break
25723                         fi
25724                         ac_mid=`expr 2 '*' $ac_mid + 1`
25725 fi
25726
25727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728   done
25729 else
25730   echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25732
25733         cat >conftest.$ac_ext <<_ACEOF
25734 /* confdefs.h.  */
25735 _ACEOF
25736 cat confdefs.h >>conftest.$ac_ext
25737 cat >>conftest.$ac_ext <<_ACEOF
25738 /* end confdefs.h.  */
25739 $ac_includes_default
25740    typedef int * ac__type_sizeof_;
25741 int
25742 main ()
25743 {
25744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25745 test_array [0] = 0
25746
25747   ;
25748   return 0;
25749 }
25750 _ACEOF
25751 rm -f conftest.$ac_objext
25752 if { (ac_try="$ac_compile"
25753 case "(($ac_try" in
25754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25755   *) ac_try_echo=$ac_try;;
25756 esac
25757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25758   (eval "$ac_compile") 2>conftest.er1
25759   ac_status=$?
25760   grep -v '^ *+' conftest.er1 >conftest.err
25761   rm -f conftest.er1
25762   cat conftest.err >&5
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); } && {
25765          test -z "$ac_c_werror_flag" ||
25766          test ! -s conftest.err
25767        } && test -s conftest.$ac_objext; then
25768   ac_hi=-1 ac_mid=-1
25769   while :; do
25770     cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h.  */
25776 $ac_includes_default
25777    typedef int * ac__type_sizeof_;
25778 int
25779 main ()
25780 {
25781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25782 test_array [0] = 0
25783
25784   ;
25785   return 0;
25786 }
25787 _ACEOF
25788 rm -f conftest.$ac_objext
25789 if { (ac_try="$ac_compile"
25790 case "(($ac_try" in
25791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792   *) ac_try_echo=$ac_try;;
25793 esac
25794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25795   (eval "$ac_compile") 2>conftest.er1
25796   ac_status=$?
25797   grep -v '^ *+' conftest.er1 >conftest.err
25798   rm -f conftest.er1
25799   cat conftest.err >&5
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); } && {
25802          test -z "$ac_c_werror_flag" ||
25803          test ! -s conftest.err
25804        } && test -s conftest.$ac_objext; then
25805   ac_lo=$ac_mid; break
25806 else
25807   echo "$as_me: failed program was:" >&5
25808 sed 's/^/| /' conftest.$ac_ext >&5
25809
25810         ac_hi=`expr '(' $ac_mid ')' - 1`
25811                         if test $ac_mid -le $ac_hi; then
25812                           ac_lo= ac_hi=
25813                           break
25814                         fi
25815                         ac_mid=`expr 2 '*' $ac_mid`
25816 fi
25817
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819   done
25820 else
25821   echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25823
25824         ac_lo= ac_hi=
25825 fi
25826
25827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828 fi
25829
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831 # Binary search between lo and hi bounds.
25832 while test "x$ac_lo" != "x$ac_hi"; do
25833   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25834   cat >conftest.$ac_ext <<_ACEOF
25835 /* confdefs.h.  */
25836 _ACEOF
25837 cat confdefs.h >>conftest.$ac_ext
25838 cat >>conftest.$ac_ext <<_ACEOF
25839 /* end confdefs.h.  */
25840 $ac_includes_default
25841    typedef int * ac__type_sizeof_;
25842 int
25843 main ()
25844 {
25845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25846 test_array [0] = 0
25847
25848   ;
25849   return 0;
25850 }
25851 _ACEOF
25852 rm -f conftest.$ac_objext
25853 if { (ac_try="$ac_compile"
25854 case "(($ac_try" in
25855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856   *) ac_try_echo=$ac_try;;
25857 esac
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859   (eval "$ac_compile") 2>conftest.er1
25860   ac_status=$?
25861   grep -v '^ *+' conftest.er1 >conftest.err
25862   rm -f conftest.er1
25863   cat conftest.err >&5
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); } && {
25866          test -z "$ac_c_werror_flag" ||
25867          test ! -s conftest.err
25868        } && test -s conftest.$ac_objext; then
25869   ac_hi=$ac_mid
25870 else
25871   echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874         ac_lo=`expr '(' $ac_mid ')' + 1`
25875 fi
25876
25877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25878 done
25879 case $ac_lo in
25880 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25881 '') if test "$ac_cv_type_int_p" = yes; then
25882      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25883 See \`config.log' for more details." >&5
25884 echo "$as_me: error: cannot compute sizeof (int *)
25885 See \`config.log' for more details." >&2;}
25886    { (exit 77); exit 77; }; }
25887    else
25888      ac_cv_sizeof_int_p=0
25889    fi ;;
25890 esac
25891 else
25892   cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h.  */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h.  */
25898 $ac_includes_default
25899    typedef int * ac__type_sizeof_;
25900 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25901 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25902 #include <stdio.h>
25903 #include <stdlib.h>
25904 int
25905 main ()
25906 {
25907
25908   FILE *f = fopen ("conftest.val", "w");
25909   if (! f)
25910     return 1;
25911   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25912     {
25913       long int i = longval ();
25914       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25915         return 1;
25916       fprintf (f, "%ld\n", i);
25917     }
25918   else
25919     {
25920       unsigned long int i = ulongval ();
25921       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25922         return 1;
25923       fprintf (f, "%lu\n", i);
25924     }
25925   return ferror (f) || fclose (f) != 0;
25926
25927   ;
25928   return 0;
25929 }
25930 _ACEOF
25931 rm -f conftest$ac_exeext
25932 if { (ac_try="$ac_link"
25933 case "(($ac_try" in
25934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935   *) ac_try_echo=$ac_try;;
25936 esac
25937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25938   (eval "$ac_link") 2>&5
25939   ac_status=$?
25940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25942   { (case "(($ac_try" in
25943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944   *) ac_try_echo=$ac_try;;
25945 esac
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947   (eval "$ac_try") 2>&5
25948   ac_status=$?
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); }; }; then
25951   ac_cv_sizeof_int_p=`cat conftest.val`
25952 else
25953   echo "$as_me: program exited with status $ac_status" >&5
25954 echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957 ( exit $ac_status )
25958 if test "$ac_cv_type_int_p" = yes; then
25959      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25960 See \`config.log' for more details." >&5
25961 echo "$as_me: error: cannot compute sizeof (int *)
25962 See \`config.log' for more details." >&2;}
25963    { (exit 77); exit 77; }; }
25964    else
25965      ac_cv_sizeof_int_p=0
25966    fi
25967 fi
25968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25969 fi
25970 rm -f conftest.val
25971 fi
25972 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25973 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25974
25975
25976
25977 cat >>confdefs.h <<_ACEOF
25978 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25979 _ACEOF
25980
25981
25982
25983 # Check for sys/types.h types
25984 { echo "$as_me:$LINENO: checking for u_int type" >&5
25985 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25986 if test "${ac_cv_have_u_int+set}" = set; then
25987   echo $ECHO_N "(cached) $ECHO_C" >&6
25988 else
25989
25990     cat >conftest.$ac_ext <<_ACEOF
25991 /* confdefs.h.  */
25992 _ACEOF
25993 cat confdefs.h >>conftest.$ac_ext
25994 cat >>conftest.$ac_ext <<_ACEOF
25995 /* end confdefs.h.  */
25996  #include <sys/types.h>
25997 int
25998 main ()
25999 {
26000  u_int a; a = 1;
26001   ;
26002   return 0;
26003 }
26004 _ACEOF
26005 rm -f conftest.$ac_objext
26006 if { (ac_try="$ac_compile"
26007 case "(($ac_try" in
26008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009   *) ac_try_echo=$ac_try;;
26010 esac
26011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012   (eval "$ac_compile") 2>conftest.er1
26013   ac_status=$?
26014   grep -v '^ *+' conftest.er1 >conftest.err
26015   rm -f conftest.er1
26016   cat conftest.err >&5
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); } && {
26019          test -z "$ac_c_werror_flag" ||
26020          test ! -s conftest.err
26021        } && test -s conftest.$ac_objext; then
26022    ac_cv_have_u_int="yes"
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027          ac_cv_have_u_int="no"
26028
26029 fi
26030
26031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26032
26033 fi
26034 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26035 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26036 if test "x$ac_cv_have_u_int" = "xyes" ; then
26037    cat >>confdefs.h <<\_ACEOF
26038 #define HAVE_U_INT 1
26039 _ACEOF
26040
26041    have_u_int=1
26042 fi
26043
26044 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26045 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26046 if test "${ac_cv_have_intmax_t+set}" = set; then
26047   echo $ECHO_N "(cached) $ECHO_C" >&6
26048 else
26049
26050    cat >conftest.$ac_ext <<_ACEOF
26051 /* confdefs.h.  */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h.  */
26056  #include <sys/types.h>
26057 int
26058 main ()
26059 {
26060  intmax_t a; a = 1;
26061   ;
26062   return 0;
26063 }
26064 _ACEOF
26065 rm -f conftest.$ac_objext
26066 if { (ac_try="$ac_compile"
26067 case "(($ac_try" in
26068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069   *) ac_try_echo=$ac_try;;
26070 esac
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072   (eval "$ac_compile") 2>conftest.er1
26073   ac_status=$?
26074   grep -v '^ *+' conftest.er1 >conftest.err
26075   rm -f conftest.er1
26076   cat conftest.err >&5
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); } && {
26079          test -z "$ac_c_werror_flag" ||
26080          test ! -s conftest.err
26081        } && test -s conftest.$ac_objext; then
26082    ac_cv_have_intmax_t="yes"
26083 else
26084   echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26086
26087
26088          cat >conftest.$ac_ext <<_ACEOF
26089 /* confdefs.h.  */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h.  */
26094  #include <stdint.h>
26095 int
26096 main ()
26097 {
26098  intmax_t a; a = 1;
26099   ;
26100   return 0;
26101 }
26102 _ACEOF
26103 rm -f conftest.$ac_objext
26104 if { (ac_try="$ac_compile"
26105 case "(($ac_try" in
26106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26107   *) ac_try_echo=$ac_try;;
26108 esac
26109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26110   (eval "$ac_compile") 2>conftest.er1
26111   ac_status=$?
26112   grep -v '^ *+' conftest.er1 >conftest.err
26113   rm -f conftest.er1
26114   cat conftest.err >&5
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } && {
26117          test -z "$ac_c_werror_flag" ||
26118          test ! -s conftest.err
26119        } && test -s conftest.$ac_objext; then
26120    ac_cv_have_intmax_t="yes"
26121 else
26122   echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26124
26125          ac_cv_have_intmax_t="no"
26126
26127 fi
26128
26129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26130
26131
26132 fi
26133
26134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26135
26136
26137 fi
26138 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26139 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26140 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26141    cat >>confdefs.h <<\_ACEOF
26142 #define HAVE_INTMAX_T 1
26143 _ACEOF
26144
26145    have_intmax_t=1
26146 fi
26147
26148
26149 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26150 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26151 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26152   echo $ECHO_N "(cached) $ECHO_C" >&6
26153 else
26154
26155    cat >conftest.$ac_ext <<_ACEOF
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161  #include <sys/types.h>
26162 int
26163 main ()
26164 {
26165  u_intmax_t a; a = 1;
26166   ;
26167   return 0;
26168 }
26169 _ACEOF
26170 rm -f conftest.$ac_objext
26171 if { (ac_try="$ac_compile"
26172 case "(($ac_try" in
26173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174   *) ac_try_echo=$ac_try;;
26175 esac
26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26177   (eval "$ac_compile") 2>conftest.er1
26178   ac_status=$?
26179   grep -v '^ *+' conftest.er1 >conftest.err
26180   rm -f conftest.er1
26181   cat conftest.err >&5
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); } && {
26184          test -z "$ac_c_werror_flag" ||
26185          test ! -s conftest.err
26186        } && test -s conftest.$ac_objext; then
26187    ac_cv_have_u_intmax_t="yes"
26188 else
26189   echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26191
26192
26193          cat >conftest.$ac_ext <<_ACEOF
26194 /* confdefs.h.  */
26195 _ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h.  */
26199  #include <stdint.h>
26200 int
26201 main ()
26202 {
26203  u_intmax_t a; a = 1;
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 rm -f conftest.$ac_objext
26209 if { (ac_try="$ac_compile"
26210 case "(($ac_try" in
26211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26212   *) ac_try_echo=$ac_try;;
26213 esac
26214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26215   (eval "$ac_compile") 2>conftest.er1
26216   ac_status=$?
26217   grep -v '^ *+' conftest.er1 >conftest.err
26218   rm -f conftest.er1
26219   cat conftest.err >&5
26220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221   (exit $ac_status); } && {
26222          test -z "$ac_c_werror_flag" ||
26223          test ! -s conftest.err
26224        } && test -s conftest.$ac_objext; then
26225    ac_cv_have_u_intmax_t="yes"
26226 else
26227   echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26229
26230          ac_cv_have_u_intmax_t="no"
26231
26232 fi
26233
26234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26235
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_u_intmax_t" >&5
26243 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26244 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26245    cat >>confdefs.h <<\_ACEOF
26246 #define HAVE_U_INTMAX_T 1
26247 _ACEOF
26248
26249    have_u_intmax_t=1
26250 fi
26251
26252
26253 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26254 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26255 if test "${ac_cv_have_intxx_t+set}" = set; then
26256   echo $ECHO_N "(cached) $ECHO_C" >&6
26257 else
26258
26259    cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265  #include <sys/types.h>
26266 int
26267 main ()
26268 {
26269  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26270   ;
26271   return 0;
26272 }
26273 _ACEOF
26274 rm -f conftest.$ac_objext
26275 if { (ac_try="$ac_compile"
26276 case "(($ac_try" in
26277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26278   *) ac_try_echo=$ac_try;;
26279 esac
26280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281   (eval "$ac_compile") 2>conftest.er1
26282   ac_status=$?
26283   grep -v '^ *+' conftest.er1 >conftest.err
26284   rm -f conftest.er1
26285   cat conftest.err >&5
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); } && {
26288          test -z "$ac_c_werror_flag" ||
26289          test ! -s conftest.err
26290        } && test -s conftest.$ac_objext; then
26291    ac_cv_have_intxx_t="yes"
26292 else
26293   echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296          ac_cv_have_intxx_t="no"
26297
26298 fi
26299
26300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26301
26302 fi
26303 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26304 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26305 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26306    cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_INTXX_T 1
26308 _ACEOF
26309
26310    have_intxx_t=1
26311 fi
26312
26313 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26314 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26315 if test "${ac_cv_have_int64_t+set}" = set; then
26316   echo $ECHO_N "(cached) $ECHO_C" >&6
26317 else
26318
26319    cat >conftest.$ac_ext <<_ACEOF
26320 /* confdefs.h.  */
26321 _ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h.  */
26325  #include <sys/types.h>
26326 int
26327 main ()
26328 {
26329  int64_t a; a = 1;
26330   ;
26331   return 0;
26332 }
26333 _ACEOF
26334 rm -f conftest.$ac_objext
26335 if { (ac_try="$ac_compile"
26336 case "(($ac_try" in
26337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26338   *) ac_try_echo=$ac_try;;
26339 esac
26340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26341   (eval "$ac_compile") 2>conftest.er1
26342   ac_status=$?
26343   grep -v '^ *+' conftest.er1 >conftest.err
26344   rm -f conftest.er1
26345   cat conftest.err >&5
26346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347   (exit $ac_status); } && {
26348          test -z "$ac_c_werror_flag" ||
26349          test ! -s conftest.err
26350        } && test -s conftest.$ac_objext; then
26351    ac_cv_have_int64_t="yes"
26352 else
26353   echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26355
26356          ac_cv_have_int64_t="no"
26357
26358 fi
26359
26360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26361
26362 fi
26363 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26364 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26365 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26366    cat >>confdefs.h <<\_ACEOF
26367 #define HAVE_INT64_T 1
26368 _ACEOF
26369
26370    have_int64_t=1
26371 fi
26372
26373 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26374 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26375 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26376   echo $ECHO_N "(cached) $ECHO_C" >&6
26377 else
26378
26379    cat >conftest.$ac_ext <<_ACEOF
26380 /* confdefs.h.  */
26381 _ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h.  */
26385  #include <sys/types.h>
26386 int
26387 main ()
26388 {
26389  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 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    ac_cv_have_u_intxx_t="yes"
26412 else
26413   echo "$as_me: failed program was:" >&5
26414 sed 's/^/| /' conftest.$ac_ext >&5
26415
26416          ac_cv_have_u_intxx_t="no"
26417
26418 fi
26419
26420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26421
26422 fi
26423 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26424 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26425 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26426    cat >>confdefs.h <<\_ACEOF
26427 #define HAVE_U_INTXX_T 1
26428 _ACEOF
26429
26430    have_u_intxx_t=1
26431 fi
26432
26433 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26434 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26435 if test "${ac_cv_have_u_int64_t+set}" = set; then
26436   echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26438
26439    cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445  #include <sys/types.h>
26446 int
26447 main ()
26448 {
26449  u_int64_t a; a = 1;
26450   ;
26451   return 0;
26452 }
26453 _ACEOF
26454 rm -f conftest.$ac_objext
26455 if { (ac_try="$ac_compile"
26456 case "(($ac_try" in
26457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458   *) ac_try_echo=$ac_try;;
26459 esac
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461   (eval "$ac_compile") 2>conftest.er1
26462   ac_status=$?
26463   grep -v '^ *+' conftest.er1 >conftest.err
26464   rm -f conftest.er1
26465   cat conftest.err >&5
26466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467   (exit $ac_status); } && {
26468          test -z "$ac_c_werror_flag" ||
26469          test ! -s conftest.err
26470        } && test -s conftest.$ac_objext; then
26471    ac_cv_have_u_int64_t="yes"
26472 else
26473   echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26475
26476          ac_cv_have_u_int64_t="no"
26477
26478 fi
26479
26480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481
26482 fi
26483 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26484 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26485 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26486    cat >>confdefs.h <<\_ACEOF
26487 #define HAVE_U_INT64_T 1
26488 _ACEOF
26489
26490    have_u_int64_t=1
26491 fi
26492
26493 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26494            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26495 then
26496    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26497 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26498    cat >conftest.$ac_ext <<_ACEOF
26499 /* confdefs.h.  */
26500 _ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h.  */
26504  #include <sys/bitypes.h>
26505 int
26506 main ()
26507 {
26508  int8_t a; int16_t b; int32_t c;
26509         u_int8_t e; u_int16_t f; u_int32_t g;
26510         a = b = c = e = f = g = 1;
26511   ;
26512   return 0;
26513 }
26514 _ACEOF
26515 rm -f conftest.$ac_objext
26516 if { (ac_try="$ac_compile"
26517 case "(($ac_try" in
26518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26519   *) ac_try_echo=$ac_try;;
26520 esac
26521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26522   (eval "$ac_compile") 2>conftest.er1
26523   ac_status=$?
26524   grep -v '^ *+' conftest.er1 >conftest.err
26525   rm -f conftest.er1
26526   cat conftest.err >&5
26527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528   (exit $ac_status); } && {
26529          test -z "$ac_c_werror_flag" ||
26530          test ! -s conftest.err
26531        } && test -s conftest.$ac_objext; then
26532    cat >>confdefs.h <<\_ACEOF
26533 #define HAVE_U_INTXX_T 1
26534 _ACEOF
26535
26536         cat >>confdefs.h <<\_ACEOF
26537 #define HAVE_INTXX_T 1
26538 _ACEOF
26539
26540         cat >>confdefs.h <<\_ACEOF
26541 #define HAVE_SYS_BITYPES_H 1
26542 _ACEOF
26543
26544         { echo "$as_me:$LINENO: result: yes" >&5
26545 echo "${ECHO_T}yes" >&6; }
26546 else
26547   echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26549
26550          { echo "$as_me:$LINENO: result: no" >&5
26551 echo "${ECHO_T}no" >&6; }
26552
26553 fi
26554
26555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26556 fi
26557
26558 if test -z "$have_u_intxx_t" ; then
26559    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26560 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26561 if test "${ac_cv_have_uintxx_t+set}" = set; then
26562   echo $ECHO_N "(cached) $ECHO_C" >&6
26563 else
26564
26565       cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571  #include <sys/types.h>
26572 int
26573 main ()
26574 {
26575  uint8_t a; uint16_t b;
26576            uint32_t c; a = b = c = 1;
26577   ;
26578   return 0;
26579 }
26580 _ACEOF
26581 rm -f conftest.$ac_objext
26582 if { (ac_try="$ac_compile"
26583 case "(($ac_try" in
26584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585   *) ac_try_echo=$ac_try;;
26586 esac
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588   (eval "$ac_compile") 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } && {
26595          test -z "$ac_c_werror_flag" ||
26596          test ! -s conftest.err
26597        } && test -s conftest.$ac_objext; then
26598    ac_cv_have_uintxx_t="yes"
26599 else
26600   echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26602
26603          ac_cv_have_uintxx_t="no"
26604
26605 fi
26606
26607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26608
26609 fi
26610 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26611 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26612    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26613       cat >>confdefs.h <<\_ACEOF
26614 #define HAVE_UINTXX_T 1
26615 _ACEOF
26616
26617    fi
26618 fi
26619
26620 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26621           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26622 then
26623    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26624 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26625    cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h.  */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h.  */
26631  #include <sys/bitypes.h>
26632 int
26633 main ()
26634 {
26635  int64_t a; u_int64_t b;
26636        a = b = 1;
26637   ;
26638   return 0;
26639 }
26640 _ACEOF
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645   *) ac_try_echo=$ac_try;;
26646 esac
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648   (eval "$ac_compile") 2>conftest.er1
26649   ac_status=$?
26650   grep -v '^ *+' conftest.er1 >conftest.err
26651   rm -f conftest.er1
26652   cat conftest.err >&5
26653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); } && {
26655          test -z "$ac_c_werror_flag" ||
26656          test ! -s conftest.err
26657        } && test -s conftest.$ac_objext; then
26658    cat >>confdefs.h <<\_ACEOF
26659 #define HAVE_U_INT64_T 1
26660 _ACEOF
26661
26662        cat >>confdefs.h <<\_ACEOF
26663 #define HAVE_INT64_T 1
26664 _ACEOF
26665
26666        { echo "$as_me:$LINENO: result: yes" >&5
26667 echo "${ECHO_T}yes" >&6; }
26668 else
26669   echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672          { echo "$as_me:$LINENO: result: no" >&5
26673 echo "${ECHO_T}no" >&6; }
26674
26675 fi
26676
26677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26678 fi
26679
26680 if (test -z "$have_uintxx_t" && \
26681           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26682 then
26683    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26684 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26685    cat >conftest.$ac_ext <<_ACEOF
26686 /* confdefs.h.  */
26687 _ACEOF
26688 cat confdefs.h >>conftest.$ac_ext
26689 cat >>conftest.$ac_ext <<_ACEOF
26690 /* end confdefs.h.  */
26691  #include <sys/bitypes.h>
26692 int
26693 main ()
26694 {
26695  uint8_t a; uint16_t b;
26696           uint32_t c; a = b = c = 1;
26697   ;
26698   return 0;
26699 }
26700 _ACEOF
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26708   (eval "$ac_compile") 2>conftest.er1
26709   ac_status=$?
26710   grep -v '^ *+' conftest.er1 >conftest.err
26711   rm -f conftest.er1
26712   cat conftest.err >&5
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } && {
26715          test -z "$ac_c_werror_flag" ||
26716          test ! -s conftest.err
26717        } && test -s conftest.$ac_objext; then
26718    cat >>confdefs.h <<\_ACEOF
26719 #define HAVE_UINTXX_T 1
26720 _ACEOF
26721
26722        { echo "$as_me:$LINENO: result: yes" >&5
26723 echo "${ECHO_T}yes" >&6; }
26724 else
26725   echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26727
26728          { echo "$as_me:$LINENO: result: no" >&5
26729 echo "${ECHO_T}no" >&6; }
26730
26731 fi
26732
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26734
26735 fi
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753 for ac_func in \
26754         fork \
26755         getcwd \
26756         gethostname \
26757         getpid \
26758         gettimeofday \
26759         setpgid \
26760         setpgrp \
26761         setsid \
26762         signal \
26763         strerror \
26764         strncmp \
26765         strncpy \
26766         vfprintf \
26767
26768 do
26769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26773   echo $ECHO_N "(cached) $ECHO_C" >&6
26774 else
26775   cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h.  */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h.  */
26781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26783 #define $ac_func innocuous_$ac_func
26784
26785 /* System header to define __stub macros and hopefully few prototypes,
26786     which can conflict with char $ac_func (); below.
26787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26788     <limits.h> exists even on freestanding compilers.  */
26789
26790 #ifdef __STDC__
26791 # include <limits.h>
26792 #else
26793 # include <assert.h>
26794 #endif
26795
26796 #undef $ac_func
26797
26798 /* Override any GCC internal prototype to avoid an error.
26799    Use char because int might match the return type of a GCC
26800    builtin and then its argument prototype would still apply.  */
26801 #ifdef __cplusplus
26802 extern "C"
26803 #endif
26804 char $ac_func ();
26805 /* The GNU C library defines this for functions which it implements
26806     to always fail with ENOSYS.  Some functions are actually named
26807     something starting with __ and the normal name is an alias.  */
26808 #if defined __stub_$ac_func || defined __stub___$ac_func
26809 choke me
26810 #endif
26811
26812 int
26813 main ()
26814 {
26815 return $ac_func ();
26816   ;
26817   return 0;
26818 }
26819 _ACEOF
26820 rm -f conftest.$ac_objext conftest$ac_exeext
26821 if { (ac_try="$ac_link"
26822 case "(($ac_try" in
26823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824   *) ac_try_echo=$ac_try;;
26825 esac
26826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827   (eval "$ac_link") 2>conftest.er1
26828   ac_status=$?
26829   grep -v '^ *+' conftest.er1 >conftest.err
26830   rm -f conftest.er1
26831   cat conftest.err >&5
26832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); } && {
26834          test -z "$ac_c_werror_flag" ||
26835          test ! -s conftest.err
26836        } && test -s conftest$ac_exeext &&
26837        $as_test_x conftest$ac_exeext; then
26838   eval "$as_ac_var=yes"
26839 else
26840   echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843         eval "$as_ac_var=no"
26844 fi
26845
26846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26847       conftest$ac_exeext conftest.$ac_ext
26848 fi
26849 ac_res=`eval echo '${'$as_ac_var'}'`
26850                { echo "$as_me:$LINENO: result: $ac_res" >&5
26851 echo "${ECHO_T}$ac_res" >&6; }
26852 if test `eval echo '${'$as_ac_var'}'` = yes; then
26853   cat >>confdefs.h <<_ACEOF
26854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26855 _ACEOF
26856
26857 else
26858   echo 'configure: cannot find needed function.'; exit 1
26859
26860 fi
26861 done
26862
26863
26864
26865 for ac_func in fchdir
26866 do
26867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26871   echo $ECHO_N "(cached) $ECHO_C" >&6
26872 else
26873   cat >conftest.$ac_ext <<_ACEOF
26874 /* confdefs.h.  */
26875 _ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h.  */
26879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26881 #define $ac_func innocuous_$ac_func
26882
26883 /* System header to define __stub macros and hopefully few prototypes,
26884     which can conflict with char $ac_func (); below.
26885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26886     <limits.h> exists even on freestanding compilers.  */
26887
26888 #ifdef __STDC__
26889 # include <limits.h>
26890 #else
26891 # include <assert.h>
26892 #endif
26893
26894 #undef $ac_func
26895
26896 /* Override any GCC internal prototype to avoid an error.
26897    Use char because int might match the return type of a GCC
26898    builtin and then its argument prototype would still apply.  */
26899 #ifdef __cplusplus
26900 extern "C"
26901 #endif
26902 char $ac_func ();
26903 /* The GNU C library defines this for functions which it implements
26904     to always fail with ENOSYS.  Some functions are actually named
26905     something starting with __ and the normal name is an alias.  */
26906 #if defined __stub_$ac_func || defined __stub___$ac_func
26907 choke me
26908 #endif
26909
26910 int
26911 main ()
26912 {
26913 return $ac_func ();
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 rm -f conftest.$ac_objext conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922   *) ac_try_echo=$ac_try;;
26923 esac
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925   (eval "$ac_link") 2>conftest.er1
26926   ac_status=$?
26927   grep -v '^ *+' conftest.er1 >conftest.err
26928   rm -f conftest.er1
26929   cat conftest.err >&5
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); } && {
26932          test -z "$ac_c_werror_flag" ||
26933          test ! -s conftest.err
26934        } && test -s conftest$ac_exeext &&
26935        $as_test_x conftest$ac_exeext; then
26936   eval "$as_ac_var=yes"
26937 else
26938   echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26940
26941         eval "$as_ac_var=no"
26942 fi
26943
26944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26945       conftest$ac_exeext conftest.$ac_ext
26946 fi
26947 ac_res=`eval echo '${'$as_ac_var'}'`
26948                { echo "$as_me:$LINENO: result: $ac_res" >&5
26949 echo "${ECHO_T}$ac_res" >&6; }
26950 if test `eval echo '${'$as_ac_var'}'` = yes; then
26951   cat >>confdefs.h <<_ACEOF
26952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26953 _ACEOF
26954  cat >>confdefs.h <<\_ACEOF
26955 #define HAVE_FCHDIR 1
26956 _ACEOF
26957
26958 fi
26959 done
26960
26961
26962 for ac_func in strtoll
26963 do
26964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26968   echo $ECHO_N "(cached) $ECHO_C" >&6
26969 else
26970   cat >conftest.$ac_ext <<_ACEOF
26971 /* confdefs.h.  */
26972 _ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h.  */
26976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26978 #define $ac_func innocuous_$ac_func
26979
26980 /* System header to define __stub macros and hopefully few prototypes,
26981     which can conflict with char $ac_func (); below.
26982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26983     <limits.h> exists even on freestanding compilers.  */
26984
26985 #ifdef __STDC__
26986 # include <limits.h>
26987 #else
26988 # include <assert.h>
26989 #endif
26990
26991 #undef $ac_func
26992
26993 /* Override any GCC internal prototype to avoid an error.
26994    Use char because int might match the return type of a GCC
26995    builtin and then its argument prototype would still apply.  */
26996 #ifdef __cplusplus
26997 extern "C"
26998 #endif
26999 char $ac_func ();
27000 /* The GNU C library defines this for functions which it implements
27001     to always fail with ENOSYS.  Some functions are actually named
27002     something starting with __ and the normal name is an alias.  */
27003 #if defined __stub_$ac_func || defined __stub___$ac_func
27004 choke me
27005 #endif
27006
27007 int
27008 main ()
27009 {
27010 return $ac_func ();
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019   *) ac_try_echo=$ac_try;;
27020 esac
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022   (eval "$ac_link") 2>conftest.er1
27023   ac_status=$?
27024   grep -v '^ *+' conftest.er1 >conftest.err
27025   rm -f conftest.er1
27026   cat conftest.err >&5
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); } && {
27029          test -z "$ac_c_werror_flag" ||
27030          test ! -s conftest.err
27031        } && test -s conftest$ac_exeext &&
27032        $as_test_x conftest$ac_exeext; then
27033   eval "$as_ac_var=yes"
27034 else
27035   echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038         eval "$as_ac_var=no"
27039 fi
27040
27041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27042       conftest$ac_exeext conftest.$ac_ext
27043 fi
27044 ac_res=`eval echo '${'$as_ac_var'}'`
27045                { echo "$as_me:$LINENO: result: $ac_res" >&5
27046 echo "${ECHO_T}$ac_res" >&6; }
27047 if test `eval echo '${'$as_ac_var'}'` = yes; then
27048   cat >>confdefs.h <<_ACEOF
27049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27050 _ACEOF
27051  cat >>confdefs.h <<\_ACEOF
27052 #define HAVE_STRTOLL 1
27053 _ACEOF
27054
27055 fi
27056 done
27057
27058
27059 for ac_func in posix_fadvise
27060 do
27061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27065   echo $ECHO_N "(cached) $ECHO_C" >&6
27066 else
27067   cat >conftest.$ac_ext <<_ACEOF
27068 /* confdefs.h.  */
27069 _ACEOF
27070 cat confdefs.h >>conftest.$ac_ext
27071 cat >>conftest.$ac_ext <<_ACEOF
27072 /* end confdefs.h.  */
27073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27075 #define $ac_func innocuous_$ac_func
27076
27077 /* System header to define __stub macros and hopefully few prototypes,
27078     which can conflict with char $ac_func (); below.
27079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27080     <limits.h> exists even on freestanding compilers.  */
27081
27082 #ifdef __STDC__
27083 # include <limits.h>
27084 #else
27085 # include <assert.h>
27086 #endif
27087
27088 #undef $ac_func
27089
27090 /* Override any GCC internal prototype to avoid an error.
27091    Use char because int might match the return type of a GCC
27092    builtin and then its argument prototype would still apply.  */
27093 #ifdef __cplusplus
27094 extern "C"
27095 #endif
27096 char $ac_func ();
27097 /* The GNU C library defines this for functions which it implements
27098     to always fail with ENOSYS.  Some functions are actually named
27099     something starting with __ and the normal name is an alias.  */
27100 #if defined __stub_$ac_func || defined __stub___$ac_func
27101 choke me
27102 #endif
27103
27104 int
27105 main ()
27106 {
27107 return $ac_func ();
27108   ;
27109   return 0;
27110 }
27111 _ACEOF
27112 rm -f conftest.$ac_objext conftest$ac_exeext
27113 if { (ac_try="$ac_link"
27114 case "(($ac_try" in
27115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116   *) ac_try_echo=$ac_try;;
27117 esac
27118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119   (eval "$ac_link") 2>conftest.er1
27120   ac_status=$?
27121   grep -v '^ *+' conftest.er1 >conftest.err
27122   rm -f conftest.er1
27123   cat conftest.err >&5
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } && {
27126          test -z "$ac_c_werror_flag" ||
27127          test ! -s conftest.err
27128        } && test -s conftest$ac_exeext &&
27129        $as_test_x conftest$ac_exeext; then
27130   eval "$as_ac_var=yes"
27131 else
27132   echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.$ac_ext >&5
27134
27135         eval "$as_ac_var=no"
27136 fi
27137
27138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27139       conftest$ac_exeext conftest.$ac_ext
27140 fi
27141 ac_res=`eval echo '${'$as_ac_var'}'`
27142                { echo "$as_me:$LINENO: result: $ac_res" >&5
27143 echo "${ECHO_T}$ac_res" >&6; }
27144 if test `eval echo '${'$as_ac_var'}'` = yes; then
27145   cat >>confdefs.h <<_ACEOF
27146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27147 _ACEOF
27148
27149 fi
27150 done
27151
27152
27153 for ac_func in fdatasync
27154 do
27155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27159   echo $ECHO_N "(cached) $ECHO_C" >&6
27160 else
27161   cat >conftest.$ac_ext <<_ACEOF
27162 /* confdefs.h.  */
27163 _ACEOF
27164 cat confdefs.h >>conftest.$ac_ext
27165 cat >>conftest.$ac_ext <<_ACEOF
27166 /* end confdefs.h.  */
27167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27169 #define $ac_func innocuous_$ac_func
27170
27171 /* System header to define __stub macros and hopefully few prototypes,
27172     which can conflict with char $ac_func (); below.
27173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27174     <limits.h> exists even on freestanding compilers.  */
27175
27176 #ifdef __STDC__
27177 # include <limits.h>
27178 #else
27179 # include <assert.h>
27180 #endif
27181
27182 #undef $ac_func
27183
27184 /* Override any GCC internal prototype to avoid an error.
27185    Use char because int might match the return type of a GCC
27186    builtin and then its argument prototype would still apply.  */
27187 #ifdef __cplusplus
27188 extern "C"
27189 #endif
27190 char $ac_func ();
27191 /* The GNU C library defines this for functions which it implements
27192     to always fail with ENOSYS.  Some functions are actually named
27193     something starting with __ and the normal name is an alias.  */
27194 #if defined __stub_$ac_func || defined __stub___$ac_func
27195 choke me
27196 #endif
27197
27198 int
27199 main ()
27200 {
27201 return $ac_func ();
27202   ;
27203   return 0;
27204 }
27205 _ACEOF
27206 rm -f conftest.$ac_objext conftest$ac_exeext
27207 if { (ac_try="$ac_link"
27208 case "(($ac_try" in
27209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210   *) ac_try_echo=$ac_try;;
27211 esac
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213   (eval "$ac_link") 2>conftest.er1
27214   ac_status=$?
27215   grep -v '^ *+' conftest.er1 >conftest.err
27216   rm -f conftest.er1
27217   cat conftest.err >&5
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); } && {
27220          test -z "$ac_c_werror_flag" ||
27221          test ! -s conftest.err
27222        } && test -s conftest$ac_exeext &&
27223        $as_test_x conftest$ac_exeext; then
27224   eval "$as_ac_var=yes"
27225 else
27226   echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27228
27229         eval "$as_ac_var=no"
27230 fi
27231
27232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27233       conftest$ac_exeext conftest.$ac_ext
27234 fi
27235 ac_res=`eval echo '${'$as_ac_var'}'`
27236                { echo "$as_me:$LINENO: result: $ac_res" >&5
27237 echo "${ECHO_T}$ac_res" >&6; }
27238 if test `eval echo '${'$as_ac_var'}'` = yes; then
27239   cat >>confdefs.h <<_ACEOF
27240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27241 _ACEOF
27242
27243 fi
27244 done
27245
27246
27247
27248 for ac_func in chflags
27249 do
27250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27254   echo $ECHO_N "(cached) $ECHO_C" >&6
27255 else
27256   cat >conftest.$ac_ext <<_ACEOF
27257 /* confdefs.h.  */
27258 _ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h.  */
27262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27264 #define $ac_func innocuous_$ac_func
27265
27266 /* System header to define __stub macros and hopefully few prototypes,
27267     which can conflict with char $ac_func (); below.
27268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27269     <limits.h> exists even on freestanding compilers.  */
27270
27271 #ifdef __STDC__
27272 # include <limits.h>
27273 #else
27274 # include <assert.h>
27275 #endif
27276
27277 #undef $ac_func
27278
27279 /* Override any GCC internal prototype to avoid an error.
27280    Use char because int might match the return type of a GCC
27281    builtin and then its argument prototype would still apply.  */
27282 #ifdef __cplusplus
27283 extern "C"
27284 #endif
27285 char $ac_func ();
27286 /* The GNU C library defines this for functions which it implements
27287     to always fail with ENOSYS.  Some functions are actually named
27288     something starting with __ and the normal name is an alias.  */
27289 #if defined __stub_$ac_func || defined __stub___$ac_func
27290 choke me
27291 #endif
27292
27293 int
27294 main ()
27295 {
27296 return $ac_func ();
27297   ;
27298   return 0;
27299 }
27300 _ACEOF
27301 rm -f conftest.$ac_objext conftest$ac_exeext
27302 if { (ac_try="$ac_link"
27303 case "(($ac_try" in
27304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305   *) ac_try_echo=$ac_try;;
27306 esac
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308   (eval "$ac_link") 2>conftest.er1
27309   ac_status=$?
27310   grep -v '^ *+' conftest.er1 >conftest.err
27311   rm -f conftest.er1
27312   cat conftest.err >&5
27313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314   (exit $ac_status); } && {
27315          test -z "$ac_c_werror_flag" ||
27316          test ! -s conftest.err
27317        } && test -s conftest$ac_exeext &&
27318        $as_test_x conftest$ac_exeext; then
27319   eval "$as_ac_var=yes"
27320 else
27321   echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27323
27324         eval "$as_ac_var=no"
27325 fi
27326
27327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27328       conftest$ac_exeext conftest.$ac_ext
27329 fi
27330 ac_res=`eval echo '${'$as_ac_var'}'`
27331                { echo "$as_me:$LINENO: result: $ac_res" >&5
27332 echo "${ECHO_T}$ac_res" >&6; }
27333 if test `eval echo '${'$as_ac_var'}'` = yes; then
27334   cat >>confdefs.h <<_ACEOF
27335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27336 _ACEOF
27337
27338 fi
27339 done
27340
27341
27342
27343
27344
27345
27346 for ac_func in snprintf vsnprintf gethostid fseeko
27347 do
27348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27352   echo $ECHO_N "(cached) $ECHO_C" >&6
27353 else
27354   cat >conftest.$ac_ext <<_ACEOF
27355 /* confdefs.h.  */
27356 _ACEOF
27357 cat confdefs.h >>conftest.$ac_ext
27358 cat >>conftest.$ac_ext <<_ACEOF
27359 /* end confdefs.h.  */
27360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27362 #define $ac_func innocuous_$ac_func
27363
27364 /* System header to define __stub macros and hopefully few prototypes,
27365     which can conflict with char $ac_func (); below.
27366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27367     <limits.h> exists even on freestanding compilers.  */
27368
27369 #ifdef __STDC__
27370 # include <limits.h>
27371 #else
27372 # include <assert.h>
27373 #endif
27374
27375 #undef $ac_func
27376
27377 /* Override any GCC internal prototype to avoid an error.
27378    Use char because int might match the return type of a GCC
27379    builtin and then its argument prototype would still apply.  */
27380 #ifdef __cplusplus
27381 extern "C"
27382 #endif
27383 char $ac_func ();
27384 /* The GNU C library defines this for functions which it implements
27385     to always fail with ENOSYS.  Some functions are actually named
27386     something starting with __ and the normal name is an alias.  */
27387 #if defined __stub_$ac_func || defined __stub___$ac_func
27388 choke me
27389 #endif
27390
27391 int
27392 main ()
27393 {
27394 return $ac_func ();
27395   ;
27396   return 0;
27397 }
27398 _ACEOF
27399 rm -f conftest.$ac_objext conftest$ac_exeext
27400 if { (ac_try="$ac_link"
27401 case "(($ac_try" in
27402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403   *) ac_try_echo=$ac_try;;
27404 esac
27405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406   (eval "$ac_link") 2>conftest.er1
27407   ac_status=$?
27408   grep -v '^ *+' conftest.er1 >conftest.err
27409   rm -f conftest.er1
27410   cat conftest.err >&5
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); } && {
27413          test -z "$ac_c_werror_flag" ||
27414          test ! -s conftest.err
27415        } && test -s conftest$ac_exeext &&
27416        $as_test_x conftest$ac_exeext; then
27417   eval "$as_ac_var=yes"
27418 else
27419   echo "$as_me: failed program was:" >&5
27420 sed 's/^/| /' conftest.$ac_ext >&5
27421
27422         eval "$as_ac_var=no"
27423 fi
27424
27425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27426       conftest$ac_exeext conftest.$ac_ext
27427 fi
27428 ac_res=`eval echo '${'$as_ac_var'}'`
27429                { echo "$as_me:$LINENO: result: $ac_res" >&5
27430 echo "${ECHO_T}$ac_res" >&6; }
27431 if test `eval echo '${'$as_ac_var'}'` = yes; then
27432   cat >>confdefs.h <<_ACEOF
27433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27434 _ACEOF
27435
27436 fi
27437 done
27438
27439
27440 { echo "$as_me:$LINENO: checking for va_copy" >&5
27441 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27442 if test "${ba_cv_va_copy+set}" = set; then
27443   echo $ECHO_N "(cached) $ECHO_C" >&6
27444 else
27445   cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h.  */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h.  */
27451
27452 #include <stdarg.h>
27453 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27454 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27455
27456 int
27457 main ()
27458 {
27459 call_use_va_copy(1,2,3)
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465 if { (ac_try="$ac_link"
27466 case "(($ac_try" in
27467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468   *) ac_try_echo=$ac_try;;
27469 esac
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471   (eval "$ac_link") 2>conftest.er1
27472   ac_status=$?
27473   grep -v '^ *+' conftest.er1 >conftest.err
27474   rm -f conftest.er1
27475   cat conftest.err >&5
27476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); } && {
27478          test -z "$ac_c_werror_flag" ||
27479          test ! -s conftest.err
27480        } && test -s conftest$ac_exeext &&
27481        $as_test_x conftest$ac_exeext; then
27482   ba_cv_va_copy=yes
27483 else
27484   echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487         ba_cv_va_copy=no
27488 fi
27489
27490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27491       conftest$ac_exeext conftest.$ac_ext
27492 fi
27493 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27494 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27495 test $ba_cv_va_copy = yes &&
27496 cat >>confdefs.h <<\_ACEOF
27497 #define HAVE_VA_COPY 1
27498 _ACEOF
27499
27500
27501
27502
27503
27504
27505
27506 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27507 do
27508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27512   echo $ECHO_N "(cached) $ECHO_C" >&6
27513 else
27514   cat >conftest.$ac_ext <<_ACEOF
27515 /* confdefs.h.  */
27516 _ACEOF
27517 cat confdefs.h >>conftest.$ac_ext
27518 cat >>conftest.$ac_ext <<_ACEOF
27519 /* end confdefs.h.  */
27520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27522 #define $ac_func innocuous_$ac_func
27523
27524 /* System header to define __stub macros and hopefully few prototypes,
27525     which can conflict with char $ac_func (); below.
27526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27527     <limits.h> exists even on freestanding compilers.  */
27528
27529 #ifdef __STDC__
27530 # include <limits.h>
27531 #else
27532 # include <assert.h>
27533 #endif
27534
27535 #undef $ac_func
27536
27537 /* Override any GCC internal prototype to avoid an error.
27538    Use char because int might match the return type of a GCC
27539    builtin and then its argument prototype would still apply.  */
27540 #ifdef __cplusplus
27541 extern "C"
27542 #endif
27543 char $ac_func ();
27544 /* The GNU C library defines this for functions which it implements
27545     to always fail with ENOSYS.  Some functions are actually named
27546     something starting with __ and the normal name is an alias.  */
27547 #if defined __stub_$ac_func || defined __stub___$ac_func
27548 choke me
27549 #endif
27550
27551 int
27552 main ()
27553 {
27554 return $ac_func ();
27555   ;
27556   return 0;
27557 }
27558 _ACEOF
27559 rm -f conftest.$ac_objext conftest$ac_exeext
27560 if { (ac_try="$ac_link"
27561 case "(($ac_try" in
27562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563   *) ac_try_echo=$ac_try;;
27564 esac
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566   (eval "$ac_link") 2>conftest.er1
27567   ac_status=$?
27568   grep -v '^ *+' conftest.er1 >conftest.err
27569   rm -f conftest.er1
27570   cat conftest.err >&5
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); } && {
27573          test -z "$ac_c_werror_flag" ||
27574          test ! -s conftest.err
27575        } && test -s conftest$ac_exeext &&
27576        $as_test_x conftest$ac_exeext; then
27577   eval "$as_ac_var=yes"
27578 else
27579   echo "$as_me: failed program was:" >&5
27580 sed 's/^/| /' conftest.$ac_ext >&5
27581
27582         eval "$as_ac_var=no"
27583 fi
27584
27585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27586       conftest$ac_exeext conftest.$ac_ext
27587 fi
27588 ac_res=`eval echo '${'$as_ac_var'}'`
27589                { echo "$as_me:$LINENO: result: $ac_res" >&5
27590 echo "${ECHO_T}$ac_res" >&6; }
27591 if test `eval echo '${'$as_ac_var'}'` = yes; then
27592   cat >>confdefs.h <<_ACEOF
27593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27594 _ACEOF
27595
27596 fi
27597 done
27598
27599
27600 # If resolver functions are not in libc check for -lnsl or -lresolv.
27601 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27602 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27603 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27604   echo $ECHO_N "(cached) $ECHO_C" >&6
27605 else
27606   cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27614 #define gethostbyname_r innocuous_gethostbyname_r
27615
27616 /* System header to define __stub macros and hopefully few prototypes,
27617     which can conflict with char gethostbyname_r (); below.
27618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619     <limits.h> exists even on freestanding compilers.  */
27620
27621 #ifdef __STDC__
27622 # include <limits.h>
27623 #else
27624 # include <assert.h>
27625 #endif
27626
27627 #undef gethostbyname_r
27628
27629 /* Override any GCC internal prototype to avoid an error.
27630    Use char because int might match the return type of a GCC
27631    builtin and then its argument prototype would still apply.  */
27632 #ifdef __cplusplus
27633 extern "C"
27634 #endif
27635 char gethostbyname_r ();
27636 /* The GNU C library defines this for functions which it implements
27637     to always fail with ENOSYS.  Some functions are actually named
27638     something starting with __ and the normal name is an alias.  */
27639 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27640 choke me
27641 #endif
27642
27643 int
27644 main ()
27645 {
27646 return gethostbyname_r ();
27647   ;
27648   return 0;
27649 }
27650 _ACEOF
27651 rm -f conftest.$ac_objext conftest$ac_exeext
27652 if { (ac_try="$ac_link"
27653 case "(($ac_try" in
27654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655   *) ac_try_echo=$ac_try;;
27656 esac
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658   (eval "$ac_link") 2>conftest.er1
27659   ac_status=$?
27660   grep -v '^ *+' conftest.er1 >conftest.err
27661   rm -f conftest.er1
27662   cat conftest.err >&5
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); } && {
27665          test -z "$ac_c_werror_flag" ||
27666          test ! -s conftest.err
27667        } && test -s conftest$ac_exeext &&
27668        $as_test_x conftest$ac_exeext; then
27669   ac_cv_func_gethostbyname_r=yes
27670 else
27671   echo "$as_me: failed program was:" >&5
27672 sed 's/^/| /' conftest.$ac_ext >&5
27673
27674         ac_cv_func_gethostbyname_r=no
27675 fi
27676
27677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27678       conftest$ac_exeext conftest.$ac_ext
27679 fi
27680 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27681 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27682 if test $ac_cv_func_gethostbyname_r = yes; then
27683   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27684 echo "${ECHO_T}using libc's resolver" >&6; }
27685 else
27686
27687 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27688 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27689 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   ac_check_lib_save_LIBS=$LIBS
27693 LIBS="-lnsl  $LIBS"
27694 cat >conftest.$ac_ext <<_ACEOF
27695 /* confdefs.h.  */
27696 _ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h.  */
27700
27701 /* Override any GCC internal prototype to avoid an error.
27702    Use char because int might match the return type of a GCC
27703    builtin and then its argument prototype would still apply.  */
27704 #ifdef __cplusplus
27705 extern "C"
27706 #endif
27707 char gethostbyname_r ();
27708 int
27709 main ()
27710 {
27711 return gethostbyname_r ();
27712   ;
27713   return 0;
27714 }
27715 _ACEOF
27716 rm -f conftest.$ac_objext conftest$ac_exeext
27717 if { (ac_try="$ac_link"
27718 case "(($ac_try" in
27719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27720   *) ac_try_echo=$ac_try;;
27721 esac
27722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27723   (eval "$ac_link") 2>conftest.er1
27724   ac_status=$?
27725   grep -v '^ *+' conftest.er1 >conftest.err
27726   rm -f conftest.er1
27727   cat conftest.err >&5
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); } && {
27730          test -z "$ac_c_werror_flag" ||
27731          test ! -s conftest.err
27732        } && test -s conftest$ac_exeext &&
27733        $as_test_x conftest$ac_exeext; then
27734   ac_cv_lib_nsl_gethostbyname_r=yes
27735 else
27736   echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27738
27739         ac_cv_lib_nsl_gethostbyname_r=no
27740 fi
27741
27742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27743       conftest$ac_exeext conftest.$ac_ext
27744 LIBS=$ac_check_lib_save_LIBS
27745 fi
27746 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27747 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27748 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27749   cat >>confdefs.h <<_ACEOF
27750 #define HAVE_LIBNSL 1
27751 _ACEOF
27752
27753   LIBS="-lnsl $LIBS"
27754
27755 fi
27756
27757
27758 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27759 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27760 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27761   echo $ECHO_N "(cached) $ECHO_C" >&6
27762 else
27763   ac_check_lib_save_LIBS=$LIBS
27764 LIBS="-lresolv  $LIBS"
27765 cat >conftest.$ac_ext <<_ACEOF
27766 /* confdefs.h.  */
27767 _ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h.  */
27771
27772 /* Override any GCC internal prototype to avoid an error.
27773    Use char because int might match the return type of a GCC
27774    builtin and then its argument prototype would still apply.  */
27775 #ifdef __cplusplus
27776 extern "C"
27777 #endif
27778 char gethostbyname_r ();
27779 int
27780 main ()
27781 {
27782 return gethostbyname_r ();
27783   ;
27784   return 0;
27785 }
27786 _ACEOF
27787 rm -f conftest.$ac_objext conftest$ac_exeext
27788 if { (ac_try="$ac_link"
27789 case "(($ac_try" in
27790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791   *) ac_try_echo=$ac_try;;
27792 esac
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794   (eval "$ac_link") 2>conftest.er1
27795   ac_status=$?
27796   grep -v '^ *+' conftest.er1 >conftest.err
27797   rm -f conftest.er1
27798   cat conftest.err >&5
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); } && {
27801          test -z "$ac_c_werror_flag" ||
27802          test ! -s conftest.err
27803        } && test -s conftest$ac_exeext &&
27804        $as_test_x conftest$ac_exeext; then
27805   ac_cv_lib_resolv_gethostbyname_r=yes
27806 else
27807   echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27809
27810         ac_cv_lib_resolv_gethostbyname_r=no
27811 fi
27812
27813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27814       conftest$ac_exeext conftest.$ac_ext
27815 LIBS=$ac_check_lib_save_LIBS
27816 fi
27817 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27818 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27819 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27820   cat >>confdefs.h <<_ACEOF
27821 #define HAVE_LIBRESOLV 1
27822 _ACEOF
27823
27824   LIBS="-lresolv $LIBS"
27825
27826 fi
27827
27828 fi
27829
27830
27831
27832
27833
27834 for ac_func in inet_pton
27835 do
27836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27840   echo $ECHO_N "(cached) $ECHO_C" >&6
27841 else
27842   cat >conftest.$ac_ext <<_ACEOF
27843 /* confdefs.h.  */
27844 _ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h.  */
27848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27850 #define $ac_func innocuous_$ac_func
27851
27852 /* System header to define __stub macros and hopefully few prototypes,
27853     which can conflict with char $ac_func (); below.
27854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27855     <limits.h> exists even on freestanding compilers.  */
27856
27857 #ifdef __STDC__
27858 # include <limits.h>
27859 #else
27860 # include <assert.h>
27861 #endif
27862
27863 #undef $ac_func
27864
27865 /* Override any GCC internal prototype to avoid an error.
27866    Use char because int might match the return type of a GCC
27867    builtin and then its argument prototype would still apply.  */
27868 #ifdef __cplusplus
27869 extern "C"
27870 #endif
27871 char $ac_func ();
27872 /* The GNU C library defines this for functions which it implements
27873     to always fail with ENOSYS.  Some functions are actually named
27874     something starting with __ and the normal name is an alias.  */
27875 #if defined __stub_$ac_func || defined __stub___$ac_func
27876 choke me
27877 #endif
27878
27879 int
27880 main ()
27881 {
27882 return $ac_func ();
27883   ;
27884   return 0;
27885 }
27886 _ACEOF
27887 rm -f conftest.$ac_objext conftest$ac_exeext
27888 if { (ac_try="$ac_link"
27889 case "(($ac_try" in
27890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891   *) ac_try_echo=$ac_try;;
27892 esac
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894   (eval "$ac_link") 2>conftest.er1
27895   ac_status=$?
27896   grep -v '^ *+' conftest.er1 >conftest.err
27897   rm -f conftest.er1
27898   cat conftest.err >&5
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); } && {
27901          test -z "$ac_c_werror_flag" ||
27902          test ! -s conftest.err
27903        } && test -s conftest$ac_exeext &&
27904        $as_test_x conftest$ac_exeext; then
27905   eval "$as_ac_var=yes"
27906 else
27907   echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27909
27910         eval "$as_ac_var=no"
27911 fi
27912
27913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27914       conftest$ac_exeext conftest.$ac_ext
27915 fi
27916 ac_res=`eval echo '${'$as_ac_var'}'`
27917                { echo "$as_me:$LINENO: result: $ac_res" >&5
27918 echo "${ECHO_T}$ac_res" >&6; }
27919 if test `eval echo '${'$as_ac_var'}'` = yes; then
27920   cat >>confdefs.h <<_ACEOF
27921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27922 _ACEOF
27923  cat >>confdefs.h <<\_ACEOF
27924 #define HAVE_INET_PTON 1
27925 _ACEOF
27926
27927 fi
27928 done
27929
27930
27931 for ac_func in inet_ntop
27932 do
27933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27937   echo $ECHO_N "(cached) $ECHO_C" >&6
27938 else
27939   cat >conftest.$ac_ext <<_ACEOF
27940 /* confdefs.h.  */
27941 _ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h.  */
27945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27947 #define $ac_func innocuous_$ac_func
27948
27949 /* System header to define __stub macros and hopefully few prototypes,
27950     which can conflict with char $ac_func (); below.
27951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27952     <limits.h> exists even on freestanding compilers.  */
27953
27954 #ifdef __STDC__
27955 # include <limits.h>
27956 #else
27957 # include <assert.h>
27958 #endif
27959
27960 #undef $ac_func
27961
27962 /* Override any GCC internal prototype to avoid an error.
27963    Use char because int might match the return type of a GCC
27964    builtin and then its argument prototype would still apply.  */
27965 #ifdef __cplusplus
27966 extern "C"
27967 #endif
27968 char $ac_func ();
27969 /* The GNU C library defines this for functions which it implements
27970     to always fail with ENOSYS.  Some functions are actually named
27971     something starting with __ and the normal name is an alias.  */
27972 #if defined __stub_$ac_func || defined __stub___$ac_func
27973 choke me
27974 #endif
27975
27976 int
27977 main ()
27978 {
27979 return $ac_func ();
27980   ;
27981   return 0;
27982 }
27983 _ACEOF
27984 rm -f conftest.$ac_objext conftest$ac_exeext
27985 if { (ac_try="$ac_link"
27986 case "(($ac_try" in
27987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988   *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991   (eval "$ac_link") 2>conftest.er1
27992   ac_status=$?
27993   grep -v '^ *+' conftest.er1 >conftest.err
27994   rm -f conftest.er1
27995   cat conftest.err >&5
27996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997   (exit $ac_status); } && {
27998          test -z "$ac_c_werror_flag" ||
27999          test ! -s conftest.err
28000        } && test -s conftest$ac_exeext &&
28001        $as_test_x conftest$ac_exeext; then
28002   eval "$as_ac_var=yes"
28003 else
28004   echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28006
28007         eval "$as_ac_var=no"
28008 fi
28009
28010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28011       conftest$ac_exeext conftest.$ac_ext
28012 fi
28013 ac_res=`eval echo '${'$as_ac_var'}'`
28014                { echo "$as_me:$LINENO: result: $ac_res" >&5
28015 echo "${ECHO_T}$ac_res" >&6; }
28016 if test `eval echo '${'$as_ac_var'}'` = yes; then
28017   cat >>confdefs.h <<_ACEOF
28018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28019 _ACEOF
28020  cat >>confdefs.h <<\_ACEOF
28021 #define HAVE_INET_NTOP 1
28022 _ACEOF
28023
28024 fi
28025 done
28026
28027
28028 for ac_func in gethostbyname2
28029 do
28030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28034   echo $ECHO_N "(cached) $ECHO_C" >&6
28035 else
28036   cat >conftest.$ac_ext <<_ACEOF
28037 /* confdefs.h.  */
28038 _ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h.  */
28042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28044 #define $ac_func innocuous_$ac_func
28045
28046 /* System header to define __stub macros and hopefully few prototypes,
28047     which can conflict with char $ac_func (); below.
28048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28049     <limits.h> exists even on freestanding compilers.  */
28050
28051 #ifdef __STDC__
28052 # include <limits.h>
28053 #else
28054 # include <assert.h>
28055 #endif
28056
28057 #undef $ac_func
28058
28059 /* Override any GCC internal prototype to avoid an error.
28060    Use char because int might match the return type of a GCC
28061    builtin and then its argument prototype would still apply.  */
28062 #ifdef __cplusplus
28063 extern "C"
28064 #endif
28065 char $ac_func ();
28066 /* The GNU C library defines this for functions which it implements
28067     to always fail with ENOSYS.  Some functions are actually named
28068     something starting with __ and the normal name is an alias.  */
28069 #if defined __stub_$ac_func || defined __stub___$ac_func
28070 choke me
28071 #endif
28072
28073 int
28074 main ()
28075 {
28076 return $ac_func ();
28077   ;
28078   return 0;
28079 }
28080 _ACEOF
28081 rm -f conftest.$ac_objext conftest$ac_exeext
28082 if { (ac_try="$ac_link"
28083 case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_link") 2>conftest.er1
28089   ac_status=$?
28090   grep -v '^ *+' conftest.er1 >conftest.err
28091   rm -f conftest.er1
28092   cat conftest.err >&5
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); } && {
28095          test -z "$ac_c_werror_flag" ||
28096          test ! -s conftest.err
28097        } && test -s conftest$ac_exeext &&
28098        $as_test_x conftest$ac_exeext; then
28099   eval "$as_ac_var=yes"
28100 else
28101   echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104         eval "$as_ac_var=no"
28105 fi
28106
28107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28108       conftest$ac_exeext conftest.$ac_ext
28109 fi
28110 ac_res=`eval echo '${'$as_ac_var'}'`
28111                { echo "$as_me:$LINENO: result: $ac_res" >&5
28112 echo "${ECHO_T}$ac_res" >&6; }
28113 if test `eval echo '${'$as_ac_var'}'` = yes; then
28114   cat >>confdefs.h <<_ACEOF
28115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28116 _ACEOF
28117  cat >>confdefs.h <<\_ACEOF
28118 #define HAVE_GETHOSTBYNAME2 1
28119 _ACEOF
28120
28121 fi
28122 done
28123
28124
28125 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28126 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28127 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28128   echo $ECHO_N "(cached) $ECHO_C" >&6
28129 else
28130   cat >conftest.$ac_ext <<_ACEOF
28131 /* confdefs.h.  */
28132 _ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h.  */
28136 #include <sys/socket.h>
28137 int
28138 main ()
28139 {
28140 struct sockaddr s; s.sa_len;
28141   ;
28142   return 0;
28143 }
28144 _ACEOF
28145 rm -f conftest.$ac_objext
28146 if { (ac_try="$ac_compile"
28147 case "(($ac_try" in
28148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149   *) ac_try_echo=$ac_try;;
28150 esac
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152   (eval "$ac_compile") 2>conftest.er1
28153   ac_status=$?
28154   grep -v '^ *+' conftest.er1 >conftest.err
28155   rm -f conftest.er1
28156   cat conftest.err >&5
28157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158   (exit $ac_status); } && {
28159          test -z "$ac_c_werror_flag" ||
28160          test ! -s conftest.err
28161        } && test -s conftest.$ac_objext; then
28162   ac_cv_struct_sockaddr_sa_len=yes
28163 else
28164   echo "$as_me: failed program was:" >&5
28165 sed 's/^/| /' conftest.$ac_ext >&5
28166
28167         ac_cv_struct_sockaddr_sa_len=no
28168 fi
28169
28170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28171 fi
28172 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28173 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28174
28175  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28176
28177 cat >>confdefs.h <<\_ACEOF
28178 #define HAVE_SA_LEN 1
28179 _ACEOF
28180
28181  fi
28182
28183
28184
28185
28186
28187 for ac_func in strftime
28188 do
28189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28193   echo $ECHO_N "(cached) $ECHO_C" >&6
28194 else
28195   cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h.  */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h.  */
28201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28203 #define $ac_func innocuous_$ac_func
28204
28205 /* System header to define __stub macros and hopefully few prototypes,
28206     which can conflict with char $ac_func (); below.
28207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28208     <limits.h> exists even on freestanding compilers.  */
28209
28210 #ifdef __STDC__
28211 # include <limits.h>
28212 #else
28213 # include <assert.h>
28214 #endif
28215
28216 #undef $ac_func
28217
28218 /* Override any GCC internal prototype to avoid an error.
28219    Use char because int might match the return type of a GCC
28220    builtin and then its argument prototype would still apply.  */
28221 #ifdef __cplusplus
28222 extern "C"
28223 #endif
28224 char $ac_func ();
28225 /* The GNU C library defines this for functions which it implements
28226     to always fail with ENOSYS.  Some functions are actually named
28227     something starting with __ and the normal name is an alias.  */
28228 #if defined __stub_$ac_func || defined __stub___$ac_func
28229 choke me
28230 #endif
28231
28232 int
28233 main ()
28234 {
28235 return $ac_func ();
28236   ;
28237   return 0;
28238 }
28239 _ACEOF
28240 rm -f conftest.$ac_objext conftest$ac_exeext
28241 if { (ac_try="$ac_link"
28242 case "(($ac_try" in
28243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244   *) ac_try_echo=$ac_try;;
28245 esac
28246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247   (eval "$ac_link") 2>conftest.er1
28248   ac_status=$?
28249   grep -v '^ *+' conftest.er1 >conftest.err
28250   rm -f conftest.er1
28251   cat conftest.err >&5
28252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253   (exit $ac_status); } && {
28254          test -z "$ac_c_werror_flag" ||
28255          test ! -s conftest.err
28256        } && test -s conftest$ac_exeext &&
28257        $as_test_x conftest$ac_exeext; then
28258   eval "$as_ac_var=yes"
28259 else
28260   echo "$as_me: failed program was:" >&5
28261 sed 's/^/| /' conftest.$ac_ext >&5
28262
28263         eval "$as_ac_var=no"
28264 fi
28265
28266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28267       conftest$ac_exeext conftest.$ac_ext
28268 fi
28269 ac_res=`eval echo '${'$as_ac_var'}'`
28270                { echo "$as_me:$LINENO: result: $ac_res" >&5
28271 echo "${ECHO_T}$ac_res" >&6; }
28272 if test `eval echo '${'$as_ac_var'}'` = yes; then
28273   cat >>confdefs.h <<_ACEOF
28274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28275 _ACEOF
28276
28277 else
28278   # strftime is in -lintl on SCO UNIX.
28279 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28280 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28281 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28282   echo $ECHO_N "(cached) $ECHO_C" >&6
28283 else
28284   ac_check_lib_save_LIBS=$LIBS
28285 LIBS="-lintl  $LIBS"
28286 cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h.  */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h.  */
28292
28293 /* Override any GCC internal prototype to avoid an error.
28294    Use char because int might match the return type of a GCC
28295    builtin and then its argument prototype would still apply.  */
28296 #ifdef __cplusplus
28297 extern "C"
28298 #endif
28299 char strftime ();
28300 int
28301 main ()
28302 {
28303 return strftime ();
28304   ;
28305   return 0;
28306 }
28307 _ACEOF
28308 rm -f conftest.$ac_objext conftest$ac_exeext
28309 if { (ac_try="$ac_link"
28310 case "(($ac_try" in
28311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312   *) ac_try_echo=$ac_try;;
28313 esac
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315   (eval "$ac_link") 2>conftest.er1
28316   ac_status=$?
28317   grep -v '^ *+' conftest.er1 >conftest.err
28318   rm -f conftest.er1
28319   cat conftest.err >&5
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); } && {
28322          test -z "$ac_c_werror_flag" ||
28323          test ! -s conftest.err
28324        } && test -s conftest$ac_exeext &&
28325        $as_test_x conftest$ac_exeext; then
28326   ac_cv_lib_intl_strftime=yes
28327 else
28328   echo "$as_me: failed program was:" >&5
28329 sed 's/^/| /' conftest.$ac_ext >&5
28330
28331         ac_cv_lib_intl_strftime=no
28332 fi
28333
28334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28335       conftest$ac_exeext conftest.$ac_ext
28336 LIBS=$ac_check_lib_save_LIBS
28337 fi
28338 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28339 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28340 if test $ac_cv_lib_intl_strftime = yes; then
28341   cat >>confdefs.h <<\_ACEOF
28342 #define HAVE_STRFTIME 1
28343 _ACEOF
28344
28345 LIBS="-lintl $LIBS"
28346 fi
28347
28348 fi
28349 done
28350
28351
28352 for ac_func in vprintf
28353 do
28354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28358   echo $ECHO_N "(cached) $ECHO_C" >&6
28359 else
28360   cat >conftest.$ac_ext <<_ACEOF
28361 /* confdefs.h.  */
28362 _ACEOF
28363 cat confdefs.h >>conftest.$ac_ext
28364 cat >>conftest.$ac_ext <<_ACEOF
28365 /* end confdefs.h.  */
28366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28368 #define $ac_func innocuous_$ac_func
28369
28370 /* System header to define __stub macros and hopefully few prototypes,
28371     which can conflict with char $ac_func (); below.
28372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28373     <limits.h> exists even on freestanding compilers.  */
28374
28375 #ifdef __STDC__
28376 # include <limits.h>
28377 #else
28378 # include <assert.h>
28379 #endif
28380
28381 #undef $ac_func
28382
28383 /* Override any GCC internal prototype to avoid an error.
28384    Use char because int might match the return type of a GCC
28385    builtin and then its argument prototype would still apply.  */
28386 #ifdef __cplusplus
28387 extern "C"
28388 #endif
28389 char $ac_func ();
28390 /* The GNU C library defines this for functions which it implements
28391     to always fail with ENOSYS.  Some functions are actually named
28392     something starting with __ and the normal name is an alias.  */
28393 #if defined __stub_$ac_func || defined __stub___$ac_func
28394 choke me
28395 #endif
28396
28397 int
28398 main ()
28399 {
28400 return $ac_func ();
28401   ;
28402   return 0;
28403 }
28404 _ACEOF
28405 rm -f conftest.$ac_objext conftest$ac_exeext
28406 if { (ac_try="$ac_link"
28407 case "(($ac_try" in
28408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409   *) ac_try_echo=$ac_try;;
28410 esac
28411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412   (eval "$ac_link") 2>conftest.er1
28413   ac_status=$?
28414   grep -v '^ *+' conftest.er1 >conftest.err
28415   rm -f conftest.er1
28416   cat conftest.err >&5
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); } && {
28419          test -z "$ac_c_werror_flag" ||
28420          test ! -s conftest.err
28421        } && test -s conftest$ac_exeext &&
28422        $as_test_x conftest$ac_exeext; then
28423   eval "$as_ac_var=yes"
28424 else
28425   echo "$as_me: failed program was:" >&5
28426 sed 's/^/| /' conftest.$ac_ext >&5
28427
28428         eval "$as_ac_var=no"
28429 fi
28430
28431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28432       conftest$ac_exeext conftest.$ac_ext
28433 fi
28434 ac_res=`eval echo '${'$as_ac_var'}'`
28435                { echo "$as_me:$LINENO: result: $ac_res" >&5
28436 echo "${ECHO_T}$ac_res" >&6; }
28437 if test `eval echo '${'$as_ac_var'}'` = yes; then
28438   cat >>confdefs.h <<_ACEOF
28439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28440 _ACEOF
28441
28442 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28443 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28444 if test "${ac_cv_func__doprnt+set}" = set; then
28445   echo $ECHO_N "(cached) $ECHO_C" >&6
28446 else
28447   cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28455 #define _doprnt innocuous__doprnt
28456
28457 /* System header to define __stub macros and hopefully few prototypes,
28458     which can conflict with char _doprnt (); below.
28459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28460     <limits.h> exists even on freestanding compilers.  */
28461
28462 #ifdef __STDC__
28463 # include <limits.h>
28464 #else
28465 # include <assert.h>
28466 #endif
28467
28468 #undef _doprnt
28469
28470 /* Override any GCC internal prototype to avoid an error.
28471    Use char because int might match the return type of a GCC
28472    builtin and then its argument prototype would still apply.  */
28473 #ifdef __cplusplus
28474 extern "C"
28475 #endif
28476 char _doprnt ();
28477 /* The GNU C library defines this for functions which it implements
28478     to always fail with ENOSYS.  Some functions are actually named
28479     something starting with __ and the normal name is an alias.  */
28480 #if defined __stub__doprnt || defined __stub____doprnt
28481 choke me
28482 #endif
28483
28484 int
28485 main ()
28486 {
28487 return _doprnt ();
28488   ;
28489   return 0;
28490 }
28491 _ACEOF
28492 rm -f conftest.$ac_objext conftest$ac_exeext
28493 if { (ac_try="$ac_link"
28494 case "(($ac_try" in
28495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496   *) ac_try_echo=$ac_try;;
28497 esac
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499   (eval "$ac_link") 2>conftest.er1
28500   ac_status=$?
28501   grep -v '^ *+' conftest.er1 >conftest.err
28502   rm -f conftest.er1
28503   cat conftest.err >&5
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); } && {
28506          test -z "$ac_c_werror_flag" ||
28507          test ! -s conftest.err
28508        } && test -s conftest$ac_exeext &&
28509        $as_test_x conftest$ac_exeext; then
28510   ac_cv_func__doprnt=yes
28511 else
28512   echo "$as_me: failed program was:" >&5
28513 sed 's/^/| /' conftest.$ac_ext >&5
28514
28515         ac_cv_func__doprnt=no
28516 fi
28517
28518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28519       conftest$ac_exeext conftest.$ac_ext
28520 fi
28521 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28522 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28523 if test $ac_cv_func__doprnt = yes; then
28524
28525 cat >>confdefs.h <<\_ACEOF
28526 #define HAVE_DOPRNT 1
28527 _ACEOF
28528
28529 fi
28530
28531 fi
28532 done
28533
28534
28535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28536 # for constant arguments.  Useless!
28537 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28538 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28539 if test "${ac_cv_working_alloca_h+set}" = set; then
28540   echo $ECHO_N "(cached) $ECHO_C" >&6
28541 else
28542   cat >conftest.$ac_ext <<_ACEOF
28543 /* confdefs.h.  */
28544 _ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h.  */
28548 #include <alloca.h>
28549 int
28550 main ()
28551 {
28552 char *p = (char *) alloca (2 * sizeof (int));
28553                           if (p) return 0;
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest.$ac_objext conftest$ac_exeext
28559 if { (ac_try="$ac_link"
28560 case "(($ac_try" in
28561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562   *) ac_try_echo=$ac_try;;
28563 esac
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565   (eval "$ac_link") 2>conftest.er1
28566   ac_status=$?
28567   grep -v '^ *+' conftest.er1 >conftest.err
28568   rm -f conftest.er1
28569   cat conftest.err >&5
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); } && {
28572          test -z "$ac_c_werror_flag" ||
28573          test ! -s conftest.err
28574        } && test -s conftest$ac_exeext &&
28575        $as_test_x conftest$ac_exeext; then
28576   ac_cv_working_alloca_h=yes
28577 else
28578   echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581         ac_cv_working_alloca_h=no
28582 fi
28583
28584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28585       conftest$ac_exeext conftest.$ac_ext
28586 fi
28587 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28588 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28589 if test $ac_cv_working_alloca_h = yes; then
28590
28591 cat >>confdefs.h <<\_ACEOF
28592 #define HAVE_ALLOCA_H 1
28593 _ACEOF
28594
28595 fi
28596
28597 { echo "$as_me:$LINENO: checking for alloca" >&5
28598 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28599 if test "${ac_cv_func_alloca_works+set}" = set; then
28600   echo $ECHO_N "(cached) $ECHO_C" >&6
28601 else
28602   cat >conftest.$ac_ext <<_ACEOF
28603 /* confdefs.h.  */
28604 _ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h.  */
28608 #ifdef __GNUC__
28609 # define alloca __builtin_alloca
28610 #else
28611 # ifdef _MSC_VER
28612 #  include <malloc.h>
28613 #  define alloca _alloca
28614 # else
28615 #  ifdef HAVE_ALLOCA_H
28616 #   include <alloca.h>
28617 #  else
28618 #   ifdef _AIX
28619  #pragma alloca
28620 #   else
28621 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28622 char *alloca ();
28623 #    endif
28624 #   endif
28625 #  endif
28626 # endif
28627 #endif
28628
28629 int
28630 main ()
28631 {
28632 char *p = (char *) alloca (1);
28633                                     if (p) return 0;
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest.$ac_objext conftest$ac_exeext
28639 if { (ac_try="$ac_link"
28640 case "(($ac_try" in
28641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28642   *) ac_try_echo=$ac_try;;
28643 esac
28644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28645   (eval "$ac_link") 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } && {
28652          test -z "$ac_c_werror_flag" ||
28653          test ! -s conftest.err
28654        } && test -s conftest$ac_exeext &&
28655        $as_test_x conftest$ac_exeext; then
28656   ac_cv_func_alloca_works=yes
28657 else
28658   echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28660
28661         ac_cv_func_alloca_works=no
28662 fi
28663
28664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28665       conftest$ac_exeext conftest.$ac_ext
28666 fi
28667 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28668 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28669
28670 if test $ac_cv_func_alloca_works = yes; then
28671
28672 cat >>confdefs.h <<\_ACEOF
28673 #define HAVE_ALLOCA 1
28674 _ACEOF
28675
28676 else
28677   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28678 # that cause trouble.  Some versions do not even contain alloca or
28679 # contain a buggy version.  If you still want to use their alloca,
28680 # use ar to extract alloca.o from them instead of compiling alloca.c.
28681
28682 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28683
28684 cat >>confdefs.h <<\_ACEOF
28685 #define C_ALLOCA 1
28686 _ACEOF
28687
28688
28689 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28690 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28691 if test "${ac_cv_os_cray+set}" = set; then
28692   echo $ECHO_N "(cached) $ECHO_C" >&6
28693 else
28694   cat >conftest.$ac_ext <<_ACEOF
28695 /* confdefs.h.  */
28696 _ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h.  */
28700 #if defined CRAY && ! defined CRAY2
28701 webecray
28702 #else
28703 wenotbecray
28704 #endif
28705
28706 _ACEOF
28707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28708   $EGREP "webecray" >/dev/null 2>&1; then
28709   ac_cv_os_cray=yes
28710 else
28711   ac_cv_os_cray=no
28712 fi
28713 rm -f conftest*
28714
28715 fi
28716 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28717 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28718 if test $ac_cv_os_cray = yes; then
28719   for ac_func in _getb67 GETB67 getb67; do
28720     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28724   echo $ECHO_N "(cached) $ECHO_C" >&6
28725 else
28726   cat >conftest.$ac_ext <<_ACEOF
28727 /* confdefs.h.  */
28728 _ACEOF
28729 cat confdefs.h >>conftest.$ac_ext
28730 cat >>conftest.$ac_ext <<_ACEOF
28731 /* end confdefs.h.  */
28732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28734 #define $ac_func innocuous_$ac_func
28735
28736 /* System header to define __stub macros and hopefully few prototypes,
28737     which can conflict with char $ac_func (); below.
28738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28739     <limits.h> exists even on freestanding compilers.  */
28740
28741 #ifdef __STDC__
28742 # include <limits.h>
28743 #else
28744 # include <assert.h>
28745 #endif
28746
28747 #undef $ac_func
28748
28749 /* Override any GCC internal prototype to avoid an error.
28750    Use char because int might match the return type of a GCC
28751    builtin and then its argument prototype would still apply.  */
28752 #ifdef __cplusplus
28753 extern "C"
28754 #endif
28755 char $ac_func ();
28756 /* The GNU C library defines this for functions which it implements
28757     to always fail with ENOSYS.  Some functions are actually named
28758     something starting with __ and the normal name is an alias.  */
28759 #if defined __stub_$ac_func || defined __stub___$ac_func
28760 choke me
28761 #endif
28762
28763 int
28764 main ()
28765 {
28766 return $ac_func ();
28767   ;
28768   return 0;
28769 }
28770 _ACEOF
28771 rm -f conftest.$ac_objext conftest$ac_exeext
28772 if { (ac_try="$ac_link"
28773 case "(($ac_try" in
28774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28775   *) ac_try_echo=$ac_try;;
28776 esac
28777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28778   (eval "$ac_link") 2>conftest.er1
28779   ac_status=$?
28780   grep -v '^ *+' conftest.er1 >conftest.err
28781   rm -f conftest.er1
28782   cat conftest.err >&5
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); } && {
28785          test -z "$ac_c_werror_flag" ||
28786          test ! -s conftest.err
28787        } && test -s conftest$ac_exeext &&
28788        $as_test_x conftest$ac_exeext; then
28789   eval "$as_ac_var=yes"
28790 else
28791   echo "$as_me: failed program was:" >&5
28792 sed 's/^/| /' conftest.$ac_ext >&5
28793
28794         eval "$as_ac_var=no"
28795 fi
28796
28797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28798       conftest$ac_exeext conftest.$ac_ext
28799 fi
28800 ac_res=`eval echo '${'$as_ac_var'}'`
28801                { echo "$as_me:$LINENO: result: $ac_res" >&5
28802 echo "${ECHO_T}$ac_res" >&6; }
28803 if test `eval echo '${'$as_ac_var'}'` = yes; then
28804
28805 cat >>confdefs.h <<_ACEOF
28806 #define CRAY_STACKSEG_END $ac_func
28807 _ACEOF
28808
28809     break
28810 fi
28811
28812   done
28813 fi
28814
28815 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28816 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28817 if test "${ac_cv_c_stack_direction+set}" = set; then
28818   echo $ECHO_N "(cached) $ECHO_C" >&6
28819 else
28820   if test "$cross_compiling" = yes; then
28821   ac_cv_c_stack_direction=0
28822 else
28823   cat >conftest.$ac_ext <<_ACEOF
28824 /* confdefs.h.  */
28825 _ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h.  */
28829 $ac_includes_default
28830 int
28831 find_stack_direction ()
28832 {
28833   static char *addr = 0;
28834   auto char dummy;
28835   if (addr == 0)
28836     {
28837       addr = &dummy;
28838       return find_stack_direction ();
28839     }
28840   else
28841     return (&dummy > addr) ? 1 : -1;
28842 }
28843
28844 int
28845 main ()
28846 {
28847   return find_stack_direction () < 0;
28848 }
28849 _ACEOF
28850 rm -f conftest$ac_exeext
28851 if { (ac_try="$ac_link"
28852 case "(($ac_try" in
28853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854   *) ac_try_echo=$ac_try;;
28855 esac
28856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28857   (eval "$ac_link") 2>&5
28858   ac_status=$?
28859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28861   { (case "(($ac_try" in
28862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863   *) ac_try_echo=$ac_try;;
28864 esac
28865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28866   (eval "$ac_try") 2>&5
28867   ac_status=$?
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); }; }; then
28870   ac_cv_c_stack_direction=1
28871 else
28872   echo "$as_me: program exited with status $ac_status" >&5
28873 echo "$as_me: failed program was:" >&5
28874 sed 's/^/| /' conftest.$ac_ext >&5
28875
28876 ( exit $ac_status )
28877 ac_cv_c_stack_direction=-1
28878 fi
28879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28880 fi
28881
28882
28883 fi
28884 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28885 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28886
28887 cat >>confdefs.h <<_ACEOF
28888 #define STACK_DIRECTION $ac_cv_c_stack_direction
28889 _ACEOF
28890
28891
28892 fi
28893
28894 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28895 # -lseq on Dynix/PTX, -lgen on Unixware.
28896 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28897 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28898 if test "${ac_cv_search_getmntent+set}" = set; then
28899   echo $ECHO_N "(cached) $ECHO_C" >&6
28900 else
28901   ac_func_search_save_LIBS=$LIBS
28902 cat >conftest.$ac_ext <<_ACEOF
28903 /* confdefs.h.  */
28904 _ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h.  */
28908
28909 /* Override any GCC internal prototype to avoid an error.
28910    Use char because int might match the return type of a GCC
28911    builtin and then its argument prototype would still apply.  */
28912 #ifdef __cplusplus
28913 extern "C"
28914 #endif
28915 char getmntent ();
28916 int
28917 main ()
28918 {
28919 return getmntent ();
28920   ;
28921   return 0;
28922 }
28923 _ACEOF
28924 for ac_lib in '' sun seq gen; do
28925   if test -z "$ac_lib"; then
28926     ac_res="none required"
28927   else
28928     ac_res=-l$ac_lib
28929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28930   fi
28931   rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (ac_try="$ac_link"
28933 case "(($ac_try" in
28934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935   *) ac_try_echo=$ac_try;;
28936 esac
28937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938   (eval "$ac_link") 2>conftest.er1
28939   ac_status=$?
28940   grep -v '^ *+' conftest.er1 >conftest.err
28941   rm -f conftest.er1
28942   cat conftest.err >&5
28943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944   (exit $ac_status); } && {
28945          test -z "$ac_c_werror_flag" ||
28946          test ! -s conftest.err
28947        } && test -s conftest$ac_exeext &&
28948        $as_test_x conftest$ac_exeext; then
28949   ac_cv_search_getmntent=$ac_res
28950 else
28951   echo "$as_me: failed program was:" >&5
28952 sed 's/^/| /' conftest.$ac_ext >&5
28953
28954
28955 fi
28956
28957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28958       conftest$ac_exeext
28959   if test "${ac_cv_search_getmntent+set}" = set; then
28960   break
28961 fi
28962 done
28963 if test "${ac_cv_search_getmntent+set}" = set; then
28964   :
28965 else
28966   ac_cv_search_getmntent=no
28967 fi
28968 rm conftest.$ac_ext
28969 LIBS=$ac_func_search_save_LIBS
28970 fi
28971 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28972 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28973 ac_res=$ac_cv_search_getmntent
28974 if test "$ac_res" != no; then
28975   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28976   ac_cv_func_getmntent=yes
28977
28978 cat >>confdefs.h <<\_ACEOF
28979 #define HAVE_GETMNTENT 1
28980 _ACEOF
28981
28982 else
28983   ac_cv_func_getmntent=no
28984 fi
28985
28986
28987 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28988 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28989 if test "${ac_cv_func_closedir_void+set}" = set; then
28990   echo $ECHO_N "(cached) $ECHO_C" >&6
28991 else
28992   if test "$cross_compiling" = yes; then
28993   ac_cv_func_closedir_void=yes
28994 else
28995   cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001 $ac_includes_default
29002 #include <$ac_header_dirent>
29003 #ifndef __cplusplus
29004 int closedir ();
29005 #endif
29006
29007 int
29008 main ()
29009 {
29010 return closedir (opendir (".")) != 0;
29011   ;
29012   return 0;
29013 }
29014 _ACEOF
29015 rm -f conftest$ac_exeext
29016 if { (ac_try="$ac_link"
29017 case "(($ac_try" in
29018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019   *) ac_try_echo=$ac_try;;
29020 esac
29021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022   (eval "$ac_link") 2>&5
29023   ac_status=$?
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29026   { (case "(($ac_try" in
29027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028   *) ac_try_echo=$ac_try;;
29029 esac
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031   (eval "$ac_try") 2>&5
29032   ac_status=$?
29033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034   (exit $ac_status); }; }; then
29035   ac_cv_func_closedir_void=no
29036 else
29037   echo "$as_me: program exited with status $ac_status" >&5
29038 echo "$as_me: failed program was:" >&5
29039 sed 's/^/| /' conftest.$ac_ext >&5
29040
29041 ( exit $ac_status )
29042 ac_cv_func_closedir_void=yes
29043 fi
29044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29045 fi
29046
29047
29048 fi
29049 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29050 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29051 if test $ac_cv_func_closedir_void = yes; then
29052
29053 cat >>confdefs.h <<\_ACEOF
29054 #define CLOSEDIR_VOID 1
29055 _ACEOF
29056
29057 fi
29058
29059 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29060 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29061 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29062   echo $ECHO_N "(cached) $ECHO_C" >&6
29063 else
29064   if test "$cross_compiling" = yes; then
29065   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29066 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29067    { (exit 1); exit 1; }; }
29068 else
29069   cat >conftest.$ac_ext <<_ACEOF
29070 /* confdefs.h.  */
29071 _ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h.  */
29075 $ac_includes_default
29076 int
29077 main ()
29078 {
29079 /* If this system has a BSD-style setpgrp which takes arguments,
29080   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29081   exit successfully. */
29082   return setpgrp (1,1) != -1;
29083   ;
29084   return 0;
29085 }
29086 _ACEOF
29087 rm -f conftest$ac_exeext
29088 if { (ac_try="$ac_link"
29089 case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094   (eval "$ac_link") 2>&5
29095   ac_status=$?
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29098   { (case "(($ac_try" in
29099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29100   *) ac_try_echo=$ac_try;;
29101 esac
29102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29103   (eval "$ac_try") 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; }; then
29107   ac_cv_func_setpgrp_void=no
29108 else
29109   echo "$as_me: program exited with status $ac_status" >&5
29110 echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29112
29113 ( exit $ac_status )
29114 ac_cv_func_setpgrp_void=yes
29115 fi
29116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29117 fi
29118
29119
29120 fi
29121 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29122 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29123 if test $ac_cv_func_setpgrp_void = yes; then
29124
29125 cat >>confdefs.h <<\_ACEOF
29126 #define SETPGRP_VOID 1
29127 _ACEOF
29128
29129 fi
29130                       # AC_FUNC_FNMATCH    dnl use local version
29131
29132
29133 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29134 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29135 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29136   echo $ECHO_N "(cached) $ECHO_C" >&6
29137 else
29138   ac_check_lib_save_LIBS=$LIBS
29139 LIBS="-lintl  $LIBS"
29140 cat >conftest.$ac_ext <<_ACEOF
29141 /* confdefs.h.  */
29142 _ACEOF
29143 cat confdefs.h >>conftest.$ac_ext
29144 cat >>conftest.$ac_ext <<_ACEOF
29145 /* end confdefs.h.  */
29146
29147 /* Override any GCC internal prototype to avoid an error.
29148    Use char because int might match the return type of a GCC
29149    builtin and then its argument prototype would still apply.  */
29150 #ifdef __cplusplus
29151 extern "C"
29152 #endif
29153 char gettext ();
29154 int
29155 main ()
29156 {
29157 return gettext ();
29158   ;
29159   return 0;
29160 }
29161 _ACEOF
29162 rm -f conftest.$ac_objext conftest$ac_exeext
29163 if { (ac_try="$ac_link"
29164 case "(($ac_try" in
29165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166   *) ac_try_echo=$ac_try;;
29167 esac
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169   (eval "$ac_link") 2>conftest.er1
29170   ac_status=$?
29171   grep -v '^ *+' conftest.er1 >conftest.err
29172   rm -f conftest.er1
29173   cat conftest.err >&5
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); } && {
29176          test -z "$ac_c_werror_flag" ||
29177          test ! -s conftest.err
29178        } && test -s conftest$ac_exeext &&
29179        $as_test_x conftest$ac_exeext; then
29180   ac_cv_lib_intl_gettext=yes
29181 else
29182   echo "$as_me: failed program was:" >&5
29183 sed 's/^/| /' conftest.$ac_ext >&5
29184
29185         ac_cv_lib_intl_gettext=no
29186 fi
29187
29188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29189       conftest$ac_exeext conftest.$ac_ext
29190 LIBS=$ac_check_lib_save_LIBS
29191 fi
29192 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29193 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29194 if test $ac_cv_lib_intl_gettext = yes; then
29195   LIBS="$LIBS -lintl"
29196 fi
29197
29198
29199
29200
29201 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29202 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29203 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29204   echo $ECHO_N "(cached) $ECHO_C" >&6
29205 else
29206   ac_check_lib_save_LIBS=$LIBS
29207 LIBS="-lsun  $LIBS"
29208 cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h.  */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h.  */
29214
29215 /* Override any GCC internal prototype to avoid an error.
29216    Use char because int might match the return type of a GCC
29217    builtin and then its argument prototype would still apply.  */
29218 #ifdef __cplusplus
29219 extern "C"
29220 #endif
29221 char getpwnam ();
29222 int
29223 main ()
29224 {
29225 return getpwnam ();
29226   ;
29227   return 0;
29228 }
29229 _ACEOF
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (ac_try="$ac_link"
29232 case "(($ac_try" in
29233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234   *) ac_try_echo=$ac_try;;
29235 esac
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237   (eval "$ac_link") 2>conftest.er1
29238   ac_status=$?
29239   grep -v '^ *+' conftest.er1 >conftest.err
29240   rm -f conftest.er1
29241   cat conftest.err >&5
29242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243   (exit $ac_status); } && {
29244          test -z "$ac_c_werror_flag" ||
29245          test ! -s conftest.err
29246        } && test -s conftest$ac_exeext &&
29247        $as_test_x conftest$ac_exeext; then
29248   ac_cv_lib_sun_getpwnam=yes
29249 else
29250   echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29252
29253         ac_cv_lib_sun_getpwnam=no
29254 fi
29255
29256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29257       conftest$ac_exeext conftest.$ac_ext
29258 LIBS=$ac_check_lib_save_LIBS
29259 fi
29260 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29261 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29262 if test $ac_cv_lib_sun_getpwnam = yes; then
29263   cat >>confdefs.h <<_ACEOF
29264 #define HAVE_LIBSUN 1
29265 _ACEOF
29266
29267   LIBS="-lsun $LIBS"
29268
29269 fi
29270
29271
29272
29273 for ac_header in zlib.h
29274 do
29275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29280   echo $ECHO_N "(cached) $ECHO_C" >&6
29281 fi
29282 ac_res=`eval echo '${'$as_ac_Header'}'`
29283                { echo "$as_me:$LINENO: result: $ac_res" >&5
29284 echo "${ECHO_T}$ac_res" >&6; }
29285 else
29286   # Is the header compilable?
29287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29289 cat >conftest.$ac_ext <<_ACEOF
29290 /* confdefs.h.  */
29291 _ACEOF
29292 cat confdefs.h >>conftest.$ac_ext
29293 cat >>conftest.$ac_ext <<_ACEOF
29294 /* end confdefs.h.  */
29295 $ac_includes_default
29296 #include <$ac_header>
29297 _ACEOF
29298 rm -f conftest.$ac_objext
29299 if { (ac_try="$ac_compile"
29300 case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_compile") 2>conftest.er1
29306   ac_status=$?
29307   grep -v '^ *+' conftest.er1 >conftest.err
29308   rm -f conftest.er1
29309   cat conftest.err >&5
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); } && {
29312          test -z "$ac_c_werror_flag" ||
29313          test ! -s conftest.err
29314        } && test -s conftest.$ac_objext; then
29315   ac_header_compiler=yes
29316 else
29317   echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320         ac_header_compiler=no
29321 fi
29322
29323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29325 echo "${ECHO_T}$ac_header_compiler" >&6; }
29326
29327 # Is the header present?
29328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29330 cat >conftest.$ac_ext <<_ACEOF
29331 /* confdefs.h.  */
29332 _ACEOF
29333 cat confdefs.h >>conftest.$ac_ext
29334 cat >>conftest.$ac_ext <<_ACEOF
29335 /* end confdefs.h.  */
29336 #include <$ac_header>
29337 _ACEOF
29338 if { (ac_try="$ac_cpp conftest.$ac_ext"
29339 case "(($ac_try" in
29340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341   *) ac_try_echo=$ac_try;;
29342 esac
29343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29345   ac_status=$?
29346   grep -v '^ *+' conftest.er1 >conftest.err
29347   rm -f conftest.er1
29348   cat conftest.err >&5
29349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350   (exit $ac_status); } >/dev/null && {
29351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29352          test ! -s conftest.err
29353        }; then
29354   ac_header_preproc=yes
29355 else
29356   echo "$as_me: failed program was:" >&5
29357 sed 's/^/| /' conftest.$ac_ext >&5
29358
29359   ac_header_preproc=no
29360 fi
29361
29362 rm -f conftest.err conftest.$ac_ext
29363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29364 echo "${ECHO_T}$ac_header_preproc" >&6; }
29365
29366 # So?  What about this header?
29367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29368   yes:no: )
29369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29373     ac_header_preproc=yes
29374     ;;
29375   no:yes:* )
29376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29388
29389     ;;
29390 esac
29391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29394   echo $ECHO_N "(cached) $ECHO_C" >&6
29395 else
29396   eval "$as_ac_Header=\$ac_header_preproc"
29397 fi
29398 ac_res=`eval echo '${'$as_ac_Header'}'`
29399                { echo "$as_me:$LINENO: result: $ac_res" >&5
29400 echo "${ECHO_T}$ac_res" >&6; }
29401
29402 fi
29403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29404   cat >>confdefs.h <<_ACEOF
29405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29406 _ACEOF
29407
29408 fi
29409
29410 done
29411
29412 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29413 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29414 if test "${ac_cv_lib_z_deflate+set}" = set; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417   ac_check_lib_save_LIBS=$LIBS
29418 LIBS="-lz  $LIBS"
29419 cat >conftest.$ac_ext <<_ACEOF
29420 /* confdefs.h.  */
29421 _ACEOF
29422 cat confdefs.h >>conftest.$ac_ext
29423 cat >>conftest.$ac_ext <<_ACEOF
29424 /* end confdefs.h.  */
29425
29426 /* Override any GCC internal prototype to avoid an error.
29427    Use char because int might match the return type of a GCC
29428    builtin and then its argument prototype would still apply.  */
29429 #ifdef __cplusplus
29430 extern "C"
29431 #endif
29432 char deflate ();
29433 int
29434 main ()
29435 {
29436 return deflate ();
29437   ;
29438   return 0;
29439 }
29440 _ACEOF
29441 rm -f conftest.$ac_objext conftest$ac_exeext
29442 if { (ac_try="$ac_link"
29443 case "(($ac_try" in
29444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29445   *) ac_try_echo=$ac_try;;
29446 esac
29447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29448   (eval "$ac_link") 2>conftest.er1
29449   ac_status=$?
29450   grep -v '^ *+' conftest.er1 >conftest.err
29451   rm -f conftest.er1
29452   cat conftest.err >&5
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); } && {
29455          test -z "$ac_c_werror_flag" ||
29456          test ! -s conftest.err
29457        } && test -s conftest$ac_exeext &&
29458        $as_test_x conftest$ac_exeext; then
29459   ac_cv_lib_z_deflate=yes
29460 else
29461   echo "$as_me: failed program was:" >&5
29462 sed 's/^/| /' conftest.$ac_ext >&5
29463
29464         ac_cv_lib_z_deflate=no
29465 fi
29466
29467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29468       conftest$ac_exeext conftest.$ac_ext
29469 LIBS=$ac_check_lib_save_LIBS
29470 fi
29471 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29472 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29473 if test $ac_cv_lib_z_deflate = yes; then
29474   FDLIBS="-lz"
29475 fi
29476
29477 have_zlib=no
29478 if test x$FDLIBS = x-lz; then
29479   cat >>confdefs.h <<\_ACEOF
29480 #define HAVE_LIBZ 1
29481 _ACEOF
29482
29483   have_zlib=yes
29484 fi
29485
29486 #
29487 # Check for ACL libraries
29488 #
29489 have_acl=no
29490 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29491   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29492 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29493 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29494   echo $ECHO_N "(cached) $ECHO_C" >&6
29495 fi
29496 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29497 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29498 else
29499   # Is the header compilable?
29500 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29501 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h.  */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h.  */
29508 $ac_includes_default
29509 #include <sys/acl.h>
29510 _ACEOF
29511 rm -f conftest.$ac_objext
29512 if { (ac_try="$ac_compile"
29513 case "(($ac_try" in
29514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515   *) ac_try_echo=$ac_try;;
29516 esac
29517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518   (eval "$ac_compile") 2>conftest.er1
29519   ac_status=$?
29520   grep -v '^ *+' conftest.er1 >conftest.err
29521   rm -f conftest.er1
29522   cat conftest.err >&5
29523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524   (exit $ac_status); } && {
29525          test -z "$ac_c_werror_flag" ||
29526          test ! -s conftest.err
29527        } && test -s conftest.$ac_objext; then
29528   ac_header_compiler=yes
29529 else
29530   echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29532
29533         ac_header_compiler=no
29534 fi
29535
29536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29538 echo "${ECHO_T}$ac_header_compiler" >&6; }
29539
29540 # Is the header present?
29541 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29542 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29543 cat >conftest.$ac_ext <<_ACEOF
29544 /* confdefs.h.  */
29545 _ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h.  */
29549 #include <sys/acl.h>
29550 _ACEOF
29551 if { (ac_try="$ac_cpp conftest.$ac_ext"
29552 case "(($ac_try" in
29553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554   *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29558   ac_status=$?
29559   grep -v '^ *+' conftest.er1 >conftest.err
29560   rm -f conftest.er1
29561   cat conftest.err >&5
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); } >/dev/null && {
29564          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29565          test ! -s conftest.err
29566        }; then
29567   ac_header_preproc=yes
29568 else
29569   echo "$as_me: failed program was:" >&5
29570 sed 's/^/| /' conftest.$ac_ext >&5
29571
29572   ac_header_preproc=no
29573 fi
29574
29575 rm -f conftest.err conftest.$ac_ext
29576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29577 echo "${ECHO_T}$ac_header_preproc" >&6; }
29578
29579 # So?  What about this header?
29580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29581   yes:no: )
29582     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29583 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29584     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29585 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29586     ac_header_preproc=yes
29587     ;;
29588   no:yes:* )
29589     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29590 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29591     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29592 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29593     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29594 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29595     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29596 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29597     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29598 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29599     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29600 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29601
29602     ;;
29603 esac
29604 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29605 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29606 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29607   echo $ECHO_N "(cached) $ECHO_C" >&6
29608 else
29609   ac_cv_header_sys_acl_h=$ac_header_preproc
29610 fi
29611 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29612 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29613
29614 fi
29615
29616
29617 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29618 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29619 if test "${ac_cv_func_acl_get_file+set}" = set; then
29620   echo $ECHO_N "(cached) $ECHO_C" >&6
29621 else
29622   cat >conftest.$ac_ext <<_ACEOF
29623 /* confdefs.h.  */
29624 _ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h.  */
29628 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29630 #define acl_get_file innocuous_acl_get_file
29631
29632 /* System header to define __stub macros and hopefully few prototypes,
29633     which can conflict with char acl_get_file (); below.
29634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29635     <limits.h> exists even on freestanding compilers.  */
29636
29637 #ifdef __STDC__
29638 # include <limits.h>
29639 #else
29640 # include <assert.h>
29641 #endif
29642
29643 #undef acl_get_file
29644
29645 /* Override any GCC internal prototype to avoid an error.
29646    Use char because int might match the return type of a GCC
29647    builtin and then its argument prototype would still apply.  */
29648 #ifdef __cplusplus
29649 extern "C"
29650 #endif
29651 char acl_get_file ();
29652 /* The GNU C library defines this for functions which it implements
29653     to always fail with ENOSYS.  Some functions are actually named
29654     something starting with __ and the normal name is an alias.  */
29655 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29656 choke me
29657 #endif
29658
29659 int
29660 main ()
29661 {
29662 return acl_get_file ();
29663   ;
29664   return 0;
29665 }
29666 _ACEOF
29667 rm -f conftest.$ac_objext conftest$ac_exeext
29668 if { (ac_try="$ac_link"
29669 case "(($ac_try" in
29670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671   *) ac_try_echo=$ac_try;;
29672 esac
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674   (eval "$ac_link") 2>conftest.er1
29675   ac_status=$?
29676   grep -v '^ *+' conftest.er1 >conftest.err
29677   rm -f conftest.er1
29678   cat conftest.err >&5
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); } && {
29681          test -z "$ac_c_werror_flag" ||
29682          test ! -s conftest.err
29683        } && test -s conftest$ac_exeext &&
29684        $as_test_x conftest$ac_exeext; then
29685   ac_cv_func_acl_get_file=yes
29686 else
29687   echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29689
29690         ac_cv_func_acl_get_file=no
29691 fi
29692
29693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29694       conftest$ac_exeext conftest.$ac_ext
29695 fi
29696 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29697 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29698 if test $ac_cv_func_acl_get_file = yes; then
29699   have_acl=yes
29700 else
29701   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29702 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29703 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29704   echo $ECHO_N "(cached) $ECHO_C" >&6
29705 else
29706   ac_check_lib_save_LIBS=$LIBS
29707 LIBS="-lacl  $LIBS"
29708 cat >conftest.$ac_ext <<_ACEOF
29709 /* confdefs.h.  */
29710 _ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h.  */
29714
29715 /* Override any GCC internal prototype to avoid an error.
29716    Use char because int might match the return type of a GCC
29717    builtin and then its argument prototype would still apply.  */
29718 #ifdef __cplusplus
29719 extern "C"
29720 #endif
29721 char acl_get_file ();
29722 int
29723 main ()
29724 {
29725 return acl_get_file ();
29726   ;
29727   return 0;
29728 }
29729 _ACEOF
29730 rm -f conftest.$ac_objext conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734   *) ac_try_echo=$ac_try;;
29735 esac
29736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29737   (eval "$ac_link") 2>conftest.er1
29738   ac_status=$?
29739   grep -v '^ *+' conftest.er1 >conftest.err
29740   rm -f conftest.er1
29741   cat conftest.err >&5
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); } && {
29744          test -z "$ac_c_werror_flag" ||
29745          test ! -s conftest.err
29746        } && test -s conftest$ac_exeext &&
29747        $as_test_x conftest$ac_exeext; then
29748   ac_cv_lib_acl_acl_get_file=yes
29749 else
29750   echo "$as_me: failed program was:" >&5
29751 sed 's/^/| /' conftest.$ac_ext >&5
29752
29753         ac_cv_lib_acl_acl_get_file=no
29754 fi
29755
29756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29757       conftest$ac_exeext conftest.$ac_ext
29758 LIBS=$ac_check_lib_save_LIBS
29759 fi
29760 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29761 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29762 if test $ac_cv_lib_acl_acl_get_file = yes; then
29763   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29764 else
29765   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29766 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29767 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29768   echo $ECHO_N "(cached) $ECHO_C" >&6
29769 else
29770   ac_check_lib_save_LIBS=$LIBS
29771 LIBS="-lsec  $LIBS"
29772 cat >conftest.$ac_ext <<_ACEOF
29773 /* confdefs.h.  */
29774 _ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h.  */
29778
29779 /* Override any GCC internal prototype to avoid an error.
29780    Use char because int might match the return type of a GCC
29781    builtin and then its argument prototype would still apply.  */
29782 #ifdef __cplusplus
29783 extern "C"
29784 #endif
29785 char acltotext ();
29786 int
29787 main ()
29788 {
29789 return acltotext ();
29790   ;
29791   return 0;
29792 }
29793 _ACEOF
29794 rm -f conftest.$ac_objext conftest$ac_exeext
29795 if { (ac_try="$ac_link"
29796 case "(($ac_try" in
29797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798   *) ac_try_echo=$ac_try;;
29799 esac
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801   (eval "$ac_link") 2>conftest.er1
29802   ac_status=$?
29803   grep -v '^ *+' conftest.er1 >conftest.err
29804   rm -f conftest.er1
29805   cat conftest.err >&5
29806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807   (exit $ac_status); } && {
29808          test -z "$ac_c_werror_flag" ||
29809          test ! -s conftest.err
29810        } && test -s conftest$ac_exeext &&
29811        $as_test_x conftest$ac_exeext; then
29812   ac_cv_lib_sec_acltotext=yes
29813 else
29814   echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29816
29817         ac_cv_lib_sec_acltotext=no
29818 fi
29819
29820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29821       conftest$ac_exeext conftest.$ac_ext
29822 LIBS=$ac_check_lib_save_LIBS
29823 fi
29824 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29825 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29826 if test $ac_cv_lib_sec_acltotext = yes; then
29827   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29828 fi
29829
29830
29831 fi
29832
29833
29834 fi
29835
29836 if test $have_acl = yes; then
29837    cat >>confdefs.h <<\_ACEOF
29838 #define HAVE_ACL 1
29839 _ACEOF
29840
29841 fi
29842
29843 PTHREAD_LIB=""
29844 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29845 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29846 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29847   echo $ECHO_N "(cached) $ECHO_C" >&6
29848 else
29849   ac_check_lib_save_LIBS=$LIBS
29850 LIBS="-lpthread  $LIBS"
29851 cat >conftest.$ac_ext <<_ACEOF
29852 /* confdefs.h.  */
29853 _ACEOF
29854 cat confdefs.h >>conftest.$ac_ext
29855 cat >>conftest.$ac_ext <<_ACEOF
29856 /* end confdefs.h.  */
29857
29858 /* Override any GCC internal prototype to avoid an error.
29859    Use char because int might match the return type of a GCC
29860    builtin and then its argument prototype would still apply.  */
29861 #ifdef __cplusplus
29862 extern "C"
29863 #endif
29864 char pthread_create ();
29865 int
29866 main ()
29867 {
29868 return pthread_create ();
29869   ;
29870   return 0;
29871 }
29872 _ACEOF
29873 rm -f conftest.$ac_objext conftest$ac_exeext
29874 if { (ac_try="$ac_link"
29875 case "(($ac_try" in
29876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877   *) ac_try_echo=$ac_try;;
29878 esac
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880   (eval "$ac_link") 2>conftest.er1
29881   ac_status=$?
29882   grep -v '^ *+' conftest.er1 >conftest.err
29883   rm -f conftest.er1
29884   cat conftest.err >&5
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); } && {
29887          test -z "$ac_c_werror_flag" ||
29888          test ! -s conftest.err
29889        } && test -s conftest$ac_exeext &&
29890        $as_test_x conftest$ac_exeext; then
29891   ac_cv_lib_pthread_pthread_create=yes
29892 else
29893   echo "$as_me: failed program was:" >&5
29894 sed 's/^/| /' conftest.$ac_ext >&5
29895
29896         ac_cv_lib_pthread_pthread_create=no
29897 fi
29898
29899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29900       conftest$ac_exeext conftest.$ac_ext
29901 LIBS=$ac_check_lib_save_LIBS
29902 fi
29903 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29904 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29905 if test $ac_cv_lib_pthread_pthread_create = yes; then
29906   PTHREAD_LIB="-lpthread"
29907 else
29908   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29909 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29910 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29911   echo $ECHO_N "(cached) $ECHO_C" >&6
29912 else
29913   ac_check_lib_save_LIBS=$LIBS
29914 LIBS="-lpthreads  $LIBS"
29915 cat >conftest.$ac_ext <<_ACEOF
29916 /* confdefs.h.  */
29917 _ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h.  */
29921
29922 /* Override any GCC internal prototype to avoid an error.
29923    Use char because int might match the return type of a GCC
29924    builtin and then its argument prototype would still apply.  */
29925 #ifdef __cplusplus
29926 extern "C"
29927 #endif
29928 char pthread_create ();
29929 int
29930 main ()
29931 {
29932 return pthread_create ();
29933   ;
29934   return 0;
29935 }
29936 _ACEOF
29937 rm -f conftest.$ac_objext conftest$ac_exeext
29938 if { (ac_try="$ac_link"
29939 case "(($ac_try" in
29940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941   *) ac_try_echo=$ac_try;;
29942 esac
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944   (eval "$ac_link") 2>conftest.er1
29945   ac_status=$?
29946   grep -v '^ *+' conftest.er1 >conftest.err
29947   rm -f conftest.er1
29948   cat conftest.err >&5
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); } && {
29951          test -z "$ac_c_werror_flag" ||
29952          test ! -s conftest.err
29953        } && test -s conftest$ac_exeext &&
29954        $as_test_x conftest$ac_exeext; then
29955   ac_cv_lib_pthreads_pthread_create=yes
29956 else
29957   echo "$as_me: failed program was:" >&5
29958 sed 's/^/| /' conftest.$ac_ext >&5
29959
29960         ac_cv_lib_pthreads_pthread_create=no
29961 fi
29962
29963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29964       conftest$ac_exeext conftest.$ac_ext
29965 LIBS=$ac_check_lib_save_LIBS
29966 fi
29967 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29968 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29969 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29970   PTHREAD_LIB="-lpthreads"
29971 else
29972   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29973 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29974 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29975   echo $ECHO_N "(cached) $ECHO_C" >&6
29976 else
29977   ac_check_lib_save_LIBS=$LIBS
29978 LIBS="-lc_r  $LIBS"
29979 cat >conftest.$ac_ext <<_ACEOF
29980 /* confdefs.h.  */
29981 _ACEOF
29982 cat confdefs.h >>conftest.$ac_ext
29983 cat >>conftest.$ac_ext <<_ACEOF
29984 /* end confdefs.h.  */
29985
29986 /* Override any GCC internal prototype to avoid an error.
29987    Use char because int might match the return type of a GCC
29988    builtin and then its argument prototype would still apply.  */
29989 #ifdef __cplusplus
29990 extern "C"
29991 #endif
29992 char pthread_create ();
29993 int
29994 main ()
29995 {
29996 return pthread_create ();
29997   ;
29998   return 0;
29999 }
30000 _ACEOF
30001 rm -f conftest.$ac_objext conftest$ac_exeext
30002 if { (ac_try="$ac_link"
30003 case "(($ac_try" in
30004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005   *) ac_try_echo=$ac_try;;
30006 esac
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008   (eval "$ac_link") 2>conftest.er1
30009   ac_status=$?
30010   grep -v '^ *+' conftest.er1 >conftest.err
30011   rm -f conftest.er1
30012   cat conftest.err >&5
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); } && {
30015          test -z "$ac_c_werror_flag" ||
30016          test ! -s conftest.err
30017        } && test -s conftest$ac_exeext &&
30018        $as_test_x conftest$ac_exeext; then
30019   ac_cv_lib_c_r_pthread_create=yes
30020 else
30021   echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30023
30024         ac_cv_lib_c_r_pthread_create=no
30025 fi
30026
30027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30028       conftest$ac_exeext conftest.$ac_ext
30029 LIBS=$ac_check_lib_save_LIBS
30030 fi
30031 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30032 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30033 if test $ac_cv_lib_c_r_pthread_create = yes; then
30034   PTHREAD_LIB="-lc_r"
30035 else
30036   { echo "$as_me:$LINENO: checking for pthread_create" >&5
30037 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30038 if test "${ac_cv_func_pthread_create+set}" = set; then
30039   echo $ECHO_N "(cached) $ECHO_C" >&6
30040 else
30041   cat >conftest.$ac_ext <<_ACEOF
30042 /* confdefs.h.  */
30043 _ACEOF
30044 cat confdefs.h >>conftest.$ac_ext
30045 cat >>conftest.$ac_ext <<_ACEOF
30046 /* end confdefs.h.  */
30047 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30049 #define pthread_create innocuous_pthread_create
30050
30051 /* System header to define __stub macros and hopefully few prototypes,
30052     which can conflict with char pthread_create (); below.
30053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30054     <limits.h> exists even on freestanding compilers.  */
30055
30056 #ifdef __STDC__
30057 # include <limits.h>
30058 #else
30059 # include <assert.h>
30060 #endif
30061
30062 #undef pthread_create
30063
30064 /* Override any GCC internal prototype to avoid an error.
30065    Use char because int might match the return type of a GCC
30066    builtin and then its argument prototype would still apply.  */
30067 #ifdef __cplusplus
30068 extern "C"
30069 #endif
30070 char pthread_create ();
30071 /* The GNU C library defines this for functions which it implements
30072     to always fail with ENOSYS.  Some functions are actually named
30073     something starting with __ and the normal name is an alias.  */
30074 #if defined __stub_pthread_create || defined __stub___pthread_create
30075 choke me
30076 #endif
30077
30078 int
30079 main ()
30080 {
30081 return pthread_create ();
30082   ;
30083   return 0;
30084 }
30085 _ACEOF
30086 rm -f conftest.$ac_objext conftest$ac_exeext
30087 if { (ac_try="$ac_link"
30088 case "(($ac_try" in
30089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090   *) ac_try_echo=$ac_try;;
30091 esac
30092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093   (eval "$ac_link") 2>conftest.er1
30094   ac_status=$?
30095   grep -v '^ *+' conftest.er1 >conftest.err
30096   rm -f conftest.er1
30097   cat conftest.err >&5
30098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099   (exit $ac_status); } && {
30100          test -z "$ac_c_werror_flag" ||
30101          test ! -s conftest.err
30102        } && test -s conftest$ac_exeext &&
30103        $as_test_x conftest$ac_exeext; then
30104   ac_cv_func_pthread_create=yes
30105 else
30106   echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30108
30109         ac_cv_func_pthread_create=no
30110 fi
30111
30112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30113       conftest$ac_exeext conftest.$ac_ext
30114 fi
30115 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30116 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30117
30118
30119 fi
30120
30121
30122 fi
30123
30124
30125 fi
30126
30127
30128
30129 cat >>confdefs.h <<\_ACEOF
30130 #define FDLIBS 1
30131 _ACEOF
30132
30133
30134
30135 CFLAGS=${CFLAGS--O}
30136
30137 if test x$have_gcc = xyes ; then
30138    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30139    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30140 fi
30141 LDFLAGS=${LDFLAGS--O}
30142 DB_LIBS="${SQL_LFLAGS}"
30143 CPPFLAGS="$CPPFLAGS"
30144 CFLAGS="$CFLAGS"
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161 OBJLIST=
30162
30163
30164 lld="lld"
30165 llu="llu"
30166
30167 WCFLAGS=
30168 WLDFLAGS=
30169
30170 #
30171 # Finally we set appropriate distribution specific
30172 #  variables and defaults
30173 #
30174 # PFILES are platform specific files
30175 PFILES="platforms/Makefile"
30176 PSCMD="ps -e"
30177 WIN32=
30178 MACOSX=
30179 hostname=`uname -n | cut -d '.' -f 1`
30180 if test x${hostname} = x ; then
30181   hostname="localhost"
30182 fi
30183 case "$DISTNAME" in
30184 aix)
30185         DISTVER=`uname -r`
30186         PSCMD="ps -e -o pid,comm"
30187         PFILES="${PFILES} \
30188            platforms/aix/Makefile"
30189         TAPEDRIVE="/dev/rmt0.1"
30190   ;;
30191 alpha)
30192         DISTVER=`uname -r`
30193         PTHREAD_LIB="-lpthread -lexc"
30194         if test "${CC}" = "gcc" ; then
30195            lld="lld"
30196            llu="llu"
30197         else
30198            lld="ld"
30199            llu="lu"
30200         fi
30201         TAPEDRIVE="/dev/nrmt0"
30202   ;;
30203 bsdi)
30204         DISTVER=`uname -a |awk '{print $3}'`
30205         TAPEDRIVE="/dev/nrmt0"
30206         PTHREAD_LIB="-pthread"
30207         CFLAGS="${CFLAGS} -pthread"
30208         PSCMD="ps -ax -o pid,command"
30209         lld="qd"
30210         llu="qu"
30211         PFILES="${PFILES} \
30212             platforms/bsdi/Makefile \
30213             platforms/bsdi/bacula-fd \
30214             platforms/bsdi/bacula-sd \
30215             platforms/bsdi/bacula-dir"
30216         largefile_support="yes"
30217   ;;
30218 cygwin)
30219         DISTVER=`uname -a |awk '{print $3}'`
30220         TAPEDRIVE="/dev/nrst0"
30221         WIN32=win32
30222         WCFLAGS="-mwindows"
30223         WLDFLAGS="-mwindows"
30224   ;;
30225 darwin)
30226         DISTVER=`uname -r`
30227         TAPEDRIVE="/dev/nst0"
30228         PSCMD="ps -e -o pid,command"
30229         MACOSX=macosx
30230         PFILES="${PFILES} \
30231            platforms/darwin/Makefile"
30232   ;;
30233 debian)
30234         if `grep -q ubuntu /etc/apt/sources.list`; then
30235            DISTNAME="ubuntu"
30236         fi
30237         DISTVER=`cat /etc/debian_version`
30238         if test -f /etc/lsb-release ; then
30239            . /etc/lsb-release
30240            if test "x$DISTRIB_ID" != "x" ; then
30241               DISTNAME=$DISTRIB_ID
30242            fi
30243            if test "x$DISTRIB_RELEASE" != "x" ; then
30244               DISTVER=$DISTRIB_RELEASE
30245            fi
30246         fi
30247         if test "$DISTNAME" = "Ubuntu" ; then
30248            DISTNAME="ubuntu"
30249         fi
30250         TAPEDRIVE="/dev/nst0"
30251         PSCMD="ps -e -o pid,command"
30252         if test "$DISTNAME" = "ubuntu" ; then
30253            PFILES="${PFILES} \
30254               platforms/ubuntu/Makefile \
30255               platforms/ubuntu/bacula-fd \
30256               platforms/ubuntu/bacula-sd \
30257               platforms/ubuntu/bacula-dir"
30258         else
30259            PFILES="${PFILES} \
30260               platforms/debian/Makefile \
30261               platforms/debian/bacula-fd \
30262               platforms/debian/bacula-sd \
30263               platforms/debian/bacula-dir"
30264         fi
30265   ;;
30266 freebsd)
30267         DISTVER=`uname -a |awk '{print $3}'`
30268         VER=`echo $DISTVER | cut -c 1`
30269         if test x$VER = x4 ; then
30270            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30271            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30272         fi
30273         lld="qd"
30274         llu="qu"
30275         TAPEDRIVE="/dev/nrsa0"
30276         PSCMD="ps -ax -o pid,command"
30277         PFILES="${PFILES} \
30278             platforms/freebsd/Makefile \
30279             platforms/freebsd/bacula-fd \
30280             platforms/freebsd/bacula-sd \
30281             platforms/freebsd/bacula-dir"
30282         largefile_support="yes"
30283   ;;
30284 hpux)
30285         PSCMD="UNIX95=1; ps -e -o pid,comm"
30286         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30287         DISTVER=`uname -r`
30288         TAPEDRIVE="/dev/rmt/0hnb"
30289         PTHREAD_LIB="-lpthread"
30290         cat >>confdefs.h <<\_ACEOF
30291 #define _INCLUDE_LONGLONG 1
30292 _ACEOF
30293
30294   ;;
30295 irix)
30296         DISTVER=`uname -r`
30297         TAPEDRIVE="/dev/rmt/0cbn"
30298         PSCMD="ps -e -o pid,comm"
30299         PFILES="${PFILES} \
30300             platforms/irix/Makefile \
30301             platforms/irix/bacula-fd \
30302             platforms/irix/bacula-sd \
30303             platforms/irix/bacula-dir"
30304   ;;
30305 netbsd)
30306         DISTVER=`uname -a |awk '{print $3}'`
30307         lld="qd"
30308         llu="qu"
30309         TAPEDRIVE="/dev/nrst0"
30310         PSCMD="ps -ax -o pid,command"
30311         PTHREAD_LIB="-pthread"
30312         CFLAGS="${CFLAGS} -pthread"
30313   ;;
30314 openbsd)
30315         DISTVER=`uname -a |awk '{print $3}'`
30316         lld="qd"
30317         llu="qu"
30318         TAPEDRIVE="/dev/nrst0"
30319         PSCMD="ps -ax -o pid,command"
30320         PTHREAD_LIB="-pthread"
30321         CFLAGS="${CFLAGS} -pthread"
30322         PFILES="${PFILES} \
30323             platforms/openbsd/Makefile \
30324             platforms/openbsd/bacula-fd \
30325             platforms/openbsd/bacula-sd \
30326             platforms/openbsd/bacula-dir"
30327   ;;
30328 redhat)
30329         if test -f /etc/whitebox-release ; then
30330            f=/etc/whitebox-release
30331         else
30332            f=/etc/redhat-release
30333         fi
30334         if test `cat $f | grep release |\
30335                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30336            DISTVER="Enterprise "`cat $f | grep release |\
30337                     cut -f 6 -d ' '`
30338         else
30339             DISTVER=`cat /etc/redhat-release | grep release |\
30340                      cut -f 5 -d ' '`
30341         fi
30342         TAPEDRIVE="/dev/nst0"
30343         PSCMD="ps -e -o pid,command"
30344         PFILES="${PFILES} \
30345             platforms/redhat/Makefile \
30346             platforms/redhat/bacula-fd \
30347             platforms/redhat/bacula-sd \
30348             platforms/redhat/bacula-dir \
30349             platforms/redhat/bacula.spec \
30350             "
30351   ;;
30352 mandrake)
30353         DISTVER=`cat /etc/mandrake-release | grep release |\
30354            cut -f 5 -d ' '`
30355         TAPEDRIVE="/dev/nst0"
30356         PSCMD="ps -e -o pid,command"
30357         PFILES="${PFILES} \
30358             platforms/mandrake/Makefile \
30359             platforms/mandrake/bacula-fd \
30360             platforms/mandrake/bacula-sd \
30361             platforms/mandrake/bacula-dir \
30362             platforms/mandrake/bacula.spec \
30363             "
30364   ;;
30365 gentoo)
30366         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30367         TAPEDRIVE="/dev/nst0"
30368         PSCMD="ps -e -o pid,command"
30369         PFILES="${PFILES} \
30370             platforms/gentoo/Makefile \
30371          platforms/gentoo/bacula-init \
30372             platforms/gentoo/bacula-fd \
30373             platforms/gentoo/bacula-sd \
30374             platforms/gentoo/bacula-dir"
30375   ;;
30376 slackware)
30377         DISTVER=`cat /etc/slackware-version`
30378         TAPEDRIVE="/dev/nst0"
30379         PSCMD="ps -e -o pid,command"
30380         PFILES="${PFILES} \
30381             platforms/slackware/Makefile \
30382             platforms/slackware/rc.bacula-fd \
30383             platforms/slackware/rc.bacula-sd \
30384             platforms/slackware/rc.bacula-dir\
30385             platforms/slackware/functions.bacula"
30386   ;;
30387 solaris)
30388         DISTVER=`uname -r`
30389         TAPEDRIVE="/dev/rmt/0cbn"
30390         PSCMD="ps -e -o pid,comm"
30391         PFILES="${PFILES} \
30392             platforms/solaris/Makefile \
30393             platforms/solaris/bacula-fd \
30394             platforms/solaris/bacula-sd \
30395             platforms/solaris/bacula-dir"
30396         if test x$DISTVER = x5.6 ; then
30397             cat >>confdefs.h <<\_ACEOF
30398 #define HAVE_OLD_SOCKOPT 1
30399 _ACEOF
30400
30401         fi
30402         LIBS="$LIBS -lresolv"
30403   ;;
30404 suse)
30405         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30406             cut -f 3 -d ' '`
30407         TAPEDRIVE="/dev/nst0"
30408         PSCMD="ps -e -o pid,command"
30409         PFILES="${PFILES} \
30410             platforms/suse/Makefile \
30411             platforms/suse/bacula-fd \
30412             platforms/suse/bacula-sd \
30413             platforms/suse/bacula-dir \
30414             platforms/suse/bacula \
30415             platforms/suse/bacula.spec"
30416   ;;
30417 suse5)
30418         DISTNAME=suse
30419         DISTVER=5.x
30420         TAPEDRIVE="/dev/nst0"
30421         PSCMD="ps -e -o pid,command"
30422         PFILES="${PFILES} \
30423             platforms/suse/Makefile \
30424             platforms/suse/bacula-fd \
30425             platforms/suse/bacula-sd \
30426             platforms/suse/bacula-dir"
30427   ;;
30428 unknown)
30429         DISTVER=unknown
30430         TAPEDRIVE="/dev/nst0"
30431   ;;
30432 *)
30433   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30434   ;;
30435 esac
30436
30437
30438
30439 LIBS="$PTHREAD_LIB $LIBS"
30440
30441 cat >>confdefs.h <<_ACEOF
30442 #define lld "$lld"
30443 _ACEOF
30444
30445 cat >>confdefs.h <<_ACEOF
30446 #define llu "$llu"
30447 _ACEOF
30448
30449
30450
30451
30452
30453
30454
30455
30456 MCOMMON=./autoconf/Make.common
30457
30458
30459 if test "x${subsysdir}" = "x${sbindir}" ; then
30460    echo " "
30461    echo " "
30462    echo "You have set both --sbindir and --with-subsys-dir"
30463    echo "  equal to: ${subsysdir} "
30464    echo "This is not permitted. Please reconfigure."
30465    echo " "
30466    echo "Aborting configuration ..."
30467    echo " "
30468    echo " "
30469    exit 1
30470 fi
30471
30472 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"
30473
30474 ac_config_commands="$ac_config_commands default"
30475
30476 cat >confcache <<\_ACEOF
30477 # This file is a shell script that caches the results of configure
30478 # tests run on this system so they can be shared between configure
30479 # scripts and configure runs, see configure's option --config-cache.
30480 # It is not useful on other systems.  If it contains results you don't
30481 # want to keep, you may remove or edit it.
30482 #
30483 # config.status only pays attention to the cache file if you give it
30484 # the --recheck option to rerun configure.
30485 #
30486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30488 # following values.
30489
30490 _ACEOF
30491
30492 # The following way of writing the cache mishandles newlines in values,
30493 # but we know of no workaround that is simple, portable, and efficient.
30494 # So, we kill variables containing newlines.
30495 # Ultrix sh set writes to stderr and can't be redirected directly,
30496 # and sets the high bit in the cache file unless we assign to the vars.
30497 (
30498   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30499     eval ac_val=\$$ac_var
30500     case $ac_val in #(
30501     *${as_nl}*)
30502       case $ac_var in #(
30503       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30505       esac
30506       case $ac_var in #(
30507       _ | IFS | as_nl) ;; #(
30508       *) $as_unset $ac_var ;;
30509       esac ;;
30510     esac
30511   done
30512
30513   (set) 2>&1 |
30514     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30515     *${as_nl}ac_space=\ *)
30516       # `set' does not quote correctly, so add quotes (double-quote
30517       # substitution turns \\\\ into \\, and sed turns \\ into \).
30518       sed -n \
30519         "s/'/'\\\\''/g;
30520           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30521       ;; #(
30522     *)
30523       # `set' quotes correctly as required by POSIX, so do not add quotes.
30524       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30525       ;;
30526     esac |
30527     sort
30528 ) |
30529   sed '
30530      /^ac_cv_env_/b end
30531      t clear
30532      :clear
30533      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30534      t end
30535      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30536      :end' >>confcache
30537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30538   if test -w "$cache_file"; then
30539     test "x$cache_file" != "x/dev/null" &&
30540       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30541 echo "$as_me: updating cache $cache_file" >&6;}
30542     cat confcache >$cache_file
30543   else
30544     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30546   fi
30547 fi
30548 rm -f confcache
30549
30550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30551 # Let make expand exec_prefix.
30552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30553
30554 DEFS=-DHAVE_CONFIG_H
30555
30556 ac_libobjs=
30557 ac_ltlibobjs=
30558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30559   # 1. Remove the extension, and $U if already installed.
30560   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30561   ac_i=`echo "$ac_i" | sed "$ac_script"`
30562   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30563   #    will be set to the directory where LIBOBJS objects are built.
30564   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30565   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30566 done
30567 LIBOBJS=$ac_libobjs
30568
30569 LTLIBOBJS=$ac_ltlibobjs
30570
30571
30572
30573 : ${CONFIG_STATUS=./config.status}
30574 ac_clean_files_save=$ac_clean_files
30575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30576 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30577 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30578 cat >$CONFIG_STATUS <<_ACEOF
30579 #! $SHELL
30580 # Generated by $as_me.
30581 # Run this file to recreate the current configuration.
30582 # Compiler output produced by configure, useful for debugging
30583 # configure, is in config.log if it exists.
30584
30585 debug=false
30586 ac_cs_recheck=false
30587 ac_cs_silent=false
30588 SHELL=\${CONFIG_SHELL-$SHELL}
30589 _ACEOF
30590
30591 cat >>$CONFIG_STATUS <<\_ACEOF
30592 ## --------------------- ##
30593 ## M4sh Initialization.  ##
30594 ## --------------------- ##
30595
30596 # Be more Bourne compatible
30597 DUALCASE=1; export DUALCASE # for MKS sh
30598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30599   emulate sh
30600   NULLCMD=:
30601   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30602   # is contrary to our usage.  Disable this feature.
30603   alias -g '${1+"$@"}'='"$@"'
30604   setopt NO_GLOB_SUBST
30605 else
30606   case `(set -o) 2>/dev/null` in
30607   *posix*) set -o posix ;;
30608 esac
30609
30610 fi
30611
30612
30613
30614
30615 # PATH needs CR
30616 # Avoid depending upon Character Ranges.
30617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30620 as_cr_digits='0123456789'
30621 as_cr_alnum=$as_cr_Letters$as_cr_digits
30622
30623 # The user is always right.
30624 if test "${PATH_SEPARATOR+set}" != set; then
30625   echo "#! /bin/sh" >conf$$.sh
30626   echo  "exit 0"   >>conf$$.sh
30627   chmod +x conf$$.sh
30628   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30629     PATH_SEPARATOR=';'
30630   else
30631     PATH_SEPARATOR=:
30632   fi
30633   rm -f conf$$.sh
30634 fi
30635
30636 # Support unset when possible.
30637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30638   as_unset=unset
30639 else
30640   as_unset=false
30641 fi
30642
30643
30644 # IFS
30645 # We need space, tab and new line, in precisely that order.  Quoting is
30646 # there to prevent editors from complaining about space-tab.
30647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30648 # splitting by setting IFS to empty value.)
30649 as_nl='
30650 '
30651 IFS=" ""        $as_nl"
30652
30653 # Find who we are.  Look in the path if we contain no directory separator.
30654 case $0 in
30655   *[\\/]* ) as_myself=$0 ;;
30656   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30657 for as_dir in $PATH
30658 do
30659   IFS=$as_save_IFS
30660   test -z "$as_dir" && as_dir=.
30661   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30662 done
30663 IFS=$as_save_IFS
30664
30665      ;;
30666 esac
30667 # We did not find ourselves, most probably we were run as `sh COMMAND'
30668 # in which case we are not to be found in the path.
30669 if test "x$as_myself" = x; then
30670   as_myself=$0
30671 fi
30672 if test ! -f "$as_myself"; then
30673   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30674   { (exit 1); exit 1; }
30675 fi
30676
30677 # Work around bugs in pre-3.0 UWIN ksh.
30678 for as_var in ENV MAIL MAILPATH
30679 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30680 done
30681 PS1='$ '
30682 PS2='> '
30683 PS4='+ '
30684
30685 # NLS nuisances.
30686 for as_var in \
30687   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30688   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30689   LC_TELEPHONE LC_TIME
30690 do
30691   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30692     eval $as_var=C; export $as_var
30693   else
30694     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30695   fi
30696 done
30697
30698 # Required to use basename.
30699 if expr a : '\(a\)' >/dev/null 2>&1 &&
30700    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30701   as_expr=expr
30702 else
30703   as_expr=false
30704 fi
30705
30706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30707   as_basename=basename
30708 else
30709   as_basename=false
30710 fi
30711
30712
30713 # Name of the executable.
30714 as_me=`$as_basename -- "$0" ||
30715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30716          X"$0" : 'X\(//\)$' \| \
30717          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30718 echo X/"$0" |
30719     sed '/^.*\/\([^/][^/]*\)\/*$/{
30720             s//\1/
30721             q
30722           }
30723           /^X\/\(\/\/\)$/{
30724             s//\1/
30725             q
30726           }
30727           /^X\/\(\/\).*/{
30728             s//\1/
30729             q
30730           }
30731           s/.*/./; q'`
30732
30733 # CDPATH.
30734 $as_unset CDPATH
30735
30736
30737
30738   as_lineno_1=$LINENO
30739   as_lineno_2=$LINENO
30740   test "x$as_lineno_1" != "x$as_lineno_2" &&
30741   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30742
30743   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30744   # uniformly replaced by the line number.  The first 'sed' inserts a
30745   # line-number line after each line using $LINENO; the second 'sed'
30746   # does the real work.  The second script uses 'N' to pair each
30747   # line-number line with the line containing $LINENO, and appends
30748   # trailing '-' during substitution so that $LINENO is not a special
30749   # case at line end.
30750   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30751   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30752   # E. McMahon (1931-1989) for sed's syntax.  :-)
30753   sed -n '
30754     p
30755     /[$]LINENO/=
30756   ' <$as_myself |
30757     sed '
30758       s/[$]LINENO.*/&-/
30759       t lineno
30760       b
30761       :lineno
30762       N
30763       :loop
30764       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30765       t loop
30766       s/-\n.*//
30767     ' >$as_me.lineno &&
30768   chmod +x "$as_me.lineno" ||
30769     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30770    { (exit 1); exit 1; }; }
30771
30772   # Don't try to exec as it changes $[0], causing all sort of problems
30773   # (the dirname of $[0] is not the place where we might find the
30774   # original and so on.  Autoconf is especially sensitive to this).
30775   . "./$as_me.lineno"
30776   # Exit status is that of the last command.
30777   exit
30778 }
30779
30780
30781 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30782   as_dirname=dirname
30783 else
30784   as_dirname=false
30785 fi
30786
30787 ECHO_C= ECHO_N= ECHO_T=
30788 case `echo -n x` in
30789 -n*)
30790   case `echo 'x\c'` in
30791   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30792   *)   ECHO_C='\c';;
30793   esac;;
30794 *)
30795   ECHO_N='-n';;
30796 esac
30797
30798 if expr a : '\(a\)' >/dev/null 2>&1 &&
30799    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30800   as_expr=expr
30801 else
30802   as_expr=false
30803 fi
30804
30805 rm -f conf$$ conf$$.exe conf$$.file
30806 if test -d conf$$.dir; then
30807   rm -f conf$$.dir/conf$$.file
30808 else
30809   rm -f conf$$.dir
30810   mkdir conf$$.dir
30811 fi
30812 echo >conf$$.file
30813 if ln -s conf$$.file conf$$ 2>/dev/null; then
30814   as_ln_s='ln -s'
30815   # ... but there are two gotchas:
30816   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30817   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30818   # In both cases, we have to default to `cp -p'.
30819   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30820     as_ln_s='cp -p'
30821 elif ln conf$$.file conf$$ 2>/dev/null; then
30822   as_ln_s=ln
30823 else
30824   as_ln_s='cp -p'
30825 fi
30826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30827 rmdir conf$$.dir 2>/dev/null
30828
30829 if mkdir -p . 2>/dev/null; then
30830   as_mkdir_p=:
30831 else
30832   test -d ./-p && rmdir ./-p
30833   as_mkdir_p=false
30834 fi
30835
30836 if test -x / >/dev/null 2>&1; then
30837   as_test_x='test -x'
30838 else
30839   if ls -dL / >/dev/null 2>&1; then
30840     as_ls_L_option=L
30841   else
30842     as_ls_L_option=
30843   fi
30844   as_test_x='
30845     eval sh -c '\''
30846       if test -d "$1"; then
30847         test -d "$1/.";
30848       else
30849         case $1 in
30850         -*)set "./$1";;
30851         esac;
30852         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30853         ???[sx]*):;;*)false;;esac;fi
30854     '\'' sh
30855   '
30856 fi
30857 as_executable_p=$as_test_x
30858
30859 # Sed expression to map a string onto a valid CPP name.
30860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30861
30862 # Sed expression to map a string onto a valid variable name.
30863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30864
30865
30866 exec 6>&1
30867
30868 # Save the log message, to keep $[0] and so on meaningful, and to
30869 # report actual input values of CONFIG_FILES etc. instead of their
30870 # values after options handling.
30871 ac_log="
30872 This file was extended by $as_me, which was
30873 generated by GNU Autoconf 2.61.  Invocation command line was
30874
30875   CONFIG_FILES    = $CONFIG_FILES
30876   CONFIG_HEADERS  = $CONFIG_HEADERS
30877   CONFIG_LINKS    = $CONFIG_LINKS
30878   CONFIG_COMMANDS = $CONFIG_COMMANDS
30879   $ $0 $@
30880
30881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30882 "
30883
30884 _ACEOF
30885
30886 cat >>$CONFIG_STATUS <<_ACEOF
30887 # Files that config.status was made for.
30888 config_files="$ac_config_files"
30889 config_headers="$ac_config_headers"
30890 config_commands="$ac_config_commands"
30891
30892 _ACEOF
30893
30894 cat >>$CONFIG_STATUS <<\_ACEOF
30895 ac_cs_usage="\
30896 \`$as_me' instantiates files from templates according to the
30897 current configuration.
30898
30899 Usage: $0 [OPTIONS] [FILE]...
30900
30901   -h, --help       print this help, then exit
30902   -V, --version    print version number and configuration settings, then exit
30903   -q, --quiet      do not print progress messages
30904   -d, --debug      don't remove temporary files
30905       --recheck    update $as_me by reconfiguring in the same conditions
30906   --file=FILE[:TEMPLATE]
30907                    instantiate the configuration file FILE
30908   --header=FILE[:TEMPLATE]
30909                    instantiate the configuration header FILE
30910
30911 Configuration files:
30912 $config_files
30913
30914 Configuration headers:
30915 $config_headers
30916
30917 Configuration commands:
30918 $config_commands
30919
30920 Report bugs to <bug-autoconf@gnu.org>."
30921
30922 _ACEOF
30923 cat >>$CONFIG_STATUS <<_ACEOF
30924 ac_cs_version="\\
30925 config.status
30926 configured by $0, generated by GNU Autoconf 2.61,
30927   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30928
30929 Copyright (C) 2006 Free Software Foundation, Inc.
30930 This config.status script is free software; the Free Software Foundation
30931 gives unlimited permission to copy, distribute and modify it."
30932
30933 ac_pwd='$ac_pwd'
30934 srcdir='$srcdir'
30935 INSTALL='$INSTALL'
30936 _ACEOF
30937
30938 cat >>$CONFIG_STATUS <<\_ACEOF
30939 # If no file are specified by the user, then we need to provide default
30940 # value.  By we need to know if files were specified by the user.
30941 ac_need_defaults=:
30942 while test $# != 0
30943 do
30944   case $1 in
30945   --*=*)
30946     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30947     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30948     ac_shift=:
30949     ;;
30950   *)
30951     ac_option=$1
30952     ac_optarg=$2
30953     ac_shift=shift
30954     ;;
30955   esac
30956
30957   case $ac_option in
30958   # Handling of the options.
30959   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30960     ac_cs_recheck=: ;;
30961   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30962     echo "$ac_cs_version"; exit ;;
30963   --debug | --debu | --deb | --de | --d | -d )
30964     debug=: ;;
30965   --file | --fil | --fi | --f )
30966     $ac_shift
30967     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30968     ac_need_defaults=false;;
30969   --header | --heade | --head | --hea )
30970     $ac_shift
30971     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30972     ac_need_defaults=false;;
30973   --he | --h)
30974     # Conflict between --help and --header
30975     { echo "$as_me: error: ambiguous option: $1
30976 Try \`$0 --help' for more information." >&2
30977    { (exit 1); exit 1; }; };;
30978   --help | --hel | -h )
30979     echo "$ac_cs_usage"; exit ;;
30980   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30981   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30982     ac_cs_silent=: ;;
30983
30984   # This is an error.
30985   -*) { echo "$as_me: error: unrecognized option: $1
30986 Try \`$0 --help' for more information." >&2
30987    { (exit 1); exit 1; }; } ;;
30988
30989   *) ac_config_targets="$ac_config_targets $1"
30990      ac_need_defaults=false ;;
30991
30992   esac
30993   shift
30994 done
30995
30996 ac_configure_extra_args=
30997
30998 if $ac_cs_silent; then
30999   exec 6>/dev/null
31000   ac_configure_extra_args="$ac_configure_extra_args --silent"
31001 fi
31002
31003 _ACEOF
31004 cat >>$CONFIG_STATUS <<_ACEOF
31005 if \$ac_cs_recheck; then
31006   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31007   CONFIG_SHELL=$SHELL
31008   export CONFIG_SHELL
31009   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31010 fi
31011
31012 _ACEOF
31013 cat >>$CONFIG_STATUS <<\_ACEOF
31014 exec 5>>config.log
31015 {
31016   echo
31017   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31018 ## Running $as_me. ##
31019 _ASBOX
31020   echo "$ac_log"
31021 } >&5
31022
31023 _ACEOF
31024 cat >>$CONFIG_STATUS <<_ACEOF
31025 #
31026 # INIT-COMMANDS
31027 #
31028 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31029     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31030     # from automake.
31031     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31032     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31033     LINGUAS="${LINGUAS-%UNSET%}"
31034
31035
31036 _ACEOF
31037
31038 cat >>$CONFIG_STATUS <<\_ACEOF
31039
31040 # Handling of arguments.
31041 for ac_config_target in $ac_config_targets
31042 do
31043   case $ac_config_target in
31044     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31045     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31046     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31047     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31048     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31049     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31050     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31051     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31052     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31053     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31054     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31055     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31056     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31057     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31058     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31059     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31060     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31061     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31062     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31063     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31064     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31065     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31066     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31067     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31068     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31069     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31070     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31071     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31072     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31073     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31074     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31075     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31076     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31077     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31078     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31079     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31080     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31081     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31082     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31083     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31084     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31085     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31086     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31087     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31088     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31089     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31090     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31091     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31092     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31093     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31094     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31095     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31096     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31097     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31098     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31099     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31100     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31101     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31102     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31103     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31104     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31105     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31106     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31107     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31108     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31109     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31110     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31111     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31112     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31113     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31114     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31115     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31116     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31117     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31118     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31119     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31120     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31121     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31122     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31123     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31124     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31125     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31126     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31127     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31128     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31129     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31130     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31131     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31132     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31133     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31134     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31135     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31136     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31137     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31138     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31139     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31140     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31141     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31142     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31143     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31144     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31145     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31146     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31147     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31148     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31149     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31150     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31151     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31152     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31153     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31154
31155   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31156 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31157    { (exit 1); exit 1; }; };;
31158   esac
31159 done
31160
31161
31162 # If the user did not use the arguments to specify the items to instantiate,
31163 # then the envvar interface is used.  Set only those that are not.
31164 # We use the long form for the default assignment because of an extremely
31165 # bizarre bug on SunOS 4.1.3.
31166 if $ac_need_defaults; then
31167   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31168   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31169   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31170 fi
31171
31172 # Have a temporary directory for convenience.  Make it in the build tree
31173 # simply because there is no reason against having it here, and in addition,
31174 # creating and moving files from /tmp can sometimes cause problems.
31175 # Hook for its removal unless debugging.
31176 # Note that there is a small window in which the directory will not be cleaned:
31177 # after its creation but before its name has been assigned to `$tmp'.
31178 $debug ||
31179 {
31180   tmp=
31181   trap 'exit_status=$?
31182   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31183 ' 0
31184   trap '{ (exit 1); exit 1; }' 1 2 13 15
31185 }
31186 # Create a (secure) tmp directory for tmp files.
31187
31188 {
31189   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31190   test -n "$tmp" && test -d "$tmp"
31191 }  ||
31192 {
31193   tmp=./conf$$-$RANDOM
31194   (umask 077 && mkdir "$tmp")
31195 } ||
31196 {
31197    echo "$me: cannot create a temporary directory in ." >&2
31198    { (exit 1); exit 1; }
31199 }
31200
31201 #
31202 # Set up the sed scripts for CONFIG_FILES section.
31203 #
31204
31205 # No need to generate the scripts if there are no CONFIG_FILES.
31206 # This happens for instance when ./config.status config.h
31207 if test -n "$CONFIG_FILES"; then
31208
31209 _ACEOF
31210
31211 # Create sed commands to just substitute file output variables.
31212
31213 # Remaining file output variables are in a fragment that also has non-file
31214 # output varibles.
31215
31216
31217
31218 ac_delim='%!_!# '
31219 for ac_last_try in false false false false false :; do
31220   cat >conf$$subs.sed <<_ACEOF
31221 SHELL!$SHELL$ac_delim
31222 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31223 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31224 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31225 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31226 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31227 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31228 exec_prefix!$exec_prefix$ac_delim
31229 prefix!$prefix$ac_delim
31230 program_transform_name!$program_transform_name$ac_delim
31231 bindir!$bindir$ac_delim
31232 sbindir!$sbindir$ac_delim
31233 libexecdir!$libexecdir$ac_delim
31234 datarootdir!$datarootdir$ac_delim
31235 datadir!$datadir$ac_delim
31236 sysconfdir!$sysconfdir$ac_delim
31237 sharedstatedir!$sharedstatedir$ac_delim
31238 localstatedir!$localstatedir$ac_delim
31239 includedir!$includedir$ac_delim
31240 oldincludedir!$oldincludedir$ac_delim
31241 docdir!$docdir$ac_delim
31242 infodir!$infodir$ac_delim
31243 htmldir!$htmldir$ac_delim
31244 dvidir!$dvidir$ac_delim
31245 pdfdir!$pdfdir$ac_delim
31246 psdir!$psdir$ac_delim
31247 libdir!$libdir$ac_delim
31248 localedir!$localedir$ac_delim
31249 mandir!$mandir$ac_delim
31250 DEFS!$DEFS$ac_delim
31251 ECHO_C!$ECHO_C$ac_delim
31252 ECHO_N!$ECHO_N$ac_delim
31253 ECHO_T!$ECHO_T$ac_delim
31254 LIBS!$LIBS$ac_delim
31255 build_alias!$build_alias$ac_delim
31256 host_alias!$host_alias$ac_delim
31257 target_alias!$target_alias$ac_delim
31258 BUILD_DIR!$BUILD_DIR$ac_delim
31259 TOP_DIR!$TOP_DIR$ac_delim
31260 TRUEPRG!$TRUEPRG$ac_delim
31261 FALSEPRG!$FALSEPRG$ac_delim
31262 VERSION!$VERSION$ac_delim
31263 DATE!$DATE$ac_delim
31264 LSMDATE!$LSMDATE$ac_delim
31265 CC!$CC$ac_delim
31266 CFLAGS!$CFLAGS$ac_delim
31267 LDFLAGS!$LDFLAGS$ac_delim
31268 CPPFLAGS!$CPPFLAGS$ac_delim
31269 ac_ct_CC!$ac_ct_CC$ac_delim
31270 EXEEXT!$EXEEXT$ac_delim
31271 OBJEXT!$OBJEXT$ac_delim
31272 CXX!$CXX$ac_delim
31273 CXXFLAGS!$CXXFLAGS$ac_delim
31274 ac_ct_CXX!$ac_ct_CXX$ac_delim
31275 CPP!$CPP$ac_delim
31276 GREP!$GREP$ac_delim
31277 EGREP!$EGREP$ac_delim
31278 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31279 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31280 INSTALL_DATA!$INSTALL_DATA$ac_delim
31281 RANLIB!$RANLIB$ac_delim
31282 MV!$MV$ac_delim
31283 RM!$RM$ac_delim
31284 CP!$CP$ac_delim
31285 SED!$SED$ac_delim
31286 ECHO!$ECHO$ac_delim
31287 CMP!$CMP$ac_delim
31288 TBL!$TBL$ac_delim
31289 AR!$AR$ac_delim
31290 OPENSSL!$OPENSSL$ac_delim
31291 MTX!$MTX$ac_delim
31292 DD!$DD$ac_delim
31293 MKISOFS!$MKISOFS$ac_delim
31294 PYTHON!$PYTHON$ac_delim
31295 GROWISOFS!$GROWISOFS$ac_delim
31296 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31297 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31298 PKGCONFIG!$PKGCONFIG$ac_delim
31299 QMAKE!$QMAKE$ac_delim
31300 QMAKEQT4!$QMAKEQT4$ac_delim
31301 WXCONFIG!$WXCONFIG$ac_delim
31302 WXFLAGS!$WXFLAGS$ac_delim
31303 CDRECORD!$CDRECORD$ac_delim
31304 PIDOF!$PIDOF$ac_delim
31305 AWK!$AWK$ac_delim
31306 ARFLAGS!$ARFLAGS$ac_delim
31307 MAKE_SHELL!$MAKE_SHELL$ac_delim
31308 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31309 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31310 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31311 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31312 build!$build$ac_delim
31313 build_cpu!$build_cpu$ac_delim
31314 build_vendor!$build_vendor$ac_delim
31315 _ACEOF
31316
31317   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31318     break
31319   elif $ac_last_try; then
31320     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31321 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31322    { (exit 1); exit 1; }; }
31323   else
31324     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31325   fi
31326 done
31327
31328 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31329 if test -n "$ac_eof"; then
31330   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31331   ac_eof=`expr $ac_eof + 1`
31332 fi
31333
31334 cat >>$CONFIG_STATUS <<_ACEOF
31335 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31337 /^[      ]*@MCOMMON@[    ]*$/{
31338 r $MCOMMON
31339 d
31340 }
31341 _ACEOF
31342 sed '
31343 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31344 s/^/s,@/; s/!/@,|#_!!_#|/
31345 :n
31346 t n
31347 s/'"$ac_delim"'$/,g/; t
31348 s/$/\\/; p
31349 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31350 ' >>$CONFIG_STATUS <conf$$subs.sed
31351 rm -f conf$$subs.sed
31352 cat >>$CONFIG_STATUS <<_ACEOF
31353 CEOF$ac_eof
31354 _ACEOF
31355
31356
31357 ac_delim='%!_!# '
31358 for ac_last_try in false false false false false :; do
31359   cat >conf$$subs.sed <<_ACEOF
31360 build_os!$build_os$ac_delim
31361 host!$host$ac_delim
31362 host_cpu!$host_cpu$ac_delim
31363 host_vendor!$host_vendor$ac_delim
31364 host_os!$host_os$ac_delim
31365 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31366 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31367 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31368 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31369 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31370 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31371 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31372 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31373 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31374 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31375 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31376 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31377 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31378 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31379 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31380 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31381 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31382 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31383 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31384 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31385 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31386 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31387 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31388 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31389 SET_MAKE!$SET_MAKE$ac_delim
31390 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31391 USE_NLS!$USE_NLS$ac_delim
31392 MSGFMT!$MSGFMT$ac_delim
31393 GMSGFMT!$GMSGFMT$ac_delim
31394 XGETTEXT!$XGETTEXT$ac_delim
31395 MSGMERGE!$MSGMERGE$ac_delim
31396 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31397 LIBICONV!$LIBICONV$ac_delim
31398 LTLIBICONV!$LTLIBICONV$ac_delim
31399 INTLLIBS!$INTLLIBS$ac_delim
31400 LIBINTL!$LIBINTL$ac_delim
31401 LTLIBINTL!$LTLIBINTL$ac_delim
31402 POSUB!$POSUB$ac_delim
31403 GLIBC2!$GLIBC2$ac_delim
31404 ALLOCA!$ALLOCA$ac_delim
31405 GLIBC21!$GLIBC21$ac_delim
31406 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31407 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31408 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31409 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31410 INTLBISON!$INTLBISON$ac_delim
31411 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31412 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31413 CATOBJEXT!$CATOBJEXT$ac_delim
31414 DATADIRNAME!$DATADIRNAME$ac_delim
31415 INSTOBJEXT!$INSTOBJEXT$ac_delim
31416 GENCAT!$GENCAT$ac_delim
31417 INTLOBJS!$INTLOBJS$ac_delim
31418 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31419 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31420 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31421 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31422 GNOME_LIBS!$GNOME_LIBS$ac_delim
31423 GNOME_DIR!$GNOME_DIR$ac_delim
31424 BAT_DIR!$BAT_DIR$ac_delim
31425 QWT_INC!$QWT_INC$ac_delim
31426 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31427 QWT_LIB!$QWT_LIB$ac_delim
31428 QWT!$QWT$ac_delim
31429 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31430 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31431 WX_DIR!$WX_DIR$ac_delim
31432 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31433 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31434 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31435 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31436 STATIC_FD!$STATIC_FD$ac_delim
31437 STATIC_SD!$STATIC_SD$ac_delim
31438 STATIC_DIR!$STATIC_DIR$ac_delim
31439 STATIC_CONS!$STATIC_CONS$ac_delim
31440 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31441 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31442 ALL_DIRS!$ALL_DIRS$ac_delim
31443 DIRD_DIR!$DIRD_DIR$ac_delim
31444 DIR_TOOLS!$DIR_TOOLS$ac_delim
31445 STORED_DIR!$STORED_DIR$ac_delim
31446 CONS_INC!$CONS_INC$ac_delim
31447 CONS_OBJ!$CONS_OBJ$ac_delim
31448 CONS_SRC!$CONS_SRC$ac_delim
31449 CONS_LIBS!$CONS_LIBS$ac_delim
31450 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31451 READLINE_SRC!$READLINE_SRC$ac_delim
31452 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31453 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31454 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31455 OPENSSL_INC!$OPENSSL_INC$ac_delim
31456 working_dir!$working_dir$ac_delim
31457 _ACEOF
31458
31459   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31460     break
31461   elif $ac_last_try; then
31462     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31463 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31464    { (exit 1); exit 1; }; }
31465   else
31466     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31467   fi
31468 done
31469
31470 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31471 if test -n "$ac_eof"; then
31472   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31473   ac_eof=`expr $ac_eof + 1`
31474 fi
31475
31476 cat >>$CONFIG_STATUS <<_ACEOF
31477 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31479 _ACEOF
31480 sed '
31481 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31482 s/^/s,@/; s/!/@,|#_!!_#|/
31483 :n
31484 t n
31485 s/'"$ac_delim"'$/,g/; t
31486 s/$/\\/; p
31487 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31488 ' >>$CONFIG_STATUS <conf$$subs.sed
31489 rm -f conf$$subs.sed
31490 cat >>$CONFIG_STATUS <<_ACEOF
31491 CEOF$ac_eof
31492 _ACEOF
31493
31494
31495 ac_delim='%!_!# '
31496 for ac_last_try in false false false false false :; do
31497   cat >conf$$subs.sed <<_ACEOF
31498 archivedir!$archivedir$ac_delim
31499 scriptdir!$scriptdir$ac_delim
31500 dump_email!$dump_email$ac_delim
31501 job_email!$job_email$ac_delim
31502 smtp_host!$smtp_host$ac_delim
31503 piddir!$piddir$ac_delim
31504 subsysdir!$subsysdir$ac_delim
31505 baseport!$baseport$ac_delim
31506 dir_port!$dir_port$ac_delim
31507 fd_port!$fd_port$ac_delim
31508 sd_port!$sd_port$ac_delim
31509 dir_password!$dir_password$ac_delim
31510 fd_password!$fd_password$ac_delim
31511 sd_password!$sd_password$ac_delim
31512 mon_dir_password!$mon_dir_password$ac_delim
31513 mon_fd_password!$mon_fd_password$ac_delim
31514 mon_sd_password!$mon_sd_password$ac_delim
31515 db_name!$db_name$ac_delim
31516 db_user!$db_user$ac_delim
31517 dir_user!$dir_user$ac_delim
31518 dir_group!$dir_group$ac_delim
31519 sd_user!$sd_user$ac_delim
31520 sd_group!$sd_group$ac_delim
31521 fd_user!$fd_user$ac_delim
31522 fd_group!$fd_group$ac_delim
31523 SBINPERM!$SBINPERM$ac_delim
31524 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31525 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31526 SQL_BINDIR!$SQL_BINDIR$ac_delim
31527 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31528 DB_PROG!$DB_PROG$ac_delim
31529 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31530 cats!$cats$ac_delim
31531 DB_TYPE!$DB_TYPE$ac_delim
31532 GETCONF!$GETCONF$ac_delim
31533 XMKMF!$XMKMF$ac_delim
31534 X_CFLAGS!$X_CFLAGS$ac_delim
31535 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31536 X_LIBS!$X_LIBS$ac_delim
31537 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31538 LIBOBJS!$LIBOBJS$ac_delim
31539 FDLIBS!$FDLIBS$ac_delim
31540 DEBUG!$DEBUG$ac_delim
31541 DINCLUDE!$DINCLUDE$ac_delim
31542 DLIB!$DLIB$ac_delim
31543 DB_LIBS!$DB_LIBS$ac_delim
31544 WCFLAGS!$WCFLAGS$ac_delim
31545 WLDFLAGS!$WLDFLAGS$ac_delim
31546 WRAPLIBS!$WRAPLIBS$ac_delim
31547 OBJLIST!$OBJLIST$ac_delim
31548 hostname!$hostname$ac_delim
31549 TAPEDRIVE!$TAPEDRIVE$ac_delim
31550 PSCMD!$PSCMD$ac_delim
31551 WIN32!$WIN32$ac_delim
31552 MACOSX!$MACOSX$ac_delim
31553 DISTNAME!$DISTNAME$ac_delim
31554 DISTVER!$DISTVER$ac_delim
31555 LTLIBOBJS!$LTLIBOBJS$ac_delim
31556 _ACEOF
31557
31558   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
31559     break
31560   elif $ac_last_try; then
31561     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31563    { (exit 1); exit 1; }; }
31564   else
31565     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31566   fi
31567 done
31568
31569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31570 if test -n "$ac_eof"; then
31571   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31572   ac_eof=`expr $ac_eof + 1`
31573 fi
31574
31575 cat >>$CONFIG_STATUS <<_ACEOF
31576 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31578 _ACEOF
31579 sed '
31580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31581 s/^/s,@/; s/!/@,|#_!!_#|/
31582 :n
31583 t n
31584 s/'"$ac_delim"'$/,g/; t
31585 s/$/\\/; p
31586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31587 ' >>$CONFIG_STATUS <conf$$subs.sed
31588 rm -f conf$$subs.sed
31589 cat >>$CONFIG_STATUS <<_ACEOF
31590 :end
31591 s/|#_!!_#|//g
31592 CEOF$ac_eof
31593 _ACEOF
31594
31595
31596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31598 # trailing colons and then remove the whole line if VPATH becomes empty
31599 # (actually we leave an empty line to preserve line numbers).
31600 if test "x$srcdir" = x.; then
31601   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31602 s/:*\$(srcdir):*/:/
31603 s/:*\${srcdir}:*/:/
31604 s/:*@srcdir@:*/:/
31605 s/^\([^=]*=[     ]*\):*/\1/
31606 s/:*$//
31607 s/^[^=]*=[       ]*$//
31608 }'
31609 fi
31610
31611 cat >>$CONFIG_STATUS <<\_ACEOF
31612 fi # test -n "$CONFIG_FILES"
31613
31614
31615 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31616 do
31617   case $ac_tag in
31618   :[FHLC]) ac_mode=$ac_tag; continue;;
31619   esac
31620   case $ac_mode$ac_tag in
31621   :[FHL]*:*);;
31622   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31623 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31624    { (exit 1); exit 1; }; };;
31625   :[FH]-) ac_tag=-:-;;
31626   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31627   esac
31628   ac_save_IFS=$IFS
31629   IFS=:
31630   set x $ac_tag
31631   IFS=$ac_save_IFS
31632   shift
31633   ac_file=$1
31634   shift
31635
31636   case $ac_mode in
31637   :L) ac_source=$1;;
31638   :[FH])
31639     ac_file_inputs=
31640     for ac_f
31641     do
31642       case $ac_f in
31643       -) ac_f="$tmp/stdin";;
31644       *) # Look for the file first in the build tree, then in the source tree
31645          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31646          # because $ac_f cannot contain `:'.
31647          test -f "$ac_f" ||
31648            case $ac_f in
31649            [\\/$]*) false;;
31650            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31651            esac ||
31652            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31653 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31654    { (exit 1); exit 1; }; };;
31655       esac
31656       ac_file_inputs="$ac_file_inputs $ac_f"
31657     done
31658
31659     # Let's still pretend it is `configure' which instantiates (i.e., don't
31660     # use $as_me), people would be surprised to read:
31661     #    /* config.h.  Generated by config.status.  */
31662     configure_input="Generated from "`IFS=:
31663           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31664     if test x"$ac_file" != x-; then
31665       configure_input="$ac_file.  $configure_input"
31666       { echo "$as_me:$LINENO: creating $ac_file" >&5
31667 echo "$as_me: creating $ac_file" >&6;}
31668     fi
31669
31670     case $ac_tag in
31671     *:-:* | *:-) cat >"$tmp/stdin";;
31672     esac
31673     ;;
31674   esac
31675
31676   ac_dir=`$as_dirname -- "$ac_file" ||
31677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31678          X"$ac_file" : 'X\(//\)[^/]' \| \
31679          X"$ac_file" : 'X\(//\)$' \| \
31680          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31681 echo X"$ac_file" |
31682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31683             s//\1/
31684             q
31685           }
31686           /^X\(\/\/\)[^/].*/{
31687             s//\1/
31688             q
31689           }
31690           /^X\(\/\/\)$/{
31691             s//\1/
31692             q
31693           }
31694           /^X\(\/\).*/{
31695             s//\1/
31696             q
31697           }
31698           s/.*/./; q'`
31699   { as_dir="$ac_dir"
31700   case $as_dir in #(
31701   -*) as_dir=./$as_dir;;
31702   esac
31703   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31704     as_dirs=
31705     while :; do
31706       case $as_dir in #(
31707       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31708       *) as_qdir=$as_dir;;
31709       esac
31710       as_dirs="'$as_qdir' $as_dirs"
31711       as_dir=`$as_dirname -- "$as_dir" ||
31712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31713          X"$as_dir" : 'X\(//\)[^/]' \| \
31714          X"$as_dir" : 'X\(//\)$' \| \
31715          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31716 echo X"$as_dir" |
31717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31718             s//\1/
31719             q
31720           }
31721           /^X\(\/\/\)[^/].*/{
31722             s//\1/
31723             q
31724           }
31725           /^X\(\/\/\)$/{
31726             s//\1/
31727             q
31728           }
31729           /^X\(\/\).*/{
31730             s//\1/
31731             q
31732           }
31733           s/.*/./; q'`
31734       test -d "$as_dir" && break
31735     done
31736     test -z "$as_dirs" || eval "mkdir $as_dirs"
31737   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31739    { (exit 1); exit 1; }; }; }
31740   ac_builddir=.
31741
31742 case "$ac_dir" in
31743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31744 *)
31745   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31746   # A ".." for each directory in $ac_dir_suffix.
31747   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31748   case $ac_top_builddir_sub in
31749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31751   esac ;;
31752 esac
31753 ac_abs_top_builddir=$ac_pwd
31754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31755 # for backward compatibility:
31756 ac_top_builddir=$ac_top_build_prefix
31757
31758 case $srcdir in
31759   .)  # We are building in place.
31760     ac_srcdir=.
31761     ac_top_srcdir=$ac_top_builddir_sub
31762     ac_abs_top_srcdir=$ac_pwd ;;
31763   [\\/]* | ?:[\\/]* )  # Absolute name.
31764     ac_srcdir=$srcdir$ac_dir_suffix;
31765     ac_top_srcdir=$srcdir
31766     ac_abs_top_srcdir=$srcdir ;;
31767   *) # Relative name.
31768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31769     ac_top_srcdir=$ac_top_build_prefix$srcdir
31770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31771 esac
31772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31773
31774
31775   case $ac_mode in
31776   :F)
31777   #
31778   # CONFIG_FILE
31779   #
31780
31781   case $INSTALL in
31782   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31783   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31784   esac
31785 _ACEOF
31786
31787 cat >>$CONFIG_STATUS <<\_ACEOF
31788 # If the template does not know about datarootdir, expand it.
31789 # FIXME: This hack should be removed a few years after 2.60.
31790 ac_datarootdir_hack=; ac_datarootdir_seen=
31791
31792 case `sed -n '/datarootdir/ {
31793   p
31794   q
31795 }
31796 /@datadir@/p
31797 /@docdir@/p
31798 /@infodir@/p
31799 /@localedir@/p
31800 /@mandir@/p
31801 ' $ac_file_inputs` in
31802 *datarootdir*) ac_datarootdir_seen=yes;;
31803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31804   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31806 _ACEOF
31807 cat >>$CONFIG_STATUS <<_ACEOF
31808   ac_datarootdir_hack='
31809   s&@datadir@&$datadir&g
31810   s&@docdir@&$docdir&g
31811   s&@infodir@&$infodir&g
31812   s&@localedir@&$localedir&g
31813   s&@mandir@&$mandir&g
31814     s&\\\${datarootdir}&$datarootdir&g' ;;
31815 esac
31816 _ACEOF
31817
31818 # Neutralize VPATH when `$srcdir' = `.'.
31819 # Shell code in configure.ac might set extrasub.
31820 # FIXME: do we really want to maintain this feature?
31821 cat >>$CONFIG_STATUS <<_ACEOF
31822   sed "$ac_vpsub
31823 $extrasub
31824 _ACEOF
31825 cat >>$CONFIG_STATUS <<\_ACEOF
31826 :t
31827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31828 s&@configure_input@&$configure_input&;t t
31829 s&@top_builddir@&$ac_top_builddir_sub&;t t
31830 s&@srcdir@&$ac_srcdir&;t t
31831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31832 s&@top_srcdir@&$ac_top_srcdir&;t t
31833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31834 s&@builddir@&$ac_builddir&;t t
31835 s&@abs_builddir@&$ac_abs_builddir&;t t
31836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31837 s&@INSTALL@&$ac_INSTALL&;t t
31838 $ac_datarootdir_hack
31839 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31840
31841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31842   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31843   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31844   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31845 which seems to be undefined.  Please make sure it is defined." >&5
31846 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31847 which seems to be undefined.  Please make sure it is defined." >&2;}
31848
31849   rm -f "$tmp/stdin"
31850   case $ac_file in
31851   -) cat "$tmp/out"; rm -f "$tmp/out";;
31852   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31853   esac
31854  ;;
31855   :H)
31856   #
31857   # CONFIG_HEADER
31858   #
31859 _ACEOF
31860
31861 # Transform confdefs.h into a sed script `conftest.defines', that
31862 # substitutes the proper values into config.h.in to produce config.h.
31863 rm -f conftest.defines conftest.tail
31864 # First, append a space to every undef/define line, to ease matching.
31865 echo 's/$/ /' >conftest.defines
31866 # Then, protect against being on the right side of a sed subst, or in
31867 # an unquoted here document, in config.status.  If some macros were
31868 # called several times there might be several #defines for the same
31869 # symbol, which is useless.  But do not sort them, since the last
31870 # AC_DEFINE must be honored.
31871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31872 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31873 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31874 # PARAMS is the parameter list in the macro definition--in most cases, it's
31875 # just an empty string.
31876 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31877 ac_dB='\\)[      (].*,\\1define\\2'
31878 ac_dC=' '
31879 ac_dD=' ,'
31880
31881 uniq confdefs.h |
31882   sed -n '
31883         t rset
31884         :rset
31885         s/^[     ]*#[    ]*define[       ][      ]*//
31886         t ok
31887         d
31888         :ok
31889         s/[\\&,]/\\&/g
31890         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31891         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31892   ' >>conftest.defines
31893
31894 # Remove the space that was appended to ease matching.
31895 # Then replace #undef with comments.  This is necessary, for
31896 # example, in the case of _POSIX_SOURCE, which is predefined and required
31897 # on some systems where configure will not decide to define it.
31898 # (The regexp can be short, since the line contains either #define or #undef.)
31899 echo 's/ $//
31900 s,^[     #]*u.*,/* & */,' >>conftest.defines
31901
31902 # Break up conftest.defines:
31903 ac_max_sed_lines=50
31904
31905 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31906 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31907 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31908 # et cetera.
31909 ac_in='$ac_file_inputs'
31910 ac_out='"$tmp/out1"'
31911 ac_nxt='"$tmp/out2"'
31912
31913 while :
31914 do
31915   # Write a here document:
31916     cat >>$CONFIG_STATUS <<_ACEOF
31917     # First, check the format of the line:
31918     cat >"\$tmp/defines.sed" <<\\CEOF
31919 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31920 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31921 b
31922 :def
31923 _ACEOF
31924   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31925   echo 'CEOF
31926     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31927   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31928   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31929   grep . conftest.tail >/dev/null || break
31930   rm -f conftest.defines
31931   mv conftest.tail conftest.defines
31932 done
31933 rm -f conftest.defines conftest.tail
31934
31935 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31936 cat >>$CONFIG_STATUS <<\_ACEOF
31937   if test x"$ac_file" != x-; then
31938     echo "/* $configure_input  */" >"$tmp/config.h"
31939     cat "$ac_result" >>"$tmp/config.h"
31940     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31941       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31942 echo "$as_me: $ac_file is unchanged" >&6;}
31943     else
31944       rm -f $ac_file
31945       mv "$tmp/config.h" $ac_file
31946     fi
31947   else
31948     echo "/* $configure_input  */"
31949     cat "$ac_result"
31950   fi
31951   rm -f "$tmp/out12"
31952  ;;
31953
31954   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31955 echo "$as_me: executing $ac_file commands" >&6;}
31956  ;;
31957   esac
31958
31959
31960   case $ac_file$ac_mode in
31961     "default-1":C)
31962     for ac_file in $CONFIG_FILES; do
31963       # Support "outfile[:infile[:infile...]]"
31964       case "$ac_file" in
31965         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31966       esac
31967       # PO directories have a Makefile.in generated from Makefile.in.in.
31968       case "$ac_file" in */Makefile.in)
31969         # Adjust a relative srcdir.
31970         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31971         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31972         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31973         # In autoconf-2.13 it is called $ac_given_srcdir.
31974         # In autoconf-2.50 it is called $srcdir.
31975         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31976         case "$ac_given_srcdir" in
31977           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31978           /*) top_srcdir="$ac_given_srcdir" ;;
31979           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31980         esac
31981         # Treat a directory as a PO directory if and only if it has a
31982         # POTFILES.in file. This allows packages to have multiple PO
31983         # directories under different names or in different locations.
31984         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31985           rm -f "$ac_dir/POTFILES"
31986           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31987           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31988           POMAKEFILEDEPS="POTFILES.in"
31989           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31990           # on $ac_dir but don't depend on user-specified configuration
31991           # parameters.
31992           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31993             # The LINGUAS file contains the set of available languages.
31994             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31995               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31996             fi
31997             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31998             # Hide the ALL_LINGUAS assigment from automake.
31999             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32000             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32001           else
32002             # The set of available languages was given in configure.in.
32003             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32004           fi
32005           # Compute POFILES
32006           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32007           # Compute UPDATEPOFILES
32008           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32009           # Compute DUMMYPOFILES
32010           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32011           # Compute GMOFILES
32012           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32013           case "$ac_given_srcdir" in
32014             .) srcdirpre= ;;
32015             *) srcdirpre='$(srcdir)/' ;;
32016           esac
32017           POFILES=
32018           UPDATEPOFILES=
32019           DUMMYPOFILES=
32020           GMOFILES=
32021           for lang in $ALL_LINGUAS; do
32022             POFILES="$POFILES $srcdirpre$lang.po"
32023             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32024             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32025             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32026           done
32027           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32028           # environment variable.
32029           INST_LINGUAS=
32030           if test -n "$ALL_LINGUAS"; then
32031             for presentlang in $ALL_LINGUAS; do
32032               useit=no
32033               if test "%UNSET%" != "$LINGUAS"; then
32034                 desiredlanguages="$LINGUAS"
32035               else
32036                 desiredlanguages="$ALL_LINGUAS"
32037               fi
32038               for desiredlang in $desiredlanguages; do
32039                 # Use the presentlang catalog if desiredlang is
32040                 #   a. equal to presentlang, or
32041                 #   b. a variant of presentlang (because in this case,
32042                 #      presentlang can be used as a fallback for messages
32043                 #      which are not translated in the desiredlang catalog).
32044                 case "$desiredlang" in
32045                   "$presentlang"*) useit=yes;;
32046                 esac
32047               done
32048               if test $useit = yes; then
32049                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32050               fi
32051             done
32052           fi
32053           CATALOGS=
32054           if test -n "$INST_LINGUAS"; then
32055             for lang in $INST_LINGUAS; do
32056               CATALOGS="$CATALOGS $lang.gmo"
32057             done
32058           fi
32059           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32060           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"
32061           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32062             if test -f "$f"; then
32063               case "$f" in
32064                 *.orig | *.bak | *~) ;;
32065                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32066               esac
32067             fi
32068           done
32069         fi
32070         ;;
32071       esac
32072     done ;;
32073     "default":C)
32074  ;;
32075
32076   esac
32077 done # for ac_tag
32078
32079
32080 { (exit 0); exit 0; }
32081 _ACEOF
32082 chmod +x $CONFIG_STATUS
32083 ac_clean_files=$ac_clean_files_save
32084
32085
32086 # configure is writing to config.log, and then calls config.status.
32087 # config.status does its own redirection, appending to config.log.
32088 # Unfortunately, on DOS this fails, as config.log is still kept open
32089 # by configure, so config.status won't be able to write to it; its
32090 # output is simply discarded.  So we exec the FD to /dev/null,
32091 # effectively closing config.log, so it can be properly (re)opened and
32092 # appended to by config.status.  When coming back to configure, we
32093 # need to make the FD available again.
32094 if test "$no_create" != yes; then
32095   ac_cs_success=:
32096   ac_config_status_args=
32097   test "$silent" = yes &&
32098     ac_config_status_args="$ac_config_status_args --quiet"
32099   exec 5>/dev/null
32100   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32101   exec 5>>config.log
32102   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32103   # would make configure fail if this is the last instruction.
32104   $ac_cs_success || { (exit 1); exit 1; }
32105 fi
32106
32107
32108 if test "${support_bat}" = "yes" ; then
32109   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32110   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32111   exit 1
32112   fi
32113
32114   QMAKEBIN="qmake"
32115
32116   if test "x$QMAKEQT4" != "xnone"; then
32117     QMAKEBIN=qmake-qt4
32118   fi
32119
32120   cd src/qt-console
32121   chmod 755 install_conf_file build-depkgs-qt-console
32122   echo "Creating bat Makefile"
32123   $QMAKEBIN
32124   make clean
32125   cd ${BUILD_DIR}
32126 fi
32127
32128 # configure and prepare libtokyodbm for bacula
32129 pushd src/lib/tokyocabinet > /dev/null
32130 tcdbm_opt=
32131 if test x$largefile_support = xyes; then
32132    tcdbm_opt=--enable-off64
32133 fi
32134 ./configure $tcdbm_opt
32135 popd > /dev/null
32136 # need tokyo header files for "make depend"
32137 cp src/lib/tokyocabinet/t*.h src/lib
32138
32139 echo "Doing make of dependencies"
32140 ${MAKE:-make} depend
32141
32142 cd scripts
32143 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32144 chmod 755 dvd-handler dvd-simulator
32145 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32146 cd ..
32147
32148 c=updatedb
32149 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32150 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32151
32152 c=src/cats
32153
32154 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32155 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32156
32157 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32158 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32159
32160 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32161 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32162
32163 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32164 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32165
32166 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32167 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32168
32169 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32170 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32171
32172 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32173 chmod 755 $c/sqlite
32174 chmod 755 $c/mysql
32175
32176 chmod 755 src/win32/build-depkgs-mingw32
32177
32178
32179
32180 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32181    largefile_support="yes"
32182 fi
32183
32184 #
32185 # A whole lot of hand springs to get the compiler version.
32186 #  This is because gcc changed the output in version 3.0
32187 #
32188 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32189 if test "x${CCVERSION}" = "x" ; then
32190   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32191 fi
32192 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32193 if test x"${CXXVERSION}" = x ; then
32194   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32195 fi
32196
32197 if test "x${subsysdir}" = "x${sbindir}" ; then
32198    echo " "
32199    echo " "
32200    echo "You have set --sbindir and --with-subsys-dir"
32201    echo "  both equal to: ${subsysdir} "
32202    echo "  This is not permitted. Please reconfigure."
32203    echo " "
32204    echo "Aborting configuration ..."
32205    echo " "
32206    echo " "
32207    exit 1
32208 fi
32209
32210 if test "x${db_type}" = "xInternal" ; then
32211    echo " "
32212    echo " "
32213    echo "You have not specified either --enable-client-only or one of the"
32214    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32215    echo "  This is not permitted. Please reconfigure."
32216    echo " "
32217    echo "Aborting the configuration ..."
32218    echo " "
32219    echo " "
32220    exit 1
32221 fi
32222
32223 echo "
32224 Configuration on `date`:
32225
32226   Host:                       $host -- ${DISTNAME} ${DISTVER}
32227   Bacula version:             ${VERSION} (${DATE})
32228   Source code location:       ${srcdir}
32229   Install binaries:           ${sbindir}
32230   Install config files:       ${sysconfdir}
32231   Scripts directory:          ${scriptdir}
32232   Archive directory:          ${archivedir}
32233   Working directory:          ${working_dir}
32234   PID directory:              ${piddir}
32235   Subsys directory:           ${subsysdir}
32236   Man directory:              ${mandir}
32237   Data directory:             ${datadir}
32238   C Compiler:                 ${CC} ${CCVERSION}
32239   C++ Compiler:               ${CXX} ${CXXVERSION}
32240   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32241   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32242   Libraries:                  ${LIBS}
32243   Statically Linked Tools:    ${support_static_tools}
32244   Statically Linked FD:       ${support_static_fd}
32245   Statically Linked SD:       ${support_static_sd}
32246   Statically Linked DIR:      ${support_static_dir}
32247   Statically Linked CONS:     ${support_static_cons}
32248   Database type:              ${db_type}
32249   Database lib:               ${DB_LIBS}
32250   Database name:              ${db_name}
32251   Database user:              ${db_user}
32252
32253   Job Output Email:           ${job_email}
32254   Traceback Email:            ${dump_email}
32255   SMTP Host Address:          ${smtp_host}
32256
32257   Director Port:              ${dir_port}
32258   File daemon Port:           ${fd_port}
32259   Storage daemon Port:        ${sd_port}
32260
32261   Director User:              ${dir_user}
32262   Director Group:             ${dir_group}
32263   Storage Daemon User:        ${sd_user}
32264   Storage DaemonGroup:        ${sd_group}
32265   File Daemon User:           ${fd_user}
32266   File Daemon Group:          ${fd_group}
32267
32268   SQL binaries Directory      ${SQL_BINDIR}
32269
32270   Large file support:         $largefile_support
32271   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32272   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32273   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32274   TLS support:                ${support_tls}
32275   Encryption support:         ${support_crypto}
32276   ZLIB support:               ${have_zlib}
32277   enable-smartalloc:          ${support_smartalloc}
32278   enable-faketape:            ${support_faketape}
32279   bat support:                ${support_bat} ${QWT_LDFLAGS}
32280   enable-gnome:               ${support_gnome} ${gnome_version}
32281   enable-bwx-console:         ${support_wx_console} ${wx_version}
32282   enable-tray-monitor:        ${support_tray_monitor}
32283   client-only:                ${build_client_only}
32284   build-dird:                 ${build_dird}
32285   build-stored:               ${build_stored}
32286   ACL support:                ${have_acl}
32287   Python support:             ${support_python} ${PYTHON_LIBS}
32288   Batch insert enabled:       ${support_batch_insert}
32289
32290   " > config.out
32291
32292 cat config.out