]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
565f72d11607c342949444ea022af87a9aa07d36
[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 db_password
827 dir_user
828 dir_group
829 sd_user
830 sd_group
831 fd_user
832 fd_group
833 SBINPERM
834 SQL_LFLAGS
835 SQL_INCLUDE
836 SQL_BINDIR
837 DBI_DBD_DRIVERDIR
838 DB_PROG
839 DB_PROG_LIB
840 cats
841 DB_TYPE
842 GETCONF
843 XMKMF
844 X_CFLAGS
845 X_PRE_LIBS
846 X_LIBS
847 X_EXTRA_LIBS
848 LIBOBJS
849 FDLIBS
850 DEBUG
851 DINCLUDE
852 DLIB
853 DB_LIBS
854 WCFLAGS
855 WLDFLAGS
856 WRAPLIBS
857 OBJLIST
858 hostname
859 TAPEDRIVE
860 PSCMD
861 WIN32
862 MACOSX
863 DISTNAME
864 DISTVER
865 LTLIBOBJS'
866 ac_subst_files='MCOMMON'
867       ac_precious_vars='build_alias
868 host_alias
869 target_alias
870 CC
871 CFLAGS
872 LDFLAGS
873 LIBS
874 CPPFLAGS
875 CXX
876 CXXFLAGS
877 CCC
878 CPP
879 WXCONFIG
880 WXFLAGS
881 XMKMF'
882
883
884 # Initialize some variables set by options.
885 ac_init_help=
886 ac_init_version=false
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
889 cache_file=/dev/null
890 exec_prefix=NONE
891 no_create=
892 no_recursion=
893 prefix=NONE
894 program_prefix=NONE
895 program_suffix=NONE
896 program_transform_name=s,x,x,
897 silent=
898 site=
899 srcdir=
900 verbose=
901 x_includes=NONE
902 x_libraries=NONE
903
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir='${exec_prefix}/bin'
911 sbindir='${exec_prefix}/sbin'
912 libexecdir='${exec_prefix}/libexec'
913 datarootdir='${prefix}/share'
914 datadir='${datarootdir}'
915 sysconfdir='${prefix}/etc'
916 sharedstatedir='${prefix}/com'
917 localstatedir='${prefix}/var'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
929
930 ac_prev=
931 ac_dashdash=
932 for ac_option
933 do
934   # If the previous option needs an argument, assign it.
935   if test -n "$ac_prev"; then
936     eval $ac_prev=\$ac_option
937     ac_prev=
938     continue
939   fi
940
941   case $ac_option in
942   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943   *)    ac_optarg=yes ;;
944   esac
945
946   # Accept the important Cygnus configure options, so we can diagnose typos.
947
948   case $ac_dashdash$ac_option in
949   --)
950     ac_dashdash=yes ;;
951
952   -bindir | --bindir | --bindi | --bind | --bin | --bi)
953     ac_prev=bindir ;;
954   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955     bindir=$ac_optarg ;;
956
957   -build | --build | --buil | --bui | --bu)
958     ac_prev=build_alias ;;
959   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960     build_alias=$ac_optarg ;;
961
962   -cache-file | --cache-file | --cache-fil | --cache-fi \
963   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964     ac_prev=cache_file ;;
965   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967     cache_file=$ac_optarg ;;
968
969   --config-cache | -C)
970     cache_file=config.cache ;;
971
972   -datadir | --datadir | --datadi | --datad)
973     ac_prev=datadir ;;
974   -datadir=* | --datadir=* | --datadi=* | --datad=*)
975     datadir=$ac_optarg ;;
976
977   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978   | --dataroo | --dataro | --datar)
979     ac_prev=datarootdir ;;
980   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982     datarootdir=$ac_optarg ;;
983
984   -disable-* | --disable-*)
985     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986     # Reject names that are not valid shell variable names.
987     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
988       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
989    { (exit 1); exit 1; }; }
990     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
991     eval enable_$ac_feature=no ;;
992
993   -docdir | --docdir | --docdi | --doc | --do)
994     ac_prev=docdir ;;
995   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996     docdir=$ac_optarg ;;
997
998   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999     ac_prev=dvidir ;;
1000   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001     dvidir=$ac_optarg ;;
1002
1003   -enable-* | --enable-*)
1004     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008    { (exit 1); exit 1; }; }
1009     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010     eval enable_$ac_feature=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156     ac_prev=sbindir ;;
1157   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158   | --sbi=* | --sb=*)
1159     sbindir=$ac_optarg ;;
1160
1161   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163   | --sharedst | --shareds | --shared | --share | --shar \
1164   | --sha | --sh)
1165     ac_prev=sharedstatedir ;;
1166   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169   | --sha=* | --sh=*)
1170     sharedstatedir=$ac_optarg ;;
1171
1172   -site | --site | --sit)
1173     ac_prev=site ;;
1174   -site=* | --site=* | --sit=*)
1175     site=$ac_optarg ;;
1176
1177   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178     ac_prev=srcdir ;;
1179   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180     srcdir=$ac_optarg ;;
1181
1182   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183   | --syscon | --sysco | --sysc | --sys | --sy)
1184     ac_prev=sysconfdir ;;
1185   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187     sysconfdir=$ac_optarg ;;
1188
1189   -target | --target | --targe | --targ | --tar | --ta | --t)
1190     ac_prev=target_alias ;;
1191   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192     target_alias=$ac_optarg ;;
1193
1194   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195     verbose=yes ;;
1196
1197   -version | --version | --versio | --versi | --vers | -V)
1198     ac_init_version=: ;;
1199
1200   -with-* | --with-*)
1201     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       { echo "$as_me: error: invalid package name: $ac_package" >&2
1205    { (exit 1); exit 1; }; }
1206     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1207     eval with_$ac_package=\$ac_optarg ;;
1208
1209   -without-* | --without-*)
1210     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213       { echo "$as_me: error: invalid package name: $ac_package" >&2
1214    { (exit 1); exit 1; }; }
1215     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216     eval with_$ac_package=no ;;
1217
1218   --x)
1219     # Obsolete; use --with-x.
1220     with_x=yes ;;
1221
1222   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223   | --x-incl | --x-inc | --x-in | --x-i)
1224     ac_prev=x_includes ;;
1225   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227     x_includes=$ac_optarg ;;
1228
1229   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231     ac_prev=x_libraries ;;
1232   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234     x_libraries=$ac_optarg ;;
1235
1236   -*) { echo "$as_me: error: unrecognized option: $ac_option
1237 Try \`$0 --help' for more information." >&2
1238    { (exit 1); exit 1; }; }
1239     ;;
1240
1241   *=*)
1242     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1245       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1246    { (exit 1); exit 1; }; }
1247     eval $ac_envvar=\$ac_optarg
1248     export $ac_envvar ;;
1249
1250   *)
1251     # FIXME: should be removed in autoconf 3.0.
1252     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256     ;;
1257
1258   esac
1259 done
1260
1261 if test -n "$ac_prev"; then
1262   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263   { echo "$as_me: error: missing argument to $ac_option" >&2
1264    { (exit 1); exit 1; }; }
1265 fi
1266
1267 # Be sure to have absolute directory names.
1268 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269                 datadir sysconfdir sharedstatedir localstatedir includedir \
1270                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271                 libdir localedir mandir
1272 do
1273   eval ac_val=\$$ac_var
1274   case $ac_val in
1275     [\\/$]* | ?:[\\/]* )  continue;;
1276     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277   esac
1278   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1279    { (exit 1); exit 1; }; }
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291   if test "x$build_alias" = x; then
1292     cross_compiling=maybe
1293     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294     If a cross compiler is detected then cross compile mode will be used." >&2
1295   elif test "x$build_alias" != "x$host_alias"; then
1296     cross_compiling=yes
1297   fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309   { echo "$as_me: error: Working directory cannot be determined" >&2
1310    { (exit 1); exit 1; }; }
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312   { echo "$as_me: error: pwd does not report name of working directory" >&2
1313    { (exit 1); exit 1; }; }
1314
1315
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318   ac_srcdir_defaulted=yes
1319   # Try the directory containing this script, then the parent directory.
1320   ac_confdir=`$as_dirname -- "$0" ||
1321 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322          X"$0" : 'X\(//\)[^/]' \| \
1323          X"$0" : 'X\(//\)$' \| \
1324          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1325 echo X"$0" |
1326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)[^/].*/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\).*/{
1339             s//\1/
1340             q
1341           }
1342           s/.*/./; q'`
1343   srcdir=$ac_confdir
1344   if test ! -r "$srcdir/$ac_unique_file"; then
1345     srcdir=..
1346   fi
1347 else
1348   ac_srcdir_defaulted=no
1349 fi
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1353    { (exit 1); exit 1; }; }
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1358    { (exit 1); exit 1; }; }
1359         pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362   srcdir=.
1363 fi
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_env_${ac_var}_value=\$${ac_var}
1373   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381   # Omit some internal or obsolete options to make the list less imposing.
1382   # This message is too long to be a string in the A/UX 3.1 sh.
1383   cat <<_ACEOF
1384 \`configure' configures this package to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394   -h, --help              display this help and exit
1395       --help=short        display options specific to this package
1396       --help=recursive    display the short help of all the included packages
1397   -V, --version           display version information and exit
1398   -q, --quiet, --silent   do not print \`checking...' messages
1399       --cache-file=FILE   cache test results in FILE [disabled]
1400   -C, --config-cache      alias for \`--cache-file=config.cache'
1401   -n, --no-create         do not create output files
1402       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405   --prefix=PREFIX         install architecture-independent files in PREFIX
1406                           [$ac_default_prefix]
1407   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                           [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418   --bindir=DIR           user executables [EPREFIX/bin]
1419   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1420   --libexecdir=DIR       program executables [EPREFIX/libexec]
1421   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1422   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1423   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1424   --libdir=DIR           object code libraries [EPREFIX/lib]
1425   --includedir=DIR       C header files [PREFIX/include]
1426   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1427   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1428   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1429   --infodir=DIR          info documentation [DATAROOTDIR/info]
1430   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1431   --mandir=DIR           man documentation [DATAROOTDIR/man]
1432   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1433   --htmldir=DIR          html documentation [DOCDIR]
1434   --dvidir=DIR           dvi documentation [DOCDIR]
1435   --pdfdir=DIR           pdf documentation [DOCDIR]
1436   --psdir=DIR            ps documentation [DOCDIR]
1437 _ACEOF
1438
1439   cat <<\_ACEOF
1440
1441 X features:
1442   --x-includes=DIR    X include files are in DIR
1443   --x-libraries=DIR   X library files are in DIR
1444
1445 System types:
1446   --build=BUILD     configure for building on BUILD [guessed]
1447   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452
1453   cat <<\_ACEOF
1454
1455 Optional Features:
1456   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458   --disable-nls           do not use Native Language Support
1459   --disable-rpath         do not hardcode runtime library paths
1460   --enable-gnome          enable build of bgnome-console GUI disabled
1461   --enable-bat  enable build of bat Qt4 GUI disabled
1462   --enable-bwx-console     enable build of wxWidgets console disabled
1463   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1464   --enable-smartalloc     enable smartalloc 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-db-password=UNAME         specify database password (default *none*)
1518   --with-dir-user=USER           specify user for Director daemon
1519   --with-dir-group=GROUP                 specify group for Director daemon
1520   --with-sd-user=USER            specify user for Storage daemon
1521   --with-sd-group=GROUP          specify group for Storage daemon
1522   --with-fd-user=USER            specify user for File daemon
1523   --with-fd-group=GROUP          specify group for File daemon
1524   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1525   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1526                           base install directory, defaults to /usr/local/pgsql
1527
1528   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1529                           install directory, default is to search through
1530                           a number of common places for the MySQL files.
1531
1532   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1533                           install directory, default is to search through
1534                           a number of common places for the MySQL files.
1535
1536   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1537                           install directory, default is to search through
1538                           a number of common places for the SQLite3 files.
1539
1540   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1541                           install directory, default is to search through
1542                           a number of common places for the SQLite files.
1543
1544   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1545                           install directory, default is to search through
1546                           a number of common places for the DBI files.
1547
1548   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1549                           the one DBI driver like Mysql, Postgresql, others.
1550                           Default is to not configure any driver.
1551   --with-x                use the X Window System
1552
1553 Some influential environment variables:
1554   CC          C compiler command
1555   CFLAGS      C compiler flags
1556   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1557               nonstandard directory <lib dir>
1558   LIBS        libraries to pass to the linker, e.g. -l<library>
1559   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560               you have headers in a nonstandard directory <include dir>
1561   CXX         C++ compiler command
1562   CXXFLAGS    C++ compiler flags
1563   CPP         C preprocessor
1564   WXCONFIG    wx-config command. On some systems, you must set it to
1565               wx-config-2.6 to use wxWidgets 2.6.
1566   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1567   XMKMF       Path to xmkmf, Makefile generator for X Window System
1568
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1571
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577   # If there are subdirs, report their specific --help.
1578   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579     test -d "$ac_dir" || continue
1580     ac_builddir=.
1581
1582 case "$ac_dir" in
1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *)
1585   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1586   # A ".." for each directory in $ac_dir_suffix.
1587   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1588   case $ac_top_builddir_sub in
1589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591   esac ;;
1592 esac
1593 ac_abs_top_builddir=$ac_pwd
1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595 # for backward compatibility:
1596 ac_top_builddir=$ac_top_build_prefix
1597
1598 case $srcdir in
1599   .)  # We are building in place.
1600     ac_srcdir=.
1601     ac_top_srcdir=$ac_top_builddir_sub
1602     ac_abs_top_srcdir=$ac_pwd ;;
1603   [\\/]* | ?:[\\/]* )  # Absolute name.
1604     ac_srcdir=$srcdir$ac_dir_suffix;
1605     ac_top_srcdir=$srcdir
1606     ac_abs_top_srcdir=$srcdir ;;
1607   *) # Relative name.
1608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609     ac_top_srcdir=$ac_top_build_prefix$srcdir
1610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 esac
1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614     cd "$ac_dir" || { ac_status=$?; continue; }
1615     # Check for guested configure.
1616     if test -f "$ac_srcdir/configure.gnu"; then
1617       echo &&
1618       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619     elif test -f "$ac_srcdir/configure"; then
1620       echo &&
1621       $SHELL "$ac_srcdir/configure" --help=recursive
1622     else
1623       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624     fi || ac_status=$?
1625     cd "$ac_pwd" || { ac_status=$?; break; }
1626   done
1627 fi
1628
1629 test -n "$ac_init_help" && exit $ac_status
1630 if $ac_init_version; then
1631   cat <<\_ACEOF
1632 configure
1633 generated by GNU Autoconf 2.61
1634
1635 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1636 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1639 _ACEOF
1640   exit
1641 fi
1642 cat >config.log <<_ACEOF
1643 This file contains any messages produced by compilers while
1644 running configure, to aid debugging if configure makes a mistake.
1645
1646 It was created by $as_me, which was
1647 generated by GNU Autoconf 2.61.  Invocation command line was
1648
1649   $ $0 $@
1650
1651 _ACEOF
1652 exec 5>>config.log
1653 {
1654 cat <<_ASUNAME
1655 ## --------- ##
1656 ## Platform. ##
1657 ## --------- ##
1658
1659 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1660 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1661 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1662 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1663 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1664
1665 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1666 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1667
1668 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1669 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1670 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1671 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1672 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1673 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1674 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1675
1676 _ASUNAME
1677
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   echo "PATH: $as_dir"
1684 done
1685 IFS=$as_save_IFS
1686
1687 } >&5
1688
1689 cat >&5 <<_ACEOF
1690
1691
1692 ## ----------- ##
1693 ## Core tests. ##
1694 ## ----------- ##
1695
1696 _ACEOF
1697
1698
1699 # Keep a trace of the command line.
1700 # Strip out --no-create and --no-recursion so they do not pile up.
1701 # Strip out --silent because we don't want to record it for future runs.
1702 # Also quote any args containing shell meta-characters.
1703 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_configure_args=
1705 ac_configure_args0=
1706 ac_configure_args1=
1707 ac_must_keep_next=false
1708 for ac_pass in 1 2
1709 do
1710   for ac_arg
1711   do
1712     case $ac_arg in
1713     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1714     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715     | -silent | --silent | --silen | --sile | --sil)
1716       continue ;;
1717     *\'*)
1718       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     esac
1720     case $ac_pass in
1721     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1722     2)
1723       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1724       if test $ac_must_keep_next = true; then
1725         ac_must_keep_next=false # Got value, back to normal.
1726       else
1727         case $ac_arg in
1728           *=* | --config-cache | -C | -disable-* | --disable-* \
1729           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1730           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1731           | -with-* | --with-* | -without-* | --without-* | --x)
1732             case "$ac_configure_args0 " in
1733               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734             esac
1735             ;;
1736           -* ) ac_must_keep_next=true ;;
1737         esac
1738       fi
1739       ac_configure_args="$ac_configure_args '$ac_arg'"
1740       ;;
1741     esac
1742   done
1743 done
1744 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1745 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1746
1747 # When interrupted or exit'd, cleanup temporary files, and complete
1748 # config.log.  We remove comments because anyway the quotes in there
1749 # would cause problems or look ugly.
1750 # WARNING: Use '\'' to represent an apostrophe within the trap.
1751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1752 trap 'exit_status=$?
1753   # Save into config.log some information that might help in debugging.
1754   {
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ---------------- ##
1759 ## Cache variables. ##
1760 ## ---------------- ##
1761 _ASBOX
1762     echo
1763     # The following way of writing the cache mishandles newlines in values,
1764 (
1765   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1766     eval ac_val=\$$ac_var
1767     case $ac_val in #(
1768     *${as_nl}*)
1769       case $ac_var in #(
1770       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1771 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772       esac
1773       case $ac_var in #(
1774       _ | IFS | as_nl) ;; #(
1775       *) $as_unset $ac_var ;;
1776       esac ;;
1777     esac
1778   done
1779   (set) 2>&1 |
1780     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1781     *${as_nl}ac_space=\ *)
1782       sed -n \
1783         "s/'\''/'\''\\\\'\'''\''/g;
1784           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785       ;; #(
1786     *)
1787       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788       ;;
1789     esac |
1790     sort
1791 )
1792     echo
1793
1794     cat <<\_ASBOX
1795 ## ----------------- ##
1796 ## Output variables. ##
1797 ## ----------------- ##
1798 _ASBOX
1799     echo
1800     for ac_var in $ac_subst_vars
1801     do
1802       eval ac_val=\$$ac_var
1803       case $ac_val in
1804       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805       esac
1806       echo "$ac_var='\''$ac_val'\''"
1807     done | sort
1808     echo
1809
1810     if test -n "$ac_subst_files"; then
1811       cat <<\_ASBOX
1812 ## ------------------- ##
1813 ## File substitutions. ##
1814 ## ------------------- ##
1815 _ASBOX
1816       echo
1817       for ac_var in $ac_subst_files
1818       do
1819         eval ac_val=\$$ac_var
1820         case $ac_val in
1821         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822         esac
1823         echo "$ac_var='\''$ac_val'\''"
1824       done | sort
1825       echo
1826     fi
1827
1828     if test -s confdefs.h; then
1829       cat <<\_ASBOX
1830 ## ----------- ##
1831 ## confdefs.h. ##
1832 ## ----------- ##
1833 _ASBOX
1834       echo
1835       cat confdefs.h
1836       echo
1837     fi
1838     test "$ac_signal" != 0 &&
1839       echo "$as_me: caught signal $ac_signal"
1840     echo "$as_me: exit $exit_status"
1841   } >&5
1842   rm -f core *.core core.conftest.* &&
1843     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844     exit $exit_status
1845 ' 0
1846 for ac_signal in 1 2 13 15; do
1847   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848 done
1849 ac_signal=0
1850
1851 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1852 rm -f -r conftest* confdefs.h
1853
1854 # Predefined preprocessor variables.
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_NAME "$PACKAGE_NAME"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_STRING "$PACKAGE_STRING"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878 _ACEOF
1879
1880
1881 # Let the site file select an alternate cache file if it wants to.
1882 # Prefer explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884   set x "$CONFIG_SITE"
1885 elif test "x$prefix" != xNONE; then
1886   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1887 else
1888   set x "$ac_default_prefix/share/config.site" \
1889         "$ac_default_prefix/etc/config.site"
1890 fi
1891 shift
1892 for ac_site_file
1893 do
1894   if test -r "$ac_site_file"; then
1895     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 echo "$as_me: loading site script $ac_site_file" >&6;}
1897     sed 's/^/| /' "$ac_site_file" >&5
1898     . "$ac_site_file"
1899   fi
1900 done
1901
1902 if test -r "$cache_file"; then
1903   # Some versions of bash will fail to source /dev/null (special
1904   # files actually), so we avoid doing that.
1905   if test -f "$cache_file"; then
1906     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 echo "$as_me: loading cache $cache_file" >&6;}
1908     case $cache_file in
1909       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910       *)                      . "./$cache_file";;
1911     esac
1912   fi
1913 else
1914   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 echo "$as_me: creating cache $cache_file" >&6;}
1916   >$cache_file
1917 fi
1918
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924   eval ac_new_set=\$ac_env_${ac_var}_set
1925   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926   eval ac_new_val=\$ac_env_${ac_var}_value
1927   case $ac_old_set,$ac_new_set in
1928     set,)
1929       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931       ac_cache_corrupted=: ;;
1932     ,set)
1933       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,);;
1937     *)
1938       if test "x$ac_old_val" != "x$ac_new_val"; then
1939         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1941         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1942 echo "$as_me:   former value:  $ac_old_val" >&2;}
1943         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1944 echo "$as_me:   current value: $ac_new_val" >&2;}
1945         ac_cache_corrupted=:
1946       fi;;
1947   esac
1948   # Pass precious variables to config.status.
1949   if test "$ac_new_set" = set; then
1950     case $ac_new_val in
1951     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1952     *) ac_arg=$ac_var=$ac_new_val ;;
1953     esac
1954     case " $ac_configure_args " in
1955       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1956       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1957     esac
1958   fi
1959 done
1960 if $ac_cache_corrupted; then
1961   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1962 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1963   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1964 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1965    { (exit 1); exit 1; }; }
1966 fi
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984 ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989
1990
1991 BUILD_DIR=`pwd`
1992 cd ..
1993 TOP_DIR=`pwd`
1994 cd ${BUILD_DIR}
1995
1996
1997 ac_aux_dir=
1998 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1999   if test -f "$ac_dir/install-sh"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/install-sh -c"
2002     break
2003   elif test -f "$ac_dir/install.sh"; then
2004     ac_aux_dir=$ac_dir
2005     ac_install_sh="$ac_aux_dir/install.sh -c"
2006     break
2007   elif test -f "$ac_dir/shtool"; then
2008     ac_aux_dir=$ac_dir
2009     ac_install_sh="$ac_aux_dir/shtool install -c"
2010     break
2011   fi
2012 done
2013 if test -z "$ac_aux_dir"; then
2014   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2015 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019 # These three variables are undocumented and unsupported,
2020 # and are intended to be withdrawn in a future Autoconf release.
2021 # They can cause serious problems if a builder's source tree is in a directory
2022 # whose full name contains unusual characters.
2023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2025 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2026
2027
2028 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2029
2030
2031
2032
2033
2034 for ac_prog in true
2035 do
2036   # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   case $TRUEPRG in
2044   [\\/]* | ?:[\\/]*)
2045   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2046   ;;
2047   *)
2048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061 IFS=$as_save_IFS
2062
2063   ;;
2064 esac
2065 fi
2066 TRUEPRG=$ac_cv_path_TRUEPRG
2067 if test -n "$TRUEPRG"; then
2068   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2069 echo "${ECHO_T}$TRUEPRG" >&6; }
2070 else
2071   { echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6; }
2073 fi
2074
2075
2076   test -n "$TRUEPRG" && break
2077 done
2078 test -n "$TRUEPRG" || TRUEPRG=":"
2079
2080 for ac_prog in false
2081 do
2082   # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   case $FALSEPRG in
2090   [\\/]* | ?:[\\/]*)
2091   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2092   ;;
2093   *)
2094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107 IFS=$as_save_IFS
2108
2109   ;;
2110 esac
2111 fi
2112 FALSEPRG=$ac_cv_path_FALSEPRG
2113 if test -n "$FALSEPRG"; then
2114   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2115 echo "${ECHO_T}$FALSEPRG" >&6; }
2116 else
2117   { echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6; }
2119 fi
2120
2121
2122   test -n "$FALSEPRG" && break
2123 done
2124 test -n "$FALSEPRG" || FALSEPRG=":"
2125
2126
2127
2128 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2130 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2131 echo "configuring for bacula $VERSION ($DATE)"
2132
2133
2134
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test -n "$CC"; then
2149   ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   for ac_exec_ext in '' $ac_executable_extensions; do
2157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164 IFS=$as_save_IFS
2165
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2172 else
2173   { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2175 fi
2176
2177
2178 fi
2179 if test -z "$ac_cv_prog_CC"; then
2180   ac_ct_CC=$CC
2181   # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   if test -n "$ac_ct_CC"; then
2189   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   test -z "$as_dir" && as_dir=.
2196   for ac_exec_ext in '' $ac_executable_extensions; do
2197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198     ac_cv_prog_ac_ct_CC="gcc"
2199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200     break 2
2201   fi
2202 done
2203 done
2204 IFS=$as_save_IFS
2205
2206 fi
2207 fi
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2211 echo "${ECHO_T}$ac_ct_CC" >&6; }
2212 else
2213   { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 fi
2216
2217   if test "x$ac_ct_CC" = x; then
2218     CC=""
2219   else
2220     case $cross_compiling:$ac_tool_warned in
2221 yes:)
2222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet.  If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet.  If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2229 esac
2230     CC=$ac_ct_CC
2231   fi
2232 else
2233   CC="$ac_cv_prog_CC"
2234 fi
2235
2236 if test -z "$CC"; then
2237           if test -n "$ac_tool_prefix"; then
2238     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243   echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245   if test -n "$CC"; then
2246   ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251   IFS=$as_save_IFS
2252   test -z "$as_dir" && as_dir=.
2253   for ac_exec_ext in '' $ac_executable_extensions; do
2254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255     ac_cv_prog_CC="${ac_tool_prefix}cc"
2256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257     break 2
2258   fi
2259 done
2260 done
2261 IFS=$as_save_IFS
2262
2263 fi
2264 fi
2265 CC=$ac_cv_prog_CC
2266 if test -n "$CC"; then
2267   { echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6; }
2269 else
2270   { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 fi
2273
2274
2275   fi
2276 fi
2277 if test -z "$CC"; then
2278   # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   if test -n "$CC"; then
2286   ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288   ac_prog_rejected=no
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292   IFS=$as_save_IFS
2293   test -z "$as_dir" && as_dir=.
2294   for ac_exec_ext in '' $ac_executable_extensions; do
2295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2297        ac_prog_rejected=yes
2298        continue
2299      fi
2300     ac_cv_prog_CC="cc"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2307
2308 if test $ac_prog_rejected = yes; then
2309   # We found a bogon in the path, so make sure we never use it.
2310   set dummy $ac_cv_prog_CC
2311   shift
2312   if test $# != 0; then
2313     # We chose a different compiler from the bogus one.
2314     # However, it has the same basename, so the bogon will be chosen
2315     # first if we set CC to just the basename; use the full file name.
2316     shift
2317     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2318   fi
2319 fi
2320 fi
2321 fi
2322 CC=$ac_cv_prog_CC
2323 if test -n "$CC"; then
2324   { echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6; }
2326 else
2327   { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2329 fi
2330
2331
2332 fi
2333 if test -z "$CC"; then
2334   if test -n "$ac_tool_prefix"; then
2335   for ac_prog in cl.exe
2336   do
2337     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$CC"; then
2345   ac_cv_prog_CC="$CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 CC=$ac_cv_prog_CC
2365 if test -n "$CC"; then
2366   { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373
2374     test -n "$CC" && break
2375   done
2376 fi
2377 if test -z "$CC"; then
2378   ac_ct_CC=$CC
2379   for ac_prog in cl.exe
2380 do
2381   # Extract the first word of "$ac_prog", so it can be a program name with args.
2382 set dummy $ac_prog; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386   echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388   if test -n "$ac_ct_CC"; then
2389   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396   for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_ac_ct_CC="$ac_prog"
2399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403 done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2412 else
2413   { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2415 fi
2416
2417
2418   test -n "$ac_ct_CC" && break
2419 done
2420
2421   if test "x$ac_ct_CC" = x; then
2422     CC=""
2423   else
2424     case $cross_compiling:$ac_tool_warned in
2425 yes:)
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet.  If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet.  If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2433 esac
2434     CC=$ac_ct_CC
2435   fi
2436 fi
2437
2438 fi
2439
2440
2441 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&2;}
2445    { (exit 1); exit 1; }; }
2446
2447 # Provide some information about the compiler.
2448 echo "$as_me:$LINENO: checking for C compiler version" >&5
2449 ac_compiler=`set X $ac_compile; echo $2`
2450 { (ac_try="$ac_compiler --version >&5"
2451 case "(($ac_try" in
2452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453   *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456   (eval "$ac_compiler --version >&5") 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }
2460 { (ac_try="$ac_compiler -v >&5"
2461 case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_compiler -v >&5") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }
2470 { (ac_try="$ac_compiler -V >&5"
2471 case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_compiler -V >&5") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }
2480
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 ac_clean_files_save=$ac_clean_files
2497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2498 # Try to create an executable without -o first, disregard a.out.
2499 # It will help us diagnose broken compilers, and finding out an intuition
2500 # of exeext.
2501 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2504 #
2505 # List of possible output files, starting from the most likely.
2506 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2507 # only as a last resort.  b.out is created by i960 compilers.
2508 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2509 #
2510 # The IRIX 6 linker writes into existing files which may not be
2511 # executable, retaining their permissions.  Remove them first so a
2512 # subsequent execution test works.
2513 ac_rmfiles=
2514 for ac_file in $ac_files
2515 do
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2519   esac
2520 done
2521 rm -f $ac_rmfiles
2522
2523 if { (ac_try="$ac_link_default"
2524 case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529   (eval "$ac_link_default") 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; then
2533   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2535 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2536 # so that the user can short-circuit this test for compilers unknown to
2537 # Autoconf.
2538 for ac_file in $ac_files ''
2539 do
2540   test -f "$ac_file" || continue
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2543         ;;
2544     [ab].out )
2545         # We found the default executable, but exeext='' is most
2546         # certainly right.
2547         break;;
2548     *.* )
2549         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2550         then :; else
2551            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552         fi
2553         # We set ac_cv_exeext here because the later test for it is not
2554         # safe: cross compilers may not add the suffix if given an `-o'
2555         # argument, so we may need to know it at that point already.
2556         # Even if this section looks crufty: it has the advantage of
2557         # actually working.
2558         break;;
2559     * )
2560         break;;
2561   esac
2562 done
2563 test "$ac_cv_exeext" = no && ac_cv_exeext=
2564
2565 else
2566   ac_file=''
2567 fi
2568
2569 { echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6; }
2571 if test -z "$ac_file"; then
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: C compiler cannot create executables
2578 See \`config.log' for more details." >&2;}
2579    { (exit 77); exit 77; }; }
2580 fi
2581
2582 ac_exeext=$ac_cv_exeext
2583
2584 # Check that the compiler produces executables we can run.  If not, either
2585 # the compiler is broken, or we cross compile.
2586 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2587 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2588 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2589 # If not cross compiling, check that we can run a simple program.
2590 if test "$cross_compiling" != yes; then
2591   if { ac_try='./$ac_file'
2592   { (case "(($ac_try" in
2593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594   *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597   (eval "$ac_try") 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; }; then
2601     cross_compiling=no
2602   else
2603     if test "$cross_compiling" = maybe; then
2604         cross_compiling=yes
2605     else
2606         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607 If you meant to cross compile, use \`--host'.
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&2;}
2612    { (exit 1); exit 1; }; }
2613     fi
2614   fi
2615 fi
2616 { echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2618
2619 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2620 ac_clean_files=$ac_clean_files_save
2621 # Check that the compiler produces executables we can run.  If not, either
2622 # the compiler is broken, or we cross compile.
2623 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2624 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2625 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2626 echo "${ECHO_T}$cross_compiling" >&6; }
2627
2628 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2629 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2630 if { (ac_try="$ac_link"
2631 case "(($ac_try" in
2632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633   *) ac_try_echo=$ac_try;;
2634 esac
2635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2636   (eval "$ac_link") 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; then
2640   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2641 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2642 # work properly (i.e., refer to `conftest.exe'), while it won't with
2643 # `rm'.
2644 for ac_file in conftest.exe conftest conftest.*; do
2645   test -f "$ac_file" || continue
2646   case $ac_file in
2647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2648     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2649           break;;
2650     * ) break;;
2651   esac
2652 done
2653 else
2654   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&5
2656 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&2;}
2658    { (exit 1); exit 1; }; }
2659 fi
2660
2661 rm -f conftest$ac_cv_exeext
2662 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2663 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2664
2665 rm -f conftest.$ac_ext
2666 EXEEXT=$ac_cv_exeext
2667 ac_exeext=$EXEEXT
2668 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2669 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2670 if test "${ac_cv_objext+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.o conftest.obj
2689 if { (ac_try="$ac_compile"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compile") 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; then
2699   for ac_file in conftest.o conftest.obj conftest.*; do
2700   test -f "$ac_file" || continue;
2701   case $ac_file in
2702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2703     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2704        break;;
2705   esac
2706 done
2707 else
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2714 See \`config.log' for more details." >&2;}
2715    { (exit 1); exit 1; }; }
2716 fi
2717
2718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2719 fi
2720 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2721 echo "${ECHO_T}$ac_cv_objext" >&6; }
2722 OBJEXT=$ac_cv_objext
2723 ac_objext=$OBJEXT
2724 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2725 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2726 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h.  */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h.  */
2735
2736 int
2737 main ()
2738 {
2739 #ifndef __GNUC__
2740        choke me
2741 #endif
2742
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_compile") 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } && {
2761          test -z "$ac_c_werror_flag" ||
2762          test ! -s conftest.err
2763        } && test -s conftest.$ac_objext; then
2764   ac_compiler_gnu=yes
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769         ac_compiler_gnu=no
2770 fi
2771
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2774
2775 fi
2776 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2778 GCC=`test $ac_compiler_gnu = yes && echo yes`
2779 ac_test_CFLAGS=${CFLAGS+set}
2780 ac_save_CFLAGS=$CFLAGS
2781 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2782 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_cc_g+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   ac_save_c_werror_flag=$ac_c_werror_flag
2787    ac_c_werror_flag=yes
2788    ac_cv_prog_cc_g=no
2789    CFLAGS="-g"
2790    cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h.  */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h.  */
2796
2797 int
2798 main ()
2799 {
2800
2801   ;
2802   return 0;
2803 }
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (ac_try="$ac_compile"
2807 case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_compile") 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } && {
2819          test -z "$ac_c_werror_flag" ||
2820          test ! -s conftest.err
2821        } && test -s conftest.$ac_objext; then
2822   ac_cv_prog_cc_g=yes
2823 else
2824   echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2826
2827         CFLAGS=""
2828       cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834
2835 int
2836 main ()
2837 {
2838
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (ac_try="$ac_compile"
2845 case "(($ac_try" in
2846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847   *) ac_try_echo=$ac_try;;
2848 esac
2849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850   (eval "$ac_compile") 2>conftest.er1
2851   ac_status=$?
2852   grep -v '^ *+' conftest.er1 >conftest.err
2853   rm -f conftest.er1
2854   cat conftest.err >&5
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); } && {
2857          test -z "$ac_c_werror_flag" ||
2858          test ! -s conftest.err
2859        } && test -s conftest.$ac_objext; then
2860   :
2861 else
2862   echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865         ac_c_werror_flag=$ac_save_c_werror_flag
2866          CFLAGS="-g"
2867          cat >conftest.$ac_ext <<_ACEOF
2868 /* confdefs.h.  */
2869 _ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h.  */
2873
2874 int
2875 main ()
2876 {
2877
2878   ;
2879   return 0;
2880 }
2881 _ACEOF
2882 rm -f conftest.$ac_objext
2883 if { (ac_try="$ac_compile"
2884 case "(($ac_try" in
2885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886   *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889   (eval "$ac_compile") 2>conftest.er1
2890   ac_status=$?
2891   grep -v '^ *+' conftest.er1 >conftest.err
2892   rm -f conftest.er1
2893   cat conftest.err >&5
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); } && {
2896          test -z "$ac_c_werror_flag" ||
2897          test ! -s conftest.err
2898        } && test -s conftest.$ac_objext; then
2899   ac_cv_prog_cc_g=yes
2900 else
2901   echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2903
2904
2905 fi
2906
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 fi
2909
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 fi
2912
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914    ac_c_werror_flag=$ac_save_c_werror_flag
2915 fi
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919   CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921   if test "$GCC" = yes; then
2922     CFLAGS="-g -O2"
2923   else
2924     CFLAGS="-g"
2925   fi
2926 else
2927   if test "$GCC" = yes; then
2928     CFLAGS="-O2"
2929   else
2930     CFLAGS=
2931   fi
2932 fi
2933 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2934 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_c89+set}" = set; then
2936   echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938   ac_cv_prog_cc_c89=no
2939 ac_save_CC=$CC
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 #include <stdarg.h>
2947 #include <stdio.h>
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2954      char **p;
2955      int i;
2956 {
2957   return p[i];
2958 }
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2960 {
2961   char *s;
2962   va_list v;
2963   va_start (v,p);
2964   s = g (p, va_arg (v,int));
2965   va_end (v);
2966   return s;
2967 }
2968
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2970    function prototypes and stuff, but not '\xHH' hex character constants.
2971    These don't provoke an error unfortunately, instead are silently treated
2972    as 'x'.  The following induces an error, until -std is added to get
2973    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2974    array size at least.  It's necessary to write '\x00'==0 to get something
2975    that's true only with -std.  */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2977
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979    inside strings and character constants.  */
2980 #define FOO(x) 'x'
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2982
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2987 int argc;
2988 char **argv;
2989 int
2990 main ()
2991 {
2992 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2999 do
3000   CC="$ac_save_CC $ac_arg"
3001   rm -f conftest.$ac_objext
3002 if { (ac_try="$ac_compile"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compile") 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } && {
3015          test -z "$ac_c_werror_flag" ||
3016          test ! -s conftest.err
3017        } && test -s conftest.$ac_objext; then
3018   ac_cv_prog_cc_c89=$ac_arg
3019 else
3020   echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3022
3023
3024 fi
3025
3026 rm -f core conftest.err conftest.$ac_objext
3027   test "x$ac_cv_prog_cc_c89" != "xno" && break
3028 done
3029 rm -f conftest.$ac_ext
3030 CC=$ac_save_CC
3031
3032 fi
3033 # AC_CACHE_VAL
3034 case "x$ac_cv_prog_cc_c89" in
3035   x)
3036     { echo "$as_me:$LINENO: result: none needed" >&5
3037 echo "${ECHO_T}none needed" >&6; } ;;
3038   xno)
3039     { echo "$as_me:$LINENO: result: unsupported" >&5
3040 echo "${ECHO_T}unsupported" >&6; } ;;
3041   *)
3042     CC="$CC $ac_cv_prog_cc_c89"
3043     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3044 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3045 esac
3046
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053
3054 ac_ext=cpp
3055 ac_cpp='$CXXCPP $CPPFLAGS'
3056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3059 if test -z "$CXX"; then
3060   if test -n "$CCC"; then
3061     CXX=$CCC
3062   else
3063     if test -n "$ac_tool_prefix"; then
3064   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3065   do
3066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_CXX+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   if test -n "$CXX"; then
3074   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   for ac_exec_ext in '' $ac_executable_extensions; do
3082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 CXX=$ac_cv_prog_CXX
3094 if test -n "$CXX"; then
3095   { echo "$as_me:$LINENO: result: $CXX" >&5
3096 echo "${ECHO_T}$CXX" >&6; }
3097 else
3098   { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3100 fi
3101
3102
3103     test -n "$CXX" && break
3104   done
3105 fi
3106 if test -z "$CXX"; then
3107   ac_ct_CXX=$CXX
3108   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3109 do
3110   # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3114 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3115   echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117   if test -n "$ac_ct_CXX"; then
3118   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125   for ac_exec_ext in '' $ac_executable_extensions; do
3126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127     ac_cv_prog_ac_ct_CXX="$ac_prog"
3128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3138 if test -n "$ac_ct_CXX"; then
3139   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3140 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3141 else
3142   { echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6; }
3144 fi
3145
3146
3147   test -n "$ac_ct_CXX" && break
3148 done
3149
3150   if test "x$ac_ct_CXX" = x; then
3151     CXX="g++"
3152   else
3153     case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3156 whose name does not start with the host triplet.  If you think this
3157 configuration is useful to you, please write to autoconf@gnu.org." >&5
3158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3159 whose name does not start with the host triplet.  If you think this
3160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3161 ac_tool_warned=yes ;;
3162 esac
3163     CXX=$ac_ct_CXX
3164   fi
3165 fi
3166
3167   fi
3168 fi
3169 # Provide some information about the compiler.
3170 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3171 ac_compiler=`set X $ac_compile; echo $2`
3172 { (ac_try="$ac_compiler --version >&5"
3173 case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_compiler --version >&5") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }
3182 { (ac_try="$ac_compiler -v >&5"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_compiler -v >&5") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }
3192 { (ac_try="$ac_compiler -V >&5"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_compiler -V >&5") 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }
3202
3203 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3204 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3205 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218 #ifndef __GNUC__
3219        choke me
3220 #endif
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_compile") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } && {
3240          test -z "$ac_cxx_werror_flag" ||
3241          test ! -s conftest.err
3242        } && test -s conftest.$ac_objext; then
3243   ac_compiler_gnu=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248         ac_compiler_gnu=no
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3253
3254 fi
3255 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3257 GXX=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CXXFLAGS=${CXXFLAGS+set}
3259 ac_save_CXXFLAGS=$CXXFLAGS
3260 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3261 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cxx_g+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3266    ac_cxx_werror_flag=yes
3267    ac_cv_prog_cxx_g=no
3268    CXXFLAGS="-g"
3269    cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275
3276 int
3277 main ()
3278 {
3279
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_compile") 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } && {
3298          test -z "$ac_cxx_werror_flag" ||
3299          test ! -s conftest.err
3300        } && test -s conftest.$ac_objext; then
3301   ac_cv_prog_cxx_g=yes
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306         CXXFLAGS=""
3307       cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313
3314 int
3315 main ()
3316 {
3317
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_compile") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } && {
3336          test -z "$ac_cxx_werror_flag" ||
3337          test ! -s conftest.err
3338        } && test -s conftest.$ac_objext; then
3339   :
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3345          CXXFLAGS="-g"
3346          cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_compile") 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } && {
3375          test -z "$ac_cxx_werror_flag" ||
3376          test ! -s conftest.err
3377        } && test -s conftest.$ac_objext; then
3378   ac_cv_prog_cxx_g=yes
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3394 fi
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3396 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3397 if test "$ac_test_CXXFLAGS" = set; then
3398   CXXFLAGS=$ac_save_CXXFLAGS
3399 elif test $ac_cv_prog_cxx_g = yes; then
3400   if test "$GXX" = yes; then
3401     CXXFLAGS="-g -O2"
3402   else
3403     CXXFLAGS="-g"
3404   fi
3405 else
3406   if test "$GXX" = yes; then
3407     CXXFLAGS="-O2"
3408   else
3409     CXXFLAGS=
3410   fi
3411 fi
3412 ac_ext=c
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
3418 if test "x$CC" != xcc; then
3419   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3420 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3421 else
3422   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3423 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3424 fi
3425 set dummy $CC; ac_cc=`echo $2 |
3426                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3427 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436
3437 int
3438 main ()
3439 {
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 # Make sure it works both with $CC and with simple cc.
3446 # We do the test twice because some compilers refuse to overwrite an
3447 # existing .o file with -o, though they will create one.
3448 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3449 rm -f conftest2.*
3450 if { (case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455   (eval "$ac_try") 2>&5
3456   ac_status=$?
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } &&
3459    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464   (eval "$ac_try") 2>&5
3465   ac_status=$?
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); };
3468 then
3469   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3470   if test "x$CC" != xcc; then
3471     # Test first that cc exists at all.
3472     if { ac_try='cc -c conftest.$ac_ext >&5'
3473   { (case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478   (eval "$ac_try") 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; }; then
3482       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3483       rm -f conftest2.*
3484       if { (case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_try") 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } &&
3493          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498   (eval "$ac_try") 2>&5
3499   ac_status=$?
3500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501   (exit $ac_status); };
3502       then
3503         # cc works too.
3504         :
3505       else
3506         # cc exists but doesn't like -o.
3507         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3508       fi
3509     fi
3510   fi
3511 else
3512   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3513 fi
3514 rm -f core conftest*
3515
3516 fi
3517 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3518   { echo "$as_me:$LINENO: result: yes" >&5
3519 echo "${ECHO_T}yes" >&6; }
3520 else
3521   { echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6; }
3523
3524 cat >>confdefs.h <<\_ACEOF
3525 #define NO_MINUS_C_MINUS_O 1
3526 _ACEOF
3527
3528 fi
3529
3530 ac_ext=c
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3536 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3537 # On Suns, sometimes $CPP names a directory.
3538 if test -n "$CPP" && test -d "$CPP"; then
3539   CPP=
3540 fi
3541 if test -z "$CPP"; then
3542   if test "${ac_cv_prog_CPP+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545       # Double quotes because CPP needs to be expanded
3546     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3547     do
3548       ac_preproc_ok=false
3549 for ac_c_preproc_warn_flag in '' yes
3550 do
3551   # Use a header file that comes with gcc, so configuring glibc
3552   # with a fresh cross-compiler works.
3553   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3554   # <limits.h> exists even on freestanding compilers.
3555   # On the NeXT, cc -E runs the code through the compiler's parser,
3556   # not just through cpp. "Syntax error" is here to catch this case.
3557   cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 #ifdef __STDC__
3564 # include <limits.h>
3565 #else
3566 # include <assert.h>
3567 #endif
3568                      Syntax error
3569 _ACEOF
3570 if { (ac_try="$ac_cpp conftest.$ac_ext"
3571 case "(($ac_try" in
3572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573   *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } >/dev/null && {
3583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3584          test ! -s conftest.err
3585        }; then
3586   :
3587 else
3588   echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591   # Broken: fails on valid input.
3592 continue
3593 fi
3594
3595 rm -f conftest.err conftest.$ac_ext
3596
3597   # OK, works on sane cases.  Now check whether nonexistent headers
3598   # can be detected and how.
3599   cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #include <ac_nonexistent.h>
3606 _ACEOF
3607 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } >/dev/null && {
3620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3621          test ! -s conftest.err
3622        }; then
3623   # Broken: success on invalid input.
3624 continue
3625 else
3626   echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629   # Passes both tests.
3630 ac_preproc_ok=:
3631 break
3632 fi
3633
3634 rm -f conftest.err conftest.$ac_ext
3635
3636 done
3637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3638 rm -f conftest.err conftest.$ac_ext
3639 if $ac_preproc_ok; then
3640   break
3641 fi
3642
3643     done
3644     ac_cv_prog_CPP=$CPP
3645
3646 fi
3647   CPP=$ac_cv_prog_CPP
3648 else
3649   ac_cv_prog_CPP=$CPP
3650 fi
3651 { echo "$as_me:$LINENO: result: $CPP" >&5
3652 echo "${ECHO_T}$CPP" >&6; }
3653 ac_preproc_ok=false
3654 for ac_c_preproc_warn_flag in '' yes
3655 do
3656   # Use a header file that comes with gcc, so configuring glibc
3657   # with a fresh cross-compiler works.
3658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659   # <limits.h> exists even on freestanding compilers.
3660   # On the NeXT, cc -E runs the code through the compiler's parser,
3661   # not just through cpp. "Syntax error" is here to catch this case.
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #ifdef __STDC__
3669 # include <limits.h>
3670 #else
3671 # include <assert.h>
3672 #endif
3673                      Syntax error
3674 _ACEOF
3675 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } >/dev/null && {
3688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689          test ! -s conftest.err
3690        }; then
3691   :
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696   # Broken: fails on valid input.
3697 continue
3698 fi
3699
3700 rm -f conftest.err conftest.$ac_ext
3701
3702   # OK, works on sane cases.  Now check whether nonexistent headers
3703   # can be detected and how.
3704   cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 #include <ac_nonexistent.h>
3711 _ACEOF
3712 if { (ac_try="$ac_cpp conftest.$ac_ext"
3713 case "(($ac_try" in
3714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715   *) ac_try_echo=$ac_try;;
3716 esac
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3719   ac_status=$?
3720   grep -v '^ *+' conftest.er1 >conftest.err
3721   rm -f conftest.er1
3722   cat conftest.err >&5
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); } >/dev/null && {
3725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3726          test ! -s conftest.err
3727        }; then
3728   # Broken: success on invalid input.
3729 continue
3730 else
3731   echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734   # Passes both tests.
3735 ac_preproc_ok=:
3736 break
3737 fi
3738
3739 rm -f conftest.err conftest.$ac_ext
3740
3741 done
3742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3743 rm -f conftest.err conftest.$ac_ext
3744 if $ac_preproc_ok; then
3745   :
3746 else
3747   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3750 See \`config.log' for more details." >&2;}
3751    { (exit 1); exit 1; }; }
3752 fi
3753
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
3760
3761 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3762 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3763 if test "${ac_cv_path_GREP+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   # Extract the first word of "grep ggrep" to use in msg output
3767 if test -z "$GREP"; then
3768 set dummy grep ggrep; ac_prog_name=$2
3769 if test "${ac_cv_path_GREP+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   ac_path_GREP_found=false
3773 # Loop through the user's path and test for each of PROGNAME-LIST
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779   for ac_prog in grep ggrep; do
3780   for ac_exec_ext in '' $ac_executable_extensions; do
3781     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3782     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3783     # Check for GNU ac_path_GREP and select it if it is found.
3784   # Check for GNU $ac_path_GREP
3785 case `"$ac_path_GREP" --version 2>&1` in
3786 *GNU*)
3787   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3788 *)
3789   ac_count=0
3790   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3791   while :
3792   do
3793     cat "conftest.in" "conftest.in" >"conftest.tmp"
3794     mv "conftest.tmp" "conftest.in"
3795     cp "conftest.in" "conftest.nl"
3796     echo 'GREP' >> "conftest.nl"
3797     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3798     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3799     ac_count=`expr $ac_count + 1`
3800     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3801       # Best one so far, save it but keep looking for a better one
3802       ac_cv_path_GREP="$ac_path_GREP"
3803       ac_path_GREP_max=$ac_count
3804     fi
3805     # 10*(2^10) chars as input seems more than enough
3806     test $ac_count -gt 10 && break
3807   done
3808   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3809 esac
3810
3811
3812     $ac_path_GREP_found && break 3
3813   done
3814 done
3815
3816 done
3817 IFS=$as_save_IFS
3818
3819
3820 fi
3821
3822 GREP="$ac_cv_path_GREP"
3823 if test -z "$GREP"; then
3824   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3825 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3826    { (exit 1); exit 1; }; }
3827 fi
3828
3829 else
3830   ac_cv_path_GREP=$GREP
3831 fi
3832
3833
3834 fi
3835 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3836 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3837  GREP="$ac_cv_path_GREP"
3838
3839
3840 { echo "$as_me:$LINENO: checking for egrep" >&5
3841 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3842 if test "${ac_cv_path_EGREP+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3846    then ac_cv_path_EGREP="$GREP -E"
3847    else
3848      # Extract the first word of "egrep" to use in msg output
3849 if test -z "$EGREP"; then
3850 set dummy egrep; ac_prog_name=$2
3851 if test "${ac_cv_path_EGREP+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   ac_path_EGREP_found=false
3855 # Loop through the user's path and test for each of PROGNAME-LIST
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861   for ac_prog in egrep; do
3862   for ac_exec_ext in '' $ac_executable_extensions; do
3863     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3864     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3865     # Check for GNU ac_path_EGREP and select it if it is found.
3866   # Check for GNU $ac_path_EGREP
3867 case `"$ac_path_EGREP" --version 2>&1` in
3868 *GNU*)
3869   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3870 *)
3871   ac_count=0
3872   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3873   while :
3874   do
3875     cat "conftest.in" "conftest.in" >"conftest.tmp"
3876     mv "conftest.tmp" "conftest.in"
3877     cp "conftest.in" "conftest.nl"
3878     echo 'EGREP' >> "conftest.nl"
3879     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3880     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3881     ac_count=`expr $ac_count + 1`
3882     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3883       # Best one so far, save it but keep looking for a better one
3884       ac_cv_path_EGREP="$ac_path_EGREP"
3885       ac_path_EGREP_max=$ac_count
3886     fi
3887     # 10*(2^10) chars as input seems more than enough
3888     test $ac_count -gt 10 && break
3889   done
3890   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3891 esac
3892
3893
3894     $ac_path_EGREP_found && break 3
3895   done
3896 done
3897
3898 done
3899 IFS=$as_save_IFS
3900
3901
3902 fi
3903
3904 EGREP="$ac_cv_path_EGREP"
3905 if test -z "$EGREP"; then
3906   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3907 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3908    { (exit 1); exit 1; }; }
3909 fi
3910
3911 else
3912   ac_cv_path_EGREP=$EGREP
3913 fi
3914
3915
3916    fi
3917 fi
3918 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3919 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3920  EGREP="$ac_cv_path_EGREP"
3921
3922
3923 if test $ac_cv_c_compiler_gnu = yes; then
3924     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3925 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3926 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929     ac_pattern="Autoconf.*'x'"
3930   cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936 #include <sgtty.h>
3937 Autoconf TIOCGETP
3938 _ACEOF
3939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3940   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3941   ac_cv_prog_gcc_traditional=yes
3942 else
3943   ac_cv_prog_gcc_traditional=no
3944 fi
3945 rm -f conftest*
3946
3947
3948   if test $ac_cv_prog_gcc_traditional = no; then
3949     cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955 #include <termio.h>
3956 Autoconf TCGETA
3957 _ACEOF
3958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3959   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3960   ac_cv_prog_gcc_traditional=yes
3961 fi
3962 rm -f conftest*
3963
3964   fi
3965 fi
3966 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3967 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3968   if test $ac_cv_prog_gcc_traditional = yes; then
3969     CC="$CC -traditional"
3970   fi
3971 fi
3972
3973 BASECC=`basename $CC`
3974 have_gcc=no
3975 if test "x$BASECC" = xgcc; then
3976    cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_GCC 1
3978 _ACEOF
3979
3980    have_gcc=yes
3981 fi
3982 # Extract the first word of "$CXX", so it can be a program name with args.
3983 set dummy $CXX; ac_word=$2
3984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3986 if test "${ac_cv_path_CXX+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   case $CXX in
3990   [\\/]* | ?:[\\/]*)
3991   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3992   ;;
3993   *)
3994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997   IFS=$as_save_IFS
3998   test -z "$as_dir" && as_dir=.
3999   for ac_exec_ext in '' $ac_executable_extensions; do
4000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003     break 2
4004   fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4010   ;;
4011 esac
4012 fi
4013 CXX=$ac_cv_path_CXX
4014 if test -n "$CXX"; then
4015   { echo "$as_me:$LINENO: result: $CXX" >&5
4016 echo "${ECHO_T}$CXX" >&6; }
4017 else
4018   { echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6; }
4020 fi
4021
4022
4023 if test ! -e $CXX; then
4024    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4025 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 # Find a good install program.  We prefer a C program (faster),
4030 # so one script is as good as another.  But avoid the broken or
4031 # incompatible versions:
4032 # SysV /etc/install, /usr/sbin/install
4033 # SunOS /usr/etc/install
4034 # IRIX /sbin/install
4035 # AIX /bin/install
4036 # AmigaOS /C/install, which installs bootblocks on floppy discs
4037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4040 # OS/2's system install, which has a completely different semantic
4041 # ./install, which can be erroneously created by make from ./install.sh.
4042 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4044 if test -z "$INSTALL"; then
4045 if test "${ac_cv_path_install+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051   IFS=$as_save_IFS
4052   test -z "$as_dir" && as_dir=.
4053   # Account for people who put trailing slashes in PATH elements.
4054 case $as_dir/ in
4055   ./ | .// | /cC/* | \
4056   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4057   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4058   /usr/ucb/* ) ;;
4059   *)
4060     # OSF1 and SCO ODT 3.0 have their own names for install.
4061     # Don't use installbsd from OSF since it installs stuff as root
4062     # by default.
4063     for ac_prog in ginstall scoinst install; do
4064       for ac_exec_ext in '' $ac_executable_extensions; do
4065         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4066           if test $ac_prog = install &&
4067             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4068             # AIX install.  It has an incompatible calling convention.
4069             :
4070           elif test $ac_prog = install &&
4071             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4072             # program-specific install script used by HP pwplus--don't use.
4073             :
4074           else
4075             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4076             break 3
4077           fi
4078         fi
4079       done
4080     done
4081     ;;
4082 esac
4083 done
4084 IFS=$as_save_IFS
4085
4086
4087 fi
4088   if test "${ac_cv_path_install+set}" = set; then
4089     INSTALL=$ac_cv_path_install
4090   else
4091     # As a last resort, use the slow shell script.  Don't cache a
4092     # value for INSTALL within a source directory, because that will
4093     # break other packages using the cache if that directory is
4094     # removed, or if the value is a relative name.
4095     INSTALL=$ac_install_sh
4096   fi
4097 fi
4098 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4099 echo "${ECHO_T}$INSTALL" >&6; }
4100
4101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4102 # It thinks the first close brace ends the variable substitution.
4103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4104
4105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4106
4107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4108
4109 if test -n "$ac_tool_prefix"; then
4110   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4114 if test "${ac_cv_prog_RANLIB+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   if test -n "$RANLIB"; then
4118   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125   for ac_exec_ext in '' $ac_executable_extensions; do
4126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132 done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 RANLIB=$ac_cv_prog_RANLIB
4138 if test -n "$RANLIB"; then
4139   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4140 echo "${ECHO_T}$RANLIB" >&6; }
4141 else
4142   { echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6; }
4144 fi
4145
4146
4147 fi
4148 if test -z "$ac_cv_prog_RANLIB"; then
4149   ac_ct_RANLIB=$RANLIB
4150   # Extract the first word of "ranlib", so it can be a program name with args.
4151 set dummy ranlib; ac_word=$2
4152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   if test -n "$ac_ct_RANLIB"; then
4158   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_exec_ext in '' $ac_executable_extensions; do
4166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167     ac_cv_prog_ac_ct_RANLIB="ranlib"
4168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169     break 2
4170   fi
4171 done
4172 done
4173 IFS=$as_save_IFS
4174
4175 fi
4176 fi
4177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4178 if test -n "$ac_ct_RANLIB"; then
4179   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4180 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4181 else
4182   { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4184 fi
4185
4186   if test "x$ac_ct_RANLIB" = x; then
4187     RANLIB=":"
4188   else
4189     case $cross_compiling:$ac_tool_warned in
4190 yes:)
4191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4192 whose name does not start with the host triplet.  If you think this
4193 configuration is useful to you, please write to autoconf@gnu.org." >&5
4194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4195 whose name does not start with the host triplet.  If you think this
4196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4197 ac_tool_warned=yes ;;
4198 esac
4199     RANLIB=$ac_ct_RANLIB
4200   fi
4201 else
4202   RANLIB="$ac_cv_prog_RANLIB"
4203 fi
4204
4205 # Extract the first word of "mv", so it can be a program name with args.
4206 set dummy mv; ac_word=$2
4207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4209 if test "${ac_cv_path_MV+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   case $MV in
4213   [\\/]* | ?:[\\/]*)
4214   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4215   ;;
4216   *)
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222   for ac_exec_ext in '' $ac_executable_extensions; do
4223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229 done
4230 IFS=$as_save_IFS
4231
4232   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4233   ;;
4234 esac
4235 fi
4236 MV=$ac_cv_path_MV
4237 if test -n "$MV"; then
4238   { echo "$as_me:$LINENO: result: $MV" >&5
4239 echo "${ECHO_T}$MV" >&6; }
4240 else
4241   { echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6; }
4243 fi
4244
4245
4246 # Extract the first word of "rm", so it can be a program name with args.
4247 set dummy rm; ac_word=$2
4248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4250 if test "${ac_cv_path_RM+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   case $RM in
4254   [\\/]* | ?:[\\/]*)
4255   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4256   ;;
4257   *)
4258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_exec_ext in '' $ac_executable_extensions; do
4264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4265     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270 done
4271 IFS=$as_save_IFS
4272
4273   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4274   ;;
4275 esac
4276 fi
4277 RM=$ac_cv_path_RM
4278 if test -n "$RM"; then
4279   { echo "$as_me:$LINENO: result: $RM" >&5
4280 echo "${ECHO_T}$RM" >&6; }
4281 else
4282   { echo "$as_me:$LINENO: result: no" >&5
4283 echo "${ECHO_T}no" >&6; }
4284 fi
4285
4286
4287 # Extract the first word of "cp", so it can be a program name with args.
4288 set dummy cp; ac_word=$2
4289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4291 if test "${ac_cv_path_CP+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   case $CP in
4295   [\\/]* | ?:[\\/]*)
4296   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4297   ;;
4298   *)
4299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304   for ac_exec_ext in '' $ac_executable_extensions; do
4305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4313
4314   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4315   ;;
4316 esac
4317 fi
4318 CP=$ac_cv_path_CP
4319 if test -n "$CP"; then
4320   { echo "$as_me:$LINENO: result: $CP" >&5
4321 echo "${ECHO_T}$CP" >&6; }
4322 else
4323   { echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6; }
4325 fi
4326
4327
4328 # Extract the first word of "sed", so it can be a program name with args.
4329 set dummy sed; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_path_SED+set}" = set; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   case $SED in
4336   [\\/]* | ?:[\\/]*)
4337   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4338   ;;
4339   *)
4340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_exec_ext in '' $ac_executable_extensions; do
4346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4356   ;;
4357 esac
4358 fi
4359 SED=$ac_cv_path_SED
4360 if test -n "$SED"; then
4361   { echo "$as_me:$LINENO: result: $SED" >&5
4362 echo "${ECHO_T}$SED" >&6; }
4363 else
4364   { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4366 fi
4367
4368
4369 # Extract the first word of "echo", so it can be a program name with args.
4370 set dummy echo; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_path_ECHO+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   case $ECHO in
4377   [\\/]* | ?:[\\/]*)
4378   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4379   ;;
4380   *)
4381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4383 do
4384   IFS=$as_save_IFS
4385   test -z "$as_dir" && as_dir=.
4386   for ac_exec_ext in '' $ac_executable_extensions; do
4387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390     break 2
4391   fi
4392 done
4393 done
4394 IFS=$as_save_IFS
4395
4396   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4397   ;;
4398 esac
4399 fi
4400 ECHO=$ac_cv_path_ECHO
4401 if test -n "$ECHO"; then
4402   { echo "$as_me:$LINENO: result: $ECHO" >&5
4403 echo "${ECHO_T}$ECHO" >&6; }
4404 else
4405   { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4407 fi
4408
4409
4410 # Extract the first word of "cmp", so it can be a program name with args.
4411 set dummy cmp; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_path_CMP+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   case $CMP in
4418   [\\/]* | ?:[\\/]*)
4419   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4420   ;;
4421   *)
4422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427   for ac_exec_ext in '' $ac_executable_extensions; do
4428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434 done
4435 IFS=$as_save_IFS
4436
4437   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4438   ;;
4439 esac
4440 fi
4441 CMP=$ac_cv_path_CMP
4442 if test -n "$CMP"; then
4443   { echo "$as_me:$LINENO: result: $CMP" >&5
4444 echo "${ECHO_T}$CMP" >&6; }
4445 else
4446   { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4448 fi
4449
4450
4451 # Extract the first word of "tbl", so it can be a program name with args.
4452 set dummy tbl; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_path_TBL+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   case $TBL in
4459   [\\/]* | ?:[\\/]*)
4460   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4461   ;;
4462   *)
4463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468   for ac_exec_ext in '' $ac_executable_extensions; do
4469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472     break 2
4473   fi
4474 done
4475 done
4476 IFS=$as_save_IFS
4477
4478   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4479   ;;
4480 esac
4481 fi
4482 TBL=$ac_cv_path_TBL
4483 if test -n "$TBL"; then
4484   { echo "$as_me:$LINENO: result: $TBL" >&5
4485 echo "${ECHO_T}$TBL" >&6; }
4486 else
4487   { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4489 fi
4490
4491
4492 # Extract the first word of "ar", so it can be a program name with args.
4493 set dummy ar; ac_word=$2
4494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4496 if test "${ac_cv_path_AR+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   case $AR in
4500   [\\/]* | ?:[\\/]*)
4501   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4502   ;;
4503   *)
4504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507   IFS=$as_save_IFS
4508   test -z "$as_dir" && as_dir=.
4509   for ac_exec_ext in '' $ac_executable_extensions; do
4510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513     break 2
4514   fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4520   ;;
4521 esac
4522 fi
4523 AR=$ac_cv_path_AR
4524 if test -n "$AR"; then
4525   { echo "$as_me:$LINENO: result: $AR" >&5
4526 echo "${ECHO_T}$AR" >&6; }
4527 else
4528   { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4530 fi
4531
4532
4533 # Extract the first word of "openssl", so it can be a program name with args.
4534 set dummy openssl; ac_word=$2
4535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_OPENSSL+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   case $OPENSSL in
4541   [\\/]* | ?:[\\/]*)
4542   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4543   ;;
4544   *)
4545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548   IFS=$as_save_IFS
4549   test -z "$as_dir" && as_dir=.
4550   for ac_exec_ext in '' $ac_executable_extensions; do
4551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554     break 2
4555   fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4561   ;;
4562 esac
4563 fi
4564 OPENSSL=$ac_cv_path_OPENSSL
4565 if test -n "$OPENSSL"; then
4566   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4567 echo "${ECHO_T}$OPENSSL" >&6; }
4568 else
4569   { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4571 fi
4572
4573
4574 # Extract the first word of "mtx", so it can be a program name with args.
4575 set dummy mtx; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_MTX+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   case $MTX in
4582   [\\/]* | ?:[\\/]*)
4583   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4584   ;;
4585   *)
4586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589   IFS=$as_save_IFS
4590   test -z "$as_dir" && as_dir=.
4591   for ac_exec_ext in '' $ac_executable_extensions; do
4592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599 IFS=$as_save_IFS
4600
4601   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4602   ;;
4603 esac
4604 fi
4605 MTX=$ac_cv_path_MTX
4606 if test -n "$MTX"; then
4607   { echo "$as_me:$LINENO: result: $MTX" >&5
4608 echo "${ECHO_T}$MTX" >&6; }
4609 else
4610   { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4612 fi
4613
4614
4615 # Extract the first word of "dd", so it can be a program name with args.
4616 set dummy dd; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_DD+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   case $DD in
4623   [\\/]* | ?:[\\/]*)
4624   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4625   ;;
4626   *)
4627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4643   ;;
4644 esac
4645 fi
4646 DD=$ac_cv_path_DD
4647 if test -n "$DD"; then
4648   { echo "$as_me:$LINENO: result: $DD" >&5
4649 echo "${ECHO_T}$DD" >&6; }
4650 else
4651   { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4654
4655
4656 # Extract the first word of "mkisofs", so it can be a program name with args.
4657 set dummy mkisofs; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_MKISOFS+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   case $MKISOFS in
4664   [\\/]* | ?:[\\/]*)
4665   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4666   ;;
4667   *)
4668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4684   ;;
4685 esac
4686 fi
4687 MKISOFS=$ac_cv_path_MKISOFS
4688 if test -n "$MKISOFS"; then
4689   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4690 echo "${ECHO_T}$MKISOFS" >&6; }
4691 else
4692   { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 fi
4695
4696
4697 # Extract the first word of "python", so it can be a program name with args.
4698 set dummy python; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_PYTHON+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $PYTHON in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4725   ;;
4726 esac
4727 fi
4728 PYTHON=$ac_cv_path_PYTHON
4729 if test -n "$PYTHON"; then
4730   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4731 echo "${ECHO_T}$PYTHON" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736
4737
4738 # Extract the first word of "growisofs", so it can be a program name with args.
4739 set dummy growisofs; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $GROWISOFS in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4766   ;;
4767 esac
4768 fi
4769 GROWISOFS=$ac_cv_path_GROWISOFS
4770 if test -n "$GROWISOFS"; then
4771   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4772 echo "${ECHO_T}$GROWISOFS" >&6; }
4773 else
4774   { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776 fi
4777
4778
4779 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4780 set dummy dvd+rw-mediainfo; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   case $DVDRWMEDIAINFO in
4787   [\\/]* | ?:[\\/]*)
4788   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4789   ;;
4790   *)
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796   for ac_exec_ext in '' $ac_executable_extensions; do
4797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803 done
4804 IFS=$as_save_IFS
4805
4806   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4807   ;;
4808 esac
4809 fi
4810 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4811 if test -n "$DVDRWMEDIAINFO"; then
4812   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4813 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4814 else
4815   { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4817 fi
4818
4819
4820 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4821 set dummy dvd+rw-format; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   case $DVDRWFORMAT in
4828   [\\/]* | ?:[\\/]*)
4829   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4830   ;;
4831   *)
4832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4848   ;;
4849 esac
4850 fi
4851 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4852 if test -n "$DVDRWFORMAT"; then
4853   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4854 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4855 else
4856   { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860
4861 # Extract the first word of "pkg-config", so it can be a program name with args.
4862 set dummy pkg-config; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   case $PKGCONFIG in
4869   [\\/]* | ?:[\\/]*)
4870   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4871   ;;
4872   *)
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4889   ;;
4890 esac
4891 fi
4892 PKGCONFIG=$ac_cv_path_PKGCONFIG
4893 if test -n "$PKGCONFIG"; then
4894   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4895 echo "${ECHO_T}$PKGCONFIG" >&6; }
4896 else
4897   { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902 # Extract the first word of "qmake", so it can be a program name with args.
4903 set dummy qmake; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_QMAKE+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   case $QMAKE in
4910   [\\/]* | ?:[\\/]*)
4911   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4912   ;;
4913   *)
4914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923     break 2
4924   fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4930   ;;
4931 esac
4932 fi
4933 QMAKE=$ac_cv_path_QMAKE
4934 if test -n "$QMAKE"; then
4935   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4936 echo "${ECHO_T}$QMAKE" >&6; }
4937 else
4938   { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4940 fi
4941
4942
4943 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4944 set dummy qmake-qt4; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4948   echo $ECHO_N "(cached) $ECHO_C" >&6
4949 else
4950   case $QMAKEQT4 in
4951   [\\/]* | ?:[\\/]*)
4952   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4953   ;;
4954   *)
4955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960   for ac_exec_ext in '' $ac_executable_extensions; do
4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4971   ;;
4972 esac
4973 fi
4974 QMAKEQT4=$ac_cv_path_QMAKEQT4
4975 if test -n "$QMAKEQT4"; then
4976   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4977 echo "${ECHO_T}$QMAKEQT4" >&6; }
4978 else
4979   { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4981 fi
4982
4983
4984
4985 if test "x$WXCONFIG" = x; then
4986   WXCONFIG=wx-config
4987 fi
4988 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4989 set dummy ${WXCONFIG}; ac_word=$2
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995   case $WXCONFIG in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005   for ac_exec_ext in '' $ac_executable_extensions; do
5006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012 done
5013 IFS=$as_save_IFS
5014
5015   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5016   ;;
5017 esac
5018 fi
5019 WXCONFIG=$ac_cv_path_WXCONFIG
5020 if test -n "$WXCONFIG"; then
5021   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5022 echo "${ECHO_T}$WXCONFIG" >&6; }
5023 else
5024   { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5026 fi
5027
5028
5029
5030 # Extract the first word of "cdrecord", so it can be a program name with args.
5031 set dummy cdrecord; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_path_CDRECORD+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   case $CDRECORD in
5038   [\\/]* | ?:[\\/]*)
5039   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5040   ;;
5041   *)
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5058   ;;
5059 esac
5060 fi
5061 CDRECORD=$ac_cv_path_CDRECORD
5062 if test -n "$CDRECORD"; then
5063   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5064 echo "${ECHO_T}$CDRECORD" >&6; }
5065 else
5066   { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5068 fi
5069
5070
5071 # Extract the first word of "pidof", so it can be a program name with args.
5072 set dummy pidof; ac_word=$2
5073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5075 if test "${ac_cv_path_PIDOF+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078   case $PIDOF in
5079   [\\/]* | ?:[\\/]*)
5080   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5081   ;;
5082   *)
5083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088   for ac_exec_ext in '' $ac_executable_extensions; do
5089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5090     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095 done
5096 IFS=$as_save_IFS
5097
5098   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5099   ;;
5100 esac
5101 fi
5102 PIDOF=$ac_cv_path_PIDOF
5103 if test -n "$PIDOF"; then
5104   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5105 echo "${ECHO_T}$PIDOF" >&6; }
5106 else
5107   { echo "$as_me:$LINENO: result: no" >&5
5108 echo "${ECHO_T}no" >&6; }
5109 fi
5110
5111
5112 for ac_prog in gawk mawk nawk awk
5113 do
5114   # Extract the first word of "$ac_prog", so it can be a program name with args.
5115 set dummy $ac_prog; ac_word=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_AWK+set}" = set; then
5119   echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121   if test -n "$AWK"; then
5122   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129   for ac_exec_ext in '' $ac_executable_extensions; do
5130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131     ac_cv_prog_AWK="$ac_prog"
5132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 AWK=$ac_cv_prog_AWK
5142 if test -n "$AWK"; then
5143   { echo "$as_me:$LINENO: result: $AWK" >&5
5144 echo "${ECHO_T}$AWK" >&6; }
5145 else
5146   { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5148 fi
5149
5150
5151   test -n "$AWK" && break
5152 done
5153
5154 # Some AWK programs fail, so test it and warn the user
5155 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5156       { if ((prog == $2) || (("(" prog ")") == $2) ||
5157            (("" prog "") == $2) ||
5158            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5159 else
5160   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5161    The regex engine of $AWK is too broken to be used you
5162    might want to install GNU AWK.
5163    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5164 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5165    The regex engine of $AWK is too broken to be used you
5166    might want to install GNU AWK.
5167    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5168    { (exit 1); exit 1; }; }
5169 fi
5170 THE_AWK=$AWK
5171 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5172 set dummy $THE_AWK; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_path_AWK+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   case $AWK in
5179   [\\/]* | ?:[\\/]*)
5180   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5181   ;;
5182   *)
5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188   for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5199   ;;
5200 esac
5201 fi
5202 AWK=$ac_cv_path_AWK
5203 if test -n "$AWK"; then
5204   { echo "$as_me:$LINENO: result: $AWK" >&5
5205 echo "${ECHO_T}$AWK" >&6; }
5206 else
5207   { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5209 fi
5210
5211
5212
5213
5214 test -n "$ARFLAG" || ARFLAGS="cr"
5215
5216
5217 MAKE_SHELL=/bin/sh
5218
5219
5220
5221
5222
5223
5224
5225 # Make sure we can run config.sub.
5226 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5227   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5228 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5229    { (exit 1); exit 1; }; }
5230
5231 { echo "$as_me:$LINENO: checking build system type" >&5
5232 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5233 if test "${ac_cv_build+set}" = set; then
5234   echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236   ac_build_alias=$build_alias
5237 test "x$ac_build_alias" = x &&
5238   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5239 test "x$ac_build_alias" = x &&
5240   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5241 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5242    { (exit 1); exit 1; }; }
5243 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5244   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5245 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5246    { (exit 1); exit 1; }; }
5247
5248 fi
5249 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5250 echo "${ECHO_T}$ac_cv_build" >&6; }
5251 case $ac_cv_build in
5252 *-*-*) ;;
5253 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5254 echo "$as_me: error: invalid value of canonical build" >&2;}
5255    { (exit 1); exit 1; }; };;
5256 esac
5257 build=$ac_cv_build
5258 ac_save_IFS=$IFS; IFS='-'
5259 set x $ac_cv_build
5260 shift
5261 build_cpu=$1
5262 build_vendor=$2
5263 shift; shift
5264 # Remember, the first character of IFS is used to create $*,
5265 # except with old shells:
5266 build_os=$*
5267 IFS=$ac_save_IFS
5268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5269
5270
5271
5272 { echo "$as_me:$LINENO: checking host system type" >&5
5273 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5274 if test "${ac_cv_host+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test "x$host_alias" = x; then
5278   ac_cv_host=$ac_cv_build
5279 else
5280   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5281     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5282 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5283    { (exit 1); exit 1; }; }
5284 fi
5285
5286 fi
5287 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5288 echo "${ECHO_T}$ac_cv_host" >&6; }
5289 case $ac_cv_host in
5290 *-*-*) ;;
5291 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5292 echo "$as_me: error: invalid value of canonical host" >&2;}
5293    { (exit 1); exit 1; }; };;
5294 esac
5295 host=$ac_cv_host
5296 ac_save_IFS=$IFS; IFS='-'
5297 set x $ac_cv_host
5298 shift
5299 host_cpu=$1
5300 host_vendor=$2
5301 shift; shift
5302 # Remember, the first character of IFS is used to create $*,
5303 # except with old shells:
5304 host_os=$*
5305 IFS=$ac_save_IFS
5306 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5307
5308
5309 case $host_os in
5310   *cygwin* ) CYGWIN=yes;;
5311          * ) CYGWIN=no;;
5312 esac
5313
5314 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5315 then
5316
5317
5318 if $TRUEPRG; then
5319   HAVE_SUN_OS_TRUE=
5320   HAVE_SUN_OS_FALSE='#'
5321 else
5322   HAVE_SUN_OS_TRUE='#'
5323   HAVE_SUN_OS_FALSE=
5324 fi
5325         cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_SUN_OS 1
5327 _ACEOF
5328
5329 else
5330
5331
5332 if $FALSEPRG; then
5333   HAVE_SUN_OS_TRUE=
5334   HAVE_SUN_OS_FALSE='#'
5335 else
5336   HAVE_SUN_OS_TRUE='#'
5337   HAVE_SUN_OS_FALSE=
5338 fi
5339 fi
5340
5341 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5342 then
5343
5344
5345 if $TRUEPRG; then
5346   HAVE_OSF1_OS_TRUE=
5347   HAVE_OSF1_OS_FALSE='#'
5348 else
5349   HAVE_OSF1_OS_TRUE='#'
5350   HAVE_OSF1_OS_FALSE=
5351 fi
5352         cat >>confdefs.h <<\_ACEOF
5353 #define HAVE_OSF1_OS 1
5354 _ACEOF
5355
5356 else
5357
5358
5359 if $FALSEPRG; then
5360   HAVE_OSF1_OS_TRUE=
5361   HAVE_OSF1_OS_FALSE='#'
5362 else
5363   HAVE_OSF1_OS_TRUE='#'
5364   HAVE_OSF1_OS_FALSE=
5365 fi
5366 fi
5367
5368 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5369 then
5370
5371
5372 if $TRUEPRG; then
5373   HAVE_AIX_OS_TRUE=
5374   HAVE_AIX_OS_FALSE='#'
5375 else
5376   HAVE_AIX_OS_TRUE='#'
5377   HAVE_AIX_OS_FALSE=
5378 fi
5379         cat >>confdefs.h <<\_ACEOF
5380 #define HAVE_AIX_OS 1
5381 _ACEOF
5382
5383 else
5384
5385
5386 if $FALSEPRG; then
5387   HAVE_AIX_OS_TRUE=
5388   HAVE_AIX_OS_FALSE='#'
5389 else
5390   HAVE_AIX_OS_TRUE='#'
5391   HAVE_AIX_OS_FALSE=
5392 fi
5393 fi
5394
5395 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5396 then
5397
5398
5399 if $TRUEPRG; then
5400   HAVE_HPUX_OS_TRUE=
5401   HAVE_HPUX_OS_FALSE='#'
5402 else
5403   HAVE_HPUX_OS_TRUE='#'
5404   HAVE_HPUX_OS_FALSE=
5405 fi
5406         cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_HPUX_OS 1
5408 _ACEOF
5409
5410 else
5411
5412
5413 if $FALSEPRG; then
5414   HAVE_HPUX_OS_TRUE=
5415   HAVE_HPUX_OS_FALSE='#'
5416 else
5417   HAVE_HPUX_OS_TRUE='#'
5418   HAVE_HPUX_OS_FALSE=
5419 fi
5420 fi
5421
5422 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5423 then
5424
5425
5426 if $TRUEPRG; then
5427   HAVE_LINUX_OS_TRUE=
5428   HAVE_LINUX_OS_FALSE='#'
5429 else
5430   HAVE_LINUX_OS_TRUE='#'
5431   HAVE_LINUX_OS_FALSE=
5432 fi
5433         cat >>confdefs.h <<\_ACEOF
5434 #define HAVE_LINUX_OS 1
5435 _ACEOF
5436
5437 else
5438
5439
5440 if $FALSEPRG; then
5441   HAVE_LINUX_OS_TRUE=
5442   HAVE_LINUX_OS_FALSE='#'
5443 else
5444   HAVE_LINUX_OS_TRUE='#'
5445   HAVE_LINUX_OS_FALSE=
5446 fi
5447 fi
5448
5449 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5450 then
5451
5452
5453 if $TRUEPRG; then
5454   HAVE_FREEBSD_OS_TRUE=
5455   HAVE_FREEBSD_OS_FALSE='#'
5456 else
5457   HAVE_FREEBSD_OS_TRUE='#'
5458   HAVE_FREEBSD_OS_FALSE=
5459 fi
5460         cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_FREEBSD_OS 1
5462 _ACEOF
5463
5464 else
5465
5466
5467 if $FALSEPRG; then
5468   HAVE_FREEBSD_OS_TRUE=
5469   HAVE_FREEBSD_OS_FALSE='#'
5470 else
5471   HAVE_FREEBSD_OS_TRUE='#'
5472   HAVE_FREEBSD_OS_FALSE=
5473 fi
5474 fi
5475
5476 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5477 then
5478
5479
5480 if $TRUEPRG; then
5481   HAVE_NETBSD_OS_TRUE=
5482   HAVE_NETBSD_OS_FALSE='#'
5483 else
5484   HAVE_NETBSD_OS_TRUE='#'
5485   HAVE_NETBSD_OS_FALSE=
5486 fi
5487         cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_NETBSD_OS 1
5489 _ACEOF
5490
5491 else
5492
5493
5494 if $FALSEPRG; then
5495   HAVE_NETBSD_OS_TRUE=
5496   HAVE_NETBSD_OS_FALSE='#'
5497 else
5498   HAVE_NETBSD_OS_TRUE='#'
5499   HAVE_NETBSD_OS_FALSE=
5500 fi
5501 fi
5502
5503 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5504 then
5505
5506
5507 if $TRUEPRG; then
5508   HAVE_OPENBSD_OS_TRUE=
5509   HAVE_OPENBSD_OS_FALSE='#'
5510 else
5511   HAVE_OPENBSD_OS_TRUE='#'
5512   HAVE_OPENBSD_OS_FALSE=
5513 fi
5514         cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_OPENBSD_OS 1
5516 _ACEOF
5517
5518 else
5519
5520
5521 if $FALSEPRG; then
5522   HAVE_OPENBSD_OS_TRUE=
5523   HAVE_OPENBSD_OS_FALSE='#'
5524 else
5525   HAVE_OPENBSD_OS_TRUE='#'
5526   HAVE_OPENBSD_OS_FALSE=
5527 fi
5528 fi
5529
5530 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5531 then
5532
5533
5534 if $TRUEPRG; then
5535   HAVE_BSDI_OS_TRUE=
5536   HAVE_BSDI_OS_FALSE='#'
5537 else
5538   HAVE_BSDI_OS_TRUE='#'
5539   HAVE_BSDI_OS_FALSE=
5540 fi
5541         cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_BSDI_OS 1
5543 _ACEOF
5544
5545 else
5546
5547
5548 if $FALSEPRG; then
5549   HAVE_BSDI_OS_TRUE=
5550   HAVE_BSDI_OS_FALSE='#'
5551 else
5552   HAVE_BSDI_OS_TRUE='#'
5553   HAVE_BSDI_OS_FALSE=
5554 fi
5555 fi
5556
5557 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5558 then
5559
5560
5561 if $TRUEPRG; then
5562   HAVE_SGI_OS_TRUE=
5563   HAVE_SGI_OS_FALSE='#'
5564 else
5565   HAVE_SGI_OS_TRUE='#'
5566   HAVE_SGI_OS_FALSE=
5567 fi
5568         cat >>confdefs.h <<\_ACEOF
5569 #define HAVE_SGI_OS 1
5570 _ACEOF
5571
5572 else
5573
5574
5575 if $FALSEPRG; then
5576   HAVE_SGI_OS_TRUE=
5577   HAVE_SGI_OS_FALSE='#'
5578 else
5579   HAVE_SGI_OS_TRUE='#'
5580   HAVE_SGI_OS_FALSE=
5581 fi
5582 fi
5583
5584 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5585 then
5586
5587
5588 if $TRUEPRG; then
5589   HAVE_IRIX_OS_TRUE=
5590   HAVE_IRIX_OS_FALSE='#'
5591 else
5592   HAVE_IRIX_OS_TRUE='#'
5593   HAVE_IRIX_OS_FALSE=
5594 fi
5595         cat >>confdefs.h <<\_ACEOF
5596 #define HAVE_IRIX_OS 1
5597 _ACEOF
5598
5599 else
5600
5601
5602 if $FALSEPRG; then
5603   HAVE_IRIX_OS_TRUE=
5604   HAVE_IRIX_OS_FALSE='#'
5605 else
5606   HAVE_IRIX_OS_TRUE='#'
5607   HAVE_IRIX_OS_FALSE=
5608 fi
5609 fi
5610
5611 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5612 then
5613
5614
5615 if $TRUEPRG; then
5616   HAVE_DARWIN_OS_TRUE=
5617   HAVE_DARWIN_OS_FALSE='#'
5618 else
5619   HAVE_DARWIN_OS_TRUE='#'
5620   HAVE_DARWIN_OS_FALSE=
5621 fi
5622     cat >>confdefs.h <<\_ACEOF
5623 #define HAVE_DARWIN_OS 1
5624 _ACEOF
5625
5626 else
5627
5628
5629 if $FALSEPRG; then
5630   HAVE_DARWIN_OS_TRUE=
5631   HAVE_DARWIN_OS_FALSE='#'
5632 else
5633   HAVE_DARWIN_OS_TRUE='#'
5634   HAVE_DARWIN_OS_FALSE=
5635 fi
5636 fi
5637
5638
5639 # -----------------------------------------------------------
5640 # ----------------------------------------------------------
5641 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5642 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5643 if test "x$DISTNAME" != "x"
5644 then
5645         echo "distname set to $DISTNAME"
5646 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5647 then
5648         DISTNAME=alpha
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5650 then
5651         DISTNAME=aix
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5653 then
5654         DISTNAME=hpux
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5656 then
5657         DISTNAME=solaris
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5659 then
5660         DISTNAME=freebsd
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5662 then
5663         DISTNAME=netbsd
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5665 then
5666         DISTNAME=openbsd
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5668 then
5669         DISTNAME=irix
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5671 then
5672         DISTNAME=bsdi
5673 elif test -f /etc/SuSE-release
5674 then
5675         DISTNAME=suse
5676 elif test -d /etc/SuSEconfig
5677 then
5678         DISTNAME=suse5
5679 elif test -f /etc/mandrake-release
5680 then
5681         DISTNAME=mandrake
5682 elif test -f /etc/whitebox-release
5683 then
5684        DISTNAME=redhat
5685 elif test -f /etc/redhat-release
5686 then
5687         DISTNAME=redhat
5688 elif test -f /etc/gentoo-release
5689 then
5690         DISTNAME=gentoo
5691 elif test -f /etc/debian_version
5692 then
5693         DISTNAME=debian
5694 elif test -f /etc/slackware-version
5695 then
5696         DISTNAME=slackware
5697 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5698 then
5699     DISTNAME=darwin
5700 elif test -f /etc/engarde-version
5701 then
5702         DISTNAME=engarde
5703 elif test "$CYGWIN" = yes
5704 then
5705         DISTNAME=cygwin
5706         cat >>confdefs.h <<\_ACEOF
5707 #define HAVE_CYGWIN 1
5708 _ACEOF
5709
5710 else
5711         DISTNAME=unknown
5712 fi
5713 { echo "$as_me:$LINENO: result: done" >&5
5714 echo "${ECHO_T}done" >&6; }
5715
5716
5717 # --------------------------------------------------
5718 # Suppport for gettext (translations)
5719 # By default, $datadir is ${prefix}/share
5720 # --------------------------------------------------
5721 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5722 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5723 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5724 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   cat >conftest.make <<\_ACEOF
5728 SHELL = /bin/sh
5729 all:
5730         @echo '@@@%%%=$(MAKE)=@@@%%%'
5731 _ACEOF
5732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5734   *@@@%%%=?*=@@@%%%*)
5735     eval ac_cv_prog_make_${ac_make}_set=yes;;
5736   *)
5737     eval ac_cv_prog_make_${ac_make}_set=no;;
5738 esac
5739 rm -f conftest.make
5740 fi
5741 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5742   { echo "$as_me:$LINENO: result: yes" >&5
5743 echo "${ECHO_T}yes" >&6; }
5744   SET_MAKE=
5745 else
5746   { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5748   SET_MAKE="MAKE=${MAKE-make}"
5749 fi
5750
5751
5752
5753         MKINSTALLDIRS=
5754   if test -n "$ac_aux_dir"; then
5755     case "$ac_aux_dir" in
5756       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5757       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5758     esac
5759   fi
5760   if test -z "$MKINSTALLDIRS"; then
5761     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5762   fi
5763
5764
5765
5766   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5767 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5768     # Check whether --enable-nls was given.
5769 if test "${enable_nls+set}" = set; then
5770   enableval=$enable_nls; USE_NLS=$enableval
5771 else
5772   USE_NLS=yes
5773 fi
5774
5775   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5776 echo "${ECHO_T}$USE_NLS" >&6; }
5777
5778
5779
5780
5781
5782
5783 # Prepare PATH_SEPARATOR.
5784 # The user is always right.
5785 if test "${PATH_SEPARATOR+set}" != set; then
5786   echo "#! /bin/sh" >conf$$.sh
5787   echo  "exit 0"   >>conf$$.sh
5788   chmod +x conf$$.sh
5789   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5790     PATH_SEPARATOR=';'
5791   else
5792     PATH_SEPARATOR=:
5793   fi
5794   rm -f conf$$.sh
5795 fi
5796
5797 # Find out how to test for executable files. Don't use a zero-byte file,
5798 # as systems may use methods other than mode bits to determine executability.
5799 cat >conf$$.file <<_ASEOF
5800 #! /bin/sh
5801 exit 0
5802 _ASEOF
5803 chmod +x conf$$.file
5804 if test -x conf$$.file >/dev/null 2>&1; then
5805   ac_executable_p="test -x"
5806 else
5807   ac_executable_p="test -f"
5808 fi
5809 rm -f conf$$.file
5810
5811 # Extract the first word of "msgfmt", so it can be a program name with args.
5812 set dummy msgfmt; ac_word=$2
5813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5815 if test "${ac_cv_path_MSGFMT+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   case "$MSGFMT" in
5819   [\\/]* | ?:[\\/]*)
5820     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5821     ;;
5822   *)
5823     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5824     for ac_dir in $PATH; do
5825       IFS="$ac_save_IFS"
5826       test -z "$ac_dir" && ac_dir=.
5827       for ac_exec_ext in '' $ac_executable_extensions; do
5828         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5829           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5830           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5831      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5832             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5833             break 2
5834           fi
5835         fi
5836       done
5837     done
5838     IFS="$ac_save_IFS"
5839   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5840     ;;
5841 esac
5842 fi
5843 MSGFMT="$ac_cv_path_MSGFMT"
5844 if test "$MSGFMT" != ":"; then
5845   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5846 echo "${ECHO_T}$MSGFMT" >&6; }
5847 else
5848   { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5850 fi
5851
5852   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5853 set dummy gmsgfmt; ac_word=$2
5854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   case $GMSGFMT in
5860   [\\/]* | ?:[\\/]*)
5861   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5862   ;;
5863   *)
5864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5880   ;;
5881 esac
5882 fi
5883 GMSGFMT=$ac_cv_path_GMSGFMT
5884 if test -n "$GMSGFMT"; then
5885   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5886 echo "${ECHO_T}$GMSGFMT" >&6; }
5887 else
5888   { echo "$as_me:$LINENO: result: no" >&5
5889 echo "${ECHO_T}no" >&6; }
5890 fi
5891
5892
5893
5894
5895 # Prepare PATH_SEPARATOR.
5896 # The user is always right.
5897 if test "${PATH_SEPARATOR+set}" != set; then
5898   echo "#! /bin/sh" >conf$$.sh
5899   echo  "exit 0"   >>conf$$.sh
5900   chmod +x conf$$.sh
5901   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5902     PATH_SEPARATOR=';'
5903   else
5904     PATH_SEPARATOR=:
5905   fi
5906   rm -f conf$$.sh
5907 fi
5908
5909 # Find out how to test for executable files. Don't use a zero-byte file,
5910 # as systems may use methods other than mode bits to determine executability.
5911 cat >conf$$.file <<_ASEOF
5912 #! /bin/sh
5913 exit 0
5914 _ASEOF
5915 chmod +x conf$$.file
5916 if test -x conf$$.file >/dev/null 2>&1; then
5917   ac_executable_p="test -x"
5918 else
5919   ac_executable_p="test -f"
5920 fi
5921 rm -f conf$$.file
5922
5923 # Extract the first word of "xgettext", so it can be a program name with args.
5924 set dummy xgettext; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   case "$XGETTEXT" in
5931   [\\/]* | ?:[\\/]*)
5932     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5933     ;;
5934   *)
5935     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5936     for ac_dir in $PATH; do
5937       IFS="$ac_save_IFS"
5938       test -z "$ac_dir" && ac_dir=.
5939       for ac_exec_ext in '' $ac_executable_extensions; do
5940         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5941           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5942           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5943      (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
5944             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5945             break 2
5946           fi
5947         fi
5948       done
5949     done
5950     IFS="$ac_save_IFS"
5951   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5952     ;;
5953 esac
5954 fi
5955 XGETTEXT="$ac_cv_path_XGETTEXT"
5956 if test "$XGETTEXT" != ":"; then
5957   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5958 echo "${ECHO_T}$XGETTEXT" >&6; }
5959 else
5960   { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5962 fi
5963
5964     rm -f messages.po
5965
5966
5967 # Prepare PATH_SEPARATOR.
5968 # The user is always right.
5969 if test "${PATH_SEPARATOR+set}" != set; then
5970   echo "#! /bin/sh" >conf$$.sh
5971   echo  "exit 0"   >>conf$$.sh
5972   chmod +x conf$$.sh
5973   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5974     PATH_SEPARATOR=';'
5975   else
5976     PATH_SEPARATOR=:
5977   fi
5978   rm -f conf$$.sh
5979 fi
5980
5981 # Find out how to test for executable files. Don't use a zero-byte file,
5982 # as systems may use methods other than mode bits to determine executability.
5983 cat >conf$$.file <<_ASEOF
5984 #! /bin/sh
5985 exit 0
5986 _ASEOF
5987 chmod +x conf$$.file
5988 if test -x conf$$.file >/dev/null 2>&1; then
5989   ac_executable_p="test -x"
5990 else
5991   ac_executable_p="test -f"
5992 fi
5993 rm -f conf$$.file
5994
5995 # Extract the first word of "msgmerge", so it can be a program name with args.
5996 set dummy msgmerge; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   case "$MSGMERGE" in
6003   [\\/]* | ?:[\\/]*)
6004     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6005     ;;
6006   *)
6007     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6008     for ac_dir in $PATH; do
6009       IFS="$ac_save_IFS"
6010       test -z "$ac_dir" && ac_dir=.
6011       for ac_exec_ext in '' $ac_executable_extensions; do
6012         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6013           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6014           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6015             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6016             break 2
6017           fi
6018         fi
6019       done
6020     done
6021     IFS="$ac_save_IFS"
6022   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6023     ;;
6024 esac
6025 fi
6026 MSGMERGE="$ac_cv_path_MSGMERGE"
6027 if test "$MSGMERGE" != ":"; then
6028   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6029 echo "${ECHO_T}$MSGMERGE" >&6; }
6030 else
6031   { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6033 fi
6034
6035
6036       if test "$GMSGFMT" != ":"; then
6037             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6038        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6039       : ;
6040     else
6041       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6042       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6043 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6044       GMSGFMT=":"
6045     fi
6046   fi
6047
6048       if test "$XGETTEXT" != ":"; then
6049             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6050        (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
6051       : ;
6052     else
6053       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6054 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6055       XGETTEXT=":"
6056     fi
6057         rm -f messages.po
6058   fi
6059
6060   ac_config_commands="$ac_config_commands default-1"
6061
6062
6063
6064       if test "X$prefix" = "XNONE"; then
6065     acl_final_prefix="$ac_default_prefix"
6066   else
6067     acl_final_prefix="$prefix"
6068   fi
6069   if test "X$exec_prefix" = "XNONE"; then
6070     acl_final_exec_prefix='${prefix}'
6071   else
6072     acl_final_exec_prefix="$exec_prefix"
6073   fi
6074   acl_save_prefix="$prefix"
6075   prefix="$acl_final_prefix"
6076   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6077   prefix="$acl_save_prefix"
6078
6079
6080 # Check whether --with-gnu-ld was given.
6081 if test "${with_gnu_ld+set}" = set; then
6082   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6083 else
6084   with_gnu_ld=no
6085 fi
6086
6087 # Prepare PATH_SEPARATOR.
6088 # The user is always right.
6089 if test "${PATH_SEPARATOR+set}" != set; then
6090   echo "#! /bin/sh" >conf$$.sh
6091   echo  "exit 0"   >>conf$$.sh
6092   chmod +x conf$$.sh
6093   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6094     PATH_SEPARATOR=';'
6095   else
6096     PATH_SEPARATOR=:
6097   fi
6098   rm -f conf$$.sh
6099 fi
6100 ac_prog=ld
6101 if test "$GCC" = yes; then
6102   # Check if gcc -print-prog-name=ld gives a path.
6103   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6104 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6105   case $host in
6106   *-*-mingw*)
6107     # gcc leaves a trailing carriage return which upsets mingw
6108     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109   *)
6110     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6111   esac
6112   case $ac_prog in
6113     # Accept absolute paths.
6114     [\\/]* | [A-Za-z]:[\\/]*)
6115       re_direlt='/[^/][^/]*/\.\./'
6116       # Canonicalize the path of ld
6117       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6118       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6119         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6120       done
6121       test -z "$LD" && LD="$ac_prog"
6122       ;;
6123   "")
6124     # If it fails, then pretend we aren't using GCC.
6125     ac_prog=ld
6126     ;;
6127   *)
6128     # If it is relative, then search for the first ld in PATH.
6129     with_gnu_ld=unknown
6130     ;;
6131   esac
6132 elif test "$with_gnu_ld" = yes; then
6133   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6134 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6135 else
6136   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6137 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6138 fi
6139 if test "${acl_cv_path_LD+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   if test -z "$LD"; then
6143   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6144   for ac_dir in $PATH; do
6145     test -z "$ac_dir" && ac_dir=.
6146     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6147       acl_cv_path_LD="$ac_dir/$ac_prog"
6148       # Check to see if the program is GNU ld.  I'd rather use --version,
6149       # but apparently some GNU ld's only accept -v.
6150       # Break only if it was the GNU/non-GNU ld that we prefer.
6151       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6152       *GNU* | *'with BFD'*)
6153         test "$with_gnu_ld" != no && break ;;
6154       *)
6155         test "$with_gnu_ld" != yes && break ;;
6156       esac
6157     fi
6158   done
6159   IFS="$ac_save_ifs"
6160 else
6161   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6162 fi
6163 fi
6164
6165 LD="$acl_cv_path_LD"
6166 if test -n "$LD"; then
6167   { echo "$as_me:$LINENO: result: $LD" >&5
6168 echo "${ECHO_T}$LD" >&6; }
6169 else
6170   { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6172 fi
6173 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6174 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6175    { (exit 1); exit 1; }; }
6176 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6177 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6178 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6182 case `$LD -v 2>&1 </dev/null` in
6183 *GNU* | *'with BFD'*)
6184   acl_cv_prog_gnu_ld=yes ;;
6185 *)
6186   acl_cv_prog_gnu_ld=no ;;
6187 esac
6188 fi
6189 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6190 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6191 with_gnu_ld=$acl_cv_prog_gnu_ld
6192
6193
6194
6195
6196                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6197 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6198 if test "${acl_cv_rpath+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201
6202     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6203     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6204     . ./conftest.sh
6205     rm -f ./conftest.sh
6206     acl_cv_rpath=done
6207
6208 fi
6209 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6210 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6211   wl="$acl_cv_wl"
6212   libext="$acl_cv_libext"
6213   shlibext="$acl_cv_shlibext"
6214   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6215   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6216   hardcode_direct="$acl_cv_hardcode_direct"
6217   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6218     # Check whether --enable-rpath was given.
6219 if test "${enable_rpath+set}" = set; then
6220   enableval=$enable_rpath; :
6221 else
6222   enable_rpath=yes
6223 fi
6224
6225
6226
6227
6228
6229
6230
6231
6232     use_additional=yes
6233
6234   acl_save_prefix="$prefix"
6235   prefix="$acl_final_prefix"
6236   acl_save_exec_prefix="$exec_prefix"
6237   exec_prefix="$acl_final_exec_prefix"
6238
6239     eval additional_includedir=\"$includedir\"
6240     eval additional_libdir=\"$libdir\"
6241
6242   exec_prefix="$acl_save_exec_prefix"
6243   prefix="$acl_save_prefix"
6244
6245
6246 # Check whether --with-libiconv-prefix was given.
6247 if test "${with_libiconv_prefix+set}" = set; then
6248   withval=$with_libiconv_prefix;
6249     if test "X$withval" = "Xno"; then
6250       use_additional=no
6251     else
6252       if test "X$withval" = "X"; then
6253
6254   acl_save_prefix="$prefix"
6255   prefix="$acl_final_prefix"
6256   acl_save_exec_prefix="$exec_prefix"
6257   exec_prefix="$acl_final_exec_prefix"
6258
6259           eval additional_includedir=\"$includedir\"
6260           eval additional_libdir=\"$libdir\"
6261
6262   exec_prefix="$acl_save_exec_prefix"
6263   prefix="$acl_save_prefix"
6264
6265       else
6266         additional_includedir="$withval/include"
6267         additional_libdir="$withval/lib"
6268       fi
6269     fi
6270
6271 fi
6272
6273       LIBICONV=
6274   LTLIBICONV=
6275   INCICONV=
6276   rpathdirs=
6277   ltrpathdirs=
6278   names_already_handled=
6279   names_next_round='iconv '
6280   while test -n "$names_next_round"; do
6281     names_this_round="$names_next_round"
6282     names_next_round=
6283     for name in $names_this_round; do
6284       already_handled=
6285       for n in $names_already_handled; do
6286         if test "$n" = "$name"; then
6287           already_handled=yes
6288           break
6289         fi
6290       done
6291       if test -z "$already_handled"; then
6292         names_already_handled="$names_already_handled $name"
6293                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6294         eval value=\"\$HAVE_LIB$uppername\"
6295         if test -n "$value"; then
6296           if test "$value" = yes; then
6297             eval value=\"\$LIB$uppername\"
6298             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6299             eval value=\"\$LTLIB$uppername\"
6300             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6301           else
6302                                     :
6303           fi
6304         else
6305                               found_dir=
6306           found_la=
6307           found_so=
6308           found_a=
6309           if test $use_additional = yes; then
6310             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6311               found_dir="$additional_libdir"
6312               found_so="$additional_libdir/lib$name.$shlibext"
6313               if test -f "$additional_libdir/lib$name.la"; then
6314                 found_la="$additional_libdir/lib$name.la"
6315               fi
6316             else
6317               if test -f "$additional_libdir/lib$name.$libext"; then
6318                 found_dir="$additional_libdir"
6319                 found_a="$additional_libdir/lib$name.$libext"
6320                 if test -f "$additional_libdir/lib$name.la"; then
6321                   found_la="$additional_libdir/lib$name.la"
6322                 fi
6323               fi
6324             fi
6325           fi
6326           if test "X$found_dir" = "X"; then
6327             for x in $LDFLAGS $LTLIBICONV; do
6328
6329   acl_save_prefix="$prefix"
6330   prefix="$acl_final_prefix"
6331   acl_save_exec_prefix="$exec_prefix"
6332   exec_prefix="$acl_final_exec_prefix"
6333   eval x=\"$x\"
6334   exec_prefix="$acl_save_exec_prefix"
6335   prefix="$acl_save_prefix"
6336
6337               case "$x" in
6338                 -L*)
6339                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6340                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6341                     found_dir="$dir"
6342                     found_so="$dir/lib$name.$shlibext"
6343                     if test -f "$dir/lib$name.la"; then
6344                       found_la="$dir/lib$name.la"
6345                     fi
6346                   else
6347                     if test -f "$dir/lib$name.$libext"; then
6348                       found_dir="$dir"
6349                       found_a="$dir/lib$name.$libext"
6350                       if test -f "$dir/lib$name.la"; then
6351                         found_la="$dir/lib$name.la"
6352                       fi
6353                     fi
6354                   fi
6355                   ;;
6356               esac
6357               if test "X$found_dir" != "X"; then
6358                 break
6359               fi
6360             done
6361           fi
6362           if test "X$found_dir" != "X"; then
6363                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6364             if test "X$found_so" != "X"; then
6365                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6366                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6367               else
6368                                                                                 haveit=
6369                 for x in $ltrpathdirs; do
6370                   if test "X$x" = "X$found_dir"; then
6371                     haveit=yes
6372                     break
6373                   fi
6374                 done
6375                 if test -z "$haveit"; then
6376                   ltrpathdirs="$ltrpathdirs $found_dir"
6377                 fi
6378                                 if test "$hardcode_direct" = yes; then
6379                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6380                 else
6381                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6382                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6383                                                             haveit=
6384                     for x in $rpathdirs; do
6385                       if test "X$x" = "X$found_dir"; then
6386                         haveit=yes
6387                         break
6388                       fi
6389                     done
6390                     if test -z "$haveit"; then
6391                       rpathdirs="$rpathdirs $found_dir"
6392                     fi
6393                   else
6394                                                                                 haveit=
6395                     for x in $LDFLAGS $LIBICONV; do
6396
6397   acl_save_prefix="$prefix"
6398   prefix="$acl_final_prefix"
6399   acl_save_exec_prefix="$exec_prefix"
6400   exec_prefix="$acl_final_exec_prefix"
6401   eval x=\"$x\"
6402   exec_prefix="$acl_save_exec_prefix"
6403   prefix="$acl_save_prefix"
6404
6405                       if test "X$x" = "X-L$found_dir"; then
6406                         haveit=yes
6407                         break
6408                       fi
6409                     done
6410                     if test -z "$haveit"; then
6411                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6412                     fi
6413                     if test "$hardcode_minus_L" != no; then
6414                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6415                     else
6416                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6417                     fi
6418                   fi
6419                 fi
6420               fi
6421             else
6422               if test "X$found_a" != "X"; then
6423                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6424               else
6425                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6426               fi
6427             fi
6428                         additional_includedir=
6429             case "$found_dir" in
6430               */lib | */lib/)
6431                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6432                 additional_includedir="$basedir/include"
6433                 ;;
6434             esac
6435             if test "X$additional_includedir" != "X"; then
6436                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6437                 haveit=
6438                 if test "X$additional_includedir" = "X/usr/local/include"; then
6439                   if test -n "$GCC"; then
6440                     case $host_os in
6441                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6442                     esac
6443                   fi
6444                 fi
6445                 if test -z "$haveit"; then
6446                   for x in $CPPFLAGS $INCICONV; do
6447
6448   acl_save_prefix="$prefix"
6449   prefix="$acl_final_prefix"
6450   acl_save_exec_prefix="$exec_prefix"
6451   exec_prefix="$acl_final_exec_prefix"
6452   eval x=\"$x\"
6453   exec_prefix="$acl_save_exec_prefix"
6454   prefix="$acl_save_prefix"
6455
6456                     if test "X$x" = "X-I$additional_includedir"; then
6457                       haveit=yes
6458                       break
6459                     fi
6460                   done
6461                   if test -z "$haveit"; then
6462                     if test -d "$additional_includedir"; then
6463                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6464                     fi
6465                   fi
6466                 fi
6467               fi
6468             fi
6469                         if test -n "$found_la"; then
6470                                                         save_libdir="$libdir"
6471               case "$found_la" in
6472                 */* | *\\*) . "$found_la" ;;
6473                 *) . "./$found_la" ;;
6474               esac
6475               libdir="$save_libdir"
6476                             for dep in $dependency_libs; do
6477                 case "$dep" in
6478                   -L*)
6479                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6480                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6481                       haveit=
6482                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6483                         if test -n "$GCC"; then
6484                           case $host_os in
6485                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6486                           esac
6487                         fi
6488                       fi
6489                       if test -z "$haveit"; then
6490                         haveit=
6491                         for x in $LDFLAGS $LIBICONV; do
6492
6493   acl_save_prefix="$prefix"
6494   prefix="$acl_final_prefix"
6495   acl_save_exec_prefix="$exec_prefix"
6496   exec_prefix="$acl_final_exec_prefix"
6497   eval x=\"$x\"
6498   exec_prefix="$acl_save_exec_prefix"
6499   prefix="$acl_save_prefix"
6500
6501                           if test "X$x" = "X-L$additional_libdir"; then
6502                             haveit=yes
6503                             break
6504                           fi
6505                         done
6506                         if test -z "$haveit"; then
6507                           if test -d "$additional_libdir"; then
6508                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6509                           fi
6510                         fi
6511                         haveit=
6512                         for x in $LDFLAGS $LTLIBICONV; do
6513
6514   acl_save_prefix="$prefix"
6515   prefix="$acl_final_prefix"
6516   acl_save_exec_prefix="$exec_prefix"
6517   exec_prefix="$acl_final_exec_prefix"
6518   eval x=\"$x\"
6519   exec_prefix="$acl_save_exec_prefix"
6520   prefix="$acl_save_prefix"
6521
6522                           if test "X$x" = "X-L$additional_libdir"; then
6523                             haveit=yes
6524                             break
6525                           fi
6526                         done
6527                         if test -z "$haveit"; then
6528                           if test -d "$additional_libdir"; then
6529                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6530                           fi
6531                         fi
6532                       fi
6533                     fi
6534                     ;;
6535                   -R*)
6536                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6537                     if test "$enable_rpath" != no; then
6538                                                                   haveit=
6539                       for x in $rpathdirs; do
6540                         if test "X$x" = "X$dir"; then
6541                           haveit=yes
6542                           break
6543                         fi
6544                       done
6545                       if test -z "$haveit"; then
6546                         rpathdirs="$rpathdirs $dir"
6547                       fi
6548                                                                   haveit=
6549                       for x in $ltrpathdirs; do
6550                         if test "X$x" = "X$dir"; then
6551                           haveit=yes
6552                           break
6553                         fi
6554                       done
6555                       if test -z "$haveit"; then
6556                         ltrpathdirs="$ltrpathdirs $dir"
6557                       fi
6558                     fi
6559                     ;;
6560                   -l*)
6561                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6562                     ;;
6563                   *.la)
6564                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6565                     ;;
6566                   *)
6567                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6568                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6569                     ;;
6570                 esac
6571               done
6572             fi
6573           else
6574                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6575             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6576           fi
6577         fi
6578       fi
6579     done
6580   done
6581   if test "X$rpathdirs" != "X"; then
6582     if test -n "$hardcode_libdir_separator"; then
6583                         alldirs=
6584       for found_dir in $rpathdirs; do
6585         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6586       done
6587             acl_save_libdir="$libdir"
6588       libdir="$alldirs"
6589       eval flag=\"$hardcode_libdir_flag_spec\"
6590       libdir="$acl_save_libdir"
6591       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6592     else
6593             for found_dir in $rpathdirs; do
6594         acl_save_libdir="$libdir"
6595         libdir="$found_dir"
6596         eval flag=\"$hardcode_libdir_flag_spec\"
6597         libdir="$acl_save_libdir"
6598         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6599       done
6600     fi
6601   fi
6602   if test "X$ltrpathdirs" != "X"; then
6603             for found_dir in $ltrpathdirs; do
6604       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6605     done
6606   fi
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6626 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6627 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   gt_save_CPPFLAGS="$CPPFLAGS"
6631      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6632      gt_save_LIBS="$LIBS"
6633      LIBS="$LIBS -framework CoreFoundation"
6634      cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h.  */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h.  */
6640 #include <CFPreferences.h>
6641 int
6642 main ()
6643 {
6644 CFPreferencesCopyAppValue(NULL, NULL)
6645   ;
6646   return 0;
6647 }
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (ac_try="$ac_link"
6651 case "(($ac_try" in
6652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653   *) ac_try_echo=$ac_try;;
6654 esac
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656   (eval "$ac_link") 2>conftest.er1
6657   ac_status=$?
6658   grep -v '^ *+' conftest.er1 >conftest.err
6659   rm -f conftest.er1
6660   cat conftest.err >&5
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); } && {
6663          test -z "$ac_c_werror_flag" ||
6664          test ! -s conftest.err
6665        } && test -s conftest$ac_exeext &&
6666        $as_test_x conftest$ac_exeext; then
6667   gt_cv_func_CFPreferencesCopyAppValue=yes
6668 else
6669   echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672         gt_cv_func_CFPreferencesCopyAppValue=no
6673 fi
6674
6675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6676       conftest$ac_exeext conftest.$ac_ext
6677      CPPFLAGS="$gt_save_CPPFLAGS"
6678      LIBS="$gt_save_LIBS"
6679 fi
6680 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6681 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6682   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6683
6684 cat >>confdefs.h <<\_ACEOF
6685 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6686 _ACEOF
6687
6688   fi
6689     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6690 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6691 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   gt_save_CPPFLAGS="$CPPFLAGS"
6695      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6696      gt_save_LIBS="$LIBS"
6697      LIBS="$LIBS -framework CoreFoundation"
6698      cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h.  */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h.  */
6704 #include <CFLocale.h>
6705 int
6706 main ()
6707 {
6708 CFLocaleCopyCurrent();
6709   ;
6710   return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6715 case "(($ac_try" in
6716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717   *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720   (eval "$ac_link") 2>conftest.er1
6721   ac_status=$?
6722   grep -v '^ *+' conftest.er1 >conftest.err
6723   rm -f conftest.er1
6724   cat conftest.err >&5
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); } && {
6727          test -z "$ac_c_werror_flag" ||
6728          test ! -s conftest.err
6729        } && test -s conftest$ac_exeext &&
6730        $as_test_x conftest$ac_exeext; then
6731   gt_cv_func_CFLocaleCopyCurrent=yes
6732 else
6733   echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736         gt_cv_func_CFLocaleCopyCurrent=no
6737 fi
6738
6739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6740       conftest$ac_exeext conftest.$ac_ext
6741      CPPFLAGS="$gt_save_CPPFLAGS"
6742      LIBS="$gt_save_LIBS"
6743 fi
6744 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6745 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6746   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6747
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_CFLOCALECOPYCURRENT 1
6750 _ACEOF
6751
6752   fi
6753   INTL_MACOSX_LIBS=
6754   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6755     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6756   fi
6757
6758
6759
6760
6761   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6762 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6763     # Check whether --enable-nls was given.
6764 if test "${enable_nls+set}" = set; then
6765   enableval=$enable_nls; USE_NLS=$enableval
6766 else
6767   USE_NLS=yes
6768 fi
6769
6770   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6771 echo "${ECHO_T}$USE_NLS" >&6; }
6772
6773
6774
6775
6776   LIBINTL=
6777   LTLIBINTL=
6778   POSUB=
6779
6780     if test "$USE_NLS" = "yes"; then
6781     gt_use_preinstalled_gnugettext=no
6782
6783
6784
6785
6786
6787
6788         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6789 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6790 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   cat >conftest.$ac_ext <<_ACEOF
6794 /* confdefs.h.  */
6795 _ACEOF
6796 cat confdefs.h >>conftest.$ac_ext
6797 cat >>conftest.$ac_ext <<_ACEOF
6798 /* end confdefs.h.  */
6799 #include <libintl.h>
6800 extern int _nl_msg_cat_cntr;
6801 extern int *_nl_domain_bindings;
6802 int
6803 main ()
6804 {
6805 bindtextdomain ("", "");
6806 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6807   ;
6808   return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (ac_try="$ac_link"
6813 case "(($ac_try" in
6814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815   *) ac_try_echo=$ac_try;;
6816 esac
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818   (eval "$ac_link") 2>conftest.er1
6819   ac_status=$?
6820   grep -v '^ *+' conftest.er1 >conftest.err
6821   rm -f conftest.er1
6822   cat conftest.err >&5
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } && {
6825          test -z "$ac_c_werror_flag" ||
6826          test ! -s conftest.err
6827        } && test -s conftest$ac_exeext &&
6828        $as_test_x conftest$ac_exeext; then
6829   gt_cv_func_gnugettext1_libc=yes
6830 else
6831   echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834         gt_cv_func_gnugettext1_libc=no
6835 fi
6836
6837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6838       conftest$ac_exeext conftest.$ac_ext
6839 fi
6840 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6841 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6842
6843         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6844
6845
6846
6847
6848
6849           am_save_CPPFLAGS="$CPPFLAGS"
6850
6851   for element in $INCICONV; do
6852     haveit=
6853     for x in $CPPFLAGS; do
6854
6855   acl_save_prefix="$prefix"
6856   prefix="$acl_final_prefix"
6857   acl_save_exec_prefix="$exec_prefix"
6858   exec_prefix="$acl_final_exec_prefix"
6859   eval x=\"$x\"
6860   exec_prefix="$acl_save_exec_prefix"
6861   prefix="$acl_save_prefix"
6862
6863       if test "X$x" = "X$element"; then
6864         haveit=yes
6865         break
6866       fi
6867     done
6868     if test -z "$haveit"; then
6869       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6870     fi
6871   done
6872
6873
6874   { echo "$as_me:$LINENO: checking for iconv" >&5
6875 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6876 if test "${am_cv_func_iconv+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879
6880     am_cv_func_iconv="no, consider installing GNU libiconv"
6881     am_cv_lib_iconv=no
6882     cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h.  */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h.  */
6888 #include <stdlib.h>
6889 #include <iconv.h>
6890 int
6891 main ()
6892 {
6893 iconv_t cd = iconv_open("","");
6894        iconv(cd,NULL,NULL,NULL,NULL);
6895        iconv_close(cd);
6896   ;
6897   return 0;
6898 }
6899 _ACEOF
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6902 case "(($ac_try" in
6903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904   *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907   (eval "$ac_link") 2>conftest.er1
6908   ac_status=$?
6909   grep -v '^ *+' conftest.er1 >conftest.err
6910   rm -f conftest.er1
6911   cat conftest.err >&5
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); } && {
6914          test -z "$ac_c_werror_flag" ||
6915          test ! -s conftest.err
6916        } && test -s conftest$ac_exeext &&
6917        $as_test_x conftest$ac_exeext; then
6918   am_cv_func_iconv=yes
6919 else
6920   echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923
6924 fi
6925
6926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6927       conftest$ac_exeext conftest.$ac_ext
6928     if test "$am_cv_func_iconv" != yes; then
6929       am_save_LIBS="$LIBS"
6930       LIBS="$LIBS $LIBICONV"
6931       cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h.  */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h.  */
6937 #include <stdlib.h>
6938 #include <iconv.h>
6939 int
6940 main ()
6941 {
6942 iconv_t cd = iconv_open("","");
6943          iconv(cd,NULL,NULL,NULL,NULL);
6944          iconv_close(cd);
6945   ;
6946   return 0;
6947 }
6948 _ACEOF
6949 rm -f conftest.$ac_objext conftest$ac_exeext
6950 if { (ac_try="$ac_link"
6951 case "(($ac_try" in
6952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953   *) ac_try_echo=$ac_try;;
6954 esac
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956   (eval "$ac_link") 2>conftest.er1
6957   ac_status=$?
6958   grep -v '^ *+' conftest.er1 >conftest.err
6959   rm -f conftest.er1
6960   cat conftest.err >&5
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); } && {
6963          test -z "$ac_c_werror_flag" ||
6964          test ! -s conftest.err
6965        } && test -s conftest$ac_exeext &&
6966        $as_test_x conftest$ac_exeext; then
6967   am_cv_lib_iconv=yes
6968         am_cv_func_iconv=yes
6969 else
6970   echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973
6974 fi
6975
6976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6977       conftest$ac_exeext conftest.$ac_ext
6978       LIBS="$am_save_LIBS"
6979     fi
6980
6981 fi
6982 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6983 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6984   if test "$am_cv_func_iconv" = yes; then
6985
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_ICONV 1
6988 _ACEOF
6989
6990   fi
6991   if test "$am_cv_lib_iconv" = yes; then
6992     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6993 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6994     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6995 echo "${ECHO_T}$LIBICONV" >&6; }
6996   else
6997             CPPFLAGS="$am_save_CPPFLAGS"
6998     LIBICONV=
6999     LTLIBICONV=
7000   fi
7001
7002
7003
7004
7005
7006
7007     use_additional=yes
7008
7009   acl_save_prefix="$prefix"
7010   prefix="$acl_final_prefix"
7011   acl_save_exec_prefix="$exec_prefix"
7012   exec_prefix="$acl_final_exec_prefix"
7013
7014     eval additional_includedir=\"$includedir\"
7015     eval additional_libdir=\"$libdir\"
7016
7017   exec_prefix="$acl_save_exec_prefix"
7018   prefix="$acl_save_prefix"
7019
7020
7021 # Check whether --with-libintl-prefix was given.
7022 if test "${with_libintl_prefix+set}" = set; then
7023   withval=$with_libintl_prefix;
7024     if test "X$withval" = "Xno"; then
7025       use_additional=no
7026     else
7027       if test "X$withval" = "X"; then
7028
7029   acl_save_prefix="$prefix"
7030   prefix="$acl_final_prefix"
7031   acl_save_exec_prefix="$exec_prefix"
7032   exec_prefix="$acl_final_exec_prefix"
7033
7034           eval additional_includedir=\"$includedir\"
7035           eval additional_libdir=\"$libdir\"
7036
7037   exec_prefix="$acl_save_exec_prefix"
7038   prefix="$acl_save_prefix"
7039
7040       else
7041         additional_includedir="$withval/include"
7042         additional_libdir="$withval/lib"
7043       fi
7044     fi
7045
7046 fi
7047
7048       LIBINTL=
7049   LTLIBINTL=
7050   INCINTL=
7051   rpathdirs=
7052   ltrpathdirs=
7053   names_already_handled=
7054   names_next_round='intl '
7055   while test -n "$names_next_round"; do
7056     names_this_round="$names_next_round"
7057     names_next_round=
7058     for name in $names_this_round; do
7059       already_handled=
7060       for n in $names_already_handled; do
7061         if test "$n" = "$name"; then
7062           already_handled=yes
7063           break
7064         fi
7065       done
7066       if test -z "$already_handled"; then
7067         names_already_handled="$names_already_handled $name"
7068                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7069         eval value=\"\$HAVE_LIB$uppername\"
7070         if test -n "$value"; then
7071           if test "$value" = yes; then
7072             eval value=\"\$LIB$uppername\"
7073             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7074             eval value=\"\$LTLIB$uppername\"
7075             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7076           else
7077                                     :
7078           fi
7079         else
7080                               found_dir=
7081           found_la=
7082           found_so=
7083           found_a=
7084           if test $use_additional = yes; then
7085             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7086               found_dir="$additional_libdir"
7087               found_so="$additional_libdir/lib$name.$shlibext"
7088               if test -f "$additional_libdir/lib$name.la"; then
7089                 found_la="$additional_libdir/lib$name.la"
7090               fi
7091             else
7092               if test -f "$additional_libdir/lib$name.$libext"; then
7093                 found_dir="$additional_libdir"
7094                 found_a="$additional_libdir/lib$name.$libext"
7095                 if test -f "$additional_libdir/lib$name.la"; then
7096                   found_la="$additional_libdir/lib$name.la"
7097                 fi
7098               fi
7099             fi
7100           fi
7101           if test "X$found_dir" = "X"; then
7102             for x in $LDFLAGS $LTLIBINTL; do
7103
7104   acl_save_prefix="$prefix"
7105   prefix="$acl_final_prefix"
7106   acl_save_exec_prefix="$exec_prefix"
7107   exec_prefix="$acl_final_exec_prefix"
7108   eval x=\"$x\"
7109   exec_prefix="$acl_save_exec_prefix"
7110   prefix="$acl_save_prefix"
7111
7112               case "$x" in
7113                 -L*)
7114                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7115                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7116                     found_dir="$dir"
7117                     found_so="$dir/lib$name.$shlibext"
7118                     if test -f "$dir/lib$name.la"; then
7119                       found_la="$dir/lib$name.la"
7120                     fi
7121                   else
7122                     if test -f "$dir/lib$name.$libext"; then
7123                       found_dir="$dir"
7124                       found_a="$dir/lib$name.$libext"
7125                       if test -f "$dir/lib$name.la"; then
7126                         found_la="$dir/lib$name.la"
7127                       fi
7128                     fi
7129                   fi
7130                   ;;
7131               esac
7132               if test "X$found_dir" != "X"; then
7133                 break
7134               fi
7135             done
7136           fi
7137           if test "X$found_dir" != "X"; then
7138                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7139             if test "X$found_so" != "X"; then
7140                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7141                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7142               else
7143                                                                                 haveit=
7144                 for x in $ltrpathdirs; do
7145                   if test "X$x" = "X$found_dir"; then
7146                     haveit=yes
7147                     break
7148                   fi
7149                 done
7150                 if test -z "$haveit"; then
7151                   ltrpathdirs="$ltrpathdirs $found_dir"
7152                 fi
7153                                 if test "$hardcode_direct" = yes; then
7154                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7155                 else
7156                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7157                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7158                                                             haveit=
7159                     for x in $rpathdirs; do
7160                       if test "X$x" = "X$found_dir"; then
7161                         haveit=yes
7162                         break
7163                       fi
7164                     done
7165                     if test -z "$haveit"; then
7166                       rpathdirs="$rpathdirs $found_dir"
7167                     fi
7168                   else
7169                                                                                 haveit=
7170                     for x in $LDFLAGS $LIBINTL; do
7171
7172   acl_save_prefix="$prefix"
7173   prefix="$acl_final_prefix"
7174   acl_save_exec_prefix="$exec_prefix"
7175   exec_prefix="$acl_final_exec_prefix"
7176   eval x=\"$x\"
7177   exec_prefix="$acl_save_exec_prefix"
7178   prefix="$acl_save_prefix"
7179
7180                       if test "X$x" = "X-L$found_dir"; then
7181                         haveit=yes
7182                         break
7183                       fi
7184                     done
7185                     if test -z "$haveit"; then
7186                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7187                     fi
7188                     if test "$hardcode_minus_L" != no; then
7189                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7190                     else
7191                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7192                     fi
7193                   fi
7194                 fi
7195               fi
7196             else
7197               if test "X$found_a" != "X"; then
7198                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7199               else
7200                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7201               fi
7202             fi
7203                         additional_includedir=
7204             case "$found_dir" in
7205               */lib | */lib/)
7206                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7207                 additional_includedir="$basedir/include"
7208                 ;;
7209             esac
7210             if test "X$additional_includedir" != "X"; then
7211                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7212                 haveit=
7213                 if test "X$additional_includedir" = "X/usr/local/include"; then
7214                   if test -n "$GCC"; then
7215                     case $host_os in
7216                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7217                     esac
7218                   fi
7219                 fi
7220                 if test -z "$haveit"; then
7221                   for x in $CPPFLAGS $INCINTL; do
7222
7223   acl_save_prefix="$prefix"
7224   prefix="$acl_final_prefix"
7225   acl_save_exec_prefix="$exec_prefix"
7226   exec_prefix="$acl_final_exec_prefix"
7227   eval x=\"$x\"
7228   exec_prefix="$acl_save_exec_prefix"
7229   prefix="$acl_save_prefix"
7230
7231                     if test "X$x" = "X-I$additional_includedir"; then
7232                       haveit=yes
7233                       break
7234                     fi
7235                   done
7236                   if test -z "$haveit"; then
7237                     if test -d "$additional_includedir"; then
7238                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7239                     fi
7240                   fi
7241                 fi
7242               fi
7243             fi
7244                         if test -n "$found_la"; then
7245                                                         save_libdir="$libdir"
7246               case "$found_la" in
7247                 */* | *\\*) . "$found_la" ;;
7248                 *) . "./$found_la" ;;
7249               esac
7250               libdir="$save_libdir"
7251                             for dep in $dependency_libs; do
7252                 case "$dep" in
7253                   -L*)
7254                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7255                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7256                       haveit=
7257                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7258                         if test -n "$GCC"; then
7259                           case $host_os in
7260                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7261                           esac
7262                         fi
7263                       fi
7264                       if test -z "$haveit"; then
7265                         haveit=
7266                         for x in $LDFLAGS $LIBINTL; do
7267
7268   acl_save_prefix="$prefix"
7269   prefix="$acl_final_prefix"
7270   acl_save_exec_prefix="$exec_prefix"
7271   exec_prefix="$acl_final_exec_prefix"
7272   eval x=\"$x\"
7273   exec_prefix="$acl_save_exec_prefix"
7274   prefix="$acl_save_prefix"
7275
7276                           if test "X$x" = "X-L$additional_libdir"; then
7277                             haveit=yes
7278                             break
7279                           fi
7280                         done
7281                         if test -z "$haveit"; then
7282                           if test -d "$additional_libdir"; then
7283                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7284                           fi
7285                         fi
7286                         haveit=
7287                         for x in $LDFLAGS $LTLIBINTL; do
7288
7289   acl_save_prefix="$prefix"
7290   prefix="$acl_final_prefix"
7291   acl_save_exec_prefix="$exec_prefix"
7292   exec_prefix="$acl_final_exec_prefix"
7293   eval x=\"$x\"
7294   exec_prefix="$acl_save_exec_prefix"
7295   prefix="$acl_save_prefix"
7296
7297                           if test "X$x" = "X-L$additional_libdir"; then
7298                             haveit=yes
7299                             break
7300                           fi
7301                         done
7302                         if test -z "$haveit"; then
7303                           if test -d "$additional_libdir"; then
7304                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7305                           fi
7306                         fi
7307                       fi
7308                     fi
7309                     ;;
7310                   -R*)
7311                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7312                     if test "$enable_rpath" != no; then
7313                                                                   haveit=
7314                       for x in $rpathdirs; do
7315                         if test "X$x" = "X$dir"; then
7316                           haveit=yes
7317                           break
7318                         fi
7319                       done
7320                       if test -z "$haveit"; then
7321                         rpathdirs="$rpathdirs $dir"
7322                       fi
7323                                                                   haveit=
7324                       for x in $ltrpathdirs; do
7325                         if test "X$x" = "X$dir"; then
7326                           haveit=yes
7327                           break
7328                         fi
7329                       done
7330                       if test -z "$haveit"; then
7331                         ltrpathdirs="$ltrpathdirs $dir"
7332                       fi
7333                     fi
7334                     ;;
7335                   -l*)
7336                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7337                     ;;
7338                   *.la)
7339                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7340                     ;;
7341                   *)
7342                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7343                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7344                     ;;
7345                 esac
7346               done
7347             fi
7348           else
7349                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7350             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7351           fi
7352         fi
7353       fi
7354     done
7355   done
7356   if test "X$rpathdirs" != "X"; then
7357     if test -n "$hardcode_libdir_separator"; then
7358                         alldirs=
7359       for found_dir in $rpathdirs; do
7360         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7361       done
7362             acl_save_libdir="$libdir"
7363       libdir="$alldirs"
7364       eval flag=\"$hardcode_libdir_flag_spec\"
7365       libdir="$acl_save_libdir"
7366       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7367     else
7368             for found_dir in $rpathdirs; do
7369         acl_save_libdir="$libdir"
7370         libdir="$found_dir"
7371         eval flag=\"$hardcode_libdir_flag_spec\"
7372         libdir="$acl_save_libdir"
7373         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7374       done
7375     fi
7376   fi
7377   if test "X$ltrpathdirs" != "X"; then
7378             for found_dir in $ltrpathdirs; do
7379       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7380     done
7381   fi
7382
7383           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7384 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7385 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   gt_save_CPPFLAGS="$CPPFLAGS"
7389             CPPFLAGS="$CPPFLAGS $INCINTL"
7390             gt_save_LIBS="$LIBS"
7391             LIBS="$LIBS $LIBINTL"
7392                         cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h.  */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h.  */
7398 #include <libintl.h>
7399 extern int _nl_msg_cat_cntr;
7400 extern
7401 #ifdef __cplusplus
7402 "C"
7403 #endif
7404 const char *_nl_expand_alias (const char *);
7405 int
7406 main ()
7407 {
7408 bindtextdomain ("", "");
7409 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (ac_try="$ac_link"
7416 case "(($ac_try" in
7417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418   *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421   (eval "$ac_link") 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } && {
7428          test -z "$ac_c_werror_flag" ||
7429          test ! -s conftest.err
7430        } && test -s conftest$ac_exeext &&
7431        $as_test_x conftest$ac_exeext; then
7432   gt_cv_func_gnugettext1_libintl=yes
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437         gt_cv_func_gnugettext1_libintl=no
7438 fi
7439
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441       conftest$ac_exeext conftest.$ac_ext
7442                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7443               LIBS="$LIBS $LIBICONV"
7444               cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h.  */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h.  */
7450 #include <libintl.h>
7451 extern int _nl_msg_cat_cntr;
7452 extern
7453 #ifdef __cplusplus
7454 "C"
7455 #endif
7456 const char *_nl_expand_alias (const char *);
7457 int
7458 main ()
7459 {
7460 bindtextdomain ("", "");
7461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7462   ;
7463   return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (ac_try="$ac_link"
7468 case "(($ac_try" in
7469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470   *) ac_try_echo=$ac_try;;
7471 esac
7472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7473   (eval "$ac_link") 2>conftest.er1
7474   ac_status=$?
7475   grep -v '^ *+' conftest.er1 >conftest.err
7476   rm -f conftest.er1
7477   cat conftest.err >&5
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); } && {
7480          test -z "$ac_c_werror_flag" ||
7481          test ! -s conftest.err
7482        } && test -s conftest$ac_exeext &&
7483        $as_test_x conftest$ac_exeext; then
7484   LIBINTL="$LIBINTL $LIBICONV"
7485                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7486                 gt_cv_func_gnugettext1_libintl=yes
7487
7488 else
7489   echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7491
7492
7493 fi
7494
7495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7496       conftest$ac_exeext conftest.$ac_ext
7497             fi
7498             CPPFLAGS="$gt_save_CPPFLAGS"
7499             LIBS="$gt_save_LIBS"
7500 fi
7501 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7502 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7503         fi
7504
7505                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7506            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7507                 && test "$PACKAGE" != gettext-runtime \
7508                 && test "$PACKAGE" != gettext-tools; }; then
7509           gt_use_preinstalled_gnugettext=yes
7510         else
7511                     LIBINTL=
7512           LTLIBINTL=
7513           INCINTL=
7514         fi
7515
7516
7517
7518     if test -n "$INTL_MACOSX_LIBS"; then
7519       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7520          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7521                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7522         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7523       fi
7524     fi
7525
7526     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7527        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7528
7529 cat >>confdefs.h <<\_ACEOF
7530 #define ENABLE_NLS 1
7531 _ACEOF
7532
7533     else
7534       USE_NLS=no
7535     fi
7536   fi
7537
7538   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7539 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7540   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7541 echo "${ECHO_T}$USE_NLS" >&6; }
7542   if test "$USE_NLS" = "yes"; then
7543     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7544 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7545     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7546       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7547         gt_source="external libintl"
7548       else
7549         gt_source="libc"
7550       fi
7551     else
7552       gt_source="included intl directory"
7553     fi
7554     { echo "$as_me:$LINENO: result: $gt_source" >&5
7555 echo "${ECHO_T}$gt_source" >&6; }
7556   fi
7557
7558   if test "$USE_NLS" = "yes"; then
7559
7560     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7561       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7562         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7563 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7564         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7565 echo "${ECHO_T}$LIBINTL" >&6; }
7566
7567   for element in $INCINTL; do
7568     haveit=
7569     for x in $CPPFLAGS; do
7570
7571   acl_save_prefix="$prefix"
7572   prefix="$acl_final_prefix"
7573   acl_save_exec_prefix="$exec_prefix"
7574   exec_prefix="$acl_final_exec_prefix"
7575   eval x=\"$x\"
7576   exec_prefix="$acl_save_exec_prefix"
7577   prefix="$acl_save_prefix"
7578
7579       if test "X$x" = "X$element"; then
7580         haveit=yes
7581         break
7582       fi
7583     done
7584     if test -z "$haveit"; then
7585       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7586     fi
7587   done
7588
7589       fi
7590
7591
7592 cat >>confdefs.h <<\_ACEOF
7593 #define HAVE_GETTEXT 1
7594 _ACEOF
7595
7596
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_DCGETTEXT 1
7599 _ACEOF
7600
7601     fi
7602
7603         POSUB=po
7604   fi
7605
7606
7607
7608     INTLLIBS="$LIBINTL"
7609
7610
7611
7612
7613
7614
7615 if test x${prefix} = xNONE ; then
7616    if test `eval echo ${datadir}` = NONE/share ; then
7617       datadir=/usr/share
7618    fi
7619 fi
7620
7621 # ------------------------------------------------------------------
7622 #  If the user has not set --prefix, we set our default to nothing.
7623 #  In this case, if the user has not set --sysconfdir, we set it
7624 #  to the package default of /etc/bacula.  If either --prefix or
7625 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7626 # ------------------------------------------------------------------
7627 if test x${prefix} = xNONE ; then
7628     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7629         sysconfdir=/etc/bacula
7630     fi
7631     prefix=
7632 fi
7633 sysconfdir=`eval echo ${sysconfdir}`
7634 datadir=`eval echo ${datadir}`
7635 localedir=`eval echo ${datadir}/locale`
7636 cat >>confdefs.h <<_ACEOF
7637 #define LOCALEDIR "$localedir"
7638 _ACEOF
7639
7640 cat >>confdefs.h <<_ACEOF
7641 #define SYSCONFDIR "$sysconfdir"
7642 _ACEOF
7643
7644
7645 # -------------------------------------------------------------------------
7646 #  If the user has not set --exec-prefix, we default to ${prefix}
7647 # -------------------------------------------------------------------------
7648 if test x${exec_prefix} = xNONE ; then
7649     exec_prefix=${prefix}
7650 fi
7651
7652 # ------------------------------------------------------------------
7653 # If the user has not set --sbindir, we set our default as /sbin
7654 # ------------------------------------------------------------------
7655 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7656     sbindir=${exec_prefix}/sbin
7657 fi
7658 sbindir=`eval echo ${sbindir}`
7659
7660
7661 # -------------------------------------------------------------------------
7662 #  If the user has not set --mandir, we default to /usr/share/man
7663 # -------------------------------------------------------------------------
7664 if test x$mandir = x'${prefix}/man' ; then
7665    mandir=/usr/share/man
7666 fi
7667
7668
7669 for ac_prog in msgfmt
7670 do
7671   # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_MSGFMT+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   case $MSGFMT in
7679   [\\/]* | ?:[\\/]*)
7680   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7681   ;;
7682   *)
7683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686   IFS=$as_save_IFS
7687   test -z "$as_dir" && as_dir=.
7688   for ac_exec_ext in '' $ac_executable_extensions; do
7689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693   fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698   ;;
7699 esac
7700 fi
7701 MSGFMT=$ac_cv_path_MSGFMT
7702 if test -n "$MSGFMT"; then
7703   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7704 echo "${ECHO_T}$MSGFMT" >&6; }
7705 else
7706   { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7708 fi
7709
7710
7711   test -n "$MSGFMT" && break
7712 done
7713 test -n "$MSGFMT" || MSGFMT="no"
7714
7715 if test "$MSGFMT" = "no"
7716 then
7717    echo 'msgfmt program not found, disabling NLS !'
7718    USE_NLS=no
7719    USE_INCLUDED_LIBINTL=no
7720 #else
7721
7722     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7723 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7724 if test "${ac_cv_gnu_library_2+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h.  */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h.  */
7733
7734 #include <features.h>
7735 #ifdef __GNU_LIBRARY__
7736  #if (__GLIBC__ >= 2)
7737   Lucky GNU user
7738  #endif
7739 #endif
7740
7741 _ACEOF
7742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7743   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7744   ac_cv_gnu_library_2=yes
7745 else
7746   ac_cv_gnu_library_2=no
7747 fi
7748 rm -f conftest*
7749
7750
7751
7752 fi
7753 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7754 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7755
7756     GLIBC2="$ac_cv_gnu_library_2"
7757
7758
7759
7760         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7761 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7762 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   ac_check_lib_save_LIBS=$LIBS
7766 LIBS="-lcposix  $LIBS"
7767 cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773
7774 /* Override any GCC internal prototype to avoid an error.
7775    Use char because int might match the return type of a GCC
7776    builtin and then its argument prototype would still apply.  */
7777 #ifdef __cplusplus
7778 extern "C"
7779 #endif
7780 char strerror ();
7781 int
7782 main ()
7783 {
7784 return strerror ();
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (ac_try="$ac_link"
7791 case "(($ac_try" in
7792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793   *) ac_try_echo=$ac_try;;
7794 esac
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796   (eval "$ac_link") 2>conftest.er1
7797   ac_status=$?
7798   grep -v '^ *+' conftest.er1 >conftest.err
7799   rm -f conftest.er1
7800   cat conftest.err >&5
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); } && {
7803          test -z "$ac_c_werror_flag" ||
7804          test ! -s conftest.err
7805        } && test -s conftest$ac_exeext &&
7806        $as_test_x conftest$ac_exeext; then
7807   ac_cv_lib_cposix_strerror=yes
7808 else
7809   echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812         ac_cv_lib_cposix_strerror=no
7813 fi
7814
7815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7816       conftest$ac_exeext conftest.$ac_ext
7817 LIBS=$ac_check_lib_save_LIBS
7818 fi
7819 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7820 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7821 if test $ac_cv_lib_cposix_strerror = yes; then
7822   LIBS="$LIBS -lcposix"
7823 fi
7824
7825
7826
7827 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7828 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7829 if test "${ac_cv_header_stdc+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h.  */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h.  */
7838 #include <stdlib.h>
7839 #include <stdarg.h>
7840 #include <string.h>
7841 #include <float.h>
7842
7843 int
7844 main ()
7845 {
7846
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext
7852 if { (ac_try="$ac_compile"
7853 case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858   (eval "$ac_compile") 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } && {
7865          test -z "$ac_c_werror_flag" ||
7866          test ! -s conftest.err
7867        } && test -s conftest.$ac_objext; then
7868   ac_cv_header_stdc=yes
7869 else
7870   echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873         ac_cv_header_stdc=no
7874 fi
7875
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877
7878 if test $ac_cv_header_stdc = yes; then
7879   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7880   cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 #include <string.h>
7887
7888 _ACEOF
7889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7890   $EGREP "memchr" >/dev/null 2>&1; then
7891   :
7892 else
7893   ac_cv_header_stdc=no
7894 fi
7895 rm -f conftest*
7896
7897 fi
7898
7899 if test $ac_cv_header_stdc = yes; then
7900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7901   cat >conftest.$ac_ext <<_ACEOF
7902 /* confdefs.h.  */
7903 _ACEOF
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h.  */
7907 #include <stdlib.h>
7908
7909 _ACEOF
7910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7911   $EGREP "free" >/dev/null 2>&1; then
7912   :
7913 else
7914   ac_cv_header_stdc=no
7915 fi
7916 rm -f conftest*
7917
7918 fi
7919
7920 if test $ac_cv_header_stdc = yes; then
7921   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7922   if test "$cross_compiling" = yes; then
7923   :
7924 else
7925   cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 #include <ctype.h>
7932 #include <stdlib.h>
7933 #if ((' ' & 0x0FF) == 0x020)
7934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7936 #else
7937 # define ISLOWER(c) \
7938                    (('a' <= (c) && (c) <= 'i') \
7939                      || ('j' <= (c) && (c) <= 'r') \
7940                      || ('s' <= (c) && (c) <= 'z'))
7941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7942 #endif
7943
7944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7945 int
7946 main ()
7947 {
7948   int i;
7949   for (i = 0; i < 256; i++)
7950     if (XOR (islower (i), ISLOWER (i))
7951         || toupper (i) != TOUPPER (i))
7952       return 2;
7953   return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest$ac_exeext
7957 if { (ac_try="$ac_link"
7958 case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963   (eval "$ac_link") 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7967   { (case "(($ac_try" in
7968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969   *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972   (eval "$ac_try") 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   :
7977 else
7978   echo "$as_me: program exited with status $ac_status" >&5
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982 ( exit $ac_status )
7983 ac_cv_header_stdc=no
7984 fi
7985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7986 fi
7987
7988
7989 fi
7990 fi
7991 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7992 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7993 if test $ac_cv_header_stdc = yes; then
7994
7995 cat >>confdefs.h <<\_ACEOF
7996 #define STDC_HEADERS 1
7997 _ACEOF
7998
7999 fi
8000
8001 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8002 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8003 if test "${ac_cv_c_const+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012
8013 int
8014 main ()
8015 {
8016 /* FIXME: Include the comments suggested by Paul. */
8017 #ifndef __cplusplus
8018   /* Ultrix mips cc rejects this.  */
8019   typedef int charset[2];
8020   const charset cs;
8021   /* SunOS 4.1.1 cc rejects this.  */
8022   char const *const *pcpcc;
8023   char **ppc;
8024   /* NEC SVR4.0.2 mips cc rejects this.  */
8025   struct point {int x, y;};
8026   static struct point const zero = {0,0};
8027   /* AIX XL C 1.02.0.0 rejects this.
8028      It does not let you subtract one const X* pointer from another in
8029      an arm of an if-expression whose if-part is not a constant
8030      expression */
8031   const char *g = "string";
8032   pcpcc = &g + (g ? g-g : 0);
8033   /* HPUX 7.0 cc rejects these. */
8034   ++pcpcc;
8035   ppc = (char**) pcpcc;
8036   pcpcc = (char const *const *) ppc;
8037   { /* SCO 3.2v4 cc rejects this.  */
8038     char *t;
8039     char const *s = 0 ? (char *) 0 : (char const *) 0;
8040
8041     *t++ = 0;
8042     if (s) return 0;
8043   }
8044   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8045     int x[] = {25, 17};
8046     const int *foo = &x[0];
8047     ++foo;
8048   }
8049   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8050     typedef const int *iptr;
8051     iptr p = 0;
8052     ++p;
8053   }
8054   { /* AIX XL C 1.02.0.0 rejects this saying
8055        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8056     struct s { int j; const int *ap[3]; };
8057     struct s *b; b->j = 5;
8058   }
8059   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8060     const int foo = 10;
8061     if (!foo) return 0;
8062   }
8063   return !cs[0] && !zero.x;
8064 #endif
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_compile") 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } && {
8084          test -z "$ac_c_werror_flag" ||
8085          test ! -s conftest.err
8086        } && test -s conftest.$ac_objext; then
8087   ac_cv_c_const=yes
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092         ac_cv_c_const=no
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 fi
8097 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8098 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8099 if test $ac_cv_c_const = no; then
8100
8101 cat >>confdefs.h <<\_ACEOF
8102 #define const
8103 _ACEOF
8104
8105 fi
8106
8107
8108   { echo "$as_me:$LINENO: checking for signed" >&5
8109 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8110 if test "${bh_cv_c_signed+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h.  */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h.  */
8119
8120 int
8121 main ()
8122 {
8123 signed char x;
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (ac_try="$ac_compile"
8130 case "(($ac_try" in
8131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132   *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135   (eval "$ac_compile") 2>conftest.er1
8136   ac_status=$?
8137   grep -v '^ *+' conftest.er1 >conftest.err
8138   rm -f conftest.er1
8139   cat conftest.err >&5
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } && {
8142          test -z "$ac_c_werror_flag" ||
8143          test ! -s conftest.err
8144        } && test -s conftest.$ac_objext; then
8145   bh_cv_c_signed=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150         bh_cv_c_signed=no
8151 fi
8152
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 fi
8155 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8156 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8157   if test $bh_cv_c_signed = no; then
8158
8159 cat >>confdefs.h <<\_ACEOF
8160 #define signed
8161 _ACEOF
8162
8163   fi
8164
8165 { echo "$as_me:$LINENO: checking for inline" >&5
8166 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8167 if test "${ac_cv_c_inline+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   ac_cv_c_inline=no
8171 for ac_kw in inline __inline__ __inline; do
8172   cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #ifndef __cplusplus
8179 typedef int foo_t;
8180 static $ac_kw foo_t static_foo () {return 0; }
8181 $ac_kw foo_t foo () {return 0; }
8182 #endif
8183
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   ac_cv_c_inline=$ac_kw
8203 else
8204   echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207
8208 fi
8209
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211   test "$ac_cv_c_inline" != no && break
8212 done
8213
8214 fi
8215 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8216 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8217
8218
8219 case $ac_cv_c_inline in
8220   inline | yes) ;;
8221   *)
8222     case $ac_cv_c_inline in
8223       no) ac_val=;;
8224       *) ac_val=$ac_cv_c_inline;;
8225     esac
8226     cat >>confdefs.h <<_ACEOF
8227 #ifndef __cplusplus
8228 #define inline $ac_val
8229 #endif
8230 _ACEOF
8231     ;;
8232 esac
8233
8234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8245                   inttypes.h stdint.h unistd.h
8246 do
8247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259 $ac_includes_default
8260
8261 #include <$ac_header>
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (ac_try="$ac_compile"
8265 case "(($ac_try" in
8266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267   *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270   (eval "$ac_compile") 2>conftest.er1
8271   ac_status=$?
8272   grep -v '^ *+' conftest.er1 >conftest.err
8273   rm -f conftest.er1
8274   cat conftest.err >&5
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } && {
8277          test -z "$ac_c_werror_flag" ||
8278          test ! -s conftest.err
8279        } && test -s conftest.$ac_objext; then
8280   eval "$as_ac_Header=yes"
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285         eval "$as_ac_Header=no"
8286 fi
8287
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289 fi
8290 ac_res=`eval echo '${'$as_ac_Header'}'`
8291                { echo "$as_me:$LINENO: result: $ac_res" >&5
8292 echo "${ECHO_T}$ac_res" >&6; }
8293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8294   cat >>confdefs.h <<_ACEOF
8295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8296 _ACEOF
8297
8298 fi
8299
8300 done
8301
8302
8303 { echo "$as_me:$LINENO: checking for off_t" >&5
8304 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8305 if test "${ac_cv_type_off_t+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 $ac_includes_default
8315 typedef off_t ac__type_new_;
8316 int
8317 main ()
8318 {
8319 if ((ac__type_new_ *) 0)
8320   return 0;
8321 if (sizeof (ac__type_new_))
8322   return 0;
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8329 case "(($ac_try" in
8330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331   *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334   (eval "$ac_compile") 2>conftest.er1
8335   ac_status=$?
8336   grep -v '^ *+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } && {
8341          test -z "$ac_c_werror_flag" ||
8342          test ! -s conftest.err
8343        } && test -s conftest.$ac_objext; then
8344   ac_cv_type_off_t=yes
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349         ac_cv_type_off_t=no
8350 fi
8351
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 fi
8354 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8355 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8356 if test $ac_cv_type_off_t = yes; then
8357   :
8358 else
8359
8360 cat >>confdefs.h <<_ACEOF
8361 #define off_t long int
8362 _ACEOF
8363
8364 fi
8365
8366 { echo "$as_me:$LINENO: checking for size_t" >&5
8367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8368 if test "${ac_cv_type_size_t+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h.  */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h.  */
8377 $ac_includes_default
8378 typedef size_t ac__type_new_;
8379 int
8380 main ()
8381 {
8382 if ((ac__type_new_ *) 0)
8383   return 0;
8384 if (sizeof (ac__type_new_))
8385   return 0;
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (ac_try="$ac_compile"
8392 case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_compile") 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } && {
8404          test -z "$ac_c_werror_flag" ||
8405          test ! -s conftest.err
8406        } && test -s conftest.$ac_objext; then
8407   ac_cv_type_size_t=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412         ac_cv_type_size_t=no
8413 fi
8414
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 fi
8417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8419 if test $ac_cv_type_size_t = yes; then
8420   :
8421 else
8422
8423 cat >>confdefs.h <<_ACEOF
8424 #define size_t unsigned int
8425 _ACEOF
8426
8427 fi
8428
8429
8430   { echo "$as_me:$LINENO: checking for long long" >&5
8431 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8432 if test "${ac_cv_type_long_long+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441 long long ll = 1LL; int i = 63;
8442 int
8443 main ()
8444 {
8445 long long llmax = (long long) -1;
8446      return ll << i | ll >> i | llmax / ll | llmax % ll;
8447   ;
8448   return 0;
8449 }
8450 _ACEOF
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (ac_try="$ac_link"
8453 case "(($ac_try" in
8454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455   *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458   (eval "$ac_link") 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } && {
8465          test -z "$ac_c_werror_flag" ||
8466          test ! -s conftest.err
8467        } && test -s conftest$ac_exeext &&
8468        $as_test_x conftest$ac_exeext; then
8469   ac_cv_type_long_long=yes
8470 else
8471   echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8473
8474         ac_cv_type_long_long=no
8475 fi
8476
8477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8478       conftest$ac_exeext conftest.$ac_ext
8479 fi
8480 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8481 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8482   if test $ac_cv_type_long_long = yes; then
8483
8484 cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_LONG_LONG 1
8486 _ACEOF
8487
8488   fi
8489
8490
8491   { echo "$as_me:$LINENO: checking for long double" >&5
8492 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8493 if test "${gt_cv_c_long_double+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   if test "$GCC" = yes; then
8497        gt_cv_c_long_double=yes
8498      else
8499        cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8507          long double foo = 0.0;
8508          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8509          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8510
8511 int
8512 main ()
8513 {
8514
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526   (eval "$ac_compile") 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } && {
8533          test -z "$ac_c_werror_flag" ||
8534          test ! -s conftest.err
8535        } && test -s conftest.$ac_objext; then
8536   gt_cv_c_long_double=yes
8537 else
8538   echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541         gt_cv_c_long_double=no
8542 fi
8543
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545      fi
8546 fi
8547 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8548 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8549   if test $gt_cv_c_long_double = yes; then
8550
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_LONG_DOUBLE 1
8553 _ACEOF
8554
8555   fi
8556
8557
8558   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8559 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8560 if test "${gt_cv_c_wchar_t+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569 #include <stddef.h>
8570        wchar_t foo = (wchar_t)'\0';
8571 int
8572 main ()
8573 {
8574
8575   ;
8576   return 0;
8577 }
8578 _ACEOF
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8581 case "(($ac_try" in
8582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583   *) ac_try_echo=$ac_try;;
8584 esac
8585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586   (eval "$ac_compile") 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } && {
8593          test -z "$ac_c_werror_flag" ||
8594          test ! -s conftest.err
8595        } && test -s conftest.$ac_objext; then
8596   gt_cv_c_wchar_t=yes
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601         gt_cv_c_wchar_t=no
8602 fi
8603
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8607 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8608   if test $gt_cv_c_wchar_t = yes; then
8609
8610 cat >>confdefs.h <<\_ACEOF
8611 #define HAVE_WCHAR_T 1
8612 _ACEOF
8613
8614   fi
8615
8616
8617   { echo "$as_me:$LINENO: checking for wint_t" >&5
8618 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8619 if test "${gt_cv_c_wint_t+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 #include <wchar.h>
8629        wint_t foo = (wchar_t)'\0';
8630 int
8631 main ()
8632 {
8633
8634   ;
8635   return 0;
8636 }
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (ac_try="$ac_compile"
8640 case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645   (eval "$ac_compile") 2>conftest.er1
8646   ac_status=$?
8647   grep -v '^ *+' conftest.er1 >conftest.err
8648   rm -f conftest.er1
8649   cat conftest.err >&5
8650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651   (exit $ac_status); } && {
8652          test -z "$ac_c_werror_flag" ||
8653          test ! -s conftest.err
8654        } && test -s conftest.$ac_objext; then
8655   gt_cv_c_wint_t=yes
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660         gt_cv_c_wint_t=no
8661 fi
8662
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 fi
8665 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8666 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8667   if test $gt_cv_c_wint_t = yes; then
8668
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_WINT_T 1
8671 _ACEOF
8672
8673   fi
8674
8675
8676   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8677 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8678 if test "${gl_cv_header_inttypes_h+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681   cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687 #include <sys/types.h>
8688 #include <inttypes.h>
8689 int
8690 main ()
8691 {
8692 uintmax_t i = (uintmax_t) -1;
8693   ;
8694   return 0;
8695 }
8696 _ACEOF
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8699 case "(($ac_try" in
8700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701   *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704   (eval "$ac_compile") 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } && {
8711          test -z "$ac_c_werror_flag" ||
8712          test ! -s conftest.err
8713        } && test -s conftest.$ac_objext; then
8714   gl_cv_header_inttypes_h=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719         gl_cv_header_inttypes_h=no
8720 fi
8721
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8725 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8726   if test $gl_cv_header_inttypes_h = yes; then
8727
8728 cat >>confdefs.h <<_ACEOF
8729 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8730 _ACEOF
8731
8732   fi
8733
8734
8735   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8736 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8737 if test "${gl_cv_header_stdint_h+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740   cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h.  */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h.  */
8746 #include <sys/types.h>
8747 #include <stdint.h>
8748 int
8749 main ()
8750 {
8751 uintmax_t i = (uintmax_t) -1;
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest.$ac_objext
8757 if { (ac_try="$ac_compile"
8758 case "(($ac_try" in
8759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760   *) ac_try_echo=$ac_try;;
8761 esac
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763   (eval "$ac_compile") 2>conftest.er1
8764   ac_status=$?
8765   grep -v '^ *+' conftest.er1 >conftest.err
8766   rm -f conftest.er1
8767   cat conftest.err >&5
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } && {
8770          test -z "$ac_c_werror_flag" ||
8771          test ! -s conftest.err
8772        } && test -s conftest.$ac_objext; then
8773   gl_cv_header_stdint_h=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778         gl_cv_header_stdint_h=no
8779 fi
8780
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 fi
8783 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8784 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8785   if test $gl_cv_header_stdint_h = yes; then
8786
8787 cat >>confdefs.h <<_ACEOF
8788 #define HAVE_STDINT_H_WITH_UINTMAX 1
8789 _ACEOF
8790
8791   fi
8792
8793
8794
8795
8796   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8797 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8798 if test "${gt_cv_c_intmax_t+set}" = set; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807
8808 #include <stddef.h>
8809 #include <stdlib.h>
8810 #if HAVE_STDINT_H_WITH_UINTMAX
8811 #include <stdint.h>
8812 #endif
8813 #if HAVE_INTTYPES_H_WITH_UINTMAX
8814 #include <inttypes.h>
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 intmax_t x = -1;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8827 case "(($ac_try" in
8828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829   *) ac_try_echo=$ac_try;;
8830 esac
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832   (eval "$ac_compile") 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } && {
8839          test -z "$ac_c_werror_flag" ||
8840          test ! -s conftest.err
8841        } && test -s conftest.$ac_objext; then
8842   gt_cv_c_intmax_t=yes
8843 else
8844   echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847         gt_cv_c_intmax_t=no
8848 fi
8849
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 fi
8852 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8853 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8854   if test $gt_cv_c_intmax_t = yes; then
8855
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_INTMAX_T 1
8858 _ACEOF
8859
8860   fi
8861
8862
8863
8864   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8865 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8866 if test "${gt_cv_func_printf_posix+set}" = set; then
8867   echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869
8870       if test "$cross_compiling" = yes; then
8871
8872         cat >conftest.$ac_ext <<_ACEOF
8873 /* confdefs.h.  */
8874 _ACEOF
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h.  */
8878
8879 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8880   notposix
8881 #endif
8882
8883 _ACEOF
8884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8885   $EGREP "notposix" >/dev/null 2>&1; then
8886   gt_cv_func_printf_posix="guessing no"
8887 else
8888   gt_cv_func_printf_posix="guessing yes"
8889 fi
8890 rm -f conftest*
8891
8892
8893 else
8894   cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 #include <stdio.h>
8902 #include <string.h>
8903 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8904    dollar expansion (possibly an autoconf bug).  */
8905 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8906 static char buf[100];
8907 int main ()
8908 {
8909   sprintf (buf, format, 33, 55);
8910   return (strcmp (buf, "55 33") != 0);
8911 }
8912 _ACEOF
8913 rm -f conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8915 case "(($ac_try" in
8916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917   *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920   (eval "$ac_link") 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8924   { (case "(($ac_try" in
8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926   *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929   (eval "$ac_try") 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; }; then
8933   gt_cv_func_printf_posix=yes
8934 else
8935   echo "$as_me: program exited with status $ac_status" >&5
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ( exit $ac_status )
8940 gt_cv_func_printf_posix=no
8941 fi
8942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8943 fi
8944
8945
8946
8947 fi
8948 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8949 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8950   case $gt_cv_func_printf_posix in
8951     *yes)
8952
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_POSIX_PRINTF 1
8955 _ACEOF
8956
8957       ;;
8958   esac
8959
8960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8961 # for constant arguments.  Useless!
8962 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8963 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8964 if test "${ac_cv_working_alloca_h+set}" = set; then
8965   echo $ECHO_N "(cached) $ECHO_C" >&6
8966 else
8967   cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973 #include <alloca.h>
8974 int
8975 main ()
8976 {
8977 char *p = (char *) alloca (2 * sizeof (int));
8978                           if (p) return 0;
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8985 case "(($ac_try" in
8986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987   *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990   (eval "$ac_link") 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } && {
8997          test -z "$ac_c_werror_flag" ||
8998          test ! -s conftest.err
8999        } && test -s conftest$ac_exeext &&
9000        $as_test_x conftest$ac_exeext; then
9001   ac_cv_working_alloca_h=yes
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006         ac_cv_working_alloca_h=no
9007 fi
9008
9009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9010       conftest$ac_exeext conftest.$ac_ext
9011 fi
9012 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9013 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9014 if test $ac_cv_working_alloca_h = yes; then
9015
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_ALLOCA_H 1
9018 _ACEOF
9019
9020 fi
9021
9022 { echo "$as_me:$LINENO: checking for alloca" >&5
9023 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9024 if test "${ac_cv_func_alloca_works+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 #ifdef __GNUC__
9034 # define alloca __builtin_alloca
9035 #else
9036 # ifdef _MSC_VER
9037 #  include <malloc.h>
9038 #  define alloca _alloca
9039 # else
9040 #  ifdef HAVE_ALLOCA_H
9041 #   include <alloca.h>
9042 #  else
9043 #   ifdef _AIX
9044  #pragma alloca
9045 #   else
9046 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9047 char *alloca ();
9048 #    endif
9049 #   endif
9050 #  endif
9051 # endif
9052 #endif
9053
9054 int
9055 main ()
9056 {
9057 char *p = (char *) alloca (1);
9058                                     if (p) return 0;
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9065 case "(($ac_try" in
9066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067   *) ac_try_echo=$ac_try;;
9068 esac
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070   (eval "$ac_link") 2>conftest.er1
9071   ac_status=$?
9072   grep -v '^ *+' conftest.er1 >conftest.err
9073   rm -f conftest.er1
9074   cat conftest.err >&5
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } && {
9077          test -z "$ac_c_werror_flag" ||
9078          test ! -s conftest.err
9079        } && test -s conftest$ac_exeext &&
9080        $as_test_x conftest$ac_exeext; then
9081   ac_cv_func_alloca_works=yes
9082 else
9083   echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086         ac_cv_func_alloca_works=no
9087 fi
9088
9089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090       conftest$ac_exeext conftest.$ac_ext
9091 fi
9092 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9093 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9094
9095 if test $ac_cv_func_alloca_works = yes; then
9096
9097 cat >>confdefs.h <<\_ACEOF
9098 #define HAVE_ALLOCA 1
9099 _ACEOF
9100
9101 else
9102   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9103 # that cause trouble.  Some versions do not even contain alloca or
9104 # contain a buggy version.  If you still want to use their alloca,
9105 # use ar to extract alloca.o from them instead of compiling alloca.c.
9106
9107 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9108
9109 cat >>confdefs.h <<\_ACEOF
9110 #define C_ALLOCA 1
9111 _ACEOF
9112
9113
9114 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9115 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9116 if test "${ac_cv_os_cray+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h.  */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h.  */
9125 #if defined CRAY && ! defined CRAY2
9126 webecray
9127 #else
9128 wenotbecray
9129 #endif
9130
9131 _ACEOF
9132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9133   $EGREP "webecray" >/dev/null 2>&1; then
9134   ac_cv_os_cray=yes
9135 else
9136   ac_cv_os_cray=no
9137 fi
9138 rm -f conftest*
9139
9140 fi
9141 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9142 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9143 if test $ac_cv_os_cray = yes; then
9144   for ac_func in _getb67 GETB67 getb67; do
9145     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9149   echo $ECHO_N "(cached) $ECHO_C" >&6
9150 else
9151   cat >conftest.$ac_ext <<_ACEOF
9152 /* confdefs.h.  */
9153 _ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h.  */
9157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9159 #define $ac_func innocuous_$ac_func
9160
9161 /* System header to define __stub macros and hopefully few prototypes,
9162     which can conflict with char $ac_func (); below.
9163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9164     <limits.h> exists even on freestanding compilers.  */
9165
9166 #ifdef __STDC__
9167 # include <limits.h>
9168 #else
9169 # include <assert.h>
9170 #endif
9171
9172 #undef $ac_func
9173
9174 /* Override any GCC internal prototype to avoid an error.
9175    Use char because int might match the return type of a GCC
9176    builtin and then its argument prototype would still apply.  */
9177 #ifdef __cplusplus
9178 extern "C"
9179 #endif
9180 char $ac_func ();
9181 /* The GNU C library defines this for functions which it implements
9182     to always fail with ENOSYS.  Some functions are actually named
9183     something starting with __ and the normal name is an alias.  */
9184 #if defined __stub_$ac_func || defined __stub___$ac_func
9185 choke me
9186 #endif
9187
9188 int
9189 main ()
9190 {
9191 return $ac_func ();
9192   ;
9193   return 0;
9194 }
9195 _ACEOF
9196 rm -f conftest.$ac_objext conftest$ac_exeext
9197 if { (ac_try="$ac_link"
9198 case "(($ac_try" in
9199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9200   *) ac_try_echo=$ac_try;;
9201 esac
9202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9203   (eval "$ac_link") 2>conftest.er1
9204   ac_status=$?
9205   grep -v '^ *+' conftest.er1 >conftest.err
9206   rm -f conftest.er1
9207   cat conftest.err >&5
9208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209   (exit $ac_status); } && {
9210          test -z "$ac_c_werror_flag" ||
9211          test ! -s conftest.err
9212        } && test -s conftest$ac_exeext &&
9213        $as_test_x conftest$ac_exeext; then
9214   eval "$as_ac_var=yes"
9215 else
9216   echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219         eval "$as_ac_var=no"
9220 fi
9221
9222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9223       conftest$ac_exeext conftest.$ac_ext
9224 fi
9225 ac_res=`eval echo '${'$as_ac_var'}'`
9226                { echo "$as_me:$LINENO: result: $ac_res" >&5
9227 echo "${ECHO_T}$ac_res" >&6; }
9228 if test `eval echo '${'$as_ac_var'}'` = yes; then
9229
9230 cat >>confdefs.h <<_ACEOF
9231 #define CRAY_STACKSEG_END $ac_func
9232 _ACEOF
9233
9234     break
9235 fi
9236
9237   done
9238 fi
9239
9240 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9241 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9242 if test "${ac_cv_c_stack_direction+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245   if test "$cross_compiling" = yes; then
9246   ac_cv_c_stack_direction=0
9247 else
9248   cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h.  */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h.  */
9254 $ac_includes_default
9255 int
9256 find_stack_direction ()
9257 {
9258   static char *addr = 0;
9259   auto char dummy;
9260   if (addr == 0)
9261     {
9262       addr = &dummy;
9263       return find_stack_direction ();
9264     }
9265   else
9266     return (&dummy > addr) ? 1 : -1;
9267 }
9268
9269 int
9270 main ()
9271 {
9272   return find_stack_direction () < 0;
9273 }
9274 _ACEOF
9275 rm -f conftest$ac_exeext
9276 if { (ac_try="$ac_link"
9277 case "(($ac_try" in
9278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279   *) ac_try_echo=$ac_try;;
9280 esac
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282   (eval "$ac_link") 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9286   { (case "(($ac_try" in
9287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288   *) ac_try_echo=$ac_try;;
9289 esac
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291   (eval "$ac_try") 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; }; then
9295   ac_cv_c_stack_direction=1
9296 else
9297   echo "$as_me: program exited with status $ac_status" >&5
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9300
9301 ( exit $ac_status )
9302 ac_cv_c_stack_direction=-1
9303 fi
9304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9305 fi
9306
9307
9308 fi
9309 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9310 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9311
9312 cat >>confdefs.h <<_ACEOF
9313 #define STACK_DIRECTION $ac_cv_c_stack_direction
9314 _ACEOF
9315
9316
9317 fi
9318
9319
9320
9321 for ac_header in stdlib.h unistd.h
9322 do
9323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9325   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328   echo $ECHO_N "(cached) $ECHO_C" >&6
9329 fi
9330 ac_res=`eval echo '${'$as_ac_Header'}'`
9331                { echo "$as_me:$LINENO: result: $ac_res" >&5
9332 echo "${ECHO_T}$ac_res" >&6; }
9333 else
9334   # Is the header compilable?
9335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343 $ac_includes_default
9344 #include <$ac_header>
9345 _ACEOF
9346 rm -f conftest.$ac_objext
9347 if { (ac_try="$ac_compile"
9348 case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353   (eval "$ac_compile") 2>conftest.er1
9354   ac_status=$?
9355   grep -v '^ *+' conftest.er1 >conftest.err
9356   rm -f conftest.er1
9357   cat conftest.err >&5
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } && {
9360          test -z "$ac_c_werror_flag" ||
9361          test ! -s conftest.err
9362        } && test -s conftest.$ac_objext; then
9363   ac_header_compiler=yes
9364 else
9365   echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368         ac_header_compiler=no
9369 fi
9370
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9373 echo "${ECHO_T}$ac_header_compiler" >&6; }
9374
9375 # Is the header present?
9376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384 #include <$ac_header>
9385 _ACEOF
9386 if { (ac_try="$ac_cpp conftest.$ac_ext"
9387 case "(($ac_try" in
9388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389   *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393   ac_status=$?
9394   grep -v '^ *+' conftest.er1 >conftest.err
9395   rm -f conftest.er1
9396   cat conftest.err >&5
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); } >/dev/null && {
9399          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9400          test ! -s conftest.err
9401        }; then
9402   ac_header_preproc=yes
9403 else
9404   echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407   ac_header_preproc=no
9408 fi
9409
9410 rm -f conftest.err conftest.$ac_ext
9411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412 echo "${ECHO_T}$ac_header_preproc" >&6; }
9413
9414 # So?  What about this header?
9415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416   yes:no: )
9417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9421     ac_header_preproc=yes
9422     ;;
9423   no:yes:* )
9424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9436
9437     ;;
9438 esac
9439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   eval "$as_ac_Header=\$ac_header_preproc"
9445 fi
9446 ac_res=`eval echo '${'$as_ac_Header'}'`
9447                { echo "$as_me:$LINENO: result: $ac_res" >&5
9448 echo "${ECHO_T}$ac_res" >&6; }
9449
9450 fi
9451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9452   cat >>confdefs.h <<_ACEOF
9453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9454 _ACEOF
9455
9456 fi
9457
9458 done
9459
9460
9461 for ac_func in getpagesize
9462 do
9463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9467   echo $ECHO_N "(cached) $ECHO_C" >&6
9468 else
9469   cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h.  */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h.  */
9475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9477 #define $ac_func innocuous_$ac_func
9478
9479 /* System header to define __stub macros and hopefully few prototypes,
9480     which can conflict with char $ac_func (); below.
9481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9482     <limits.h> exists even on freestanding compilers.  */
9483
9484 #ifdef __STDC__
9485 # include <limits.h>
9486 #else
9487 # include <assert.h>
9488 #endif
9489
9490 #undef $ac_func
9491
9492 /* Override any GCC internal prototype to avoid an error.
9493    Use char because int might match the return type of a GCC
9494    builtin and then its argument prototype would still apply.  */
9495 #ifdef __cplusplus
9496 extern "C"
9497 #endif
9498 char $ac_func ();
9499 /* The GNU C library defines this for functions which it implements
9500     to always fail with ENOSYS.  Some functions are actually named
9501     something starting with __ and the normal name is an alias.  */
9502 #if defined __stub_$ac_func || defined __stub___$ac_func
9503 choke me
9504 #endif
9505
9506 int
9507 main ()
9508 {
9509 return $ac_func ();
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9516 case "(($ac_try" in
9517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518   *) ac_try_echo=$ac_try;;
9519 esac
9520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9521   (eval "$ac_link") 2>conftest.er1
9522   ac_status=$?
9523   grep -v '^ *+' conftest.er1 >conftest.err
9524   rm -f conftest.er1
9525   cat conftest.err >&5
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } && {
9528          test -z "$ac_c_werror_flag" ||
9529          test ! -s conftest.err
9530        } && test -s conftest$ac_exeext &&
9531        $as_test_x conftest$ac_exeext; then
9532   eval "$as_ac_var=yes"
9533 else
9534   echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537         eval "$as_ac_var=no"
9538 fi
9539
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541       conftest$ac_exeext conftest.$ac_ext
9542 fi
9543 ac_res=`eval echo '${'$as_ac_var'}'`
9544                { echo "$as_me:$LINENO: result: $ac_res" >&5
9545 echo "${ECHO_T}$ac_res" >&6; }
9546 if test `eval echo '${'$as_ac_var'}'` = yes; then
9547   cat >>confdefs.h <<_ACEOF
9548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9549 _ACEOF
9550
9551 fi
9552 done
9553
9554 { echo "$as_me:$LINENO: checking for working mmap" >&5
9555 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9556 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9557   echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559   if test "$cross_compiling" = yes; then
9560   ac_cv_func_mmap_fixed_mapped=no
9561 else
9562   cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h.  */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h.  */
9568 $ac_includes_default
9569 /* malloc might have been renamed as rpl_malloc. */
9570 #undef malloc
9571
9572 /* Thanks to Mike Haertel and Jim Avera for this test.
9573    Here is a matrix of mmap possibilities:
9574         mmap private not fixed
9575         mmap private fixed at somewhere currently unmapped
9576         mmap private fixed at somewhere already mapped
9577         mmap shared not fixed
9578         mmap shared fixed at somewhere currently unmapped
9579         mmap shared fixed at somewhere already mapped
9580    For private mappings, we should verify that changes cannot be read()
9581    back from the file, nor mmap's back from the file at a different
9582    address.  (There have been systems where private was not correctly
9583    implemented like the infamous i386 svr4.0, and systems where the
9584    VM page cache was not coherent with the file system buffer cache
9585    like early versions of FreeBSD and possibly contemporary NetBSD.)
9586    For shared mappings, we should conversely verify that changes get
9587    propagated back to all the places they're supposed to be.
9588
9589    Grep wants private fixed already mapped.
9590    The main things grep needs to know about mmap are:
9591    * does it exist and is it safe to write into the mmap'd area
9592    * how to use it (BSD variants)  */
9593
9594 #include <fcntl.h>
9595 #include <sys/mman.h>
9596
9597 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9598 char *malloc ();
9599 #endif
9600
9601 /* This mess was copied from the GNU getpagesize.h.  */
9602 #ifndef HAVE_GETPAGESIZE
9603 /* Assume that all systems that can run configure have sys/param.h.  */
9604 # ifndef HAVE_SYS_PARAM_H
9605 #  define HAVE_SYS_PARAM_H 1
9606 # endif
9607
9608 # ifdef _SC_PAGESIZE
9609 #  define getpagesize() sysconf(_SC_PAGESIZE)
9610 # else /* no _SC_PAGESIZE */
9611 #  ifdef HAVE_SYS_PARAM_H
9612 #   include <sys/param.h>
9613 #   ifdef EXEC_PAGESIZE
9614 #    define getpagesize() EXEC_PAGESIZE
9615 #   else /* no EXEC_PAGESIZE */
9616 #    ifdef NBPG
9617 #     define getpagesize() NBPG * CLSIZE
9618 #     ifndef CLSIZE
9619 #      define CLSIZE 1
9620 #     endif /* no CLSIZE */
9621 #    else /* no NBPG */
9622 #     ifdef NBPC
9623 #      define getpagesize() NBPC
9624 #     else /* no NBPC */
9625 #      ifdef PAGESIZE
9626 #       define getpagesize() PAGESIZE
9627 #      endif /* PAGESIZE */
9628 #     endif /* no NBPC */
9629 #    endif /* no NBPG */
9630 #   endif /* no EXEC_PAGESIZE */
9631 #  else /* no HAVE_SYS_PARAM_H */
9632 #   define getpagesize() 8192   /* punt totally */
9633 #  endif /* no HAVE_SYS_PARAM_H */
9634 # endif /* no _SC_PAGESIZE */
9635
9636 #endif /* no HAVE_GETPAGESIZE */
9637
9638 int
9639 main ()
9640 {
9641   char *data, *data2, *data3;
9642   int i, pagesize;
9643   int fd;
9644
9645   pagesize = getpagesize ();
9646
9647   /* First, make a file with some known garbage in it. */
9648   data = (char *) malloc (pagesize);
9649   if (!data)
9650     return 1;
9651   for (i = 0; i < pagesize; ++i)
9652     *(data + i) = rand ();
9653   umask (0);
9654   fd = creat ("conftest.mmap", 0600);
9655   if (fd < 0)
9656     return 1;
9657   if (write (fd, data, pagesize) != pagesize)
9658     return 1;
9659   close (fd);
9660
9661   /* Next, try to mmap the file at a fixed address which already has
9662      something else allocated at it.  If we can, also make sure that
9663      we see the same garbage.  */
9664   fd = open ("conftest.mmap", O_RDWR);
9665   if (fd < 0)
9666     return 1;
9667   data2 = (char *) malloc (2 * pagesize);
9668   if (!data2)
9669     return 1;
9670   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9671   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9672                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9673     return 1;
9674   for (i = 0; i < pagesize; ++i)
9675     if (*(data + i) != *(data2 + i))
9676       return 1;
9677
9678   /* Finally, make sure that changes to the mapped area do not
9679      percolate back to the file as seen by read().  (This is a bug on
9680      some variants of i386 svr4.0.)  */
9681   for (i = 0; i < pagesize; ++i)
9682     *(data2 + i) = *(data2 + i) + 1;
9683   data3 = (char *) malloc (pagesize);
9684   if (!data3)
9685     return 1;
9686   if (read (fd, data3, pagesize) != pagesize)
9687     return 1;
9688   for (i = 0; i < pagesize; ++i)
9689     if (*(data + i) != *(data3 + i))
9690       return 1;
9691   close (fd);
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9697 case "(($ac_try" in
9698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699   *) ac_try_echo=$ac_try;;
9700 esac
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702   (eval "$ac_link") 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9706   { (case "(($ac_try" in
9707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708   *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711   (eval "$ac_try") 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   ac_cv_func_mmap_fixed_mapped=yes
9716 else
9717   echo "$as_me: program exited with status $ac_status" >&5
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ( exit $ac_status )
9722 ac_cv_func_mmap_fixed_mapped=no
9723 fi
9724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9725 fi
9726
9727
9728 fi
9729 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9730 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9731 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9732
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_MMAP 1
9735 _ACEOF
9736
9737 fi
9738 rm -f conftest.mmap
9739
9740
9741     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9742 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9743 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746   cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752
9753 #include <features.h>
9754 #ifdef __GNU_LIBRARY__
9755  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9756   Lucky GNU user
9757  #endif
9758 #endif
9759
9760 _ACEOF
9761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9762   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9763   ac_cv_gnu_library_2_1=yes
9764 else
9765   ac_cv_gnu_library_2_1=no
9766 fi
9767 rm -f conftest*
9768
9769
9770
9771 fi
9772 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9773 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9774
9775     GLIBC21="$ac_cv_gnu_library_2_1"
9776
9777
9778
9779
9780   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9781 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9782 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785
9786       if test "$cross_compiling" = yes; then
9787
9788           # Guess based on the CPU.
9789           case "$host_cpu" in
9790             alpha* | i3456786 | m68k | s390*)
9791               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9792             *)
9793               gt_cv_int_divbyzero_sigfpe="guessing no";;
9794           esac
9795
9796 else
9797   cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803
9804 #include <stdlib.h>
9805 #include <signal.h>
9806
9807 static void
9808 #ifdef __cplusplus
9809 sigfpe_handler (int sig)
9810 #else
9811 sigfpe_handler (sig) int sig;
9812 #endif
9813 {
9814   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9815   exit (sig != SIGFPE);
9816 }
9817
9818 int x = 1;
9819 int y = 0;
9820 int z;
9821 int nan;
9822
9823 int main ()
9824 {
9825   signal (SIGFPE, sigfpe_handler);
9826 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9827 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9828   signal (SIGTRAP, sigfpe_handler);
9829 #endif
9830 /* Linux/SPARC yields signal SIGILL.  */
9831 #if defined (__sparc__) && defined (__linux__)
9832   signal (SIGILL, sigfpe_handler);
9833 #endif
9834
9835   z = x / y;
9836   nan = y / y;
9837   exit (1);
9838 }
9839
9840 _ACEOF
9841 rm -f conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9843 case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_link") 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9852   { (case "(($ac_try" in
9853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9854   *) ac_try_echo=$ac_try;;
9855 esac
9856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9857   (eval "$ac_try") 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   gt_cv_int_divbyzero_sigfpe=yes
9862 else
9863   echo "$as_me: program exited with status $ac_status" >&5
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867 ( exit $ac_status )
9868 gt_cv_int_divbyzero_sigfpe=no
9869 fi
9870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9871 fi
9872
9873
9874
9875 fi
9876 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9877 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9878   case "$gt_cv_int_divbyzero_sigfpe" in
9879     *yes) value=1;;
9880     *) value=0;;
9881   esac
9882
9883 cat >>confdefs.h <<_ACEOF
9884 #define INTDIV0_RAISES_SIGFPE $value
9885 _ACEOF
9886
9887
9888
9889   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9890 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9891 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h.  */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h.  */
9900 unsigned long long ull = 1ULL; int i = 63;
9901 int
9902 main ()
9903 {
9904 unsigned long long ullmax = (unsigned long long) -1;
9905      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (ac_try="$ac_link"
9912 case "(($ac_try" in
9913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914   *) ac_try_echo=$ac_try;;
9915 esac
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917   (eval "$ac_link") 2>conftest.er1
9918   ac_status=$?
9919   grep -v '^ *+' conftest.er1 >conftest.err
9920   rm -f conftest.er1
9921   cat conftest.err >&5
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); } && {
9924          test -z "$ac_c_werror_flag" ||
9925          test ! -s conftest.err
9926        } && test -s conftest$ac_exeext &&
9927        $as_test_x conftest$ac_exeext; then
9928   ac_cv_type_unsigned_long_long=yes
9929 else
9930   echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9932
9933         ac_cv_type_unsigned_long_long=no
9934 fi
9935
9936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937       conftest$ac_exeext conftest.$ac_ext
9938 fi
9939 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9940 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9941   if test $ac_cv_type_unsigned_long_long = yes; then
9942
9943 cat >>confdefs.h <<\_ACEOF
9944 #define HAVE_UNSIGNED_LONG_LONG 1
9945 _ACEOF
9946
9947   fi
9948
9949
9950
9951
9952   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9953
9954     test $ac_cv_type_unsigned_long_long = yes \
9955       && ac_type='unsigned long long' \
9956       || ac_type='unsigned long'
9957
9958 cat >>confdefs.h <<_ACEOF
9959 #define uintmax_t $ac_type
9960 _ACEOF
9961
9962   else
9963
9964 cat >>confdefs.h <<\_ACEOF
9965 #define HAVE_UINTMAX_T 1
9966 _ACEOF
9967
9968   fi
9969
9970
9971   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9972 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9973 if test "${gt_cv_header_inttypes_h+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976
9977     cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983 #include <sys/types.h>
9984 #include <inttypes.h>
9985 int
9986 main ()
9987 {
9988
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (ac_try="$ac_compile"
9995 case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_compile") 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } && {
10007          test -z "$ac_c_werror_flag" ||
10008          test ! -s conftest.err
10009        } && test -s conftest.$ac_objext; then
10010   gt_cv_header_inttypes_h=yes
10011 else
10012   echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10014
10015         gt_cv_header_inttypes_h=no
10016 fi
10017
10018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019
10020 fi
10021 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10022 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10023   if test $gt_cv_header_inttypes_h = yes; then
10024
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_INTTYPES_H 1
10027 _ACEOF
10028
10029   fi
10030
10031
10032
10033   if test $gt_cv_header_inttypes_h = yes; then
10034     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10035 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10036 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039
10040         cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046 #include <inttypes.h>
10047 #ifdef PRId32
10048 char *p = PRId32;
10049 #endif
10050
10051 int
10052 main ()
10053 {
10054
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (ac_try="$ac_compile"
10061 case "(($ac_try" in
10062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063   *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066   (eval "$ac_compile") 2>conftest.er1
10067   ac_status=$?
10068   grep -v '^ *+' conftest.er1 >conftest.err
10069   rm -f conftest.er1
10070   cat conftest.err >&5
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); } && {
10073          test -z "$ac_c_werror_flag" ||
10074          test ! -s conftest.err
10075        } && test -s conftest.$ac_objext; then
10076   gt_cv_inttypes_pri_broken=no
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081         gt_cv_inttypes_pri_broken=yes
10082 fi
10083
10084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10085
10086 fi
10087 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10088 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10089   fi
10090   if test "$gt_cv_inttypes_pri_broken" = yes; then
10091
10092 cat >>confdefs.h <<_ACEOF
10093 #define PRI_MACROS_BROKEN 1
10094 _ACEOF
10095
10096   fi
10097
10098
10099
10100 for ac_header in stdint.h
10101 do
10102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107   echo $ECHO_N "(cached) $ECHO_C" >&6
10108 fi
10109 ac_res=`eval echo '${'$as_ac_Header'}'`
10110                { echo "$as_me:$LINENO: result: $ac_res" >&5
10111 echo "${ECHO_T}$ac_res" >&6; }
10112 else
10113   # Is the header compilable?
10114 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122 $ac_includes_default
10123 #include <$ac_header>
10124 _ACEOF
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129   *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132   (eval "$ac_compile") 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } && {
10139          test -z "$ac_c_werror_flag" ||
10140          test ! -s conftest.err
10141        } && test -s conftest.$ac_objext; then
10142   ac_header_compiler=yes
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147         ac_header_compiler=no
10148 fi
10149
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10152 echo "${ECHO_T}$ac_header_compiler" >&6; }
10153
10154 # Is the header present?
10155 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163 #include <$ac_header>
10164 _ACEOF
10165 if { (ac_try="$ac_cpp conftest.$ac_ext"
10166 case "(($ac_try" in
10167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168   *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } >/dev/null && {
10178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10179          test ! -s conftest.err
10180        }; then
10181   ac_header_preproc=yes
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186   ac_header_preproc=no
10187 fi
10188
10189 rm -f conftest.err conftest.$ac_ext
10190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10191 echo "${ECHO_T}$ac_header_preproc" >&6; }
10192
10193 # So?  What about this header?
10194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10195   yes:no: )
10196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10200     ac_header_preproc=yes
10201     ;;
10202   no:yes:* )
10203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10206 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10207     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10209     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10210 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10213     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10215
10216     ;;
10217 esac
10218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   eval "$as_ac_Header=\$ac_header_preproc"
10224 fi
10225 ac_res=`eval echo '${'$as_ac_Header'}'`
10226                { echo "$as_me:$LINENO: result: $ac_res" >&5
10227 echo "${ECHO_T}$ac_res" >&6; }
10228
10229 fi
10230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10231   cat >>confdefs.h <<_ACEOF
10232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10233 _ACEOF
10234
10235 fi
10236
10237 done
10238
10239     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10240 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10241   result=
10242   cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 #include <limits.h>
10250 #if HAVE_STDINT_H
10251 #include <stdint.h>
10252 #endif
10253 #ifdef SIZE_MAX
10254 Found it
10255 #endif
10256
10257 _ACEOF
10258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10259   $EGREP "Found it" >/dev/null 2>&1; then
10260   result=yes
10261 fi
10262 rm -f conftest*
10263
10264   if test -z "$result"; then
10265                     if test "$cross_compiling" = yes; then
10266   # Depending upon the size, compute the lo and hi bounds.
10267 cat >conftest.$ac_ext <<_ACEOF
10268 /* confdefs.h.  */
10269 _ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h.  */
10273 #include <stddef.h>
10274 int
10275 main ()
10276 {
10277 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10278 test_array [0] = 0
10279
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (ac_try="$ac_compile"
10286 case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_compile") 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } && {
10298          test -z "$ac_c_werror_flag" ||
10299          test ! -s conftest.err
10300        } && test -s conftest.$ac_objext; then
10301   ac_lo=0 ac_mid=0
10302   while :; do
10303     cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309 #include <stddef.h>
10310 int
10311 main ()
10312 {
10313 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10314 test_array [0] = 0
10315
10316   ;
10317   return 0;
10318 }
10319 _ACEOF
10320 rm -f conftest.$ac_objext
10321 if { (ac_try="$ac_compile"
10322 case "(($ac_try" in
10323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324   *) ac_try_echo=$ac_try;;
10325 esac
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327   (eval "$ac_compile") 2>conftest.er1
10328   ac_status=$?
10329   grep -v '^ *+' conftest.er1 >conftest.err
10330   rm -f conftest.er1
10331   cat conftest.err >&5
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); } && {
10334          test -z "$ac_c_werror_flag" ||
10335          test ! -s conftest.err
10336        } && test -s conftest.$ac_objext; then
10337   ac_hi=$ac_mid; break
10338 else
10339   echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342         ac_lo=`expr $ac_mid + 1`
10343                         if test $ac_lo -le $ac_mid; then
10344                           ac_lo= ac_hi=
10345                           break
10346                         fi
10347                         ac_mid=`expr 2 '*' $ac_mid + 1`
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351   done
10352 else
10353   echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356         cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h.  */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h.  */
10362 #include <stddef.h>
10363 int
10364 main ()
10365 {
10366 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10367 test_array [0] = 0
10368
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (ac_try="$ac_compile"
10375 case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_compile") 2>conftest.er1
10381   ac_status=$?
10382   grep -v '^ *+' conftest.er1 >conftest.err
10383   rm -f conftest.er1
10384   cat conftest.err >&5
10385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386   (exit $ac_status); } && {
10387          test -z "$ac_c_werror_flag" ||
10388          test ! -s conftest.err
10389        } && test -s conftest.$ac_objext; then
10390   ac_hi=-1 ac_mid=-1
10391   while :; do
10392     cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 #include <stddef.h>
10399 int
10400 main ()
10401 {
10402 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10403 test_array [0] = 0
10404
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 rm -f conftest.$ac_objext
10410 if { (ac_try="$ac_compile"
10411 case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416   (eval "$ac_compile") 2>conftest.er1
10417   ac_status=$?
10418   grep -v '^ *+' conftest.er1 >conftest.err
10419   rm -f conftest.er1
10420   cat conftest.err >&5
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } && {
10423          test -z "$ac_c_werror_flag" ||
10424          test ! -s conftest.err
10425        } && test -s conftest.$ac_objext; then
10426   ac_lo=$ac_mid; break
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431         ac_hi=`expr '(' $ac_mid ')' - 1`
10432                         if test $ac_mid -le $ac_hi; then
10433                           ac_lo= ac_hi=
10434                           break
10435                         fi
10436                         ac_mid=`expr 2 '*' $ac_mid`
10437 fi
10438
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440   done
10441 else
10442   echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445         ac_lo= ac_hi=
10446 fi
10447
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 fi
10450
10451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452 # Binary search between lo and hi bounds.
10453 while test "x$ac_lo" != "x$ac_hi"; do
10454   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10455   cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h.  */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h.  */
10461 #include <stddef.h>
10462 int
10463 main ()
10464 {
10465 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10466 test_array [0] = 0
10467
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext
10473 if { (ac_try="$ac_compile"
10474 case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_compile") 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } && {
10486          test -z "$ac_c_werror_flag" ||
10487          test ! -s conftest.err
10488        } && test -s conftest.$ac_objext; then
10489   ac_hi=$ac_mid
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494         ac_lo=`expr '(' $ac_mid ')' + 1`
10495 fi
10496
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 done
10499 case $ac_lo in
10500 ?*) res_hi=$ac_lo;;
10501 '') result=? ;;
10502 esac
10503 else
10504   cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510 #include <stddef.h>
10511 static long int longval () { return ~(size_t)0 / 10; }
10512 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10513 #include <stdio.h>
10514 #include <stdlib.h>
10515 int
10516 main ()
10517 {
10518
10519   FILE *f = fopen ("conftest.val", "w");
10520   if (! f)
10521     return 1;
10522   if ((~(size_t)0 / 10) < 0)
10523     {
10524       long int i = longval ();
10525       if (i != (~(size_t)0 / 10))
10526         return 1;
10527       fprintf (f, "%ld\n", i);
10528     }
10529   else
10530     {
10531       unsigned long int i = ulongval ();
10532       if (i != (~(size_t)0 / 10))
10533         return 1;
10534       fprintf (f, "%lu\n", i);
10535     }
10536   return ferror (f) || fclose (f) != 0;
10537
10538   ;
10539   return 0;
10540 }
10541 _ACEOF
10542 rm -f conftest$ac_exeext
10543 if { (ac_try="$ac_link"
10544 case "(($ac_try" in
10545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546   *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549   (eval "$ac_link") 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10553   { (case "(($ac_try" in
10554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555   *) ac_try_echo=$ac_try;;
10556 esac
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558   (eval "$ac_try") 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; }; then
10562   res_hi=`cat conftest.val`
10563 else
10564   echo "$as_me: program exited with status $ac_status" >&5
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ( exit $ac_status )
10569 result=?
10570 fi
10571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10572 fi
10573 rm -f conftest.val
10574
10575     if test "$cross_compiling" = yes; then
10576   # Depending upon the size, compute the lo and hi bounds.
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583 #include <stddef.h>
10584 int
10585 main ()
10586 {
10587 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10588 test_array [0] = 0
10589
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext
10595 if { (ac_try="$ac_compile"
10596 case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_compile") 2>conftest.er1
10602   ac_status=$?
10603   grep -v '^ *+' conftest.er1 >conftest.err
10604   rm -f conftest.er1
10605   cat conftest.err >&5
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } && {
10608          test -z "$ac_c_werror_flag" ||
10609          test ! -s conftest.err
10610        } && test -s conftest.$ac_objext; then
10611   ac_lo=0 ac_mid=0
10612   while :; do
10613     cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 #include <stddef.h>
10620 int
10621 main ()
10622 {
10623 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10624 test_array [0] = 0
10625
10626   ;
10627   return 0;
10628 }
10629 _ACEOF
10630 rm -f conftest.$ac_objext
10631 if { (ac_try="$ac_compile"
10632 case "(($ac_try" in
10633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634   *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637   (eval "$ac_compile") 2>conftest.er1
10638   ac_status=$?
10639   grep -v '^ *+' conftest.er1 >conftest.err
10640   rm -f conftest.er1
10641   cat conftest.err >&5
10642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643   (exit $ac_status); } && {
10644          test -z "$ac_c_werror_flag" ||
10645          test ! -s conftest.err
10646        } && test -s conftest.$ac_objext; then
10647   ac_hi=$ac_mid; break
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652         ac_lo=`expr $ac_mid + 1`
10653                         if test $ac_lo -le $ac_mid; then
10654                           ac_lo= ac_hi=
10655                           break
10656                         fi
10657                         ac_mid=`expr 2 '*' $ac_mid + 1`
10658 fi
10659
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661   done
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666         cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h.  */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h.  */
10672 #include <stddef.h>
10673 int
10674 main ()
10675 {
10676 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10677 test_array [0] = 0
10678
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687   *) ac_try_echo=$ac_try;;
10688 esac
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690   (eval "$ac_compile") 2>conftest.er1
10691   ac_status=$?
10692   grep -v '^ *+' conftest.er1 >conftest.err
10693   rm -f conftest.er1
10694   cat conftest.err >&5
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } && {
10697          test -z "$ac_c_werror_flag" ||
10698          test ! -s conftest.err
10699        } && test -s conftest.$ac_objext; then
10700   ac_hi=-1 ac_mid=-1
10701   while :; do
10702     cat >conftest.$ac_ext <<_ACEOF
10703 /* confdefs.h.  */
10704 _ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h.  */
10708 #include <stddef.h>
10709 int
10710 main ()
10711 {
10712 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10713 test_array [0] = 0
10714
10715   ;
10716   return 0;
10717 }
10718 _ACEOF
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723   *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726   (eval "$ac_compile") 2>conftest.er1
10727   ac_status=$?
10728   grep -v '^ *+' conftest.er1 >conftest.err
10729   rm -f conftest.er1
10730   cat conftest.err >&5
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); } && {
10733          test -z "$ac_c_werror_flag" ||
10734          test ! -s conftest.err
10735        } && test -s conftest.$ac_objext; then
10736   ac_lo=$ac_mid; break
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741         ac_hi=`expr '(' $ac_mid ')' - 1`
10742                         if test $ac_mid -le $ac_hi; then
10743                           ac_lo= ac_hi=
10744                           break
10745                         fi
10746                         ac_mid=`expr 2 '*' $ac_mid`
10747 fi
10748
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750   done
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755         ac_lo= ac_hi=
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 fi
10760
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 # Binary search between lo and hi bounds.
10763 while test "x$ac_lo" != "x$ac_hi"; do
10764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10765   cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 #include <stddef.h>
10772 int
10773 main ()
10774 {
10775 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10776 test_array [0] = 0
10777
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext
10783 if { (ac_try="$ac_compile"
10784 case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_compile") 2>conftest.er1
10790   ac_status=$?
10791   grep -v '^ *+' conftest.er1 >conftest.err
10792   rm -f conftest.er1
10793   cat conftest.err >&5
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } && {
10796          test -z "$ac_c_werror_flag" ||
10797          test ! -s conftest.err
10798        } && test -s conftest.$ac_objext; then
10799   ac_hi=$ac_mid
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804         ac_lo=`expr '(' $ac_mid ')' + 1`
10805 fi
10806
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 done
10809 case $ac_lo in
10810 ?*) res_lo=$ac_lo;;
10811 '') result=? ;;
10812 esac
10813 else
10814   cat >conftest.$ac_ext <<_ACEOF
10815 /* confdefs.h.  */
10816 _ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h.  */
10820 #include <stddef.h>
10821 static long int longval () { return ~(size_t)0 % 10; }
10822 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10823 #include <stdio.h>
10824 #include <stdlib.h>
10825 int
10826 main ()
10827 {
10828
10829   FILE *f = fopen ("conftest.val", "w");
10830   if (! f)
10831     return 1;
10832   if ((~(size_t)0 % 10) < 0)
10833     {
10834       long int i = longval ();
10835       if (i != (~(size_t)0 % 10))
10836         return 1;
10837       fprintf (f, "%ld\n", i);
10838     }
10839   else
10840     {
10841       unsigned long int i = ulongval ();
10842       if (i != (~(size_t)0 % 10))
10843         return 1;
10844       fprintf (f, "%lu\n", i);
10845     }
10846   return ferror (f) || fclose (f) != 0;
10847
10848   ;
10849   return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856   *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859   (eval "$ac_link") 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10863   { (case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_try") 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; }; then
10872   res_lo=`cat conftest.val`
10873 else
10874   echo "$as_me: program exited with status $ac_status" >&5
10875 echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10877
10878 ( exit $ac_status )
10879 result=?
10880 fi
10881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10882 fi
10883 rm -f conftest.val
10884
10885     if test "$cross_compiling" = yes; then
10886   # Depending upon the size, compute the lo and hi bounds.
10887 cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h.  */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h.  */
10893 #include <stddef.h>
10894 int
10895 main ()
10896 {
10897 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10898 test_array [0] = 0
10899
10900   ;
10901   return 0;
10902 }
10903 _ACEOF
10904 rm -f conftest.$ac_objext
10905 if { (ac_try="$ac_compile"
10906 case "(($ac_try" in
10907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908   *) ac_try_echo=$ac_try;;
10909 esac
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911   (eval "$ac_compile") 2>conftest.er1
10912   ac_status=$?
10913   grep -v '^ *+' conftest.er1 >conftest.err
10914   rm -f conftest.er1
10915   cat conftest.err >&5
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); } && {
10918          test -z "$ac_c_werror_flag" ||
10919          test ! -s conftest.err
10920        } && test -s conftest.$ac_objext; then
10921   ac_lo=0 ac_mid=0
10922   while :; do
10923     cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #include <stddef.h>
10930 int
10931 main ()
10932 {
10933 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10934 test_array [0] = 0
10935
10936   ;
10937   return 0;
10938 }
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (ac_try="$ac_compile"
10942 case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_compile") 2>conftest.er1
10948   ac_status=$?
10949   grep -v '^ *+' conftest.er1 >conftest.err
10950   rm -f conftest.er1
10951   cat conftest.err >&5
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); } && {
10954          test -z "$ac_c_werror_flag" ||
10955          test ! -s conftest.err
10956        } && test -s conftest.$ac_objext; then
10957   ac_hi=$ac_mid; break
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962         ac_lo=`expr $ac_mid + 1`
10963                         if test $ac_lo -le $ac_mid; then
10964                           ac_lo= ac_hi=
10965                           break
10966                         fi
10967                         ac_mid=`expr 2 '*' $ac_mid + 1`
10968 fi
10969
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971   done
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976         cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 #include <stddef.h>
10983 int
10984 main ()
10985 {
10986 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10987 test_array [0] = 0
10988
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_compile") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } && {
11007          test -z "$ac_c_werror_flag" ||
11008          test ! -s conftest.err
11009        } && test -s conftest.$ac_objext; then
11010   ac_hi=-1 ac_mid=-1
11011   while :; do
11012     cat >conftest.$ac_ext <<_ACEOF
11013 /* confdefs.h.  */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h.  */
11018 #include <stddef.h>
11019 int
11020 main ()
11021 {
11022 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11023 test_array [0] = 0
11024
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 rm -f conftest.$ac_objext
11030 if { (ac_try="$ac_compile"
11031 case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_compile") 2>conftest.er1
11037   ac_status=$?
11038   grep -v '^ *+' conftest.er1 >conftest.err
11039   rm -f conftest.er1
11040   cat conftest.err >&5
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); } && {
11043          test -z "$ac_c_werror_flag" ||
11044          test ! -s conftest.err
11045        } && test -s conftest.$ac_objext; then
11046   ac_lo=$ac_mid; break
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051         ac_hi=`expr '(' $ac_mid ')' - 1`
11052                         if test $ac_mid -le $ac_hi; then
11053                           ac_lo= ac_hi=
11054                           break
11055                         fi
11056                         ac_mid=`expr 2 '*' $ac_mid`
11057 fi
11058
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060   done
11061 else
11062   echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065         ac_lo= ac_hi=
11066 fi
11067
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 fi
11070
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 # Binary search between lo and hi bounds.
11073 while test "x$ac_lo" != "x$ac_hi"; do
11074   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11075   cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081 #include <stddef.h>
11082 int
11083 main ()
11084 {
11085 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11086 test_array [0] = 0
11087
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext
11093 if { (ac_try="$ac_compile"
11094 case "(($ac_try" in
11095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096   *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099   (eval "$ac_compile") 2>conftest.er1
11100   ac_status=$?
11101   grep -v '^ *+' conftest.er1 >conftest.err
11102   rm -f conftest.er1
11103   cat conftest.err >&5
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); } && {
11106          test -z "$ac_c_werror_flag" ||
11107          test ! -s conftest.err
11108        } && test -s conftest.$ac_objext; then
11109   ac_hi=$ac_mid
11110 else
11111   echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114         ac_lo=`expr '(' $ac_mid ')' + 1`
11115 fi
11116
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 done
11119 case $ac_lo in
11120 ?*) fits_in_uint=$ac_lo;;
11121 '') result=? ;;
11122 esac
11123 else
11124   cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h.  */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h.  */
11130 #include <stddef.h>
11131 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11132 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11133 #include <stdio.h>
11134 #include <stdlib.h>
11135 int
11136 main ()
11137 {
11138
11139   FILE *f = fopen ("conftest.val", "w");
11140   if (! f)
11141     return 1;
11142   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11143     {
11144       long int i = longval ();
11145       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11146         return 1;
11147       fprintf (f, "%ld\n", i);
11148     }
11149   else
11150     {
11151       unsigned long int i = ulongval ();
11152       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11153         return 1;
11154       fprintf (f, "%lu\n", i);
11155     }
11156   return ferror (f) || fclose (f) != 0;
11157
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest$ac_exeext
11163 if { (ac_try="$ac_link"
11164 case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_link") 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11173   { (case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_try") 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; }; then
11182   fits_in_uint=`cat conftest.val`
11183 else
11184   echo "$as_me: program exited with status $ac_status" >&5
11185 echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 ( exit $ac_status )
11189 result=?
11190 fi
11191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11192 fi
11193 rm -f conftest.val
11194
11195     if test "$fits_in_uint" = 1; then
11196                   cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h.  */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h.  */
11202 #include <stddef.h>
11203         extern size_t foo;
11204         extern unsigned long foo;
11205
11206 int
11207 main ()
11208 {
11209
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext
11215 if { (ac_try="$ac_compile"
11216 case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_compile") 2>conftest.er1
11222   ac_status=$?
11223   grep -v '^ *+' conftest.er1 >conftest.err
11224   rm -f conftest.er1
11225   cat conftest.err >&5
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } && {
11228          test -z "$ac_c_werror_flag" ||
11229          test ! -s conftest.err
11230        } && test -s conftest.$ac_objext; then
11231   fits_in_uint=0
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236
11237 fi
11238
11239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11240     fi
11241     if test -z "$result"; then
11242       if test "$fits_in_uint" = 1; then
11243         result="$res_hi$res_lo"U
11244       else
11245         result="$res_hi$res_lo"UL
11246       fi
11247     else
11248             result='~(size_t)0'
11249     fi
11250   fi
11251   { echo "$as_me:$LINENO: result: $result" >&5
11252 echo "${ECHO_T}$result" >&6; }
11253   if test "$result" != yes; then
11254
11255 cat >>confdefs.h <<_ACEOF
11256 #define SIZE_MAX $result
11257 _ACEOF
11258
11259   fi
11260
11261
11262
11263
11264
11265 for ac_header in stdint.h
11266 do
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272   echo $ECHO_N "(cached) $ECHO_C" >&6
11273 fi
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275                { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277 else
11278   # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h.  */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h.  */
11287 $ac_includes_default
11288 #include <$ac_header>
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_compile") 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } && {
11304          test -z "$ac_c_werror_flag" ||
11305          test ! -s conftest.err
11306        } && test -s conftest.$ac_objext; then
11307   ac_header_compiler=yes
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312         ac_header_compiler=no
11313 fi
11314
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11318
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 #include <$ac_header>
11329 _ACEOF
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333   *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337   ac_status=$?
11338   grep -v '^ *+' conftest.er1 >conftest.err
11339   rm -f conftest.er1
11340   cat conftest.err >&5
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); } >/dev/null && {
11343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11344          test ! -s conftest.err
11345        }; then
11346   ac_header_preproc=yes
11347 else
11348   echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11350
11351   ac_header_preproc=no
11352 fi
11353
11354 rm -f conftest.err conftest.$ac_ext
11355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11356 echo "${ECHO_T}$ac_header_preproc" >&6; }
11357
11358 # So?  What about this header?
11359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360   yes:no: )
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11365     ac_header_preproc=yes
11366     ;;
11367   no:yes:* )
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11371 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11374     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11375 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11378     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11380
11381     ;;
11382 esac
11383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   eval "$as_ac_Header=\$ac_header_preproc"
11389 fi
11390 ac_res=`eval echo '${'$as_ac_Header'}'`
11391                { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11393
11394 fi
11395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396   cat >>confdefs.h <<_ACEOF
11397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398 _ACEOF
11399
11400 fi
11401
11402 done
11403
11404
11405
11406
11407
11408
11409
11410
11411   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11412 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11413 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 $ac_includes_default
11423 typedef ptrdiff_t ac__type_new_;
11424 int
11425 main ()
11426 {
11427 if ((ac__type_new_ *) 0)
11428   return 0;
11429 if (sizeof (ac__type_new_))
11430   return 0;
11431   ;
11432   return 0;
11433 }
11434 _ACEOF
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439   *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442   (eval "$ac_compile") 2>conftest.er1
11443   ac_status=$?
11444   grep -v '^ *+' conftest.er1 >conftest.err
11445   rm -f conftest.er1
11446   cat conftest.err >&5
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } && {
11449          test -z "$ac_c_werror_flag" ||
11450          test ! -s conftest.err
11451        } && test -s conftest.$ac_objext; then
11452   ac_cv_type_ptrdiff_t=yes
11453 else
11454   echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457         ac_cv_type_ptrdiff_t=no
11458 fi
11459
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 fi
11462 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11463 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11464 if test $ac_cv_type_ptrdiff_t = yes; then
11465   :
11466 else
11467
11468 cat >>confdefs.h <<\_ACEOF
11469 #define ptrdiff_t long
11470 _ACEOF
11471
11472
11473 fi
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11486 stdlib.h string.h unistd.h sys/param.h
11487 do
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 fi
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496                { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11498 else
11499   # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h.  */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h.  */
11508 $ac_includes_default
11509 #include <$ac_header>
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515   *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518   (eval "$ac_compile") 2>conftest.er1
11519   ac_status=$?
11520   grep -v '^ *+' conftest.er1 >conftest.err
11521   rm -f conftest.er1
11522   cat conftest.err >&5
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } && {
11525          test -z "$ac_c_werror_flag" ||
11526          test ! -s conftest.err
11527        } && test -s conftest.$ac_objext; then
11528   ac_header_compiler=yes
11529 else
11530   echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533         ac_header_compiler=no
11534 fi
11535
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11538 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539
11540 # Is the header present?
11541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549 #include <$ac_header>
11550 _ACEOF
11551 if { (ac_try="$ac_cpp conftest.$ac_ext"
11552 case "(($ac_try" in
11553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554   *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11558   ac_status=$?
11559   grep -v '^ *+' conftest.er1 >conftest.err
11560   rm -f conftest.er1
11561   cat conftest.err >&5
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } >/dev/null && {
11564          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11565          test ! -s conftest.err
11566        }; then
11567   ac_header_preproc=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572   ac_header_preproc=no
11573 fi
11574
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11578
11579 # So?  What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581   yes:no: )
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586     ac_header_preproc=yes
11587     ;;
11588   no:yes:* )
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601
11602     ;;
11603 esac
11604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   eval "$as_ac_Header=\$ac_header_preproc"
11610 fi
11611 ac_res=`eval echo '${'$as_ac_Header'}'`
11612                { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11614
11615 fi
11616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11617   cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11619 _ACEOF
11620
11621 fi
11622
11623 done
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11649 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11650 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11651 __fsetlocking
11652 do
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11667 #define $ac_func innocuous_$ac_func
11668
11669 /* System header to define __stub macros and hopefully few prototypes,
11670     which can conflict with char $ac_func (); below.
11671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672     <limits.h> exists even on freestanding compilers.  */
11673
11674 #ifdef __STDC__
11675 # include <limits.h>
11676 #else
11677 # include <assert.h>
11678 #endif
11679
11680 #undef $ac_func
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683    Use char because int might match the return type of a GCC
11684    builtin and then its argument prototype would still apply.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char $ac_func ();
11689 /* The GNU C library defines this for functions which it implements
11690     to always fail with ENOSYS.  Some functions are actually named
11691     something starting with __ and the normal name is an alias.  */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 choke me
11694 #endif
11695
11696 int
11697 main ()
11698 {
11699 return $ac_func ();
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_link") 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } && {
11718          test -z "$ac_c_werror_flag" ||
11719          test ! -s conftest.err
11720        } && test -s conftest$ac_exeext &&
11721        $as_test_x conftest$ac_exeext; then
11722   eval "$as_ac_var=yes"
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727         eval "$as_ac_var=no"
11728 fi
11729
11730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11731       conftest$ac_exeext conftest.$ac_ext
11732 fi
11733 ac_res=`eval echo '${'$as_ac_var'}'`
11734                { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11736 if test `eval echo '${'$as_ac_var'}'` = yes; then
11737   cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11739 _ACEOF
11740
11741 fi
11742 done
11743
11744
11745
11746   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11747 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11748 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751   cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 #include <stdio.h>
11758 int
11759 main ()
11760 {
11761
11762 #ifndef _snprintf
11763   char *p = (char *) _snprintf;
11764 #endif
11765
11766   ;
11767   return 0;
11768 }
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774   *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777   (eval "$ac_compile") 2>conftest.er1
11778   ac_status=$?
11779   grep -v '^ *+' conftest.er1 >conftest.err
11780   rm -f conftest.er1
11781   cat conftest.err >&5
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); } && {
11784          test -z "$ac_c_werror_flag" ||
11785          test ! -s conftest.err
11786        } && test -s conftest.$ac_objext; then
11787   ac_cv_have_decl__snprintf=yes
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792         ac_cv_have_decl__snprintf=no
11793 fi
11794
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 fi
11797 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11798 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11799   if test $ac_cv_have_decl__snprintf = yes; then
11800     gt_value=1
11801   else
11802     gt_value=0
11803   fi
11804
11805 cat >>confdefs.h <<_ACEOF
11806 #define HAVE_DECL__SNPRINTF $gt_value
11807 _ACEOF
11808
11809
11810
11811   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11812 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11813 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11814   echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816   cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822 #include <stdio.h>
11823 int
11824 main ()
11825 {
11826
11827 #ifndef _snwprintf
11828   char *p = (char *) _snwprintf;
11829 #endif
11830
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839   *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842   (eval "$ac_compile") 2>conftest.er1
11843   ac_status=$?
11844   grep -v '^ *+' conftest.er1 >conftest.err
11845   rm -f conftest.er1
11846   cat conftest.err >&5
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } && {
11849          test -z "$ac_c_werror_flag" ||
11850          test ! -s conftest.err
11851        } && test -s conftest.$ac_objext; then
11852   ac_cv_have_decl__snwprintf=yes
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857         ac_cv_have_decl__snwprintf=no
11858 fi
11859
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 fi
11862 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11863 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11864   if test $ac_cv_have_decl__snwprintf = yes; then
11865     gt_value=1
11866   else
11867     gt_value=0
11868   fi
11869
11870 cat >>confdefs.h <<_ACEOF
11871 #define HAVE_DECL__SNWPRINTF $gt_value
11872 _ACEOF
11873
11874
11875
11876
11877   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11878 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11879 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11880   echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882   cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 #include <stdio.h>
11889 int
11890 main ()
11891 {
11892
11893 #ifndef feof_unlocked
11894   char *p = (char *) feof_unlocked;
11895 #endif
11896
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905   *) ac_try_echo=$ac_try;;
11906 esac
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908   (eval "$ac_compile") 2>conftest.er1
11909   ac_status=$?
11910   grep -v '^ *+' conftest.er1 >conftest.err
11911   rm -f conftest.er1
11912   cat conftest.err >&5
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } && {
11915          test -z "$ac_c_werror_flag" ||
11916          test ! -s conftest.err
11917        } && test -s conftest.$ac_objext; then
11918   ac_cv_have_decl_feof_unlocked=yes
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923         ac_cv_have_decl_feof_unlocked=no
11924 fi
11925
11926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11927 fi
11928 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11929 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11930   if test $ac_cv_have_decl_feof_unlocked = yes; then
11931     gt_value=1
11932   else
11933     gt_value=0
11934   fi
11935
11936 cat >>confdefs.h <<_ACEOF
11937 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11938 _ACEOF
11939
11940
11941
11942   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11943 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11944 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 #include <stdio.h>
11954 int
11955 main ()
11956 {
11957
11958 #ifndef fgets_unlocked
11959   char *p = (char *) fgets_unlocked;
11960 #endif
11961
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext
11967 if { (ac_try="$ac_compile"
11968 case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_compile") 2>conftest.er1
11974   ac_status=$?
11975   grep -v '^ *+' conftest.er1 >conftest.err
11976   rm -f conftest.er1
11977   cat conftest.err >&5
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } && {
11980          test -z "$ac_c_werror_flag" ||
11981          test ! -s conftest.err
11982        } && test -s conftest.$ac_objext; then
11983   ac_cv_have_decl_fgets_unlocked=yes
11984 else
11985   echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988         ac_cv_have_decl_fgets_unlocked=no
11989 fi
11990
11991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 fi
11993 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11994 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11995   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11996     gt_value=1
11997   else
11998     gt_value=0
11999   fi
12000
12001 cat >>confdefs.h <<_ACEOF
12002 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12003 _ACEOF
12004
12005
12006
12007   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12008 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12009 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012   cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h.  */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h.  */
12018 #include <stdio.h>
12019 int
12020 main ()
12021 {
12022
12023 #ifndef getc_unlocked
12024   char *p = (char *) getc_unlocked;
12025 #endif
12026
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (ac_try="$ac_compile"
12033 case "(($ac_try" in
12034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035   *) ac_try_echo=$ac_try;;
12036 esac
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038   (eval "$ac_compile") 2>conftest.er1
12039   ac_status=$?
12040   grep -v '^ *+' conftest.er1 >conftest.err
12041   rm -f conftest.er1
12042   cat conftest.err >&5
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); } && {
12045          test -z "$ac_c_werror_flag" ||
12046          test ! -s conftest.err
12047        } && test -s conftest.$ac_objext; then
12048   ac_cv_have_decl_getc_unlocked=yes
12049 else
12050   echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053         ac_cv_have_decl_getc_unlocked=no
12054 fi
12055
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12059 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12060   if test $ac_cv_have_decl_getc_unlocked = yes; then
12061     gt_value=1
12062   else
12063     gt_value=0
12064   fi
12065
12066 cat >>confdefs.h <<_ACEOF
12067 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12068 _ACEOF
12069
12070
12071
12072   case $gt_cv_func_printf_posix in
12073     *yes) HAVE_POSIX_PRINTF=1 ;;
12074     *) HAVE_POSIX_PRINTF=0 ;;
12075   esac
12076
12077   if test "$ac_cv_func_asprintf" = yes; then
12078     HAVE_ASPRINTF=1
12079   else
12080     HAVE_ASPRINTF=0
12081   fi
12082
12083   if test "$ac_cv_func_snprintf" = yes; then
12084     HAVE_SNPRINTF=1
12085   else
12086     HAVE_SNPRINTF=0
12087   fi
12088
12089   if test "$ac_cv_func_wprintf" = yes; then
12090     HAVE_WPRINTF=1
12091   else
12092     HAVE_WPRINTF=0
12093   fi
12094
12095
12096
12097
12098
12099
12100
12101           am_save_CPPFLAGS="$CPPFLAGS"
12102
12103   for element in $INCICONV; do
12104     haveit=
12105     for x in $CPPFLAGS; do
12106
12107   acl_save_prefix="$prefix"
12108   prefix="$acl_final_prefix"
12109   acl_save_exec_prefix="$exec_prefix"
12110   exec_prefix="$acl_final_exec_prefix"
12111   eval x=\"$x\"
12112   exec_prefix="$acl_save_exec_prefix"
12113   prefix="$acl_save_prefix"
12114
12115       if test "X$x" = "X$element"; then
12116         haveit=yes
12117         break
12118       fi
12119     done
12120     if test -z "$haveit"; then
12121       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12122     fi
12123   done
12124
12125
12126   { echo "$as_me:$LINENO: checking for iconv" >&5
12127 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12128 if test "${am_cv_func_iconv+set}" = set; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131
12132     am_cv_func_iconv="no, consider installing GNU libiconv"
12133     am_cv_lib_iconv=no
12134     cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h.  */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h.  */
12140 #include <stdlib.h>
12141 #include <iconv.h>
12142 int
12143 main ()
12144 {
12145 iconv_t cd = iconv_open("","");
12146        iconv(cd,NULL,NULL,NULL,NULL);
12147        iconv_close(cd);
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext conftest$ac_exeext
12153 if { (ac_try="$ac_link"
12154 case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159   (eval "$ac_link") 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } && {
12166          test -z "$ac_c_werror_flag" ||
12167          test ! -s conftest.err
12168        } && test -s conftest$ac_exeext &&
12169        $as_test_x conftest$ac_exeext; then
12170   am_cv_func_iconv=yes
12171 else
12172   echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175
12176 fi
12177
12178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179       conftest$ac_exeext conftest.$ac_ext
12180     if test "$am_cv_func_iconv" != yes; then
12181       am_save_LIBS="$LIBS"
12182       LIBS="$LIBS $LIBICONV"
12183       cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189 #include <stdlib.h>
12190 #include <iconv.h>
12191 int
12192 main ()
12193 {
12194 iconv_t cd = iconv_open("","");
12195          iconv(cd,NULL,NULL,NULL,NULL);
12196          iconv_close(cd);
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_link") 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } && {
12215          test -z "$ac_c_werror_flag" ||
12216          test ! -s conftest.err
12217        } && test -s conftest$ac_exeext &&
12218        $as_test_x conftest$ac_exeext; then
12219   am_cv_lib_iconv=yes
12220         am_cv_func_iconv=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225
12226 fi
12227
12228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12229       conftest$ac_exeext conftest.$ac_ext
12230       LIBS="$am_save_LIBS"
12231     fi
12232
12233 fi
12234 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12235 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12236   if test "$am_cv_func_iconv" = yes; then
12237
12238 cat >>confdefs.h <<\_ACEOF
12239 #define HAVE_ICONV 1
12240 _ACEOF
12241
12242   fi
12243   if test "$am_cv_lib_iconv" = yes; then
12244     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12245 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12246     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12247 echo "${ECHO_T}$LIBICONV" >&6; }
12248   else
12249             CPPFLAGS="$am_save_CPPFLAGS"
12250     LIBICONV=
12251     LTLIBICONV=
12252   fi
12253
12254
12255
12256   if test "$am_cv_func_iconv" = yes; then
12257     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12258 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12259     if test "${am_cv_proto_iconv+set}" = set; then
12260   echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262
12263       cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h.  */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h.  */
12269
12270 #include <stdlib.h>
12271 #include <iconv.h>
12272 extern
12273 #ifdef __cplusplus
12274 "C"
12275 #endif
12276 #if defined(__STDC__) || defined(__cplusplus)
12277 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12278 #else
12279 size_t iconv();
12280 #endif
12281
12282 int
12283 main ()
12284 {
12285
12286   ;
12287   return 0;
12288 }
12289 _ACEOF
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294   *) ac_try_echo=$ac_try;;
12295 esac
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297   (eval "$ac_compile") 2>conftest.er1
12298   ac_status=$?
12299   grep -v '^ *+' conftest.er1 >conftest.err
12300   rm -f conftest.er1
12301   cat conftest.err >&5
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); } && {
12304          test -z "$ac_c_werror_flag" ||
12305          test ! -s conftest.err
12306        } && test -s conftest.$ac_objext; then
12307   am_cv_proto_iconv_arg1=""
12308 else
12309   echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312         am_cv_proto_iconv_arg1="const"
12313 fi
12314
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316       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);"
12317 fi
12318
12319     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12320     { echo "$as_me:$LINENO: result: ${ac_t:-
12321          }$am_cv_proto_iconv" >&5
12322 echo "${ECHO_T}${ac_t:-
12323          }$am_cv_proto_iconv" >&6; }
12324
12325 cat >>confdefs.h <<_ACEOF
12326 #define ICONV_CONST $am_cv_proto_iconv_arg1
12327 _ACEOF
12328
12329   fi
12330
12331
12332   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12333 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12334 if test "${am_cv_langinfo_codeset+set}" = set; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343 #include <langinfo.h>
12344 int
12345 main ()
12346 {
12347 char* cs = nl_langinfo(CODESET);
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (ac_try="$ac_link"
12354 case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359   (eval "$ac_link") 2>conftest.er1
12360   ac_status=$?
12361   grep -v '^ *+' conftest.er1 >conftest.err
12362   rm -f conftest.er1
12363   cat conftest.err >&5
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } && {
12366          test -z "$ac_c_werror_flag" ||
12367          test ! -s conftest.err
12368        } && test -s conftest$ac_exeext &&
12369        $as_test_x conftest$ac_exeext; then
12370   am_cv_langinfo_codeset=yes
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375         am_cv_langinfo_codeset=no
12376 fi
12377
12378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12379       conftest$ac_exeext conftest.$ac_ext
12380
12381 fi
12382 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12383 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12384   if test $am_cv_langinfo_codeset = yes; then
12385
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_LANGINFO_CODESET 1
12388 _ACEOF
12389
12390   fi
12391
12392   if test $ac_cv_header_locale_h = yes; then
12393
12394   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12395 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12396 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 #include <locale.h>
12406 int
12407 main ()
12408 {
12409 return LC_MESSAGES
12410   ;
12411   return 0;
12412 }
12413 _ACEOF
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (ac_try="$ac_link"
12416 case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_link") 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } && {
12428          test -z "$ac_c_werror_flag" ||
12429          test ! -s conftest.err
12430        } && test -s conftest$ac_exeext &&
12431        $as_test_x conftest$ac_exeext; then
12432   gt_cv_val_LC_MESSAGES=yes
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437         gt_cv_val_LC_MESSAGES=no
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12441       conftest$ac_exeext conftest.$ac_ext
12442 fi
12443 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12444 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12445   if test $gt_cv_val_LC_MESSAGES = yes; then
12446
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_LC_MESSAGES 1
12449 _ACEOF
12450
12451   fi
12452
12453   fi
12454
12455   if test -n "$INTL_MACOSX_LIBS"; then
12456     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12457   fi
12458
12459                       for ac_prog in bison
12460 do
12461   # Extract the first word of "$ac_prog", so it can be a program name with args.
12462 set dummy $ac_prog; ac_word=$2
12463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12465 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   if test -n "$INTLBISON"; then
12469   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12470 else
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12473 do
12474   IFS=$as_save_IFS
12475   test -z "$as_dir" && as_dir=.
12476   for ac_exec_ext in '' $ac_executable_extensions; do
12477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12478     ac_cv_prog_INTLBISON="$ac_prog"
12479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12480     break 2
12481   fi
12482 done
12483 done
12484 IFS=$as_save_IFS
12485
12486 fi
12487 fi
12488 INTLBISON=$ac_cv_prog_INTLBISON
12489 if test -n "$INTLBISON"; then
12490   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12491 echo "${ECHO_T}$INTLBISON" >&6; }
12492 else
12493   { echo "$as_me:$LINENO: result: no" >&5
12494 echo "${ECHO_T}no" >&6; }
12495 fi
12496
12497
12498   test -n "$INTLBISON" && break
12499 done
12500
12501   if test -z "$INTLBISON"; then
12502     ac_verc_fail=yes
12503   else
12504         { echo "$as_me:$LINENO: checking version of bison" >&5
12505 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12506     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12507     case $ac_prog_version in
12508       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12509       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12510          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12511       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12512     esac
12513     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12514 echo "${ECHO_T}$ac_prog_version" >&6; }
12515   fi
12516   if test $ac_verc_fail = yes; then
12517     INTLBISON=:
12518   fi
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12536 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12537 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12538   echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540   gt_save_CPPFLAGS="$CPPFLAGS"
12541      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12542      gt_save_LIBS="$LIBS"
12543      LIBS="$LIBS -framework CoreFoundation"
12544      cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h.  */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h.  */
12550 #include <CFPreferences.h>
12551 int
12552 main ()
12553 {
12554 CFPreferencesCopyAppValue(NULL, NULL)
12555   ;
12556   return 0;
12557 }
12558 _ACEOF
12559 rm -f conftest.$ac_objext conftest$ac_exeext
12560 if { (ac_try="$ac_link"
12561 case "(($ac_try" in
12562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563   *) ac_try_echo=$ac_try;;
12564 esac
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566   (eval "$ac_link") 2>conftest.er1
12567   ac_status=$?
12568   grep -v '^ *+' conftest.er1 >conftest.err
12569   rm -f conftest.er1
12570   cat conftest.err >&5
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); } && {
12573          test -z "$ac_c_werror_flag" ||
12574          test ! -s conftest.err
12575        } && test -s conftest$ac_exeext &&
12576        $as_test_x conftest$ac_exeext; then
12577   gt_cv_func_CFPreferencesCopyAppValue=yes
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582         gt_cv_func_CFPreferencesCopyAppValue=no
12583 fi
12584
12585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12586       conftest$ac_exeext conftest.$ac_ext
12587      CPPFLAGS="$gt_save_CPPFLAGS"
12588      LIBS="$gt_save_LIBS"
12589 fi
12590 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12591 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12592   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12593
12594 cat >>confdefs.h <<\_ACEOF
12595 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12596 _ACEOF
12597
12598   fi
12599     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12600 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12601 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12602   echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604   gt_save_CPPFLAGS="$CPPFLAGS"
12605      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12606      gt_save_LIBS="$LIBS"
12607      LIBS="$LIBS -framework CoreFoundation"
12608      cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h.  */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h.  */
12614 #include <CFLocale.h>
12615 int
12616 main ()
12617 {
12618 CFLocaleCopyCurrent();
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (ac_try="$ac_link"
12625 case "(($ac_try" in
12626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627   *) ac_try_echo=$ac_try;;
12628 esac
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630   (eval "$ac_link") 2>conftest.er1
12631   ac_status=$?
12632   grep -v '^ *+' conftest.er1 >conftest.err
12633   rm -f conftest.er1
12634   cat conftest.err >&5
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); } && {
12637          test -z "$ac_c_werror_flag" ||
12638          test ! -s conftest.err
12639        } && test -s conftest$ac_exeext &&
12640        $as_test_x conftest$ac_exeext; then
12641   gt_cv_func_CFLocaleCopyCurrent=yes
12642 else
12643   echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12645
12646         gt_cv_func_CFLocaleCopyCurrent=no
12647 fi
12648
12649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650       conftest$ac_exeext conftest.$ac_ext
12651      CPPFLAGS="$gt_save_CPPFLAGS"
12652      LIBS="$gt_save_LIBS"
12653 fi
12654 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12655 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12656   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12657
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_CFLOCALECOPYCURRENT 1
12660 _ACEOF
12661
12662   fi
12663   INTL_MACOSX_LIBS=
12664   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12665     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12666   fi
12667
12668
12669
12670
12671   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12672 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12673     # Check whether --enable-nls was given.
12674 if test "${enable_nls+set}" = set; then
12675   enableval=$enable_nls; USE_NLS=$enableval
12676 else
12677   USE_NLS=yes
12678 fi
12679
12680   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12681 echo "${ECHO_T}$USE_NLS" >&6; }
12682
12683
12684
12685
12686     BUILD_INCLUDED_LIBINTL=no
12687     USE_INCLUDED_LIBINTL=no
12688
12689   LIBINTL=
12690   LTLIBINTL=
12691   POSUB=
12692
12693     if test "$USE_NLS" = "yes"; then
12694     gt_use_preinstalled_gnugettext=no
12695
12696       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12697 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12698
12699 # Check whether --with-included-gettext was given.
12700 if test "${with_included_gettext+set}" = set; then
12701   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12702 else
12703   nls_cv_force_use_gnu_gettext=no
12704 fi
12705
12706       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12707 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12708
12709       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12710       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12711
12712
12713
12714
12715
12716
12717         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12718 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12719 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12720   echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722   cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h.  */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h.  */
12728 #include <libintl.h>
12729 extern int _nl_msg_cat_cntr;
12730 extern int *_nl_domain_bindings;
12731 int
12732 main ()
12733 {
12734 bindtextdomain ("", "");
12735 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12736   ;
12737   return 0;
12738 }
12739 _ACEOF
12740 rm -f conftest.$ac_objext conftest$ac_exeext
12741 if { (ac_try="$ac_link"
12742 case "(($ac_try" in
12743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744   *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747   (eval "$ac_link") 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } && {
12754          test -z "$ac_c_werror_flag" ||
12755          test ! -s conftest.err
12756        } && test -s conftest$ac_exeext &&
12757        $as_test_x conftest$ac_exeext; then
12758   gt_cv_func_gnugettext1_libc=yes
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763         gt_cv_func_gnugettext1_libc=no
12764 fi
12765
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767       conftest$ac_exeext conftest.$ac_ext
12768 fi
12769 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12770 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12771
12772         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12773
12774
12775
12776     use_additional=yes
12777
12778   acl_save_prefix="$prefix"
12779   prefix="$acl_final_prefix"
12780   acl_save_exec_prefix="$exec_prefix"
12781   exec_prefix="$acl_final_exec_prefix"
12782
12783     eval additional_includedir=\"$includedir\"
12784     eval additional_libdir=\"$libdir\"
12785
12786   exec_prefix="$acl_save_exec_prefix"
12787   prefix="$acl_save_prefix"
12788
12789
12790 # Check whether --with-libintl-prefix was given.
12791 if test "${with_libintl_prefix+set}" = set; then
12792   withval=$with_libintl_prefix;
12793     if test "X$withval" = "Xno"; then
12794       use_additional=no
12795     else
12796       if test "X$withval" = "X"; then
12797
12798   acl_save_prefix="$prefix"
12799   prefix="$acl_final_prefix"
12800   acl_save_exec_prefix="$exec_prefix"
12801   exec_prefix="$acl_final_exec_prefix"
12802
12803           eval additional_includedir=\"$includedir\"
12804           eval additional_libdir=\"$libdir\"
12805
12806   exec_prefix="$acl_save_exec_prefix"
12807   prefix="$acl_save_prefix"
12808
12809       else
12810         additional_includedir="$withval/include"
12811         additional_libdir="$withval/lib"
12812       fi
12813     fi
12814
12815 fi
12816
12817       LIBINTL=
12818   LTLIBINTL=
12819   INCINTL=
12820   rpathdirs=
12821   ltrpathdirs=
12822   names_already_handled=
12823   names_next_round='intl '
12824   while test -n "$names_next_round"; do
12825     names_this_round="$names_next_round"
12826     names_next_round=
12827     for name in $names_this_round; do
12828       already_handled=
12829       for n in $names_already_handled; do
12830         if test "$n" = "$name"; then
12831           already_handled=yes
12832           break
12833         fi
12834       done
12835       if test -z "$already_handled"; then
12836         names_already_handled="$names_already_handled $name"
12837                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12838         eval value=\"\$HAVE_LIB$uppername\"
12839         if test -n "$value"; then
12840           if test "$value" = yes; then
12841             eval value=\"\$LIB$uppername\"
12842             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12843             eval value=\"\$LTLIB$uppername\"
12844             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12845           else
12846                                     :
12847           fi
12848         else
12849                               found_dir=
12850           found_la=
12851           found_so=
12852           found_a=
12853           if test $use_additional = yes; then
12854             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12855               found_dir="$additional_libdir"
12856               found_so="$additional_libdir/lib$name.$shlibext"
12857               if test -f "$additional_libdir/lib$name.la"; then
12858                 found_la="$additional_libdir/lib$name.la"
12859               fi
12860             else
12861               if test -f "$additional_libdir/lib$name.$libext"; then
12862                 found_dir="$additional_libdir"
12863                 found_a="$additional_libdir/lib$name.$libext"
12864                 if test -f "$additional_libdir/lib$name.la"; then
12865                   found_la="$additional_libdir/lib$name.la"
12866                 fi
12867               fi
12868             fi
12869           fi
12870           if test "X$found_dir" = "X"; then
12871             for x in $LDFLAGS $LTLIBINTL; do
12872
12873   acl_save_prefix="$prefix"
12874   prefix="$acl_final_prefix"
12875   acl_save_exec_prefix="$exec_prefix"
12876   exec_prefix="$acl_final_exec_prefix"
12877   eval x=\"$x\"
12878   exec_prefix="$acl_save_exec_prefix"
12879   prefix="$acl_save_prefix"
12880
12881               case "$x" in
12882                 -L*)
12883                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12884                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12885                     found_dir="$dir"
12886                     found_so="$dir/lib$name.$shlibext"
12887                     if test -f "$dir/lib$name.la"; then
12888                       found_la="$dir/lib$name.la"
12889                     fi
12890                   else
12891                     if test -f "$dir/lib$name.$libext"; then
12892                       found_dir="$dir"
12893                       found_a="$dir/lib$name.$libext"
12894                       if test -f "$dir/lib$name.la"; then
12895                         found_la="$dir/lib$name.la"
12896                       fi
12897                     fi
12898                   fi
12899                   ;;
12900               esac
12901               if test "X$found_dir" != "X"; then
12902                 break
12903               fi
12904             done
12905           fi
12906           if test "X$found_dir" != "X"; then
12907                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12908             if test "X$found_so" != "X"; then
12909                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12910                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12911               else
12912                                                                                 haveit=
12913                 for x in $ltrpathdirs; do
12914                   if test "X$x" = "X$found_dir"; then
12915                     haveit=yes
12916                     break
12917                   fi
12918                 done
12919                 if test -z "$haveit"; then
12920                   ltrpathdirs="$ltrpathdirs $found_dir"
12921                 fi
12922                                 if test "$hardcode_direct" = yes; then
12923                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12924                 else
12925                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12926                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12927                                                             haveit=
12928                     for x in $rpathdirs; do
12929                       if test "X$x" = "X$found_dir"; then
12930                         haveit=yes
12931                         break
12932                       fi
12933                     done
12934                     if test -z "$haveit"; then
12935                       rpathdirs="$rpathdirs $found_dir"
12936                     fi
12937                   else
12938                                                                                 haveit=
12939                     for x in $LDFLAGS $LIBINTL; do
12940
12941   acl_save_prefix="$prefix"
12942   prefix="$acl_final_prefix"
12943   acl_save_exec_prefix="$exec_prefix"
12944   exec_prefix="$acl_final_exec_prefix"
12945   eval x=\"$x\"
12946   exec_prefix="$acl_save_exec_prefix"
12947   prefix="$acl_save_prefix"
12948
12949                       if test "X$x" = "X-L$found_dir"; then
12950                         haveit=yes
12951                         break
12952                       fi
12953                     done
12954                     if test -z "$haveit"; then
12955                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12956                     fi
12957                     if test "$hardcode_minus_L" != no; then
12958                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12959                     else
12960                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12961                     fi
12962                   fi
12963                 fi
12964               fi
12965             else
12966               if test "X$found_a" != "X"; then
12967                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12968               else
12969                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12970               fi
12971             fi
12972                         additional_includedir=
12973             case "$found_dir" in
12974               */lib | */lib/)
12975                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12976                 additional_includedir="$basedir/include"
12977                 ;;
12978             esac
12979             if test "X$additional_includedir" != "X"; then
12980                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12981                 haveit=
12982                 if test "X$additional_includedir" = "X/usr/local/include"; then
12983                   if test -n "$GCC"; then
12984                     case $host_os in
12985                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12986                     esac
12987                   fi
12988                 fi
12989                 if test -z "$haveit"; then
12990                   for x in $CPPFLAGS $INCINTL; do
12991
12992   acl_save_prefix="$prefix"
12993   prefix="$acl_final_prefix"
12994   acl_save_exec_prefix="$exec_prefix"
12995   exec_prefix="$acl_final_exec_prefix"
12996   eval x=\"$x\"
12997   exec_prefix="$acl_save_exec_prefix"
12998   prefix="$acl_save_prefix"
12999
13000                     if test "X$x" = "X-I$additional_includedir"; then
13001                       haveit=yes
13002                       break
13003                     fi
13004                   done
13005                   if test -z "$haveit"; then
13006                     if test -d "$additional_includedir"; then
13007                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13008                     fi
13009                   fi
13010                 fi
13011               fi
13012             fi
13013                         if test -n "$found_la"; then
13014                                                         save_libdir="$libdir"
13015               case "$found_la" in
13016                 */* | *\\*) . "$found_la" ;;
13017                 *) . "./$found_la" ;;
13018               esac
13019               libdir="$save_libdir"
13020                             for dep in $dependency_libs; do
13021                 case "$dep" in
13022                   -L*)
13023                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13024                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13025                       haveit=
13026                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13027                         if test -n "$GCC"; then
13028                           case $host_os in
13029                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13030                           esac
13031                         fi
13032                       fi
13033                       if test -z "$haveit"; then
13034                         haveit=
13035                         for x in $LDFLAGS $LIBINTL; do
13036
13037   acl_save_prefix="$prefix"
13038   prefix="$acl_final_prefix"
13039   acl_save_exec_prefix="$exec_prefix"
13040   exec_prefix="$acl_final_exec_prefix"
13041   eval x=\"$x\"
13042   exec_prefix="$acl_save_exec_prefix"
13043   prefix="$acl_save_prefix"
13044
13045                           if test "X$x" = "X-L$additional_libdir"; then
13046                             haveit=yes
13047                             break
13048                           fi
13049                         done
13050                         if test -z "$haveit"; then
13051                           if test -d "$additional_libdir"; then
13052                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13053                           fi
13054                         fi
13055                         haveit=
13056                         for x in $LDFLAGS $LTLIBINTL; do
13057
13058   acl_save_prefix="$prefix"
13059   prefix="$acl_final_prefix"
13060   acl_save_exec_prefix="$exec_prefix"
13061   exec_prefix="$acl_final_exec_prefix"
13062   eval x=\"$x\"
13063   exec_prefix="$acl_save_exec_prefix"
13064   prefix="$acl_save_prefix"
13065
13066                           if test "X$x" = "X-L$additional_libdir"; then
13067                             haveit=yes
13068                             break
13069                           fi
13070                         done
13071                         if test -z "$haveit"; then
13072                           if test -d "$additional_libdir"; then
13073                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13074                           fi
13075                         fi
13076                       fi
13077                     fi
13078                     ;;
13079                   -R*)
13080                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13081                     if test "$enable_rpath" != no; then
13082                                                                   haveit=
13083                       for x in $rpathdirs; do
13084                         if test "X$x" = "X$dir"; then
13085                           haveit=yes
13086                           break
13087                         fi
13088                       done
13089                       if test -z "$haveit"; then
13090                         rpathdirs="$rpathdirs $dir"
13091                       fi
13092                                                                   haveit=
13093                       for x in $ltrpathdirs; do
13094                         if test "X$x" = "X$dir"; then
13095                           haveit=yes
13096                           break
13097                         fi
13098                       done
13099                       if test -z "$haveit"; then
13100                         ltrpathdirs="$ltrpathdirs $dir"
13101                       fi
13102                     fi
13103                     ;;
13104                   -l*)
13105                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13106                     ;;
13107                   *.la)
13108                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13109                     ;;
13110                   *)
13111                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13112                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13113                     ;;
13114                 esac
13115               done
13116             fi
13117           else
13118                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13119             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13120           fi
13121         fi
13122       fi
13123     done
13124   done
13125   if test "X$rpathdirs" != "X"; then
13126     if test -n "$hardcode_libdir_separator"; then
13127                         alldirs=
13128       for found_dir in $rpathdirs; do
13129         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13130       done
13131             acl_save_libdir="$libdir"
13132       libdir="$alldirs"
13133       eval flag=\"$hardcode_libdir_flag_spec\"
13134       libdir="$acl_save_libdir"
13135       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13136     else
13137             for found_dir in $rpathdirs; do
13138         acl_save_libdir="$libdir"
13139         libdir="$found_dir"
13140         eval flag=\"$hardcode_libdir_flag_spec\"
13141         libdir="$acl_save_libdir"
13142         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13143       done
13144     fi
13145   fi
13146   if test "X$ltrpathdirs" != "X"; then
13147             for found_dir in $ltrpathdirs; do
13148       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13149     done
13150   fi
13151
13152           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13153 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13154 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13155   echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157   gt_save_CPPFLAGS="$CPPFLAGS"
13158             CPPFLAGS="$CPPFLAGS $INCINTL"
13159             gt_save_LIBS="$LIBS"
13160             LIBS="$LIBS $LIBINTL"
13161                         cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h.  */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h.  */
13167 #include <libintl.h>
13168 extern int _nl_msg_cat_cntr;
13169 extern
13170 #ifdef __cplusplus
13171 "C"
13172 #endif
13173 const char *_nl_expand_alias (const char *);
13174 int
13175 main ()
13176 {
13177 bindtextdomain ("", "");
13178 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (ac_try="$ac_link"
13185 case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_link") 2>conftest.er1
13191   ac_status=$?
13192   grep -v '^ *+' conftest.er1 >conftest.err
13193   rm -f conftest.er1
13194   cat conftest.err >&5
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); } && {
13197          test -z "$ac_c_werror_flag" ||
13198          test ! -s conftest.err
13199        } && test -s conftest$ac_exeext &&
13200        $as_test_x conftest$ac_exeext; then
13201   gt_cv_func_gnugettext1_libintl=yes
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206         gt_cv_func_gnugettext1_libintl=no
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13210       conftest$ac_exeext conftest.$ac_ext
13211                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13212               LIBS="$LIBS $LIBICONV"
13213               cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219 #include <libintl.h>
13220 extern int _nl_msg_cat_cntr;
13221 extern
13222 #ifdef __cplusplus
13223 "C"
13224 #endif
13225 const char *_nl_expand_alias (const char *);
13226 int
13227 main ()
13228 {
13229 bindtextdomain ("", "");
13230 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13231   ;
13232   return 0;
13233 }
13234 _ACEOF
13235 rm -f conftest.$ac_objext conftest$ac_exeext
13236 if { (ac_try="$ac_link"
13237 case "(($ac_try" in
13238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239   *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242   (eval "$ac_link") 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } && {
13249          test -z "$ac_c_werror_flag" ||
13250          test ! -s conftest.err
13251        } && test -s conftest$ac_exeext &&
13252        $as_test_x conftest$ac_exeext; then
13253   LIBINTL="$LIBINTL $LIBICONV"
13254                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13255                 gt_cv_func_gnugettext1_libintl=yes
13256
13257 else
13258   echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261
13262 fi
13263
13264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13265       conftest$ac_exeext conftest.$ac_ext
13266             fi
13267             CPPFLAGS="$gt_save_CPPFLAGS"
13268             LIBS="$gt_save_LIBS"
13269 fi
13270 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13271 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13272         fi
13273
13274                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13275            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13276                 && test "$PACKAGE" != gettext-runtime \
13277                 && test "$PACKAGE" != gettext-tools; }; then
13278           gt_use_preinstalled_gnugettext=yes
13279         else
13280                     LIBINTL=
13281           LTLIBINTL=
13282           INCINTL=
13283         fi
13284
13285
13286         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13287                               nls_cv_use_gnu_gettext=yes
13288         fi
13289       fi
13290
13291       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13292                 BUILD_INCLUDED_LIBINTL=yes
13293         USE_INCLUDED_LIBINTL=yes
13294         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13295         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13296         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13297       fi
13298
13299       CATOBJEXT=
13300       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13301          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13302                 CATOBJEXT=.gmo
13303       fi
13304
13305
13306     if test -n "$INTL_MACOSX_LIBS"; then
13307       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13308          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13309                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13310         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13311       fi
13312     fi
13313
13314     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13315        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13316
13317 cat >>confdefs.h <<\_ACEOF
13318 #define ENABLE_NLS 1
13319 _ACEOF
13320
13321     else
13322       USE_NLS=no
13323     fi
13324   fi
13325
13326   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13327 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13328   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13329 echo "${ECHO_T}$USE_NLS" >&6; }
13330   if test "$USE_NLS" = "yes"; then
13331     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13332 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13333     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13334       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13335         gt_source="external libintl"
13336       else
13337         gt_source="libc"
13338       fi
13339     else
13340       gt_source="included intl directory"
13341     fi
13342     { echo "$as_me:$LINENO: result: $gt_source" >&5
13343 echo "${ECHO_T}$gt_source" >&6; }
13344   fi
13345
13346   if test "$USE_NLS" = "yes"; then
13347
13348     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13349       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13350         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13351 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13352         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13353 echo "${ECHO_T}$LIBINTL" >&6; }
13354
13355   for element in $INCINTL; do
13356     haveit=
13357     for x in $CPPFLAGS; do
13358
13359   acl_save_prefix="$prefix"
13360   prefix="$acl_final_prefix"
13361   acl_save_exec_prefix="$exec_prefix"
13362   exec_prefix="$acl_final_exec_prefix"
13363   eval x=\"$x\"
13364   exec_prefix="$acl_save_exec_prefix"
13365   prefix="$acl_save_prefix"
13366
13367       if test "X$x" = "X$element"; then
13368         haveit=yes
13369         break
13370       fi
13371     done
13372     if test -z "$haveit"; then
13373       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13374     fi
13375   done
13376
13377       fi
13378
13379
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_GETTEXT 1
13382 _ACEOF
13383
13384
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_DCGETTEXT 1
13387 _ACEOF
13388
13389     fi
13390
13391         POSUB=po
13392   fi
13393
13394
13395             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13396       BUILD_INCLUDED_LIBINTL=yes
13397     fi
13398
13399
13400
13401
13402
13403         nls_cv_header_intl=
13404     nls_cv_header_libgt=
13405
13406         DATADIRNAME=share
13407
13408
13409         INSTOBJEXT=.mo
13410
13411
13412         GENCAT=gencat
13413
13414
13415         INTLOBJS=
13416     if test "$USE_INCLUDED_LIBINTL" = yes; then
13417       INTLOBJS="\$(GETTOBJS)"
13418     fi
13419
13420
13421         INTL_LIBTOOL_SUFFIX_PREFIX=
13422
13423
13424
13425     INTLLIBS="$LIBINTL"
13426
13427
13428
13429
13430
13431
13432 fi
13433
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 # static-tools (default off)
13690 # -------------------------------------------
13691 # Check whether --enable-static-tools was given.
13692 if test "${enable_static_tools+set}" = set; then
13693   enableval=$enable_static_tools; if test x$enableval = xyes; then
13694      support_static_tools=yes
13695    fi
13696 fi
13697
13698
13699 TTOOL_LDFLAGS=
13700 if test x$support_static_tools = xyes; then
13701    TTOOL_LDFLAGS="-static"
13702 fi
13703
13704
13705 # -------------------------------------------
13706 # static-fd    (default off)
13707 # -------------------------------------------
13708 # Check whether --enable-static-fd was given.
13709 if test "${enable_static_fd+set}" = set; then
13710   enableval=$enable_static_fd; if test x$enableval = xyes; then
13711      support_static_fd=yes
13712    fi
13713 fi
13714
13715
13716 STATIC_FD=
13717 if test x$support_static_fd = xyes; then
13718    STATIC_FD="static-bacula-fd"
13719 fi
13720
13721
13722 # -------------------------------------------
13723 # static-sd    (default off)
13724 # -------------------------------------------
13725 # Check whether --enable-static-sd was given.
13726 if test "${enable_static_sd+set}" = set; then
13727   enableval=$enable_static_sd; if test x$enableval = xyes; then
13728      support_static_sd=yes
13729    fi
13730 fi
13731
13732
13733 STATIC_SD=
13734 if test x$support_static_sd = xyes; then
13735    STATIC_SD="static-bacula-sd"
13736 fi
13737
13738
13739 # -------------------------------------------
13740 # static-dir   (default off)
13741 # -------------------------------------------
13742 # Check whether --enable-static-dir was given.
13743 if test "${enable_static_dir+set}" = set; then
13744   enableval=$enable_static_dir; if test x$enableval = xyes; then
13745      support_static_dir=yes
13746    fi
13747 fi
13748
13749
13750 STATIC_DIR=
13751 if test x$support_static_dir = xyes; then
13752    STATIC_DIR="static-bacula-dir"
13753 fi
13754
13755
13756 # -------------------------------------------
13757 # static-cons  (default off)
13758 # -------------------------------------------
13759 # Check whether --enable-static-cons was given.
13760 if test "${enable_static_cons+set}" = set; then
13761   enableval=$enable_static_cons; if test x$enableval = xyes; then
13762      support_static_cons=yes
13763    fi
13764 fi
13765
13766
13767 STATIC_CONS=
13768 STATIC_GNOME_CONS=
13769 STATIC_WX_CONS=
13770 if test x$support_static_cons = xyes; then
13771    STATIC_CONS="static-bconsole"
13772    STATIC_GNOME_CONS="static-bgnome-console"
13773    STATIC_WX_CONS="static-bwx-console"
13774 fi
13775
13776
13777
13778
13779 # -------------------------------------------
13780 # client_only  (default off)
13781 # -------------------------------------------
13782 # Check whether --enable-client-only was given.
13783 if test "${enable_client_only+set}" = set; then
13784   enableval=$enable_client_only; if test x$enableval = xyes; then
13785       build_client_only=yes
13786       db_type=None
13787       DB_TYPE=none
13788    fi
13789 fi
13790
13791 if test x$build_client_only = xno; then
13792    ALL_DIRS="subdirs"
13793 else
13794    ALL_DIRS=""
13795 fi
13796
13797
13798 # -------------------------------------------
13799 # director  (default on)
13800 # -------------------------------------------
13801 # Check whether --enable-build-dird was given.
13802 if test "${enable_build_dird+set}" = set; then
13803   enableval=$enable_build_dird; if test x$enableval = xno; then
13804       build_dird=no
13805    fi
13806 fi
13807
13808 if test x$build_dird = xyes; then
13809    DIRD_DIR="src/dird"
13810    DIR_TOOLS="DIRTOOLS"
13811 else
13812    DIRD_DIR=""
13813    DIR_TOOLS="NODIRTOOLS"
13814 fi
13815
13816
13817
13818 # -------------------------------------------
13819 # stored  (default on)
13820 # -------------------------------------------
13821 # Check whether --enable-build-stored was given.
13822 if test "${enable_build_stored+set}" = set; then
13823   enableval=$enable_build_stored; if test x$enableval = xno; then
13824       build_stored=no
13825    fi
13826 fi
13827
13828 if test x$build_stored = xyes; then
13829    STORED_DIR="src/stored"
13830 else
13831    STORED_DIR=""
13832 fi
13833
13834
13835 # ---------------------------------------------------
13836 # Check for conio (Bacula readline substitute)(
13837 # ---------------------------------------------------
13838 # this allows you to turn it completely off
13839 # Check whether --enable-conio was given.
13840 if test "${enable_conio+set}" = set; then
13841   enableval=$enable_conio; if test x$enableval = xno; then
13842      support_conio=no
13843   fi
13844
13845 fi
13846
13847
13848
13849 # ---------------------------------------------------
13850 # Check for IPv6 support
13851 # ---------------------------------------------------
13852 # this allows you to turn it completely off
13853 support_ipv6=yes
13854 # Check whether --enable-ipv6 was given.
13855 if test "${enable_ipv6+set}" = set; then
13856   enableval=$enable_ipv6; if test x$enableval = xno; then
13857      support_ipv6=no
13858   fi
13859
13860 fi
13861
13862
13863 if test x$support_ipv6 = xyes; then
13864     cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870  #include <sys/types.h>
13871 #include <sys/socket.h>
13872 #include <netinet/in.h>
13873 int
13874 main ()
13875 {
13876 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_link") 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } && {
13895          test -z "$ac_c_werror_flag" ||
13896          test ! -s conftest.err
13897        } && test -s conftest$ac_exeext &&
13898        $as_test_x conftest$ac_exeext; then
13899   support_ipv6=yes
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904         support_ipv6=no
13905 fi
13906
13907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13908       conftest$ac_exeext conftest.$ac_ext
13909 fi
13910
13911 if test x$support_ipv6 = xyes; then
13912
13913 cat >>confdefs.h <<\_ACEOF
13914 #define HAVE_IPV6 1
13915 _ACEOF
13916
13917 fi
13918
13919
13920
13921 got_conio="no"
13922 if test x$support_conio = xyes; then
13923    if test "${ac_cv_header_termcap_h+set}" = set; then
13924   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13925 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13926 if test "${ac_cv_header_termcap_h+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 fi
13929 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13930 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13931 else
13932   # Is the header compilable?
13933 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13934 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h.  */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h.  */
13941 $ac_includes_default
13942 #include <termcap.h>
13943 _ACEOF
13944 rm -f conftest.$ac_objext
13945 if { (ac_try="$ac_compile"
13946 case "(($ac_try" in
13947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948   *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951   (eval "$ac_compile") 2>conftest.er1
13952   ac_status=$?
13953   grep -v '^ *+' conftest.er1 >conftest.err
13954   rm -f conftest.er1
13955   cat conftest.err >&5
13956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } && {
13958          test -z "$ac_c_werror_flag" ||
13959          test ! -s conftest.err
13960        } && test -s conftest.$ac_objext; then
13961   ac_header_compiler=yes
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966         ac_header_compiler=no
13967 fi
13968
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13971 echo "${ECHO_T}$ac_header_compiler" >&6; }
13972
13973 # Is the header present?
13974 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13975 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13976 cat >conftest.$ac_ext <<_ACEOF
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982 #include <termcap.h>
13983 _ACEOF
13984 if { (ac_try="$ac_cpp conftest.$ac_ext"
13985 case "(($ac_try" in
13986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987   *) ac_try_echo=$ac_try;;
13988 esac
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13991   ac_status=$?
13992   grep -v '^ *+' conftest.er1 >conftest.err
13993   rm -f conftest.er1
13994   cat conftest.err >&5
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); } >/dev/null && {
13997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13998          test ! -s conftest.err
13999        }; then
14000   ac_header_preproc=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005   ac_header_preproc=no
14006 fi
14007
14008 rm -f conftest.err conftest.$ac_ext
14009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14010 echo "${ECHO_T}$ac_header_preproc" >&6; }
14011
14012 # So?  What about this header?
14013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14014   yes:no: )
14015     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14016 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14017     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14018 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14019     ac_header_preproc=yes
14020     ;;
14021   no:yes:* )
14022     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14023 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14025 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14027 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14028     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14029 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14030     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14031 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14032     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14033 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14034
14035     ;;
14036 esac
14037 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14038 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14039 if test "${ac_cv_header_termcap_h+set}" = set; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   ac_cv_header_termcap_h=$ac_header_preproc
14043 fi
14044 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14045 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14046
14047 fi
14048 if test $ac_cv_header_termcap_h = yes; then
14049    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14050 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14051 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   ac_check_lib_save_LIBS=$LIBS
14055 LIBS="-ltermcap  $LIBS"
14056 cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h.  */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h.  */
14062
14063 /* Override any GCC internal prototype to avoid an error.
14064    Use char because int might match the return type of a GCC
14065    builtin and then its argument prototype would still apply.  */
14066 #ifdef __cplusplus
14067 extern "C"
14068 #endif
14069 char tgetent ();
14070 int
14071 main ()
14072 {
14073 return tgetent ();
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext conftest$ac_exeext
14079 if { (ac_try="$ac_link"
14080 case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085   (eval "$ac_link") 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } && {
14092          test -z "$ac_c_werror_flag" ||
14093          test ! -s conftest.err
14094        } && test -s conftest$ac_exeext &&
14095        $as_test_x conftest$ac_exeext; then
14096   ac_cv_lib_termcap_tgetent=yes
14097 else
14098   echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101         ac_cv_lib_termcap_tgetent=no
14102 fi
14103
14104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14105       conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14107 fi
14108 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14109 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14110 if test $ac_cv_lib_termcap_tgetent = yes; then
14111    CONS_LIBS="-ltermcap"
14112          CONS_OBJ="conio.o"
14113          CONS_SRC="conio.c"
14114          got_conio="yes"
14115          support_readline=no
14116
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_CONIO 1
14119 _ACEOF
14120
14121
14122 else
14123    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14124 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14125 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-lncurses  $LIBS"
14130 cat >conftest.$ac_ext <<_ACEOF
14131 /* confdefs.h.  */
14132 _ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h.  */
14136
14137 /* Override any GCC internal prototype to avoid an error.
14138    Use char because int might match the return type of a GCC
14139    builtin and then its argument prototype would still apply.  */
14140 #ifdef __cplusplus
14141 extern "C"
14142 #endif
14143 char tgetent ();
14144 int
14145 main ()
14146 {
14147 return tgetent ();
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 rm -f conftest.$ac_objext conftest$ac_exeext
14153 if { (ac_try="$ac_link"
14154 case "(($ac_try" in
14155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156   *) ac_try_echo=$ac_try;;
14157 esac
14158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14159   (eval "$ac_link") 2>conftest.er1
14160   ac_status=$?
14161   grep -v '^ *+' conftest.er1 >conftest.err
14162   rm -f conftest.er1
14163   cat conftest.err >&5
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } && {
14166          test -z "$ac_c_werror_flag" ||
14167          test ! -s conftest.err
14168        } && test -s conftest$ac_exeext &&
14169        $as_test_x conftest$ac_exeext; then
14170   ac_cv_lib_ncurses_tgetent=yes
14171 else
14172   echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175         ac_cv_lib_ncurses_tgetent=no
14176 fi
14177
14178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14179       conftest$ac_exeext conftest.$ac_ext
14180 LIBS=$ac_check_lib_save_LIBS
14181 fi
14182 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14183 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14184 if test $ac_cv_lib_ncurses_tgetent = yes; then
14185    CONS_LIBS="-lncurses"
14186            CONS_OBJ="conio.o"
14187            CONS_SRC="conio.c"
14188            got_conio="yes"
14189            support_readline=no
14190
14191 cat >>confdefs.h <<\_ACEOF
14192 #define HAVE_CONIO 1
14193 _ACEOF
14194
14195
14196 fi
14197
14198
14199 fi
14200
14201
14202 else
14203
14204
14205 for ac_header in curses.h
14206 do
14207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14209   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14212   echo $ECHO_N "(cached) $ECHO_C" >&6
14213 fi
14214 ac_res=`eval echo '${'$as_ac_Header'}'`
14215                { echo "$as_me:$LINENO: result: $ac_res" >&5
14216 echo "${ECHO_T}$ac_res" >&6; }
14217 else
14218   # Is the header compilable?
14219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h.  */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h.  */
14227 $ac_includes_default
14228 #include <$ac_header>
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (ac_try="$ac_compile"
14232 case "(($ac_try" in
14233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234   *) ac_try_echo=$ac_try;;
14235 esac
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237   (eval "$ac_compile") 2>conftest.er1
14238   ac_status=$?
14239   grep -v '^ *+' conftest.er1 >conftest.err
14240   rm -f conftest.er1
14241   cat conftest.err >&5
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); } && {
14244          test -z "$ac_c_werror_flag" ||
14245          test ! -s conftest.err
14246        } && test -s conftest.$ac_objext; then
14247   ac_header_compiler=yes
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252         ac_header_compiler=no
14253 fi
14254
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14257 echo "${ECHO_T}$ac_header_compiler" >&6; }
14258
14259 # Is the header present?
14260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268 #include <$ac_header>
14269 _ACEOF
14270 if { (ac_try="$ac_cpp conftest.$ac_ext"
14271 case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14277   ac_status=$?
14278   grep -v '^ *+' conftest.er1 >conftest.err
14279   rm -f conftest.er1
14280   cat conftest.err >&5
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); } >/dev/null && {
14283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14284          test ! -s conftest.err
14285        }; then
14286   ac_header_preproc=yes
14287 else
14288   echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290
14291   ac_header_preproc=no
14292 fi
14293
14294 rm -f conftest.err conftest.$ac_ext
14295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14296 echo "${ECHO_T}$ac_header_preproc" >&6; }
14297
14298 # So?  What about this header?
14299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14300   yes:no: )
14301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14305     ac_header_preproc=yes
14306     ;;
14307   no:yes:* )
14308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14320
14321     ;;
14322 esac
14323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328   eval "$as_ac_Header=\$ac_header_preproc"
14329 fi
14330 ac_res=`eval echo '${'$as_ac_Header'}'`
14331                { echo "$as_me:$LINENO: result: $ac_res" >&5
14332 echo "${ECHO_T}$ac_res" >&6; }
14333
14334 fi
14335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14336   cat >>confdefs.h <<_ACEOF
14337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14338 _ACEOF
14339
14340 fi
14341
14342 done
14343
14344          { echo "$as_me:$LINENO: checking for term.h" >&5
14345 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_term_h+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   cat >conftest.$ac_ext <<_ACEOF
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 #if HAVE_CURSES_H
14356 #include <curses.h>
14357 #endif
14358
14359
14360 #include <term.h>
14361 _ACEOF
14362 rm -f conftest.$ac_objext
14363 if { (ac_try="$ac_compile"
14364 case "(($ac_try" in
14365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366   *) ac_try_echo=$ac_try;;
14367 esac
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369   (eval "$ac_compile") 2>conftest.er1
14370   ac_status=$?
14371   grep -v '^ *+' conftest.er1 >conftest.err
14372   rm -f conftest.er1
14373   cat conftest.err >&5
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); } && {
14376          test -z "$ac_c_werror_flag" ||
14377          test ! -s conftest.err
14378        } && test -s conftest.$ac_objext; then
14379   ac_cv_header_term_h=yes
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384         ac_cv_header_term_h=no
14385 fi
14386
14387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14388 fi
14389 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14390 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14391 if test $ac_cv_header_term_h = yes; then
14392    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14393 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14394 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14395   echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397   ac_check_lib_save_LIBS=$LIBS
14398 LIBS="-lcurses  $LIBS"
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h.  */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h.  */
14405
14406 /* Override any GCC internal prototype to avoid an error.
14407    Use char because int might match the return type of a GCC
14408    builtin and then its argument prototype would still apply.  */
14409 #ifdef __cplusplus
14410 extern "C"
14411 #endif
14412 char tgetent ();
14413 int
14414 main ()
14415 {
14416 return tgetent ();
14417   ;
14418   return 0;
14419 }
14420 _ACEOF
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_link") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } && {
14435          test -z "$ac_c_werror_flag" ||
14436          test ! -s conftest.err
14437        } && test -s conftest$ac_exeext &&
14438        $as_test_x conftest$ac_exeext; then
14439   ac_cv_lib_curses_tgetent=yes
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444         ac_cv_lib_curses_tgetent=no
14445 fi
14446
14447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14448       conftest$ac_exeext conftest.$ac_ext
14449 LIBS=$ac_check_lib_save_LIBS
14450 fi
14451 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14452 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14453 if test $ac_cv_lib_curses_tgetent = yes; then
14454    CONS_LIBS="-lcurses"
14455                    CONS_OBJ="conio.o"
14456                    CONS_SRC="conio.c"
14457                    got_conio="yes"
14458                    support_readline=no
14459
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_CONIO 1
14462 _ACEOF
14463
14464
14465 fi
14466
14467
14468 else
14469    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14470 fi
14471
14472
14473
14474 fi
14475
14476
14477 fi
14478
14479
14480 # ---------------------------------------------------
14481 # Check for readline support/directory (default off)
14482 # ---------------------------------------------------
14483 # this allows you to turn it completely off
14484 # Check whether --enable-readline was given.
14485 if test "${enable_readline+set}" = set; then
14486   enableval=$enable_readline; if test x$enableval = xno; then
14487     support_readline=no
14488   fi
14489 fi
14490
14491
14492 got_readline="no"
14493 READLINE_SRC=
14494 if test x$support_readline = xyes; then
14495
14496 # Check whether --with-readline was given.
14497 if test "${with_readline+set}" = set; then
14498   withval=$with_readline;
14499         case "$with_readline" in
14500         no) : ;;
14501         yes|*)
14502           if test -f ${with_readline}/readline.h; then
14503              CONS_INC="-I${with_readline}"
14504              CONS_LDFLAGS="-L$with_readline"
14505           elif test -f ${with_readline}/include/readline/readline.h; then
14506              CONS_INC="-I${with_readline}/include/readline"
14507              CONS_LDFLAGS="-L${with_readline}/lib"
14508              with_readline="${with_readline}/include/readline"
14509           else
14510              with_readline="/usr/include/readline"
14511           fi
14512           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14514   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14515 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14517   echo $ECHO_N "(cached) $ECHO_C" >&6
14518 fi
14519 ac_res=`eval echo '${'$as_ac_Header'}'`
14520                { echo "$as_me:$LINENO: result: $ac_res" >&5
14521 echo "${ECHO_T}$ac_res" >&6; }
14522 else
14523   # Is the header compilable?
14524 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14525 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 $ac_includes_default
14533 #include <${with_readline}/readline.h>
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (ac_try="$ac_compile"
14537 case "(($ac_try" in
14538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539   *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542   (eval "$ac_compile") 2>conftest.er1
14543   ac_status=$?
14544   grep -v '^ *+' conftest.er1 >conftest.err
14545   rm -f conftest.er1
14546   cat conftest.err >&5
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } && {
14549          test -z "$ac_c_werror_flag" ||
14550          test ! -s conftest.err
14551        } && test -s conftest.$ac_objext; then
14552   ac_header_compiler=yes
14553 else
14554   echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557         ac_header_compiler=no
14558 fi
14559
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14562 echo "${ECHO_T}$ac_header_compiler" >&6; }
14563
14564 # Is the header present?
14565 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14566 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14567 cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h.  */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h.  */
14573 #include <${with_readline}/readline.h>
14574 _ACEOF
14575 if { (ac_try="$ac_cpp conftest.$ac_ext"
14576 case "(($ac_try" in
14577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578   *) ac_try_echo=$ac_try;;
14579 esac
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14582   ac_status=$?
14583   grep -v '^ *+' conftest.er1 >conftest.err
14584   rm -f conftest.er1
14585   cat conftest.err >&5
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); } >/dev/null && {
14588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14589          test ! -s conftest.err
14590        }; then
14591   ac_header_preproc=yes
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596   ac_header_preproc=no
14597 fi
14598
14599 rm -f conftest.err conftest.$ac_ext
14600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14601 echo "${ECHO_T}$ac_header_preproc" >&6; }
14602
14603 # So?  What about this header?
14604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14605   yes:no: )
14606     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14607 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14608     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14609 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14610     ac_header_preproc=yes
14611     ;;
14612   no:yes:* )
14613     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14614 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14615     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14616 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14617     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14618 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14619     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14620 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14621     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14622 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14623     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14624 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14625
14626     ;;
14627 esac
14628 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14629 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14631   echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633   eval "$as_ac_Header=\$ac_header_preproc"
14634 fi
14635 ac_res=`eval echo '${'$as_ac_Header'}'`
14636                { echo "$as_me:$LINENO: result: $ac_res" >&5
14637 echo "${ECHO_T}$ac_res" >&6; }
14638
14639 fi
14640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14641
14642 cat >>confdefs.h <<\_ACEOF
14643 #define HAVE_READLINE 1
14644 _ACEOF
14645
14646                CONS_LIBS="-lreadline -lhistory -ltermcap"
14647                got_readline="yes"
14648
14649 else
14650    echo " "
14651                echo "readline.h not found. readline turned off ..."
14652                echo " "
14653
14654
14655 fi
14656
14657
14658           ;;
14659         esac
14660
14661 else
14662
14663        # check for standard readline library
14664        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14665   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14666 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14667 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 fi
14670 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14671 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14672 else
14673   # Is the header compilable?
14674 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14675 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h.  */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h.  */
14682 $ac_includes_default
14683 #include </usr/include/readline/readline.h>
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689   *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692   (eval "$ac_compile") 2>conftest.er1
14693   ac_status=$?
14694   grep -v '^ *+' conftest.er1 >conftest.err
14695   rm -f conftest.er1
14696   cat conftest.err >&5
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); } && {
14699          test -z "$ac_c_werror_flag" ||
14700          test ! -s conftest.err
14701        } && test -s conftest.$ac_objext; then
14702   ac_header_compiler=yes
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707         ac_header_compiler=no
14708 fi
14709
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14713
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14716 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 #include </usr/include/readline/readline.h>
14724 _ACEOF
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728   *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14732   ac_status=$?
14733   grep -v '^ *+' conftest.er1 >conftest.err
14734   rm -f conftest.er1
14735   cat conftest.err >&5
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); } >/dev/null && {
14738          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14739          test ! -s conftest.err
14740        }; then
14741   ac_header_preproc=yes
14742 else
14743   echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746   ac_header_preproc=no
14747 fi
14748
14749 rm -f conftest.err conftest.$ac_ext
14750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6; }
14752
14753 # So?  What about this header?
14754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14755   yes:no: )
14756     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14759 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14760     ac_header_preproc=yes
14761     ;;
14762   no:yes:* )
14763     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14764 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14765     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14766 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14768 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14769     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14770 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14771     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14772 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14773     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14774 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14775
14776     ;;
14777 esac
14778 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14779 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14780 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14781   echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14784 fi
14785 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14786 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14787
14788 fi
14789 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_READLINE 1
14793 _ACEOF
14794
14795            got_readline="yes"
14796            CONS_INC="-I/usr/include/readline"
14797            CONS_LIBS="-lreadline -ltermcap"
14798
14799 else
14800
14801            # Did not find standard library, so try Bacula's default
14802             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14804   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14805 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 fi
14809 ac_res=`eval echo '${'$as_ac_Header'}'`
14810                { echo "$as_me:$LINENO: result: $ac_res" >&5
14811 echo "${ECHO_T}$ac_res" >&6; }
14812 else
14813   # Is the header compilable?
14814 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14815 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822 $ac_includes_default
14823 #include <${TOP_DIR}/depkgs/readline/readline.h>
14824 _ACEOF
14825 rm -f conftest.$ac_objext
14826 if { (ac_try="$ac_compile"
14827 case "(($ac_try" in
14828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829   *) ac_try_echo=$ac_try;;
14830 esac
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832   (eval "$ac_compile") 2>conftest.er1
14833   ac_status=$?
14834   grep -v '^ *+' conftest.er1 >conftest.err
14835   rm -f conftest.er1
14836   cat conftest.err >&5
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } && {
14839          test -z "$ac_c_werror_flag" ||
14840          test ! -s conftest.err
14841        } && test -s conftest.$ac_objext; then
14842   ac_header_compiler=yes
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847         ac_header_compiler=no
14848 fi
14849
14850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852 echo "${ECHO_T}$ac_header_compiler" >&6; }
14853
14854 # Is the header present?
14855 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14856 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 #include <${TOP_DIR}/depkgs/readline/readline.h>
14864 _ACEOF
14865 if { (ac_try="$ac_cpp conftest.$ac_ext"
14866 case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14872   ac_status=$?
14873   grep -v '^ *+' conftest.er1 >conftest.err
14874   rm -f conftest.er1
14875   cat conftest.err >&5
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } >/dev/null && {
14878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14879          test ! -s conftest.err
14880        }; then
14881   ac_header_preproc=yes
14882 else
14883   echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14885
14886   ac_header_preproc=no
14887 fi
14888
14889 rm -f conftest.err conftest.$ac_ext
14890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14891 echo "${ECHO_T}$ac_header_preproc" >&6; }
14892
14893 # So?  What about this header?
14894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14895   yes:no: )
14896     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14897 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14898     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14899 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14900     ac_header_preproc=yes
14901     ;;
14902   no:yes:* )
14903     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14904 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14905     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14906 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14907     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14908 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14909     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14910 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14911     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14912 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14913     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14914 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14915
14916     ;;
14917 esac
14918 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14919 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923   eval "$as_ac_Header=\$ac_header_preproc"
14924 fi
14925 ac_res=`eval echo '${'$as_ac_Header'}'`
14926                { echo "$as_me:$LINENO: result: $ac_res" >&5
14927 echo "${ECHO_T}$ac_res" >&6; }
14928
14929 fi
14930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14931
14932 cat >>confdefs.h <<\_ACEOF
14933 #define HAVE_READLINE 1
14934 _ACEOF
14935
14936                  got_readline="yes"
14937                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14938                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14939                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14940                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14941
14942 else
14943    echo " "
14944                 echo "readline.h not found. readline turned off ..."
14945                 echo " "
14946
14947
14948 fi
14949
14950
14951
14952
14953 fi
14954
14955
14956
14957
14958 fi
14959
14960 fi
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971 # Minimal stuff for readline Makefile configuration
14972 MAKE_SHELL=/bin/sh
14973
14974 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14975 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14976 if test "${ac_cv_header_stat_broken+set}" = set; then
14977   echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979   cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h.  */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h.  */
14985 #include <sys/types.h>
14986 #include <sys/stat.h>
14987
14988 #if defined S_ISBLK && defined S_IFDIR
14989 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14990 #endif
14991
14992 #if defined S_ISBLK && defined S_IFCHR
14993 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14994 #endif
14995
14996 #if defined S_ISLNK && defined S_IFREG
14997 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14998 #endif
14999
15000 #if defined S_ISSOCK && defined S_IFREG
15001 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15002 #endif
15003
15004 _ACEOF
15005 rm -f conftest.$ac_objext
15006 if { (ac_try="$ac_compile"
15007 case "(($ac_try" in
15008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009   *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012   (eval "$ac_compile") 2>conftest.er1
15013   ac_status=$?
15014   grep -v '^ *+' conftest.er1 >conftest.err
15015   rm -f conftest.er1
15016   cat conftest.err >&5
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); } && {
15019          test -z "$ac_c_werror_flag" ||
15020          test ! -s conftest.err
15021        } && test -s conftest.$ac_objext; then
15022   ac_cv_header_stat_broken=no
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027         ac_cv_header_stat_broken=yes
15028 fi
15029
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031 fi
15032 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15033 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15034 if test $ac_cv_header_stat_broken = yes; then
15035
15036 cat >>confdefs.h <<\_ACEOF
15037 #define STAT_MACROS_BROKEN 1
15038 _ACEOF
15039
15040 fi
15041
15042
15043
15044
15045
15046
15047 ac_header_dirent=no
15048 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15049   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15050 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15051 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 #include <sys/types.h>
15062 #include <$ac_hdr>
15063
15064 int
15065 main ()
15066 {
15067 if ((DIR *) 0)
15068 return 0;
15069   ;
15070   return 0;
15071 }
15072 _ACEOF
15073 rm -f conftest.$ac_objext
15074 if { (ac_try="$ac_compile"
15075 case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_compile") 2>conftest.er1
15081   ac_status=$?
15082   grep -v '^ *+' conftest.er1 >conftest.err
15083   rm -f conftest.er1
15084   cat conftest.err >&5
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); } && {
15087          test -z "$ac_c_werror_flag" ||
15088          test ! -s conftest.err
15089        } && test -s conftest.$ac_objext; then
15090   eval "$as_ac_Header=yes"
15091 else
15092   echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15094
15095         eval "$as_ac_Header=no"
15096 fi
15097
15098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099 fi
15100 ac_res=`eval echo '${'$as_ac_Header'}'`
15101                { echo "$as_me:$LINENO: result: $ac_res" >&5
15102 echo "${ECHO_T}$ac_res" >&6; }
15103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15104   cat >>confdefs.h <<_ACEOF
15105 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15106 _ACEOF
15107
15108 ac_header_dirent=$ac_hdr; break
15109 fi
15110
15111 done
15112 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15113 if test $ac_header_dirent = dirent.h; then
15114   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15115 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15116 if test "${ac_cv_search_opendir+set}" = set; then
15117   echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119   ac_func_search_save_LIBS=$LIBS
15120 cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126
15127 /* Override any GCC internal prototype to avoid an error.
15128    Use char because int might match the return type of a GCC
15129    builtin and then its argument prototype would still apply.  */
15130 #ifdef __cplusplus
15131 extern "C"
15132 #endif
15133 char opendir ();
15134 int
15135 main ()
15136 {
15137 return opendir ();
15138   ;
15139   return 0;
15140 }
15141 _ACEOF
15142 for ac_lib in '' dir; do
15143   if test -z "$ac_lib"; then
15144     ac_res="none required"
15145   else
15146     ac_res=-l$ac_lib
15147     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15148   fi
15149   rm -f conftest.$ac_objext conftest$ac_exeext
15150 if { (ac_try="$ac_link"
15151 case "(($ac_try" in
15152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153   *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156   (eval "$ac_link") 2>conftest.er1
15157   ac_status=$?
15158   grep -v '^ *+' conftest.er1 >conftest.err
15159   rm -f conftest.er1
15160   cat conftest.err >&5
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } && {
15163          test -z "$ac_c_werror_flag" ||
15164          test ! -s conftest.err
15165        } && test -s conftest$ac_exeext &&
15166        $as_test_x conftest$ac_exeext; then
15167   ac_cv_search_opendir=$ac_res
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172
15173 fi
15174
15175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15176       conftest$ac_exeext
15177   if test "${ac_cv_search_opendir+set}" = set; then
15178   break
15179 fi
15180 done
15181 if test "${ac_cv_search_opendir+set}" = set; then
15182   :
15183 else
15184   ac_cv_search_opendir=no
15185 fi
15186 rm conftest.$ac_ext
15187 LIBS=$ac_func_search_save_LIBS
15188 fi
15189 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15190 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15191 ac_res=$ac_cv_search_opendir
15192 if test "$ac_res" != no; then
15193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15194
15195 fi
15196
15197 else
15198   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15199 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15200 if test "${ac_cv_search_opendir+set}" = set; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   ac_func_search_save_LIBS=$LIBS
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210
15211 /* Override any GCC internal prototype to avoid an error.
15212    Use char because int might match the return type of a GCC
15213    builtin and then its argument prototype would still apply.  */
15214 #ifdef __cplusplus
15215 extern "C"
15216 #endif
15217 char opendir ();
15218 int
15219 main ()
15220 {
15221 return opendir ();
15222   ;
15223   return 0;
15224 }
15225 _ACEOF
15226 for ac_lib in '' x; do
15227   if test -z "$ac_lib"; then
15228     ac_res="none required"
15229   else
15230     ac_res=-l$ac_lib
15231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15232   fi
15233   rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (ac_try="$ac_link"
15235 case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_link") 2>conftest.er1
15241   ac_status=$?
15242   grep -v '^ *+' conftest.er1 >conftest.err
15243   rm -f conftest.er1
15244   cat conftest.err >&5
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } && {
15247          test -z "$ac_c_werror_flag" ||
15248          test ! -s conftest.err
15249        } && test -s conftest$ac_exeext &&
15250        $as_test_x conftest$ac_exeext; then
15251   ac_cv_search_opendir=$ac_res
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256
15257 fi
15258
15259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15260       conftest$ac_exeext
15261   if test "${ac_cv_search_opendir+set}" = set; then
15262   break
15263 fi
15264 done
15265 if test "${ac_cv_search_opendir+set}" = set; then
15266   :
15267 else
15268   ac_cv_search_opendir=no
15269 fi
15270 rm conftest.$ac_ext
15271 LIBS=$ac_func_search_save_LIBS
15272 fi
15273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15275 ac_res=$ac_cv_search_opendir
15276 if test "$ac_res" != no; then
15277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15278
15279 fi
15280
15281 fi
15282
15283
15284
15285
15286
15287
15288
15289
15290 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15291 do
15292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 else
15298   cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15306 #define $ac_func innocuous_$ac_func
15307
15308 /* System header to define __stub macros and hopefully few prototypes,
15309     which can conflict with char $ac_func (); below.
15310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15311     <limits.h> exists even on freestanding compilers.  */
15312
15313 #ifdef __STDC__
15314 # include <limits.h>
15315 #else
15316 # include <assert.h>
15317 #endif
15318
15319 #undef $ac_func
15320
15321 /* Override any GCC internal prototype to avoid an error.
15322    Use char because int might match the return type of a GCC
15323    builtin and then its argument prototype would still apply.  */
15324 #ifdef __cplusplus
15325 extern "C"
15326 #endif
15327 char $ac_func ();
15328 /* The GNU C library defines this for functions which it implements
15329     to always fail with ENOSYS.  Some functions are actually named
15330     something starting with __ and the normal name is an alias.  */
15331 #if defined __stub_$ac_func || defined __stub___$ac_func
15332 choke me
15333 #endif
15334
15335 int
15336 main ()
15337 {
15338 return $ac_func ();
15339   ;
15340   return 0;
15341 }
15342 _ACEOF
15343 rm -f conftest.$ac_objext conftest$ac_exeext
15344 if { (ac_try="$ac_link"
15345 case "(($ac_try" in
15346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347   *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350   (eval "$ac_link") 2>conftest.er1
15351   ac_status=$?
15352   grep -v '^ *+' conftest.er1 >conftest.err
15353   rm -f conftest.er1
15354   cat conftest.err >&5
15355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356   (exit $ac_status); } && {
15357          test -z "$ac_c_werror_flag" ||
15358          test ! -s conftest.err
15359        } && test -s conftest$ac_exeext &&
15360        $as_test_x conftest$ac_exeext; then
15361   eval "$as_ac_var=yes"
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366         eval "$as_ac_var=no"
15367 fi
15368
15369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15370       conftest$ac_exeext conftest.$ac_ext
15371 fi
15372 ac_res=`eval echo '${'$as_ac_var'}'`
15373                { echo "$as_me:$LINENO: result: $ac_res" >&5
15374 echo "${ECHO_T}$ac_res" >&6; }
15375 if test `eval echo '${'$as_ac_var'}'` = yes; then
15376   cat >>confdefs.h <<_ACEOF
15377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15378 _ACEOF
15379
15380 fi
15381 done
15382
15383
15384
15385 for ac_func in nanosleep nl_langinfo
15386 do
15387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393   cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15401 #define $ac_func innocuous_$ac_func
15402
15403 /* System header to define __stub macros and hopefully few prototypes,
15404     which can conflict with char $ac_func (); below.
15405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15406     <limits.h> exists even on freestanding compilers.  */
15407
15408 #ifdef __STDC__
15409 # include <limits.h>
15410 #else
15411 # include <assert.h>
15412 #endif
15413
15414 #undef $ac_func
15415
15416 /* Override any GCC internal prototype to avoid an error.
15417    Use char because int might match the return type of a GCC
15418    builtin and then its argument prototype would still apply.  */
15419 #ifdef __cplusplus
15420 extern "C"
15421 #endif
15422 char $ac_func ();
15423 /* The GNU C library defines this for functions which it implements
15424     to always fail with ENOSYS.  Some functions are actually named
15425     something starting with __ and the normal name is an alias.  */
15426 #if defined __stub_$ac_func || defined __stub___$ac_func
15427 choke me
15428 #endif
15429
15430 int
15431 main ()
15432 {
15433 return $ac_func ();
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442   *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445   (eval "$ac_link") 2>conftest.er1
15446   ac_status=$?
15447   grep -v '^ *+' conftest.er1 >conftest.err
15448   rm -f conftest.er1
15449   cat conftest.err >&5
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); } && {
15452          test -z "$ac_c_werror_flag" ||
15453          test ! -s conftest.err
15454        } && test -s conftest$ac_exeext &&
15455        $as_test_x conftest$ac_exeext; then
15456   eval "$as_ac_var=yes"
15457 else
15458   echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461         eval "$as_ac_var=no"
15462 fi
15463
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465       conftest$ac_exeext conftest.$ac_ext
15466 fi
15467 ac_res=`eval echo '${'$as_ac_var'}'`
15468                { echo "$as_me:$LINENO: result: $ac_res" >&5
15469 echo "${ECHO_T}$ac_res" >&6; }
15470 if test `eval echo '${'$as_ac_var'}'` = yes; then
15471   cat >>confdefs.h <<_ACEOF
15472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15473 _ACEOF
15474
15475 fi
15476 done
15477
15478
15479 for ac_header in varargs.h
15480 do
15481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15486   echo $ECHO_N "(cached) $ECHO_C" >&6
15487 fi
15488 ac_res=`eval echo '${'$as_ac_Header'}'`
15489                { echo "$as_me:$LINENO: result: $ac_res" >&5
15490 echo "${ECHO_T}$ac_res" >&6; }
15491 else
15492   # Is the header compilable?
15493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501 $ac_includes_default
15502 #include <$ac_header>
15503 _ACEOF
15504 rm -f conftest.$ac_objext
15505 if { (ac_try="$ac_compile"
15506 case "(($ac_try" in
15507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508   *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511   (eval "$ac_compile") 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } && {
15518          test -z "$ac_c_werror_flag" ||
15519          test ! -s conftest.err
15520        } && test -s conftest.$ac_objext; then
15521   ac_header_compiler=yes
15522 else
15523   echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526         ac_header_compiler=no
15527 fi
15528
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 echo "${ECHO_T}$ac_header_compiler" >&6; }
15532
15533 # Is the header present?
15534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542 #include <$ac_header>
15543 _ACEOF
15544 if { (ac_try="$ac_cpp conftest.$ac_ext"
15545 case "(($ac_try" in
15546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547   *) ac_try_echo=$ac_try;;
15548 esac
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } >/dev/null && {
15557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15558          test ! -s conftest.err
15559        }; then
15560   ac_header_preproc=yes
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565   ac_header_preproc=no
15566 fi
15567
15568 rm -f conftest.err conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15570 echo "${ECHO_T}$ac_header_preproc" >&6; }
15571
15572 # So?  What about this header?
15573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15574   yes:no: )
15575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15579     ac_header_preproc=yes
15580     ;;
15581   no:yes:* )
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15594
15595     ;;
15596 esac
15597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15600   echo $ECHO_N "(cached) $ECHO_C" >&6
15601 else
15602   eval "$as_ac_Header=\$ac_header_preproc"
15603 fi
15604 ac_res=`eval echo '${'$as_ac_Header'}'`
15605                { echo "$as_me:$LINENO: result: $ac_res" >&5
15606 echo "${ECHO_T}$ac_res" >&6; }
15607
15608 fi
15609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15610   cat >>confdefs.h <<_ACEOF
15611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15612 _ACEOF
15613
15614 fi
15615
15616 done
15617
15618
15619 # End of readline/conio stuff
15620 # -----------------------------------------------------------------------
15621
15622 # -----------------------------------------------------------------------
15623 #  Check for Python support
15624 #
15625 { echo "$as_me:$LINENO: checking for Python support" >&5
15626 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15627
15628 # Check whether --with-python was given.
15629 if test "${with_python+set}" = set; then
15630   withval=$with_python;
15631   PYTHON_INCDIR=
15632   PYTHON_LIBS=
15633   if test "$withval" != "no"; then
15634      if test "$withval" = "yes"; then
15635         for python_root in /usr /usr/local /usr/sfw; do
15636           for ver in python2.2 python2.3 python2.4 python2.5; do
15637              if test -f $python_root/include/${ver}/Python.h; then
15638                 PYTHON_INCDIR=-I$python_root/include/${ver}
15639                 if test -d $python_root/lib64/${ver}/config; then
15640                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15641                 else
15642                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15643                 fi
15644                 break
15645              fi
15646           done
15647         done
15648         if test x$PYTHON_INCDIR = x; then
15649           if test -f $prefix/include/Python.h; then
15650              PYTHON_INCDIR=-I$prefix/include
15651              if test -d $prefix/lib64/config; then
15652                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15653              else
15654                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15655              fi
15656           else
15657            { echo "$as_me:$LINENO: result: no" >&5
15658 echo "${ECHO_T}no" >&6; }
15659            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15660 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15661    { (exit 1); exit 1; }; }
15662           fi
15663         fi
15664      else
15665         if test -f $withval/Python.h; then
15666            PYTHON_INCDIR=-I$withval
15667            PYTHON_LIBS="-L$withval/config -lpython"
15668         elif test -f $withval/include/Python.h; then
15669            PYTHON_INCDIR=-I$withval/include
15670            if test -d $withval/lib64/config; then
15671               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15672            else
15673               PYTHON_LIBS="-L$withval/lib/config -lpython"
15674            fi
15675         elif test -f $withval/include/python/Python.h; then
15676            PYTHON_INCDIR=-I$withval/include/python
15677            if test -d $withval/lib64/python/config; then
15678               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15679            else
15680               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15681            fi
15682         else
15683            { echo "$as_me:$LINENO: result: no" >&5
15684 echo "${ECHO_T}no" >&6; }
15685            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15686 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15687    { (exit 1); exit 1; }; }
15688         fi
15689      fi
15690      cat >>confdefs.h <<\_ACEOF
15691 #define HAVE_PYTHON 1
15692 _ACEOF
15693
15694      { echo "$as_me:$LINENO: result: yes" >&5
15695 echo "${ECHO_T}yes" >&6; }
15696      support_python=yes
15697      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15698 echo "$as_me: checking for more Python libs" >&6;}
15699      saved_LIBS="$LIBS"; LIBS=
15700      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15701 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15702 if test "${ac_cv_search_shm_open+set}" = set; then
15703   echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705   ac_func_search_save_LIBS=$LIBS
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712
15713 /* Override any GCC internal prototype to avoid an error.
15714    Use char because int might match the return type of a GCC
15715    builtin and then its argument prototype would still apply.  */
15716 #ifdef __cplusplus
15717 extern "C"
15718 #endif
15719 char shm_open ();
15720 int
15721 main ()
15722 {
15723 return shm_open ();
15724   ;
15725   return 0;
15726 }
15727 _ACEOF
15728 for ac_lib in '' rt; do
15729   if test -z "$ac_lib"; then
15730     ac_res="none required"
15731   else
15732     ac_res=-l$ac_lib
15733     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15734   fi
15735   rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (ac_try="$ac_link"
15737 case "(($ac_try" in
15738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739   *) ac_try_echo=$ac_try;;
15740 esac
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742   (eval "$ac_link") 2>conftest.er1
15743   ac_status=$?
15744   grep -v '^ *+' conftest.er1 >conftest.err
15745   rm -f conftest.er1
15746   cat conftest.err >&5
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); } && {
15749          test -z "$ac_c_werror_flag" ||
15750          test ! -s conftest.err
15751        } && test -s conftest$ac_exeext &&
15752        $as_test_x conftest$ac_exeext; then
15753   ac_cv_search_shm_open=$ac_res
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758
15759 fi
15760
15761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762       conftest$ac_exeext
15763   if test "${ac_cv_search_shm_open+set}" = set; then
15764   break
15765 fi
15766 done
15767 if test "${ac_cv_search_shm_open+set}" = set; then
15768   :
15769 else
15770   ac_cv_search_shm_open=no
15771 fi
15772 rm conftest.$ac_ext
15773 LIBS=$ac_func_search_save_LIBS
15774 fi
15775 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15776 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15777 ac_res=$ac_cv_search_shm_open
15778 if test "$ac_res" != no; then
15779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15780
15781 fi
15782
15783
15784 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15785 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15786 if test "${ac_cv_lib_util_openpty+set}" = set; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   ac_check_lib_save_LIBS=$LIBS
15790 LIBS="-lutil  $LIBS"
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797
15798 /* Override any GCC internal prototype to avoid an error.
15799    Use char because int might match the return type of a GCC
15800    builtin and then its argument prototype would still apply.  */
15801 #ifdef __cplusplus
15802 extern "C"
15803 #endif
15804 char openpty ();
15805 int
15806 main ()
15807 {
15808 return openpty ();
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (ac_try="$ac_link"
15815 case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_link") 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } && {
15827          test -z "$ac_c_werror_flag" ||
15828          test ! -s conftest.err
15829        } && test -s conftest$ac_exeext &&
15830        $as_test_x conftest$ac_exeext; then
15831   ac_cv_lib_util_openpty=yes
15832 else
15833   echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15835
15836         ac_cv_lib_util_openpty=no
15837 fi
15838
15839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15840       conftest$ac_exeext conftest.$ac_ext
15841 LIBS=$ac_check_lib_save_LIBS
15842 fi
15843 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15844 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15845 if test $ac_cv_lib_util_openpty = yes; then
15846   cat >>confdefs.h <<_ACEOF
15847 #define HAVE_LIBUTIL 1
15848 _ACEOF
15849
15850   LIBS="-lutil $LIBS"
15851
15852 fi
15853
15854      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15855      LIBS="$saved_LIBS"
15856   else
15857      { echo "$as_me:$LINENO: result: no" >&5
15858 echo "${ECHO_T}no" >&6; }
15859   fi
15860
15861 else
15862
15863   { echo "$as_me:$LINENO: result: no" >&5
15864 echo "${ECHO_T}no" >&6; }
15865
15866 fi
15867
15868
15869
15870
15871 #
15872 # Find where sockets are (especially for Solaris)
15873 # Do this before the TCP Wrappers test since tcp wrappers
15874 # uses the socket library and some linkers are stupid.
15875 #
15876 { echo "$as_me:$LINENO: checking for socket" >&5
15877 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15878 if test "${ac_cv_func_socket+set}" = set; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881   cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h.  */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h.  */
15887 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15889 #define socket innocuous_socket
15890
15891 /* System header to define __stub macros and hopefully few prototypes,
15892     which can conflict with char socket (); below.
15893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894     <limits.h> exists even on freestanding compilers.  */
15895
15896 #ifdef __STDC__
15897 # include <limits.h>
15898 #else
15899 # include <assert.h>
15900 #endif
15901
15902 #undef socket
15903
15904 /* Override any GCC internal prototype to avoid an error.
15905    Use char because int might match the return type of a GCC
15906    builtin and then its argument prototype would still apply.  */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char socket ();
15911 /* The GNU C library defines this for functions which it implements
15912     to always fail with ENOSYS.  Some functions are actually named
15913     something starting with __ and the normal name is an alias.  */
15914 #if defined __stub_socket || defined __stub___socket
15915 choke me
15916 #endif
15917
15918 int
15919 main ()
15920 {
15921 return socket ();
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933   (eval "$ac_link") 2>conftest.er1
15934   ac_status=$?
15935   grep -v '^ *+' conftest.er1 >conftest.err
15936   rm -f conftest.er1
15937   cat conftest.err >&5
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); } && {
15940          test -z "$ac_c_werror_flag" ||
15941          test ! -s conftest.err
15942        } && test -s conftest$ac_exeext &&
15943        $as_test_x conftest$ac_exeext; then
15944   ac_cv_func_socket=yes
15945 else
15946   echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949         ac_cv_func_socket=no
15950 fi
15951
15952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15953       conftest$ac_exeext conftest.$ac_ext
15954 fi
15955 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15956 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15957 if test $ac_cv_func_socket = yes; then
15958   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15959 echo "${ECHO_T}using libc's socket" >&6; }
15960 else
15961
15962 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15963 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15964 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967   ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-lxnet  $LIBS"
15969 cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h.  */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h.  */
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977    Use char because int might match the return type of a GCC
15978    builtin and then its argument prototype would still apply.  */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char socket ();
15983 int
15984 main ()
15985 {
15986 return socket ();
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995   *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998   (eval "$ac_link") 2>conftest.er1
15999   ac_status=$?
16000   grep -v '^ *+' conftest.er1 >conftest.err
16001   rm -f conftest.er1
16002   cat conftest.err >&5
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); } && {
16005          test -z "$ac_c_werror_flag" ||
16006          test ! -s conftest.err
16007        } && test -s conftest$ac_exeext &&
16008        $as_test_x conftest$ac_exeext; then
16009   ac_cv_lib_xnet_socket=yes
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014         ac_cv_lib_xnet_socket=no
16015 fi
16016
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018       conftest$ac_exeext conftest.$ac_ext
16019 LIBS=$ac_check_lib_save_LIBS
16020 fi
16021 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16022 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16023 if test $ac_cv_lib_xnet_socket = yes; then
16024   cat >>confdefs.h <<_ACEOF
16025 #define HAVE_LIBXNET 1
16026 _ACEOF
16027
16028   LIBS="-lxnet $LIBS"
16029
16030 fi
16031
16032
16033 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16034 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16035 if test "${ac_cv_lib_socket_socket+set}" = set; then
16036   echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038   ac_check_lib_save_LIBS=$LIBS
16039 LIBS="-lsocket  $LIBS"
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h.  */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h.  */
16046
16047 /* Override any GCC internal prototype to avoid an error.
16048    Use char because int might match the return type of a GCC
16049    builtin and then its argument prototype would still apply.  */
16050 #ifdef __cplusplus
16051 extern "C"
16052 #endif
16053 char socket ();
16054 int
16055 main ()
16056 {
16057 return socket ();
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (ac_try="$ac_link"
16064 case "(($ac_try" in
16065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066   *) ac_try_echo=$ac_try;;
16067 esac
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069   (eval "$ac_link") 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } && {
16076          test -z "$ac_c_werror_flag" ||
16077          test ! -s conftest.err
16078        } && test -s conftest$ac_exeext &&
16079        $as_test_x conftest$ac_exeext; then
16080   ac_cv_lib_socket_socket=yes
16081 else
16082   echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085         ac_cv_lib_socket_socket=no
16086 fi
16087
16088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16089       conftest$ac_exeext conftest.$ac_ext
16090 LIBS=$ac_check_lib_save_LIBS
16091 fi
16092 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16093 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16094 if test $ac_cv_lib_socket_socket = yes; then
16095   cat >>confdefs.h <<_ACEOF
16096 #define HAVE_LIBSOCKET 1
16097 _ACEOF
16098
16099   LIBS="-lsocket $LIBS"
16100
16101 fi
16102
16103
16104 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16105 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16106 if test "${ac_cv_lib_inet_socket+set}" = set; then
16107   echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109   ac_check_lib_save_LIBS=$LIBS
16110 LIBS="-linet  $LIBS"
16111 cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117
16118 /* Override any GCC internal prototype to avoid an error.
16119    Use char because int might match the return type of a GCC
16120    builtin and then its argument prototype would still apply.  */
16121 #ifdef __cplusplus
16122 extern "C"
16123 #endif
16124 char socket ();
16125 int
16126 main ()
16127 {
16128 return socket ();
16129   ;
16130   return 0;
16131 }
16132 _ACEOF
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137   *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140   (eval "$ac_link") 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } && {
16147          test -z "$ac_c_werror_flag" ||
16148          test ! -s conftest.err
16149        } && test -s conftest$ac_exeext &&
16150        $as_test_x conftest$ac_exeext; then
16151   ac_cv_lib_inet_socket=yes
16152 else
16153   echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16155
16156         ac_cv_lib_inet_socket=no
16157 fi
16158
16159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16160       conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16162 fi
16163 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16164 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16165 if test $ac_cv_lib_inet_socket = yes; then
16166   cat >>confdefs.h <<_ACEOF
16167 #define HAVE_LIBINET 1
16168 _ACEOF
16169
16170   LIBS="-linet $LIBS"
16171
16172 fi
16173
16174 fi
16175
16176
16177
16178 # -----------------------------------------------------------
16179 # Check whether user wants TCP wrappers support (default off)
16180 # -----------------------------------------------------------
16181 TCPW_MSG="no"
16182 WRAPLIBS=""
16183
16184 # Check whether --with-tcp-wrappers was given.
16185 if test "${with_tcp_wrappers+set}" = set; then
16186   withval=$with_tcp_wrappers;
16187     if test "x$withval" != "xno" ; then
16188        saved_LIBS="$LIBS"
16189        LIBS="$saved_LIBS -lwrap"
16190        { echo "$as_me:$LINENO: checking for libwrap" >&5
16191 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16192        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16193 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16194 if test "${ac_cv_search_nanosleep+set}" = set; then
16195   echo $ECHO_N "(cached) $ECHO_C" >&6
16196 else
16197   ac_func_search_save_LIBS=$LIBS
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204
16205 /* Override any GCC internal prototype to avoid an error.
16206    Use char because int might match the return type of a GCC
16207    builtin and then its argument prototype would still apply.  */
16208 #ifdef __cplusplus
16209 extern "C"
16210 #endif
16211 char nanosleep ();
16212 int
16213 main ()
16214 {
16215 return nanosleep ();
16216   ;
16217   return 0;
16218 }
16219 _ACEOF
16220 for ac_lib in '' rt; do
16221   if test -z "$ac_lib"; then
16222     ac_res="none required"
16223   else
16224     ac_res=-l$ac_lib
16225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16226   fi
16227   rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (ac_try="$ac_link"
16229 case "(($ac_try" in
16230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231   *) ac_try_echo=$ac_try;;
16232 esac
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234   (eval "$ac_link") 2>conftest.er1
16235   ac_status=$?
16236   grep -v '^ *+' conftest.er1 >conftest.err
16237   rm -f conftest.er1
16238   cat conftest.err >&5
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); } && {
16241          test -z "$ac_c_werror_flag" ||
16242          test ! -s conftest.err
16243        } && test -s conftest$ac_exeext &&
16244        $as_test_x conftest$ac_exeext; then
16245   ac_cv_search_nanosleep=$ac_res
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250
16251 fi
16252
16253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16254       conftest$ac_exeext
16255   if test "${ac_cv_search_nanosleep+set}" = set; then
16256   break
16257 fi
16258 done
16259 if test "${ac_cv_search_nanosleep+set}" = set; then
16260   :
16261 else
16262   ac_cv_search_nanosleep=no
16263 fi
16264 rm conftest.$ac_ext
16265 LIBS=$ac_func_search_save_LIBS
16266 fi
16267 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16268 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16269 ac_res=$ac_cv_search_nanosleep
16270 if test "$ac_res" != no; then
16271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16272
16273 fi
16274
16275        cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h.  */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h.  */
16281  #include <sys/types.h>
16282             #include <tcpd.h>
16283              int deny_severity = 0;
16284              int allow_severity = 0;
16285              struct request_info *req;
16286 int
16287 main ()
16288 {
16289  hosts_access(req);
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (ac_try="$ac_link"
16296 case "(($ac_try" in
16297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298   *) ac_try_echo=$ac_try;;
16299 esac
16300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16301   (eval "$ac_link") 2>conftest.er1
16302   ac_status=$?
16303   grep -v '^ *+' conftest.er1 >conftest.err
16304   rm -f conftest.er1
16305   cat conftest.err >&5
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); } && {
16308          test -z "$ac_c_werror_flag" ||
16309          test ! -s conftest.err
16310        } && test -s conftest$ac_exeext &&
16311        $as_test_x conftest$ac_exeext; then
16312
16313             { echo "$as_me:$LINENO: result: yes" >&5
16314 echo "${ECHO_T}yes" >&6; }
16315
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_LIBWRAP 1
16318 _ACEOF
16319
16320             TCPW_MSG="yes"
16321             LIBS="$saved_LIBS"
16322             WRAPLIBS="-lwrap"
16323
16324 else
16325   echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328
16329             LIBS="$saved_LIBS -lwrap -lnsl"
16330             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16331             cat >conftest.$ac_ext <<_ACEOF
16332 /* confdefs.h.  */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h.  */
16337  #include <sys/types.h>
16338                  #include <tcpd.h>
16339                  int deny_severity = 0;
16340                  int allow_severity = 0;
16341                  struct request_info *req;
16342 int
16343 main ()
16344 {
16345  hosts_access(req);
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 rm -f conftest.$ac_objext conftest$ac_exeext
16351 if { (ac_try="$ac_link"
16352 case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357   (eval "$ac_link") 2>conftest.er1
16358   ac_status=$?
16359   grep -v '^ *+' conftest.er1 >conftest.err
16360   rm -f conftest.er1
16361   cat conftest.err >&5
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); } && {
16364          test -z "$ac_c_werror_flag" ||
16365          test ! -s conftest.err
16366        } && test -s conftest$ac_exeext &&
16367        $as_test_x conftest$ac_exeext; then
16368
16369                  { echo "$as_me:$LINENO: result: yes" >&5
16370 echo "${ECHO_T}yes" >&6; }
16371
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_LIBWRAP 1
16374 _ACEOF
16375
16376                  TCPW_MSG="yes"
16377                  LIBS="$saved_LIBS"
16378                  WRAPLIBS="-lwrap"
16379
16380 else
16381   echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16383
16384         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16385 echo "$as_me: error: *** libwrap missing" >&2;}
16386    { (exit 1); exit 1; }; }
16387
16388 fi
16389
16390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16391       conftest$ac_exeext conftest.$ac_ext
16392
16393 fi
16394
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396       conftest$ac_exeext conftest.$ac_ext
16397     fi
16398
16399
16400 fi
16401
16402
16403 # -----------------------------------------------------------
16404 # Check whether OpenSSL is available
16405 # -----------------------------------------------------------
16406 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16407 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16408
16409 # Check whether --with-openssl was given.
16410 if test "${with_openssl+set}" = set; then
16411   withval=$with_openssl; with_openssl_directory=${withval}
16412 fi
16413
16414
16415 if test "x$with_openssl_directory" != "x"; then
16416         OPENSSL_LIBS="-lssl -lcrypto"
16417         OPENSSL_INC=""
16418
16419         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16420                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16421                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16422         fi
16423
16424         saved_LIBS="${LIBS}"
16425         saved_CFLAGS="${CFLAGS}"
16426         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16427         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16428
16429         cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h.  */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h.  */
16435  #include <openssl/ssl.h>
16436 int
16437 main ()
16438 {
16439  CRYPTO_set_id_callback(NULL);
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (ac_try="$ac_link"
16446 case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_link") 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } && {
16458          test -z "$ac_c_werror_flag" ||
16459          test ! -s conftest.err
16460        } && test -s conftest$ac_exeext &&
16461        $as_test_x conftest$ac_exeext; then
16462
16463                         support_tls="yes"
16464                         support_crypto="yes"
16465
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470          support_tls="no"
16471
16472 fi
16473
16474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16475       conftest$ac_exeext conftest.$ac_ext
16476
16477         cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h.  */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h.  */
16483  #include <openssl/evp.h>
16484 int
16485 main ()
16486 {
16487  EVP_sha512();
16488   ;
16489   return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496   *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499   (eval "$ac_link") 2>conftest.er1
16500   ac_status=$?
16501   grep -v '^ *+' conftest.er1 >conftest.err
16502   rm -f conftest.er1
16503   cat conftest.err >&5
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); } && {
16506          test -z "$ac_c_werror_flag" ||
16507          test ! -s conftest.err
16508        } && test -s conftest$ac_exeext &&
16509        $as_test_x conftest$ac_exeext; then
16510    ac_cv_openssl_sha2="yes"
16511 else
16512   echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16514
16515          ac_cv_openssl_sha2="no"
16516
16517 fi
16518
16519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16520       conftest$ac_exeext conftest.$ac_ext
16521
16522         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16523         # implementation, presumably for export reasons. If 192bit AES
16524         # is available, we assume that we're running with a 'non-export'
16525         # openssl library.
16526         cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h.  */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h.  */
16532  #include <openssl/evp.h>
16533 int
16534 main ()
16535 {
16536  EVP_aes_192_cbc();
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext conftest$ac_exeext
16542 if { (ac_try="$ac_link"
16543 case "(($ac_try" in
16544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545   *) ac_try_echo=$ac_try;;
16546 esac
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548   (eval "$ac_link") 2>conftest.er1
16549   ac_status=$?
16550   grep -v '^ *+' conftest.er1 >conftest.err
16551   rm -f conftest.er1
16552   cat conftest.err >&5
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); } && {
16555          test -z "$ac_c_werror_flag" ||
16556          test ! -s conftest.err
16557        } && test -s conftest$ac_exeext &&
16558        $as_test_x conftest$ac_exeext; then
16559    ac_cv_openssl_export="no"
16560 else
16561   echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564          ac_cv_openssl_export="yes"
16565
16566 fi
16567
16568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16569       conftest$ac_exeext conftest.$ac_ext
16570
16571         LIBS="${saved_LIBS}"
16572         CFLAGS="${saved_CFLAGS}"
16573
16574         if test "$support_tls" = "yes"; then
16575
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_OPENSSL 1
16578 _ACEOF
16579
16580
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE_TLS 1
16583 _ACEOF
16584
16585
16586 cat >>confdefs.h <<\_ACEOF
16587 #define HAVE_CRYPTO 1
16588 _ACEOF
16589
16590         fi
16591
16592         if test "$ac_cv_openssl_sha2" = "yes"; then
16593
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_SHA2 1
16596 _ACEOF
16597
16598         fi
16599
16600         if test "$ac_cv_openssl_export" = "yes"; then
16601
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16604 _ACEOF
16605
16606         fi
16607 else
16608         support_tls="no"
16609         support_crypto="no"
16610         OPENSSL_LIBS=""
16611         OPENSSL_INC=""
16612 fi
16613
16614 { echo "$as_me:$LINENO: result: $support_tls" >&5
16615 echo "${ECHO_T}$support_tls" >&6; }
16616
16617
16618
16619
16620 # -----------------------------------------------------------
16621 # dlopen is needed for plugins
16622 # -----------------------------------------------------------
16623 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16624 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16625 if test "${ac_cv_search_dlopen+set}" = set; then
16626   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628   ac_func_search_save_LIBS=$LIBS
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635
16636 /* Override any GCC internal prototype to avoid an error.
16637    Use char because int might match the return type of a GCC
16638    builtin and then its argument prototype would still apply.  */
16639 #ifdef __cplusplus
16640 extern "C"
16641 #endif
16642 char dlopen ();
16643 int
16644 main ()
16645 {
16646 return dlopen ();
16647   ;
16648   return 0;
16649 }
16650 _ACEOF
16651 for ac_lib in '' dl; do
16652   if test -z "$ac_lib"; then
16653     ac_res="none required"
16654   else
16655     ac_res=-l$ac_lib
16656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16657   fi
16658   rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (ac_try="$ac_link"
16660 case "(($ac_try" in
16661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662   *) ac_try_echo=$ac_try;;
16663 esac
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665   (eval "$ac_link") 2>conftest.er1
16666   ac_status=$?
16667   grep -v '^ *+' conftest.er1 >conftest.err
16668   rm -f conftest.er1
16669   cat conftest.err >&5
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } && {
16672          test -z "$ac_c_werror_flag" ||
16673          test ! -s conftest.err
16674        } && test -s conftest$ac_exeext &&
16675        $as_test_x conftest$ac_exeext; then
16676   ac_cv_search_dlopen=$ac_res
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681
16682 fi
16683
16684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16685       conftest$ac_exeext
16686   if test "${ac_cv_search_dlopen+set}" = set; then
16687   break
16688 fi
16689 done
16690 if test "${ac_cv_search_dlopen+set}" = set; then
16691   :
16692 else
16693   ac_cv_search_dlopen=no
16694 fi
16695 rm conftest.$ac_ext
16696 LIBS=$ac_func_search_save_LIBS
16697 fi
16698 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16699 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16700 ac_res=$ac_cv_search_dlopen
16701 if test "$ac_res" != no; then
16702   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16703
16704 fi
16705
16706
16707 # ------------------------------------------
16708 # Where to place working dir
16709 # ------------------------------------------
16710 working_dir=`eval echo ${prefix}/var/bacula/working`
16711
16712 # Check whether --with-working-dir was given.
16713 if test "${with_working_dir+set}" = set; then
16714   withval=$with_working_dir;
16715        if test "x$withval" != "xno" ; then
16716               working_dir=$withval
16717        fi
16718
16719
16720 fi
16721
16722
16723
16724
16725 # ------------------------------------------------------------------
16726 # If the user has not set archivedir, we set our default as /tmp
16727 # ------------------------------------------------------------------
16728 archive_dir=/tmp
16729
16730 # Check whether --with-archivedir was given.
16731 if test "${with_archivedir+set}" = set; then
16732   withval=$with_archivedir;
16733        if test "x$withval" != "xno" ; then
16734               archivedir=$withval
16735        fi
16736
16737
16738 fi
16739
16740
16741
16742
16743
16744
16745 # ------------------------------------------
16746 # Where to place scriptdir (script files)
16747 # ------------------------------------------
16748 scriptdir=`eval echo ${sysconfdir}`
16749
16750 # Check whether --with-scriptdir was given.
16751 if test "${with_scriptdir+set}" = set; then
16752   withval=$with_scriptdir;
16753        if test "x$withval" != "xno" ; then
16754               scriptdir=$withval
16755        fi
16756
16757
16758 fi
16759
16760
16761
16762
16763
16764 # ------------------------------------------
16765 # Where to send dump email
16766 # ------------------------------------------
16767 dump_email=root@localhost
16768
16769 # Check whether --with-dump-email was given.
16770 if test "${with_dump_email+set}" = set; then
16771   withval=$with_dump_email;
16772        if test "x$withval" != "xno" ; then
16773               dump_email=$withval
16774        fi
16775
16776
16777 fi
16778
16779
16780
16781
16782 # ------------------------------------------
16783 # Where to send job email
16784 # ------------------------------------------
16785 job_email=root@localhost
16786
16787 # Check whether --with-job-email was given.
16788 if test "${with_job_email+set}" = set; then
16789   withval=$with_job_email;
16790        if test "x$withval" != "xno" ; then
16791               job_email=$withval
16792        fi
16793
16794
16795 fi
16796
16797
16798
16799
16800 # ------------------------------------------
16801 # Where to find smtp host
16802 # ------------------------------------------
16803 smtp_host=localhost
16804
16805 # Check whether --with-smtp_host was given.
16806 if test "${with_smtp_host+set}" = set; then
16807   withval=$with_smtp_host;
16808        if test "x$withval" != "xno" ; then
16809               smtp_host=$withval
16810        fi
16811
16812
16813 fi
16814
16815
16816
16817
16818
16819 # ------------------------------------
16820 # Where to place pid files
16821 # ------------------------------------
16822 piddir=/var/run
16823
16824 # Check whether --with-pid-dir was given.
16825 if test "${with_pid_dir+set}" = set; then
16826   withval=$with_pid_dir;
16827         if test "x$withval" != "xno" ; then
16828             piddir=$withval
16829         fi
16830
16831
16832 fi
16833
16834
16835 cat >>confdefs.h <<_ACEOF
16836 #define _PATH_BACULA_PIDDIR "$piddir"
16837 _ACEOF
16838
16839
16840
16841
16842 # ------------------------------------
16843 # Where to place subsys "lock file"
16844 # ------------------------------------
16845 subsysdir=/var/run/subsys
16846 if test -d /var/run/subsys; then
16847    subsysdir=/var/run/subsys
16848 elif test -d /var/lock/subsys; then
16849    subsysdir=/var/lock/subsys
16850 else
16851    subsysdir=/var/run/subsys
16852 fi
16853
16854 # Check whether --with-subsys-dir was given.
16855 if test "${with_subsys_dir+set}" = set; then
16856   withval=$with_subsys_dir;
16857         if test "x$withval" != "xno" ; then
16858             subsysdir=$withval
16859         fi
16860
16861
16862 fi
16863
16864
16865
16866
16867
16868
16869 # ------------------------------------
16870 # Where to start assigning ports
16871 # ------------------------------------
16872 baseport=9101
16873
16874 # Check whether --with-baseport was given.
16875 if test "${with_baseport+set}" = set; then
16876   withval=$with_baseport;
16877         if test "x$withval" != "xno" ; then
16878              baseport=$withval
16879         fi
16880
16881
16882 fi
16883
16884
16885
16886 dir_port=`expr $baseport`
16887 fd_port=`expr $baseport + 1`
16888 sd_port=`expr $fd_port + 1`
16889
16890
16891
16892
16893
16894
16895 # ------------------------------------------
16896 # Generate passwords
16897 # ------------------------------------------
16898 dir_password=
16899
16900 # Check whether --with-dir-password was given.
16901 if test "${with_dir_password+set}" = set; then
16902   withval=$with_dir_password;
16903        if test "x$withval" != "xno" ; then
16904            dir_password=$withval
16905        fi
16906
16907
16908 fi
16909
16910
16911 if test "x$dir_password" = "x" ; then
16912    if test "x$OPENSSL" = "xnone" ; then
16913       key=`autoconf/randpass 33`
16914    else
16915       key=`openssl rand -base64 33`
16916    fi
16917    dir_password=$key
16918 fi
16919
16920 fd_password=
16921
16922 # Check whether --with-fd-password was given.
16923 if test "${with_fd_password+set}" = set; then
16924   withval=$with_fd_password;
16925        if test "x$withval" != "xno" ; then
16926            fd_password=$withval
16927        fi
16928
16929
16930 fi
16931
16932
16933 if test "x$fd_password" = "x" ; then
16934    if test "x$OPENSSL" = "xnone" ; then
16935       key=`autoconf/randpass 37`
16936    else
16937       key=`openssl rand -base64 33`
16938    fi
16939    fd_password=$key
16940 fi
16941
16942 sd_password=
16943
16944 # Check whether --with-sd-password was given.
16945 if test "${with_sd_password+set}" = set; then
16946   withval=$with_sd_password;
16947        if test "x$withval" != "xno" ; then
16948            sd_password=$withval
16949        fi
16950
16951
16952 fi
16953
16954
16955 if test "x$sd_password" = "x" ; then
16956    if test "x$OPENSSL" = "xnone" ; then
16957       key=`autoconf/randpass 41`
16958    else
16959       key=`openssl rand -base64 33`
16960    fi
16961    sd_password=$key
16962 fi
16963
16964 mon_dir_password=
16965
16966 # Check whether --with-mon-dir-password was given.
16967 if test "${with_mon_dir_password+set}" = set; then
16968   withval=$with_mon_dir_password;
16969        if test "x$withval" != "xno" ; then
16970            mon_dir_password=$withval
16971        fi
16972
16973
16974 fi
16975
16976
16977 if test "x$mon_dir_password" = "x" ; then
16978    if test "x$OPENSSL" = "xnone" ; then
16979       key=`autoconf/randpass 33`
16980    else
16981       key=`openssl rand -base64 33`
16982    fi
16983    mon_dir_password=$key
16984 fi
16985
16986 mon_fd_password=
16987
16988 # Check whether --with-mon-fd-password was given.
16989 if test "${with_mon_fd_password+set}" = set; then
16990   withval=$with_mon_fd_password;
16991        if test "x$withval" != "xno" ; then
16992            mon_fd_password=$withval
16993        fi
16994
16995
16996 fi
16997
16998
16999 if test "x$mon_fd_password" = "x" ; then
17000    if test "x$OPENSSL" = "xnone" ; then
17001       key=`autoconf/randpass 37`
17002    else
17003       key=`openssl rand -base64 33`
17004    fi
17005    mon_fd_password=$key
17006 fi
17007
17008 mon_sd_password=
17009
17010 # Check whether --with-mon-sd-password was given.
17011 if test "${with_mon_sd_password+set}" = set; then
17012   withval=$with_mon_sd_password;
17013        if test "x$withval" != "xno" ; then
17014            mon_sd_password=$withval
17015        fi
17016
17017
17018 fi
17019
17020
17021 if test "x$mon_sd_password" = "x" ; then
17022    if test "x$OPENSSL" = "xnone" ; then
17023       key=`autoconf/randpass 41`
17024    else
17025       key=`openssl rand -base64 33`
17026    fi
17027    mon_sd_password=$key
17028 fi
17029
17030
17031
17032
17033
17034
17035
17036
17037 #
17038 # Pickup any database name
17039 #
17040 db_name=bacula
17041
17042 # Check whether --with-db_name was given.
17043 if test "${with_db_name+set}" = set; then
17044   withval=$with_db_name;
17045         if test "x$withval" != "x" ; then
17046              db_name=$withval
17047         fi
17048
17049
17050 fi
17051
17052
17053
17054 db_user=bacula
17055
17056 # Check whether --with-db_user was given.
17057 if test "${with_db_user+set}" = set; then
17058   withval=$with_db_user;
17059         if test "x$withval" != "x" ; then
17060              db_user=$withval
17061         fi
17062
17063
17064 fi
17065
17066
17067
17068 db_password=
17069
17070 # Check whether --with-db_password was given.
17071 if test "${with_db_password+set}" = set; then
17072   withval=$with_db_password;
17073         if test "x$withval" != "x" ; then
17074              db_password=$withval
17075         fi
17076
17077
17078 fi
17079
17080
17081
17082 #
17083 # Handle users and groups for each daemon
17084 #
17085 dir_user=
17086
17087 # Check whether --with-dir_user was given.
17088 if test "${with_dir_user+set}" = set; then
17089   withval=$with_dir_user;
17090         if test "x$withval" != "x" ; then
17091              dir_user=$withval
17092         fi
17093
17094
17095 fi
17096
17097
17098 dir_group=
17099
17100 # Check whether --with-dir_group was given.
17101 if test "${with_dir_group+set}" = set; then
17102   withval=$with_dir_group;
17103         if test "x$withval" != "x" ; then
17104              dir_group=$withval
17105         fi
17106
17107
17108 fi
17109
17110
17111 sd_user=
17112
17113 # Check whether --with-sd_user was given.
17114 if test "${with_sd_user+set}" = set; then
17115   withval=$with_sd_user;
17116         if test "x$withval" != "x" ; then
17117              sd_user=$withval
17118         fi
17119
17120
17121 fi
17122
17123
17124 sd_group=
17125
17126 # Check whether --with-sd_group was given.
17127 if test "${with_sd_group+set}" = set; then
17128   withval=$with_sd_group;
17129         if test "x$withval" != "x" ; then
17130              sd_group=$withval
17131         fi
17132
17133
17134 fi
17135
17136
17137 fd_user=
17138
17139 # Check whether --with-fd_user was given.
17140 if test "${with_fd_user+set}" = set; then
17141   withval=$with_fd_user;
17142         if test "x$withval" != "x" ; then
17143              fd_user=$withval
17144         fi
17145
17146
17147 fi
17148
17149
17150 fd_group=
17151
17152 # Check whether --with-fd_group was given.
17153 if test "${with_fd_group+set}" = set; then
17154   withval=$with_fd_group;
17155         if test "x$withval" != "x" ; then
17156              fd_group=$withval
17157         fi
17158
17159
17160 fi
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170 #
17171 # allow setting default executable permissions
17172 #
17173 SBINPERM=0754
17174
17175 # Check whether --with-sbin-perm was given.
17176 if test "${with_sbin_perm+set}" = set; then
17177   withval=$with_sbin_perm;
17178         if test "x$withval" != "x" ; then
17179             SBINPERM=$withval
17180         fi
17181
17182
17183 fi
17184
17185
17186
17187
17188 # ------------------------------------------------
17189 # Bacula check for various SQL database engines
17190 # ------------------------------------------------
17191 SQL_LIB=
17192
17193 db_found=no
17194 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17195 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17196
17197 # Check whether --with-postgresql was given.
17198 if test "${with_postgresql+set}" = set; then
17199   withval=$with_postgresql;
17200   if test "$withval" != "no"; then
17201       if test "$db_found" = "yes"; then
17202           { echo "$as_me:$LINENO: result: error" >&5
17203 echo "${ECHO_T}error" >&6; }
17204           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17205 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17206    { (exit 1); exit 1; }; };
17207       fi
17208       if test "$withval" = "yes"; then
17209           PG_CONFIG=`which pg_config`
17210           if test -n "$PG_CONFIG";then
17211               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17212               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17213               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17214           elif test -f /usr/local/include/libpq-fe.h; then
17215               POSTGRESQL_INCDIR=/usr/local/include
17216               if test -d /usr/local/lib64; then
17217                  POSTGRESQL_LIBDIR=/usr/local/lib64
17218               else
17219                  POSTGRESQL_LIBDIR=/usr/local/lib
17220               fi
17221               POSTGRESQL_BINDIR=/usr/local/bin
17222           elif test -f /usr/include/libpq-fe.h; then
17223               POSTGRESQL_INCDIR=/usr/include
17224               if test -d /usr/lib64; then
17225                  POSTGRESQL_LIBDIR=/usr/lib64
17226               else
17227                  POSTGRESQL_LIBDIR=/usr/lib
17228               fi
17229               POSTGRESQL_BINDIR=/usr/bin
17230           elif test -f /usr/include/pgsql/libpq-fe.h; then
17231               POSTGRESQL_INCDIR=/usr/include/pgsql
17232               if test -d /usr/lib64/pgsql; then
17233                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17234               else
17235                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17236               fi
17237               POSTGRESQL_BINDIR=/usr/bin
17238           elif test -f /usr/include/postgresql/libpq-fe.h; then
17239               POSTGRESQL_INCDIR=/usr/include/postgresql
17240               if test -d /usr/lib64/postgresql; then
17241                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17242               else
17243                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17244               fi
17245               POSTGRESQL_BINDIR=/usr/bin
17246           else
17247               { echo "$as_me:$LINENO: result: no" >&5
17248 echo "${ECHO_T}no" >&6; }
17249               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17250 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17251    { (exit 1); exit 1; }; }
17252           fi
17253       elif test -f $withval/include/libpq-fe.h; then
17254           POSTGRESQL_INCDIR=$withval/include
17255           POSTGRESQL_LIBDIR=$withval/lib
17256           POSTGRESQL_BINDIR=$withval/bin
17257       elif test -f $withval/include/postgresql/libpq-fe.h; then
17258           POSTGRESQL_INCDIR=$withval/include/postgresql
17259      if test -d $withval/lib64; then
17260          POSTGRESQL_LIBDIR=$withval/lib64
17261      else
17262          POSTGRESQL_LIBDIR=$withval/lib
17263      fi
17264           POSTGRESQL_BINDIR=$withval/bin
17265       else
17266           { echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6; }
17268           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17269 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17270    { (exit 1); exit 1; }; }
17271       fi
17272       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17273       { echo "$as_me:$LINENO: checking for crypt" >&5
17274 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17275 if test "${ac_cv_func_crypt+set}" = set; then
17276   echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278   cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17286 #define crypt innocuous_crypt
17287
17288 /* System header to define __stub macros and hopefully few prototypes,
17289     which can conflict with char crypt (); below.
17290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17291     <limits.h> exists even on freestanding compilers.  */
17292
17293 #ifdef __STDC__
17294 # include <limits.h>
17295 #else
17296 # include <assert.h>
17297 #endif
17298
17299 #undef crypt
17300
17301 /* Override any GCC internal prototype to avoid an error.
17302    Use char because int might match the return type of a GCC
17303    builtin and then its argument prototype would still apply.  */
17304 #ifdef __cplusplus
17305 extern "C"
17306 #endif
17307 char crypt ();
17308 /* The GNU C library defines this for functions which it implements
17309     to always fail with ENOSYS.  Some functions are actually named
17310     something starting with __ and the normal name is an alias.  */
17311 #if defined __stub_crypt || defined __stub___crypt
17312 choke me
17313 #endif
17314
17315 int
17316 main ()
17317 {
17318 return crypt ();
17319   ;
17320   return 0;
17321 }
17322 _ACEOF
17323 rm -f conftest.$ac_objext conftest$ac_exeext
17324 if { (ac_try="$ac_link"
17325 case "(($ac_try" in
17326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327   *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330   (eval "$ac_link") 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } && {
17337          test -z "$ac_c_werror_flag" ||
17338          test ! -s conftest.err
17339        } && test -s conftest$ac_exeext &&
17340        $as_test_x conftest$ac_exeext; then
17341   ac_cv_func_crypt=yes
17342 else
17343   echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346         ac_cv_func_crypt=no
17347 fi
17348
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350       conftest$ac_exeext conftest.$ac_ext
17351 fi
17352 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17353 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17354 if test $ac_cv_func_crypt = yes; then
17355   :
17356 else
17357   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17358 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17359 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17360   echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362   ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-lcrypt  $LIBS"
17364 cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h.  */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h.  */
17370
17371 /* Override any GCC internal prototype to avoid an error.
17372    Use char because int might match the return type of a GCC
17373    builtin and then its argument prototype would still apply.  */
17374 #ifdef __cplusplus
17375 extern "C"
17376 #endif
17377 char crypt ();
17378 int
17379 main ()
17380 {
17381 return crypt ();
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (ac_try="$ac_link"
17388 case "(($ac_try" in
17389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390   *) ac_try_echo=$ac_try;;
17391 esac
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393   (eval "$ac_link") 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } && {
17400          test -z "$ac_c_werror_flag" ||
17401          test ! -s conftest.err
17402        } && test -s conftest$ac_exeext &&
17403        $as_test_x conftest$ac_exeext; then
17404   ac_cv_lib_crypt_crypt=yes
17405 else
17406   echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409         ac_cv_lib_crypt_crypt=no
17410 fi
17411
17412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17413       conftest$ac_exeext conftest.$ac_ext
17414 LIBS=$ac_check_lib_save_LIBS
17415 fi
17416 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17417 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17418 if test $ac_cv_lib_crypt_crypt = yes; then
17419   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17420 fi
17421
17422 fi
17423
17424       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17425       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17426       SQL_BINDIR=$POSTGRESQL_BINDIR
17427       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17428
17429       cat >>confdefs.h <<\_ACEOF
17430 #define HAVE_POSTGRESQL 1
17431 _ACEOF
17432
17433       { echo "$as_me:$LINENO: result: yes" >&5
17434 echo "${ECHO_T}yes" >&6; }
17435       db_found=yes
17436       support_postgresql=yes
17437       db_type=PostgreSQL
17438       DB_TYPE=postgresql
17439   else
17440       { echo "$as_me:$LINENO: result: no" >&5
17441 echo "${ECHO_T}no" >&6; }
17442   fi
17443
17444 else
17445
17446   { echo "$as_me:$LINENO: result: no" >&5
17447 echo "${ECHO_T}no" >&6; }
17448
17449 fi
17450
17451
17452
17453
17454
17455
17456
17457
17458 db_found=no
17459 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17460 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17461
17462 # Check whether --with-mysql was given.
17463 if test "${with_mysql+set}" = set; then
17464   withval=$with_mysql;
17465   if test "$withval" != "no"; then
17466         if test "$withval" = "yes"; then
17467            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17468                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17469                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17470                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17471                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17472                    else
17473                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17474                    fi
17475                    MYSQL_BINDIR=/usr/local/mysql/bin
17476            elif test -f /usr/include/mysql/mysql.h; then
17477                    MYSQL_INCDIR=/usr/include/mysql
17478                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17479                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17480                            MYSQL_LIBDIR=/usr/lib64/mysql
17481                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17482                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17483                            MYSQL_LIBDIR=/usr/lib/mysql
17484                    else
17485                            MYSQL_LIBDIR=/usr/lib
17486                    fi
17487                    MYSQL_BINDIR=/usr/bin
17488            elif test -f /usr/include/mysql.h; then
17489                    MYSQL_INCDIR=/usr/include
17490                    if test -f /usr/lib64/libmysqlclient_r.a \
17491                         -o -f /usr/lib64/libmysqlclient_r.so; then
17492                            MYSQL_LIBDIR=/usr/lib64
17493                    else
17494                            MYSQL_LIBDIR=/usr/lib
17495                    fi
17496                    MYSQL_BINDIR=/usr/bin
17497            elif test -f /usr/local/include/mysql/mysql.h; then
17498                    MYSQL_INCDIR=/usr/local/include/mysql
17499                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17500                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17501                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17502                    else
17503                            MYSQL_LIBDIR=/usr/local/lib/mysql
17504                    fi
17505                    MYSQL_BINDIR=/usr/local/bin
17506            elif test -f /usr/local/include/mysql.h; then
17507                    MYSQL_INCDIR=/usr/local/include
17508                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17509                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17510                            MYSQL_LIBDIR=/usr/local/lib64
17511                    else
17512                            MYSQL_LIBDIR=/usr/local/lib
17513                    fi
17514                    MYSQL_BINDIR=/usr/local/bin
17515            else
17516               { echo "$as_me:$LINENO: result: no" >&5
17517 echo "${ECHO_T}no" >&6; }
17518               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17519 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17520    { (exit 1); exit 1; }; }
17521            fi
17522         else
17523            if test -f $withval/include/mysql/mysql.h; then
17524               MYSQL_INCDIR=$withval/include/mysql
17525               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17526                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17527                  MYSQL_LIBDIR=$withval/lib64/mysql
17528               else
17529                  MYSQL_LIBDIR=$withval/lib/mysql
17530                  # Solaris ...
17531                  if test -f $withval/lib/libmysqlclient_r.so; then
17532                     MYSQL_LIBDIR=$withval/lib
17533                  fi
17534               fi
17535               MYSQL_BINDIR=$withval/bin
17536            elif test -f $withval/include/mysql.h; then
17537               MYSQL_INCDIR=$withval/include
17538               if test -f $withval/lib64/libmysqlclient_r.a \
17539                    -o -f $withval/lib64/libmysqlclient_r.so; then
17540                  MYSQL_LIBDIR=$withval/lib64
17541               else
17542                  MYSQL_LIBDIR=$withval/lib
17543               fi
17544               MYSQL_BINDIR=$withval/bin
17545            else
17546               { echo "$as_me:$LINENO: result: no" >&5
17547 echo "${ECHO_T}no" >&6; }
17548               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17549 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17550    { (exit 1); exit 1; }; }
17551            fi
17552         fi
17553     SQL_INCLUDE=-I$MYSQL_INCDIR
17554     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17555          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17556        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17557        cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_THREAD_SAFE_MYSQL 1
17559 _ACEOF
17560
17561     fi
17562     SQL_BINDIR=$MYSQL_BINDIR
17563     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17564
17565     cat >>confdefs.h <<\_ACEOF
17566 #define HAVE_MYSQL 1
17567 _ACEOF
17568
17569     { echo "$as_me:$LINENO: result: yes" >&5
17570 echo "${ECHO_T}yes" >&6; }
17571     db_found=yes
17572     support_mysql=yes
17573     db_type=MySQL
17574     DB_TYPE=mysql
17575
17576   else
17577         { echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6; }
17579   fi
17580
17581
17582 fi
17583
17584
17585
17586 # Check whether --with-embedded-mysql was given.
17587 if test "${with_embedded_mysql+set}" = set; then
17588   withval=$with_embedded_mysql;
17589   if test "$withval" != "no"; then
17590         if test "$withval" = "yes"; then
17591                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17592                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17593                         if test -d /usr/local/mysql/lib64/mysql; then
17594                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17595                         else
17596                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17597                         fi
17598                         MYSQL_BINDIR=/usr/local/mysql/bin
17599                 elif test -f /usr/include/mysql/mysql.h; then
17600                         MYSQL_INCDIR=/usr/include/mysql
17601                         if test -d /usr/lib64/mysql; then
17602                                 MYSQL_LIBDIR=/usr/lib64/mysql
17603                         else
17604                                 MYSQL_LIBDIR=/usr/lib/mysql
17605                         fi
17606                         MYSQL_BINDIR=/usr/bin
17607                 elif test -f /usr/include/mysql.h; then
17608                         MYSQL_INCDIR=/usr/include
17609                         if test -d /usr/lib64; then
17610                                 MYSQL_LIBDIR=/usr/lib64
17611                         else
17612                                 MYSQL_LIBDIR=/usr/lib
17613                         fi
17614                         MYSQL_BINDIR=/usr/bin
17615                 elif test -f /usr/local/include/mysql/mysql.h; then
17616                         MYSQL_INCDIR=/usr/local/include/mysql
17617                         if test -d /usr/local/lib64/mysql; then
17618                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17619                         else
17620                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17621                         fi
17622                         MYSQL_BINDIR=/usr/local/bin
17623                 elif test -f /usr/local/include/mysql.h; then
17624                         MYSQL_INCDIR=/usr/local/include
17625                         if test -d /usr/local/lib64; then
17626                                 MYSQL_LIBDIR=/usr/local/lib64
17627                         else
17628                                 MYSQL_LIBDIR=/usr/local/lib
17629                         fi
17630                         MYSQL_BINDIR=/usr/local/bin
17631                 else
17632                    { echo "$as_me:$LINENO: result: no" >&5
17633 echo "${ECHO_T}no" >&6; }
17634                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17635 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17636    { (exit 1); exit 1; }; }
17637                 fi
17638         else
17639                 if test -f $withval/include/mysql/mysql.h; then
17640                         MYSQL_INCDIR=$withval/include/mysql
17641                         if test -d $withval/lib64/mysql; then
17642                                 MYSQL_LIBDIR=$withval/lib64/mysql
17643                         else
17644                                 MYSQL_LIBDIR=$withval/lib/mysql
17645                         fi
17646                         MYSQL_BINDIR=$withval/bin
17647                 elif test -f $withval/include/mysql.h; then
17648                         MYSQL_INCDIR=$withval/include
17649                         if test -d $withval/lib64; then
17650                                 MYSQL_LIBDIR=$withval/lib64
17651                         else
17652                                 MYSQL_LIBDIR=$withval/lib
17653                         fi
17654                         MYSQL_BINDIR=$withval/bin
17655                 else
17656                    { echo "$as_me:$LINENO: result: no" >&5
17657 echo "${ECHO_T}no" >&6; }
17658                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17659 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17660    { (exit 1); exit 1; }; }
17661                 fi
17662         fi
17663     SQL_INCLUDE=-I$MYSQL_INCDIR
17664     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17665     SQL_BINDIR=$MYSQL_BINDIR
17666     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17667
17668     cat >>confdefs.h <<\_ACEOF
17669 #define HAVE_MYSQL 1
17670 _ACEOF
17671
17672     cat >>confdefs.h <<\_ACEOF
17673 #define HAVE_EMBEDDED_MYSQL 1
17674 _ACEOF
17675
17676     { echo "$as_me:$LINENO: result: yes" >&5
17677 echo "${ECHO_T}yes" >&6; }
17678     db_found=yes
17679     support_mysql=yes
17680     db_type=MySQL
17681     DB_TYPE=mysql
17682
17683   else
17684         { echo "$as_me:$LINENO: result: no" >&5
17685 echo "${ECHO_T}no" >&6; }
17686   fi
17687
17688
17689 fi
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700 db_found=no
17701 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17702 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17703
17704 # Check whether --with-sqlite3 was given.
17705 if test "${with_sqlite3+set}" = set; then
17706   withval=$with_sqlite3;
17707   if test "$withval" != "no"; then
17708      if test "$withval" = "yes"; then
17709         if test -f /usr/local/include/sqlite3.h; then
17710            SQLITE_INCDIR=/usr/local/include
17711            if test -d /usr/local/lib64; then
17712               SQLITE_LIBDIR=/usr/local/lib64
17713            else
17714               SQLITE_LIBDIR=/usr/local/lib
17715            fi
17716            SQLITE_BINDIR=/usr/local/bin
17717         elif test -f /usr/include/sqlite3.h; then
17718            SQLITE_INCDIR=/usr/include
17719            if test -d /usr/lib64; then
17720               SQLITE_LIBDIR=/usr/lib64
17721            else
17722               SQLITE_LIBDIR=/usr/lib
17723            fi
17724            SQLITE_BINDIR=/usr/bin
17725         elif test -f $prefix/include/sqlite3.h; then
17726            SQLITE_INCDIR=$prefix/include
17727            if test -d $prefix/lib64; then
17728               SQLITE_LIBDIR=$prefix/lib64
17729            else
17730               SQLITE_LIBDIR=$prefix/lib
17731            fi
17732            SQLITE_BINDIR=$prefix/bin
17733         else
17734            { echo "$as_me:$LINENO: result: no" >&5
17735 echo "${ECHO_T}no" >&6; }
17736            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17737 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17738    { (exit 1); exit 1; }; }
17739         fi
17740      else
17741         if test -f $withval/sqlite3.h; then
17742            SQLITE_INCDIR=$withval
17743            SQLITE_LIBDIR=$withval
17744            SQLITE_BINDIR=$withval
17745         elif test -f $withval/include/sqlite3.h; then
17746            SQLITE_INCDIR=$withval/include
17747            if test -d $withval/lib64; then
17748               SQLITE_LIBDIR=$withval/lib64
17749            else
17750               SQLITE_LIBDIR=$withval/lib
17751            fi
17752            SQLITE_BINDIR=$withval/bin
17753         else
17754            { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17756            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17757 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17758    { (exit 1); exit 1; }; }
17759         fi
17760      fi
17761      SQL_INCLUDE=-I$SQLITE_INCDIR
17762      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17763      SQL_BINDIR=$SQLITE_BINDIR
17764      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17765
17766      cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_SQLITE3 1
17768 _ACEOF
17769
17770      { echo "$as_me:$LINENO: result: yes" >&5
17771 echo "${ECHO_T}yes" >&6; }
17772      db_found=yes
17773      support_sqlite3=yes
17774      db_type=SQLite3
17775      DB_TYPE=sqlite3
17776
17777   else
17778      { echo "$as_me:$LINENO: result: no" >&5
17779 echo "${ECHO_T}no" >&6; }
17780   fi
17781
17782 else
17783
17784   { echo "$as_me:$LINENO: result: no" >&5
17785 echo "${ECHO_T}no" >&6; }
17786
17787 fi
17788
17789
17790
17791
17792
17793
17794
17795
17796 db_found=no
17797 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17798 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17799
17800 # Check whether --with-sqlite was given.
17801 if test "${with_sqlite+set}" = set; then
17802   withval=$with_sqlite;
17803   if test "$withval" != "no"; then
17804      if test "$withval" = "yes"; then
17805         if test -f /usr/local/include/sqlite.h; then
17806            SQLITE_INCDIR=/usr/local/include
17807            if test -d /usr/local/lib64; then
17808               SQLITE_LIBDIR=/usr/local/lib64
17809            else
17810               SQLITE_LIBDIR=/usr/local/lib
17811            fi
17812            SQLITE_BINDIR=/usr/local/bin
17813         elif test -f /usr/include/sqlite.h; then
17814            SQLITE_INCDIR=/usr/include
17815            if test -d /usr/lib64; then
17816               SQLITE_LIBDIR=/usr/lib64
17817            else
17818               SQLITE_LIBDIR=/usr/lib
17819            fi
17820            SQLITE_BINDIR=/usr/bin
17821         elif test -f $prefix/include/sqlite.h; then
17822            SQLITE_INCDIR=$prefix/include
17823            if test -d $prefix/lib64; then
17824               SQLITE_LIBDIR=$prefix/lib64
17825            else
17826               SQLITE_LIBDIR=$prefix/lib
17827            fi
17828            SQLITE_BINDIR=$prefix/bin
17829         else
17830            { echo "$as_me:$LINENO: result: no" >&5
17831 echo "${ECHO_T}no" >&6; }
17832            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17833 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17834    { (exit 1); exit 1; }; }
17835         fi
17836      else
17837         if test -f $withval/sqlite.h; then
17838            SQLITE_INCDIR=$withval
17839            SQLITE_LIBDIR=$withval
17840            SQLITE_BINDIR=$withval
17841         elif test -f $withval/include/sqlite.h; then
17842            SQLITE_INCDIR=$withval/include
17843            if test -d $withval/lib64; then
17844               SQLITE_LIBDIR=$withval/lib64
17845            else
17846               SQLITE_LIBDIR=$withval/lib
17847            fi
17848            SQLITE_BINDIR=$withval/bin
17849         else
17850            { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17852            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17853 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17854    { (exit 1); exit 1; }; }
17855         fi
17856      fi
17857      SQL_INCLUDE=-I$SQLITE_INCDIR
17858      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17859      SQL_BINDIR=$SQLITE_BINDIR
17860      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17861
17862      cat >>confdefs.h <<\_ACEOF
17863 #define HAVE_SQLITE 1
17864 _ACEOF
17865
17866      { echo "$as_me:$LINENO: result: yes" >&5
17867 echo "${ECHO_T}yes" >&6; }
17868      db_found=yes
17869      support_sqlite=yes
17870      db_type=SQLite
17871      DB_TYPE=sqlite
17872
17873   else
17874      { echo "$as_me:$LINENO: result: no" >&5
17875 echo "${ECHO_T}no" >&6; }
17876   fi
17877
17878 else
17879
17880   { echo "$as_me:$LINENO: result: no" >&5
17881 echo "${ECHO_T}no" >&6; }
17882
17883 fi
17884
17885
17886
17887
17888
17889
17890
17891
17892 db_found=no
17893 { echo "$as_me:$LINENO: checking for DBI support" >&5
17894 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17895
17896 # Check whether --with-dbi was given.
17897 if test "${with_dbi+set}" = set; then
17898   withval=$with_dbi;
17899   if test "$withval" != "no"; then
17900      if test "$withval" = "yes"; then
17901         if test -f /usr/local/include/dbi/dbi.h; then
17902            DBI_INCDIR=/usr/local/dbi/include
17903            if test -d /usr/local/lib64; then
17904               DBI_LIBDIR=/usr/local/lib64
17905            else
17906               DBI_LIBDIR=/usr/local/lib
17907            fi
17908            DBI_BINDIR=/usr/local/bin
17909         elif test -f /usr/include/dbi/dbi.h; then
17910            DBI_INCDIR=/usr/include
17911            if test -d /usr/lib64; then
17912               DBI_LIBDIR=/usr/lib64
17913            else
17914               DBI_LIBDIR=/usr/lib
17915            fi
17916            DBI_BINDIR=/usr/bin
17917         elif test -f $prefix/include/dbi/dbi.h; then
17918            DBI_INCDIR=$prefix/include
17919            if test -d $prefix/lib64; then
17920               DBI_LIBDIR=$prefix/lib64
17921            else
17922               DBI_LIBDIR=$prefix/lib
17923            fi
17924            DBI_BINDIR=$prefix/bin
17925         else
17926            { echo "$as_me:$LINENO: result: no" >&5
17927 echo "${ECHO_T}no" >&6; }
17928            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17929 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17930    { (exit 1); exit 1; }; }
17931         fi
17932         if test -d /usr/local/lib/dbd; then
17933            DRIVERDIR=/usr/local/lib/dbd
17934            if test -d /usr/local/lib64/dbd; then
17935               DRIVERDIR=/usr/local/lib64/dbd
17936            else
17937               DRIVERDIR=/usr/local/lib/dbd
17938            fi
17939         elif test -d /usr/lib/dbd; then
17940            DRIVERDIR=/usr/lib/dbd
17941            if test -d /usr/lib64/dbd; then
17942               DRIVERDIR=/usr/lib64/dbd
17943            else
17944               DRIVERDIR=/usr/lib/dbd
17945            fi
17946         elif test -d $prefix/lib/dbd; then
17947            if test -d $prefix/lib64/dbd; then
17948               DRIVERDIR=$prefix/lib64/dbd
17949            else
17950               DRIVERDIR=$prefix/lib/dbd
17951            fi
17952         else
17953            { echo "$as_me:$LINENO: result: no" >&5
17954 echo "${ECHO_T}no" >&6; }
17955            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17956 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17957    { (exit 1); exit 1; }; }
17958         fi
17959      else
17960         if test -f $withval/dbi.h; then
17961            DBI_INCDIR=$withval
17962            DBI_LIBDIR=$withval
17963            DBI_BINDIR=$withval
17964         elif test -f $withval/include/dbi/dbi.h; then
17965            DBI_INCDIR=$withval/include
17966            if test -d $withval/lib64; then
17967               DBI_LIBDIR=$withval/lib64
17968            else
17969               DBI_LIBDIR=$withval/lib
17970            fi
17971            DBI_BINDIR=$withval/bin
17972         else
17973            { echo "$as_me:$LINENO: result: no" >&5
17974 echo "${ECHO_T}no" >&6; }
17975            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17976 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17977    { (exit 1); exit 1; }; }
17978         fi
17979         if test -d $withval/dbd; then
17980            DRIVERDIR=$withval/dbd
17981         elif test -d $withval/lib/; then
17982            if test -d $withval/lib64/dbd; then
17983               DRIVERDIR=$withval/lib64/dbd
17984            else
17985               DRIVERDIR=$withval/lib/dbd
17986            fi
17987         else
17988            { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17990            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17991 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17992    { (exit 1); exit 1; }; }
17993         fi
17994      fi
17995      SQL_INCLUDE=-I$DBI_INCDIR
17996      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17997      SQL_BINDIR=$DBI_BINDIR
17998      SQL_LIB=$DBI_LIBDIR/libdbi.a
17999      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18000
18001
18002 cat >>confdefs.h <<\_ACEOF
18003 #define HAVE_DBI 1
18004 _ACEOF
18005
18006      { echo "$as_me:$LINENO: result: yes" >&5
18007 echo "${ECHO_T}yes" >&6; }
18008      db_found=yes
18009      support_dbi=yes
18010      db_type=DBI
18011      DB_TYPE=dbi
18012
18013   else
18014      { echo "$as_me:$LINENO: result: no" >&5
18015 echo "${ECHO_T}no" >&6; }
18016   fi
18017
18018 else
18019
18020   { echo "$as_me:$LINENO: result: no" >&5
18021 echo "${ECHO_T}no" >&6; }
18022
18023 fi
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033 db_found=no
18034 db_prog=no
18035 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18036 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18037
18038 # Check whether --with-dbi-driver was given.
18039 if test "${with_dbi_driver+set}" = set; then
18040   withval=$with_dbi_driver;
18041   if test "$withval" != "no"; then
18042      case $withval in
18043         "mysql")
18044            db_prog="mysql"
18045            if test -f /usr/local/mysql/bin/mysql; then
18046               SQL_BINDIR=/usr/local/mysql/bin
18047               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18048                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18049                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18050               else
18051                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
18052               fi
18053            elif test -f /usr/bin/mysql; then
18054               SQL_BINDIR=/usr/bin
18055               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18056                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18057                   SQL_LIBDIR=/usr/lib64/mysql
18058               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18059                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18060                   SQL_LIBDIR=/usr/lib/mysql
18061               else
18062                   SQL_LIBDIR=/usr/lib
18063               fi
18064            elif test -f /usr/local/bin/mysql; then
18065               SQL_BINDIR=/usr/local/bin
18066               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18067                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18068                   SQL_LIBDIR=/usr/local/lib64/mysql
18069               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18070                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18071                   SQL_LIBDIR=/usr/local/lib/mysql
18072               else
18073                   SQL_LIBDIR=/usr/local/lib
18074               fi
18075            elif test -f $withval/bin/mysql; then
18076               SQL_BINDIR=$withval/bin
18077               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18078                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18079                   SQL_LIBDIR=$withval/lib64/mysql
18080               elif test -f $withval/lib64/libmysqlclient_r.a \
18081                   -o -f $withval/lib64/libmysqlclient_r.so; then
18082                   SQL_LIBDIR=$withval/lib64
18083               elif test -f $withval/lib/libmysqlclient_r.a \
18084                   -o -f $withval/lib/libmysqlclient_r.so; then
18085                   SQL_LIBDIR=$withval/lib/
18086               else
18087                   SQL_LIBDIR=$withval/lib/mysql
18088               fi
18089            else
18090               { echo "$as_me:$LINENO: result: no" >&5
18091 echo "${ECHO_T}no" >&6; }
18092               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18093 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18094    { (exit 1); exit 1; }; }
18095            fi
18096            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18097         ;;
18098         "postgresql")
18099            db_prog="postgresql"
18100            PG_CONFIG=`which pg_config`
18101            if test -n "$PG_CONFIG"; then
18102               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18103               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18104            elif test -f /usr/local/bin/psql; then
18105               SQL_BINDIR=/usr/local/bin
18106               if test -d /usr/local/lib64; then
18107                  SQL_LIBDIR=/usr/local/lib64
18108               else
18109                  SQL_LIBDIR=/usr/local/lib
18110               fi
18111            elif test -f /usr/bin/psql; then
18112               SQL_BINDIR=/usr/local/bin
18113               if test -d /usr/lib64/postgresql; then
18114                  SQL_LIBDIR=/usr/lib64/postgresql
18115               elif test -d /usr/lib/postgresql; then
18116                  SQL_LIBDIR=/usr/lib/postgresql
18117               elif test -d /usr/lib64; then
18118                  SQL_LIBDIR=/usr/lib64
18119               else
18120                  SQL_LIBDIR=/usr/lib
18121               fi
18122            elif test -f $withval/bin/psql; then
18123               SQL_BINDIR=$withval/bin
18124               if test -d $withval/lib64; then
18125                  SQL_LIBDIR=$withval/lib64
18126               else
18127                  SQL_LIBDIR=$withval/lib
18128               fi
18129            else
18130               { echo "$as_me:$LINENO: result: no" >&5
18131 echo "${ECHO_T}no" >&6; }
18132               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18133 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18134    { (exit 1); exit 1; }; }
18135            fi
18136            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18137         ;;
18138         *)
18139            { echo "$as_me:$LINENO: result: no" >&5
18140 echo "${ECHO_T}no" >&6; }
18141            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18142 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18143    { (exit 1); exit 1; }; }
18144         ;;
18145      esac
18146
18147      { echo "$as_me:$LINENO: result: yes" >&5
18148 echo "${ECHO_T}yes" >&6; }
18149      DB_PROG=$db_prog
18150   else
18151      { echo "$as_me:$LINENO: result: no" >&5
18152 echo "${ECHO_T}no" >&6; }
18153   fi
18154
18155 else
18156
18157   { echo "$as_me:$LINENO: result: no" >&5
18158 echo "${ECHO_T}no" >&6; }
18159
18160 fi
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171 # -------------------------------------------
18172 # enable batch attribute DB insert (default on)
18173 # -------------------------------------------
18174 support_batch_insert=no
18175 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18176 pkg=$?
18177 if test $pkg = 0; then
18178    support_batch_insert=yes
18179    # Check whether --enable-batch-insert was given.
18180 if test "${enable_batch_insert+set}" = set; then
18181   enableval=$enable_batch_insert; if test x$enableval = xno; then
18182        support_batch_insert=no
18183       else
18184        support_batch_insert=yes
18185      fi
18186 fi
18187
18188 fi
18189
18190 # Check if postgresql support batch mode
18191 if test x$DB_TYPE = xpostgresql; then
18192    A=`nm $SQL_LIB | grep PQputCopyData`
18193    pkg=$?
18194    if test $pkg != 0; then
18195       support_batch_insert=no
18196    fi
18197 fi
18198
18199 if test x$DB_TYPE = xdbi; then
18200    DB_TYPE=$DB_PROG
18201    db_type=$DB_PROG
18202    pkg=1
18203    # Check for batch insert
18204    if test $DB_PROG = postgresql; then
18205       A=`nm $DB_PROG_LIB | grep PQputCopyData`
18206       pkg=$?
18207    fi
18208
18209    if test $DB_PROG = mysql; then
18210       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18211       pkg=$?
18212    fi
18213
18214    if test $pkg = 0; then
18215       # Check whether --enable-batch-insert was given.
18216 if test "${enable_batch_insert+set}" = set; then
18217   enableval=$enable_batch_insert; if test x$enableval = xno; then
18218          support_batch_insert=no
18219        else
18220          support_batch_insert=yes
18221       fi
18222 fi
18223
18224    fi
18225 fi
18226
18227 if test $support_batch_insert = yes ; then
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_BATCH_FILE_INSERT 1
18231 _ACEOF
18232
18233 fi
18234
18235
18236 cat >>confdefs.h <<\_ACEOF
18237 #define PROTOTYPES 1
18238 _ACEOF
18239
18240
18241 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18242     if test -z "$CCOPTS"; then
18243         CCOPTS='-g -O2 -Wall'
18244     fi
18245     CFLAGS="$CCOPTS"
18246 fi
18247
18248
18249
18250
18251 largefile_support="no"
18252
18253    # Check whether --enable-largefile was given.
18254 if test "${enable_largefile+set}" = set; then
18255   enableval=$enable_largefile;
18256 fi
18257
18258    if test "$enable_largefile" != no; then
18259      if test -n "$ac_tool_prefix"; then
18260   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18261 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18264 if test "${ac_cv_prog_GETCONF+set}" = set; then
18265   echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267   if test -n "$GETCONF"; then
18268   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18269 else
18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in $PATH
18272 do
18273   IFS=$as_save_IFS
18274   test -z "$as_dir" && as_dir=.
18275   for ac_exec_ext in '' $ac_executable_extensions; do
18276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18277     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18279     break 2
18280   fi
18281 done
18282 done
18283 IFS=$as_save_IFS
18284
18285 fi
18286 fi
18287 GETCONF=$ac_cv_prog_GETCONF
18288 if test -n "$GETCONF"; then
18289   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18290 echo "${ECHO_T}$GETCONF" >&6; }
18291 else
18292   { echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6; }
18294 fi
18295
18296
18297 fi
18298 if test -z "$ac_cv_prog_GETCONF"; then
18299   ac_ct_GETCONF=$GETCONF
18300   # Extract the first word of "getconf", so it can be a program name with args.
18301 set dummy getconf; ac_word=$2
18302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18304 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18305   echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307   if test -n "$ac_ct_GETCONF"; then
18308   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18309 else
18310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18311 for as_dir in $PATH
18312 do
18313   IFS=$as_save_IFS
18314   test -z "$as_dir" && as_dir=.
18315   for ac_exec_ext in '' $ac_executable_extensions; do
18316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18317     ac_cv_prog_ac_ct_GETCONF="getconf"
18318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18319     break 2
18320   fi
18321 done
18322 done
18323 IFS=$as_save_IFS
18324
18325 fi
18326 fi
18327 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18328 if test -n "$ac_ct_GETCONF"; then
18329   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18330 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18331 else
18332   { echo "$as_me:$LINENO: result: no" >&5
18333 echo "${ECHO_T}no" >&6; }
18334 fi
18335
18336   if test "x$ac_ct_GETCONF" = x; then
18337     GETCONF=""
18338   else
18339     case $cross_compiling:$ac_tool_warned in
18340 yes:)
18341 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18342 whose name does not start with the host triplet.  If you think this
18343 configuration is useful to you, please write to autoconf@gnu.org." >&5
18344 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18345 whose name does not start with the host triplet.  If you think this
18346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18347 ac_tool_warned=yes ;;
18348 esac
18349     GETCONF=$ac_ct_GETCONF
18350   fi
18351 else
18352   GETCONF="$ac_cv_prog_GETCONF"
18353 fi
18354
18355      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18356 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18357 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18358   echo $ECHO_N "(cached) $ECHO_C" >&6
18359 else
18360   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18361         ac_cv_sys_largefile_CFLAGS=no
18362         case "$host_os" in
18363            # IRIX 6.2 and later require cc -n32.
18364            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18365              if test "$GCC" != yes; then
18366                ac_cv_sys_largefile_CFLAGS=-n32
18367              fi
18368              ac_save_CC="$CC"
18369              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18370              cat >conftest.$ac_ext <<_ACEOF
18371 /* confdefs.h.  */
18372 _ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h.  */
18376
18377 int
18378 main ()
18379 {
18380
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (ac_try="$ac_link"
18387 case "(($ac_try" in
18388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389   *) ac_try_echo=$ac_try;;
18390 esac
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392   (eval "$ac_link") 2>conftest.er1
18393   ac_status=$?
18394   grep -v '^ *+' conftest.er1 >conftest.err
18395   rm -f conftest.er1
18396   cat conftest.err >&5
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); } && {
18399          test -z "$ac_c_werror_flag" ||
18400          test ! -s conftest.err
18401        } && test -s conftest$ac_exeext &&
18402        $as_test_x conftest$ac_exeext; then
18403   :
18404 else
18405   echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408         ac_cv_sys_largefile_CFLAGS=no
18409 fi
18410
18411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18412       conftest$ac_exeext conftest.$ac_ext
18413              CC="$ac_save_CC"
18414            esac
18415       }
18416 fi
18417 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18418 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18419      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18420 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18421 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18422   echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18425         ac_cv_sys_largefile_LDFLAGS=no
18426
18427       }
18428 fi
18429 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18430 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18431      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18432 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18433 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18434   echo $ECHO_N "(cached) $ECHO_C" >&6
18435 else
18436   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18437         ac_cv_sys_largefile_LIBS=no
18438
18439       }
18440 fi
18441 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18442 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18443
18444      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18445        case "$ac_flag" in
18446        no) ;;
18447        -D_FILE_OFFSET_BITS=*) ;;
18448        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18449        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18450        -D?* | -I?*)
18451          case "$ac_flag" in
18452    no) ;;
18453    ?*)
18454      case "$CPPFLAGS" in
18455      '') CPPFLAGS="$ac_flag" ;;
18456      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18457      esac ;;
18458    esac ;;
18459        *)
18460          case "$ac_flag" in
18461    no) ;;
18462    ?*)
18463      case "$CFLAGS" in
18464      '') CFLAGS="$ac_flag" ;;
18465      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18466      esac ;;
18467    esac ;;
18468        esac
18469      done
18470      case "$ac_cv_sys_largefile_LDFLAGS" in
18471    no) ;;
18472    ?*)
18473      case "$LDFLAGS" in
18474      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18475      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18476      esac ;;
18477    esac
18478      case "$ac_cv_sys_largefile_LIBS" in
18479    no) ;;
18480    ?*)
18481      case "$LIBS" in
18482      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18483      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18484      esac ;;
18485    esac
18486      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18487 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18488 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18489   echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491   ac_cv_sys_file_offset_bits=no
18492       ac_cv_sys_file_offset_bits=64
18493       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18494         case "$ac_flag" in
18495         -D_FILE_OFFSET_BITS)
18496           ac_cv_sys_file_offset_bits=1 ;;
18497         -D_FILE_OFFSET_BITS=*)
18498           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18499         esac
18500       done
18501
18502 fi
18503 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18504 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18505    if test "$ac_cv_sys_file_offset_bits" != no; then
18506
18507 cat >>confdefs.h <<_ACEOF
18508 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18509 _ACEOF
18510
18511    fi
18512      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18513 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18514 if test "${ac_cv_sys_largefile_source+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   ac_cv_sys_largefile_source=no
18518       ac_cv_sys_largefile_source=1
18519       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18520         case "$ac_flag" in
18521         -D_LARGEFILE_SOURCE)
18522           ac_cv_sys_largefile_source=1 ;;
18523         -D_LARGEFILE_SOURCE=*)
18524           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18525         esac
18526       done
18527
18528 fi
18529 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18530 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18531    if test "$ac_cv_sys_largefile_source" != no; then
18532
18533 cat >>confdefs.h <<_ACEOF
18534 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18535 _ACEOF
18536
18537    fi
18538      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18539 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18540 if test "${ac_cv_sys_large_files+set}" = set; then
18541   echo $ECHO_N "(cached) $ECHO_C" >&6
18542 else
18543   ac_cv_sys_large_files=no
18544       ac_cv_sys_large_files=1
18545       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18546         case "$ac_flag" in
18547         -D_LARGE_FILES)
18548           ac_cv_sys_large_files=1 ;;
18549         -D_LARGE_FILES=*)
18550           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18551         esac
18552       done
18553
18554 fi
18555 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18556 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18557    if test "$ac_cv_sys_large_files" != no; then
18558
18559 cat >>confdefs.h <<_ACEOF
18560 #define _LARGE_FILES $ac_cv_sys_large_files
18561 _ACEOF
18562
18563    fi
18564    fi
18565
18566
18567
18568 { echo "$as_me:$LINENO: checking for X" >&5
18569 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18570
18571
18572 # Check whether --with-x was given.
18573 if test "${with_x+set}" = set; then
18574   withval=$with_x;
18575 fi
18576
18577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18578 if test "x$with_x" = xno; then
18579   # The user explicitly disabled X.
18580   have_x=disabled
18581 else
18582   case $x_includes,$x_libraries in #(
18583     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18584 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18585    { (exit 1); exit 1; }; };; #(
18586     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18587   echo $ECHO_N "(cached) $ECHO_C" >&6
18588 else
18589   # One or both of the vars are not set, and there is no cached value.
18590 ac_x_includes=no ac_x_libraries=no
18591 rm -f -r conftest.dir
18592 if mkdir conftest.dir; then
18593   cd conftest.dir
18594   cat >Imakefile <<'_ACEOF'
18595 incroot:
18596         @echo incroot='${INCROOT}'
18597 usrlibdir:
18598         @echo usrlibdir='${USRLIBDIR}'
18599 libdir:
18600         @echo libdir='${LIBDIR}'
18601 _ACEOF
18602   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18603     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18604     for ac_var in incroot usrlibdir libdir; do
18605       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18606     done
18607     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18608     for ac_extension in a so sl; do
18609       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18610          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18611         ac_im_usrlibdir=$ac_im_libdir; break
18612       fi
18613     done
18614     # Screen out bogus values from the imake configuration.  They are
18615     # bogus both because they are the default anyway, and because
18616     # using them would break gcc on systems where it needs fixed includes.
18617     case $ac_im_incroot in
18618         /usr/include) ac_x_includes= ;;
18619         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18620     esac
18621     case $ac_im_usrlibdir in
18622         /usr/lib | /lib) ;;
18623         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18624     esac
18625   fi
18626   cd ..
18627   rm -f -r conftest.dir
18628 fi
18629
18630 # Standard set of common directories for X headers.
18631 # Check X11 before X11Rn because it is often a symlink to the current release.
18632 ac_x_header_dirs='
18633 /usr/X11/include
18634 /usr/X11R6/include
18635 /usr/X11R5/include
18636 /usr/X11R4/include
18637
18638 /usr/include/X11
18639 /usr/include/X11R6
18640 /usr/include/X11R5
18641 /usr/include/X11R4
18642
18643 /usr/local/X11/include
18644 /usr/local/X11R6/include
18645 /usr/local/X11R5/include
18646 /usr/local/X11R4/include
18647
18648 /usr/local/include/X11
18649 /usr/local/include/X11R6
18650 /usr/local/include/X11R5
18651 /usr/local/include/X11R4
18652
18653 /usr/X386/include
18654 /usr/x386/include
18655 /usr/XFree86/include/X11
18656
18657 /usr/include
18658 /usr/local/include
18659 /usr/unsupported/include
18660 /usr/athena/include
18661 /usr/local/x11r5/include
18662 /usr/lpp/Xamples/include
18663
18664 /usr/openwin/include
18665 /usr/openwin/share/include'
18666
18667 if test "$ac_x_includes" = no; then
18668   # Guess where to find include files, by looking for Xlib.h.
18669   # First, try using that file with no special directory specified.
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676 #include <X11/Xlib.h>
18677 _ACEOF
18678 if { (ac_try="$ac_cpp conftest.$ac_ext"
18679 case "(($ac_try" in
18680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681   *) ac_try_echo=$ac_try;;
18682 esac
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } >/dev/null && {
18691          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18692          test ! -s conftest.err
18693        }; then
18694   # We can compile using X headers with no special include directory.
18695 ac_x_includes=
18696 else
18697   echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700   for ac_dir in $ac_x_header_dirs; do
18701   if test -r "$ac_dir/X11/Xlib.h"; then
18702     ac_x_includes=$ac_dir
18703     break
18704   fi
18705 done
18706 fi
18707
18708 rm -f conftest.err conftest.$ac_ext
18709 fi # $ac_x_includes = no
18710
18711 if test "$ac_x_libraries" = no; then
18712   # Check for the libraries.
18713   # See if we find them without any special options.
18714   # Don't add to $LIBS permanently.
18715   ac_save_LIBS=$LIBS
18716   LIBS="-lX11 $LIBS"
18717   cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723 #include <X11/Xlib.h>
18724 int
18725 main ()
18726 {
18727 XrmInitialize ()
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_link") 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } && {
18746          test -z "$ac_c_werror_flag" ||
18747          test ! -s conftest.err
18748        } && test -s conftest$ac_exeext &&
18749        $as_test_x conftest$ac_exeext; then
18750   LIBS=$ac_save_LIBS
18751 # We can link X programs with no special library path.
18752 ac_x_libraries=
18753 else
18754   echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18756
18757         LIBS=$ac_save_LIBS
18758 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18759 do
18760   # Don't even attempt the hair of trying to link an X program!
18761   for ac_extension in a so sl; do
18762     if test -r "$ac_dir/libX11.$ac_extension"; then
18763       ac_x_libraries=$ac_dir
18764       break 2
18765     fi
18766   done
18767 done
18768 fi
18769
18770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18771       conftest$ac_exeext conftest.$ac_ext
18772 fi # $ac_x_libraries = no
18773
18774 case $ac_x_includes,$ac_x_libraries in #(
18775   no,* | *,no | *\'*)
18776     # Didn't find X, or a directory has "'" in its name.
18777     ac_cv_have_x="have_x=no";; #(
18778   *)
18779     # Record where we found X for the cache.
18780     ac_cv_have_x="have_x=yes\
18781         ac_x_includes='$ac_x_includes'\
18782         ac_x_libraries='$ac_x_libraries'"
18783 esac
18784 fi
18785 ;; #(
18786     *) have_x=yes;;
18787   esac
18788   eval "$ac_cv_have_x"
18789 fi # $with_x != no
18790
18791 if test "$have_x" != yes; then
18792   { echo "$as_me:$LINENO: result: $have_x" >&5
18793 echo "${ECHO_T}$have_x" >&6; }
18794   no_x=yes
18795 else
18796   # If each of the values was on the command line, it overrides each guess.
18797   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18798   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18799   # Update the cache value to reflect the command line values.
18800   ac_cv_have_x="have_x=yes\
18801         ac_x_includes='$x_includes'\
18802         ac_x_libraries='$x_libraries'"
18803   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18804 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18805 fi
18806
18807 if test "$no_x" = yes; then
18808   # Not all programs may use this symbol, but it does not hurt to define it.
18809
18810 cat >>confdefs.h <<\_ACEOF
18811 #define X_DISPLAY_MISSING 1
18812 _ACEOF
18813
18814   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18815 else
18816   if test -n "$x_includes"; then
18817     X_CFLAGS="$X_CFLAGS -I$x_includes"
18818   fi
18819
18820   # It would also be nice to do this for all -L options, not just this one.
18821   if test -n "$x_libraries"; then
18822     X_LIBS="$X_LIBS -L$x_libraries"
18823     # For Solaris; some versions of Sun CC require a space after -R and
18824     # others require no space.  Words are not sufficient . . . .
18825     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18826 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18827     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18828     ac_xsave_c_werror_flag=$ac_c_werror_flag
18829     ac_c_werror_flag=yes
18830     cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837 int
18838 main ()
18839 {
18840
18841   ;
18842   return 0;
18843 }
18844 _ACEOF
18845 rm -f conftest.$ac_objext conftest$ac_exeext
18846 if { (ac_try="$ac_link"
18847 case "(($ac_try" in
18848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849   *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852   (eval "$ac_link") 2>conftest.er1
18853   ac_status=$?
18854   grep -v '^ *+' conftest.er1 >conftest.err
18855   rm -f conftest.er1
18856   cat conftest.err >&5
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); } && {
18859          test -z "$ac_c_werror_flag" ||
18860          test ! -s conftest.err
18861        } && test -s conftest$ac_exeext &&
18862        $as_test_x conftest$ac_exeext; then
18863   { echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6; }
18865        X_LIBS="$X_LIBS -R$x_libraries"
18866 else
18867   echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870         LIBS="$ac_xsave_LIBS -R $x_libraries"
18871        cat >conftest.$ac_ext <<_ACEOF
18872 /* confdefs.h.  */
18873 _ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h.  */
18877
18878 int
18879 main ()
18880 {
18881
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_link") 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } && {
18900          test -z "$ac_c_werror_flag" ||
18901          test ! -s conftest.err
18902        } && test -s conftest$ac_exeext &&
18903        $as_test_x conftest$ac_exeext; then
18904   { echo "$as_me:$LINENO: result: yes" >&5
18905 echo "${ECHO_T}yes" >&6; }
18906           X_LIBS="$X_LIBS -R $x_libraries"
18907 else
18908   echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18910
18911         { echo "$as_me:$LINENO: result: neither works" >&5
18912 echo "${ECHO_T}neither works" >&6; }
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916       conftest$ac_exeext conftest.$ac_ext
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920       conftest$ac_exeext conftest.$ac_ext
18921     ac_c_werror_flag=$ac_xsave_c_werror_flag
18922     LIBS=$ac_xsave_LIBS
18923   fi
18924
18925   # Check for system-dependent libraries X programs must link with.
18926   # Do this before checking for the system-independent R6 libraries
18927   # (-lICE), since we may need -lsocket or whatever for X linking.
18928
18929   if test "$ISC" = yes; then
18930     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18931   else
18932     # Martyn Johnson says this is needed for Ultrix, if the X
18933     # libraries were built with DECnet support.  And Karl Berry says
18934     # the Alpha needs dnet_stub (dnet does not exist).
18935     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18936     cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h.  */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h.  */
18942
18943 /* Override any GCC internal prototype to avoid an error.
18944    Use char because int might match the return type of a GCC
18945    builtin and then its argument prototype would still apply.  */
18946 #ifdef __cplusplus
18947 extern "C"
18948 #endif
18949 char XOpenDisplay ();
18950 int
18951 main ()
18952 {
18953 return XOpenDisplay ();
18954   ;
18955   return 0;
18956 }
18957 _ACEOF
18958 rm -f conftest.$ac_objext conftest$ac_exeext
18959 if { (ac_try="$ac_link"
18960 case "(($ac_try" in
18961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962   *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965   (eval "$ac_link") 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } && {
18972          test -z "$ac_c_werror_flag" ||
18973          test ! -s conftest.err
18974        } && test -s conftest$ac_exeext &&
18975        $as_test_x conftest$ac_exeext; then
18976   :
18977 else
18978   echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.$ac_ext >&5
18980
18981         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18982 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18983 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18984   echo $ECHO_N "(cached) $ECHO_C" >&6
18985 else
18986   ac_check_lib_save_LIBS=$LIBS
18987 LIBS="-ldnet  $LIBS"
18988 cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h.  */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h.  */
18994
18995 /* Override any GCC internal prototype to avoid an error.
18996    Use char because int might match the return type of a GCC
18997    builtin and then its argument prototype would still apply.  */
18998 #ifdef __cplusplus
18999 extern "C"
19000 #endif
19001 char dnet_ntoa ();
19002 int
19003 main ()
19004 {
19005 return dnet_ntoa ();
19006   ;
19007   return 0;
19008 }
19009 _ACEOF
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_link") 2>conftest.er1
19018   ac_status=$?
19019   grep -v '^ *+' conftest.er1 >conftest.err
19020   rm -f conftest.er1
19021   cat conftest.err >&5
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); } && {
19024          test -z "$ac_c_werror_flag" ||
19025          test ! -s conftest.err
19026        } && test -s conftest$ac_exeext &&
19027        $as_test_x conftest$ac_exeext; then
19028   ac_cv_lib_dnet_dnet_ntoa=yes
19029 else
19030   echo "$as_me: failed program was:" >&5
19031 sed 's/^/| /' conftest.$ac_ext >&5
19032
19033         ac_cv_lib_dnet_dnet_ntoa=no
19034 fi
19035
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037       conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS
19039 fi
19040 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19041 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19042 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19043   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19044 fi
19045
19046     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19047       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19048 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19049 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19050   echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052   ac_check_lib_save_LIBS=$LIBS
19053 LIBS="-ldnet_stub  $LIBS"
19054 cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060
19061 /* Override any GCC internal prototype to avoid an error.
19062    Use char because int might match the return type of a GCC
19063    builtin and then its argument prototype would still apply.  */
19064 #ifdef __cplusplus
19065 extern "C"
19066 #endif
19067 char dnet_ntoa ();
19068 int
19069 main ()
19070 {
19071 return dnet_ntoa ();
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 rm -f conftest.$ac_objext conftest$ac_exeext
19077 if { (ac_try="$ac_link"
19078 case "(($ac_try" in
19079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080   *) ac_try_echo=$ac_try;;
19081 esac
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083   (eval "$ac_link") 2>conftest.er1
19084   ac_status=$?
19085   grep -v '^ *+' conftest.er1 >conftest.err
19086   rm -f conftest.er1
19087   cat conftest.err >&5
19088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089   (exit $ac_status); } && {
19090          test -z "$ac_c_werror_flag" ||
19091          test ! -s conftest.err
19092        } && test -s conftest$ac_exeext &&
19093        $as_test_x conftest$ac_exeext; then
19094   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19095 else
19096   echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099         ac_cv_lib_dnet_stub_dnet_ntoa=no
19100 fi
19101
19102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19103       conftest$ac_exeext conftest.$ac_ext
19104 LIBS=$ac_check_lib_save_LIBS
19105 fi
19106 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19107 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19108 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19109   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19110 fi
19111
19112     fi
19113 fi
19114
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116       conftest$ac_exeext conftest.$ac_ext
19117     LIBS="$ac_xsave_LIBS"
19118
19119     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19120     # to get the SysV transport functions.
19121     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19122     # needs -lnsl.
19123     # The nsl library prevents programs from opening the X display
19124     # on Irix 5.2, according to T.E. Dickey.
19125     # The functions gethostbyname, getservbyname, and inet_addr are
19126     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19127     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19128 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19129 if test "${ac_cv_func_gethostbyname+set}" = set; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h.  */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h.  */
19138 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19140 #define gethostbyname innocuous_gethostbyname
19141
19142 /* System header to define __stub macros and hopefully few prototypes,
19143     which can conflict with char gethostbyname (); below.
19144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145     <limits.h> exists even on freestanding compilers.  */
19146
19147 #ifdef __STDC__
19148 # include <limits.h>
19149 #else
19150 # include <assert.h>
19151 #endif
19152
19153 #undef gethostbyname
19154
19155 /* Override any GCC internal prototype to avoid an error.
19156    Use char because int might match the return type of a GCC
19157    builtin and then its argument prototype would still apply.  */
19158 #ifdef __cplusplus
19159 extern "C"
19160 #endif
19161 char gethostbyname ();
19162 /* The GNU C library defines this for functions which it implements
19163     to always fail with ENOSYS.  Some functions are actually named
19164     something starting with __ and the normal name is an alias.  */
19165 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19166 choke me
19167 #endif
19168
19169 int
19170 main ()
19171 {
19172 return gethostbyname ();
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (ac_try="$ac_link"
19179 case "(($ac_try" in
19180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181   *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184   (eval "$ac_link") 2>conftest.er1
19185   ac_status=$?
19186   grep -v '^ *+' conftest.er1 >conftest.err
19187   rm -f conftest.er1
19188   cat conftest.err >&5
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); } && {
19191          test -z "$ac_c_werror_flag" ||
19192          test ! -s conftest.err
19193        } && test -s conftest$ac_exeext &&
19194        $as_test_x conftest$ac_exeext; then
19195   ac_cv_func_gethostbyname=yes
19196 else
19197   echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200         ac_cv_func_gethostbyname=no
19201 fi
19202
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204       conftest$ac_exeext conftest.$ac_ext
19205 fi
19206 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19207 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19208
19209     if test $ac_cv_func_gethostbyname = no; then
19210       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19211 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19212 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19213   echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215   ac_check_lib_save_LIBS=$LIBS
19216 LIBS="-lnsl  $LIBS"
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223
19224 /* Override any GCC internal prototype to avoid an error.
19225    Use char because int might match the return type of a GCC
19226    builtin and then its argument prototype would still apply.  */
19227 #ifdef __cplusplus
19228 extern "C"
19229 #endif
19230 char gethostbyname ();
19231 int
19232 main ()
19233 {
19234 return gethostbyname ();
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_link") 2>conftest.er1
19247   ac_status=$?
19248   grep -v '^ *+' conftest.er1 >conftest.err
19249   rm -f conftest.er1
19250   cat conftest.err >&5
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } && {
19253          test -z "$ac_c_werror_flag" ||
19254          test ! -s conftest.err
19255        } && test -s conftest$ac_exeext &&
19256        $as_test_x conftest$ac_exeext; then
19257   ac_cv_lib_nsl_gethostbyname=yes
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262         ac_cv_lib_nsl_gethostbyname=no
19263 fi
19264
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266       conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19268 fi
19269 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19270 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19271 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19272   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19273 fi
19274
19275       if test $ac_cv_lib_nsl_gethostbyname = no; then
19276         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19277 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19278 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19279   echo $ECHO_N "(cached) $ECHO_C" >&6
19280 else
19281   ac_check_lib_save_LIBS=$LIBS
19282 LIBS="-lbsd  $LIBS"
19283 cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289
19290 /* Override any GCC internal prototype to avoid an error.
19291    Use char because int might match the return type of a GCC
19292    builtin and then its argument prototype would still apply.  */
19293 #ifdef __cplusplus
19294 extern "C"
19295 #endif
19296 char gethostbyname ();
19297 int
19298 main ()
19299 {
19300 return gethostbyname ();
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (ac_try="$ac_link"
19307 case "(($ac_try" in
19308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309   *) ac_try_echo=$ac_try;;
19310 esac
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312   (eval "$ac_link") 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } && {
19319          test -z "$ac_c_werror_flag" ||
19320          test ! -s conftest.err
19321        } && test -s conftest$ac_exeext &&
19322        $as_test_x conftest$ac_exeext; then
19323   ac_cv_lib_bsd_gethostbyname=yes
19324 else
19325   echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328         ac_cv_lib_bsd_gethostbyname=no
19329 fi
19330
19331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19332       conftest$ac_exeext conftest.$ac_ext
19333 LIBS=$ac_check_lib_save_LIBS
19334 fi
19335 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19336 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19337 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19338   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19339 fi
19340
19341       fi
19342     fi
19343
19344     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19345     # socket/setsockopt and other routines are undefined under SCO ODT
19346     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19347     # on later versions), says Simon Leinen: it contains gethostby*
19348     # variants that don't use the name server (or something).  -lsocket
19349     # must be given before -lnsl if both are needed.  We assume that
19350     # if connect needs -lnsl, so does gethostbyname.
19351     { echo "$as_me:$LINENO: checking for connect" >&5
19352 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19353 if test "${ac_cv_func_connect+set}" = set; then
19354   echo $ECHO_N "(cached) $ECHO_C" >&6
19355 else
19356   cat >conftest.$ac_ext <<_ACEOF
19357 /* confdefs.h.  */
19358 _ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h.  */
19362 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19364 #define connect innocuous_connect
19365
19366 /* System header to define __stub macros and hopefully few prototypes,
19367     which can conflict with char connect (); below.
19368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19369     <limits.h> exists even on freestanding compilers.  */
19370
19371 #ifdef __STDC__
19372 # include <limits.h>
19373 #else
19374 # include <assert.h>
19375 #endif
19376
19377 #undef connect
19378
19379 /* Override any GCC internal prototype to avoid an error.
19380    Use char because int might match the return type of a GCC
19381    builtin and then its argument prototype would still apply.  */
19382 #ifdef __cplusplus
19383 extern "C"
19384 #endif
19385 char connect ();
19386 /* The GNU C library defines this for functions which it implements
19387     to always fail with ENOSYS.  Some functions are actually named
19388     something starting with __ and the normal name is an alias.  */
19389 #if defined __stub_connect || defined __stub___connect
19390 choke me
19391 #endif
19392
19393 int
19394 main ()
19395 {
19396 return connect ();
19397   ;
19398   return 0;
19399 }
19400 _ACEOF
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405   *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408   (eval "$ac_link") 2>conftest.er1
19409   ac_status=$?
19410   grep -v '^ *+' conftest.er1 >conftest.err
19411   rm -f conftest.er1
19412   cat conftest.err >&5
19413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414   (exit $ac_status); } && {
19415          test -z "$ac_c_werror_flag" ||
19416          test ! -s conftest.err
19417        } && test -s conftest$ac_exeext &&
19418        $as_test_x conftest$ac_exeext; then
19419   ac_cv_func_connect=yes
19420 else
19421   echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424         ac_cv_func_connect=no
19425 fi
19426
19427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19428       conftest$ac_exeext conftest.$ac_ext
19429 fi
19430 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19431 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19432
19433     if test $ac_cv_func_connect = no; then
19434       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19435 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19436 if test "${ac_cv_lib_socket_connect+set}" = set; then
19437   echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439   ac_check_lib_save_LIBS=$LIBS
19440 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h.  */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h.  */
19447
19448 /* Override any GCC internal prototype to avoid an error.
19449    Use char because int might match the return type of a GCC
19450    builtin and then its argument prototype would still apply.  */
19451 #ifdef __cplusplus
19452 extern "C"
19453 #endif
19454 char connect ();
19455 int
19456 main ()
19457 {
19458 return connect ();
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467   *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470   (eval "$ac_link") 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && {
19477          test -z "$ac_c_werror_flag" ||
19478          test ! -s conftest.err
19479        } && test -s conftest$ac_exeext &&
19480        $as_test_x conftest$ac_exeext; then
19481   ac_cv_lib_socket_connect=yes
19482 else
19483   echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         ac_cv_lib_socket_connect=no
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19490       conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19492 fi
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19494 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19495 if test $ac_cv_lib_socket_connect = yes; then
19496   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19497 fi
19498
19499     fi
19500
19501     # Guillermo Gomez says -lposix is necessary on A/UX.
19502     { echo "$as_me:$LINENO: checking for remove" >&5
19503 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_remove+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19515 #define remove innocuous_remove
19516
19517 /* System header to define __stub macros and hopefully few prototypes,
19518     which can conflict with char remove (); below.
19519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19520     <limits.h> exists even on freestanding compilers.  */
19521
19522 #ifdef __STDC__
19523 # include <limits.h>
19524 #else
19525 # include <assert.h>
19526 #endif
19527
19528 #undef remove
19529
19530 /* Override any GCC internal prototype to avoid an error.
19531    Use char because int might match the return type of a GCC
19532    builtin and then its argument prototype would still apply.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 #endif
19536 char remove ();
19537 /* The GNU C library defines this for functions which it implements
19538     to always fail with ENOSYS.  Some functions are actually named
19539     something starting with __ and the normal name is an alias.  */
19540 #if defined __stub_remove || defined __stub___remove
19541 choke me
19542 #endif
19543
19544 int
19545 main ()
19546 {
19547 return remove ();
19548   ;
19549   return 0;
19550 }
19551 _ACEOF
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556   *) ac_try_echo=$ac_try;;
19557 esac
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559   (eval "$ac_link") 2>conftest.er1
19560   ac_status=$?
19561   grep -v '^ *+' conftest.er1 >conftest.err
19562   rm -f conftest.er1
19563   cat conftest.err >&5
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } && {
19566          test -z "$ac_c_werror_flag" ||
19567          test ! -s conftest.err
19568        } && test -s conftest$ac_exeext &&
19569        $as_test_x conftest$ac_exeext; then
19570   ac_cv_func_remove=yes
19571 else
19572   echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575         ac_cv_func_remove=no
19576 fi
19577
19578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19579       conftest$ac_exeext conftest.$ac_ext
19580 fi
19581 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19582 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19583
19584     if test $ac_cv_func_remove = no; then
19585       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19586 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19587 if test "${ac_cv_lib_posix_remove+set}" = set; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   ac_check_lib_save_LIBS=$LIBS
19591 LIBS="-lposix  $LIBS"
19592 cat >conftest.$ac_ext <<_ACEOF
19593 /* confdefs.h.  */
19594 _ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h.  */
19598
19599 /* Override any GCC internal prototype to avoid an error.
19600    Use char because int might match the return type of a GCC
19601    builtin and then its argument prototype would still apply.  */
19602 #ifdef __cplusplus
19603 extern "C"
19604 #endif
19605 char remove ();
19606 int
19607 main ()
19608 {
19609 return remove ();
19610   ;
19611   return 0;
19612 }
19613 _ACEOF
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618   *) ac_try_echo=$ac_try;;
19619 esac
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621   (eval "$ac_link") 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } && {
19628          test -z "$ac_c_werror_flag" ||
19629          test ! -s conftest.err
19630        } && test -s conftest$ac_exeext &&
19631        $as_test_x conftest$ac_exeext; then
19632   ac_cv_lib_posix_remove=yes
19633 else
19634   echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19636
19637         ac_cv_lib_posix_remove=no
19638 fi
19639
19640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19641       conftest$ac_exeext conftest.$ac_ext
19642 LIBS=$ac_check_lib_save_LIBS
19643 fi
19644 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19645 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19646 if test $ac_cv_lib_posix_remove = yes; then
19647   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19648 fi
19649
19650     fi
19651
19652     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19653     { echo "$as_me:$LINENO: checking for shmat" >&5
19654 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19655 if test "${ac_cv_func_shmat+set}" = set; then
19656   echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658   cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h.  */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h.  */
19664 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19666 #define shmat innocuous_shmat
19667
19668 /* System header to define __stub macros and hopefully few prototypes,
19669     which can conflict with char shmat (); below.
19670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671     <limits.h> exists even on freestanding compilers.  */
19672
19673 #ifdef __STDC__
19674 # include <limits.h>
19675 #else
19676 # include <assert.h>
19677 #endif
19678
19679 #undef shmat
19680
19681 /* Override any GCC internal prototype to avoid an error.
19682    Use char because int might match the return type of a GCC
19683    builtin and then its argument prototype would still apply.  */
19684 #ifdef __cplusplus
19685 extern "C"
19686 #endif
19687 char shmat ();
19688 /* The GNU C library defines this for functions which it implements
19689     to always fail with ENOSYS.  Some functions are actually named
19690     something starting with __ and the normal name is an alias.  */
19691 #if defined __stub_shmat || defined __stub___shmat
19692 choke me
19693 #endif
19694
19695 int
19696 main ()
19697 {
19698 return shmat ();
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_link") 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } && {
19717          test -z "$ac_c_werror_flag" ||
19718          test ! -s conftest.err
19719        } && test -s conftest$ac_exeext &&
19720        $as_test_x conftest$ac_exeext; then
19721   ac_cv_func_shmat=yes
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726         ac_cv_func_shmat=no
19727 fi
19728
19729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19730       conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19733 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19734
19735     if test $ac_cv_func_shmat = no; then
19736       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19737 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19738 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-lipc  $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749
19750 /* Override any GCC internal prototype to avoid an error.
19751    Use char because int might match the return type of a GCC
19752    builtin and then its argument prototype would still apply.  */
19753 #ifdef __cplusplus
19754 extern "C"
19755 #endif
19756 char shmat ();
19757 int
19758 main ()
19759 {
19760 return shmat ();
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769   *) ac_try_echo=$ac_try;;
19770 esac
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772   (eval "$ac_link") 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } && {
19779          test -z "$ac_c_werror_flag" ||
19780          test ! -s conftest.err
19781        } && test -s conftest$ac_exeext &&
19782        $as_test_x conftest$ac_exeext; then
19783   ac_cv_lib_ipc_shmat=yes
19784 else
19785   echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19787
19788         ac_cv_lib_ipc_shmat=no
19789 fi
19790
19791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19792       conftest$ac_exeext conftest.$ac_ext
19793 LIBS=$ac_check_lib_save_LIBS
19794 fi
19795 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19796 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19797 if test $ac_cv_lib_ipc_shmat = yes; then
19798   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19799 fi
19800
19801     fi
19802   fi
19803
19804   # Check for libraries that X11R6 Xt/Xaw programs need.
19805   ac_save_LDFLAGS=$LDFLAGS
19806   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19807   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19808   # check for ICE first), but we must link in the order -lSM -lICE or
19809   # we get undefined symbols.  So assume we have SM if we have ICE.
19810   # These have to be linked with before -lX11, unlike the other
19811   # libraries we check for below, so use a different variable.
19812   # John Interrante, Karl Berry
19813   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19814 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19815 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19816   echo $ECHO_N "(cached) $ECHO_C" >&6
19817 else
19818   ac_check_lib_save_LIBS=$LIBS
19819 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19820 cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826
19827 /* Override any GCC internal prototype to avoid an error.
19828    Use char because int might match the return type of a GCC
19829    builtin and then its argument prototype would still apply.  */
19830 #ifdef __cplusplus
19831 extern "C"
19832 #endif
19833 char IceConnectionNumber ();
19834 int
19835 main ()
19836 {
19837 return IceConnectionNumber ();
19838   ;
19839   return 0;
19840 }
19841 _ACEOF
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (ac_try="$ac_link"
19844 case "(($ac_try" in
19845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846   *) ac_try_echo=$ac_try;;
19847 esac
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849   (eval "$ac_link") 2>conftest.er1
19850   ac_status=$?
19851   grep -v '^ *+' conftest.er1 >conftest.err
19852   rm -f conftest.er1
19853   cat conftest.err >&5
19854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855   (exit $ac_status); } && {
19856          test -z "$ac_c_werror_flag" ||
19857          test ! -s conftest.err
19858        } && test -s conftest$ac_exeext &&
19859        $as_test_x conftest$ac_exeext; then
19860   ac_cv_lib_ICE_IceConnectionNumber=yes
19861 else
19862   echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19864
19865         ac_cv_lib_ICE_IceConnectionNumber=no
19866 fi
19867
19868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19869       conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS
19871 fi
19872 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19873 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19874 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19875   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19876 fi
19877
19878   LDFLAGS=$ac_save_LDFLAGS
19879
19880 fi
19881
19882
19883
19884
19885
19886
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 for ac_header in \
19914         assert.h \
19915         fcntl.h \
19916         grp.h \
19917         pwd.h \
19918         libc.h \
19919         limits.h \
19920         stdarg.h \
19921         stdlib.h \
19922         stdint.h \
19923         string.h \
19924         strings.h \
19925         termios.h \
19926         termcap.h \
19927         term.h \
19928         unistd.h \
19929         sys/bitypes.h \
19930         sys/byteorder.h \
19931         sys/ioctl.h \
19932         sys/select.h \
19933         sys/socket.h \
19934         sys/sockio.h \
19935         sys/stat.h \
19936         sys/time.h \
19937         sys/types.h \
19938         arpa/nameser.h \
19939         resolv.h \
19940         mtio.h \
19941         sys/mtio.h \
19942         sys/tape.h \
19943         regex.h \
19944
19945 do
19946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19951   echo $ECHO_N "(cached) $ECHO_C" >&6
19952 fi
19953 ac_res=`eval echo '${'$as_ac_Header'}'`
19954                { echo "$as_me:$LINENO: result: $ac_res" >&5
19955 echo "${ECHO_T}$ac_res" >&6; }
19956 else
19957   # Is the header compilable?
19958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h.  */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h.  */
19966 $ac_includes_default
19967 #include <$ac_header>
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_compile") 2>conftest.er1
19977   ac_status=$?
19978   grep -v '^ *+' conftest.er1 >conftest.err
19979   rm -f conftest.er1
19980   cat conftest.err >&5
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); } && {
19983          test -z "$ac_c_werror_flag" ||
19984          test ! -s conftest.err
19985        } && test -s conftest.$ac_objext; then
19986   ac_header_compiler=yes
19987 else
19988   echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991         ac_header_compiler=no
19992 fi
19993
19994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19996 echo "${ECHO_T}$ac_header_compiler" >&6; }
19997
19998 # Is the header present?
19999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007 #include <$ac_header>
20008 _ACEOF
20009 if { (ac_try="$ac_cpp conftest.$ac_ext"
20010 case "(($ac_try" in
20011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012   *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20016   ac_status=$?
20017   grep -v '^ *+' conftest.er1 >conftest.err
20018   rm -f conftest.er1
20019   cat conftest.err >&5
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } >/dev/null && {
20022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20023          test ! -s conftest.err
20024        }; then
20025   ac_header_preproc=yes
20026 else
20027   echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030   ac_header_preproc=no
20031 fi
20032
20033 rm -f conftest.err conftest.$ac_ext
20034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20035 echo "${ECHO_T}$ac_header_preproc" >&6; }
20036
20037 # So?  What about this header?
20038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20039   yes:no: )
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20044     ac_header_preproc=yes
20045     ;;
20046   no:yes:* )
20047     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20049     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20050 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20051     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20053     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20054 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20057     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20059
20060     ;;
20061 esac
20062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20065   echo $ECHO_N "(cached) $ECHO_C" >&6
20066 else
20067   eval "$as_ac_Header=\$ac_header_preproc"
20068 fi
20069 ac_res=`eval echo '${'$as_ac_Header'}'`
20070                { echo "$as_me:$LINENO: result: $ac_res" >&5
20071 echo "${ECHO_T}$ac_res" >&6; }
20072
20073 fi
20074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20075   cat >>confdefs.h <<_ACEOF
20076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20077 _ACEOF
20078
20079 fi
20080
20081 done
20082
20083 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20085 if test "${ac_cv_header_stdc+set}" = set; then
20086   echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088   cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 #include <stdlib.h>
20095 #include <stdarg.h>
20096 #include <string.h>
20097 #include <float.h>
20098
20099 int
20100 main ()
20101 {
20102
20103   ;
20104   return 0;
20105 }
20106 _ACEOF
20107 rm -f conftest.$ac_objext
20108 if { (ac_try="$ac_compile"
20109 case "(($ac_try" in
20110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111   *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114   (eval "$ac_compile") 2>conftest.er1
20115   ac_status=$?
20116   grep -v '^ *+' conftest.er1 >conftest.err
20117   rm -f conftest.er1
20118   cat conftest.err >&5
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); } && {
20121          test -z "$ac_c_werror_flag" ||
20122          test ! -s conftest.err
20123        } && test -s conftest.$ac_objext; then
20124   ac_cv_header_stdc=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20128
20129         ac_cv_header_stdc=no
20130 fi
20131
20132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20133
20134 if test $ac_cv_header_stdc = yes; then
20135   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20136   cat >conftest.$ac_ext <<_ACEOF
20137 /* confdefs.h.  */
20138 _ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h.  */
20142 #include <string.h>
20143
20144 _ACEOF
20145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20146   $EGREP "memchr" >/dev/null 2>&1; then
20147   :
20148 else
20149   ac_cv_header_stdc=no
20150 fi
20151 rm -f conftest*
20152
20153 fi
20154
20155 if test $ac_cv_header_stdc = yes; then
20156   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20157   cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163 #include <stdlib.h>
20164
20165 _ACEOF
20166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20167   $EGREP "free" >/dev/null 2>&1; then
20168   :
20169 else
20170   ac_cv_header_stdc=no
20171 fi
20172 rm -f conftest*
20173
20174 fi
20175
20176 if test $ac_cv_header_stdc = yes; then
20177   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20178   if test "$cross_compiling" = yes; then
20179   :
20180 else
20181   cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 #include <ctype.h>
20188 #include <stdlib.h>
20189 #if ((' ' & 0x0FF) == 0x020)
20190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20192 #else
20193 # define ISLOWER(c) \
20194                    (('a' <= (c) && (c) <= 'i') \
20195                      || ('j' <= (c) && (c) <= 'r') \
20196                      || ('s' <= (c) && (c) <= 'z'))
20197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20198 #endif
20199
20200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20201 int
20202 main ()
20203 {
20204   int i;
20205   for (i = 0; i < 256; i++)
20206     if (XOR (islower (i), ISLOWER (i))
20207         || toupper (i) != TOUPPER (i))
20208       return 2;
20209   return 0;
20210 }
20211 _ACEOF
20212 rm -f conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216   *) ac_try_echo=$ac_try;;
20217 esac
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219   (eval "$ac_link") 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20223   { (case "(($ac_try" in
20224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225   *) ac_try_echo=$ac_try;;
20226 esac
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228   (eval "$ac_try") 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; }; then
20232   :
20233 else
20234   echo "$as_me: program exited with status $ac_status" >&5
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238 ( exit $ac_status )
20239 ac_cv_header_stdc=no
20240 fi
20241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20242 fi
20243
20244
20245 fi
20246 fi
20247 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20248 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20249 if test $ac_cv_header_stdc = yes; then
20250
20251 cat >>confdefs.h <<\_ACEOF
20252 #define STDC_HEADERS 1
20253 _ACEOF
20254
20255 fi
20256
20257 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20258 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20259 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20260   echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262   cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h.  */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h.  */
20268 #include <sys/types.h>
20269 int
20270 main ()
20271 {
20272 return makedev(0, 0);
20273   ;
20274   return 0;
20275 }
20276 _ACEOF
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281   *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284   (eval "$ac_link") 2>conftest.er1
20285   ac_status=$?
20286   grep -v '^ *+' conftest.er1 >conftest.err
20287   rm -f conftest.er1
20288   cat conftest.err >&5
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); } && {
20291          test -z "$ac_c_werror_flag" ||
20292          test ! -s conftest.err
20293        } && test -s conftest$ac_exeext &&
20294        $as_test_x conftest$ac_exeext; then
20295   ac_cv_header_sys_types_h_makedev=yes
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300         ac_cv_header_sys_types_h_makedev=no
20301 fi
20302
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304       conftest$ac_exeext conftest.$ac_ext
20305
20306 fi
20307 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20308 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20309
20310 if test $ac_cv_header_sys_types_h_makedev = no; then
20311 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20312   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20313 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20314 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20315   echo $ECHO_N "(cached) $ECHO_C" >&6
20316 fi
20317 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20318 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20319 else
20320   # Is the header compilable?
20321 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20322 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329 $ac_includes_default
20330 #include <sys/mkdev.h>
20331 _ACEOF
20332 rm -f conftest.$ac_objext
20333 if { (ac_try="$ac_compile"
20334 case "(($ac_try" in
20335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336   *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339   (eval "$ac_compile") 2>conftest.er1
20340   ac_status=$?
20341   grep -v '^ *+' conftest.er1 >conftest.err
20342   rm -f conftest.er1
20343   cat conftest.err >&5
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } && {
20346          test -z "$ac_c_werror_flag" ||
20347          test ! -s conftest.err
20348        } && test -s conftest.$ac_objext; then
20349   ac_header_compiler=yes
20350 else
20351   echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354         ac_header_compiler=no
20355 fi
20356
20357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20359 echo "${ECHO_T}$ac_header_compiler" >&6; }
20360
20361 # Is the header present?
20362 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20363 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370 #include <sys/mkdev.h>
20371 _ACEOF
20372 if { (ac_try="$ac_cpp conftest.$ac_ext"
20373 case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } >/dev/null && {
20385          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20386          test ! -s conftest.err
20387        }; then
20388   ac_header_preproc=yes
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393   ac_header_preproc=no
20394 fi
20395
20396 rm -f conftest.err conftest.$ac_ext
20397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6; }
20399
20400 # So?  What about this header?
20401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20402   yes:no: )
20403     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20406 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20407     ac_header_preproc=yes
20408     ;;
20409   no:yes:* )
20410     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20411 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20412     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20413 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20414     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20415 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20416     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20417 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20418     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20419 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20420     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20421 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20422
20423     ;;
20424 esac
20425 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20426 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20427 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20428   echo $ECHO_N "(cached) $ECHO_C" >&6
20429 else
20430   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20431 fi
20432 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20433 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20434
20435 fi
20436 if test $ac_cv_header_sys_mkdev_h = yes; then
20437
20438 cat >>confdefs.h <<\_ACEOF
20439 #define MAJOR_IN_MKDEV 1
20440 _ACEOF
20441
20442 fi
20443
20444
20445
20446   if test $ac_cv_header_sys_mkdev_h = no; then
20447     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20448   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20449 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20450 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 fi
20453 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20454 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20455 else
20456   # Is the header compilable?
20457 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20458 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20459 cat >conftest.$ac_ext <<_ACEOF
20460 /* confdefs.h.  */
20461 _ACEOF
20462 cat confdefs.h >>conftest.$ac_ext
20463 cat >>conftest.$ac_ext <<_ACEOF
20464 /* end confdefs.h.  */
20465 $ac_includes_default
20466 #include <sys/sysmacros.h>
20467 _ACEOF
20468 rm -f conftest.$ac_objext
20469 if { (ac_try="$ac_compile"
20470 case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_compile") 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } && {
20482          test -z "$ac_c_werror_flag" ||
20483          test ! -s conftest.err
20484        } && test -s conftest.$ac_objext; then
20485   ac_header_compiler=yes
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490         ac_header_compiler=no
20491 fi
20492
20493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20495 echo "${ECHO_T}$ac_header_compiler" >&6; }
20496
20497 # Is the header present?
20498 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20499 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h.  */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h.  */
20506 #include <sys/sysmacros.h>
20507 _ACEOF
20508 if { (ac_try="$ac_cpp conftest.$ac_ext"
20509 case "(($ac_try" in
20510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511   *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20515   ac_status=$?
20516   grep -v '^ *+' conftest.er1 >conftest.err
20517   rm -f conftest.er1
20518   cat conftest.err >&5
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); } >/dev/null && {
20521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20522          test ! -s conftest.err
20523        }; then
20524   ac_header_preproc=yes
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529   ac_header_preproc=no
20530 fi
20531
20532 rm -f conftest.err conftest.$ac_ext
20533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20534 echo "${ECHO_T}$ac_header_preproc" >&6; }
20535
20536 # So?  What about this header?
20537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20538   yes:no: )
20539     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20540 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20541     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20542 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20543     ac_header_preproc=yes
20544     ;;
20545   no:yes:* )
20546     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20547 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20548     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20549 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20550     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20551 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20552     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20553 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20554     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20555 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20556     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20557 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20558
20559     ;;
20560 esac
20561 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20562 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20563 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20564   echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20567 fi
20568 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20569 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20570
20571 fi
20572 if test $ac_cv_header_sys_sysmacros_h = yes; then
20573
20574 cat >>confdefs.h <<\_ACEOF
20575 #define MAJOR_IN_SYSMACROS 1
20576 _ACEOF
20577
20578 fi
20579
20580
20581   fi
20582 fi
20583
20584
20585
20586
20587
20588
20589 ac_header_dirent=no
20590 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20591   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20592 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20593 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20595   echo $ECHO_N "(cached) $ECHO_C" >&6
20596 else
20597   cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603 #include <sys/types.h>
20604 #include <$ac_hdr>
20605
20606 int
20607 main ()
20608 {
20609 if ((DIR *) 0)
20610 return 0;
20611   ;
20612   return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (ac_try="$ac_compile"
20617 case "(($ac_try" in
20618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619   *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622   (eval "$ac_compile") 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } && {
20629          test -z "$ac_c_werror_flag" ||
20630          test ! -s conftest.err
20631        } && test -s conftest.$ac_objext; then
20632   eval "$as_ac_Header=yes"
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637         eval "$as_ac_Header=no"
20638 fi
20639
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 fi
20642 ac_res=`eval echo '${'$as_ac_Header'}'`
20643                { echo "$as_me:$LINENO: result: $ac_res" >&5
20644 echo "${ECHO_T}$ac_res" >&6; }
20645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20646   cat >>confdefs.h <<_ACEOF
20647 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20648 _ACEOF
20649
20650 ac_header_dirent=$ac_hdr; break
20651 fi
20652
20653 done
20654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20655 if test $ac_header_dirent = dirent.h; then
20656   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20658 if test "${ac_cv_search_opendir+set}" = set; then
20659   echo $ECHO_N "(cached) $ECHO_C" >&6
20660 else
20661   ac_func_search_save_LIBS=$LIBS
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h.  */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h.  */
20668
20669 /* Override any GCC internal prototype to avoid an error.
20670    Use char because int might match the return type of a GCC
20671    builtin and then its argument prototype would still apply.  */
20672 #ifdef __cplusplus
20673 extern "C"
20674 #endif
20675 char opendir ();
20676 int
20677 main ()
20678 {
20679 return opendir ();
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 for ac_lib in '' dir; do
20685   if test -z "$ac_lib"; then
20686     ac_res="none required"
20687   else
20688     ac_res=-l$ac_lib
20689     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20690   fi
20691   rm -f conftest.$ac_objext conftest$ac_exeext
20692 if { (ac_try="$ac_link"
20693 case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_link") 2>conftest.er1
20699   ac_status=$?
20700   grep -v '^ *+' conftest.er1 >conftest.err
20701   rm -f conftest.er1
20702   cat conftest.err >&5
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); } && {
20705          test -z "$ac_c_werror_flag" ||
20706          test ! -s conftest.err
20707        } && test -s conftest$ac_exeext &&
20708        $as_test_x conftest$ac_exeext; then
20709   ac_cv_search_opendir=$ac_res
20710 else
20711   echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20718       conftest$ac_exeext
20719   if test "${ac_cv_search_opendir+set}" = set; then
20720   break
20721 fi
20722 done
20723 if test "${ac_cv_search_opendir+set}" = set; then
20724   :
20725 else
20726   ac_cv_search_opendir=no
20727 fi
20728 rm conftest.$ac_ext
20729 LIBS=$ac_func_search_save_LIBS
20730 fi
20731 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20732 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20733 ac_res=$ac_cv_search_opendir
20734 if test "$ac_res" != no; then
20735   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20736
20737 fi
20738
20739 else
20740   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20742 if test "${ac_cv_search_opendir+set}" = set; then
20743   echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745   ac_func_search_save_LIBS=$LIBS
20746 cat >conftest.$ac_ext <<_ACEOF
20747 /* confdefs.h.  */
20748 _ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h.  */
20752
20753 /* Override any GCC internal prototype to avoid an error.
20754    Use char because int might match the return type of a GCC
20755    builtin and then its argument prototype would still apply.  */
20756 #ifdef __cplusplus
20757 extern "C"
20758 #endif
20759 char opendir ();
20760 int
20761 main ()
20762 {
20763 return opendir ();
20764   ;
20765   return 0;
20766 }
20767 _ACEOF
20768 for ac_lib in '' x; do
20769   if test -z "$ac_lib"; then
20770     ac_res="none required"
20771   else
20772     ac_res=-l$ac_lib
20773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20774   fi
20775   rm -f conftest.$ac_objext conftest$ac_exeext
20776 if { (ac_try="$ac_link"
20777 case "(($ac_try" in
20778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779   *) ac_try_echo=$ac_try;;
20780 esac
20781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782   (eval "$ac_link") 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } && {
20789          test -z "$ac_c_werror_flag" ||
20790          test ! -s conftest.err
20791        } && test -s conftest$ac_exeext &&
20792        $as_test_x conftest$ac_exeext; then
20793   ac_cv_search_opendir=$ac_res
20794 else
20795   echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20797
20798
20799 fi
20800
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802       conftest$ac_exeext
20803   if test "${ac_cv_search_opendir+set}" = set; then
20804   break
20805 fi
20806 done
20807 if test "${ac_cv_search_opendir+set}" = set; then
20808   :
20809 else
20810   ac_cv_search_opendir=no
20811 fi
20812 rm conftest.$ac_ext
20813 LIBS=$ac_func_search_save_LIBS
20814 fi
20815 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20816 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20817 ac_res=$ac_cv_search_opendir
20818 if test "$ac_res" != no; then
20819   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20820
20821 fi
20822
20823 fi
20824
20825 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20826 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20827 if test "${ac_cv_header_stat_broken+set}" = set; then
20828   echo $ECHO_N "(cached) $ECHO_C" >&6
20829 else
20830   cat >conftest.$ac_ext <<_ACEOF
20831 /* confdefs.h.  */
20832 _ACEOF
20833 cat confdefs.h >>conftest.$ac_ext
20834 cat >>conftest.$ac_ext <<_ACEOF
20835 /* end confdefs.h.  */
20836 #include <sys/types.h>
20837 #include <sys/stat.h>
20838
20839 #if defined S_ISBLK && defined S_IFDIR
20840 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20841 #endif
20842
20843 #if defined S_ISBLK && defined S_IFCHR
20844 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20845 #endif
20846
20847 #if defined S_ISLNK && defined S_IFREG
20848 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20849 #endif
20850
20851 #if defined S_ISSOCK && defined S_IFREG
20852 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20853 #endif
20854
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860   *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863   (eval "$ac_compile") 2>conftest.er1
20864   ac_status=$?
20865   grep -v '^ *+' conftest.er1 >conftest.err
20866   rm -f conftest.er1
20867   cat conftest.err >&5
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } && {
20870          test -z "$ac_c_werror_flag" ||
20871          test ! -s conftest.err
20872        } && test -s conftest.$ac_objext; then
20873   ac_cv_header_stat_broken=no
20874 else
20875   echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20877
20878         ac_cv_header_stat_broken=yes
20879 fi
20880
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882 fi
20883 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20884 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20885 if test $ac_cv_header_stat_broken = yes; then
20886
20887 cat >>confdefs.h <<\_ACEOF
20888 #define STAT_MACROS_BROKEN 1
20889 _ACEOF
20890
20891 fi
20892
20893 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20894 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20895 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20896   echo $ECHO_N "(cached) $ECHO_C" >&6
20897 else
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 #include <sys/types.h>
20905 #include <sys/wait.h>
20906 #ifndef WEXITSTATUS
20907 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20908 #endif
20909 #ifndef WIFEXITED
20910 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20911 #endif
20912
20913 int
20914 main ()
20915 {
20916   int s;
20917   wait (&s);
20918   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927   *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930   (eval "$ac_compile") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } && {
20937          test -z "$ac_c_werror_flag" ||
20938          test ! -s conftest.err
20939        } && test -s conftest.$ac_objext; then
20940   ac_cv_header_sys_wait_h=yes
20941 else
20942   echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945         ac_cv_header_sys_wait_h=no
20946 fi
20947
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 fi
20950 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20951 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20952 if test $ac_cv_header_sys_wait_h = yes; then
20953
20954 cat >>confdefs.h <<\_ACEOF
20955 #define HAVE_SYS_WAIT_H 1
20956 _ACEOF
20957
20958 fi
20959
20960 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20961 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20962 if test "${ac_cv_header_time+set}" = set; then
20963   echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971 #include <sys/types.h>
20972 #include <sys/time.h>
20973 #include <time.h>
20974
20975 int
20976 main ()
20977 {
20978 if ((struct tm *) 0)
20979 return 0;
20980   ;
20981   return 0;
20982 }
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988   *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991   (eval "$ac_compile") 2>conftest.er1
20992   ac_status=$?
20993   grep -v '^ *+' conftest.er1 >conftest.err
20994   rm -f conftest.er1
20995   cat conftest.err >&5
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } && {
20998          test -z "$ac_c_werror_flag" ||
20999          test ! -s conftest.err
21000        } && test -s conftest.$ac_objext; then
21001   ac_cv_header_time=yes
21002 else
21003   echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21005
21006         ac_cv_header_time=no
21007 fi
21008
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 fi
21011 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21012 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21013 if test $ac_cv_header_time = yes; then
21014
21015 cat >>confdefs.h <<\_ACEOF
21016 #define TIME_WITH_SYS_TIME 1
21017 _ACEOF
21018
21019 fi
21020
21021 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21022 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21023 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21024   echo $ECHO_N "(cached) $ECHO_C" >&6
21025 else
21026   cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h.  */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h.  */
21032 $ac_includes_default
21033 int
21034 main ()
21035 {
21036 static struct stat ac_aggr;
21037 if (ac_aggr.st_blksize)
21038 return 0;
21039   ;
21040   return 0;
21041 }
21042 _ACEOF
21043 rm -f conftest.$ac_objext
21044 if { (ac_try="$ac_compile"
21045 case "(($ac_try" in
21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047   *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050   (eval "$ac_compile") 2>conftest.er1
21051   ac_status=$?
21052   grep -v '^ *+' conftest.er1 >conftest.err
21053   rm -f conftest.er1
21054   cat conftest.err >&5
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); } && {
21057          test -z "$ac_c_werror_flag" ||
21058          test ! -s conftest.err
21059        } && test -s conftest.$ac_objext; then
21060   ac_cv_member_struct_stat_st_blksize=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065         cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071 $ac_includes_default
21072 int
21073 main ()
21074 {
21075 static struct stat ac_aggr;
21076 if (sizeof ac_aggr.st_blksize)
21077 return 0;
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089   (eval "$ac_compile") 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } && {
21096          test -z "$ac_c_werror_flag" ||
21097          test ! -s conftest.err
21098        } && test -s conftest.$ac_objext; then
21099   ac_cv_member_struct_stat_st_blksize=yes
21100 else
21101   echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104         ac_cv_member_struct_stat_st_blksize=no
21105 fi
21106
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 fi
21109
21110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 fi
21112 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21113 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21114 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21115
21116 cat >>confdefs.h <<_ACEOF
21117 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21118 _ACEOF
21119
21120
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_ST_BLKSIZE 1
21123 _ACEOF
21124
21125 fi
21126
21127
21128 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21129 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21130 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 $ac_includes_default
21140 int
21141 main ()
21142 {
21143 static struct stat ac_aggr;
21144 if (ac_aggr.st_blocks)
21145 return 0;
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_compile") 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } && {
21164          test -z "$ac_c_werror_flag" ||
21165          test ! -s conftest.err
21166        } && test -s conftest.$ac_objext; then
21167   ac_cv_member_struct_stat_st_blocks=yes
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172         cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 $ac_includes_default
21179 int
21180 main ()
21181 {
21182 static struct stat ac_aggr;
21183 if (sizeof ac_aggr.st_blocks)
21184 return 0;
21185   ;
21186   return 0;
21187 }
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_compile") 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } && {
21203          test -z "$ac_c_werror_flag" ||
21204          test ! -s conftest.err
21205        } && test -s conftest.$ac_objext; then
21206   ac_cv_member_struct_stat_st_blocks=yes
21207 else
21208   echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211         ac_cv_member_struct_stat_st_blocks=no
21212 fi
21213
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215 fi
21216
21217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21218 fi
21219 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21220 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21221 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21222
21223 cat >>confdefs.h <<_ACEOF
21224 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21225 _ACEOF
21226
21227
21228 cat >>confdefs.h <<\_ACEOF
21229 #define HAVE_ST_BLOCKS 1
21230 _ACEOF
21231
21232 else
21233   case " $LIBOBJS " in
21234   *" fileblocks.$ac_objext "* ) ;;
21235   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21236  ;;
21237 esac
21238
21239 fi
21240
21241
21242 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21243 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21244 if test "${ac_cv_struct_tm+set}" = set; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247   cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h.  */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h.  */
21253 #include <sys/types.h>
21254 #include <time.h>
21255
21256 int
21257 main ()
21258 {
21259 struct tm tm;
21260                                      int *p = &tm.tm_sec;
21261                                      return !p;
21262   ;
21263   return 0;
21264 }
21265 _ACEOF
21266 rm -f conftest.$ac_objext
21267 if { (ac_try="$ac_compile"
21268 case "(($ac_try" in
21269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270   *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273   (eval "$ac_compile") 2>conftest.er1
21274   ac_status=$?
21275   grep -v '^ *+' conftest.er1 >conftest.err
21276   rm -f conftest.er1
21277   cat conftest.err >&5
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } && {
21280          test -z "$ac_c_werror_flag" ||
21281          test ! -s conftest.err
21282        } && test -s conftest.$ac_objext; then
21283   ac_cv_struct_tm=time.h
21284 else
21285   echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21287
21288         ac_cv_struct_tm=sys/time.h
21289 fi
21290
21291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 fi
21293 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21294 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21295 if test $ac_cv_struct_tm = sys/time.h; then
21296
21297 cat >>confdefs.h <<\_ACEOF
21298 #define TM_IN_SYS_TIME 1
21299 _ACEOF
21300
21301 fi
21302
21303 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21304 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21305 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 #include <sys/types.h>
21315 #include <$ac_cv_struct_tm>
21316
21317
21318 int
21319 main ()
21320 {
21321 static struct tm ac_aggr;
21322 if (ac_aggr.tm_zone)
21323 return 0;
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext
21329 if { (ac_try="$ac_compile"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_compile") 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } && {
21342          test -z "$ac_c_werror_flag" ||
21343          test ! -s conftest.err
21344        } && test -s conftest.$ac_objext; then
21345   ac_cv_member_struct_tm_tm_zone=yes
21346 else
21347   echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350         cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356 #include <sys/types.h>
21357 #include <$ac_cv_struct_tm>
21358
21359
21360 int
21361 main ()
21362 {
21363 static struct tm ac_aggr;
21364 if (sizeof ac_aggr.tm_zone)
21365 return 0;
21366   ;
21367   return 0;
21368 }
21369 _ACEOF
21370 rm -f conftest.$ac_objext
21371 if { (ac_try="$ac_compile"
21372 case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377   (eval "$ac_compile") 2>conftest.er1
21378   ac_status=$?
21379   grep -v '^ *+' conftest.er1 >conftest.err
21380   rm -f conftest.er1
21381   cat conftest.err >&5
21382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383   (exit $ac_status); } && {
21384          test -z "$ac_c_werror_flag" ||
21385          test ! -s conftest.err
21386        } && test -s conftest.$ac_objext; then
21387   ac_cv_member_struct_tm_tm_zone=yes
21388 else
21389   echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21391
21392         ac_cv_member_struct_tm_tm_zone=no
21393 fi
21394
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 fi
21397
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21399 fi
21400 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21401 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21402 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21403
21404 cat >>confdefs.h <<_ACEOF
21405 #define HAVE_STRUCT_TM_TM_ZONE 1
21406 _ACEOF
21407
21408
21409 fi
21410
21411 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21412
21413 cat >>confdefs.h <<\_ACEOF
21414 #define HAVE_TM_ZONE 1
21415 _ACEOF
21416
21417 else
21418   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21419 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21420 if test "${ac_cv_have_decl_tzname+set}" = set; then
21421   echo $ECHO_N "(cached) $ECHO_C" >&6
21422 else
21423   cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 #include <time.h>
21430
21431 int
21432 main ()
21433 {
21434 #ifndef tzname
21435   (void) tzname;
21436 #endif
21437
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
21444 case "(($ac_try" in
21445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446   *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449   (eval "$ac_compile") 2>conftest.er1
21450   ac_status=$?
21451   grep -v '^ *+' conftest.er1 >conftest.err
21452   rm -f conftest.er1
21453   cat conftest.err >&5
21454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455   (exit $ac_status); } && {
21456          test -z "$ac_c_werror_flag" ||
21457          test ! -s conftest.err
21458        } && test -s conftest.$ac_objext; then
21459   ac_cv_have_decl_tzname=yes
21460 else
21461   echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21463
21464         ac_cv_have_decl_tzname=no
21465 fi
21466
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 fi
21469 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21470 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21471 if test $ac_cv_have_decl_tzname = yes; then
21472
21473 cat >>confdefs.h <<_ACEOF
21474 #define HAVE_DECL_TZNAME 1
21475 _ACEOF
21476
21477
21478 else
21479   cat >>confdefs.h <<_ACEOF
21480 #define HAVE_DECL_TZNAME 0
21481 _ACEOF
21482
21483
21484 fi
21485
21486
21487   { echo "$as_me:$LINENO: checking for tzname" >&5
21488 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21489 if test "${ac_cv_var_tzname+set}" = set; then
21490   echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492   cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h.  */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h.  */
21498 #include <time.h>
21499 #if !HAVE_DECL_TZNAME
21500 extern char *tzname[];
21501 #endif
21502
21503 int
21504 main ()
21505 {
21506 return tzname[0][0];
21507   ;
21508   return 0;
21509 }
21510 _ACEOF
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (ac_try="$ac_link"
21513 case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518   (eval "$ac_link") 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } && {
21525          test -z "$ac_c_werror_flag" ||
21526          test ! -s conftest.err
21527        } && test -s conftest$ac_exeext &&
21528        $as_test_x conftest$ac_exeext; then
21529   ac_cv_var_tzname=yes
21530 else
21531   echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534         ac_cv_var_tzname=no
21535 fi
21536
21537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21538       conftest$ac_exeext conftest.$ac_ext
21539 fi
21540 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21541 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21542   if test $ac_cv_var_tzname = yes; then
21543
21544 cat >>confdefs.h <<\_ACEOF
21545 #define HAVE_TZNAME 1
21546 _ACEOF
21547
21548   fi
21549 fi
21550
21551
21552 { echo "$as_me:$LINENO: checking for utime.h" >&5
21553 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21554 if test "${ba_cv_header_utime_h+set}" = set; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 else
21557   cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h.  */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h.  */
21563
21564 #include <sys/types.h>
21565 #include <utime.h>
21566 int
21567 main ()
21568 {
21569 struct utimbuf foo
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (ac_try="$ac_compile"
21576 case "(($ac_try" in
21577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578   *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581   (eval "$ac_compile") 2>conftest.er1
21582   ac_status=$?
21583   grep -v '^ *+' conftest.er1 >conftest.err
21584   rm -f conftest.er1
21585   cat conftest.err >&5
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } && {
21588          test -z "$ac_c_werror_flag" ||
21589          test ! -s conftest.err
21590        } && test -s conftest.$ac_objext; then
21591   ba_cv_header_utime_h=yes
21592 else
21593   echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596         ba_cv_header_utime_h=no
21597 fi
21598
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 fi
21601 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21602 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21603 test $ba_cv_header_utime_h = yes &&
21604 cat >>confdefs.h <<\_ACEOF
21605 #define HAVE_UTIME_H 1
21606 _ACEOF
21607
21608
21609 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21610 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21611 if test "${ba_cv_header_socklen_t+set}" = set; then
21612   echo $ECHO_N "(cached) $ECHO_C" >&6
21613 else
21614   cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620
21621 #include <sys/types.h>
21622 #include <sys/socket.h>
21623 int
21624 main ()
21625 {
21626 socklen_t x
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest.$ac_objext
21632 if { (ac_try="$ac_compile"
21633 case "(($ac_try" in
21634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635   *) ac_try_echo=$ac_try;;
21636 esac
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638   (eval "$ac_compile") 2>conftest.er1
21639   ac_status=$?
21640   grep -v '^ *+' conftest.er1 >conftest.err
21641   rm -f conftest.er1
21642   cat conftest.err >&5
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } && {
21645          test -z "$ac_c_werror_flag" ||
21646          test ! -s conftest.err
21647        } && test -s conftest.$ac_objext; then
21648   ba_cv_header_socklen_t=yes
21649 else
21650   echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653         ba_cv_header_socklen_t=no
21654 fi
21655
21656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657 fi
21658 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21659 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21660 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21661 #define HAVE_SOCKLEN_T 1
21662 _ACEOF
21663
21664
21665 { echo "$as_me:$LINENO: checking for bigendian" >&5
21666 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21667 if test "${ba_cv_bigendian+set}" = set; then
21668   echo $ECHO_N "(cached) $ECHO_C" >&6
21669 else
21670   if test "$cross_compiling" = yes; then
21671   ba_cv_bigendian=no
21672 else
21673   cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h.  */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h.  */
21679 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21680 _ACEOF
21681 rm -f conftest$ac_exeext
21682 if { (ac_try="$ac_link"
21683 case "(($ac_try" in
21684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685   *) ac_try_echo=$ac_try;;
21686 esac
21687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21688   (eval "$ac_link") 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21692   { (case "(($ac_try" in
21693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694   *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697   (eval "$ac_try") 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; }; then
21701   ba_cv_bigendian=yes
21702 else
21703   echo "$as_me: program exited with status $ac_status" >&5
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 ( exit $ac_status )
21708 ba_cv_bigendian=no
21709 fi
21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21711 fi
21712
21713
21714 fi
21715 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21716 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21717 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21718 #define HAVE_BIGENDIAN 1
21719 _ACEOF
21720
21721
21722 ac_ext=cpp
21723 ac_cpp='$CXXCPP $CPPFLAGS'
21724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21727
21728
21729 { echo "$as_me:$LINENO: checking for typeof" >&5
21730 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21731 if test "${ba_cv_have_typeof+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   if test "$cross_compiling" = yes; then
21735   ba_cv_have_typeof=no
21736 else
21737   cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h.  */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h.  */
21743 main(){char *a = 0; a = (typeof a)a;}
21744 _ACEOF
21745 rm -f conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749   *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752   (eval "$ac_link") 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756   { (case "(($ac_try" in
21757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758   *) ac_try_echo=$ac_try;;
21759 esac
21760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21761   (eval "$ac_try") 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); }; }; then
21765   ba_cv_have_typeof=yes
21766 else
21767   echo "$as_me: program exited with status $ac_status" >&5
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 ( exit $ac_status )
21772 ba_cv_have_typeof=no
21773 fi
21774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21775 fi
21776
21777
21778 fi
21779 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21780 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21781 test $ba_cv_have_typeof = yes &&
21782 cat >>confdefs.h <<\_ACEOF
21783 #define HAVE_TYPEOF 1
21784 _ACEOF
21785
21786 ac_ext=c
21787 ac_cpp='$CPP $CPPFLAGS'
21788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21791
21792
21793 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21794 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21795 if test "${ac_cv_c_const+set}" = set; then
21796   echo $ECHO_N "(cached) $ECHO_C" >&6
21797 else
21798   cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804
21805 int
21806 main ()
21807 {
21808 /* FIXME: Include the comments suggested by Paul. */
21809 #ifndef __cplusplus
21810   /* Ultrix mips cc rejects this.  */
21811   typedef int charset[2];
21812   const charset cs;
21813   /* SunOS 4.1.1 cc rejects this.  */
21814   char const *const *pcpcc;
21815   char **ppc;
21816   /* NEC SVR4.0.2 mips cc rejects this.  */
21817   struct point {int x, y;};
21818   static struct point const zero = {0,0};
21819   /* AIX XL C 1.02.0.0 rejects this.
21820      It does not let you subtract one const X* pointer from another in
21821      an arm of an if-expression whose if-part is not a constant
21822      expression */
21823   const char *g = "string";
21824   pcpcc = &g + (g ? g-g : 0);
21825   /* HPUX 7.0 cc rejects these. */
21826   ++pcpcc;
21827   ppc = (char**) pcpcc;
21828   pcpcc = (char const *const *) ppc;
21829   { /* SCO 3.2v4 cc rejects this.  */
21830     char *t;
21831     char const *s = 0 ? (char *) 0 : (char const *) 0;
21832
21833     *t++ = 0;
21834     if (s) return 0;
21835   }
21836   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21837     int x[] = {25, 17};
21838     const int *foo = &x[0];
21839     ++foo;
21840   }
21841   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21842     typedef const int *iptr;
21843     iptr p = 0;
21844     ++p;
21845   }
21846   { /* AIX XL C 1.02.0.0 rejects this saying
21847        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21848     struct s { int j; const int *ap[3]; };
21849     struct s *b; b->j = 5;
21850   }
21851   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21852     const int foo = 10;
21853     if (!foo) return 0;
21854   }
21855   return !cs[0] && !zero.x;
21856 #endif
21857
21858   ;
21859   return 0;
21860 }
21861 _ACEOF
21862 rm -f conftest.$ac_objext
21863 if { (ac_try="$ac_compile"
21864 case "(($ac_try" in
21865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866   *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869   (eval "$ac_compile") 2>conftest.er1
21870   ac_status=$?
21871   grep -v '^ *+' conftest.er1 >conftest.err
21872   rm -f conftest.er1
21873   cat conftest.err >&5
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } && {
21876          test -z "$ac_c_werror_flag" ||
21877          test ! -s conftest.err
21878        } && test -s conftest.$ac_objext; then
21879   ac_cv_c_const=yes
21880 else
21881   echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21883
21884         ac_cv_c_const=no
21885 fi
21886
21887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21888 fi
21889 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21890 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21891 if test $ac_cv_c_const = no; then
21892
21893 cat >>confdefs.h <<\_ACEOF
21894 #define const
21895 _ACEOF
21896
21897 fi
21898
21899
21900
21901 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21902 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21903 fstype=no
21904 # The order of these tests is important.
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 #include <sys/statvfs.h>
21912 #include <sys/fstyp.h>
21913 _ACEOF
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917   *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21921   ac_status=$?
21922   grep -v '^ *+' conftest.er1 >conftest.err
21923   rm -f conftest.er1
21924   cat conftest.err >&5
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); } >/dev/null && {
21927          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928          test ! -s conftest.err
21929        }; then
21930   cat >>confdefs.h <<\_ACEOF
21931 #define FSTYPE_STATVFS 1
21932 _ACEOF
21933  fstype=SVR4
21934 else
21935   echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938
21939 fi
21940
21941 rm -f conftest.err conftest.$ac_ext
21942 if test $fstype = no; then
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949 #include <sys/statfs.h>
21950 #include <sys/fstyp.h>
21951 _ACEOF
21952 if { (ac_try="$ac_cpp conftest.$ac_ext"
21953 case "(($ac_try" in
21954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955   *) ac_try_echo=$ac_try;;
21956 esac
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21959   ac_status=$?
21960   grep -v '^ *+' conftest.er1 >conftest.err
21961   rm -f conftest.er1
21962   cat conftest.err >&5
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } >/dev/null && {
21965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21966          test ! -s conftest.err
21967        }; then
21968   cat >>confdefs.h <<\_ACEOF
21969 #define FSTYPE_USG_STATFS 1
21970 _ACEOF
21971  fstype=SVR3
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976
21977 fi
21978
21979 rm -f conftest.err conftest.$ac_ext
21980 fi
21981 if test $fstype = no; then
21982 cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h.  */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h.  */
21988 #include <sys/statfs.h>
21989 #include <sys/vmount.h>
21990 _ACEOF
21991 if { (ac_try="$ac_cpp conftest.$ac_ext"
21992 case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21998   ac_status=$?
21999   grep -v '^ *+' conftest.er1 >conftest.err
22000   rm -f conftest.er1
22001   cat conftest.err >&5
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); } >/dev/null && {
22004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22005          test ! -s conftest.err
22006        }; then
22007   cat >>confdefs.h <<\_ACEOF
22008 #define FSTYPE_AIX_STATFS 1
22009 _ACEOF
22010  fstype=AIX
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015
22016 fi
22017
22018 rm -f conftest.err conftest.$ac_ext
22019 fi
22020 if test $fstype = no; then
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 #include <mntent.h>
22028 _ACEOF
22029 if { (ac_try="$ac_cpp conftest.$ac_ext"
22030 case "(($ac_try" in
22031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032   *) ac_try_echo=$ac_try;;
22033 esac
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22036   ac_status=$?
22037   grep -v '^ *+' conftest.er1 >conftest.err
22038   rm -f conftest.er1
22039   cat conftest.err >&5
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } >/dev/null && {
22042          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22043          test ! -s conftest.err
22044        }; then
22045   cat >>confdefs.h <<\_ACEOF
22046 #define FSTYPE_MNTENT 1
22047 _ACEOF
22048  fstype=4.3BSD
22049 else
22050   echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22052
22053
22054 fi
22055
22056 rm -f conftest.err conftest.$ac_ext
22057 fi
22058 if test $fstype = no; then
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h.  */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h.  */
22065 #include <sys/mount.h>
22066
22067 _ACEOF
22068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22069   $EGREP "f_type;" >/dev/null 2>&1; then
22070   cat >>confdefs.h <<\_ACEOF
22071 #define FSTYPE_STATFS 1
22072 _ACEOF
22073  fstype=4.4BSD/OSF1
22074 fi
22075 rm -f conftest*
22076
22077 fi
22078 if test $fstype = no; then
22079 cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h.  */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h.  */
22085 #include <sys/mount.h>
22086 #include <sys/fs_types.h>
22087 _ACEOF
22088 if { (ac_try="$ac_cpp conftest.$ac_ext"
22089 case "(($ac_try" in
22090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091   *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } >/dev/null && {
22101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22102          test ! -s conftest.err
22103        }; then
22104   cat >>confdefs.h <<\_ACEOF
22105 #define FSTYPE_GETMNT 1
22106 _ACEOF
22107  fstype=Ultrix
22108 else
22109   echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112
22113 fi
22114
22115 rm -f conftest.err conftest.$ac_ext
22116 fi
22117 { echo "$as_me:$LINENO: result: $fstype" >&5
22118 echo "${ECHO_T}$fstype" >&6; }
22119
22120 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22121   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22122 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22123 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22124   echo $ECHO_N "(cached) $ECHO_C" >&6
22125 fi
22126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22127 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22128 else
22129   # Is the header compilable?
22130 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22131 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138 $ac_includes_default
22139 #include <sys/statvfs.h>
22140 _ACEOF
22141 rm -f conftest.$ac_objext
22142 if { (ac_try="$ac_compile"
22143 case "(($ac_try" in
22144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145   *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148   (eval "$ac_compile") 2>conftest.er1
22149   ac_status=$?
22150   grep -v '^ *+' conftest.er1 >conftest.err
22151   rm -f conftest.er1
22152   cat conftest.err >&5
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); } && {
22155          test -z "$ac_c_werror_flag" ||
22156          test ! -s conftest.err
22157        } && test -s conftest.$ac_objext; then
22158   ac_header_compiler=yes
22159 else
22160   echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163         ac_header_compiler=no
22164 fi
22165
22166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22168 echo "${ECHO_T}$ac_header_compiler" >&6; }
22169
22170 # Is the header present?
22171 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22172 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22173 cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 #include <sys/statvfs.h>
22180 _ACEOF
22181 if { (ac_try="$ac_cpp conftest.$ac_ext"
22182 case "(($ac_try" in
22183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184   *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } >/dev/null && {
22194          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22195          test ! -s conftest.err
22196        }; then
22197   ac_header_preproc=yes
22198 else
22199   echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22201
22202   ac_header_preproc=no
22203 fi
22204
22205 rm -f conftest.err conftest.$ac_ext
22206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22207 echo "${ECHO_T}$ac_header_preproc" >&6; }
22208
22209 # So?  What about this header?
22210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22211   yes:no: )
22212     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22213 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22214     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22215 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22216     ac_header_preproc=yes
22217     ;;
22218   no:yes:* )
22219     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22220 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22221     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22222 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22223     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22224 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22225     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22226 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22227     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22228 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22229     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22230 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22231
22232     ;;
22233 esac
22234 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22235 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22236 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22237   echo $ECHO_N "(cached) $ECHO_C" >&6
22238 else
22239   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22240 fi
22241 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22242 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22243
22244 fi
22245 if test $ac_cv_header_sys_statvfs_h = yes; then
22246
22247 cat >>confdefs.h <<\_ACEOF
22248 #define HAVE_SYS_STATVFS_H 1
22249 _ACEOF
22250
22251 fi
22252
22253
22254
22255 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22256 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22257 if test "${ac_cv_type_signal+set}" = set; then
22258   echo $ECHO_N "(cached) $ECHO_C" >&6
22259 else
22260   cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h.  */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h.  */
22266 #include <sys/types.h>
22267 #include <signal.h>
22268
22269 int
22270 main ()
22271 {
22272 return *(signal (0, 0)) (0) == 1;
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284   (eval "$ac_compile") 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && {
22291          test -z "$ac_c_werror_flag" ||
22292          test ! -s conftest.err
22293        } && test -s conftest.$ac_objext; then
22294   ac_cv_type_signal=int
22295 else
22296   echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22298
22299         ac_cv_type_signal=void
22300 fi
22301
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 fi
22304 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22305 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22306
22307 cat >>confdefs.h <<_ACEOF
22308 #define RETSIGTYPE $ac_cv_type_signal
22309 _ACEOF
22310
22311
22312
22313   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22314 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22315   if test "${bash_cv_signal_vintage+set}" = set; then
22316   echo $ECHO_N "(cached) $ECHO_C" >&6
22317 else
22318
22319     cat >conftest.$ac_ext <<_ACEOF
22320 /* confdefs.h.  */
22321 _ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h.  */
22325 #include <signal.h>
22326 int
22327 main ()
22328 {
22329
22330       sigset_t ss;
22331       struct sigaction sa;
22332       sigemptyset(&ss); sigsuspend(&ss);
22333       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22334       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22335
22336   ;
22337   return 0;
22338 }
22339 _ACEOF
22340 rm -f conftest.$ac_objext conftest$ac_exeext
22341 if { (ac_try="$ac_link"
22342 case "(($ac_try" in
22343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344   *) ac_try_echo=$ac_try;;
22345 esac
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347   (eval "$ac_link") 2>conftest.er1
22348   ac_status=$?
22349   grep -v '^ *+' conftest.er1 >conftest.err
22350   rm -f conftest.er1
22351   cat conftest.err >&5
22352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353   (exit $ac_status); } && {
22354          test -z "$ac_c_werror_flag" ||
22355          test ! -s conftest.err
22356        } && test -s conftest$ac_exeext &&
22357        $as_test_x conftest$ac_exeext; then
22358   bash_cv_signal_vintage="posix"
22359 else
22360   echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363
22364       cat >conftest.$ac_ext <<_ACEOF
22365 /* confdefs.h.  */
22366 _ACEOF
22367 cat confdefs.h >>conftest.$ac_ext
22368 cat >>conftest.$ac_ext <<_ACEOF
22369 /* end confdefs.h.  */
22370 #include <signal.h>
22371 int
22372 main ()
22373 {
22374
22375           int mask = sigmask(SIGINT);
22376           sigsetmask(mask); sigblock(mask); sigpause(mask);
22377
22378   ;
22379   return 0;
22380 }
22381 _ACEOF
22382 rm -f conftest.$ac_objext conftest$ac_exeext
22383 if { (ac_try="$ac_link"
22384 case "(($ac_try" in
22385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386   *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389   (eval "$ac_link") 2>conftest.er1
22390   ac_status=$?
22391   grep -v '^ *+' conftest.er1 >conftest.err
22392   rm -f conftest.er1
22393   cat conftest.err >&5
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); } && {
22396          test -z "$ac_c_werror_flag" ||
22397          test ! -s conftest.err
22398        } && test -s conftest$ac_exeext &&
22399        $as_test_x conftest$ac_exeext; then
22400   bash_cv_signal_vintage="4.2bsd"
22401 else
22402   echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405
22406         cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h.  */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h.  */
22412
22413           #include <signal.h>
22414           RETSIGTYPE foo() { }
22415 int
22416 main ()
22417 {
22418
22419                   int mask = sigmask(SIGINT);
22420                   sigset(SIGINT, foo); sigrelse(SIGINT);
22421                   sighold(SIGINT); sigpause(SIGINT);
22422
22423   ;
22424   return 0;
22425 }
22426 _ACEOF
22427 rm -f conftest.$ac_objext conftest$ac_exeext
22428 if { (ac_try="$ac_link"
22429 case "(($ac_try" in
22430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431   *) ac_try_echo=$ac_try;;
22432 esac
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434   (eval "$ac_link") 2>conftest.er1
22435   ac_status=$?
22436   grep -v '^ *+' conftest.er1 >conftest.err
22437   rm -f conftest.er1
22438   cat conftest.err >&5
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } && {
22441          test -z "$ac_c_werror_flag" ||
22442          test ! -s conftest.err
22443        } && test -s conftest$ac_exeext &&
22444        $as_test_x conftest$ac_exeext; then
22445   bash_cv_signal_vintage="svr3"
22446 else
22447   echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450         bash_cv_signal_vintage="v7"
22451
22452 fi
22453
22454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22455       conftest$ac_exeext conftest.$ac_ext
22456
22457 fi
22458
22459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22460       conftest$ac_exeext conftest.$ac_ext
22461
22462 fi
22463
22464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22465       conftest$ac_exeext conftest.$ac_ext
22466
22467 fi
22468
22469   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22470 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22471   if test "$bash_cv_signal_vintage" = "posix"; then
22472     cat >>confdefs.h <<\_ACEOF
22473 #define HAVE_POSIX_SIGNALS 1
22474 _ACEOF
22475
22476   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22477     cat >>confdefs.h <<\_ACEOF
22478 #define HAVE_BSD_SIGNALS 1
22479 _ACEOF
22480
22481   elif test "$bash_cv_signal_vintage" = "svr3"; then
22482     cat >>confdefs.h <<\_ACEOF
22483 #define HAVE_USG_SIGHOLD 1
22484 _ACEOF
22485
22486   fi
22487
22488 { echo "$as_me:$LINENO: checking for mode_t" >&5
22489 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22490 if test "${ac_cv_type_mode_t+set}" = set; then
22491   echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493   cat >conftest.$ac_ext <<_ACEOF
22494 /* confdefs.h.  */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h.  */
22499 $ac_includes_default
22500 typedef mode_t ac__type_new_;
22501 int
22502 main ()
22503 {
22504 if ((ac__type_new_ *) 0)
22505   return 0;
22506 if (sizeof (ac__type_new_))
22507   return 0;
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516   *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519   (eval "$ac_compile") 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } && {
22526          test -z "$ac_c_werror_flag" ||
22527          test ! -s conftest.err
22528        } && test -s conftest.$ac_objext; then
22529   ac_cv_type_mode_t=yes
22530 else
22531   echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22533
22534         ac_cv_type_mode_t=no
22535 fi
22536
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22538 fi
22539 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22540 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22541 if test $ac_cv_type_mode_t = yes; then
22542   :
22543 else
22544
22545 cat >>confdefs.h <<_ACEOF
22546 #define mode_t int
22547 _ACEOF
22548
22549 fi
22550
22551 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22552 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22553 if test "${ac_cv_type_uid_t+set}" = set; then
22554   echo $ECHO_N "(cached) $ECHO_C" >&6
22555 else
22556   cat >conftest.$ac_ext <<_ACEOF
22557 /* confdefs.h.  */
22558 _ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h.  */
22562 #include <sys/types.h>
22563
22564 _ACEOF
22565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22566   $EGREP "uid_t" >/dev/null 2>&1; then
22567   ac_cv_type_uid_t=yes
22568 else
22569   ac_cv_type_uid_t=no
22570 fi
22571 rm -f conftest*
22572
22573 fi
22574 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22575 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22576 if test $ac_cv_type_uid_t = no; then
22577
22578 cat >>confdefs.h <<\_ACEOF
22579 #define uid_t int
22580 _ACEOF
22581
22582
22583 cat >>confdefs.h <<\_ACEOF
22584 #define gid_t int
22585 _ACEOF
22586
22587 fi
22588
22589 { echo "$as_me:$LINENO: checking for size_t" >&5
22590 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22591 if test "${ac_cv_type_size_t+set}" = set; then
22592   echo $ECHO_N "(cached) $ECHO_C" >&6
22593 else
22594   cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h.  */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h.  */
22600 $ac_includes_default
22601 typedef size_t ac__type_new_;
22602 int
22603 main ()
22604 {
22605 if ((ac__type_new_ *) 0)
22606   return 0;
22607 if (sizeof (ac__type_new_))
22608   return 0;
22609   ;
22610   return 0;
22611 }
22612 _ACEOF
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617   *) ac_try_echo=$ac_try;;
22618 esac
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620   (eval "$ac_compile") 2>conftest.er1
22621   ac_status=$?
22622   grep -v '^ *+' conftest.er1 >conftest.err
22623   rm -f conftest.er1
22624   cat conftest.err >&5
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } && {
22627          test -z "$ac_c_werror_flag" ||
22628          test ! -s conftest.err
22629        } && test -s conftest.$ac_objext; then
22630   ac_cv_type_size_t=yes
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635         ac_cv_type_size_t=no
22636 fi
22637
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639 fi
22640 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22641 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22642 if test $ac_cv_type_size_t = yes; then
22643   :
22644 else
22645
22646 cat >>confdefs.h <<_ACEOF
22647 #define size_t unsigned int
22648 _ACEOF
22649
22650 fi
22651
22652 { echo "$as_me:$LINENO: checking for pid_t" >&5
22653 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22654 if test "${ac_cv_type_pid_t+set}" = set; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   cat >conftest.$ac_ext <<_ACEOF
22658 /* confdefs.h.  */
22659 _ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h.  */
22663 $ac_includes_default
22664 typedef pid_t ac__type_new_;
22665 int
22666 main ()
22667 {
22668 if ((ac__type_new_ *) 0)
22669   return 0;
22670 if (sizeof (ac__type_new_))
22671   return 0;
22672   ;
22673   return 0;
22674 }
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680   *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683   (eval "$ac_compile") 2>conftest.er1
22684   ac_status=$?
22685   grep -v '^ *+' conftest.er1 >conftest.err
22686   rm -f conftest.er1
22687   cat conftest.err >&5
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } && {
22690          test -z "$ac_c_werror_flag" ||
22691          test ! -s conftest.err
22692        } && test -s conftest.$ac_objext; then
22693   ac_cv_type_pid_t=yes
22694 else
22695   echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22697
22698         ac_cv_type_pid_t=no
22699 fi
22700
22701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22702 fi
22703 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22704 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22705 if test $ac_cv_type_pid_t = yes; then
22706   :
22707 else
22708
22709 cat >>confdefs.h <<_ACEOF
22710 #define pid_t int
22711 _ACEOF
22712
22713 fi
22714
22715 { echo "$as_me:$LINENO: checking for off_t" >&5
22716 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22717 if test "${ac_cv_type_off_t+set}" = set; then
22718   echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720   cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h.  */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h.  */
22726 $ac_includes_default
22727 typedef off_t ac__type_new_;
22728 int
22729 main ()
22730 {
22731 if ((ac__type_new_ *) 0)
22732   return 0;
22733 if (sizeof (ac__type_new_))
22734   return 0;
22735   ;
22736   return 0;
22737 }
22738 _ACEOF
22739 rm -f conftest.$ac_objext
22740 if { (ac_try="$ac_compile"
22741 case "(($ac_try" in
22742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743   *) ac_try_echo=$ac_try;;
22744 esac
22745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22746   (eval "$ac_compile") 2>conftest.er1
22747   ac_status=$?
22748   grep -v '^ *+' conftest.er1 >conftest.err
22749   rm -f conftest.er1
22750   cat conftest.err >&5
22751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752   (exit $ac_status); } && {
22753          test -z "$ac_c_werror_flag" ||
22754          test ! -s conftest.err
22755        } && test -s conftest.$ac_objext; then
22756   ac_cv_type_off_t=yes
22757 else
22758   echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22760
22761         ac_cv_type_off_t=no
22762 fi
22763
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 fi
22766 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22767 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22768 if test $ac_cv_type_off_t = yes; then
22769   :
22770 else
22771
22772 cat >>confdefs.h <<_ACEOF
22773 #define off_t long int
22774 _ACEOF
22775
22776 fi
22777
22778 { echo "$as_me:$LINENO: checking for ino_t" >&5
22779 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22780 if test "${ac_cv_type_ino_t+set}" = set; then
22781   echo $ECHO_N "(cached) $ECHO_C" >&6
22782 else
22783   cat >conftest.$ac_ext <<_ACEOF
22784 /* confdefs.h.  */
22785 _ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h.  */
22789 $ac_includes_default
22790 typedef ino_t ac__type_new_;
22791 int
22792 main ()
22793 {
22794 if ((ac__type_new_ *) 0)
22795   return 0;
22796 if (sizeof (ac__type_new_))
22797   return 0;
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806   *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809   (eval "$ac_compile") 2>conftest.er1
22810   ac_status=$?
22811   grep -v '^ *+' conftest.er1 >conftest.err
22812   rm -f conftest.er1
22813   cat conftest.err >&5
22814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); } && {
22816          test -z "$ac_c_werror_flag" ||
22817          test ! -s conftest.err
22818        } && test -s conftest.$ac_objext; then
22819   ac_cv_type_ino_t=yes
22820 else
22821   echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824         ac_cv_type_ino_t=no
22825 fi
22826
22827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828 fi
22829 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22830 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22831 if test $ac_cv_type_ino_t = yes; then
22832   :
22833 else
22834
22835 cat >>confdefs.h <<_ACEOF
22836 #define ino_t unsigned long
22837 _ACEOF
22838
22839 fi
22840
22841 { echo "$as_me:$LINENO: checking for dev_t" >&5
22842 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22843 if test "${ac_cv_type_dev_t+set}" = set; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846   cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852 $ac_includes_default
22853 typedef dev_t ac__type_new_;
22854 int
22855 main ()
22856 {
22857 if ((ac__type_new_ *) 0)
22858   return 0;
22859 if (sizeof (ac__type_new_))
22860   return 0;
22861   ;
22862   return 0;
22863 }
22864 _ACEOF
22865 rm -f conftest.$ac_objext
22866 if { (ac_try="$ac_compile"
22867 case "(($ac_try" in
22868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869   *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872   (eval "$ac_compile") 2>conftest.er1
22873   ac_status=$?
22874   grep -v '^ *+' conftest.er1 >conftest.err
22875   rm -f conftest.er1
22876   cat conftest.err >&5
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); } && {
22879          test -z "$ac_c_werror_flag" ||
22880          test ! -s conftest.err
22881        } && test -s conftest.$ac_objext; then
22882   ac_cv_type_dev_t=yes
22883 else
22884   echo "$as_me: failed program was:" >&5
22885 sed 's/^/| /' conftest.$ac_ext >&5
22886
22887         ac_cv_type_dev_t=no
22888 fi
22889
22890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22891 fi
22892 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22893 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22894 if test $ac_cv_type_dev_t = yes; then
22895   :
22896 else
22897
22898 cat >>confdefs.h <<_ACEOF
22899 #define dev_t unsigned long
22900 _ACEOF
22901
22902 fi
22903
22904 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22905 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22906 if test "${ac_cv_type_daddr_t+set}" = set; then
22907   echo $ECHO_N "(cached) $ECHO_C" >&6
22908 else
22909   cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h.  */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h.  */
22915 $ac_includes_default
22916 typedef daddr_t ac__type_new_;
22917 int
22918 main ()
22919 {
22920 if ((ac__type_new_ *) 0)
22921   return 0;
22922 if (sizeof (ac__type_new_))
22923   return 0;
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 rm -f conftest.$ac_objext
22929 if { (ac_try="$ac_compile"
22930 case "(($ac_try" in
22931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932   *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935   (eval "$ac_compile") 2>conftest.er1
22936   ac_status=$?
22937   grep -v '^ *+' conftest.er1 >conftest.err
22938   rm -f conftest.er1
22939   cat conftest.err >&5
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); } && {
22942          test -z "$ac_c_werror_flag" ||
22943          test ! -s conftest.err
22944        } && test -s conftest.$ac_objext; then
22945   ac_cv_type_daddr_t=yes
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950         ac_cv_type_daddr_t=no
22951 fi
22952
22953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22954 fi
22955 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22956 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22957 if test $ac_cv_type_daddr_t = yes; then
22958   :
22959 else
22960
22961 cat >>confdefs.h <<_ACEOF
22962 #define daddr_t long
22963 _ACEOF
22964
22965 fi
22966
22967 { echo "$as_me:$LINENO: checking for major_t" >&5
22968 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22969 if test "${ac_cv_type_major_t+set}" = set; then
22970   echo $ECHO_N "(cached) $ECHO_C" >&6
22971 else
22972   cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h.  */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h.  */
22978 $ac_includes_default
22979 typedef major_t ac__type_new_;
22980 int
22981 main ()
22982 {
22983 if ((ac__type_new_ *) 0)
22984   return 0;
22985 if (sizeof (ac__type_new_))
22986   return 0;
22987   ;
22988   return 0;
22989 }
22990 _ACEOF
22991 rm -f conftest.$ac_objext
22992 if { (ac_try="$ac_compile"
22993 case "(($ac_try" in
22994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995   *) ac_try_echo=$ac_try;;
22996 esac
22997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22998   (eval "$ac_compile") 2>conftest.er1
22999   ac_status=$?
23000   grep -v '^ *+' conftest.er1 >conftest.err
23001   rm -f conftest.er1
23002   cat conftest.err >&5
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); } && {
23005          test -z "$ac_c_werror_flag" ||
23006          test ! -s conftest.err
23007        } && test -s conftest.$ac_objext; then
23008   ac_cv_type_major_t=yes
23009 else
23010   echo "$as_me: failed program was:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23012
23013         ac_cv_type_major_t=no
23014 fi
23015
23016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23017 fi
23018 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23019 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23020 if test $ac_cv_type_major_t = yes; then
23021   :
23022 else
23023
23024 cat >>confdefs.h <<_ACEOF
23025 #define major_t int
23026 _ACEOF
23027
23028 fi
23029
23030 { echo "$as_me:$LINENO: checking for minor_t" >&5
23031 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23032 if test "${ac_cv_type_minor_t+set}" = set; then
23033   echo $ECHO_N "(cached) $ECHO_C" >&6
23034 else
23035   cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041 $ac_includes_default
23042 typedef minor_t ac__type_new_;
23043 int
23044 main ()
23045 {
23046 if ((ac__type_new_ *) 0)
23047   return 0;
23048 if (sizeof (ac__type_new_))
23049   return 0;
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 rm -f conftest.$ac_objext
23055 if { (ac_try="$ac_compile"
23056 case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_compile") 2>conftest.er1
23062   ac_status=$?
23063   grep -v '^ *+' conftest.er1 >conftest.err
23064   rm -f conftest.er1
23065   cat conftest.err >&5
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } && {
23068          test -z "$ac_c_werror_flag" ||
23069          test ! -s conftest.err
23070        } && test -s conftest.$ac_objext; then
23071   ac_cv_type_minor_t=yes
23072 else
23073   echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076         ac_cv_type_minor_t=no
23077 fi
23078
23079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23080 fi
23081 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23082 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23083 if test $ac_cv_type_minor_t = yes; then
23084   :
23085 else
23086
23087 cat >>confdefs.h <<_ACEOF
23088 #define minor_t int
23089 _ACEOF
23090
23091 fi
23092
23093 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23094 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23095 if test "${ac_cv_type_ssize_t+set}" = set; then
23096   echo $ECHO_N "(cached) $ECHO_C" >&6
23097 else
23098   cat >conftest.$ac_ext <<_ACEOF
23099 /* confdefs.h.  */
23100 _ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h.  */
23104 $ac_includes_default
23105 typedef ssize_t ac__type_new_;
23106 int
23107 main ()
23108 {
23109 if ((ac__type_new_ *) 0)
23110   return 0;
23111 if (sizeof (ac__type_new_))
23112   return 0;
23113   ;
23114   return 0;
23115 }
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121   *) ac_try_echo=$ac_try;;
23122 esac
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124   (eval "$ac_compile") 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } && {
23131          test -z "$ac_c_werror_flag" ||
23132          test ! -s conftest.err
23133        } && test -s conftest.$ac_objext; then
23134   ac_cv_type_ssize_t=yes
23135 else
23136   echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139         ac_cv_type_ssize_t=no
23140 fi
23141
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 fi
23144 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23145 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23146 if test $ac_cv_type_ssize_t = yes; then
23147   :
23148 else
23149
23150 cat >>confdefs.h <<_ACEOF
23151 #define ssize_t int
23152 _ACEOF
23153
23154 fi
23155
23156 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23157 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23158 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23159   echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161   cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167 $ac_includes_default
23168 int
23169 main ()
23170 {
23171 static struct stat ac_aggr;
23172 if (ac_aggr.st_blocks)
23173 return 0;
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182   *) ac_try_echo=$ac_try;;
23183 esac
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185   (eval "$ac_compile") 2>conftest.er1
23186   ac_status=$?
23187   grep -v '^ *+' conftest.er1 >conftest.err
23188   rm -f conftest.er1
23189   cat conftest.err >&5
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); } && {
23192          test -z "$ac_c_werror_flag" ||
23193          test ! -s conftest.err
23194        } && test -s conftest.$ac_objext; then
23195   ac_cv_member_struct_stat_st_blocks=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200         cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h.  */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h.  */
23206 $ac_includes_default
23207 int
23208 main ()
23209 {
23210 static struct stat ac_aggr;
23211 if (sizeof ac_aggr.st_blocks)
23212 return 0;
23213   ;
23214   return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224   (eval "$ac_compile") 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } && {
23231          test -z "$ac_c_werror_flag" ||
23232          test ! -s conftest.err
23233        } && test -s conftest.$ac_objext; then
23234   ac_cv_member_struct_stat_st_blocks=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239         ac_cv_member_struct_stat_st_blocks=no
23240 fi
23241
23242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243 fi
23244
23245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23246 fi
23247 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23248 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23249 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23250
23251 cat >>confdefs.h <<_ACEOF
23252 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23253 _ACEOF
23254
23255
23256 cat >>confdefs.h <<\_ACEOF
23257 #define HAVE_ST_BLOCKS 1
23258 _ACEOF
23259
23260 else
23261   case " $LIBOBJS " in
23262   *" fileblocks.$ac_objext "* ) ;;
23263   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23264  ;;
23265 esac
23266
23267 fi
23268
23269
23270 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23271 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23272 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23273   echo $ECHO_N "(cached) $ECHO_C" >&6
23274 else
23275   cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h.  */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h.  */
23281 $ac_includes_default
23282 int
23283 main ()
23284 {
23285 static struct stat ac_aggr;
23286 if (ac_aggr.st_rdev)
23287 return 0;
23288   ;
23289   return 0;
23290 }
23291 _ACEOF
23292 rm -f conftest.$ac_objext
23293 if { (ac_try="$ac_compile"
23294 case "(($ac_try" in
23295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296   *) ac_try_echo=$ac_try;;
23297 esac
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299   (eval "$ac_compile") 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } && {
23306          test -z "$ac_c_werror_flag" ||
23307          test ! -s conftest.err
23308        } && test -s conftest.$ac_objext; then
23309   ac_cv_member_struct_stat_st_rdev=yes
23310 else
23311   echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23313
23314         cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320 $ac_includes_default
23321 int
23322 main ()
23323 {
23324 static struct stat ac_aggr;
23325 if (sizeof ac_aggr.st_rdev)
23326 return 0;
23327   ;
23328   return 0;
23329 }
23330 _ACEOF
23331 rm -f conftest.$ac_objext
23332 if { (ac_try="$ac_compile"
23333 case "(($ac_try" in
23334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23335   *) ac_try_echo=$ac_try;;
23336 esac
23337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23338   (eval "$ac_compile") 2>conftest.er1
23339   ac_status=$?
23340   grep -v '^ *+' conftest.er1 >conftest.err
23341   rm -f conftest.er1
23342   cat conftest.err >&5
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); } && {
23345          test -z "$ac_c_werror_flag" ||
23346          test ! -s conftest.err
23347        } && test -s conftest.$ac_objext; then
23348   ac_cv_member_struct_stat_st_rdev=yes
23349 else
23350   echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23352
23353         ac_cv_member_struct_stat_st_rdev=no
23354 fi
23355
23356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357 fi
23358
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 fi
23361 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23362 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23363 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23364
23365 cat >>confdefs.h <<_ACEOF
23366 #define HAVE_STRUCT_STAT_ST_RDEV 1
23367 _ACEOF
23368
23369
23370 cat >>confdefs.h <<\_ACEOF
23371 #define HAVE_ST_RDEV 1
23372 _ACEOF
23373
23374 fi
23375
23376
23377 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23378 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23379 if test "${ac_cv_struct_tm+set}" = set; then
23380   echo $ECHO_N "(cached) $ECHO_C" >&6
23381 else
23382   cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h.  */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h.  */
23388 #include <sys/types.h>
23389 #include <time.h>
23390
23391 int
23392 main ()
23393 {
23394 struct tm tm;
23395                                      int *p = &tm.tm_sec;
23396                                      return !p;
23397   ;
23398   return 0;
23399 }
23400 _ACEOF
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405   *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408   (eval "$ac_compile") 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } && {
23415          test -z "$ac_c_werror_flag" ||
23416          test ! -s conftest.err
23417        } && test -s conftest.$ac_objext; then
23418   ac_cv_struct_tm=time.h
23419 else
23420   echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423         ac_cv_struct_tm=sys/time.h
23424 fi
23425
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 fi
23428 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23429 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23430 if test $ac_cv_struct_tm = sys/time.h; then
23431
23432 cat >>confdefs.h <<\_ACEOF
23433 #define TM_IN_SYS_TIME 1
23434 _ACEOF
23435
23436 fi
23437
23438 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23439 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23440 if test "${ac_cv_c_const+set}" = set; then
23441   echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443   cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449
23450 int
23451 main ()
23452 {
23453 /* FIXME: Include the comments suggested by Paul. */
23454 #ifndef __cplusplus
23455   /* Ultrix mips cc rejects this.  */
23456   typedef int charset[2];
23457   const charset cs;
23458   /* SunOS 4.1.1 cc rejects this.  */
23459   char const *const *pcpcc;
23460   char **ppc;
23461   /* NEC SVR4.0.2 mips cc rejects this.  */
23462   struct point {int x, y;};
23463   static struct point const zero = {0,0};
23464   /* AIX XL C 1.02.0.0 rejects this.
23465      It does not let you subtract one const X* pointer from another in
23466      an arm of an if-expression whose if-part is not a constant
23467      expression */
23468   const char *g = "string";
23469   pcpcc = &g + (g ? g-g : 0);
23470   /* HPUX 7.0 cc rejects these. */
23471   ++pcpcc;
23472   ppc = (char**) pcpcc;
23473   pcpcc = (char const *const *) ppc;
23474   { /* SCO 3.2v4 cc rejects this.  */
23475     char *t;
23476     char const *s = 0 ? (char *) 0 : (char const *) 0;
23477
23478     *t++ = 0;
23479     if (s) return 0;
23480   }
23481   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23482     int x[] = {25, 17};
23483     const int *foo = &x[0];
23484     ++foo;
23485   }
23486   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23487     typedef const int *iptr;
23488     iptr p = 0;
23489     ++p;
23490   }
23491   { /* AIX XL C 1.02.0.0 rejects this saying
23492        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23493     struct s { int j; const int *ap[3]; };
23494     struct s *b; b->j = 5;
23495   }
23496   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23497     const int foo = 10;
23498     if (!foo) return 0;
23499   }
23500   return !cs[0] && !zero.x;
23501 #endif
23502
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511   *) ac_try_echo=$ac_try;;
23512 esac
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514   (eval "$ac_compile") 2>conftest.er1
23515   ac_status=$?
23516   grep -v '^ *+' conftest.er1 >conftest.err
23517   rm -f conftest.er1
23518   cat conftest.err >&5
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); } && {
23521          test -z "$ac_c_werror_flag" ||
23522          test ! -s conftest.err
23523        } && test -s conftest.$ac_objext; then
23524   ac_cv_c_const=yes
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529         ac_cv_c_const=no
23530 fi
23531
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 fi
23534 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23535 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23536 if test $ac_cv_c_const = no; then
23537
23538 cat >>confdefs.h <<\_ACEOF
23539 #define const
23540 _ACEOF
23541
23542 fi
23543
23544
23545
23546 { echo "$as_me:$LINENO: checking for char" >&5
23547 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23548 if test "${ac_cv_type_char+set}" = set; then
23549   echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551   cat >conftest.$ac_ext <<_ACEOF
23552 /* confdefs.h.  */
23553 _ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h.  */
23557 $ac_includes_default
23558 typedef char ac__type_new_;
23559 int
23560 main ()
23561 {
23562 if ((ac__type_new_ *) 0)
23563   return 0;
23564 if (sizeof (ac__type_new_))
23565   return 0;
23566   ;
23567   return 0;
23568 }
23569 _ACEOF
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574   *) ac_try_echo=$ac_try;;
23575 esac
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577   (eval "$ac_compile") 2>conftest.er1
23578   ac_status=$?
23579   grep -v '^ *+' conftest.er1 >conftest.err
23580   rm -f conftest.er1
23581   cat conftest.err >&5
23582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583   (exit $ac_status); } && {
23584          test -z "$ac_c_werror_flag" ||
23585          test ! -s conftest.err
23586        } && test -s conftest.$ac_objext; then
23587   ac_cv_type_char=yes
23588 else
23589   echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23591
23592         ac_cv_type_char=no
23593 fi
23594
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596 fi
23597 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23598 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23599
23600 # The cast to long int works around a bug in the HP C Compiler
23601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23603 # This bug is HP SR number 8606223364.
23604 { echo "$as_me:$LINENO: checking size of char" >&5
23605 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23606 if test "${ac_cv_sizeof_char+set}" = set; then
23607   echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609   if test "$cross_compiling" = yes; then
23610   # Depending upon the size, compute the lo and hi bounds.
23611 cat >conftest.$ac_ext <<_ACEOF
23612 /* confdefs.h.  */
23613 _ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h.  */
23617 $ac_includes_default
23618    typedef char ac__type_sizeof_;
23619 int
23620 main ()
23621 {
23622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23623 test_array [0] = 0
23624
23625   ;
23626   return 0;
23627 }
23628 _ACEOF
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633   *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636   (eval "$ac_compile") 2>conftest.er1
23637   ac_status=$?
23638   grep -v '^ *+' conftest.er1 >conftest.err
23639   rm -f conftest.er1
23640   cat conftest.err >&5
23641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642   (exit $ac_status); } && {
23643          test -z "$ac_c_werror_flag" ||
23644          test ! -s conftest.err
23645        } && test -s conftest.$ac_objext; then
23646   ac_lo=0 ac_mid=0
23647   while :; do
23648     cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h.  */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h.  */
23654 $ac_includes_default
23655    typedef char ac__type_sizeof_;
23656 int
23657 main ()
23658 {
23659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23660 test_array [0] = 0
23661
23662   ;
23663   return 0;
23664 }
23665 _ACEOF
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670   *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673   (eval "$ac_compile") 2>conftest.er1
23674   ac_status=$?
23675   grep -v '^ *+' conftest.er1 >conftest.err
23676   rm -f conftest.er1
23677   cat conftest.err >&5
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); } && {
23680          test -z "$ac_c_werror_flag" ||
23681          test ! -s conftest.err
23682        } && test -s conftest.$ac_objext; then
23683   ac_hi=$ac_mid; break
23684 else
23685   echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688         ac_lo=`expr $ac_mid + 1`
23689                         if test $ac_lo -le $ac_mid; then
23690                           ac_lo= ac_hi=
23691                           break
23692                         fi
23693                         ac_mid=`expr 2 '*' $ac_mid + 1`
23694 fi
23695
23696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23697   done
23698 else
23699   echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23701
23702         cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h.  */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h.  */
23708 $ac_includes_default
23709    typedef char ac__type_sizeof_;
23710 int
23711 main ()
23712 {
23713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23714 test_array [0] = 0
23715
23716   ;
23717   return 0;
23718 }
23719 _ACEOF
23720 rm -f conftest.$ac_objext
23721 if { (ac_try="$ac_compile"
23722 case "(($ac_try" in
23723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724   *) ac_try_echo=$ac_try;;
23725 esac
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727   (eval "$ac_compile") 2>conftest.er1
23728   ac_status=$?
23729   grep -v '^ *+' conftest.er1 >conftest.err
23730   rm -f conftest.er1
23731   cat conftest.err >&5
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); } && {
23734          test -z "$ac_c_werror_flag" ||
23735          test ! -s conftest.err
23736        } && test -s conftest.$ac_objext; then
23737   ac_hi=-1 ac_mid=-1
23738   while :; do
23739     cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745 $ac_includes_default
23746    typedef char ac__type_sizeof_;
23747 int
23748 main ()
23749 {
23750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23751 test_array [0] = 0
23752
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761   *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764   (eval "$ac_compile") 2>conftest.er1
23765   ac_status=$?
23766   grep -v '^ *+' conftest.er1 >conftest.err
23767   rm -f conftest.er1
23768   cat conftest.err >&5
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); } && {
23771          test -z "$ac_c_werror_flag" ||
23772          test ! -s conftest.err
23773        } && test -s conftest.$ac_objext; then
23774   ac_lo=$ac_mid; break
23775 else
23776   echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779         ac_hi=`expr '(' $ac_mid ')' - 1`
23780                         if test $ac_mid -le $ac_hi; then
23781                           ac_lo= ac_hi=
23782                           break
23783                         fi
23784                         ac_mid=`expr 2 '*' $ac_mid`
23785 fi
23786
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788   done
23789 else
23790   echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793         ac_lo= ac_hi=
23794 fi
23795
23796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23797 fi
23798
23799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23800 # Binary search between lo and hi bounds.
23801 while test "x$ac_lo" != "x$ac_hi"; do
23802   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23803   cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h.  */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h.  */
23809 $ac_includes_default
23810    typedef char ac__type_sizeof_;
23811 int
23812 main ()
23813 {
23814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23815 test_array [0] = 0
23816
23817   ;
23818   return 0;
23819 }
23820 _ACEOF
23821 rm -f conftest.$ac_objext
23822 if { (ac_try="$ac_compile"
23823 case "(($ac_try" in
23824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825   *) ac_try_echo=$ac_try;;
23826 esac
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828   (eval "$ac_compile") 2>conftest.er1
23829   ac_status=$?
23830   grep -v '^ *+' conftest.er1 >conftest.err
23831   rm -f conftest.er1
23832   cat conftest.err >&5
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); } && {
23835          test -z "$ac_c_werror_flag" ||
23836          test ! -s conftest.err
23837        } && test -s conftest.$ac_objext; then
23838   ac_hi=$ac_mid
23839 else
23840   echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23842
23843         ac_lo=`expr '(' $ac_mid ')' + 1`
23844 fi
23845
23846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23847 done
23848 case $ac_lo in
23849 ?*) ac_cv_sizeof_char=$ac_lo;;
23850 '') if test "$ac_cv_type_char" = yes; then
23851      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23852 See \`config.log' for more details." >&5
23853 echo "$as_me: error: cannot compute sizeof (char)
23854 See \`config.log' for more details." >&2;}
23855    { (exit 77); exit 77; }; }
23856    else
23857      ac_cv_sizeof_char=0
23858    fi ;;
23859 esac
23860 else
23861   cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h.  */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h.  */
23867 $ac_includes_default
23868    typedef char ac__type_sizeof_;
23869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23871 #include <stdio.h>
23872 #include <stdlib.h>
23873 int
23874 main ()
23875 {
23876
23877   FILE *f = fopen ("conftest.val", "w");
23878   if (! f)
23879     return 1;
23880   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23881     {
23882       long int i = longval ();
23883       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23884         return 1;
23885       fprintf (f, "%ld\n", i);
23886     }
23887   else
23888     {
23889       unsigned long int i = ulongval ();
23890       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23891         return 1;
23892       fprintf (f, "%lu\n", i);
23893     }
23894   return ferror (f) || fclose (f) != 0;
23895
23896   ;
23897   return 0;
23898 }
23899 _ACEOF
23900 rm -f conftest$ac_exeext
23901 if { (ac_try="$ac_link"
23902 case "(($ac_try" in
23903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904   *) ac_try_echo=$ac_try;;
23905 esac
23906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23907   (eval "$ac_link") 2>&5
23908   ac_status=$?
23909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23911   { (case "(($ac_try" in
23912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23913   *) ac_try_echo=$ac_try;;
23914 esac
23915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23916   (eval "$ac_try") 2>&5
23917   ac_status=$?
23918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919   (exit $ac_status); }; }; then
23920   ac_cv_sizeof_char=`cat conftest.val`
23921 else
23922   echo "$as_me: program exited with status $ac_status" >&5
23923 echo "$as_me: failed program was:" >&5
23924 sed 's/^/| /' conftest.$ac_ext >&5
23925
23926 ( exit $ac_status )
23927 if test "$ac_cv_type_char" = yes; then
23928      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23929 See \`config.log' for more details." >&5
23930 echo "$as_me: error: cannot compute sizeof (char)
23931 See \`config.log' for more details." >&2;}
23932    { (exit 77); exit 77; }; }
23933    else
23934      ac_cv_sizeof_char=0
23935    fi
23936 fi
23937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23938 fi
23939 rm -f conftest.val
23940 fi
23941 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23942 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23943
23944
23945
23946 cat >>confdefs.h <<_ACEOF
23947 #define SIZEOF_CHAR $ac_cv_sizeof_char
23948 _ACEOF
23949
23950
23951 { echo "$as_me:$LINENO: checking for short int" >&5
23952 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23953 if test "${ac_cv_type_short_int+set}" = set; then
23954   echo $ECHO_N "(cached) $ECHO_C" >&6
23955 else
23956   cat >conftest.$ac_ext <<_ACEOF
23957 /* confdefs.h.  */
23958 _ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h.  */
23962 $ac_includes_default
23963 typedef short int ac__type_new_;
23964 int
23965 main ()
23966 {
23967 if ((ac__type_new_ *) 0)
23968   return 0;
23969 if (sizeof (ac__type_new_))
23970   return 0;
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext
23976 if { (ac_try="$ac_compile"
23977 case "(($ac_try" in
23978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979   *) ac_try_echo=$ac_try;;
23980 esac
23981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23982   (eval "$ac_compile") 2>conftest.er1
23983   ac_status=$?
23984   grep -v '^ *+' conftest.er1 >conftest.err
23985   rm -f conftest.er1
23986   cat conftest.err >&5
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); } && {
23989          test -z "$ac_c_werror_flag" ||
23990          test ! -s conftest.err
23991        } && test -s conftest.$ac_objext; then
23992   ac_cv_type_short_int=yes
23993 else
23994   echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23996
23997         ac_cv_type_short_int=no
23998 fi
23999
24000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24001 fi
24002 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24003 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24004
24005 # The cast to long int works around a bug in the HP C Compiler
24006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24008 # This bug is HP SR number 8606223364.
24009 { echo "$as_me:$LINENO: checking size of short int" >&5
24010 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24011 if test "${ac_cv_sizeof_short_int+set}" = set; then
24012   echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014   if test "$cross_compiling" = yes; then
24015   # Depending upon the size, compute the lo and hi bounds.
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h.  */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h.  */
24022 $ac_includes_default
24023    typedef short int ac__type_sizeof_;
24024 int
24025 main ()
24026 {
24027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24028 test_array [0] = 0
24029
24030   ;
24031   return 0;
24032 }
24033 _ACEOF
24034 rm -f conftest.$ac_objext
24035 if { (ac_try="$ac_compile"
24036 case "(($ac_try" in
24037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038   *) ac_try_echo=$ac_try;;
24039 esac
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041   (eval "$ac_compile") 2>conftest.er1
24042   ac_status=$?
24043   grep -v '^ *+' conftest.er1 >conftest.err
24044   rm -f conftest.er1
24045   cat conftest.err >&5
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); } && {
24048          test -z "$ac_c_werror_flag" ||
24049          test ! -s conftest.err
24050        } && test -s conftest.$ac_objext; then
24051   ac_lo=0 ac_mid=0
24052   while :; do
24053     cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h.  */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h.  */
24059 $ac_includes_default
24060    typedef short int ac__type_sizeof_;
24061 int
24062 main ()
24063 {
24064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24065 test_array [0] = 0
24066
24067   ;
24068   return 0;
24069 }
24070 _ACEOF
24071 rm -f conftest.$ac_objext
24072 if { (ac_try="$ac_compile"
24073 case "(($ac_try" in
24074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075   *) ac_try_echo=$ac_try;;
24076 esac
24077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24078   (eval "$ac_compile") 2>conftest.er1
24079   ac_status=$?
24080   grep -v '^ *+' conftest.er1 >conftest.err
24081   rm -f conftest.er1
24082   cat conftest.err >&5
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); } && {
24085          test -z "$ac_c_werror_flag" ||
24086          test ! -s conftest.err
24087        } && test -s conftest.$ac_objext; then
24088   ac_hi=$ac_mid; break
24089 else
24090   echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093         ac_lo=`expr $ac_mid + 1`
24094                         if test $ac_lo -le $ac_mid; then
24095                           ac_lo= ac_hi=
24096                           break
24097                         fi
24098                         ac_mid=`expr 2 '*' $ac_mid + 1`
24099 fi
24100
24101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24102   done
24103 else
24104   echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.$ac_ext >&5
24106
24107         cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h.  */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h.  */
24113 $ac_includes_default
24114    typedef short int ac__type_sizeof_;
24115 int
24116 main ()
24117 {
24118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24119 test_array [0] = 0
24120
24121   ;
24122   return 0;
24123 }
24124 _ACEOF
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129   *) ac_try_echo=$ac_try;;
24130 esac
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132   (eval "$ac_compile") 2>conftest.er1
24133   ac_status=$?
24134   grep -v '^ *+' conftest.er1 >conftest.err
24135   rm -f conftest.er1
24136   cat conftest.err >&5
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); } && {
24139          test -z "$ac_c_werror_flag" ||
24140          test ! -s conftest.err
24141        } && test -s conftest.$ac_objext; then
24142   ac_hi=-1 ac_mid=-1
24143   while :; do
24144     cat >conftest.$ac_ext <<_ACEOF
24145 /* confdefs.h.  */
24146 _ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h.  */
24150 $ac_includes_default
24151    typedef short int ac__type_sizeof_;
24152 int
24153 main ()
24154 {
24155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24156 test_array [0] = 0
24157
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext
24163 if { (ac_try="$ac_compile"
24164 case "(($ac_try" in
24165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166   *) ac_try_echo=$ac_try;;
24167 esac
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169   (eval "$ac_compile") 2>conftest.er1
24170   ac_status=$?
24171   grep -v '^ *+' conftest.er1 >conftest.err
24172   rm -f conftest.er1
24173   cat conftest.err >&5
24174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175   (exit $ac_status); } && {
24176          test -z "$ac_c_werror_flag" ||
24177          test ! -s conftest.err
24178        } && test -s conftest.$ac_objext; then
24179   ac_lo=$ac_mid; break
24180 else
24181   echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184         ac_hi=`expr '(' $ac_mid ')' - 1`
24185                         if test $ac_mid -le $ac_hi; then
24186                           ac_lo= ac_hi=
24187                           break
24188                         fi
24189                         ac_mid=`expr 2 '*' $ac_mid`
24190 fi
24191
24192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24193   done
24194 else
24195   echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198         ac_lo= ac_hi=
24199 fi
24200
24201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24202 fi
24203
24204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24205 # Binary search between lo and hi bounds.
24206 while test "x$ac_lo" != "x$ac_hi"; do
24207   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24208   cat >conftest.$ac_ext <<_ACEOF
24209 /* confdefs.h.  */
24210 _ACEOF
24211 cat confdefs.h >>conftest.$ac_ext
24212 cat >>conftest.$ac_ext <<_ACEOF
24213 /* end confdefs.h.  */
24214 $ac_includes_default
24215    typedef short int ac__type_sizeof_;
24216 int
24217 main ()
24218 {
24219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24220 test_array [0] = 0
24221
24222   ;
24223   return 0;
24224 }
24225 _ACEOF
24226 rm -f conftest.$ac_objext
24227 if { (ac_try="$ac_compile"
24228 case "(($ac_try" in
24229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230   *) ac_try_echo=$ac_try;;
24231 esac
24232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24233   (eval "$ac_compile") 2>conftest.er1
24234   ac_status=$?
24235   grep -v '^ *+' conftest.er1 >conftest.err
24236   rm -f conftest.er1
24237   cat conftest.err >&5
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); } && {
24240          test -z "$ac_c_werror_flag" ||
24241          test ! -s conftest.err
24242        } && test -s conftest.$ac_objext; then
24243   ac_hi=$ac_mid
24244 else
24245   echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24247
24248         ac_lo=`expr '(' $ac_mid ')' + 1`
24249 fi
24250
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24252 done
24253 case $ac_lo in
24254 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24255 '') if test "$ac_cv_type_short_int" = yes; then
24256      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24257 See \`config.log' for more details." >&5
24258 echo "$as_me: error: cannot compute sizeof (short int)
24259 See \`config.log' for more details." >&2;}
24260    { (exit 77); exit 77; }; }
24261    else
24262      ac_cv_sizeof_short_int=0
24263    fi ;;
24264 esac
24265 else
24266   cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h.  */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h.  */
24272 $ac_includes_default
24273    typedef short int ac__type_sizeof_;
24274 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24275 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24276 #include <stdio.h>
24277 #include <stdlib.h>
24278 int
24279 main ()
24280 {
24281
24282   FILE *f = fopen ("conftest.val", "w");
24283   if (! f)
24284     return 1;
24285   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24286     {
24287       long int i = longval ();
24288       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24289         return 1;
24290       fprintf (f, "%ld\n", i);
24291     }
24292   else
24293     {
24294       unsigned long int i = ulongval ();
24295       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24296         return 1;
24297       fprintf (f, "%lu\n", i);
24298     }
24299   return ferror (f) || fclose (f) != 0;
24300
24301   ;
24302   return 0;
24303 }
24304 _ACEOF
24305 rm -f conftest$ac_exeext
24306 if { (ac_try="$ac_link"
24307 case "(($ac_try" in
24308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309   *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312   (eval "$ac_link") 2>&5
24313   ac_status=$?
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24316   { (case "(($ac_try" in
24317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318   *) ac_try_echo=$ac_try;;
24319 esac
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321   (eval "$ac_try") 2>&5
24322   ac_status=$?
24323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324   (exit $ac_status); }; }; then
24325   ac_cv_sizeof_short_int=`cat conftest.val`
24326 else
24327   echo "$as_me: program exited with status $ac_status" >&5
24328 echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24330
24331 ( exit $ac_status )
24332 if test "$ac_cv_type_short_int" = yes; then
24333      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24334 See \`config.log' for more details." >&5
24335 echo "$as_me: error: cannot compute sizeof (short int)
24336 See \`config.log' for more details." >&2;}
24337    { (exit 77); exit 77; }; }
24338    else
24339      ac_cv_sizeof_short_int=0
24340    fi
24341 fi
24342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24343 fi
24344 rm -f conftest.val
24345 fi
24346 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24347 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24348
24349
24350
24351 cat >>confdefs.h <<_ACEOF
24352 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24353 _ACEOF
24354
24355
24356 { echo "$as_me:$LINENO: checking for int" >&5
24357 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24358 if test "${ac_cv_type_int+set}" = set; then
24359   echo $ECHO_N "(cached) $ECHO_C" >&6
24360 else
24361   cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h.  */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h.  */
24367 $ac_includes_default
24368 typedef int ac__type_new_;
24369 int
24370 main ()
24371 {
24372 if ((ac__type_new_ *) 0)
24373   return 0;
24374 if (sizeof (ac__type_new_))
24375   return 0;
24376   ;
24377   return 0;
24378 }
24379 _ACEOF
24380 rm -f conftest.$ac_objext
24381 if { (ac_try="$ac_compile"
24382 case "(($ac_try" in
24383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384   *) ac_try_echo=$ac_try;;
24385 esac
24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387   (eval "$ac_compile") 2>conftest.er1
24388   ac_status=$?
24389   grep -v '^ *+' conftest.er1 >conftest.err
24390   rm -f conftest.er1
24391   cat conftest.err >&5
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); } && {
24394          test -z "$ac_c_werror_flag" ||
24395          test ! -s conftest.err
24396        } && test -s conftest.$ac_objext; then
24397   ac_cv_type_int=yes
24398 else
24399   echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24401
24402         ac_cv_type_int=no
24403 fi
24404
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406 fi
24407 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24408 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24409
24410 # The cast to long int works around a bug in the HP C Compiler
24411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24413 # This bug is HP SR number 8606223364.
24414 { echo "$as_me:$LINENO: checking size of int" >&5
24415 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24416 if test "${ac_cv_sizeof_int+set}" = set; then
24417   echo $ECHO_N "(cached) $ECHO_C" >&6
24418 else
24419   if test "$cross_compiling" = yes; then
24420   # Depending upon the size, compute the lo and hi bounds.
24421 cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h.  */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h.  */
24427 $ac_includes_default
24428    typedef int ac__type_sizeof_;
24429 int
24430 main ()
24431 {
24432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24433 test_array [0] = 0
24434
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_compile") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_c_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest.$ac_objext; then
24456   ac_lo=0 ac_mid=0
24457   while :; do
24458     cat >conftest.$ac_ext <<_ACEOF
24459 /* confdefs.h.  */
24460 _ACEOF
24461 cat confdefs.h >>conftest.$ac_ext
24462 cat >>conftest.$ac_ext <<_ACEOF
24463 /* end confdefs.h.  */
24464 $ac_includes_default
24465    typedef int ac__type_sizeof_;
24466 int
24467 main ()
24468 {
24469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24470 test_array [0] = 0
24471
24472   ;
24473   return 0;
24474 }
24475 _ACEOF
24476 rm -f conftest.$ac_objext
24477 if { (ac_try="$ac_compile"
24478 case "(($ac_try" in
24479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480   *) ac_try_echo=$ac_try;;
24481 esac
24482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24483   (eval "$ac_compile") 2>conftest.er1
24484   ac_status=$?
24485   grep -v '^ *+' conftest.er1 >conftest.err
24486   rm -f conftest.er1
24487   cat conftest.err >&5
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); } && {
24490          test -z "$ac_c_werror_flag" ||
24491          test ! -s conftest.err
24492        } && test -s conftest.$ac_objext; then
24493   ac_hi=$ac_mid; break
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498         ac_lo=`expr $ac_mid + 1`
24499                         if test $ac_lo -le $ac_mid; then
24500                           ac_lo= ac_hi=
24501                           break
24502                         fi
24503                         ac_mid=`expr 2 '*' $ac_mid + 1`
24504 fi
24505
24506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24507   done
24508 else
24509   echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24511
24512         cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 $ac_includes_default
24519    typedef int ac__type_sizeof_;
24520 int
24521 main ()
24522 {
24523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24524 test_array [0] = 0
24525
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534   *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537   (eval "$ac_compile") 2>conftest.er1
24538   ac_status=$?
24539   grep -v '^ *+' conftest.er1 >conftest.err
24540   rm -f conftest.er1
24541   cat conftest.err >&5
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } && {
24544          test -z "$ac_c_werror_flag" ||
24545          test ! -s conftest.err
24546        } && test -s conftest.$ac_objext; then
24547   ac_hi=-1 ac_mid=-1
24548   while :; do
24549     cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h.  */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h.  */
24555 $ac_includes_default
24556    typedef int ac__type_sizeof_;
24557 int
24558 main ()
24559 {
24560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24561 test_array [0] = 0
24562
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext
24568 if { (ac_try="$ac_compile"
24569 case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_compile") 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } && {
24581          test -z "$ac_c_werror_flag" ||
24582          test ! -s conftest.err
24583        } && test -s conftest.$ac_objext; then
24584   ac_lo=$ac_mid; break
24585 else
24586   echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24588
24589         ac_hi=`expr '(' $ac_mid ')' - 1`
24590                         if test $ac_mid -le $ac_hi; then
24591                           ac_lo= ac_hi=
24592                           break
24593                         fi
24594                         ac_mid=`expr 2 '*' $ac_mid`
24595 fi
24596
24597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598   done
24599 else
24600   echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603         ac_lo= ac_hi=
24604 fi
24605
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607 fi
24608
24609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24610 # Binary search between lo and hi bounds.
24611 while test "x$ac_lo" != "x$ac_hi"; do
24612   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24613   cat >conftest.$ac_ext <<_ACEOF
24614 /* confdefs.h.  */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h.  */
24619 $ac_includes_default
24620    typedef int ac__type_sizeof_;
24621 int
24622 main ()
24623 {
24624 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24625 test_array [0] = 0
24626
24627   ;
24628   return 0;
24629 }
24630 _ACEOF
24631 rm -f conftest.$ac_objext
24632 if { (ac_try="$ac_compile"
24633 case "(($ac_try" in
24634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635   *) ac_try_echo=$ac_try;;
24636 esac
24637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638   (eval "$ac_compile") 2>conftest.er1
24639   ac_status=$?
24640   grep -v '^ *+' conftest.er1 >conftest.err
24641   rm -f conftest.er1
24642   cat conftest.err >&5
24643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644   (exit $ac_status); } && {
24645          test -z "$ac_c_werror_flag" ||
24646          test ! -s conftest.err
24647        } && test -s conftest.$ac_objext; then
24648   ac_hi=$ac_mid
24649 else
24650   echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653         ac_lo=`expr '(' $ac_mid ')' + 1`
24654 fi
24655
24656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24657 done
24658 case $ac_lo in
24659 ?*) ac_cv_sizeof_int=$ac_lo;;
24660 '') if test "$ac_cv_type_int" = yes; then
24661      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24662 See \`config.log' for more details." >&5
24663 echo "$as_me: error: cannot compute sizeof (int)
24664 See \`config.log' for more details." >&2;}
24665    { (exit 77); exit 77; }; }
24666    else
24667      ac_cv_sizeof_int=0
24668    fi ;;
24669 esac
24670 else
24671   cat >conftest.$ac_ext <<_ACEOF
24672 /* confdefs.h.  */
24673 _ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h.  */
24677 $ac_includes_default
24678    typedef int ac__type_sizeof_;
24679 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24680 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24681 #include <stdio.h>
24682 #include <stdlib.h>
24683 int
24684 main ()
24685 {
24686
24687   FILE *f = fopen ("conftest.val", "w");
24688   if (! f)
24689     return 1;
24690   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24691     {
24692       long int i = longval ();
24693       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24694         return 1;
24695       fprintf (f, "%ld\n", i);
24696     }
24697   else
24698     {
24699       unsigned long int i = ulongval ();
24700       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24701         return 1;
24702       fprintf (f, "%lu\n", i);
24703     }
24704   return ferror (f) || fclose (f) != 0;
24705
24706   ;
24707   return 0;
24708 }
24709 _ACEOF
24710 rm -f conftest$ac_exeext
24711 if { (ac_try="$ac_link"
24712 case "(($ac_try" in
24713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714   *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717   (eval "$ac_link") 2>&5
24718   ac_status=$?
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24721   { (case "(($ac_try" in
24722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723   *) ac_try_echo=$ac_try;;
24724 esac
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726   (eval "$ac_try") 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); }; }; then
24730   ac_cv_sizeof_int=`cat conftest.val`
24731 else
24732   echo "$as_me: program exited with status $ac_status" >&5
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24735
24736 ( exit $ac_status )
24737 if test "$ac_cv_type_int" = yes; then
24738      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24739 See \`config.log' for more details." >&5
24740 echo "$as_me: error: cannot compute sizeof (int)
24741 See \`config.log' for more details." >&2;}
24742    { (exit 77); exit 77; }; }
24743    else
24744      ac_cv_sizeof_int=0
24745    fi
24746 fi
24747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24748 fi
24749 rm -f conftest.val
24750 fi
24751 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24752 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24753
24754
24755
24756 cat >>confdefs.h <<_ACEOF
24757 #define SIZEOF_INT $ac_cv_sizeof_int
24758 _ACEOF
24759
24760
24761 { echo "$as_me:$LINENO: checking for long int" >&5
24762 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24763 if test "${ac_cv_type_long_int+set}" = set; then
24764   echo $ECHO_N "(cached) $ECHO_C" >&6
24765 else
24766   cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 $ac_includes_default
24773 typedef long int ac__type_new_;
24774 int
24775 main ()
24776 {
24777 if ((ac__type_new_ *) 0)
24778   return 0;
24779 if (sizeof (ac__type_new_))
24780   return 0;
24781   ;
24782   return 0;
24783 }
24784 _ACEOF
24785 rm -f conftest.$ac_objext
24786 if { (ac_try="$ac_compile"
24787 case "(($ac_try" in
24788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789   *) ac_try_echo=$ac_try;;
24790 esac
24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792   (eval "$ac_compile") 2>conftest.er1
24793   ac_status=$?
24794   grep -v '^ *+' conftest.er1 >conftest.err
24795   rm -f conftest.er1
24796   cat conftest.err >&5
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); } && {
24799          test -z "$ac_c_werror_flag" ||
24800          test ! -s conftest.err
24801        } && test -s conftest.$ac_objext; then
24802   ac_cv_type_long_int=yes
24803 else
24804   echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807         ac_cv_type_long_int=no
24808 fi
24809
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24811 fi
24812 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24813 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24814
24815 # The cast to long int works around a bug in the HP C Compiler
24816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24818 # This bug is HP SR number 8606223364.
24819 { echo "$as_me:$LINENO: checking size of long int" >&5
24820 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24821 if test "${ac_cv_sizeof_long_int+set}" = set; then
24822   echo $ECHO_N "(cached) $ECHO_C" >&6
24823 else
24824   if test "$cross_compiling" = yes; then
24825   # Depending upon the size, compute the lo and hi bounds.
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h.  */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h.  */
24832 $ac_includes_default
24833    typedef long int ac__type_sizeof_;
24834 int
24835 main ()
24836 {
24837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24838 test_array [0] = 0
24839
24840   ;
24841   return 0;
24842 }
24843 _ACEOF
24844 rm -f conftest.$ac_objext
24845 if { (ac_try="$ac_compile"
24846 case "(($ac_try" in
24847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848   *) ac_try_echo=$ac_try;;
24849 esac
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851   (eval "$ac_compile") 2>conftest.er1
24852   ac_status=$?
24853   grep -v '^ *+' conftest.er1 >conftest.err
24854   rm -f conftest.er1
24855   cat conftest.err >&5
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); } && {
24858          test -z "$ac_c_werror_flag" ||
24859          test ! -s conftest.err
24860        } && test -s conftest.$ac_objext; then
24861   ac_lo=0 ac_mid=0
24862   while :; do
24863     cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869 $ac_includes_default
24870    typedef long int ac__type_sizeof_;
24871 int
24872 main ()
24873 {
24874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24875 test_array [0] = 0
24876
24877   ;
24878   return 0;
24879 }
24880 _ACEOF
24881 rm -f conftest.$ac_objext
24882 if { (ac_try="$ac_compile"
24883 case "(($ac_try" in
24884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885   *) ac_try_echo=$ac_try;;
24886 esac
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888   (eval "$ac_compile") 2>conftest.er1
24889   ac_status=$?
24890   grep -v '^ *+' conftest.er1 >conftest.err
24891   rm -f conftest.er1
24892   cat conftest.err >&5
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); } && {
24895          test -z "$ac_c_werror_flag" ||
24896          test ! -s conftest.err
24897        } && test -s conftest.$ac_objext; then
24898   ac_hi=$ac_mid; break
24899 else
24900   echo "$as_me: failed program was:" >&5
24901 sed 's/^/| /' conftest.$ac_ext >&5
24902
24903         ac_lo=`expr $ac_mid + 1`
24904                         if test $ac_lo -le $ac_mid; then
24905                           ac_lo= ac_hi=
24906                           break
24907                         fi
24908                         ac_mid=`expr 2 '*' $ac_mid + 1`
24909 fi
24910
24911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24912   done
24913 else
24914   echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24916
24917         cat >conftest.$ac_ext <<_ACEOF
24918 /* confdefs.h.  */
24919 _ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h.  */
24923 $ac_includes_default
24924    typedef long int ac__type_sizeof_;
24925 int
24926 main ()
24927 {
24928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24929 test_array [0] = 0
24930
24931   ;
24932   return 0;
24933 }
24934 _ACEOF
24935 rm -f conftest.$ac_objext
24936 if { (ac_try="$ac_compile"
24937 case "(($ac_try" in
24938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939   *) ac_try_echo=$ac_try;;
24940 esac
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942   (eval "$ac_compile") 2>conftest.er1
24943   ac_status=$?
24944   grep -v '^ *+' conftest.er1 >conftest.err
24945   rm -f conftest.er1
24946   cat conftest.err >&5
24947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); } && {
24949          test -z "$ac_c_werror_flag" ||
24950          test ! -s conftest.err
24951        } && test -s conftest.$ac_objext; then
24952   ac_hi=-1 ac_mid=-1
24953   while :; do
24954     cat >conftest.$ac_ext <<_ACEOF
24955 /* confdefs.h.  */
24956 _ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h.  */
24960 $ac_includes_default
24961    typedef long int ac__type_sizeof_;
24962 int
24963 main ()
24964 {
24965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24966 test_array [0] = 0
24967
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext
24973 if { (ac_try="$ac_compile"
24974 case "(($ac_try" in
24975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976   *) ac_try_echo=$ac_try;;
24977 esac
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979   (eval "$ac_compile") 2>conftest.er1
24980   ac_status=$?
24981   grep -v '^ *+' conftest.er1 >conftest.err
24982   rm -f conftest.er1
24983   cat conftest.err >&5
24984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985   (exit $ac_status); } && {
24986          test -z "$ac_c_werror_flag" ||
24987          test ! -s conftest.err
24988        } && test -s conftest.$ac_objext; then
24989   ac_lo=$ac_mid; break
24990 else
24991   echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24993
24994         ac_hi=`expr '(' $ac_mid ')' - 1`
24995                         if test $ac_mid -le $ac_hi; then
24996                           ac_lo= ac_hi=
24997                           break
24998                         fi
24999                         ac_mid=`expr 2 '*' $ac_mid`
25000 fi
25001
25002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003   done
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008         ac_lo= ac_hi=
25009 fi
25010
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012 fi
25013
25014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25015 # Binary search between lo and hi bounds.
25016 while test "x$ac_lo" != "x$ac_hi"; do
25017   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25018   cat >conftest.$ac_ext <<_ACEOF
25019 /* confdefs.h.  */
25020 _ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h.  */
25024 $ac_includes_default
25025    typedef long int ac__type_sizeof_;
25026 int
25027 main ()
25028 {
25029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25030 test_array [0] = 0
25031
25032   ;
25033   return 0;
25034 }
25035 _ACEOF
25036 rm -f conftest.$ac_objext
25037 if { (ac_try="$ac_compile"
25038 case "(($ac_try" in
25039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25040   *) ac_try_echo=$ac_try;;
25041 esac
25042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25043   (eval "$ac_compile") 2>conftest.er1
25044   ac_status=$?
25045   grep -v '^ *+' conftest.er1 >conftest.err
25046   rm -f conftest.er1
25047   cat conftest.err >&5
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); } && {
25050          test -z "$ac_c_werror_flag" ||
25051          test ! -s conftest.err
25052        } && test -s conftest.$ac_objext; then
25053   ac_hi=$ac_mid
25054 else
25055   echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25057
25058         ac_lo=`expr '(' $ac_mid ')' + 1`
25059 fi
25060
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 done
25063 case $ac_lo in
25064 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25065 '') if test "$ac_cv_type_long_int" = yes; then
25066      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25067 See \`config.log' for more details." >&5
25068 echo "$as_me: error: cannot compute sizeof (long int)
25069 See \`config.log' for more details." >&2;}
25070    { (exit 77); exit 77; }; }
25071    else
25072      ac_cv_sizeof_long_int=0
25073    fi ;;
25074 esac
25075 else
25076   cat >conftest.$ac_ext <<_ACEOF
25077 /* confdefs.h.  */
25078 _ACEOF
25079 cat confdefs.h >>conftest.$ac_ext
25080 cat >>conftest.$ac_ext <<_ACEOF
25081 /* end confdefs.h.  */
25082 $ac_includes_default
25083    typedef long int ac__type_sizeof_;
25084 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25085 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25086 #include <stdio.h>
25087 #include <stdlib.h>
25088 int
25089 main ()
25090 {
25091
25092   FILE *f = fopen ("conftest.val", "w");
25093   if (! f)
25094     return 1;
25095   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25096     {
25097       long int i = longval ();
25098       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25099         return 1;
25100       fprintf (f, "%ld\n", i);
25101     }
25102   else
25103     {
25104       unsigned long int i = ulongval ();
25105       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25106         return 1;
25107       fprintf (f, "%lu\n", i);
25108     }
25109   return ferror (f) || fclose (f) != 0;
25110
25111   ;
25112   return 0;
25113 }
25114 _ACEOF
25115 rm -f conftest$ac_exeext
25116 if { (ac_try="$ac_link"
25117 case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122   (eval "$ac_link") 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25126   { (case "(($ac_try" in
25127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128   *) ac_try_echo=$ac_try;;
25129 esac
25130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25131   (eval "$ac_try") 2>&5
25132   ac_status=$?
25133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134   (exit $ac_status); }; }; then
25135   ac_cv_sizeof_long_int=`cat conftest.val`
25136 else
25137   echo "$as_me: program exited with status $ac_status" >&5
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25140
25141 ( exit $ac_status )
25142 if test "$ac_cv_type_long_int" = yes; then
25143      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25144 See \`config.log' for more details." >&5
25145 echo "$as_me: error: cannot compute sizeof (long int)
25146 See \`config.log' for more details." >&2;}
25147    { (exit 77); exit 77; }; }
25148    else
25149      ac_cv_sizeof_long_int=0
25150    fi
25151 fi
25152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25153 fi
25154 rm -f conftest.val
25155 fi
25156 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25157 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25158
25159
25160
25161 cat >>confdefs.h <<_ACEOF
25162 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25163 _ACEOF
25164
25165
25166 { echo "$as_me:$LINENO: checking for long long int" >&5
25167 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25168 if test "${ac_cv_type_long_long_int+set}" = set; then
25169   echo $ECHO_N "(cached) $ECHO_C" >&6
25170 else
25171   cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h.  */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h.  */
25177 $ac_includes_default
25178 typedef long long int ac__type_new_;
25179 int
25180 main ()
25181 {
25182 if ((ac__type_new_ *) 0)
25183   return 0;
25184 if (sizeof (ac__type_new_))
25185   return 0;
25186   ;
25187   return 0;
25188 }
25189 _ACEOF
25190 rm -f conftest.$ac_objext
25191 if { (ac_try="$ac_compile"
25192 case "(($ac_try" in
25193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194   *) ac_try_echo=$ac_try;;
25195 esac
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197   (eval "$ac_compile") 2>conftest.er1
25198   ac_status=$?
25199   grep -v '^ *+' conftest.er1 >conftest.err
25200   rm -f conftest.er1
25201   cat conftest.err >&5
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); } && {
25204          test -z "$ac_c_werror_flag" ||
25205          test ! -s conftest.err
25206        } && test -s conftest.$ac_objext; then
25207   ac_cv_type_long_long_int=yes
25208 else
25209   echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212         ac_cv_type_long_long_int=no
25213 fi
25214
25215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25216 fi
25217 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25218 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25219
25220 # The cast to long int works around a bug in the HP C Compiler
25221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25223 # This bug is HP SR number 8606223364.
25224 { echo "$as_me:$LINENO: checking size of long long int" >&5
25225 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25226 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25227   echo $ECHO_N "(cached) $ECHO_C" >&6
25228 else
25229   if test "$cross_compiling" = yes; then
25230   # Depending upon the size, compute the lo and hi bounds.
25231 cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h.  */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h.  */
25237 $ac_includes_default
25238    typedef long long int ac__type_sizeof_;
25239 int
25240 main ()
25241 {
25242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25243 test_array [0] = 0
25244
25245   ;
25246   return 0;
25247 }
25248 _ACEOF
25249 rm -f conftest.$ac_objext
25250 if { (ac_try="$ac_compile"
25251 case "(($ac_try" in
25252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253   *) ac_try_echo=$ac_try;;
25254 esac
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256   (eval "$ac_compile") 2>conftest.er1
25257   ac_status=$?
25258   grep -v '^ *+' conftest.er1 >conftest.err
25259   rm -f conftest.er1
25260   cat conftest.err >&5
25261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262   (exit $ac_status); } && {
25263          test -z "$ac_c_werror_flag" ||
25264          test ! -s conftest.err
25265        } && test -s conftest.$ac_objext; then
25266   ac_lo=0 ac_mid=0
25267   while :; do
25268     cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h.  */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h.  */
25274 $ac_includes_default
25275    typedef long long int ac__type_sizeof_;
25276 int
25277 main ()
25278 {
25279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25280 test_array [0] = 0
25281
25282   ;
25283   return 0;
25284 }
25285 _ACEOF
25286 rm -f conftest.$ac_objext
25287 if { (ac_try="$ac_compile"
25288 case "(($ac_try" in
25289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290   *) ac_try_echo=$ac_try;;
25291 esac
25292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25293   (eval "$ac_compile") 2>conftest.er1
25294   ac_status=$?
25295   grep -v '^ *+' conftest.er1 >conftest.err
25296   rm -f conftest.er1
25297   cat conftest.err >&5
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); } && {
25300          test -z "$ac_c_werror_flag" ||
25301          test ! -s conftest.err
25302        } && test -s conftest.$ac_objext; then
25303   ac_hi=$ac_mid; break
25304 else
25305   echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25307
25308         ac_lo=`expr $ac_mid + 1`
25309                         if test $ac_lo -le $ac_mid; then
25310                           ac_lo= ac_hi=
25311                           break
25312                         fi
25313                         ac_mid=`expr 2 '*' $ac_mid + 1`
25314 fi
25315
25316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25317   done
25318 else
25319   echo "$as_me: failed program was:" >&5
25320 sed 's/^/| /' conftest.$ac_ext >&5
25321
25322         cat >conftest.$ac_ext <<_ACEOF
25323 /* confdefs.h.  */
25324 _ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h.  */
25328 $ac_includes_default
25329    typedef long long int ac__type_sizeof_;
25330 int
25331 main ()
25332 {
25333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25334 test_array [0] = 0
25335
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext
25341 if { (ac_try="$ac_compile"
25342 case "(($ac_try" in
25343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344   *) ac_try_echo=$ac_try;;
25345 esac
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347   (eval "$ac_compile") 2>conftest.er1
25348   ac_status=$?
25349   grep -v '^ *+' conftest.er1 >conftest.err
25350   rm -f conftest.er1
25351   cat conftest.err >&5
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); } && {
25354          test -z "$ac_c_werror_flag" ||
25355          test ! -s conftest.err
25356        } && test -s conftest.$ac_objext; then
25357   ac_hi=-1 ac_mid=-1
25358   while :; do
25359     cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h.  */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h.  */
25365 $ac_includes_default
25366    typedef long long int ac__type_sizeof_;
25367 int
25368 main ()
25369 {
25370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25371 test_array [0] = 0
25372
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381   *) ac_try_echo=$ac_try;;
25382 esac
25383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25384   (eval "$ac_compile") 2>conftest.er1
25385   ac_status=$?
25386   grep -v '^ *+' conftest.er1 >conftest.err
25387   rm -f conftest.er1
25388   cat conftest.err >&5
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); } && {
25391          test -z "$ac_c_werror_flag" ||
25392          test ! -s conftest.err
25393        } && test -s conftest.$ac_objext; then
25394   ac_lo=$ac_mid; break
25395 else
25396   echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25398
25399         ac_hi=`expr '(' $ac_mid ')' - 1`
25400                         if test $ac_mid -le $ac_hi; then
25401                           ac_lo= ac_hi=
25402                           break
25403                         fi
25404                         ac_mid=`expr 2 '*' $ac_mid`
25405 fi
25406
25407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408   done
25409 else
25410   echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25412
25413         ac_lo= ac_hi=
25414 fi
25415
25416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417 fi
25418
25419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25420 # Binary search between lo and hi bounds.
25421 while test "x$ac_lo" != "x$ac_hi"; do
25422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25423   cat >conftest.$ac_ext <<_ACEOF
25424 /* confdefs.h.  */
25425 _ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h.  */
25429 $ac_includes_default
25430    typedef long long int ac__type_sizeof_;
25431 int
25432 main ()
25433 {
25434 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25435 test_array [0] = 0
25436
25437   ;
25438   return 0;
25439 }
25440 _ACEOF
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445   *) ac_try_echo=$ac_try;;
25446 esac
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448   (eval "$ac_compile") 2>conftest.er1
25449   ac_status=$?
25450   grep -v '^ *+' conftest.er1 >conftest.err
25451   rm -f conftest.er1
25452   cat conftest.err >&5
25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); } && {
25455          test -z "$ac_c_werror_flag" ||
25456          test ! -s conftest.err
25457        } && test -s conftest.$ac_objext; then
25458   ac_hi=$ac_mid
25459 else
25460   echo "$as_me: failed program was:" >&5
25461 sed 's/^/| /' conftest.$ac_ext >&5
25462
25463         ac_lo=`expr '(' $ac_mid ')' + 1`
25464 fi
25465
25466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25467 done
25468 case $ac_lo in
25469 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25470 '') if test "$ac_cv_type_long_long_int" = yes; then
25471      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25472 See \`config.log' for more details." >&5
25473 echo "$as_me: error: cannot compute sizeof (long long int)
25474 See \`config.log' for more details." >&2;}
25475    { (exit 77); exit 77; }; }
25476    else
25477      ac_cv_sizeof_long_long_int=0
25478    fi ;;
25479 esac
25480 else
25481   cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 $ac_includes_default
25488    typedef long long int ac__type_sizeof_;
25489 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25490 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25491 #include <stdio.h>
25492 #include <stdlib.h>
25493 int
25494 main ()
25495 {
25496
25497   FILE *f = fopen ("conftest.val", "w");
25498   if (! f)
25499     return 1;
25500   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25501     {
25502       long int i = longval ();
25503       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25504         return 1;
25505       fprintf (f, "%ld\n", i);
25506     }
25507   else
25508     {
25509       unsigned long int i = ulongval ();
25510       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25511         return 1;
25512       fprintf (f, "%lu\n", i);
25513     }
25514   return ferror (f) || fclose (f) != 0;
25515
25516   ;
25517   return 0;
25518 }
25519 _ACEOF
25520 rm -f conftest$ac_exeext
25521 if { (ac_try="$ac_link"
25522 case "(($ac_try" in
25523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524   *) ac_try_echo=$ac_try;;
25525 esac
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527   (eval "$ac_link") 2>&5
25528   ac_status=$?
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25531   { (case "(($ac_try" in
25532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533   *) ac_try_echo=$ac_try;;
25534 esac
25535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25536   (eval "$ac_try") 2>&5
25537   ac_status=$?
25538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539   (exit $ac_status); }; }; then
25540   ac_cv_sizeof_long_long_int=`cat conftest.val`
25541 else
25542   echo "$as_me: program exited with status $ac_status" >&5
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546 ( exit $ac_status )
25547 if test "$ac_cv_type_long_long_int" = yes; then
25548      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25549 See \`config.log' for more details." >&5
25550 echo "$as_me: error: cannot compute sizeof (long long int)
25551 See \`config.log' for more details." >&2;}
25552    { (exit 77); exit 77; }; }
25553    else
25554      ac_cv_sizeof_long_long_int=0
25555    fi
25556 fi
25557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25558 fi
25559 rm -f conftest.val
25560 fi
25561 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25562 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25563
25564
25565
25566 cat >>confdefs.h <<_ACEOF
25567 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25568 _ACEOF
25569
25570
25571 { echo "$as_me:$LINENO: checking for int *" >&5
25572 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25573 if test "${ac_cv_type_int_p+set}" = set; then
25574   echo $ECHO_N "(cached) $ECHO_C" >&6
25575 else
25576   cat >conftest.$ac_ext <<_ACEOF
25577 /* confdefs.h.  */
25578 _ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h.  */
25582 $ac_includes_default
25583 typedef int * ac__type_new_;
25584 int
25585 main ()
25586 {
25587 if ((ac__type_new_ *) 0)
25588   return 0;
25589 if (sizeof (ac__type_new_))
25590   return 0;
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext
25596 if { (ac_try="$ac_compile"
25597 case "(($ac_try" in
25598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599   *) ac_try_echo=$ac_try;;
25600 esac
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602   (eval "$ac_compile") 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } && {
25609          test -z "$ac_c_werror_flag" ||
25610          test ! -s conftest.err
25611        } && test -s conftest.$ac_objext; then
25612   ac_cv_type_int_p=yes
25613 else
25614   echo "$as_me: failed program was:" >&5
25615 sed 's/^/| /' conftest.$ac_ext >&5
25616
25617         ac_cv_type_int_p=no
25618 fi
25619
25620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25621 fi
25622 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25623 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25624
25625 # The cast to long int works around a bug in the HP C Compiler
25626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25628 # This bug is HP SR number 8606223364.
25629 { echo "$as_me:$LINENO: checking size of int *" >&5
25630 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25631 if test "${ac_cv_sizeof_int_p+set}" = set; then
25632   echo $ECHO_N "(cached) $ECHO_C" >&6
25633 else
25634   if test "$cross_compiling" = yes; then
25635   # Depending upon the size, compute the lo and hi bounds.
25636 cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h.  */
25638 _ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h.  */
25642 $ac_includes_default
25643    typedef int * ac__type_sizeof_;
25644 int
25645 main ()
25646 {
25647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25648 test_array [0] = 0
25649
25650   ;
25651   return 0;
25652 }
25653 _ACEOF
25654 rm -f conftest.$ac_objext
25655 if { (ac_try="$ac_compile"
25656 case "(($ac_try" in
25657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25658   *) ac_try_echo=$ac_try;;
25659 esac
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661   (eval "$ac_compile") 2>conftest.er1
25662   ac_status=$?
25663   grep -v '^ *+' conftest.er1 >conftest.err
25664   rm -f conftest.er1
25665   cat conftest.err >&5
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); } && {
25668          test -z "$ac_c_werror_flag" ||
25669          test ! -s conftest.err
25670        } && test -s conftest.$ac_objext; then
25671   ac_lo=0 ac_mid=0
25672   while :; do
25673     cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h.  */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h.  */
25679 $ac_includes_default
25680    typedef int * ac__type_sizeof_;
25681 int
25682 main ()
25683 {
25684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25685 test_array [0] = 0
25686
25687   ;
25688   return 0;
25689 }
25690 _ACEOF
25691 rm -f conftest.$ac_objext
25692 if { (ac_try="$ac_compile"
25693 case "(($ac_try" in
25694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695   *) ac_try_echo=$ac_try;;
25696 esac
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698   (eval "$ac_compile") 2>conftest.er1
25699   ac_status=$?
25700   grep -v '^ *+' conftest.er1 >conftest.err
25701   rm -f conftest.er1
25702   cat conftest.err >&5
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); } && {
25705          test -z "$ac_c_werror_flag" ||
25706          test ! -s conftest.err
25707        } && test -s conftest.$ac_objext; then
25708   ac_hi=$ac_mid; break
25709 else
25710   echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25712
25713         ac_lo=`expr $ac_mid + 1`
25714                         if test $ac_lo -le $ac_mid; then
25715                           ac_lo= ac_hi=
25716                           break
25717                         fi
25718                         ac_mid=`expr 2 '*' $ac_mid + 1`
25719 fi
25720
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25722   done
25723 else
25724   echo "$as_me: failed program was:" >&5
25725 sed 's/^/| /' conftest.$ac_ext >&5
25726
25727         cat >conftest.$ac_ext <<_ACEOF
25728 /* confdefs.h.  */
25729 _ACEOF
25730 cat confdefs.h >>conftest.$ac_ext
25731 cat >>conftest.$ac_ext <<_ACEOF
25732 /* end confdefs.h.  */
25733 $ac_includes_default
25734    typedef int * ac__type_sizeof_;
25735 int
25736 main ()
25737 {
25738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25739 test_array [0] = 0
25740
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749   *) ac_try_echo=$ac_try;;
25750 esac
25751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752   (eval "$ac_compile") 2>conftest.er1
25753   ac_status=$?
25754   grep -v '^ *+' conftest.er1 >conftest.err
25755   rm -f conftest.er1
25756   cat conftest.err >&5
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); } && {
25759          test -z "$ac_c_werror_flag" ||
25760          test ! -s conftest.err
25761        } && test -s conftest.$ac_objext; then
25762   ac_hi=-1 ac_mid=-1
25763   while :; do
25764     cat >conftest.$ac_ext <<_ACEOF
25765 /* confdefs.h.  */
25766 _ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h.  */
25770 $ac_includes_default
25771    typedef int * ac__type_sizeof_;
25772 int
25773 main ()
25774 {
25775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25776 test_array [0] = 0
25777
25778   ;
25779   return 0;
25780 }
25781 _ACEOF
25782 rm -f conftest.$ac_objext
25783 if { (ac_try="$ac_compile"
25784 case "(($ac_try" in
25785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25786   *) ac_try_echo=$ac_try;;
25787 esac
25788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25789   (eval "$ac_compile") 2>conftest.er1
25790   ac_status=$?
25791   grep -v '^ *+' conftest.er1 >conftest.err
25792   rm -f conftest.er1
25793   cat conftest.err >&5
25794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795   (exit $ac_status); } && {
25796          test -z "$ac_c_werror_flag" ||
25797          test ! -s conftest.err
25798        } && test -s conftest.$ac_objext; then
25799   ac_lo=$ac_mid; break
25800 else
25801   echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25803
25804         ac_hi=`expr '(' $ac_mid ')' - 1`
25805                         if test $ac_mid -le $ac_hi; then
25806                           ac_lo= ac_hi=
25807                           break
25808                         fi
25809                         ac_mid=`expr 2 '*' $ac_mid`
25810 fi
25811
25812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25813   done
25814 else
25815   echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25817
25818         ac_lo= ac_hi=
25819 fi
25820
25821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25822 fi
25823
25824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25825 # Binary search between lo and hi bounds.
25826 while test "x$ac_lo" != "x$ac_hi"; do
25827   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25828   cat >conftest.$ac_ext <<_ACEOF
25829 /* confdefs.h.  */
25830 _ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h.  */
25834 $ac_includes_default
25835    typedef int * ac__type_sizeof_;
25836 int
25837 main ()
25838 {
25839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25840 test_array [0] = 0
25841
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 rm -f conftest.$ac_objext
25847 if { (ac_try="$ac_compile"
25848 case "(($ac_try" in
25849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850   *) ac_try_echo=$ac_try;;
25851 esac
25852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25853   (eval "$ac_compile") 2>conftest.er1
25854   ac_status=$?
25855   grep -v '^ *+' conftest.er1 >conftest.err
25856   rm -f conftest.er1
25857   cat conftest.err >&5
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); } && {
25860          test -z "$ac_c_werror_flag" ||
25861          test ! -s conftest.err
25862        } && test -s conftest.$ac_objext; then
25863   ac_hi=$ac_mid
25864 else
25865   echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25867
25868         ac_lo=`expr '(' $ac_mid ')' + 1`
25869 fi
25870
25871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872 done
25873 case $ac_lo in
25874 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25875 '') if test "$ac_cv_type_int_p" = yes; then
25876      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25877 See \`config.log' for more details." >&5
25878 echo "$as_me: error: cannot compute sizeof (int *)
25879 See \`config.log' for more details." >&2;}
25880    { (exit 77); exit 77; }; }
25881    else
25882      ac_cv_sizeof_int_p=0
25883    fi ;;
25884 esac
25885 else
25886   cat >conftest.$ac_ext <<_ACEOF
25887 /* confdefs.h.  */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h.  */
25892 $ac_includes_default
25893    typedef int * ac__type_sizeof_;
25894 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25895 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25896 #include <stdio.h>
25897 #include <stdlib.h>
25898 int
25899 main ()
25900 {
25901
25902   FILE *f = fopen ("conftest.val", "w");
25903   if (! f)
25904     return 1;
25905   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25906     {
25907       long int i = longval ();
25908       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25909         return 1;
25910       fprintf (f, "%ld\n", i);
25911     }
25912   else
25913     {
25914       unsigned long int i = ulongval ();
25915       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25916         return 1;
25917       fprintf (f, "%lu\n", i);
25918     }
25919   return ferror (f) || fclose (f) != 0;
25920
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929   *) ac_try_echo=$ac_try;;
25930 esac
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932   (eval "$ac_link") 2>&5
25933   ac_status=$?
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25936   { (case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_try") 2>&5
25942   ac_status=$?
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); }; }; then
25945   ac_cv_sizeof_int_p=`cat conftest.val`
25946 else
25947   echo "$as_me: program exited with status $ac_status" >&5
25948 echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25950
25951 ( exit $ac_status )
25952 if test "$ac_cv_type_int_p" = yes; then
25953      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25954 See \`config.log' for more details." >&5
25955 echo "$as_me: error: cannot compute sizeof (int *)
25956 See \`config.log' for more details." >&2;}
25957    { (exit 77); exit 77; }; }
25958    else
25959      ac_cv_sizeof_int_p=0
25960    fi
25961 fi
25962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25963 fi
25964 rm -f conftest.val
25965 fi
25966 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25967 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25968
25969
25970
25971 cat >>confdefs.h <<_ACEOF
25972 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25973 _ACEOF
25974
25975
25976
25977 # Check for sys/types.h types
25978 { echo "$as_me:$LINENO: checking for u_int type" >&5
25979 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25980 if test "${ac_cv_have_u_int+set}" = set; then
25981   echo $ECHO_N "(cached) $ECHO_C" >&6
25982 else
25983
25984     cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h.  */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
25989 /* end confdefs.h.  */
25990  #include <sys/types.h>
25991 int
25992 main ()
25993 {
25994  u_int a; a = 1;
25995   ;
25996   return 0;
25997 }
25998 _ACEOF
25999 rm -f conftest.$ac_objext
26000 if { (ac_try="$ac_compile"
26001 case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_compile") 2>conftest.er1
26007   ac_status=$?
26008   grep -v '^ *+' conftest.er1 >conftest.err
26009   rm -f conftest.er1
26010   cat conftest.err >&5
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } && {
26013          test -z "$ac_c_werror_flag" ||
26014          test ! -s conftest.err
26015        } && test -s conftest.$ac_objext; then
26016    ac_cv_have_u_int="yes"
26017 else
26018   echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26020
26021          ac_cv_have_u_int="no"
26022
26023 fi
26024
26025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26026
26027 fi
26028 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26029 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26030 if test "x$ac_cv_have_u_int" = "xyes" ; then
26031    cat >>confdefs.h <<\_ACEOF
26032 #define HAVE_U_INT 1
26033 _ACEOF
26034
26035    have_u_int=1
26036 fi
26037
26038 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26039 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26040 if test "${ac_cv_have_intmax_t+set}" = set; then
26041   echo $ECHO_N "(cached) $ECHO_C" >&6
26042 else
26043
26044    cat >conftest.$ac_ext <<_ACEOF
26045 /* confdefs.h.  */
26046 _ACEOF
26047 cat confdefs.h >>conftest.$ac_ext
26048 cat >>conftest.$ac_ext <<_ACEOF
26049 /* end confdefs.h.  */
26050  #include <sys/types.h>
26051 int
26052 main ()
26053 {
26054  intmax_t a; a = 1;
26055   ;
26056   return 0;
26057 }
26058 _ACEOF
26059 rm -f conftest.$ac_objext
26060 if { (ac_try="$ac_compile"
26061 case "(($ac_try" in
26062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063   *) ac_try_echo=$ac_try;;
26064 esac
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066   (eval "$ac_compile") 2>conftest.er1
26067   ac_status=$?
26068   grep -v '^ *+' conftest.er1 >conftest.err
26069   rm -f conftest.er1
26070   cat conftest.err >&5
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); } && {
26073          test -z "$ac_c_werror_flag" ||
26074          test ! -s conftest.err
26075        } && test -s conftest.$ac_objext; then
26076    ac_cv_have_intmax_t="yes"
26077 else
26078   echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081
26082          cat >conftest.$ac_ext <<_ACEOF
26083 /* confdefs.h.  */
26084 _ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h.  */
26088  #include <stdint.h>
26089 int
26090 main ()
26091 {
26092  intmax_t a; a = 1;
26093   ;
26094   return 0;
26095 }
26096 _ACEOF
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101   *) ac_try_echo=$ac_try;;
26102 esac
26103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26104   (eval "$ac_compile") 2>conftest.er1
26105   ac_status=$?
26106   grep -v '^ *+' conftest.er1 >conftest.err
26107   rm -f conftest.er1
26108   cat conftest.err >&5
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); } && {
26111          test -z "$ac_c_werror_flag" ||
26112          test ! -s conftest.err
26113        } && test -s conftest.$ac_objext; then
26114    ac_cv_have_intmax_t="yes"
26115 else
26116   echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.$ac_ext >&5
26118
26119          ac_cv_have_intmax_t="no"
26120
26121 fi
26122
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124
26125
26126 fi
26127
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129
26130
26131 fi
26132 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26133 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26134 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26135    cat >>confdefs.h <<\_ACEOF
26136 #define HAVE_INTMAX_T 1
26137 _ACEOF
26138
26139    have_intmax_t=1
26140 fi
26141
26142
26143 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26144 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26145 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26148
26149    cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155  #include <sys/types.h>
26156 int
26157 main ()
26158 {
26159  u_intmax_t a; a = 1;
26160   ;
26161   return 0;
26162 }
26163 _ACEOF
26164 rm -f conftest.$ac_objext
26165 if { (ac_try="$ac_compile"
26166 case "(($ac_try" in
26167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168   *) ac_try_echo=$ac_try;;
26169 esac
26170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26171   (eval "$ac_compile") 2>conftest.er1
26172   ac_status=$?
26173   grep -v '^ *+' conftest.er1 >conftest.err
26174   rm -f conftest.er1
26175   cat conftest.err >&5
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); } && {
26178          test -z "$ac_c_werror_flag" ||
26179          test ! -s conftest.err
26180        } && test -s conftest.$ac_objext; then
26181    ac_cv_have_u_intmax_t="yes"
26182 else
26183   echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186
26187          cat >conftest.$ac_ext <<_ACEOF
26188 /* confdefs.h.  */
26189 _ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h.  */
26193  #include <stdint.h>
26194 int
26195 main ()
26196 {
26197  u_intmax_t a; a = 1;
26198   ;
26199   return 0;
26200 }
26201 _ACEOF
26202 rm -f conftest.$ac_objext
26203 if { (ac_try="$ac_compile"
26204 case "(($ac_try" in
26205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206   *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209   (eval "$ac_compile") 2>conftest.er1
26210   ac_status=$?
26211   grep -v '^ *+' conftest.er1 >conftest.err
26212   rm -f conftest.er1
26213   cat conftest.err >&5
26214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215   (exit $ac_status); } && {
26216          test -z "$ac_c_werror_flag" ||
26217          test ! -s conftest.err
26218        } && test -s conftest.$ac_objext; then
26219    ac_cv_have_u_intmax_t="yes"
26220 else
26221   echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26223
26224          ac_cv_have_u_intmax_t="no"
26225
26226 fi
26227
26228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26229
26230
26231 fi
26232
26233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234
26235 fi
26236 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26237 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26238 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26239    cat >>confdefs.h <<\_ACEOF
26240 #define HAVE_U_INTMAX_T 1
26241 _ACEOF
26242
26243    have_u_intmax_t=1
26244 fi
26245
26246
26247 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26248 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26249 if test "${ac_cv_have_intxx_t+set}" = set; then
26250   echo $ECHO_N "(cached) $ECHO_C" >&6
26251 else
26252
26253    cat >conftest.$ac_ext <<_ACEOF
26254 /* confdefs.h.  */
26255 _ACEOF
26256 cat confdefs.h >>conftest.$ac_ext
26257 cat >>conftest.$ac_ext <<_ACEOF
26258 /* end confdefs.h.  */
26259  #include <sys/types.h>
26260 int
26261 main ()
26262 {
26263  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26264   ;
26265   return 0;
26266 }
26267 _ACEOF
26268 rm -f conftest.$ac_objext
26269 if { (ac_try="$ac_compile"
26270 case "(($ac_try" in
26271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272   *) ac_try_echo=$ac_try;;
26273 esac
26274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26275   (eval "$ac_compile") 2>conftest.er1
26276   ac_status=$?
26277   grep -v '^ *+' conftest.er1 >conftest.err
26278   rm -f conftest.er1
26279   cat conftest.err >&5
26280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281   (exit $ac_status); } && {
26282          test -z "$ac_c_werror_flag" ||
26283          test ! -s conftest.err
26284        } && test -s conftest.$ac_objext; then
26285    ac_cv_have_intxx_t="yes"
26286 else
26287   echo "$as_me: failed program was:" >&5
26288 sed 's/^/| /' conftest.$ac_ext >&5
26289
26290          ac_cv_have_intxx_t="no"
26291
26292 fi
26293
26294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26295
26296 fi
26297 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26298 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26299 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26300    cat >>confdefs.h <<\_ACEOF
26301 #define HAVE_INTXX_T 1
26302 _ACEOF
26303
26304    have_intxx_t=1
26305 fi
26306
26307 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26308 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26309 if test "${ac_cv_have_int64_t+set}" = set; then
26310   echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312
26313    cat >conftest.$ac_ext <<_ACEOF
26314 /* confdefs.h.  */
26315 _ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h.  */
26319  #include <sys/types.h>
26320 int
26321 main ()
26322 {
26323  int64_t a; a = 1;
26324   ;
26325   return 0;
26326 }
26327 _ACEOF
26328 rm -f conftest.$ac_objext
26329 if { (ac_try="$ac_compile"
26330 case "(($ac_try" in
26331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332   *) ac_try_echo=$ac_try;;
26333 esac
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335   (eval "$ac_compile") 2>conftest.er1
26336   ac_status=$?
26337   grep -v '^ *+' conftest.er1 >conftest.err
26338   rm -f conftest.er1
26339   cat conftest.err >&5
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); } && {
26342          test -z "$ac_c_werror_flag" ||
26343          test ! -s conftest.err
26344        } && test -s conftest.$ac_objext; then
26345    ac_cv_have_int64_t="yes"
26346 else
26347   echo "$as_me: failed program was:" >&5
26348 sed 's/^/| /' conftest.$ac_ext >&5
26349
26350          ac_cv_have_int64_t="no"
26351
26352 fi
26353
26354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26355
26356 fi
26357 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26358 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26359 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26360    cat >>confdefs.h <<\_ACEOF
26361 #define HAVE_INT64_T 1
26362 _ACEOF
26363
26364    have_int64_t=1
26365 fi
26366
26367 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26368 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26369 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26370   echo $ECHO_N "(cached) $ECHO_C" >&6
26371 else
26372
26373    cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379  #include <sys/types.h>
26380 int
26381 main ()
26382 {
26383  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26384   ;
26385   return 0;
26386 }
26387 _ACEOF
26388 rm -f conftest.$ac_objext
26389 if { (ac_try="$ac_compile"
26390 case "(($ac_try" in
26391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392   *) ac_try_echo=$ac_try;;
26393 esac
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395   (eval "$ac_compile") 2>conftest.er1
26396   ac_status=$?
26397   grep -v '^ *+' conftest.er1 >conftest.err
26398   rm -f conftest.er1
26399   cat conftest.err >&5
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); } && {
26402          test -z "$ac_c_werror_flag" ||
26403          test ! -s conftest.err
26404        } && test -s conftest.$ac_objext; then
26405    ac_cv_have_u_intxx_t="yes"
26406 else
26407   echo "$as_me: failed program was:" >&5
26408 sed 's/^/| /' conftest.$ac_ext >&5
26409
26410          ac_cv_have_u_intxx_t="no"
26411
26412 fi
26413
26414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26415
26416 fi
26417 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26418 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26419 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26420    cat >>confdefs.h <<\_ACEOF
26421 #define HAVE_U_INTXX_T 1
26422 _ACEOF
26423
26424    have_u_intxx_t=1
26425 fi
26426
26427 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26428 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26429 if test "${ac_cv_have_u_int64_t+set}" = set; then
26430   echo $ECHO_N "(cached) $ECHO_C" >&6
26431 else
26432
26433    cat >conftest.$ac_ext <<_ACEOF
26434 /* confdefs.h.  */
26435 _ACEOF
26436 cat confdefs.h >>conftest.$ac_ext
26437 cat >>conftest.$ac_ext <<_ACEOF
26438 /* end confdefs.h.  */
26439  #include <sys/types.h>
26440 int
26441 main ()
26442 {
26443  u_int64_t a; a = 1;
26444   ;
26445   return 0;
26446 }
26447 _ACEOF
26448 rm -f conftest.$ac_objext
26449 if { (ac_try="$ac_compile"
26450 case "(($ac_try" in
26451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452   *) ac_try_echo=$ac_try;;
26453 esac
26454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455   (eval "$ac_compile") 2>conftest.er1
26456   ac_status=$?
26457   grep -v '^ *+' conftest.er1 >conftest.err
26458   rm -f conftest.er1
26459   cat conftest.err >&5
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); } && {
26462          test -z "$ac_c_werror_flag" ||
26463          test ! -s conftest.err
26464        } && test -s conftest.$ac_objext; then
26465    ac_cv_have_u_int64_t="yes"
26466 else
26467   echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26469
26470          ac_cv_have_u_int64_t="no"
26471
26472 fi
26473
26474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26475
26476 fi
26477 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26478 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26479 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26480    cat >>confdefs.h <<\_ACEOF
26481 #define HAVE_U_INT64_T 1
26482 _ACEOF
26483
26484    have_u_int64_t=1
26485 fi
26486
26487 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26488            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26489 then
26490    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26491 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26492    cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498  #include <sys/bitypes.h>
26499 int
26500 main ()
26501 {
26502  int8_t a; int16_t b; int32_t c;
26503         u_int8_t e; u_int16_t f; u_int32_t g;
26504         a = b = c = e = f = g = 1;
26505   ;
26506   return 0;
26507 }
26508 _ACEOF
26509 rm -f conftest.$ac_objext
26510 if { (ac_try="$ac_compile"
26511 case "(($ac_try" in
26512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26513   *) ac_try_echo=$ac_try;;
26514 esac
26515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26516   (eval "$ac_compile") 2>conftest.er1
26517   ac_status=$?
26518   grep -v '^ *+' conftest.er1 >conftest.err
26519   rm -f conftest.er1
26520   cat conftest.err >&5
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); } && {
26523          test -z "$ac_c_werror_flag" ||
26524          test ! -s conftest.err
26525        } && test -s conftest.$ac_objext; then
26526    cat >>confdefs.h <<\_ACEOF
26527 #define HAVE_U_INTXX_T 1
26528 _ACEOF
26529
26530         cat >>confdefs.h <<\_ACEOF
26531 #define HAVE_INTXX_T 1
26532 _ACEOF
26533
26534         cat >>confdefs.h <<\_ACEOF
26535 #define HAVE_SYS_BITYPES_H 1
26536 _ACEOF
26537
26538         { echo "$as_me:$LINENO: result: yes" >&5
26539 echo "${ECHO_T}yes" >&6; }
26540 else
26541   echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26543
26544          { echo "$as_me:$LINENO: result: no" >&5
26545 echo "${ECHO_T}no" >&6; }
26546
26547 fi
26548
26549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 fi
26551
26552 if test -z "$have_u_intxx_t" ; then
26553    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26554 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26555 if test "${ac_cv_have_uintxx_t+set}" = set; then
26556   echo $ECHO_N "(cached) $ECHO_C" >&6
26557 else
26558
26559       cat >conftest.$ac_ext <<_ACEOF
26560 /* confdefs.h.  */
26561 _ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h.  */
26565  #include <sys/types.h>
26566 int
26567 main ()
26568 {
26569  uint8_t a; uint16_t b;
26570            uint32_t c; a = b = c = 1;
26571   ;
26572   return 0;
26573 }
26574 _ACEOF
26575 rm -f conftest.$ac_objext
26576 if { (ac_try="$ac_compile"
26577 case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582   (eval "$ac_compile") 2>conftest.er1
26583   ac_status=$?
26584   grep -v '^ *+' conftest.er1 >conftest.err
26585   rm -f conftest.er1
26586   cat conftest.err >&5
26587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588   (exit $ac_status); } && {
26589          test -z "$ac_c_werror_flag" ||
26590          test ! -s conftest.err
26591        } && test -s conftest.$ac_objext; then
26592    ac_cv_have_uintxx_t="yes"
26593 else
26594   echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26596
26597          ac_cv_have_uintxx_t="no"
26598
26599 fi
26600
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26602
26603 fi
26604 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26605 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26606    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26607       cat >>confdefs.h <<\_ACEOF
26608 #define HAVE_UINTXX_T 1
26609 _ACEOF
26610
26611    fi
26612 fi
26613
26614 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26615           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26616 then
26617    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26618 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26619    cat >conftest.$ac_ext <<_ACEOF
26620 /* confdefs.h.  */
26621 _ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h.  */
26625  #include <sys/bitypes.h>
26626 int
26627 main ()
26628 {
26629  int64_t a; u_int64_t b;
26630        a = b = 1;
26631   ;
26632   return 0;
26633 }
26634 _ACEOF
26635 rm -f conftest.$ac_objext
26636 if { (ac_try="$ac_compile"
26637 case "(($ac_try" in
26638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639   *) ac_try_echo=$ac_try;;
26640 esac
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642   (eval "$ac_compile") 2>conftest.er1
26643   ac_status=$?
26644   grep -v '^ *+' conftest.er1 >conftest.err
26645   rm -f conftest.er1
26646   cat conftest.err >&5
26647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648   (exit $ac_status); } && {
26649          test -z "$ac_c_werror_flag" ||
26650          test ! -s conftest.err
26651        } && test -s conftest.$ac_objext; then
26652    cat >>confdefs.h <<\_ACEOF
26653 #define HAVE_U_INT64_T 1
26654 _ACEOF
26655
26656        cat >>confdefs.h <<\_ACEOF
26657 #define HAVE_INT64_T 1
26658 _ACEOF
26659
26660        { echo "$as_me:$LINENO: result: yes" >&5
26661 echo "${ECHO_T}yes" >&6; }
26662 else
26663   echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26665
26666          { echo "$as_me:$LINENO: result: no" >&5
26667 echo "${ECHO_T}no" >&6; }
26668
26669 fi
26670
26671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26672 fi
26673
26674 if (test -z "$have_uintxx_t" && \
26675           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26676 then
26677    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26678 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26679    cat >conftest.$ac_ext <<_ACEOF
26680 /* confdefs.h.  */
26681 _ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h.  */
26685  #include <sys/bitypes.h>
26686 int
26687 main ()
26688 {
26689  uint8_t a; uint16_t b;
26690           uint32_t c; a = b = c = 1;
26691   ;
26692   return 0;
26693 }
26694 _ACEOF
26695 rm -f conftest.$ac_objext
26696 if { (ac_try="$ac_compile"
26697 case "(($ac_try" in
26698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699   *) ac_try_echo=$ac_try;;
26700 esac
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702   (eval "$ac_compile") 2>conftest.er1
26703   ac_status=$?
26704   grep -v '^ *+' conftest.er1 >conftest.err
26705   rm -f conftest.er1
26706   cat conftest.err >&5
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); } && {
26709          test -z "$ac_c_werror_flag" ||
26710          test ! -s conftest.err
26711        } && test -s conftest.$ac_objext; then
26712    cat >>confdefs.h <<\_ACEOF
26713 #define HAVE_UINTXX_T 1
26714 _ACEOF
26715
26716        { echo "$as_me:$LINENO: result: yes" >&5
26717 echo "${ECHO_T}yes" >&6; }
26718 else
26719   echo "$as_me: failed program was:" >&5
26720 sed 's/^/| /' conftest.$ac_ext >&5
26721
26722          { echo "$as_me:$LINENO: result: no" >&5
26723 echo "${ECHO_T}no" >&6; }
26724
26725 fi
26726
26727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26728
26729 fi
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747 for ac_func in \
26748         fork \
26749         getcwd \
26750         gethostname \
26751         getpid \
26752         gettimeofday \
26753         setpgid \
26754         setpgrp \
26755         setsid \
26756         signal \
26757         strerror \
26758         strncmp \
26759         strncpy \
26760         vfprintf \
26761
26762 do
26763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26767   echo $ECHO_N "(cached) $ECHO_C" >&6
26768 else
26769   cat >conftest.$ac_ext <<_ACEOF
26770 /* confdefs.h.  */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h.  */
26775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26777 #define $ac_func innocuous_$ac_func
26778
26779 /* System header to define __stub macros and hopefully few prototypes,
26780     which can conflict with char $ac_func (); below.
26781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26782     <limits.h> exists even on freestanding compilers.  */
26783
26784 #ifdef __STDC__
26785 # include <limits.h>
26786 #else
26787 # include <assert.h>
26788 #endif
26789
26790 #undef $ac_func
26791
26792 /* Override any GCC internal prototype to avoid an error.
26793    Use char because int might match the return type of a GCC
26794    builtin and then its argument prototype would still apply.  */
26795 #ifdef __cplusplus
26796 extern "C"
26797 #endif
26798 char $ac_func ();
26799 /* The GNU C library defines this for functions which it implements
26800     to always fail with ENOSYS.  Some functions are actually named
26801     something starting with __ and the normal name is an alias.  */
26802 #if defined __stub_$ac_func || defined __stub___$ac_func
26803 choke me
26804 #endif
26805
26806 int
26807 main ()
26808 {
26809 return $ac_func ();
26810   ;
26811   return 0;
26812 }
26813 _ACEOF
26814 rm -f conftest.$ac_objext conftest$ac_exeext
26815 if { (ac_try="$ac_link"
26816 case "(($ac_try" in
26817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818   *) ac_try_echo=$ac_try;;
26819 esac
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821   (eval "$ac_link") 2>conftest.er1
26822   ac_status=$?
26823   grep -v '^ *+' conftest.er1 >conftest.err
26824   rm -f conftest.er1
26825   cat conftest.err >&5
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } && {
26828          test -z "$ac_c_werror_flag" ||
26829          test ! -s conftest.err
26830        } && test -s conftest$ac_exeext &&
26831        $as_test_x conftest$ac_exeext; then
26832   eval "$as_ac_var=yes"
26833 else
26834   echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26836
26837         eval "$as_ac_var=no"
26838 fi
26839
26840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26841       conftest$ac_exeext conftest.$ac_ext
26842 fi
26843 ac_res=`eval echo '${'$as_ac_var'}'`
26844                { echo "$as_me:$LINENO: result: $ac_res" >&5
26845 echo "${ECHO_T}$ac_res" >&6; }
26846 if test `eval echo '${'$as_ac_var'}'` = yes; then
26847   cat >>confdefs.h <<_ACEOF
26848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26849 _ACEOF
26850
26851 else
26852   echo 'configure: cannot find needed function.'; exit 1
26853
26854 fi
26855 done
26856
26857
26858
26859 for ac_func in fchdir
26860 do
26861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26865   echo $ECHO_N "(cached) $ECHO_C" >&6
26866 else
26867   cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h.  */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h.  */
26873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26875 #define $ac_func innocuous_$ac_func
26876
26877 /* System header to define __stub macros and hopefully few prototypes,
26878     which can conflict with char $ac_func (); below.
26879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26880     <limits.h> exists even on freestanding compilers.  */
26881
26882 #ifdef __STDC__
26883 # include <limits.h>
26884 #else
26885 # include <assert.h>
26886 #endif
26887
26888 #undef $ac_func
26889
26890 /* Override any GCC internal prototype to avoid an error.
26891    Use char because int might match the return type of a GCC
26892    builtin and then its argument prototype would still apply.  */
26893 #ifdef __cplusplus
26894 extern "C"
26895 #endif
26896 char $ac_func ();
26897 /* The GNU C library defines this for functions which it implements
26898     to always fail with ENOSYS.  Some functions are actually named
26899     something starting with __ and the normal name is an alias.  */
26900 #if defined __stub_$ac_func || defined __stub___$ac_func
26901 choke me
26902 #endif
26903
26904 int
26905 main ()
26906 {
26907 return $ac_func ();
26908   ;
26909   return 0;
26910 }
26911 _ACEOF
26912 rm -f conftest.$ac_objext conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919   (eval "$ac_link") 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } && {
26926          test -z "$ac_c_werror_flag" ||
26927          test ! -s conftest.err
26928        } && test -s conftest$ac_exeext &&
26929        $as_test_x conftest$ac_exeext; then
26930   eval "$as_ac_var=yes"
26931 else
26932   echo "$as_me: failed program was:" >&5
26933 sed 's/^/| /' conftest.$ac_ext >&5
26934
26935         eval "$as_ac_var=no"
26936 fi
26937
26938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26939       conftest$ac_exeext conftest.$ac_ext
26940 fi
26941 ac_res=`eval echo '${'$as_ac_var'}'`
26942                { echo "$as_me:$LINENO: result: $ac_res" >&5
26943 echo "${ECHO_T}$ac_res" >&6; }
26944 if test `eval echo '${'$as_ac_var'}'` = yes; then
26945   cat >>confdefs.h <<_ACEOF
26946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26947 _ACEOF
26948  cat >>confdefs.h <<\_ACEOF
26949 #define HAVE_FCHDIR 1
26950 _ACEOF
26951
26952 fi
26953 done
26954
26955
26956 for ac_func in strtoll
26957 do
26958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26962   echo $ECHO_N "(cached) $ECHO_C" >&6
26963 else
26964   cat >conftest.$ac_ext <<_ACEOF
26965 /* confdefs.h.  */
26966 _ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h.  */
26970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26972 #define $ac_func innocuous_$ac_func
26973
26974 /* System header to define __stub macros and hopefully few prototypes,
26975     which can conflict with char $ac_func (); below.
26976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26977     <limits.h> exists even on freestanding compilers.  */
26978
26979 #ifdef __STDC__
26980 # include <limits.h>
26981 #else
26982 # include <assert.h>
26983 #endif
26984
26985 #undef $ac_func
26986
26987 /* Override any GCC internal prototype to avoid an error.
26988    Use char because int might match the return type of a GCC
26989    builtin and then its argument prototype would still apply.  */
26990 #ifdef __cplusplus
26991 extern "C"
26992 #endif
26993 char $ac_func ();
26994 /* The GNU C library defines this for functions which it implements
26995     to always fail with ENOSYS.  Some functions are actually named
26996     something starting with __ and the normal name is an alias.  */
26997 #if defined __stub_$ac_func || defined __stub___$ac_func
26998 choke me
26999 #endif
27000
27001 int
27002 main ()
27003 {
27004 return $ac_func ();
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 rm -f conftest.$ac_objext conftest$ac_exeext
27010 if { (ac_try="$ac_link"
27011 case "(($ac_try" in
27012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27013   *) ac_try_echo=$ac_try;;
27014 esac
27015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27016   (eval "$ac_link") 2>conftest.er1
27017   ac_status=$?
27018   grep -v '^ *+' conftest.er1 >conftest.err
27019   rm -f conftest.er1
27020   cat conftest.err >&5
27021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022   (exit $ac_status); } && {
27023          test -z "$ac_c_werror_flag" ||
27024          test ! -s conftest.err
27025        } && test -s conftest$ac_exeext &&
27026        $as_test_x conftest$ac_exeext; then
27027   eval "$as_ac_var=yes"
27028 else
27029   echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27031
27032         eval "$as_ac_var=no"
27033 fi
27034
27035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27036       conftest$ac_exeext conftest.$ac_ext
27037 fi
27038 ac_res=`eval echo '${'$as_ac_var'}'`
27039                { echo "$as_me:$LINENO: result: $ac_res" >&5
27040 echo "${ECHO_T}$ac_res" >&6; }
27041 if test `eval echo '${'$as_ac_var'}'` = yes; then
27042   cat >>confdefs.h <<_ACEOF
27043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27044 _ACEOF
27045  cat >>confdefs.h <<\_ACEOF
27046 #define HAVE_STRTOLL 1
27047 _ACEOF
27048
27049 fi
27050 done
27051
27052
27053 for ac_func in posix_fadvise
27054 do
27055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27059   echo $ECHO_N "(cached) $ECHO_C" >&6
27060 else
27061   cat >conftest.$ac_ext <<_ACEOF
27062 /* confdefs.h.  */
27063 _ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h.  */
27067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27069 #define $ac_func innocuous_$ac_func
27070
27071 /* System header to define __stub macros and hopefully few prototypes,
27072     which can conflict with char $ac_func (); below.
27073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27074     <limits.h> exists even on freestanding compilers.  */
27075
27076 #ifdef __STDC__
27077 # include <limits.h>
27078 #else
27079 # include <assert.h>
27080 #endif
27081
27082 #undef $ac_func
27083
27084 /* Override any GCC internal prototype to avoid an error.
27085    Use char because int might match the return type of a GCC
27086    builtin and then its argument prototype would still apply.  */
27087 #ifdef __cplusplus
27088 extern "C"
27089 #endif
27090 char $ac_func ();
27091 /* The GNU C library defines this for functions which it implements
27092     to always fail with ENOSYS.  Some functions are actually named
27093     something starting with __ and the normal name is an alias.  */
27094 #if defined __stub_$ac_func || defined __stub___$ac_func
27095 choke me
27096 #endif
27097
27098 int
27099 main ()
27100 {
27101 return $ac_func ();
27102   ;
27103   return 0;
27104 }
27105 _ACEOF
27106 rm -f conftest.$ac_objext conftest$ac_exeext
27107 if { (ac_try="$ac_link"
27108 case "(($ac_try" in
27109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110   *) ac_try_echo=$ac_try;;
27111 esac
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113   (eval "$ac_link") 2>conftest.er1
27114   ac_status=$?
27115   grep -v '^ *+' conftest.er1 >conftest.err
27116   rm -f conftest.er1
27117   cat conftest.err >&5
27118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); } && {
27120          test -z "$ac_c_werror_flag" ||
27121          test ! -s conftest.err
27122        } && test -s conftest$ac_exeext &&
27123        $as_test_x conftest$ac_exeext; then
27124   eval "$as_ac_var=yes"
27125 else
27126   echo "$as_me: failed program was:" >&5
27127 sed 's/^/| /' conftest.$ac_ext >&5
27128
27129         eval "$as_ac_var=no"
27130 fi
27131
27132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27133       conftest$ac_exeext conftest.$ac_ext
27134 fi
27135 ac_res=`eval echo '${'$as_ac_var'}'`
27136                { echo "$as_me:$LINENO: result: $ac_res" >&5
27137 echo "${ECHO_T}$ac_res" >&6; }
27138 if test `eval echo '${'$as_ac_var'}'` = yes; then
27139   cat >>confdefs.h <<_ACEOF
27140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27141 _ACEOF
27142
27143 fi
27144 done
27145
27146
27147 for ac_func in fdatasync
27148 do
27149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27153   echo $ECHO_N "(cached) $ECHO_C" >&6
27154 else
27155   cat >conftest.$ac_ext <<_ACEOF
27156 /* confdefs.h.  */
27157 _ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h.  */
27161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27163 #define $ac_func innocuous_$ac_func
27164
27165 /* System header to define __stub macros and hopefully few prototypes,
27166     which can conflict with char $ac_func (); below.
27167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27168     <limits.h> exists even on freestanding compilers.  */
27169
27170 #ifdef __STDC__
27171 # include <limits.h>
27172 #else
27173 # include <assert.h>
27174 #endif
27175
27176 #undef $ac_func
27177
27178 /* Override any GCC internal prototype to avoid an error.
27179    Use char because int might match the return type of a GCC
27180    builtin and then its argument prototype would still apply.  */
27181 #ifdef __cplusplus
27182 extern "C"
27183 #endif
27184 char $ac_func ();
27185 /* The GNU C library defines this for functions which it implements
27186     to always fail with ENOSYS.  Some functions are actually named
27187     something starting with __ and the normal name is an alias.  */
27188 #if defined __stub_$ac_func || defined __stub___$ac_func
27189 choke me
27190 #endif
27191
27192 int
27193 main ()
27194 {
27195 return $ac_func ();
27196   ;
27197   return 0;
27198 }
27199 _ACEOF
27200 rm -f conftest.$ac_objext conftest$ac_exeext
27201 if { (ac_try="$ac_link"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_link") 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } && {
27214          test -z "$ac_c_werror_flag" ||
27215          test ! -s conftest.err
27216        } && test -s conftest$ac_exeext &&
27217        $as_test_x conftest$ac_exeext; then
27218   eval "$as_ac_var=yes"
27219 else
27220   echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27222
27223         eval "$as_ac_var=no"
27224 fi
27225
27226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27227       conftest$ac_exeext conftest.$ac_ext
27228 fi
27229 ac_res=`eval echo '${'$as_ac_var'}'`
27230                { echo "$as_me:$LINENO: result: $ac_res" >&5
27231 echo "${ECHO_T}$ac_res" >&6; }
27232 if test `eval echo '${'$as_ac_var'}'` = yes; then
27233   cat >>confdefs.h <<_ACEOF
27234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27235 _ACEOF
27236
27237 fi
27238 done
27239
27240
27241
27242 for ac_func in chflags
27243 do
27244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27248   echo $ECHO_N "(cached) $ECHO_C" >&6
27249 else
27250   cat >conftest.$ac_ext <<_ACEOF
27251 /* confdefs.h.  */
27252 _ACEOF
27253 cat confdefs.h >>conftest.$ac_ext
27254 cat >>conftest.$ac_ext <<_ACEOF
27255 /* end confdefs.h.  */
27256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27258 #define $ac_func innocuous_$ac_func
27259
27260 /* System header to define __stub macros and hopefully few prototypes,
27261     which can conflict with char $ac_func (); below.
27262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27263     <limits.h> exists even on freestanding compilers.  */
27264
27265 #ifdef __STDC__
27266 # include <limits.h>
27267 #else
27268 # include <assert.h>
27269 #endif
27270
27271 #undef $ac_func
27272
27273 /* Override any GCC internal prototype to avoid an error.
27274    Use char because int might match the return type of a GCC
27275    builtin and then its argument prototype would still apply.  */
27276 #ifdef __cplusplus
27277 extern "C"
27278 #endif
27279 char $ac_func ();
27280 /* The GNU C library defines this for functions which it implements
27281     to always fail with ENOSYS.  Some functions are actually named
27282     something starting with __ and the normal name is an alias.  */
27283 #if defined __stub_$ac_func || defined __stub___$ac_func
27284 choke me
27285 #endif
27286
27287 int
27288 main ()
27289 {
27290 return $ac_func ();
27291   ;
27292   return 0;
27293 }
27294 _ACEOF
27295 rm -f conftest.$ac_objext conftest$ac_exeext
27296 if { (ac_try="$ac_link"
27297 case "(($ac_try" in
27298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299   *) ac_try_echo=$ac_try;;
27300 esac
27301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302   (eval "$ac_link") 2>conftest.er1
27303   ac_status=$?
27304   grep -v '^ *+' conftest.er1 >conftest.err
27305   rm -f conftest.er1
27306   cat conftest.err >&5
27307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308   (exit $ac_status); } && {
27309          test -z "$ac_c_werror_flag" ||
27310          test ! -s conftest.err
27311        } && test -s conftest$ac_exeext &&
27312        $as_test_x conftest$ac_exeext; then
27313   eval "$as_ac_var=yes"
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318         eval "$as_ac_var=no"
27319 fi
27320
27321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27322       conftest$ac_exeext conftest.$ac_ext
27323 fi
27324 ac_res=`eval echo '${'$as_ac_var'}'`
27325                { echo "$as_me:$LINENO: result: $ac_res" >&5
27326 echo "${ECHO_T}$ac_res" >&6; }
27327 if test `eval echo '${'$as_ac_var'}'` = yes; then
27328   cat >>confdefs.h <<_ACEOF
27329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27330 _ACEOF
27331
27332 fi
27333 done
27334
27335
27336
27337
27338
27339
27340 for ac_func in snprintf vsnprintf gethostid fseeko
27341 do
27342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27346   echo $ECHO_N "(cached) $ECHO_C" >&6
27347 else
27348   cat >conftest.$ac_ext <<_ACEOF
27349 /* confdefs.h.  */
27350 _ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h.  */
27354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27356 #define $ac_func innocuous_$ac_func
27357
27358 /* System header to define __stub macros and hopefully few prototypes,
27359     which can conflict with char $ac_func (); below.
27360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27361     <limits.h> exists even on freestanding compilers.  */
27362
27363 #ifdef __STDC__
27364 # include <limits.h>
27365 #else
27366 # include <assert.h>
27367 #endif
27368
27369 #undef $ac_func
27370
27371 /* Override any GCC internal prototype to avoid an error.
27372    Use char because int might match the return type of a GCC
27373    builtin and then its argument prototype would still apply.  */
27374 #ifdef __cplusplus
27375 extern "C"
27376 #endif
27377 char $ac_func ();
27378 /* The GNU C library defines this for functions which it implements
27379     to always fail with ENOSYS.  Some functions are actually named
27380     something starting with __ and the normal name is an alias.  */
27381 #if defined __stub_$ac_func || defined __stub___$ac_func
27382 choke me
27383 #endif
27384
27385 int
27386 main ()
27387 {
27388 return $ac_func ();
27389   ;
27390   return 0;
27391 }
27392 _ACEOF
27393 rm -f conftest.$ac_objext conftest$ac_exeext
27394 if { (ac_try="$ac_link"
27395 case "(($ac_try" in
27396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27397   *) ac_try_echo=$ac_try;;
27398 esac
27399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27400   (eval "$ac_link") 2>conftest.er1
27401   ac_status=$?
27402   grep -v '^ *+' conftest.er1 >conftest.err
27403   rm -f conftest.er1
27404   cat conftest.err >&5
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); } && {
27407          test -z "$ac_c_werror_flag" ||
27408          test ! -s conftest.err
27409        } && test -s conftest$ac_exeext &&
27410        $as_test_x conftest$ac_exeext; then
27411   eval "$as_ac_var=yes"
27412 else
27413   echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27415
27416         eval "$as_ac_var=no"
27417 fi
27418
27419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27420       conftest$ac_exeext conftest.$ac_ext
27421 fi
27422 ac_res=`eval echo '${'$as_ac_var'}'`
27423                { echo "$as_me:$LINENO: result: $ac_res" >&5
27424 echo "${ECHO_T}$ac_res" >&6; }
27425 if test `eval echo '${'$as_ac_var'}'` = yes; then
27426   cat >>confdefs.h <<_ACEOF
27427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27428 _ACEOF
27429
27430 fi
27431 done
27432
27433
27434 { echo "$as_me:$LINENO: checking for va_copy" >&5
27435 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27436 if test "${ba_cv_va_copy+set}" = set; then
27437   echo $ECHO_N "(cached) $ECHO_C" >&6
27438 else
27439   cat >conftest.$ac_ext <<_ACEOF
27440 /* confdefs.h.  */
27441 _ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h.  */
27445
27446 #include <stdarg.h>
27447 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27448 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27449
27450 int
27451 main ()
27452 {
27453 call_use_va_copy(1,2,3)
27454   ;
27455   return 0;
27456 }
27457 _ACEOF
27458 rm -f conftest.$ac_objext conftest$ac_exeext
27459 if { (ac_try="$ac_link"
27460 case "(($ac_try" in
27461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27462   *) ac_try_echo=$ac_try;;
27463 esac
27464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27465   (eval "$ac_link") 2>conftest.er1
27466   ac_status=$?
27467   grep -v '^ *+' conftest.er1 >conftest.err
27468   rm -f conftest.er1
27469   cat conftest.err >&5
27470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); } && {
27472          test -z "$ac_c_werror_flag" ||
27473          test ! -s conftest.err
27474        } && test -s conftest$ac_exeext &&
27475        $as_test_x conftest$ac_exeext; then
27476   ba_cv_va_copy=yes
27477 else
27478   echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27480
27481         ba_cv_va_copy=no
27482 fi
27483
27484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27485       conftest$ac_exeext conftest.$ac_ext
27486 fi
27487 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27488 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27489 test $ba_cv_va_copy = yes &&
27490 cat >>confdefs.h <<\_ACEOF
27491 #define HAVE_VA_COPY 1
27492 _ACEOF
27493
27494
27495
27496
27497
27498
27499
27500 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27501 do
27502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27506   echo $ECHO_N "(cached) $ECHO_C" >&6
27507 else
27508   cat >conftest.$ac_ext <<_ACEOF
27509 /* confdefs.h.  */
27510 _ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h.  */
27514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27516 #define $ac_func innocuous_$ac_func
27517
27518 /* System header to define __stub macros and hopefully few prototypes,
27519     which can conflict with char $ac_func (); below.
27520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27521     <limits.h> exists even on freestanding compilers.  */
27522
27523 #ifdef __STDC__
27524 # include <limits.h>
27525 #else
27526 # include <assert.h>
27527 #endif
27528
27529 #undef $ac_func
27530
27531 /* Override any GCC internal prototype to avoid an error.
27532    Use char because int might match the return type of a GCC
27533    builtin and then its argument prototype would still apply.  */
27534 #ifdef __cplusplus
27535 extern "C"
27536 #endif
27537 char $ac_func ();
27538 /* The GNU C library defines this for functions which it implements
27539     to always fail with ENOSYS.  Some functions are actually named
27540     something starting with __ and the normal name is an alias.  */
27541 #if defined __stub_$ac_func || defined __stub___$ac_func
27542 choke me
27543 #endif
27544
27545 int
27546 main ()
27547 {
27548 return $ac_func ();
27549   ;
27550   return 0;
27551 }
27552 _ACEOF
27553 rm -f conftest.$ac_objext conftest$ac_exeext
27554 if { (ac_try="$ac_link"
27555 case "(($ac_try" in
27556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557   *) ac_try_echo=$ac_try;;
27558 esac
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560   (eval "$ac_link") 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } && {
27567          test -z "$ac_c_werror_flag" ||
27568          test ! -s conftest.err
27569        } && test -s conftest$ac_exeext &&
27570        $as_test_x conftest$ac_exeext; then
27571   eval "$as_ac_var=yes"
27572 else
27573   echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.$ac_ext >&5
27575
27576         eval "$as_ac_var=no"
27577 fi
27578
27579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27580       conftest$ac_exeext conftest.$ac_ext
27581 fi
27582 ac_res=`eval echo '${'$as_ac_var'}'`
27583                { echo "$as_me:$LINENO: result: $ac_res" >&5
27584 echo "${ECHO_T}$ac_res" >&6; }
27585 if test `eval echo '${'$as_ac_var'}'` = yes; then
27586   cat >>confdefs.h <<_ACEOF
27587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27588 _ACEOF
27589
27590 fi
27591 done
27592
27593
27594 # If resolver functions are not in libc check for -lnsl or -lresolv.
27595 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27596 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27597 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27598   echo $ECHO_N "(cached) $ECHO_C" >&6
27599 else
27600   cat >conftest.$ac_ext <<_ACEOF
27601 /* confdefs.h.  */
27602 _ACEOF
27603 cat confdefs.h >>conftest.$ac_ext
27604 cat >>conftest.$ac_ext <<_ACEOF
27605 /* end confdefs.h.  */
27606 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27608 #define gethostbyname_r innocuous_gethostbyname_r
27609
27610 /* System header to define __stub macros and hopefully few prototypes,
27611     which can conflict with char gethostbyname_r (); below.
27612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27613     <limits.h> exists even on freestanding compilers.  */
27614
27615 #ifdef __STDC__
27616 # include <limits.h>
27617 #else
27618 # include <assert.h>
27619 #endif
27620
27621 #undef gethostbyname_r
27622
27623 /* Override any GCC internal prototype to avoid an error.
27624    Use char because int might match the return type of a GCC
27625    builtin and then its argument prototype would still apply.  */
27626 #ifdef __cplusplus
27627 extern "C"
27628 #endif
27629 char gethostbyname_r ();
27630 /* The GNU C library defines this for functions which it implements
27631     to always fail with ENOSYS.  Some functions are actually named
27632     something starting with __ and the normal name is an alias.  */
27633 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27634 choke me
27635 #endif
27636
27637 int
27638 main ()
27639 {
27640 return gethostbyname_r ();
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest.$ac_objext conftest$ac_exeext
27646 if { (ac_try="$ac_link"
27647 case "(($ac_try" in
27648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649   *) ac_try_echo=$ac_try;;
27650 esac
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652   (eval "$ac_link") 2>conftest.er1
27653   ac_status=$?
27654   grep -v '^ *+' conftest.er1 >conftest.err
27655   rm -f conftest.er1
27656   cat conftest.err >&5
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); } && {
27659          test -z "$ac_c_werror_flag" ||
27660          test ! -s conftest.err
27661        } && test -s conftest$ac_exeext &&
27662        $as_test_x conftest$ac_exeext; then
27663   ac_cv_func_gethostbyname_r=yes
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668         ac_cv_func_gethostbyname_r=no
27669 fi
27670
27671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27672       conftest$ac_exeext conftest.$ac_ext
27673 fi
27674 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27675 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27676 if test $ac_cv_func_gethostbyname_r = yes; then
27677   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27678 echo "${ECHO_T}using libc's resolver" >&6; }
27679 else
27680
27681 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27682 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27683 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27684   echo $ECHO_N "(cached) $ECHO_C" >&6
27685 else
27686   ac_check_lib_save_LIBS=$LIBS
27687 LIBS="-lnsl  $LIBS"
27688 cat >conftest.$ac_ext <<_ACEOF
27689 /* confdefs.h.  */
27690 _ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h.  */
27694
27695 /* Override any GCC internal prototype to avoid an error.
27696    Use char because int might match the return type of a GCC
27697    builtin and then its argument prototype would still apply.  */
27698 #ifdef __cplusplus
27699 extern "C"
27700 #endif
27701 char gethostbyname_r ();
27702 int
27703 main ()
27704 {
27705 return gethostbyname_r ();
27706   ;
27707   return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext conftest$ac_exeext
27711 if { (ac_try="$ac_link"
27712 case "(($ac_try" in
27713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714   *) ac_try_echo=$ac_try;;
27715 esac
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717   (eval "$ac_link") 2>conftest.er1
27718   ac_status=$?
27719   grep -v '^ *+' conftest.er1 >conftest.err
27720   rm -f conftest.er1
27721   cat conftest.err >&5
27722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723   (exit $ac_status); } && {
27724          test -z "$ac_c_werror_flag" ||
27725          test ! -s conftest.err
27726        } && test -s conftest$ac_exeext &&
27727        $as_test_x conftest$ac_exeext; then
27728   ac_cv_lib_nsl_gethostbyname_r=yes
27729 else
27730   echo "$as_me: failed program was:" >&5
27731 sed 's/^/| /' conftest.$ac_ext >&5
27732
27733         ac_cv_lib_nsl_gethostbyname_r=no
27734 fi
27735
27736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27737       conftest$ac_exeext conftest.$ac_ext
27738 LIBS=$ac_check_lib_save_LIBS
27739 fi
27740 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27741 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27742 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27743   cat >>confdefs.h <<_ACEOF
27744 #define HAVE_LIBNSL 1
27745 _ACEOF
27746
27747   LIBS="-lnsl $LIBS"
27748
27749 fi
27750
27751
27752 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27753 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27754 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27755   echo $ECHO_N "(cached) $ECHO_C" >&6
27756 else
27757   ac_check_lib_save_LIBS=$LIBS
27758 LIBS="-lresolv  $LIBS"
27759 cat >conftest.$ac_ext <<_ACEOF
27760 /* confdefs.h.  */
27761 _ACEOF
27762 cat confdefs.h >>conftest.$ac_ext
27763 cat >>conftest.$ac_ext <<_ACEOF
27764 /* end confdefs.h.  */
27765
27766 /* Override any GCC internal prototype to avoid an error.
27767    Use char because int might match the return type of a GCC
27768    builtin and then its argument prototype would still apply.  */
27769 #ifdef __cplusplus
27770 extern "C"
27771 #endif
27772 char gethostbyname_r ();
27773 int
27774 main ()
27775 {
27776 return gethostbyname_r ();
27777   ;
27778   return 0;
27779 }
27780 _ACEOF
27781 rm -f conftest.$ac_objext conftest$ac_exeext
27782 if { (ac_try="$ac_link"
27783 case "(($ac_try" in
27784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785   *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788   (eval "$ac_link") 2>conftest.er1
27789   ac_status=$?
27790   grep -v '^ *+' conftest.er1 >conftest.err
27791   rm -f conftest.er1
27792   cat conftest.err >&5
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); } && {
27795          test -z "$ac_c_werror_flag" ||
27796          test ! -s conftest.err
27797        } && test -s conftest$ac_exeext &&
27798        $as_test_x conftest$ac_exeext; then
27799   ac_cv_lib_resolv_gethostbyname_r=yes
27800 else
27801   echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27803
27804         ac_cv_lib_resolv_gethostbyname_r=no
27805 fi
27806
27807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27808       conftest$ac_exeext conftest.$ac_ext
27809 LIBS=$ac_check_lib_save_LIBS
27810 fi
27811 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27812 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27813 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27814   cat >>confdefs.h <<_ACEOF
27815 #define HAVE_LIBRESOLV 1
27816 _ACEOF
27817
27818   LIBS="-lresolv $LIBS"
27819
27820 fi
27821
27822 fi
27823
27824
27825
27826
27827
27828 for ac_func in inet_pton
27829 do
27830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27834   echo $ECHO_N "(cached) $ECHO_C" >&6
27835 else
27836   cat >conftest.$ac_ext <<_ACEOF
27837 /* confdefs.h.  */
27838 _ACEOF
27839 cat confdefs.h >>conftest.$ac_ext
27840 cat >>conftest.$ac_ext <<_ACEOF
27841 /* end confdefs.h.  */
27842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27844 #define $ac_func innocuous_$ac_func
27845
27846 /* System header to define __stub macros and hopefully few prototypes,
27847     which can conflict with char $ac_func (); below.
27848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27849     <limits.h> exists even on freestanding compilers.  */
27850
27851 #ifdef __STDC__
27852 # include <limits.h>
27853 #else
27854 # include <assert.h>
27855 #endif
27856
27857 #undef $ac_func
27858
27859 /* Override any GCC internal prototype to avoid an error.
27860    Use char because int might match the return type of a GCC
27861    builtin and then its argument prototype would still apply.  */
27862 #ifdef __cplusplus
27863 extern "C"
27864 #endif
27865 char $ac_func ();
27866 /* The GNU C library defines this for functions which it implements
27867     to always fail with ENOSYS.  Some functions are actually named
27868     something starting with __ and the normal name is an alias.  */
27869 #if defined __stub_$ac_func || defined __stub___$ac_func
27870 choke me
27871 #endif
27872
27873 int
27874 main ()
27875 {
27876 return $ac_func ();
27877   ;
27878   return 0;
27879 }
27880 _ACEOF
27881 rm -f conftest.$ac_objext conftest$ac_exeext
27882 if { (ac_try="$ac_link"
27883 case "(($ac_try" in
27884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885   *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888   (eval "$ac_link") 2>conftest.er1
27889   ac_status=$?
27890   grep -v '^ *+' conftest.er1 >conftest.err
27891   rm -f conftest.er1
27892   cat conftest.err >&5
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); } && {
27895          test -z "$ac_c_werror_flag" ||
27896          test ! -s conftest.err
27897        } && test -s conftest$ac_exeext &&
27898        $as_test_x conftest$ac_exeext; then
27899   eval "$as_ac_var=yes"
27900 else
27901   echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904         eval "$as_ac_var=no"
27905 fi
27906
27907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27908       conftest$ac_exeext conftest.$ac_ext
27909 fi
27910 ac_res=`eval echo '${'$as_ac_var'}'`
27911                { echo "$as_me:$LINENO: result: $ac_res" >&5
27912 echo "${ECHO_T}$ac_res" >&6; }
27913 if test `eval echo '${'$as_ac_var'}'` = yes; then
27914   cat >>confdefs.h <<_ACEOF
27915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27916 _ACEOF
27917  cat >>confdefs.h <<\_ACEOF
27918 #define HAVE_INET_PTON 1
27919 _ACEOF
27920
27921 fi
27922 done
27923
27924
27925 for ac_func in inet_ntop
27926 do
27927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27928 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27931   echo $ECHO_N "(cached) $ECHO_C" >&6
27932 else
27933   cat >conftest.$ac_ext <<_ACEOF
27934 /* confdefs.h.  */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h.  */
27939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27941 #define $ac_func innocuous_$ac_func
27942
27943 /* System header to define __stub macros and hopefully few prototypes,
27944     which can conflict with char $ac_func (); below.
27945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27946     <limits.h> exists even on freestanding compilers.  */
27947
27948 #ifdef __STDC__
27949 # include <limits.h>
27950 #else
27951 # include <assert.h>
27952 #endif
27953
27954 #undef $ac_func
27955
27956 /* Override any GCC internal prototype to avoid an error.
27957    Use char because int might match the return type of a GCC
27958    builtin and then its argument prototype would still apply.  */
27959 #ifdef __cplusplus
27960 extern "C"
27961 #endif
27962 char $ac_func ();
27963 /* The GNU C library defines this for functions which it implements
27964     to always fail with ENOSYS.  Some functions are actually named
27965     something starting with __ and the normal name is an alias.  */
27966 #if defined __stub_$ac_func || defined __stub___$ac_func
27967 choke me
27968 #endif
27969
27970 int
27971 main ()
27972 {
27973 return $ac_func ();
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 rm -f conftest.$ac_objext conftest$ac_exeext
27979 if { (ac_try="$ac_link"
27980 case "(($ac_try" in
27981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982   *) ac_try_echo=$ac_try;;
27983 esac
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985   (eval "$ac_link") 2>conftest.er1
27986   ac_status=$?
27987   grep -v '^ *+' conftest.er1 >conftest.err
27988   rm -f conftest.er1
27989   cat conftest.err >&5
27990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991   (exit $ac_status); } && {
27992          test -z "$ac_c_werror_flag" ||
27993          test ! -s conftest.err
27994        } && test -s conftest$ac_exeext &&
27995        $as_test_x conftest$ac_exeext; then
27996   eval "$as_ac_var=yes"
27997 else
27998   echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001         eval "$as_ac_var=no"
28002 fi
28003
28004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28005       conftest$ac_exeext conftest.$ac_ext
28006 fi
28007 ac_res=`eval echo '${'$as_ac_var'}'`
28008                { echo "$as_me:$LINENO: result: $ac_res" >&5
28009 echo "${ECHO_T}$ac_res" >&6; }
28010 if test `eval echo '${'$as_ac_var'}'` = yes; then
28011   cat >>confdefs.h <<_ACEOF
28012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28013 _ACEOF
28014  cat >>confdefs.h <<\_ACEOF
28015 #define HAVE_INET_NTOP 1
28016 _ACEOF
28017
28018 fi
28019 done
28020
28021
28022 for ac_func in gethostbyname2
28023 do
28024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28028   echo $ECHO_N "(cached) $ECHO_C" >&6
28029 else
28030   cat >conftest.$ac_ext <<_ACEOF
28031 /* confdefs.h.  */
28032 _ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h.  */
28036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28038 #define $ac_func innocuous_$ac_func
28039
28040 /* System header to define __stub macros and hopefully few prototypes,
28041     which can conflict with char $ac_func (); below.
28042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28043     <limits.h> exists even on freestanding compilers.  */
28044
28045 #ifdef __STDC__
28046 # include <limits.h>
28047 #else
28048 # include <assert.h>
28049 #endif
28050
28051 #undef $ac_func
28052
28053 /* Override any GCC internal prototype to avoid an error.
28054    Use char because int might match the return type of a GCC
28055    builtin and then its argument prototype would still apply.  */
28056 #ifdef __cplusplus
28057 extern "C"
28058 #endif
28059 char $ac_func ();
28060 /* The GNU C library defines this for functions which it implements
28061     to always fail with ENOSYS.  Some functions are actually named
28062     something starting with __ and the normal name is an alias.  */
28063 #if defined __stub_$ac_func || defined __stub___$ac_func
28064 choke me
28065 #endif
28066
28067 int
28068 main ()
28069 {
28070 return $ac_func ();
28071   ;
28072   return 0;
28073 }
28074 _ACEOF
28075 rm -f conftest.$ac_objext conftest$ac_exeext
28076 if { (ac_try="$ac_link"
28077 case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_link") 2>conftest.er1
28083   ac_status=$?
28084   grep -v '^ *+' conftest.er1 >conftest.err
28085   rm -f conftest.er1
28086   cat conftest.err >&5
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); } && {
28089          test -z "$ac_c_werror_flag" ||
28090          test ! -s conftest.err
28091        } && test -s conftest$ac_exeext &&
28092        $as_test_x conftest$ac_exeext; then
28093   eval "$as_ac_var=yes"
28094 else
28095   echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28097
28098         eval "$as_ac_var=no"
28099 fi
28100
28101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28102       conftest$ac_exeext conftest.$ac_ext
28103 fi
28104 ac_res=`eval echo '${'$as_ac_var'}'`
28105                { echo "$as_me:$LINENO: result: $ac_res" >&5
28106 echo "${ECHO_T}$ac_res" >&6; }
28107 if test `eval echo '${'$as_ac_var'}'` = yes; then
28108   cat >>confdefs.h <<_ACEOF
28109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28110 _ACEOF
28111  cat >>confdefs.h <<\_ACEOF
28112 #define HAVE_GETHOSTBYNAME2 1
28113 _ACEOF
28114
28115 fi
28116 done
28117
28118
28119 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28120 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28121 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28122   echo $ECHO_N "(cached) $ECHO_C" >&6
28123 else
28124   cat >conftest.$ac_ext <<_ACEOF
28125 /* confdefs.h.  */
28126 _ACEOF
28127 cat confdefs.h >>conftest.$ac_ext
28128 cat >>conftest.$ac_ext <<_ACEOF
28129 /* end confdefs.h.  */
28130 #include <sys/socket.h>
28131 int
28132 main ()
28133 {
28134 struct sockaddr s; s.sa_len;
28135   ;
28136   return 0;
28137 }
28138 _ACEOF
28139 rm -f conftest.$ac_objext
28140 if { (ac_try="$ac_compile"
28141 case "(($ac_try" in
28142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143   *) ac_try_echo=$ac_try;;
28144 esac
28145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28146   (eval "$ac_compile") 2>conftest.er1
28147   ac_status=$?
28148   grep -v '^ *+' conftest.er1 >conftest.err
28149   rm -f conftest.er1
28150   cat conftest.err >&5
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); } && {
28153          test -z "$ac_c_werror_flag" ||
28154          test ! -s conftest.err
28155        } && test -s conftest.$ac_objext; then
28156   ac_cv_struct_sockaddr_sa_len=yes
28157 else
28158   echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28160
28161         ac_cv_struct_sockaddr_sa_len=no
28162 fi
28163
28164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28165 fi
28166 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28167 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28168
28169  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28170
28171 cat >>confdefs.h <<\_ACEOF
28172 #define HAVE_SA_LEN 1
28173 _ACEOF
28174
28175  fi
28176
28177
28178
28179
28180
28181 for ac_func in strftime
28182 do
28183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28187   echo $ECHO_N "(cached) $ECHO_C" >&6
28188 else
28189   cat >conftest.$ac_ext <<_ACEOF
28190 /* confdefs.h.  */
28191 _ACEOF
28192 cat confdefs.h >>conftest.$ac_ext
28193 cat >>conftest.$ac_ext <<_ACEOF
28194 /* end confdefs.h.  */
28195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28197 #define $ac_func innocuous_$ac_func
28198
28199 /* System header to define __stub macros and hopefully few prototypes,
28200     which can conflict with char $ac_func (); below.
28201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28202     <limits.h> exists even on freestanding compilers.  */
28203
28204 #ifdef __STDC__
28205 # include <limits.h>
28206 #else
28207 # include <assert.h>
28208 #endif
28209
28210 #undef $ac_func
28211
28212 /* Override any GCC internal prototype to avoid an error.
28213    Use char because int might match the return type of a GCC
28214    builtin and then its argument prototype would still apply.  */
28215 #ifdef __cplusplus
28216 extern "C"
28217 #endif
28218 char $ac_func ();
28219 /* The GNU C library defines this for functions which it implements
28220     to always fail with ENOSYS.  Some functions are actually named
28221     something starting with __ and the normal name is an alias.  */
28222 #if defined __stub_$ac_func || defined __stub___$ac_func
28223 choke me
28224 #endif
28225
28226 int
28227 main ()
28228 {
28229 return $ac_func ();
28230   ;
28231   return 0;
28232 }
28233 _ACEOF
28234 rm -f conftest.$ac_objext conftest$ac_exeext
28235 if { (ac_try="$ac_link"
28236 case "(($ac_try" in
28237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238   *) ac_try_echo=$ac_try;;
28239 esac
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241   (eval "$ac_link") 2>conftest.er1
28242   ac_status=$?
28243   grep -v '^ *+' conftest.er1 >conftest.err
28244   rm -f conftest.er1
28245   cat conftest.err >&5
28246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247   (exit $ac_status); } && {
28248          test -z "$ac_c_werror_flag" ||
28249          test ! -s conftest.err
28250        } && test -s conftest$ac_exeext &&
28251        $as_test_x conftest$ac_exeext; then
28252   eval "$as_ac_var=yes"
28253 else
28254   echo "$as_me: failed program was:" >&5
28255 sed 's/^/| /' conftest.$ac_ext >&5
28256
28257         eval "$as_ac_var=no"
28258 fi
28259
28260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28261       conftest$ac_exeext conftest.$ac_ext
28262 fi
28263 ac_res=`eval echo '${'$as_ac_var'}'`
28264                { echo "$as_me:$LINENO: result: $ac_res" >&5
28265 echo "${ECHO_T}$ac_res" >&6; }
28266 if test `eval echo '${'$as_ac_var'}'` = yes; then
28267   cat >>confdefs.h <<_ACEOF
28268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28269 _ACEOF
28270
28271 else
28272   # strftime is in -lintl on SCO UNIX.
28273 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28274 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28275 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28276   echo $ECHO_N "(cached) $ECHO_C" >&6
28277 else
28278   ac_check_lib_save_LIBS=$LIBS
28279 LIBS="-lintl  $LIBS"
28280 cat >conftest.$ac_ext <<_ACEOF
28281 /* confdefs.h.  */
28282 _ACEOF
28283 cat confdefs.h >>conftest.$ac_ext
28284 cat >>conftest.$ac_ext <<_ACEOF
28285 /* end confdefs.h.  */
28286
28287 /* Override any GCC internal prototype to avoid an error.
28288    Use char because int might match the return type of a GCC
28289    builtin and then its argument prototype would still apply.  */
28290 #ifdef __cplusplus
28291 extern "C"
28292 #endif
28293 char strftime ();
28294 int
28295 main ()
28296 {
28297 return strftime ();
28298   ;
28299   return 0;
28300 }
28301 _ACEOF
28302 rm -f conftest.$ac_objext conftest$ac_exeext
28303 if { (ac_try="$ac_link"
28304 case "(($ac_try" in
28305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306   *) ac_try_echo=$ac_try;;
28307 esac
28308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309   (eval "$ac_link") 2>conftest.er1
28310   ac_status=$?
28311   grep -v '^ *+' conftest.er1 >conftest.err
28312   rm -f conftest.er1
28313   cat conftest.err >&5
28314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); } && {
28316          test -z "$ac_c_werror_flag" ||
28317          test ! -s conftest.err
28318        } && test -s conftest$ac_exeext &&
28319        $as_test_x conftest$ac_exeext; then
28320   ac_cv_lib_intl_strftime=yes
28321 else
28322   echo "$as_me: failed program was:" >&5
28323 sed 's/^/| /' conftest.$ac_ext >&5
28324
28325         ac_cv_lib_intl_strftime=no
28326 fi
28327
28328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28329       conftest$ac_exeext conftest.$ac_ext
28330 LIBS=$ac_check_lib_save_LIBS
28331 fi
28332 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28333 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28334 if test $ac_cv_lib_intl_strftime = yes; then
28335   cat >>confdefs.h <<\_ACEOF
28336 #define HAVE_STRFTIME 1
28337 _ACEOF
28338
28339 LIBS="-lintl $LIBS"
28340 fi
28341
28342 fi
28343 done
28344
28345
28346 for ac_func in vprintf
28347 do
28348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28352   echo $ECHO_N "(cached) $ECHO_C" >&6
28353 else
28354   cat >conftest.$ac_ext <<_ACEOF
28355 /* confdefs.h.  */
28356 _ACEOF
28357 cat confdefs.h >>conftest.$ac_ext
28358 cat >>conftest.$ac_ext <<_ACEOF
28359 /* end confdefs.h.  */
28360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28362 #define $ac_func innocuous_$ac_func
28363
28364 /* System header to define __stub macros and hopefully few prototypes,
28365     which can conflict with char $ac_func (); below.
28366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28367     <limits.h> exists even on freestanding compilers.  */
28368
28369 #ifdef __STDC__
28370 # include <limits.h>
28371 #else
28372 # include <assert.h>
28373 #endif
28374
28375 #undef $ac_func
28376
28377 /* Override any GCC internal prototype to avoid an error.
28378    Use char because int might match the return type of a GCC
28379    builtin and then its argument prototype would still apply.  */
28380 #ifdef __cplusplus
28381 extern "C"
28382 #endif
28383 char $ac_func ();
28384 /* The GNU C library defines this for functions which it implements
28385     to always fail with ENOSYS.  Some functions are actually named
28386     something starting with __ and the normal name is an alias.  */
28387 #if defined __stub_$ac_func || defined __stub___$ac_func
28388 choke me
28389 #endif
28390
28391 int
28392 main ()
28393 {
28394 return $ac_func ();
28395   ;
28396   return 0;
28397 }
28398 _ACEOF
28399 rm -f conftest.$ac_objext conftest$ac_exeext
28400 if { (ac_try="$ac_link"
28401 case "(($ac_try" in
28402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28403   *) ac_try_echo=$ac_try;;
28404 esac
28405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28406   (eval "$ac_link") 2>conftest.er1
28407   ac_status=$?
28408   grep -v '^ *+' conftest.er1 >conftest.err
28409   rm -f conftest.er1
28410   cat conftest.err >&5
28411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412   (exit $ac_status); } && {
28413          test -z "$ac_c_werror_flag" ||
28414          test ! -s conftest.err
28415        } && test -s conftest$ac_exeext &&
28416        $as_test_x conftest$ac_exeext; then
28417   eval "$as_ac_var=yes"
28418 else
28419   echo "$as_me: failed program was:" >&5
28420 sed 's/^/| /' conftest.$ac_ext >&5
28421
28422         eval "$as_ac_var=no"
28423 fi
28424
28425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28426       conftest$ac_exeext conftest.$ac_ext
28427 fi
28428 ac_res=`eval echo '${'$as_ac_var'}'`
28429                { echo "$as_me:$LINENO: result: $ac_res" >&5
28430 echo "${ECHO_T}$ac_res" >&6; }
28431 if test `eval echo '${'$as_ac_var'}'` = yes; then
28432   cat >>confdefs.h <<_ACEOF
28433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28434 _ACEOF
28435
28436 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28437 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28438 if test "${ac_cv_func__doprnt+set}" = set; then
28439   echo $ECHO_N "(cached) $ECHO_C" >&6
28440 else
28441   cat >conftest.$ac_ext <<_ACEOF
28442 /* confdefs.h.  */
28443 _ACEOF
28444 cat confdefs.h >>conftest.$ac_ext
28445 cat >>conftest.$ac_ext <<_ACEOF
28446 /* end confdefs.h.  */
28447 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28449 #define _doprnt innocuous__doprnt
28450
28451 /* System header to define __stub macros and hopefully few prototypes,
28452     which can conflict with char _doprnt (); below.
28453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28454     <limits.h> exists even on freestanding compilers.  */
28455
28456 #ifdef __STDC__
28457 # include <limits.h>
28458 #else
28459 # include <assert.h>
28460 #endif
28461
28462 #undef _doprnt
28463
28464 /* Override any GCC internal prototype to avoid an error.
28465    Use char because int might match the return type of a GCC
28466    builtin and then its argument prototype would still apply.  */
28467 #ifdef __cplusplus
28468 extern "C"
28469 #endif
28470 char _doprnt ();
28471 /* The GNU C library defines this for functions which it implements
28472     to always fail with ENOSYS.  Some functions are actually named
28473     something starting with __ and the normal name is an alias.  */
28474 #if defined __stub__doprnt || defined __stub____doprnt
28475 choke me
28476 #endif
28477
28478 int
28479 main ()
28480 {
28481 return _doprnt ();
28482   ;
28483   return 0;
28484 }
28485 _ACEOF
28486 rm -f conftest.$ac_objext conftest$ac_exeext
28487 if { (ac_try="$ac_link"
28488 case "(($ac_try" in
28489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28490   *) ac_try_echo=$ac_try;;
28491 esac
28492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28493   (eval "$ac_link") 2>conftest.er1
28494   ac_status=$?
28495   grep -v '^ *+' conftest.er1 >conftest.err
28496   rm -f conftest.er1
28497   cat conftest.err >&5
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); } && {
28500          test -z "$ac_c_werror_flag" ||
28501          test ! -s conftest.err
28502        } && test -s conftest$ac_exeext &&
28503        $as_test_x conftest$ac_exeext; then
28504   ac_cv_func__doprnt=yes
28505 else
28506   echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509         ac_cv_func__doprnt=no
28510 fi
28511
28512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28513       conftest$ac_exeext conftest.$ac_ext
28514 fi
28515 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28516 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28517 if test $ac_cv_func__doprnt = yes; then
28518
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_DOPRNT 1
28521 _ACEOF
28522
28523 fi
28524
28525 fi
28526 done
28527
28528
28529 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28530 # for constant arguments.  Useless!
28531 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28532 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28533 if test "${ac_cv_working_alloca_h+set}" = set; then
28534   echo $ECHO_N "(cached) $ECHO_C" >&6
28535 else
28536   cat >conftest.$ac_ext <<_ACEOF
28537 /* confdefs.h.  */
28538 _ACEOF
28539 cat confdefs.h >>conftest.$ac_ext
28540 cat >>conftest.$ac_ext <<_ACEOF
28541 /* end confdefs.h.  */
28542 #include <alloca.h>
28543 int
28544 main ()
28545 {
28546 char *p = (char *) alloca (2 * sizeof (int));
28547                           if (p) return 0;
28548   ;
28549   return 0;
28550 }
28551 _ACEOF
28552 rm -f conftest.$ac_objext conftest$ac_exeext
28553 if { (ac_try="$ac_link"
28554 case "(($ac_try" in
28555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28556   *) ac_try_echo=$ac_try;;
28557 esac
28558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28559   (eval "$ac_link") 2>conftest.er1
28560   ac_status=$?
28561   grep -v '^ *+' conftest.er1 >conftest.err
28562   rm -f conftest.er1
28563   cat conftest.err >&5
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); } && {
28566          test -z "$ac_c_werror_flag" ||
28567          test ! -s conftest.err
28568        } && test -s conftest$ac_exeext &&
28569        $as_test_x conftest$ac_exeext; then
28570   ac_cv_working_alloca_h=yes
28571 else
28572   echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28574
28575         ac_cv_working_alloca_h=no
28576 fi
28577
28578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28579       conftest$ac_exeext conftest.$ac_ext
28580 fi
28581 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28582 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28583 if test $ac_cv_working_alloca_h = yes; then
28584
28585 cat >>confdefs.h <<\_ACEOF
28586 #define HAVE_ALLOCA_H 1
28587 _ACEOF
28588
28589 fi
28590
28591 { echo "$as_me:$LINENO: checking for alloca" >&5
28592 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28593 if test "${ac_cv_func_alloca_works+set}" = set; then
28594   echo $ECHO_N "(cached) $ECHO_C" >&6
28595 else
28596   cat >conftest.$ac_ext <<_ACEOF
28597 /* confdefs.h.  */
28598 _ACEOF
28599 cat confdefs.h >>conftest.$ac_ext
28600 cat >>conftest.$ac_ext <<_ACEOF
28601 /* end confdefs.h.  */
28602 #ifdef __GNUC__
28603 # define alloca __builtin_alloca
28604 #else
28605 # ifdef _MSC_VER
28606 #  include <malloc.h>
28607 #  define alloca _alloca
28608 # else
28609 #  ifdef HAVE_ALLOCA_H
28610 #   include <alloca.h>
28611 #  else
28612 #   ifdef _AIX
28613  #pragma alloca
28614 #   else
28615 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28616 char *alloca ();
28617 #    endif
28618 #   endif
28619 #  endif
28620 # endif
28621 #endif
28622
28623 int
28624 main ()
28625 {
28626 char *p = (char *) alloca (1);
28627                                     if (p) return 0;
28628   ;
28629   return 0;
28630 }
28631 _ACEOF
28632 rm -f conftest.$ac_objext conftest$ac_exeext
28633 if { (ac_try="$ac_link"
28634 case "(($ac_try" in
28635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636   *) ac_try_echo=$ac_try;;
28637 esac
28638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639   (eval "$ac_link") 2>conftest.er1
28640   ac_status=$?
28641   grep -v '^ *+' conftest.er1 >conftest.err
28642   rm -f conftest.er1
28643   cat conftest.err >&5
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); } && {
28646          test -z "$ac_c_werror_flag" ||
28647          test ! -s conftest.err
28648        } && test -s conftest$ac_exeext &&
28649        $as_test_x conftest$ac_exeext; then
28650   ac_cv_func_alloca_works=yes
28651 else
28652   echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28654
28655         ac_cv_func_alloca_works=no
28656 fi
28657
28658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28659       conftest$ac_exeext conftest.$ac_ext
28660 fi
28661 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28662 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28663
28664 if test $ac_cv_func_alloca_works = yes; then
28665
28666 cat >>confdefs.h <<\_ACEOF
28667 #define HAVE_ALLOCA 1
28668 _ACEOF
28669
28670 else
28671   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28672 # that cause trouble.  Some versions do not even contain alloca or
28673 # contain a buggy version.  If you still want to use their alloca,
28674 # use ar to extract alloca.o from them instead of compiling alloca.c.
28675
28676 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28677
28678 cat >>confdefs.h <<\_ACEOF
28679 #define C_ALLOCA 1
28680 _ACEOF
28681
28682
28683 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28684 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28685 if test "${ac_cv_os_cray+set}" = set; then
28686   echo $ECHO_N "(cached) $ECHO_C" >&6
28687 else
28688   cat >conftest.$ac_ext <<_ACEOF
28689 /* confdefs.h.  */
28690 _ACEOF
28691 cat confdefs.h >>conftest.$ac_ext
28692 cat >>conftest.$ac_ext <<_ACEOF
28693 /* end confdefs.h.  */
28694 #if defined CRAY && ! defined CRAY2
28695 webecray
28696 #else
28697 wenotbecray
28698 #endif
28699
28700 _ACEOF
28701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28702   $EGREP "webecray" >/dev/null 2>&1; then
28703   ac_cv_os_cray=yes
28704 else
28705   ac_cv_os_cray=no
28706 fi
28707 rm -f conftest*
28708
28709 fi
28710 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28711 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28712 if test $ac_cv_os_cray = yes; then
28713   for ac_func in _getb67 GETB67 getb67; do
28714     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28718   echo $ECHO_N "(cached) $ECHO_C" >&6
28719 else
28720   cat >conftest.$ac_ext <<_ACEOF
28721 /* confdefs.h.  */
28722 _ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h.  */
28726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28728 #define $ac_func innocuous_$ac_func
28729
28730 /* System header to define __stub macros and hopefully few prototypes,
28731     which can conflict with char $ac_func (); below.
28732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28733     <limits.h> exists even on freestanding compilers.  */
28734
28735 #ifdef __STDC__
28736 # include <limits.h>
28737 #else
28738 # include <assert.h>
28739 #endif
28740
28741 #undef $ac_func
28742
28743 /* Override any GCC internal prototype to avoid an error.
28744    Use char because int might match the return type of a GCC
28745    builtin and then its argument prototype would still apply.  */
28746 #ifdef __cplusplus
28747 extern "C"
28748 #endif
28749 char $ac_func ();
28750 /* The GNU C library defines this for functions which it implements
28751     to always fail with ENOSYS.  Some functions are actually named
28752     something starting with __ and the normal name is an alias.  */
28753 #if defined __stub_$ac_func || defined __stub___$ac_func
28754 choke me
28755 #endif
28756
28757 int
28758 main ()
28759 {
28760 return $ac_func ();
28761   ;
28762   return 0;
28763 }
28764 _ACEOF
28765 rm -f conftest.$ac_objext conftest$ac_exeext
28766 if { (ac_try="$ac_link"
28767 case "(($ac_try" in
28768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769   *) ac_try_echo=$ac_try;;
28770 esac
28771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772   (eval "$ac_link") 2>conftest.er1
28773   ac_status=$?
28774   grep -v '^ *+' conftest.er1 >conftest.err
28775   rm -f conftest.er1
28776   cat conftest.err >&5
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); } && {
28779          test -z "$ac_c_werror_flag" ||
28780          test ! -s conftest.err
28781        } && test -s conftest$ac_exeext &&
28782        $as_test_x conftest$ac_exeext; then
28783   eval "$as_ac_var=yes"
28784 else
28785   echo "$as_me: failed program was:" >&5
28786 sed 's/^/| /' conftest.$ac_ext >&5
28787
28788         eval "$as_ac_var=no"
28789 fi
28790
28791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28792       conftest$ac_exeext conftest.$ac_ext
28793 fi
28794 ac_res=`eval echo '${'$as_ac_var'}'`
28795                { echo "$as_me:$LINENO: result: $ac_res" >&5
28796 echo "${ECHO_T}$ac_res" >&6; }
28797 if test `eval echo '${'$as_ac_var'}'` = yes; then
28798
28799 cat >>confdefs.h <<_ACEOF
28800 #define CRAY_STACKSEG_END $ac_func
28801 _ACEOF
28802
28803     break
28804 fi
28805
28806   done
28807 fi
28808
28809 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28810 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28811 if test "${ac_cv_c_stack_direction+set}" = set; then
28812   echo $ECHO_N "(cached) $ECHO_C" >&6
28813 else
28814   if test "$cross_compiling" = yes; then
28815   ac_cv_c_stack_direction=0
28816 else
28817   cat >conftest.$ac_ext <<_ACEOF
28818 /* confdefs.h.  */
28819 _ACEOF
28820 cat confdefs.h >>conftest.$ac_ext
28821 cat >>conftest.$ac_ext <<_ACEOF
28822 /* end confdefs.h.  */
28823 $ac_includes_default
28824 int
28825 find_stack_direction ()
28826 {
28827   static char *addr = 0;
28828   auto char dummy;
28829   if (addr == 0)
28830     {
28831       addr = &dummy;
28832       return find_stack_direction ();
28833     }
28834   else
28835     return (&dummy > addr) ? 1 : -1;
28836 }
28837
28838 int
28839 main ()
28840 {
28841   return find_stack_direction () < 0;
28842 }
28843 _ACEOF
28844 rm -f conftest$ac_exeext
28845 if { (ac_try="$ac_link"
28846 case "(($ac_try" in
28847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848   *) ac_try_echo=$ac_try;;
28849 esac
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851   (eval "$ac_link") 2>&5
28852   ac_status=$?
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28855   { (case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_try") 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; }; then
28864   ac_cv_c_stack_direction=1
28865 else
28866   echo "$as_me: program exited with status $ac_status" >&5
28867 echo "$as_me: failed program was:" >&5
28868 sed 's/^/| /' conftest.$ac_ext >&5
28869
28870 ( exit $ac_status )
28871 ac_cv_c_stack_direction=-1
28872 fi
28873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28874 fi
28875
28876
28877 fi
28878 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28879 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28880
28881 cat >>confdefs.h <<_ACEOF
28882 #define STACK_DIRECTION $ac_cv_c_stack_direction
28883 _ACEOF
28884
28885
28886 fi
28887
28888 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28889 # -lseq on Dynix/PTX, -lgen on Unixware.
28890 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28891 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28892 if test "${ac_cv_search_getmntent+set}" = set; then
28893   echo $ECHO_N "(cached) $ECHO_C" >&6
28894 else
28895   ac_func_search_save_LIBS=$LIBS
28896 cat >conftest.$ac_ext <<_ACEOF
28897 /* confdefs.h.  */
28898 _ACEOF
28899 cat confdefs.h >>conftest.$ac_ext
28900 cat >>conftest.$ac_ext <<_ACEOF
28901 /* end confdefs.h.  */
28902
28903 /* Override any GCC internal prototype to avoid an error.
28904    Use char because int might match the return type of a GCC
28905    builtin and then its argument prototype would still apply.  */
28906 #ifdef __cplusplus
28907 extern "C"
28908 #endif
28909 char getmntent ();
28910 int
28911 main ()
28912 {
28913 return getmntent ();
28914   ;
28915   return 0;
28916 }
28917 _ACEOF
28918 for ac_lib in '' sun seq gen; do
28919   if test -z "$ac_lib"; then
28920     ac_res="none required"
28921   else
28922     ac_res=-l$ac_lib
28923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28924   fi
28925   rm -f conftest.$ac_objext conftest$ac_exeext
28926 if { (ac_try="$ac_link"
28927 case "(($ac_try" in
28928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28929   *) ac_try_echo=$ac_try;;
28930 esac
28931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28932   (eval "$ac_link") 2>conftest.er1
28933   ac_status=$?
28934   grep -v '^ *+' conftest.er1 >conftest.err
28935   rm -f conftest.er1
28936   cat conftest.err >&5
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); } && {
28939          test -z "$ac_c_werror_flag" ||
28940          test ! -s conftest.err
28941        } && test -s conftest$ac_exeext &&
28942        $as_test_x conftest$ac_exeext; then
28943   ac_cv_search_getmntent=$ac_res
28944 else
28945   echo "$as_me: failed program was:" >&5
28946 sed 's/^/| /' conftest.$ac_ext >&5
28947
28948
28949 fi
28950
28951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28952       conftest$ac_exeext
28953   if test "${ac_cv_search_getmntent+set}" = set; then
28954   break
28955 fi
28956 done
28957 if test "${ac_cv_search_getmntent+set}" = set; then
28958   :
28959 else
28960   ac_cv_search_getmntent=no
28961 fi
28962 rm conftest.$ac_ext
28963 LIBS=$ac_func_search_save_LIBS
28964 fi
28965 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28966 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28967 ac_res=$ac_cv_search_getmntent
28968 if test "$ac_res" != no; then
28969   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28970   ac_cv_func_getmntent=yes
28971
28972 cat >>confdefs.h <<\_ACEOF
28973 #define HAVE_GETMNTENT 1
28974 _ACEOF
28975
28976 else
28977   ac_cv_func_getmntent=no
28978 fi
28979
28980
28981 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28982 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28983 if test "${ac_cv_func_closedir_void+set}" = set; then
28984   echo $ECHO_N "(cached) $ECHO_C" >&6
28985 else
28986   if test "$cross_compiling" = yes; then
28987   ac_cv_func_closedir_void=yes
28988 else
28989   cat >conftest.$ac_ext <<_ACEOF
28990 /* confdefs.h.  */
28991 _ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h.  */
28995 $ac_includes_default
28996 #include <$ac_header_dirent>
28997 #ifndef __cplusplus
28998 int closedir ();
28999 #endif
29000
29001 int
29002 main ()
29003 {
29004 return closedir (opendir (".")) != 0;
29005   ;
29006   return 0;
29007 }
29008 _ACEOF
29009 rm -f conftest$ac_exeext
29010 if { (ac_try="$ac_link"
29011 case "(($ac_try" in
29012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013   *) ac_try_echo=$ac_try;;
29014 esac
29015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016   (eval "$ac_link") 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29020   { (case "(($ac_try" in
29021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29022   *) ac_try_echo=$ac_try;;
29023 esac
29024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29025   (eval "$ac_try") 2>&5
29026   ac_status=$?
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); }; }; then
29029   ac_cv_func_closedir_void=no
29030 else
29031   echo "$as_me: program exited with status $ac_status" >&5
29032 echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29034
29035 ( exit $ac_status )
29036 ac_cv_func_closedir_void=yes
29037 fi
29038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29039 fi
29040
29041
29042 fi
29043 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29044 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29045 if test $ac_cv_func_closedir_void = yes; then
29046
29047 cat >>confdefs.h <<\_ACEOF
29048 #define CLOSEDIR_VOID 1
29049 _ACEOF
29050
29051 fi
29052
29053 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29054 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29055 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29056   echo $ECHO_N "(cached) $ECHO_C" >&6
29057 else
29058   if test "$cross_compiling" = yes; then
29059   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29060 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29061    { (exit 1); exit 1; }; }
29062 else
29063   cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h.  */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h.  */
29069 $ac_includes_default
29070 int
29071 main ()
29072 {
29073 /* If this system has a BSD-style setpgrp which takes arguments,
29074   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29075   exit successfully. */
29076   return setpgrp (1,1) != -1;
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest$ac_exeext
29082 if { (ac_try="$ac_link"
29083 case "(($ac_try" in
29084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085   *) ac_try_echo=$ac_try;;
29086 esac
29087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088   (eval "$ac_link") 2>&5
29089   ac_status=$?
29090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29092   { (case "(($ac_try" in
29093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094   *) ac_try_echo=$ac_try;;
29095 esac
29096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097   (eval "$ac_try") 2>&5
29098   ac_status=$?
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); }; }; then
29101   ac_cv_func_setpgrp_void=no
29102 else
29103   echo "$as_me: program exited with status $ac_status" >&5
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29106
29107 ( exit $ac_status )
29108 ac_cv_func_setpgrp_void=yes
29109 fi
29110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29111 fi
29112
29113
29114 fi
29115 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29116 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29117 if test $ac_cv_func_setpgrp_void = yes; then
29118
29119 cat >>confdefs.h <<\_ACEOF
29120 #define SETPGRP_VOID 1
29121 _ACEOF
29122
29123 fi
29124                       # AC_FUNC_FNMATCH    dnl use local version
29125
29126
29127 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29128 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29129 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29130   echo $ECHO_N "(cached) $ECHO_C" >&6
29131 else
29132   ac_check_lib_save_LIBS=$LIBS
29133 LIBS="-lintl  $LIBS"
29134 cat >conftest.$ac_ext <<_ACEOF
29135 /* confdefs.h.  */
29136 _ACEOF
29137 cat confdefs.h >>conftest.$ac_ext
29138 cat >>conftest.$ac_ext <<_ACEOF
29139 /* end confdefs.h.  */
29140
29141 /* Override any GCC internal prototype to avoid an error.
29142    Use char because int might match the return type of a GCC
29143    builtin and then its argument prototype would still apply.  */
29144 #ifdef __cplusplus
29145 extern "C"
29146 #endif
29147 char gettext ();
29148 int
29149 main ()
29150 {
29151 return gettext ();
29152   ;
29153   return 0;
29154 }
29155 _ACEOF
29156 rm -f conftest.$ac_objext conftest$ac_exeext
29157 if { (ac_try="$ac_link"
29158 case "(($ac_try" in
29159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160   *) ac_try_echo=$ac_try;;
29161 esac
29162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163   (eval "$ac_link") 2>conftest.er1
29164   ac_status=$?
29165   grep -v '^ *+' conftest.er1 >conftest.err
29166   rm -f conftest.er1
29167   cat conftest.err >&5
29168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169   (exit $ac_status); } && {
29170          test -z "$ac_c_werror_flag" ||
29171          test ! -s conftest.err
29172        } && test -s conftest$ac_exeext &&
29173        $as_test_x conftest$ac_exeext; then
29174   ac_cv_lib_intl_gettext=yes
29175 else
29176   echo "$as_me: failed program was:" >&5
29177 sed 's/^/| /' conftest.$ac_ext >&5
29178
29179         ac_cv_lib_intl_gettext=no
29180 fi
29181
29182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29183       conftest$ac_exeext conftest.$ac_ext
29184 LIBS=$ac_check_lib_save_LIBS
29185 fi
29186 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29187 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29188 if test $ac_cv_lib_intl_gettext = yes; then
29189   LIBS="$LIBS -lintl"
29190 fi
29191
29192
29193
29194
29195 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29196 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29197 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29198   echo $ECHO_N "(cached) $ECHO_C" >&6
29199 else
29200   ac_check_lib_save_LIBS=$LIBS
29201 LIBS="-lsun  $LIBS"
29202 cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208
29209 /* Override any GCC internal prototype to avoid an error.
29210    Use char because int might match the return type of a GCC
29211    builtin and then its argument prototype would still apply.  */
29212 #ifdef __cplusplus
29213 extern "C"
29214 #endif
29215 char getpwnam ();
29216 int
29217 main ()
29218 {
29219 return getpwnam ();
29220   ;
29221   return 0;
29222 }
29223 _ACEOF
29224 rm -f conftest.$ac_objext conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_link") 2>conftest.er1
29232   ac_status=$?
29233   grep -v '^ *+' conftest.er1 >conftest.err
29234   rm -f conftest.er1
29235   cat conftest.err >&5
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); } && {
29238          test -z "$ac_c_werror_flag" ||
29239          test ! -s conftest.err
29240        } && test -s conftest$ac_exeext &&
29241        $as_test_x conftest$ac_exeext; then
29242   ac_cv_lib_sun_getpwnam=yes
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247         ac_cv_lib_sun_getpwnam=no
29248 fi
29249
29250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29251       conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29253 fi
29254 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29255 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29256 if test $ac_cv_lib_sun_getpwnam = yes; then
29257   cat >>confdefs.h <<_ACEOF
29258 #define HAVE_LIBSUN 1
29259 _ACEOF
29260
29261   LIBS="-lsun $LIBS"
29262
29263 fi
29264
29265
29266
29267 for ac_header in zlib.h
29268 do
29269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29271   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274   echo $ECHO_N "(cached) $ECHO_C" >&6
29275 fi
29276 ac_res=`eval echo '${'$as_ac_Header'}'`
29277                { echo "$as_me:$LINENO: result: $ac_res" >&5
29278 echo "${ECHO_T}$ac_res" >&6; }
29279 else
29280   # Is the header compilable?
29281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29283 cat >conftest.$ac_ext <<_ACEOF
29284 /* confdefs.h.  */
29285 _ACEOF
29286 cat confdefs.h >>conftest.$ac_ext
29287 cat >>conftest.$ac_ext <<_ACEOF
29288 /* end confdefs.h.  */
29289 $ac_includes_default
29290 #include <$ac_header>
29291 _ACEOF
29292 rm -f conftest.$ac_objext
29293 if { (ac_try="$ac_compile"
29294 case "(($ac_try" in
29295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296   *) ac_try_echo=$ac_try;;
29297 esac
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299   (eval "$ac_compile") 2>conftest.er1
29300   ac_status=$?
29301   grep -v '^ *+' conftest.er1 >conftest.err
29302   rm -f conftest.er1
29303   cat conftest.err >&5
29304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305   (exit $ac_status); } && {
29306          test -z "$ac_c_werror_flag" ||
29307          test ! -s conftest.err
29308        } && test -s conftest.$ac_objext; then
29309   ac_header_compiler=yes
29310 else
29311   echo "$as_me: failed program was:" >&5
29312 sed 's/^/| /' conftest.$ac_ext >&5
29313
29314         ac_header_compiler=no
29315 fi
29316
29317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29319 echo "${ECHO_T}$ac_header_compiler" >&6; }
29320
29321 # Is the header present?
29322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29324 cat >conftest.$ac_ext <<_ACEOF
29325 /* confdefs.h.  */
29326 _ACEOF
29327 cat confdefs.h >>conftest.$ac_ext
29328 cat >>conftest.$ac_ext <<_ACEOF
29329 /* end confdefs.h.  */
29330 #include <$ac_header>
29331 _ACEOF
29332 if { (ac_try="$ac_cpp conftest.$ac_ext"
29333 case "(($ac_try" in
29334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335   *) ac_try_echo=$ac_try;;
29336 esac
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29339   ac_status=$?
29340   grep -v '^ *+' conftest.er1 >conftest.err
29341   rm -f conftest.er1
29342   cat conftest.err >&5
29343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29344   (exit $ac_status); } >/dev/null && {
29345          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29346          test ! -s conftest.err
29347        }; then
29348   ac_header_preproc=yes
29349 else
29350   echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29352
29353   ac_header_preproc=no
29354 fi
29355
29356 rm -f conftest.err conftest.$ac_ext
29357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29358 echo "${ECHO_T}$ac_header_preproc" >&6; }
29359
29360 # So?  What about this header?
29361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29362   yes:no: )
29363     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29367     ac_header_preproc=yes
29368     ;;
29369   no:yes:* )
29370     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29372     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29373 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29374     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29376     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29377 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29380     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29382
29383     ;;
29384 esac
29385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388   echo $ECHO_N "(cached) $ECHO_C" >&6
29389 else
29390   eval "$as_ac_Header=\$ac_header_preproc"
29391 fi
29392 ac_res=`eval echo '${'$as_ac_Header'}'`
29393                { echo "$as_me:$LINENO: result: $ac_res" >&5
29394 echo "${ECHO_T}$ac_res" >&6; }
29395
29396 fi
29397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29398   cat >>confdefs.h <<_ACEOF
29399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29400 _ACEOF
29401
29402 fi
29403
29404 done
29405
29406 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29407 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29408 if test "${ac_cv_lib_z_deflate+set}" = set; then
29409   echo $ECHO_N "(cached) $ECHO_C" >&6
29410 else
29411   ac_check_lib_save_LIBS=$LIBS
29412 LIBS="-lz  $LIBS"
29413 cat >conftest.$ac_ext <<_ACEOF
29414 /* confdefs.h.  */
29415 _ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h.  */
29419
29420 /* Override any GCC internal prototype to avoid an error.
29421    Use char because int might match the return type of a GCC
29422    builtin and then its argument prototype would still apply.  */
29423 #ifdef __cplusplus
29424 extern "C"
29425 #endif
29426 char deflate ();
29427 int
29428 main ()
29429 {
29430 return deflate ();
29431   ;
29432   return 0;
29433 }
29434 _ACEOF
29435 rm -f conftest.$ac_objext conftest$ac_exeext
29436 if { (ac_try="$ac_link"
29437 case "(($ac_try" in
29438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439   *) ac_try_echo=$ac_try;;
29440 esac
29441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442   (eval "$ac_link") 2>conftest.er1
29443   ac_status=$?
29444   grep -v '^ *+' conftest.er1 >conftest.err
29445   rm -f conftest.er1
29446   cat conftest.err >&5
29447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448   (exit $ac_status); } && {
29449          test -z "$ac_c_werror_flag" ||
29450          test ! -s conftest.err
29451        } && test -s conftest$ac_exeext &&
29452        $as_test_x conftest$ac_exeext; then
29453   ac_cv_lib_z_deflate=yes
29454 else
29455   echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29457
29458         ac_cv_lib_z_deflate=no
29459 fi
29460
29461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29462       conftest$ac_exeext conftest.$ac_ext
29463 LIBS=$ac_check_lib_save_LIBS
29464 fi
29465 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29466 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29467 if test $ac_cv_lib_z_deflate = yes; then
29468   FDLIBS="-lz"
29469 fi
29470
29471 have_zlib=no
29472 if test x$FDLIBS = x-lz; then
29473   cat >>confdefs.h <<\_ACEOF
29474 #define HAVE_LIBZ 1
29475 _ACEOF
29476
29477   have_zlib=yes
29478 fi
29479
29480 #
29481 # Check for ACL libraries
29482 #
29483 have_acl=no
29484 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29485   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29486 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29487 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29488   echo $ECHO_N "(cached) $ECHO_C" >&6
29489 fi
29490 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29491 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29492 else
29493   # Is the header compilable?
29494 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29495 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29496 cat >conftest.$ac_ext <<_ACEOF
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502 $ac_includes_default
29503 #include <sys/acl.h>
29504 _ACEOF
29505 rm -f conftest.$ac_objext
29506 if { (ac_try="$ac_compile"
29507 case "(($ac_try" in
29508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509   *) ac_try_echo=$ac_try;;
29510 esac
29511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512   (eval "$ac_compile") 2>conftest.er1
29513   ac_status=$?
29514   grep -v '^ *+' conftest.er1 >conftest.err
29515   rm -f conftest.er1
29516   cat conftest.err >&5
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); } && {
29519          test -z "$ac_c_werror_flag" ||
29520          test ! -s conftest.err
29521        } && test -s conftest.$ac_objext; then
29522   ac_header_compiler=yes
29523 else
29524   echo "$as_me: failed program was:" >&5
29525 sed 's/^/| /' conftest.$ac_ext >&5
29526
29527         ac_header_compiler=no
29528 fi
29529
29530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29532 echo "${ECHO_T}$ac_header_compiler" >&6; }
29533
29534 # Is the header present?
29535 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29536 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29537 cat >conftest.$ac_ext <<_ACEOF
29538 /* confdefs.h.  */
29539 _ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h.  */
29543 #include <sys/acl.h>
29544 _ACEOF
29545 if { (ac_try="$ac_cpp conftest.$ac_ext"
29546 case "(($ac_try" in
29547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29548   *) ac_try_echo=$ac_try;;
29549 esac
29550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29552   ac_status=$?
29553   grep -v '^ *+' conftest.er1 >conftest.err
29554   rm -f conftest.er1
29555   cat conftest.err >&5
29556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557   (exit $ac_status); } >/dev/null && {
29558          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29559          test ! -s conftest.err
29560        }; then
29561   ac_header_preproc=yes
29562 else
29563   echo "$as_me: failed program was:" >&5
29564 sed 's/^/| /' conftest.$ac_ext >&5
29565
29566   ac_header_preproc=no
29567 fi
29568
29569 rm -f conftest.err conftest.$ac_ext
29570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29571 echo "${ECHO_T}$ac_header_preproc" >&6; }
29572
29573 # So?  What about this header?
29574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29575   yes:no: )
29576     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29577 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29578     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29579 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29580     ac_header_preproc=yes
29581     ;;
29582   no:yes:* )
29583     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29584 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29585     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29586 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29587     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29588 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29589     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29590 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29591     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29592 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29593     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29594 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29595
29596     ;;
29597 esac
29598 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29599 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29600 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29601   echo $ECHO_N "(cached) $ECHO_C" >&6
29602 else
29603   ac_cv_header_sys_acl_h=$ac_header_preproc
29604 fi
29605 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29606 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29607
29608 fi
29609
29610
29611 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29612 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29613 if test "${ac_cv_func_acl_get_file+set}" = set; then
29614   echo $ECHO_N "(cached) $ECHO_C" >&6
29615 else
29616   cat >conftest.$ac_ext <<_ACEOF
29617 /* confdefs.h.  */
29618 _ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h.  */
29622 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29624 #define acl_get_file innocuous_acl_get_file
29625
29626 /* System header to define __stub macros and hopefully few prototypes,
29627     which can conflict with char acl_get_file (); below.
29628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29629     <limits.h> exists even on freestanding compilers.  */
29630
29631 #ifdef __STDC__
29632 # include <limits.h>
29633 #else
29634 # include <assert.h>
29635 #endif
29636
29637 #undef acl_get_file
29638
29639 /* Override any GCC internal prototype to avoid an error.
29640    Use char because int might match the return type of a GCC
29641    builtin and then its argument prototype would still apply.  */
29642 #ifdef __cplusplus
29643 extern "C"
29644 #endif
29645 char acl_get_file ();
29646 /* The GNU C library defines this for functions which it implements
29647     to always fail with ENOSYS.  Some functions are actually named
29648     something starting with __ and the normal name is an alias.  */
29649 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29650 choke me
29651 #endif
29652
29653 int
29654 main ()
29655 {
29656 return acl_get_file ();
29657   ;
29658   return 0;
29659 }
29660 _ACEOF
29661 rm -f conftest.$ac_objext conftest$ac_exeext
29662 if { (ac_try="$ac_link"
29663 case "(($ac_try" in
29664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665   *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668   (eval "$ac_link") 2>conftest.er1
29669   ac_status=$?
29670   grep -v '^ *+' conftest.er1 >conftest.err
29671   rm -f conftest.er1
29672   cat conftest.err >&5
29673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674   (exit $ac_status); } && {
29675          test -z "$ac_c_werror_flag" ||
29676          test ! -s conftest.err
29677        } && test -s conftest$ac_exeext &&
29678        $as_test_x conftest$ac_exeext; then
29679   ac_cv_func_acl_get_file=yes
29680 else
29681   echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29683
29684         ac_cv_func_acl_get_file=no
29685 fi
29686
29687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29688       conftest$ac_exeext conftest.$ac_ext
29689 fi
29690 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29691 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29692 if test $ac_cv_func_acl_get_file = yes; then
29693   have_acl=yes
29694 else
29695   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29696 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29697 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29698   echo $ECHO_N "(cached) $ECHO_C" >&6
29699 else
29700   ac_check_lib_save_LIBS=$LIBS
29701 LIBS="-lacl  $LIBS"
29702 cat >conftest.$ac_ext <<_ACEOF
29703 /* confdefs.h.  */
29704 _ACEOF
29705 cat confdefs.h >>conftest.$ac_ext
29706 cat >>conftest.$ac_ext <<_ACEOF
29707 /* end confdefs.h.  */
29708
29709 /* Override any GCC internal prototype to avoid an error.
29710    Use char because int might match the return type of a GCC
29711    builtin and then its argument prototype would still apply.  */
29712 #ifdef __cplusplus
29713 extern "C"
29714 #endif
29715 char acl_get_file ();
29716 int
29717 main ()
29718 {
29719 return acl_get_file ();
29720   ;
29721   return 0;
29722 }
29723 _ACEOF
29724 rm -f conftest.$ac_objext conftest$ac_exeext
29725 if { (ac_try="$ac_link"
29726 case "(($ac_try" in
29727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728   *) ac_try_echo=$ac_try;;
29729 esac
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731   (eval "$ac_link") 2>conftest.er1
29732   ac_status=$?
29733   grep -v '^ *+' conftest.er1 >conftest.err
29734   rm -f conftest.er1
29735   cat conftest.err >&5
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); } && {
29738          test -z "$ac_c_werror_flag" ||
29739          test ! -s conftest.err
29740        } && test -s conftest$ac_exeext &&
29741        $as_test_x conftest$ac_exeext; then
29742   ac_cv_lib_acl_acl_get_file=yes
29743 else
29744   echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29746
29747         ac_cv_lib_acl_acl_get_file=no
29748 fi
29749
29750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29751       conftest$ac_exeext conftest.$ac_ext
29752 LIBS=$ac_check_lib_save_LIBS
29753 fi
29754 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29755 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29756 if test $ac_cv_lib_acl_acl_get_file = yes; then
29757   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29758 else
29759   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29760 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29761 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29762   echo $ECHO_N "(cached) $ECHO_C" >&6
29763 else
29764   ac_check_lib_save_LIBS=$LIBS
29765 LIBS="-lsec  $LIBS"
29766 cat >conftest.$ac_ext <<_ACEOF
29767 /* confdefs.h.  */
29768 _ACEOF
29769 cat confdefs.h >>conftest.$ac_ext
29770 cat >>conftest.$ac_ext <<_ACEOF
29771 /* end confdefs.h.  */
29772
29773 /* Override any GCC internal prototype to avoid an error.
29774    Use char because int might match the return type of a GCC
29775    builtin and then its argument prototype would still apply.  */
29776 #ifdef __cplusplus
29777 extern "C"
29778 #endif
29779 char acltotext ();
29780 int
29781 main ()
29782 {
29783 return acltotext ();
29784   ;
29785   return 0;
29786 }
29787 _ACEOF
29788 rm -f conftest.$ac_objext conftest$ac_exeext
29789 if { (ac_try="$ac_link"
29790 case "(($ac_try" in
29791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29792   *) ac_try_echo=$ac_try;;
29793 esac
29794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29795   (eval "$ac_link") 2>conftest.er1
29796   ac_status=$?
29797   grep -v '^ *+' conftest.er1 >conftest.err
29798   rm -f conftest.er1
29799   cat conftest.err >&5
29800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); } && {
29802          test -z "$ac_c_werror_flag" ||
29803          test ! -s conftest.err
29804        } && test -s conftest$ac_exeext &&
29805        $as_test_x conftest$ac_exeext; then
29806   ac_cv_lib_sec_acltotext=yes
29807 else
29808   echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29810
29811         ac_cv_lib_sec_acltotext=no
29812 fi
29813
29814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29815       conftest$ac_exeext conftest.$ac_ext
29816 LIBS=$ac_check_lib_save_LIBS
29817 fi
29818 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29819 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29820 if test $ac_cv_lib_sec_acltotext = yes; then
29821   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29822 fi
29823
29824
29825 fi
29826
29827
29828 fi
29829
29830 if test $have_acl = yes; then
29831    cat >>confdefs.h <<\_ACEOF
29832 #define HAVE_ACL 1
29833 _ACEOF
29834
29835 fi
29836
29837 PTHREAD_LIB=""
29838 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29839 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29840 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29841   echo $ECHO_N "(cached) $ECHO_C" >&6
29842 else
29843   ac_check_lib_save_LIBS=$LIBS
29844 LIBS="-lpthread  $LIBS"
29845 cat >conftest.$ac_ext <<_ACEOF
29846 /* confdefs.h.  */
29847 _ACEOF
29848 cat confdefs.h >>conftest.$ac_ext
29849 cat >>conftest.$ac_ext <<_ACEOF
29850 /* end confdefs.h.  */
29851
29852 /* Override any GCC internal prototype to avoid an error.
29853    Use char because int might match the return type of a GCC
29854    builtin and then its argument prototype would still apply.  */
29855 #ifdef __cplusplus
29856 extern "C"
29857 #endif
29858 char pthread_create ();
29859 int
29860 main ()
29861 {
29862 return pthread_create ();
29863   ;
29864   return 0;
29865 }
29866 _ACEOF
29867 rm -f conftest.$ac_objext conftest$ac_exeext
29868 if { (ac_try="$ac_link"
29869 case "(($ac_try" in
29870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871   *) ac_try_echo=$ac_try;;
29872 esac
29873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874   (eval "$ac_link") 2>conftest.er1
29875   ac_status=$?
29876   grep -v '^ *+' conftest.er1 >conftest.err
29877   rm -f conftest.er1
29878   cat conftest.err >&5
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); } && {
29881          test -z "$ac_c_werror_flag" ||
29882          test ! -s conftest.err
29883        } && test -s conftest$ac_exeext &&
29884        $as_test_x conftest$ac_exeext; then
29885   ac_cv_lib_pthread_pthread_create=yes
29886 else
29887   echo "$as_me: failed program was:" >&5
29888 sed 's/^/| /' conftest.$ac_ext >&5
29889
29890         ac_cv_lib_pthread_pthread_create=no
29891 fi
29892
29893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29894       conftest$ac_exeext conftest.$ac_ext
29895 LIBS=$ac_check_lib_save_LIBS
29896 fi
29897 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29898 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29899 if test $ac_cv_lib_pthread_pthread_create = yes; then
29900   PTHREAD_LIB="-lpthread"
29901 else
29902   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29903 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29904 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29905   echo $ECHO_N "(cached) $ECHO_C" >&6
29906 else
29907   ac_check_lib_save_LIBS=$LIBS
29908 LIBS="-lpthreads  $LIBS"
29909 cat >conftest.$ac_ext <<_ACEOF
29910 /* confdefs.h.  */
29911 _ACEOF
29912 cat confdefs.h >>conftest.$ac_ext
29913 cat >>conftest.$ac_ext <<_ACEOF
29914 /* end confdefs.h.  */
29915
29916 /* Override any GCC internal prototype to avoid an error.
29917    Use char because int might match the return type of a GCC
29918    builtin and then its argument prototype would still apply.  */
29919 #ifdef __cplusplus
29920 extern "C"
29921 #endif
29922 char pthread_create ();
29923 int
29924 main ()
29925 {
29926 return pthread_create ();
29927   ;
29928   return 0;
29929 }
29930 _ACEOF
29931 rm -f conftest.$ac_objext conftest$ac_exeext
29932 if { (ac_try="$ac_link"
29933 case "(($ac_try" in
29934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29935   *) ac_try_echo=$ac_try;;
29936 esac
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938   (eval "$ac_link") 2>conftest.er1
29939   ac_status=$?
29940   grep -v '^ *+' conftest.er1 >conftest.err
29941   rm -f conftest.er1
29942   cat conftest.err >&5
29943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); } && {
29945          test -z "$ac_c_werror_flag" ||
29946          test ! -s conftest.err
29947        } && test -s conftest$ac_exeext &&
29948        $as_test_x conftest$ac_exeext; then
29949   ac_cv_lib_pthreads_pthread_create=yes
29950 else
29951   echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29953
29954         ac_cv_lib_pthreads_pthread_create=no
29955 fi
29956
29957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29958       conftest$ac_exeext conftest.$ac_ext
29959 LIBS=$ac_check_lib_save_LIBS
29960 fi
29961 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29962 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29963 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29964   PTHREAD_LIB="-lpthreads"
29965 else
29966   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29967 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29968 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29969   echo $ECHO_N "(cached) $ECHO_C" >&6
29970 else
29971   ac_check_lib_save_LIBS=$LIBS
29972 LIBS="-lc_r  $LIBS"
29973 cat >conftest.$ac_ext <<_ACEOF
29974 /* confdefs.h.  */
29975 _ACEOF
29976 cat confdefs.h >>conftest.$ac_ext
29977 cat >>conftest.$ac_ext <<_ACEOF
29978 /* end confdefs.h.  */
29979
29980 /* Override any GCC internal prototype to avoid an error.
29981    Use char because int might match the return type of a GCC
29982    builtin and then its argument prototype would still apply.  */
29983 #ifdef __cplusplus
29984 extern "C"
29985 #endif
29986 char pthread_create ();
29987 int
29988 main ()
29989 {
29990 return pthread_create ();
29991   ;
29992   return 0;
29993 }
29994 _ACEOF
29995 rm -f conftest.$ac_objext conftest$ac_exeext
29996 if { (ac_try="$ac_link"
29997 case "(($ac_try" in
29998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29999   *) ac_try_echo=$ac_try;;
30000 esac
30001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30002   (eval "$ac_link") 2>conftest.er1
30003   ac_status=$?
30004   grep -v '^ *+' conftest.er1 >conftest.err
30005   rm -f conftest.er1
30006   cat conftest.err >&5
30007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); } && {
30009          test -z "$ac_c_werror_flag" ||
30010          test ! -s conftest.err
30011        } && test -s conftest$ac_exeext &&
30012        $as_test_x conftest$ac_exeext; then
30013   ac_cv_lib_c_r_pthread_create=yes
30014 else
30015   echo "$as_me: failed program was:" >&5
30016 sed 's/^/| /' conftest.$ac_ext >&5
30017
30018         ac_cv_lib_c_r_pthread_create=no
30019 fi
30020
30021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30022       conftest$ac_exeext conftest.$ac_ext
30023 LIBS=$ac_check_lib_save_LIBS
30024 fi
30025 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30026 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30027 if test $ac_cv_lib_c_r_pthread_create = yes; then
30028   PTHREAD_LIB="-lc_r"
30029 else
30030   { echo "$as_me:$LINENO: checking for pthread_create" >&5
30031 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30032 if test "${ac_cv_func_pthread_create+set}" = set; then
30033   echo $ECHO_N "(cached) $ECHO_C" >&6
30034 else
30035   cat >conftest.$ac_ext <<_ACEOF
30036 /* confdefs.h.  */
30037 _ACEOF
30038 cat confdefs.h >>conftest.$ac_ext
30039 cat >>conftest.$ac_ext <<_ACEOF
30040 /* end confdefs.h.  */
30041 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30043 #define pthread_create innocuous_pthread_create
30044
30045 /* System header to define __stub macros and hopefully few prototypes,
30046     which can conflict with char pthread_create (); below.
30047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30048     <limits.h> exists even on freestanding compilers.  */
30049
30050 #ifdef __STDC__
30051 # include <limits.h>
30052 #else
30053 # include <assert.h>
30054 #endif
30055
30056 #undef pthread_create
30057
30058 /* Override any GCC internal prototype to avoid an error.
30059    Use char because int might match the return type of a GCC
30060    builtin and then its argument prototype would still apply.  */
30061 #ifdef __cplusplus
30062 extern "C"
30063 #endif
30064 char pthread_create ();
30065 /* The GNU C library defines this for functions which it implements
30066     to always fail with ENOSYS.  Some functions are actually named
30067     something starting with __ and the normal name is an alias.  */
30068 #if defined __stub_pthread_create || defined __stub___pthread_create
30069 choke me
30070 #endif
30071
30072 int
30073 main ()
30074 {
30075 return pthread_create ();
30076   ;
30077   return 0;
30078 }
30079 _ACEOF
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (ac_try="$ac_link"
30082 case "(($ac_try" in
30083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084   *) ac_try_echo=$ac_try;;
30085 esac
30086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087   (eval "$ac_link") 2>conftest.er1
30088   ac_status=$?
30089   grep -v '^ *+' conftest.er1 >conftest.err
30090   rm -f conftest.er1
30091   cat conftest.err >&5
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); } && {
30094          test -z "$ac_c_werror_flag" ||
30095          test ! -s conftest.err
30096        } && test -s conftest$ac_exeext &&
30097        $as_test_x conftest$ac_exeext; then
30098   ac_cv_func_pthread_create=yes
30099 else
30100   echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.$ac_ext >&5
30102
30103         ac_cv_func_pthread_create=no
30104 fi
30105
30106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30107       conftest$ac_exeext conftest.$ac_ext
30108 fi
30109 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30110 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30111
30112
30113 fi
30114
30115
30116 fi
30117
30118
30119 fi
30120
30121
30122
30123 cat >>confdefs.h <<\_ACEOF
30124 #define FDLIBS 1
30125 _ACEOF
30126
30127
30128
30129 CFLAGS=${CFLAGS--O}
30130
30131 if test x$have_gcc = xyes ; then
30132    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30133    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30134 fi
30135 LDFLAGS=${LDFLAGS--O}
30136 DB_LIBS="${SQL_LFLAGS}"
30137 CPPFLAGS="$CPPFLAGS"
30138 CFLAGS="$CFLAGS"
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155 OBJLIST=
30156
30157
30158 lld="lld"
30159 llu="llu"
30160
30161 WCFLAGS=
30162 WLDFLAGS=
30163
30164 #
30165 # Finally we set appropriate distribution specific
30166 #  variables and defaults
30167 #
30168 # PFILES are platform specific files
30169 PFILES="platforms/Makefile"
30170 PSCMD="ps -e"
30171 WIN32=
30172 MACOSX=
30173 hostname=`uname -n | cut -d '.' -f 1`
30174 if test x${hostname} = x ; then
30175   hostname="localhost"
30176 fi
30177 case "$DISTNAME" in
30178 aix)
30179         DISTVER=`uname -r`
30180         PSCMD="ps -e -o pid,comm"
30181         PFILES="${PFILES} \
30182            platforms/aix/Makefile"
30183         TAPEDRIVE="/dev/rmt0.1"
30184   ;;
30185 alpha)
30186         DISTVER=`uname -r`
30187         PTHREAD_LIB="-lpthread -lexc"
30188         if test "${CC}" = "gcc" ; then
30189            lld="lld"
30190            llu="llu"
30191         else
30192            lld="ld"
30193            llu="lu"
30194         fi
30195         TAPEDRIVE="/dev/nrmt0"
30196   ;;
30197 bsdi)
30198         DISTVER=`uname -a |awk '{print $3}'`
30199         TAPEDRIVE="/dev/nrmt0"
30200         PTHREAD_LIB="-pthread"
30201         CFLAGS="${CFLAGS} -pthread"
30202         PSCMD="ps -ax -o pid,command"
30203         lld="qd"
30204         llu="qu"
30205         PFILES="${PFILES} \
30206             platforms/bsdi/Makefile \
30207             platforms/bsdi/bacula-fd \
30208             platforms/bsdi/bacula-sd \
30209             platforms/bsdi/bacula-dir"
30210         largefile_support="yes"
30211   ;;
30212 cygwin)
30213         DISTVER=`uname -a |awk '{print $3}'`
30214         TAPEDRIVE="/dev/nrst0"
30215         WIN32=win32
30216         WCFLAGS="-mwindows"
30217         WLDFLAGS="-mwindows"
30218   ;;
30219 darwin)
30220         DISTVER=`uname -r`
30221         TAPEDRIVE="/dev/nst0"
30222         PSCMD="ps -e -o pid,command"
30223         MACOSX=macosx
30224         PFILES="${PFILES} \
30225            platforms/darwin/Makefile"
30226   ;;
30227 debian)
30228         if `grep -q ubuntu /etc/apt/sources.list`; then
30229            DISTNAME="ubuntu"
30230         fi
30231         DISTVER=`cat /etc/debian_version`
30232         if test -f /etc/lsb-release ; then
30233            . /etc/lsb-release
30234            if test "x$DISTRIB_ID" != "x" ; then
30235               DISTNAME=$DISTRIB_ID
30236            fi
30237            if test "x$DISTRIB_RELEASE" != "x" ; then
30238               DISTVER=$DISTRIB_RELEASE
30239            fi
30240         fi
30241         if test "$DISTNAME" = "Ubuntu" ; then
30242            DISTNAME="ubuntu"
30243         fi
30244         TAPEDRIVE="/dev/nst0"
30245         PSCMD="ps -e -o pid,command"
30246         if test "$DISTNAME" = "ubuntu" ; then
30247            PFILES="${PFILES} \
30248               platforms/ubuntu/Makefile \
30249               platforms/ubuntu/bacula-fd \
30250               platforms/ubuntu/bacula-sd \
30251               platforms/ubuntu/bacula-dir"
30252         else
30253            PFILES="${PFILES} \
30254               platforms/debian/Makefile \
30255               platforms/debian/bacula-fd \
30256               platforms/debian/bacula-sd \
30257               platforms/debian/bacula-dir"
30258         fi
30259   ;;
30260 freebsd)
30261         DISTVER=`uname -a |awk '{print $3}'`
30262         VER=`echo $DISTVER | cut -c 1`
30263         if test x$VER = x4 ; then
30264            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30265            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30266         fi
30267         lld="qd"
30268         llu="qu"
30269         TAPEDRIVE="/dev/nrsa0"
30270         PSCMD="ps -ax -o pid,command"
30271         PFILES="${PFILES} \
30272             platforms/freebsd/Makefile \
30273             platforms/freebsd/bacula-fd \
30274             platforms/freebsd/bacula-sd \
30275             platforms/freebsd/bacula-dir"
30276         largefile_support="yes"
30277   ;;
30278 hpux)
30279         PSCMD="UNIX95=1; ps -e -o pid,comm"
30280         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30281         DISTVER=`uname -r`
30282         TAPEDRIVE="/dev/rmt/0hnb"
30283         PTHREAD_LIB="-lpthread"
30284         cat >>confdefs.h <<\_ACEOF
30285 #define _INCLUDE_LONGLONG 1
30286 _ACEOF
30287
30288   ;;
30289 irix)
30290         DISTVER=`uname -r`
30291         TAPEDRIVE="/dev/rmt/0cbn"
30292         PSCMD="ps -e -o pid,comm"
30293         PFILES="${PFILES} \
30294             platforms/irix/Makefile \
30295             platforms/irix/bacula-fd \
30296             platforms/irix/bacula-sd \
30297             platforms/irix/bacula-dir"
30298   ;;
30299 netbsd)
30300         DISTVER=`uname -a |awk '{print $3}'`
30301         lld="qd"
30302         llu="qu"
30303         TAPEDRIVE="/dev/nrst0"
30304         PSCMD="ps -ax -o pid,command"
30305         PTHREAD_LIB="-pthread"
30306         CFLAGS="${CFLAGS} -pthread"
30307   ;;
30308 openbsd)
30309         DISTVER=`uname -a |awk '{print $3}'`
30310         lld="qd"
30311         llu="qu"
30312         TAPEDRIVE="/dev/nrst0"
30313         PSCMD="ps -ax -o pid,command"
30314         PTHREAD_LIB="-pthread"
30315         CFLAGS="${CFLAGS} -pthread"
30316         PFILES="${PFILES} \
30317             platforms/openbsd/Makefile \
30318             platforms/openbsd/bacula-fd \
30319             platforms/openbsd/bacula-sd \
30320             platforms/openbsd/bacula-dir"
30321   ;;
30322 redhat)
30323         if test -f /etc/whitebox-release ; then
30324            f=/etc/whitebox-release
30325         else
30326            f=/etc/redhat-release
30327         fi
30328         if test `cat $f | grep release |\
30329                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30330            DISTVER="Enterprise "`cat $f | grep release |\
30331                     cut -f 6 -d ' '`
30332         else
30333             DISTVER=`cat /etc/redhat-release | grep release |\
30334                      cut -f 5 -d ' '`
30335         fi
30336         TAPEDRIVE="/dev/nst0"
30337         PSCMD="ps -e -o pid,command"
30338         PFILES="${PFILES} \
30339             platforms/redhat/Makefile \
30340             platforms/redhat/bacula-fd \
30341             platforms/redhat/bacula-sd \
30342             platforms/redhat/bacula-dir \
30343             platforms/redhat/bacula.spec \
30344             "
30345   ;;
30346 mandrake)
30347         DISTVER=`cat /etc/mandrake-release | grep release |\
30348            cut -f 5 -d ' '`
30349         TAPEDRIVE="/dev/nst0"
30350         PSCMD="ps -e -o pid,command"
30351         PFILES="${PFILES} \
30352             platforms/mandrake/Makefile \
30353             platforms/mandrake/bacula-fd \
30354             platforms/mandrake/bacula-sd \
30355             platforms/mandrake/bacula-dir \
30356             platforms/mandrake/bacula.spec \
30357             "
30358   ;;
30359 gentoo)
30360         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30361         TAPEDRIVE="/dev/nst0"
30362         PSCMD="ps -e -o pid,command"
30363         PFILES="${PFILES} \
30364             platforms/gentoo/Makefile \
30365          platforms/gentoo/bacula-init \
30366             platforms/gentoo/bacula-fd \
30367             platforms/gentoo/bacula-sd \
30368             platforms/gentoo/bacula-dir"
30369   ;;
30370 slackware)
30371         DISTVER=`cat /etc/slackware-version`
30372         TAPEDRIVE="/dev/nst0"
30373         PSCMD="ps -e -o pid,command"
30374         PFILES="${PFILES} \
30375             platforms/slackware/Makefile \
30376             platforms/slackware/rc.bacula-fd \
30377             platforms/slackware/rc.bacula-sd \
30378             platforms/slackware/rc.bacula-dir\
30379             platforms/slackware/functions.bacula"
30380   ;;
30381 solaris)
30382         DISTVER=`uname -r`
30383         TAPEDRIVE="/dev/rmt/0cbn"
30384         PSCMD="ps -e -o pid,comm"
30385         PFILES="${PFILES} \
30386             platforms/solaris/Makefile \
30387             platforms/solaris/bacula-fd \
30388             platforms/solaris/bacula-sd \
30389             platforms/solaris/bacula-dir"
30390         if test x$DISTVER = x5.6 ; then
30391             cat >>confdefs.h <<\_ACEOF
30392 #define HAVE_OLD_SOCKOPT 1
30393 _ACEOF
30394
30395         fi
30396         LIBS="$LIBS -lresolv"
30397   ;;
30398 suse)
30399         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30400             cut -f 3 -d ' '`
30401         TAPEDRIVE="/dev/nst0"
30402         PSCMD="ps -e -o pid,command"
30403         PFILES="${PFILES} \
30404             platforms/suse/Makefile \
30405             platforms/suse/bacula-fd \
30406             platforms/suse/bacula-sd \
30407             platforms/suse/bacula-dir \
30408             platforms/suse/bacula \
30409             platforms/suse/bacula.spec"
30410   ;;
30411 suse5)
30412         DISTNAME=suse
30413         DISTVER=5.x
30414         TAPEDRIVE="/dev/nst0"
30415         PSCMD="ps -e -o pid,command"
30416         PFILES="${PFILES} \
30417             platforms/suse/Makefile \
30418             platforms/suse/bacula-fd \
30419             platforms/suse/bacula-sd \
30420             platforms/suse/bacula-dir"
30421   ;;
30422 unknown)
30423         DISTVER=unknown
30424         TAPEDRIVE="/dev/nst0"
30425   ;;
30426 *)
30427   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30428   ;;
30429 esac
30430
30431
30432
30433 LIBS="$PTHREAD_LIB $LIBS"
30434
30435 cat >>confdefs.h <<_ACEOF
30436 #define lld "$lld"
30437 _ACEOF
30438
30439 cat >>confdefs.h <<_ACEOF
30440 #define llu "$llu"
30441 _ACEOF
30442
30443
30444
30445
30446
30447
30448
30449
30450 MCOMMON=./autoconf/Make.common
30451
30452
30453 if test "x${subsysdir}" = "x${sbindir}" ; then
30454    echo " "
30455    echo " "
30456    echo "You have set both --sbindir and --with-subsys-dir"
30457    echo "  equal to: ${subsysdir} "
30458    echo "This is not permitted. Please reconfigure."
30459    echo " "
30460    echo "Aborting configuration ..."
30461    echo " "
30462    echo " "
30463    exit 1
30464 fi
30465
30466 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"
30467
30468 ac_config_commands="$ac_config_commands default"
30469
30470 cat >confcache <<\_ACEOF
30471 # This file is a shell script that caches the results of configure
30472 # tests run on this system so they can be shared between configure
30473 # scripts and configure runs, see configure's option --config-cache.
30474 # It is not useful on other systems.  If it contains results you don't
30475 # want to keep, you may remove or edit it.
30476 #
30477 # config.status only pays attention to the cache file if you give it
30478 # the --recheck option to rerun configure.
30479 #
30480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30482 # following values.
30483
30484 _ACEOF
30485
30486 # The following way of writing the cache mishandles newlines in values,
30487 # but we know of no workaround that is simple, portable, and efficient.
30488 # So, we kill variables containing newlines.
30489 # Ultrix sh set writes to stderr and can't be redirected directly,
30490 # and sets the high bit in the cache file unless we assign to the vars.
30491 (
30492   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30493     eval ac_val=\$$ac_var
30494     case $ac_val in #(
30495     *${as_nl}*)
30496       case $ac_var in #(
30497       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30499       esac
30500       case $ac_var in #(
30501       _ | IFS | as_nl) ;; #(
30502       *) $as_unset $ac_var ;;
30503       esac ;;
30504     esac
30505   done
30506
30507   (set) 2>&1 |
30508     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30509     *${as_nl}ac_space=\ *)
30510       # `set' does not quote correctly, so add quotes (double-quote
30511       # substitution turns \\\\ into \\, and sed turns \\ into \).
30512       sed -n \
30513         "s/'/'\\\\''/g;
30514           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30515       ;; #(
30516     *)
30517       # `set' quotes correctly as required by POSIX, so do not add quotes.
30518       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30519       ;;
30520     esac |
30521     sort
30522 ) |
30523   sed '
30524      /^ac_cv_env_/b end
30525      t clear
30526      :clear
30527      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30528      t end
30529      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30530      :end' >>confcache
30531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30532   if test -w "$cache_file"; then
30533     test "x$cache_file" != "x/dev/null" &&
30534       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30535 echo "$as_me: updating cache $cache_file" >&6;}
30536     cat confcache >$cache_file
30537   else
30538     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30539 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30540   fi
30541 fi
30542 rm -f confcache
30543
30544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30545 # Let make expand exec_prefix.
30546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30547
30548 DEFS=-DHAVE_CONFIG_H
30549
30550 ac_libobjs=
30551 ac_ltlibobjs=
30552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30553   # 1. Remove the extension, and $U if already installed.
30554   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30555   ac_i=`echo "$ac_i" | sed "$ac_script"`
30556   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30557   #    will be set to the directory where LIBOBJS objects are built.
30558   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30559   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30560 done
30561 LIBOBJS=$ac_libobjs
30562
30563 LTLIBOBJS=$ac_ltlibobjs
30564
30565
30566
30567 : ${CONFIG_STATUS=./config.status}
30568 ac_clean_files_save=$ac_clean_files
30569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30572 cat >$CONFIG_STATUS <<_ACEOF
30573 #! $SHELL
30574 # Generated by $as_me.
30575 # Run this file to recreate the current configuration.
30576 # Compiler output produced by configure, useful for debugging
30577 # configure, is in config.log if it exists.
30578
30579 debug=false
30580 ac_cs_recheck=false
30581 ac_cs_silent=false
30582 SHELL=\${CONFIG_SHELL-$SHELL}
30583 _ACEOF
30584
30585 cat >>$CONFIG_STATUS <<\_ACEOF
30586 ## --------------------- ##
30587 ## M4sh Initialization.  ##
30588 ## --------------------- ##
30589
30590 # Be more Bourne compatible
30591 DUALCASE=1; export DUALCASE # for MKS sh
30592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30593   emulate sh
30594   NULLCMD=:
30595   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30596   # is contrary to our usage.  Disable this feature.
30597   alias -g '${1+"$@"}'='"$@"'
30598   setopt NO_GLOB_SUBST
30599 else
30600   case `(set -o) 2>/dev/null` in
30601   *posix*) set -o posix ;;
30602 esac
30603
30604 fi
30605
30606
30607
30608
30609 # PATH needs CR
30610 # Avoid depending upon Character Ranges.
30611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30614 as_cr_digits='0123456789'
30615 as_cr_alnum=$as_cr_Letters$as_cr_digits
30616
30617 # The user is always right.
30618 if test "${PATH_SEPARATOR+set}" != set; then
30619   echo "#! /bin/sh" >conf$$.sh
30620   echo  "exit 0"   >>conf$$.sh
30621   chmod +x conf$$.sh
30622   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30623     PATH_SEPARATOR=';'
30624   else
30625     PATH_SEPARATOR=:
30626   fi
30627   rm -f conf$$.sh
30628 fi
30629
30630 # Support unset when possible.
30631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30632   as_unset=unset
30633 else
30634   as_unset=false
30635 fi
30636
30637
30638 # IFS
30639 # We need space, tab and new line, in precisely that order.  Quoting is
30640 # there to prevent editors from complaining about space-tab.
30641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30642 # splitting by setting IFS to empty value.)
30643 as_nl='
30644 '
30645 IFS=" ""        $as_nl"
30646
30647 # Find who we are.  Look in the path if we contain no directory separator.
30648 case $0 in
30649   *[\\/]* ) as_myself=$0 ;;
30650   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30651 for as_dir in $PATH
30652 do
30653   IFS=$as_save_IFS
30654   test -z "$as_dir" && as_dir=.
30655   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30656 done
30657 IFS=$as_save_IFS
30658
30659      ;;
30660 esac
30661 # We did not find ourselves, most probably we were run as `sh COMMAND'
30662 # in which case we are not to be found in the path.
30663 if test "x$as_myself" = x; then
30664   as_myself=$0
30665 fi
30666 if test ! -f "$as_myself"; then
30667   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30668   { (exit 1); exit 1; }
30669 fi
30670
30671 # Work around bugs in pre-3.0 UWIN ksh.
30672 for as_var in ENV MAIL MAILPATH
30673 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30674 done
30675 PS1='$ '
30676 PS2='> '
30677 PS4='+ '
30678
30679 # NLS nuisances.
30680 for as_var in \
30681   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30682   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30683   LC_TELEPHONE LC_TIME
30684 do
30685   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30686     eval $as_var=C; export $as_var
30687   else
30688     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30689   fi
30690 done
30691
30692 # Required to use basename.
30693 if expr a : '\(a\)' >/dev/null 2>&1 &&
30694    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30695   as_expr=expr
30696 else
30697   as_expr=false
30698 fi
30699
30700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30701   as_basename=basename
30702 else
30703   as_basename=false
30704 fi
30705
30706
30707 # Name of the executable.
30708 as_me=`$as_basename -- "$0" ||
30709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30710          X"$0" : 'X\(//\)$' \| \
30711          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30712 echo X/"$0" |
30713     sed '/^.*\/\([^/][^/]*\)\/*$/{
30714             s//\1/
30715             q
30716           }
30717           /^X\/\(\/\/\)$/{
30718             s//\1/
30719             q
30720           }
30721           /^X\/\(\/\).*/{
30722             s//\1/
30723             q
30724           }
30725           s/.*/./; q'`
30726
30727 # CDPATH.
30728 $as_unset CDPATH
30729
30730
30731
30732   as_lineno_1=$LINENO
30733   as_lineno_2=$LINENO
30734   test "x$as_lineno_1" != "x$as_lineno_2" &&
30735   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30736
30737   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30738   # uniformly replaced by the line number.  The first 'sed' inserts a
30739   # line-number line after each line using $LINENO; the second 'sed'
30740   # does the real work.  The second script uses 'N' to pair each
30741   # line-number line with the line containing $LINENO, and appends
30742   # trailing '-' during substitution so that $LINENO is not a special
30743   # case at line end.
30744   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30745   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30746   # E. McMahon (1931-1989) for sed's syntax.  :-)
30747   sed -n '
30748     p
30749     /[$]LINENO/=
30750   ' <$as_myself |
30751     sed '
30752       s/[$]LINENO.*/&-/
30753       t lineno
30754       b
30755       :lineno
30756       N
30757       :loop
30758       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30759       t loop
30760       s/-\n.*//
30761     ' >$as_me.lineno &&
30762   chmod +x "$as_me.lineno" ||
30763     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30764    { (exit 1); exit 1; }; }
30765
30766   # Don't try to exec as it changes $[0], causing all sort of problems
30767   # (the dirname of $[0] is not the place where we might find the
30768   # original and so on.  Autoconf is especially sensitive to this).
30769   . "./$as_me.lineno"
30770   # Exit status is that of the last command.
30771   exit
30772 }
30773
30774
30775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30776   as_dirname=dirname
30777 else
30778   as_dirname=false
30779 fi
30780
30781 ECHO_C= ECHO_N= ECHO_T=
30782 case `echo -n x` in
30783 -n*)
30784   case `echo 'x\c'` in
30785   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30786   *)   ECHO_C='\c';;
30787   esac;;
30788 *)
30789   ECHO_N='-n';;
30790 esac
30791
30792 if expr a : '\(a\)' >/dev/null 2>&1 &&
30793    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30794   as_expr=expr
30795 else
30796   as_expr=false
30797 fi
30798
30799 rm -f conf$$ conf$$.exe conf$$.file
30800 if test -d conf$$.dir; then
30801   rm -f conf$$.dir/conf$$.file
30802 else
30803   rm -f conf$$.dir
30804   mkdir conf$$.dir
30805 fi
30806 echo >conf$$.file
30807 if ln -s conf$$.file conf$$ 2>/dev/null; then
30808   as_ln_s='ln -s'
30809   # ... but there are two gotchas:
30810   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30811   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30812   # In both cases, we have to default to `cp -p'.
30813   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30814     as_ln_s='cp -p'
30815 elif ln conf$$.file conf$$ 2>/dev/null; then
30816   as_ln_s=ln
30817 else
30818   as_ln_s='cp -p'
30819 fi
30820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30821 rmdir conf$$.dir 2>/dev/null
30822
30823 if mkdir -p . 2>/dev/null; then
30824   as_mkdir_p=:
30825 else
30826   test -d ./-p && rmdir ./-p
30827   as_mkdir_p=false
30828 fi
30829
30830 if test -x / >/dev/null 2>&1; then
30831   as_test_x='test -x'
30832 else
30833   if ls -dL / >/dev/null 2>&1; then
30834     as_ls_L_option=L
30835   else
30836     as_ls_L_option=
30837   fi
30838   as_test_x='
30839     eval sh -c '\''
30840       if test -d "$1"; then
30841         test -d "$1/.";
30842       else
30843         case $1 in
30844         -*)set "./$1";;
30845         esac;
30846         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30847         ???[sx]*):;;*)false;;esac;fi
30848     '\'' sh
30849   '
30850 fi
30851 as_executable_p=$as_test_x
30852
30853 # Sed expression to map a string onto a valid CPP name.
30854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30855
30856 # Sed expression to map a string onto a valid variable name.
30857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30858
30859
30860 exec 6>&1
30861
30862 # Save the log message, to keep $[0] and so on meaningful, and to
30863 # report actual input values of CONFIG_FILES etc. instead of their
30864 # values after options handling.
30865 ac_log="
30866 This file was extended by $as_me, which was
30867 generated by GNU Autoconf 2.61.  Invocation command line was
30868
30869   CONFIG_FILES    = $CONFIG_FILES
30870   CONFIG_HEADERS  = $CONFIG_HEADERS
30871   CONFIG_LINKS    = $CONFIG_LINKS
30872   CONFIG_COMMANDS = $CONFIG_COMMANDS
30873   $ $0 $@
30874
30875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30876 "
30877
30878 _ACEOF
30879
30880 cat >>$CONFIG_STATUS <<_ACEOF
30881 # Files that config.status was made for.
30882 config_files="$ac_config_files"
30883 config_headers="$ac_config_headers"
30884 config_commands="$ac_config_commands"
30885
30886 _ACEOF
30887
30888 cat >>$CONFIG_STATUS <<\_ACEOF
30889 ac_cs_usage="\
30890 \`$as_me' instantiates files from templates according to the
30891 current configuration.
30892
30893 Usage: $0 [OPTIONS] [FILE]...
30894
30895   -h, --help       print this help, then exit
30896   -V, --version    print version number and configuration settings, then exit
30897   -q, --quiet      do not print progress messages
30898   -d, --debug      don't remove temporary files
30899       --recheck    update $as_me by reconfiguring in the same conditions
30900   --file=FILE[:TEMPLATE]
30901                    instantiate the configuration file FILE
30902   --header=FILE[:TEMPLATE]
30903                    instantiate the configuration header FILE
30904
30905 Configuration files:
30906 $config_files
30907
30908 Configuration headers:
30909 $config_headers
30910
30911 Configuration commands:
30912 $config_commands
30913
30914 Report bugs to <bug-autoconf@gnu.org>."
30915
30916 _ACEOF
30917 cat >>$CONFIG_STATUS <<_ACEOF
30918 ac_cs_version="\\
30919 config.status
30920 configured by $0, generated by GNU Autoconf 2.61,
30921   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30922
30923 Copyright (C) 2006 Free Software Foundation, Inc.
30924 This config.status script is free software; the Free Software Foundation
30925 gives unlimited permission to copy, distribute and modify it."
30926
30927 ac_pwd='$ac_pwd'
30928 srcdir='$srcdir'
30929 INSTALL='$INSTALL'
30930 _ACEOF
30931
30932 cat >>$CONFIG_STATUS <<\_ACEOF
30933 # If no file are specified by the user, then we need to provide default
30934 # value.  By we need to know if files were specified by the user.
30935 ac_need_defaults=:
30936 while test $# != 0
30937 do
30938   case $1 in
30939   --*=*)
30940     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30941     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30942     ac_shift=:
30943     ;;
30944   *)
30945     ac_option=$1
30946     ac_optarg=$2
30947     ac_shift=shift
30948     ;;
30949   esac
30950
30951   case $ac_option in
30952   # Handling of the options.
30953   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30954     ac_cs_recheck=: ;;
30955   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30956     echo "$ac_cs_version"; exit ;;
30957   --debug | --debu | --deb | --de | --d | -d )
30958     debug=: ;;
30959   --file | --fil | --fi | --f )
30960     $ac_shift
30961     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30962     ac_need_defaults=false;;
30963   --header | --heade | --head | --hea )
30964     $ac_shift
30965     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30966     ac_need_defaults=false;;
30967   --he | --h)
30968     # Conflict between --help and --header
30969     { echo "$as_me: error: ambiguous option: $1
30970 Try \`$0 --help' for more information." >&2
30971    { (exit 1); exit 1; }; };;
30972   --help | --hel | -h )
30973     echo "$ac_cs_usage"; exit ;;
30974   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30975   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30976     ac_cs_silent=: ;;
30977
30978   # This is an error.
30979   -*) { echo "$as_me: error: unrecognized option: $1
30980 Try \`$0 --help' for more information." >&2
30981    { (exit 1); exit 1; }; } ;;
30982
30983   *) ac_config_targets="$ac_config_targets $1"
30984      ac_need_defaults=false ;;
30985
30986   esac
30987   shift
30988 done
30989
30990 ac_configure_extra_args=
30991
30992 if $ac_cs_silent; then
30993   exec 6>/dev/null
30994   ac_configure_extra_args="$ac_configure_extra_args --silent"
30995 fi
30996
30997 _ACEOF
30998 cat >>$CONFIG_STATUS <<_ACEOF
30999 if \$ac_cs_recheck; then
31000   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31001   CONFIG_SHELL=$SHELL
31002   export CONFIG_SHELL
31003   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31004 fi
31005
31006 _ACEOF
31007 cat >>$CONFIG_STATUS <<\_ACEOF
31008 exec 5>>config.log
31009 {
31010   echo
31011   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31012 ## Running $as_me. ##
31013 _ASBOX
31014   echo "$ac_log"
31015 } >&5
31016
31017 _ACEOF
31018 cat >>$CONFIG_STATUS <<_ACEOF
31019 #
31020 # INIT-COMMANDS
31021 #
31022 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31023     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31024     # from automake.
31025     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31026     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31027     LINGUAS="${LINGUAS-%UNSET%}"
31028
31029
31030 _ACEOF
31031
31032 cat >>$CONFIG_STATUS <<\_ACEOF
31033
31034 # Handling of arguments.
31035 for ac_config_target in $ac_config_targets
31036 do
31037   case $ac_config_target in
31038     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31039     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31040     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31041     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31042     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31043     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31044     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31045     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31046     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31047     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31048     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31049     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31050     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31051     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31052     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31053     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31054     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31055     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31056     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31057     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31058     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31059     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31060     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31061     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31062     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31063     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31064     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31065     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31066     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31067     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31068     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31069     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31070     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31071     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31072     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31073     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31074     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31075     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31076     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31077     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31078     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31079     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31080     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31081     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31082     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31083     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31084     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31085     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31086     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31087     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31088     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31089     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31090     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31091     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31092     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31093     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31094     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31095     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31096     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31097     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31098     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31099     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31100     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31101     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31102     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31103     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31104     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31105     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31106     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31107     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31108     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31109     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31110     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31111     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31112     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31113     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31114     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31115     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31116     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31117     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31118     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31119     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31120     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31121     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31122     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31123     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31124     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31125     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31126     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31127     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31128     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31129     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31130     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31131     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31132     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31133     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31134     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31135     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31136     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31137     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31138     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31139     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31140     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31141     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31142     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31143     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31144     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31145     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31146     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31147     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31148
31149   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31150 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31151    { (exit 1); exit 1; }; };;
31152   esac
31153 done
31154
31155
31156 # If the user did not use the arguments to specify the items to instantiate,
31157 # then the envvar interface is used.  Set only those that are not.
31158 # We use the long form for the default assignment because of an extremely
31159 # bizarre bug on SunOS 4.1.3.
31160 if $ac_need_defaults; then
31161   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31162   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31163   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31164 fi
31165
31166 # Have a temporary directory for convenience.  Make it in the build tree
31167 # simply because there is no reason against having it here, and in addition,
31168 # creating and moving files from /tmp can sometimes cause problems.
31169 # Hook for its removal unless debugging.
31170 # Note that there is a small window in which the directory will not be cleaned:
31171 # after its creation but before its name has been assigned to `$tmp'.
31172 $debug ||
31173 {
31174   tmp=
31175   trap 'exit_status=$?
31176   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31177 ' 0
31178   trap '{ (exit 1); exit 1; }' 1 2 13 15
31179 }
31180 # Create a (secure) tmp directory for tmp files.
31181
31182 {
31183   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31184   test -n "$tmp" && test -d "$tmp"
31185 }  ||
31186 {
31187   tmp=./conf$$-$RANDOM
31188   (umask 077 && mkdir "$tmp")
31189 } ||
31190 {
31191    echo "$me: cannot create a temporary directory in ." >&2
31192    { (exit 1); exit 1; }
31193 }
31194
31195 #
31196 # Set up the sed scripts for CONFIG_FILES section.
31197 #
31198
31199 # No need to generate the scripts if there are no CONFIG_FILES.
31200 # This happens for instance when ./config.status config.h
31201 if test -n "$CONFIG_FILES"; then
31202
31203 _ACEOF
31204
31205 # Create sed commands to just substitute file output variables.
31206
31207 # Remaining file output variables are in a fragment that also has non-file
31208 # output varibles.
31209
31210
31211
31212 ac_delim='%!_!# '
31213 for ac_last_try in false false false false false :; do
31214   cat >conf$$subs.sed <<_ACEOF
31215 SHELL!$SHELL$ac_delim
31216 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31217 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31218 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31219 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31220 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31221 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31222 exec_prefix!$exec_prefix$ac_delim
31223 prefix!$prefix$ac_delim
31224 program_transform_name!$program_transform_name$ac_delim
31225 bindir!$bindir$ac_delim
31226 sbindir!$sbindir$ac_delim
31227 libexecdir!$libexecdir$ac_delim
31228 datarootdir!$datarootdir$ac_delim
31229 datadir!$datadir$ac_delim
31230 sysconfdir!$sysconfdir$ac_delim
31231 sharedstatedir!$sharedstatedir$ac_delim
31232 localstatedir!$localstatedir$ac_delim
31233 includedir!$includedir$ac_delim
31234 oldincludedir!$oldincludedir$ac_delim
31235 docdir!$docdir$ac_delim
31236 infodir!$infodir$ac_delim
31237 htmldir!$htmldir$ac_delim
31238 dvidir!$dvidir$ac_delim
31239 pdfdir!$pdfdir$ac_delim
31240 psdir!$psdir$ac_delim
31241 libdir!$libdir$ac_delim
31242 localedir!$localedir$ac_delim
31243 mandir!$mandir$ac_delim
31244 DEFS!$DEFS$ac_delim
31245 ECHO_C!$ECHO_C$ac_delim
31246 ECHO_N!$ECHO_N$ac_delim
31247 ECHO_T!$ECHO_T$ac_delim
31248 LIBS!$LIBS$ac_delim
31249 build_alias!$build_alias$ac_delim
31250 host_alias!$host_alias$ac_delim
31251 target_alias!$target_alias$ac_delim
31252 BUILD_DIR!$BUILD_DIR$ac_delim
31253 TOP_DIR!$TOP_DIR$ac_delim
31254 TRUEPRG!$TRUEPRG$ac_delim
31255 FALSEPRG!$FALSEPRG$ac_delim
31256 VERSION!$VERSION$ac_delim
31257 DATE!$DATE$ac_delim
31258 LSMDATE!$LSMDATE$ac_delim
31259 CC!$CC$ac_delim
31260 CFLAGS!$CFLAGS$ac_delim
31261 LDFLAGS!$LDFLAGS$ac_delim
31262 CPPFLAGS!$CPPFLAGS$ac_delim
31263 ac_ct_CC!$ac_ct_CC$ac_delim
31264 EXEEXT!$EXEEXT$ac_delim
31265 OBJEXT!$OBJEXT$ac_delim
31266 CXX!$CXX$ac_delim
31267 CXXFLAGS!$CXXFLAGS$ac_delim
31268 ac_ct_CXX!$ac_ct_CXX$ac_delim
31269 CPP!$CPP$ac_delim
31270 GREP!$GREP$ac_delim
31271 EGREP!$EGREP$ac_delim
31272 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31273 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31274 INSTALL_DATA!$INSTALL_DATA$ac_delim
31275 RANLIB!$RANLIB$ac_delim
31276 MV!$MV$ac_delim
31277 RM!$RM$ac_delim
31278 CP!$CP$ac_delim
31279 SED!$SED$ac_delim
31280 ECHO!$ECHO$ac_delim
31281 CMP!$CMP$ac_delim
31282 TBL!$TBL$ac_delim
31283 AR!$AR$ac_delim
31284 OPENSSL!$OPENSSL$ac_delim
31285 MTX!$MTX$ac_delim
31286 DD!$DD$ac_delim
31287 MKISOFS!$MKISOFS$ac_delim
31288 PYTHON!$PYTHON$ac_delim
31289 GROWISOFS!$GROWISOFS$ac_delim
31290 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31291 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31292 PKGCONFIG!$PKGCONFIG$ac_delim
31293 QMAKE!$QMAKE$ac_delim
31294 QMAKEQT4!$QMAKEQT4$ac_delim
31295 WXCONFIG!$WXCONFIG$ac_delim
31296 WXFLAGS!$WXFLAGS$ac_delim
31297 CDRECORD!$CDRECORD$ac_delim
31298 PIDOF!$PIDOF$ac_delim
31299 AWK!$AWK$ac_delim
31300 ARFLAGS!$ARFLAGS$ac_delim
31301 MAKE_SHELL!$MAKE_SHELL$ac_delim
31302 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31303 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31304 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31305 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31306 build!$build$ac_delim
31307 build_cpu!$build_cpu$ac_delim
31308 build_vendor!$build_vendor$ac_delim
31309 _ACEOF
31310
31311   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31312     break
31313   elif $ac_last_try; then
31314     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31315 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31316    { (exit 1); exit 1; }; }
31317   else
31318     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31319   fi
31320 done
31321
31322 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31323 if test -n "$ac_eof"; then
31324   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31325   ac_eof=`expr $ac_eof + 1`
31326 fi
31327
31328 cat >>$CONFIG_STATUS <<_ACEOF
31329 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31331 /^[      ]*@MCOMMON@[    ]*$/{
31332 r $MCOMMON
31333 d
31334 }
31335 _ACEOF
31336 sed '
31337 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31338 s/^/s,@/; s/!/@,|#_!!_#|/
31339 :n
31340 t n
31341 s/'"$ac_delim"'$/,g/; t
31342 s/$/\\/; p
31343 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31344 ' >>$CONFIG_STATUS <conf$$subs.sed
31345 rm -f conf$$subs.sed
31346 cat >>$CONFIG_STATUS <<_ACEOF
31347 CEOF$ac_eof
31348 _ACEOF
31349
31350
31351 ac_delim='%!_!# '
31352 for ac_last_try in false false false false false :; do
31353   cat >conf$$subs.sed <<_ACEOF
31354 build_os!$build_os$ac_delim
31355 host!$host$ac_delim
31356 host_cpu!$host_cpu$ac_delim
31357 host_vendor!$host_vendor$ac_delim
31358 host_os!$host_os$ac_delim
31359 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31360 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31361 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31362 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31363 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31364 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31365 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31366 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31367 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31368 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31369 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31370 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31371 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31372 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31373 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31374 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31375 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31376 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31377 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31378 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31379 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31380 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31381 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31382 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31383 SET_MAKE!$SET_MAKE$ac_delim
31384 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31385 USE_NLS!$USE_NLS$ac_delim
31386 MSGFMT!$MSGFMT$ac_delim
31387 GMSGFMT!$GMSGFMT$ac_delim
31388 XGETTEXT!$XGETTEXT$ac_delim
31389 MSGMERGE!$MSGMERGE$ac_delim
31390 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31391 LIBICONV!$LIBICONV$ac_delim
31392 LTLIBICONV!$LTLIBICONV$ac_delim
31393 INTLLIBS!$INTLLIBS$ac_delim
31394 LIBINTL!$LIBINTL$ac_delim
31395 LTLIBINTL!$LTLIBINTL$ac_delim
31396 POSUB!$POSUB$ac_delim
31397 GLIBC2!$GLIBC2$ac_delim
31398 ALLOCA!$ALLOCA$ac_delim
31399 GLIBC21!$GLIBC21$ac_delim
31400 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31401 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31402 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31403 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31404 INTLBISON!$INTLBISON$ac_delim
31405 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31406 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31407 CATOBJEXT!$CATOBJEXT$ac_delim
31408 DATADIRNAME!$DATADIRNAME$ac_delim
31409 INSTOBJEXT!$INSTOBJEXT$ac_delim
31410 GENCAT!$GENCAT$ac_delim
31411 INTLOBJS!$INTLOBJS$ac_delim
31412 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31413 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31414 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31415 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31416 GNOME_LIBS!$GNOME_LIBS$ac_delim
31417 GNOME_DIR!$GNOME_DIR$ac_delim
31418 BAT_DIR!$BAT_DIR$ac_delim
31419 QWT_INC!$QWT_INC$ac_delim
31420 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31421 QWT_LIB!$QWT_LIB$ac_delim
31422 QWT!$QWT$ac_delim
31423 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31424 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31425 WX_DIR!$WX_DIR$ac_delim
31426 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31427 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31428 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31429 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31430 STATIC_FD!$STATIC_FD$ac_delim
31431 STATIC_SD!$STATIC_SD$ac_delim
31432 STATIC_DIR!$STATIC_DIR$ac_delim
31433 STATIC_CONS!$STATIC_CONS$ac_delim
31434 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31435 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31436 ALL_DIRS!$ALL_DIRS$ac_delim
31437 DIRD_DIR!$DIRD_DIR$ac_delim
31438 DIR_TOOLS!$DIR_TOOLS$ac_delim
31439 STORED_DIR!$STORED_DIR$ac_delim
31440 CONS_INC!$CONS_INC$ac_delim
31441 CONS_OBJ!$CONS_OBJ$ac_delim
31442 CONS_SRC!$CONS_SRC$ac_delim
31443 CONS_LIBS!$CONS_LIBS$ac_delim
31444 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31445 READLINE_SRC!$READLINE_SRC$ac_delim
31446 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31447 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31448 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31449 OPENSSL_INC!$OPENSSL_INC$ac_delim
31450 working_dir!$working_dir$ac_delim
31451 _ACEOF
31452
31453   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31454     break
31455   elif $ac_last_try; then
31456     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31457 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31458    { (exit 1); exit 1; }; }
31459   else
31460     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31461   fi
31462 done
31463
31464 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31465 if test -n "$ac_eof"; then
31466   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31467   ac_eof=`expr $ac_eof + 1`
31468 fi
31469
31470 cat >>$CONFIG_STATUS <<_ACEOF
31471 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31473 _ACEOF
31474 sed '
31475 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31476 s/^/s,@/; s/!/@,|#_!!_#|/
31477 :n
31478 t n
31479 s/'"$ac_delim"'$/,g/; t
31480 s/$/\\/; p
31481 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31482 ' >>$CONFIG_STATUS <conf$$subs.sed
31483 rm -f conf$$subs.sed
31484 cat >>$CONFIG_STATUS <<_ACEOF
31485 CEOF$ac_eof
31486 _ACEOF
31487
31488
31489 ac_delim='%!_!# '
31490 for ac_last_try in false false false false false :; do
31491   cat >conf$$subs.sed <<_ACEOF
31492 archivedir!$archivedir$ac_delim
31493 scriptdir!$scriptdir$ac_delim
31494 dump_email!$dump_email$ac_delim
31495 job_email!$job_email$ac_delim
31496 smtp_host!$smtp_host$ac_delim
31497 piddir!$piddir$ac_delim
31498 subsysdir!$subsysdir$ac_delim
31499 baseport!$baseport$ac_delim
31500 dir_port!$dir_port$ac_delim
31501 fd_port!$fd_port$ac_delim
31502 sd_port!$sd_port$ac_delim
31503 dir_password!$dir_password$ac_delim
31504 fd_password!$fd_password$ac_delim
31505 sd_password!$sd_password$ac_delim
31506 mon_dir_password!$mon_dir_password$ac_delim
31507 mon_fd_password!$mon_fd_password$ac_delim
31508 mon_sd_password!$mon_sd_password$ac_delim
31509 db_name!$db_name$ac_delim
31510 db_user!$db_user$ac_delim
31511 db_password!$db_password$ac_delim
31512 dir_user!$dir_user$ac_delim
31513 dir_group!$dir_group$ac_delim
31514 sd_user!$sd_user$ac_delim
31515 sd_group!$sd_group$ac_delim
31516 fd_user!$fd_user$ac_delim
31517 fd_group!$fd_group$ac_delim
31518 SBINPERM!$SBINPERM$ac_delim
31519 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31520 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31521 SQL_BINDIR!$SQL_BINDIR$ac_delim
31522 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31523 DB_PROG!$DB_PROG$ac_delim
31524 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31525 cats!$cats$ac_delim
31526 DB_TYPE!$DB_TYPE$ac_delim
31527 GETCONF!$GETCONF$ac_delim
31528 XMKMF!$XMKMF$ac_delim
31529 X_CFLAGS!$X_CFLAGS$ac_delim
31530 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31531 X_LIBS!$X_LIBS$ac_delim
31532 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31533 LIBOBJS!$LIBOBJS$ac_delim
31534 FDLIBS!$FDLIBS$ac_delim
31535 DEBUG!$DEBUG$ac_delim
31536 DINCLUDE!$DINCLUDE$ac_delim
31537 DLIB!$DLIB$ac_delim
31538 DB_LIBS!$DB_LIBS$ac_delim
31539 WCFLAGS!$WCFLAGS$ac_delim
31540 WLDFLAGS!$WLDFLAGS$ac_delim
31541 WRAPLIBS!$WRAPLIBS$ac_delim
31542 OBJLIST!$OBJLIST$ac_delim
31543 hostname!$hostname$ac_delim
31544 TAPEDRIVE!$TAPEDRIVE$ac_delim
31545 PSCMD!$PSCMD$ac_delim
31546 WIN32!$WIN32$ac_delim
31547 MACOSX!$MACOSX$ac_delim
31548 DISTNAME!$DISTNAME$ac_delim
31549 DISTVER!$DISTVER$ac_delim
31550 LTLIBOBJS!$LTLIBOBJS$ac_delim
31551 _ACEOF
31552
31553   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
31554     break
31555   elif $ac_last_try; then
31556     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31557 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31558    { (exit 1); exit 1; }; }
31559   else
31560     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31561   fi
31562 done
31563
31564 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31565 if test -n "$ac_eof"; then
31566   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31567   ac_eof=`expr $ac_eof + 1`
31568 fi
31569
31570 cat >>$CONFIG_STATUS <<_ACEOF
31571 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31573 _ACEOF
31574 sed '
31575 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31576 s/^/s,@/; s/!/@,|#_!!_#|/
31577 :n
31578 t n
31579 s/'"$ac_delim"'$/,g/; t
31580 s/$/\\/; p
31581 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31582 ' >>$CONFIG_STATUS <conf$$subs.sed
31583 rm -f conf$$subs.sed
31584 cat >>$CONFIG_STATUS <<_ACEOF
31585 :end
31586 s/|#_!!_#|//g
31587 CEOF$ac_eof
31588 _ACEOF
31589
31590
31591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31593 # trailing colons and then remove the whole line if VPATH becomes empty
31594 # (actually we leave an empty line to preserve line numbers).
31595 if test "x$srcdir" = x.; then
31596   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31597 s/:*\$(srcdir):*/:/
31598 s/:*\${srcdir}:*/:/
31599 s/:*@srcdir@:*/:/
31600 s/^\([^=]*=[     ]*\):*/\1/
31601 s/:*$//
31602 s/^[^=]*=[       ]*$//
31603 }'
31604 fi
31605
31606 cat >>$CONFIG_STATUS <<\_ACEOF
31607 fi # test -n "$CONFIG_FILES"
31608
31609
31610 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31611 do
31612   case $ac_tag in
31613   :[FHLC]) ac_mode=$ac_tag; continue;;
31614   esac
31615   case $ac_mode$ac_tag in
31616   :[FHL]*:*);;
31617   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31618 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31619    { (exit 1); exit 1; }; };;
31620   :[FH]-) ac_tag=-:-;;
31621   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31622   esac
31623   ac_save_IFS=$IFS
31624   IFS=:
31625   set x $ac_tag
31626   IFS=$ac_save_IFS
31627   shift
31628   ac_file=$1
31629   shift
31630
31631   case $ac_mode in
31632   :L) ac_source=$1;;
31633   :[FH])
31634     ac_file_inputs=
31635     for ac_f
31636     do
31637       case $ac_f in
31638       -) ac_f="$tmp/stdin";;
31639       *) # Look for the file first in the build tree, then in the source tree
31640          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31641          # because $ac_f cannot contain `:'.
31642          test -f "$ac_f" ||
31643            case $ac_f in
31644            [\\/$]*) false;;
31645            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31646            esac ||
31647            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31648 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31649    { (exit 1); exit 1; }; };;
31650       esac
31651       ac_file_inputs="$ac_file_inputs $ac_f"
31652     done
31653
31654     # Let's still pretend it is `configure' which instantiates (i.e., don't
31655     # use $as_me), people would be surprised to read:
31656     #    /* config.h.  Generated by config.status.  */
31657     configure_input="Generated from "`IFS=:
31658           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31659     if test x"$ac_file" != x-; then
31660       configure_input="$ac_file.  $configure_input"
31661       { echo "$as_me:$LINENO: creating $ac_file" >&5
31662 echo "$as_me: creating $ac_file" >&6;}
31663     fi
31664
31665     case $ac_tag in
31666     *:-:* | *:-) cat >"$tmp/stdin";;
31667     esac
31668     ;;
31669   esac
31670
31671   ac_dir=`$as_dirname -- "$ac_file" ||
31672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31673          X"$ac_file" : 'X\(//\)[^/]' \| \
31674          X"$ac_file" : 'X\(//\)$' \| \
31675          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31676 echo X"$ac_file" |
31677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31678             s//\1/
31679             q
31680           }
31681           /^X\(\/\/\)[^/].*/{
31682             s//\1/
31683             q
31684           }
31685           /^X\(\/\/\)$/{
31686             s//\1/
31687             q
31688           }
31689           /^X\(\/\).*/{
31690             s//\1/
31691             q
31692           }
31693           s/.*/./; q'`
31694   { as_dir="$ac_dir"
31695   case $as_dir in #(
31696   -*) as_dir=./$as_dir;;
31697   esac
31698   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31699     as_dirs=
31700     while :; do
31701       case $as_dir in #(
31702       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31703       *) as_qdir=$as_dir;;
31704       esac
31705       as_dirs="'$as_qdir' $as_dirs"
31706       as_dir=`$as_dirname -- "$as_dir" ||
31707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31708          X"$as_dir" : 'X\(//\)[^/]' \| \
31709          X"$as_dir" : 'X\(//\)$' \| \
31710          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31711 echo X"$as_dir" |
31712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31713             s//\1/
31714             q
31715           }
31716           /^X\(\/\/\)[^/].*/{
31717             s//\1/
31718             q
31719           }
31720           /^X\(\/\/\)$/{
31721             s//\1/
31722             q
31723           }
31724           /^X\(\/\).*/{
31725             s//\1/
31726             q
31727           }
31728           s/.*/./; q'`
31729       test -d "$as_dir" && break
31730     done
31731     test -z "$as_dirs" || eval "mkdir $as_dirs"
31732   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31733 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31734    { (exit 1); exit 1; }; }; }
31735   ac_builddir=.
31736
31737 case "$ac_dir" in
31738 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31739 *)
31740   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31741   # A ".." for each directory in $ac_dir_suffix.
31742   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31743   case $ac_top_builddir_sub in
31744   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31745   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31746   esac ;;
31747 esac
31748 ac_abs_top_builddir=$ac_pwd
31749 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31750 # for backward compatibility:
31751 ac_top_builddir=$ac_top_build_prefix
31752
31753 case $srcdir in
31754   .)  # We are building in place.
31755     ac_srcdir=.
31756     ac_top_srcdir=$ac_top_builddir_sub
31757     ac_abs_top_srcdir=$ac_pwd ;;
31758   [\\/]* | ?:[\\/]* )  # Absolute name.
31759     ac_srcdir=$srcdir$ac_dir_suffix;
31760     ac_top_srcdir=$srcdir
31761     ac_abs_top_srcdir=$srcdir ;;
31762   *) # Relative name.
31763     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31764     ac_top_srcdir=$ac_top_build_prefix$srcdir
31765     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31766 esac
31767 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31768
31769
31770   case $ac_mode in
31771   :F)
31772   #
31773   # CONFIG_FILE
31774   #
31775
31776   case $INSTALL in
31777   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31778   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31779   esac
31780 _ACEOF
31781
31782 cat >>$CONFIG_STATUS <<\_ACEOF
31783 # If the template does not know about datarootdir, expand it.
31784 # FIXME: This hack should be removed a few years after 2.60.
31785 ac_datarootdir_hack=; ac_datarootdir_seen=
31786
31787 case `sed -n '/datarootdir/ {
31788   p
31789   q
31790 }
31791 /@datadir@/p
31792 /@docdir@/p
31793 /@infodir@/p
31794 /@localedir@/p
31795 /@mandir@/p
31796 ' $ac_file_inputs` in
31797 *datarootdir*) ac_datarootdir_seen=yes;;
31798 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31799   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31800 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31801 _ACEOF
31802 cat >>$CONFIG_STATUS <<_ACEOF
31803   ac_datarootdir_hack='
31804   s&@datadir@&$datadir&g
31805   s&@docdir@&$docdir&g
31806   s&@infodir@&$infodir&g
31807   s&@localedir@&$localedir&g
31808   s&@mandir@&$mandir&g
31809     s&\\\${datarootdir}&$datarootdir&g' ;;
31810 esac
31811 _ACEOF
31812
31813 # Neutralize VPATH when `$srcdir' = `.'.
31814 # Shell code in configure.ac might set extrasub.
31815 # FIXME: do we really want to maintain this feature?
31816 cat >>$CONFIG_STATUS <<_ACEOF
31817   sed "$ac_vpsub
31818 $extrasub
31819 _ACEOF
31820 cat >>$CONFIG_STATUS <<\_ACEOF
31821 :t
31822 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31823 s&@configure_input@&$configure_input&;t t
31824 s&@top_builddir@&$ac_top_builddir_sub&;t t
31825 s&@srcdir@&$ac_srcdir&;t t
31826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31827 s&@top_srcdir@&$ac_top_srcdir&;t t
31828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31829 s&@builddir@&$ac_builddir&;t t
31830 s&@abs_builddir@&$ac_abs_builddir&;t t
31831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31832 s&@INSTALL@&$ac_INSTALL&;t t
31833 $ac_datarootdir_hack
31834 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31835
31836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31837   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31838   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31839   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31840 which seems to be undefined.  Please make sure it is defined." >&5
31841 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31842 which seems to be undefined.  Please make sure it is defined." >&2;}
31843
31844   rm -f "$tmp/stdin"
31845   case $ac_file in
31846   -) cat "$tmp/out"; rm -f "$tmp/out";;
31847   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31848   esac
31849  ;;
31850   :H)
31851   #
31852   # CONFIG_HEADER
31853   #
31854 _ACEOF
31855
31856 # Transform confdefs.h into a sed script `conftest.defines', that
31857 # substitutes the proper values into config.h.in to produce config.h.
31858 rm -f conftest.defines conftest.tail
31859 # First, append a space to every undef/define line, to ease matching.
31860 echo 's/$/ /' >conftest.defines
31861 # Then, protect against being on the right side of a sed subst, or in
31862 # an unquoted here document, in config.status.  If some macros were
31863 # called several times there might be several #defines for the same
31864 # symbol, which is useless.  But do not sort them, since the last
31865 # AC_DEFINE must be honored.
31866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31867 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31868 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31869 # PARAMS is the parameter list in the macro definition--in most cases, it's
31870 # just an empty string.
31871 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31872 ac_dB='\\)[      (].*,\\1define\\2'
31873 ac_dC=' '
31874 ac_dD=' ,'
31875
31876 uniq confdefs.h |
31877   sed -n '
31878         t rset
31879         :rset
31880         s/^[     ]*#[    ]*define[       ][      ]*//
31881         t ok
31882         d
31883         :ok
31884         s/[\\&,]/\\&/g
31885         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31886         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31887   ' >>conftest.defines
31888
31889 # Remove the space that was appended to ease matching.
31890 # Then replace #undef with comments.  This is necessary, for
31891 # example, in the case of _POSIX_SOURCE, which is predefined and required
31892 # on some systems where configure will not decide to define it.
31893 # (The regexp can be short, since the line contains either #define or #undef.)
31894 echo 's/ $//
31895 s,^[     #]*u.*,/* & */,' >>conftest.defines
31896
31897 # Break up conftest.defines:
31898 ac_max_sed_lines=50
31899
31900 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31901 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31902 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31903 # et cetera.
31904 ac_in='$ac_file_inputs'
31905 ac_out='"$tmp/out1"'
31906 ac_nxt='"$tmp/out2"'
31907
31908 while :
31909 do
31910   # Write a here document:
31911     cat >>$CONFIG_STATUS <<_ACEOF
31912     # First, check the format of the line:
31913     cat >"\$tmp/defines.sed" <<\\CEOF
31914 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31915 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31916 b
31917 :def
31918 _ACEOF
31919   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31920   echo 'CEOF
31921     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31922   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31923   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31924   grep . conftest.tail >/dev/null || break
31925   rm -f conftest.defines
31926   mv conftest.tail conftest.defines
31927 done
31928 rm -f conftest.defines conftest.tail
31929
31930 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31931 cat >>$CONFIG_STATUS <<\_ACEOF
31932   if test x"$ac_file" != x-; then
31933     echo "/* $configure_input  */" >"$tmp/config.h"
31934     cat "$ac_result" >>"$tmp/config.h"
31935     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31936       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31937 echo "$as_me: $ac_file is unchanged" >&6;}
31938     else
31939       rm -f $ac_file
31940       mv "$tmp/config.h" $ac_file
31941     fi
31942   else
31943     echo "/* $configure_input  */"
31944     cat "$ac_result"
31945   fi
31946   rm -f "$tmp/out12"
31947  ;;
31948
31949   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31950 echo "$as_me: executing $ac_file commands" >&6;}
31951  ;;
31952   esac
31953
31954
31955   case $ac_file$ac_mode in
31956     "default-1":C)
31957     for ac_file in $CONFIG_FILES; do
31958       # Support "outfile[:infile[:infile...]]"
31959       case "$ac_file" in
31960         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31961       esac
31962       # PO directories have a Makefile.in generated from Makefile.in.in.
31963       case "$ac_file" in */Makefile.in)
31964         # Adjust a relative srcdir.
31965         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31966         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31967         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31968         # In autoconf-2.13 it is called $ac_given_srcdir.
31969         # In autoconf-2.50 it is called $srcdir.
31970         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31971         case "$ac_given_srcdir" in
31972           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31973           /*) top_srcdir="$ac_given_srcdir" ;;
31974           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31975         esac
31976         # Treat a directory as a PO directory if and only if it has a
31977         # POTFILES.in file. This allows packages to have multiple PO
31978         # directories under different names or in different locations.
31979         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31980           rm -f "$ac_dir/POTFILES"
31981           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31982           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31983           POMAKEFILEDEPS="POTFILES.in"
31984           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31985           # on $ac_dir but don't depend on user-specified configuration
31986           # parameters.
31987           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31988             # The LINGUAS file contains the set of available languages.
31989             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31990               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31991             fi
31992             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31993             # Hide the ALL_LINGUAS assigment from automake.
31994             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31995             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31996           else
31997             # The set of available languages was given in configure.in.
31998             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31999           fi
32000           # Compute POFILES
32001           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32002           # Compute UPDATEPOFILES
32003           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32004           # Compute DUMMYPOFILES
32005           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32006           # Compute GMOFILES
32007           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32008           case "$ac_given_srcdir" in
32009             .) srcdirpre= ;;
32010             *) srcdirpre='$(srcdir)/' ;;
32011           esac
32012           POFILES=
32013           UPDATEPOFILES=
32014           DUMMYPOFILES=
32015           GMOFILES=
32016           for lang in $ALL_LINGUAS; do
32017             POFILES="$POFILES $srcdirpre$lang.po"
32018             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32019             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32020             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32021           done
32022           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32023           # environment variable.
32024           INST_LINGUAS=
32025           if test -n "$ALL_LINGUAS"; then
32026             for presentlang in $ALL_LINGUAS; do
32027               useit=no
32028               if test "%UNSET%" != "$LINGUAS"; then
32029                 desiredlanguages="$LINGUAS"
32030               else
32031                 desiredlanguages="$ALL_LINGUAS"
32032               fi
32033               for desiredlang in $desiredlanguages; do
32034                 # Use the presentlang catalog if desiredlang is
32035                 #   a. equal to presentlang, or
32036                 #   b. a variant of presentlang (because in this case,
32037                 #      presentlang can be used as a fallback for messages
32038                 #      which are not translated in the desiredlang catalog).
32039                 case "$desiredlang" in
32040                   "$presentlang"*) useit=yes;;
32041                 esac
32042               done
32043               if test $useit = yes; then
32044                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32045               fi
32046             done
32047           fi
32048           CATALOGS=
32049           if test -n "$INST_LINGUAS"; then
32050             for lang in $INST_LINGUAS; do
32051               CATALOGS="$CATALOGS $lang.gmo"
32052             done
32053           fi
32054           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32055           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"
32056           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32057             if test -f "$f"; then
32058               case "$f" in
32059                 *.orig | *.bak | *~) ;;
32060                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32061               esac
32062             fi
32063           done
32064         fi
32065         ;;
32066       esac
32067     done ;;
32068     "default":C)
32069  ;;
32070
32071   esac
32072 done # for ac_tag
32073
32074
32075 { (exit 0); exit 0; }
32076 _ACEOF
32077 chmod +x $CONFIG_STATUS
32078 ac_clean_files=$ac_clean_files_save
32079
32080
32081 # configure is writing to config.log, and then calls config.status.
32082 # config.status does its own redirection, appending to config.log.
32083 # Unfortunately, on DOS this fails, as config.log is still kept open
32084 # by configure, so config.status won't be able to write to it; its
32085 # output is simply discarded.  So we exec the FD to /dev/null,
32086 # effectively closing config.log, so it can be properly (re)opened and
32087 # appended to by config.status.  When coming back to configure, we
32088 # need to make the FD available again.
32089 if test "$no_create" != yes; then
32090   ac_cs_success=:
32091   ac_config_status_args=
32092   test "$silent" = yes &&
32093     ac_config_status_args="$ac_config_status_args --quiet"
32094   exec 5>/dev/null
32095   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32096   exec 5>>config.log
32097   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32098   # would make configure fail if this is the last instruction.
32099   $ac_cs_success || { (exit 1); exit 1; }
32100 fi
32101
32102
32103 if test "${support_bat}" = "yes" ; then
32104   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32105   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32106   exit 1
32107   fi
32108
32109   QMAKEBIN="qmake"
32110
32111   if test "x$QMAKEQT4" != "xnone"; then
32112     QMAKEBIN=qmake-qt4
32113   fi
32114
32115   cd src/qt-console
32116   chmod 755 install_conf_file build-depkgs-qt-console
32117   echo "Creating bat Makefile"
32118   $QMAKEBIN
32119   make clean
32120   cd ${BUILD_DIR}
32121 fi
32122
32123 # configure and prepare libtokyodbm for bacula
32124 pushd src/lib/tokyocabinet > /dev/null
32125 tcdbm_opt=
32126 if test x$largefile_support = xyes; then
32127    tcdbm_opt=--enable-off64
32128 fi
32129 ./configure $tcdbm_opt
32130 popd > /dev/null
32131 # need tokyo header files for "make depend"
32132 cp src/lib/tokyocabinet/t*.h src/lib
32133
32134 echo "Doing make of dependencies"
32135 ${MAKE:-make} depend
32136
32137 cd scripts
32138 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32139 chmod 755 dvd-handler dvd-simulator
32140 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32141 cd ..
32142
32143 c=updatedb
32144 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32145 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32146
32147 c=src/cats
32148
32149 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32150 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32151
32152 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32153 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32154
32155 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32156 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32157
32158 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32159 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32160
32161 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32162 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32163
32164 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32165 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32166
32167 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32168 chmod 755 $c/sqlite
32169 chmod 755 $c/mysql
32170
32171 chmod 755 src/win32/build-depkgs-mingw32
32172
32173
32174
32175 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32176    largefile_support="yes"
32177 fi
32178
32179 #
32180 # A whole lot of hand springs to get the compiler version.
32181 #  This is because gcc changed the output in version 3.0
32182 #
32183 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32184 if test "x${CCVERSION}" = "x" ; then
32185   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32186 fi
32187 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32188 if test x"${CXXVERSION}" = x ; then
32189   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32190 fi
32191
32192 if test "x${subsysdir}" = "x${sbindir}" ; then
32193    echo " "
32194    echo " "
32195    echo "You have set --sbindir and --with-subsys-dir"
32196    echo "  both equal to: ${subsysdir} "
32197    echo "  This is not permitted. Please reconfigure."
32198    echo " "
32199    echo "Aborting configuration ..."
32200    echo " "
32201    echo " "
32202    exit 1
32203 fi
32204
32205 if test "x${db_type}" = "xInternal" ; then
32206    echo " "
32207    echo " "
32208    echo "You have not specified either --enable-client-only or one of the"
32209    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32210    echo "  This is not permitted. Please reconfigure."
32211    echo " "
32212    echo "Aborting the configuration ..."
32213    echo " "
32214    echo " "
32215    exit 1
32216 fi
32217
32218 echo "
32219 Configuration on `date`:
32220
32221   Host:                       $host -- ${DISTNAME} ${DISTVER}
32222   Bacula version:             ${VERSION} (${DATE})
32223   Source code location:       ${srcdir}
32224   Install binaries:           ${sbindir}
32225   Install config files:       ${sysconfdir}
32226   Scripts directory:          ${scriptdir}
32227   Archive directory:          ${archivedir}
32228   Working directory:          ${working_dir}
32229   PID directory:              ${piddir}
32230   Subsys directory:           ${subsysdir}
32231   Man directory:              ${mandir}
32232   Data directory:             ${datadir}
32233   C Compiler:                 ${CC} ${CCVERSION}
32234   C++ Compiler:               ${CXX} ${CXXVERSION}
32235   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32236   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32237   Libraries:                  ${LIBS}
32238   Statically Linked Tools:    ${support_static_tools}
32239   Statically Linked FD:       ${support_static_fd}
32240   Statically Linked SD:       ${support_static_sd}
32241   Statically Linked DIR:      ${support_static_dir}
32242   Statically Linked CONS:     ${support_static_cons}
32243   Database type:              ${db_type}
32244   Database lib:               ${DB_LIBS}
32245   Database name:              ${db_name}
32246   Database user:              ${db_user}
32247
32248   Job Output Email:           ${job_email}
32249   Traceback Email:            ${dump_email}
32250   SMTP Host Address:          ${smtp_host}
32251
32252   Director Port:              ${dir_port}
32253   File daemon Port:           ${fd_port}
32254   Storage daemon Port:        ${sd_port}
32255
32256   Director User:              ${dir_user}
32257   Director Group:             ${dir_group}
32258   Storage Daemon User:        ${sd_user}
32259   Storage DaemonGroup:        ${sd_group}
32260   File Daemon User:           ${fd_user}
32261   File Daemon Group:          ${fd_group}
32262
32263   SQL binaries Directory      ${SQL_BINDIR}
32264
32265   Large file support:         $largefile_support
32266   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32267   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32268   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32269   TLS support:                ${support_tls}
32270   Encryption support:         ${support_crypto}
32271   ZLIB support:               ${have_zlib}
32272   enable-smartalloc:          ${support_smartalloc}
32273   bat support:                ${support_bat} ${QWT_LDFLAGS}
32274   enable-gnome:               ${support_gnome} ${gnome_version}
32275   enable-bwx-console:         ${support_wx_console} ${wx_version}
32276   enable-tray-monitor:        ${support_tray_monitor}
32277   client-only:                ${build_client_only}
32278   build-dird:                 ${build_dird}
32279   build-stored:               ${build_stored}
32280   ACL support:                ${have_acl}
32281   Python support:             ${support_python} ${PYTHON_LIBS}
32282   Batch insert enabled:       ${support_batch_insert}
32283
32284   " > config.out
32285
32286 cat config.out