]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Update 1.38.10 patches
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895   --with-included-gettext use the GNU gettext library included here
896  --with-readline=DIR             specify readline library directory
897
898   --with-python=DIR       Include Python support.  DIR is the Python base
899                           install directory, default is to search through
900                           a number of common places for the Python files.
901   --with-tcp-wrappers=DIR        enable tcpwrappers support
902   --with-openssl[=DIR]
903                           Include OpenSSL support. DIR is the OpenSSL base
904   --with-working-dir=PATH        specify path of Bacula working directory
905   --with-scriptdir=PATH    specify path of Bacula scripts directory
906   --with-dump-email=EMAIL        dump email address
907   --with-job-email=EMAIL         job output email address
908   --with-smtp-host=HOST          SMTP mail host address
909   --with-pid-dir=PATH            specify location of Bacula pid files
910   --with-subsys-dir=PATH         specify location of Bacula subsys file
911   --with-baseport=PORT           specify base port address for daemons
912   --with-dir-password=PASSWORD   specify Director's password
913   --with-fd-password=PASSWORD    specify Client's password
914   --with-sd-password=PASSWORD    specify Storage daemon's password
915   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
916   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
917   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
918   --with-dir-user=USER           specify user for Director daemon
919   --with-dir-group=GROUP                 specify group for Director daemon
920   --with-sd-user=USER            specify user for Storage daemon
921   --with-sd-group=GROUP          specify group for Storage daemon
922   --with-fd-user=USER            specify user for File daemon
923   --with-fd-group=GROUP          specify group for File daemon
924   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
925   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
926                           base install directory, defaults to /usr/local/pgsql
927
928   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
929                           install directory, default is to search through
930                           a number of common places for the MySQL files.
931
932   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
933                           install directory, default is to search through
934                           a number of common places for the MySQL files.
935
936   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
937                           install directory, default is to search through
938                           a number of common places for the SQLite3 files.
939
940   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
941                           install directory, default is to search through
942                           a number of common places for the SQLite files.
943   --with-x                use the X Window System
944
945 Some influential environment variables:
946   CC          C compiler command
947   CFLAGS      C compiler flags
948   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
949               nonstandard directory <lib dir>
950   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951               headers in a nonstandard directory <include dir>
952   CXX         C++ compiler command
953   CXXFLAGS    C++ compiler flags
954   CPP         C preprocessor
955   WXCONFIG    wx-config command. On some systems, you must set it to
956               wx-config-2.6 to use wxWidgets 2.6.
957   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
958
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
961
962 _ACEOF
963 fi
964
965 if test "$ac_init_help" = "recursive"; then
966   # If there are subdirs, report their specific --help.
967   ac_popdir=`pwd`
968   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969     test -d $ac_dir || continue
970     ac_builddir=.
971
972 if test "$ac_dir" != .; then
973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974   # A "../" for each directory in $ac_dir_suffix.
975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 else
977   ac_dir_suffix= ac_top_builddir=
978 fi
979
980 case $srcdir in
981   .)  # No --srcdir option.  We are building in place.
982     ac_srcdir=.
983     if test -z "$ac_top_builddir"; then
984        ac_top_srcdir=.
985     else
986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987     fi ;;
988   [\\/]* | ?:[\\/]* )  # Absolute path.
989     ac_srcdir=$srcdir$ac_dir_suffix;
990     ac_top_srcdir=$srcdir ;;
991   *) # Relative path.
992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
994 esac
995
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
998 case `pwd` in
999 .) ac_abs_builddir="$ac_dir";;
1000 *)
1001   case "$ac_dir" in
1002   .) ac_abs_builddir=`pwd`;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *)
1010   case ${ac_top_builddir}. in
1011   .) ac_abs_top_builddir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1014   esac;;
1015 esac
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1018 *)
1019   case $ac_srcdir in
1020   .) ac_abs_srcdir=$ac_abs_builddir;;
1021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1023   esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *)
1028   case $ac_top_srcdir in
1029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032   esac;;
1033 esac
1034
1035     cd $ac_dir
1036     # Check for guested configure; otherwise get Cygnus style configure.
1037     if test -f $ac_srcdir/configure.gnu; then
1038       echo
1039       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1040     elif test -f $ac_srcdir/configure; then
1041       echo
1042       $SHELL $ac_srcdir/configure  --help=recursive
1043     elif test -f $ac_srcdir/configure.ac ||
1044            test -f $ac_srcdir/configure.in; then
1045       echo
1046       $ac_configure --help
1047     else
1048       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1049     fi
1050     cd $ac_popdir
1051   done
1052 fi
1053
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1056   cat <<\_ACEOF
1057
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1061 _ACEOF
1062   exit 0
1063 fi
1064 exec 5>config.log
1065 cat >&5 <<_ACEOF
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1068
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59.  Invocation command line was
1071
1072   $ $0 $@
1073
1074 _ACEOF
1075 {
1076 cat <<_ASUNAME
1077 ## --------- ##
1078 ## Platform. ##
1079 ## --------- ##
1080
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1089
1090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1097
1098 _ASUNAME
1099
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 for as_dir in $PATH
1102 do
1103   IFS=$as_save_IFS
1104   test -z "$as_dir" && as_dir=.
1105   echo "PATH: $as_dir"
1106 done
1107
1108 } >&5
1109
1110 cat >&5 <<_ACEOF
1111
1112
1113 ## ----------- ##
1114 ## Core tests. ##
1115 ## ----------- ##
1116
1117 _ACEOF
1118
1119
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_configure_args=
1126 ac_configure_args0=
1127 ac_configure_args1=
1128 ac_sep=
1129 ac_must_keep_next=false
1130 for ac_pass in 1 2
1131 do
1132   for ac_arg
1133   do
1134     case $ac_arg in
1135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137     | -silent | --silent | --silen | --sile | --sil)
1138       continue ;;
1139     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1141     esac
1142     case $ac_pass in
1143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144     2)
1145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146       if test $ac_must_keep_next = true; then
1147         ac_must_keep_next=false # Got value, back to normal.
1148       else
1149         case $ac_arg in
1150           *=* | --config-cache | -C | -disable-* | --disable-* \
1151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153           | -with-* | --with-* | -without-* | --without-* | --x)
1154             case "$ac_configure_args0 " in
1155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1156             esac
1157             ;;
1158           -* ) ac_must_keep_next=true ;;
1159         esac
1160       fi
1161       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162       # Get rid of the leading space.
1163       ac_sep=" "
1164       ;;
1165     esac
1166   done
1167 done
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log.  We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177   # Save into config.log some information that might help in debugging.
1178   {
1179     echo
1180
1181     cat <<\_ASBOX
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1185 _ASBOX
1186     echo
1187     # The following way of writing the cache mishandles newlines in values,
1188 {
1189   (set) 2>&1 |
1190     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1191     *ac_space=\ *)
1192       sed -n \
1193         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195       ;;
1196     *)
1197       sed -n \
1198         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199       ;;
1200     esac;
1201 }
1202     echo
1203
1204     cat <<\_ASBOX
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1208 _ASBOX
1209     echo
1210     for ac_var in $ac_subst_vars
1211     do
1212       eval ac_val=$`echo $ac_var`
1213       echo "$ac_var='"'"'$ac_val'"'"'"
1214     done | sort
1215     echo
1216
1217     if test -n "$ac_subst_files"; then
1218       cat <<\_ASBOX
1219 ## ------------- ##
1220 ## Output files. ##
1221 ## ------------- ##
1222 _ASBOX
1223       echo
1224       for ac_var in $ac_subst_files
1225       do
1226         eval ac_val=$`echo $ac_var`
1227         echo "$ac_var='"'"'$ac_val'"'"'"
1228       done | sort
1229       echo
1230     fi
1231
1232     if test -s confdefs.h; then
1233       cat <<\_ASBOX
1234 ## ----------- ##
1235 ## confdefs.h. ##
1236 ## ----------- ##
1237 _ASBOX
1238       echo
1239       sed "/^$/d" confdefs.h | sort
1240       echo
1241     fi
1242     test "$ac_signal" != 0 &&
1243       echo "$as_me: caught signal $ac_signal"
1244     echo "$as_me: exit $exit_status"
1245   } >&5
1246   rm -f core *.core &&
1247   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1248     exit $exit_status
1249      ' 0
1250 for ac_signal in 1 2 13 15; do
1251   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 done
1253 ac_signal=0
1254
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1258 echo >confdefs.h
1259
1260 # Predefined preprocessor variables.
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 _ACEOF
1285
1286
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290   if test "x$prefix" != xNONE; then
1291     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292   else
1293     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1294   fi
1295 fi
1296 for ac_site_file in $CONFIG_SITE; do
1297   if test -r "$ac_site_file"; then
1298     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300     sed 's/^/| /' "$ac_site_file" >&5
1301     . "$ac_site_file"
1302   fi
1303 done
1304
1305 if test -r "$cache_file"; then
1306   # Some versions of bash will fail to source /dev/null (special
1307   # files actually), so we avoid doing that.
1308   if test -f "$cache_file"; then
1309     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1311     case $cache_file in
1312       [\\/]* | ?:[\\/]* ) . $cache_file;;
1313       *)                      . ./$cache_file;;
1314     esac
1315   fi
1316 else
1317   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1319   >$cache_file
1320 fi
1321
1322 # Check that the precious variables saved in the cache have kept the same
1323 # value.
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328   eval ac_new_set=\$ac_env_${ac_var}_set
1329   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330   eval ac_new_val="\$ac_env_${ac_var}_value"
1331   case $ac_old_set,$ac_new_set in
1332     set,)
1333       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335       ac_cache_corrupted=: ;;
1336     ,set)
1337       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339       ac_cache_corrupted=: ;;
1340     ,);;
1341     *)
1342       if test "x$ac_old_val" != "x$ac_new_val"; then
1343         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1346 echo "$as_me:   former value:  $ac_old_val" >&2;}
1347         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1348 echo "$as_me:   current value: $ac_new_val" >&2;}
1349         ac_cache_corrupted=:
1350       fi;;
1351   esac
1352   # Pass precious variables to config.status.
1353   if test "$ac_new_set" = set; then
1354     case $ac_new_val in
1355     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357     *) ac_arg=$ac_var=$ac_new_val ;;
1358     esac
1359     case " $ac_configure_args " in
1360       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1361       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362     esac
1363   fi
1364 done
1365 if $ac_cache_corrupted; then
1366   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372
1373 ac_ext=c
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 BUILD_DIR=`pwd`
1398 cd ..
1399 TOP_DIR=`pwd`
1400 cd ${BUILD_DIR}
1401
1402
1403 ac_aux_dir=
1404 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1405   if test -f $ac_dir/install-sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install-sh -c"
1408     break
1409   elif test -f $ac_dir/install.sh; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/install.sh -c"
1412     break
1413   elif test -f $ac_dir/shtool; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/shtool install -c"
1416     break
1417   fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1429
1430
1431
1432
1433
1434 for ac_prog in true
1435 do
1436   # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   case $TRUEPRG in
1444   [\\/]* | ?:[\\/]*)
1445   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446   ;;
1447   *)
1448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451   IFS=$as_save_IFS
1452   test -z "$as_dir" && as_dir=.
1453   for ac_exec_ext in '' $ac_executable_extensions; do
1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457     break 2
1458   fi
1459 done
1460 done
1461
1462   ;;
1463 esac
1464 fi
1465 TRUEPRG=$ac_cv_path_TRUEPRG
1466
1467 if test -n "$TRUEPRG"; then
1468   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1469 echo "${ECHO_T}$TRUEPRG" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475   test -n "$TRUEPRG" && break
1476 done
1477 test -n "$TRUEPRG" || TRUEPRG=":"
1478
1479 for ac_prog in false
1480 do
1481   # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   case $FALSEPRG in
1489   [\\/]* | ?:[\\/]*)
1490   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491   ;;
1492   *)
1493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503   fi
1504 done
1505 done
1506
1507   ;;
1508 esac
1509 fi
1510 FALSEPRG=$ac_cv_path_FALSEPRG
1511
1512 if test -n "$FALSEPRG"; then
1513   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1514 echo "${ECHO_T}$FALSEPRG" >&6
1515 else
1516   echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520   test -n "$FALSEPRG" && break
1521 done
1522 test -n "$FALSEPRG" || FALSEPRG=":"
1523
1524
1525 #AC_CANONICAL_HOST
1526
1527 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1530 echo "configuring for bacula $VERSION ($DATE)"
1531
1532
1533
1534 ac_ext=c
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if test -n "$ac_tool_prefix"; then
1540   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   if test -n "$CC"; then
1548   ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553   IFS=$as_save_IFS
1554   test -z "$as_dir" && as_dir=.
1555   for ac_exec_ext in '' $ac_executable_extensions; do
1556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559     break 2
1560   fi
1561 done
1562 done
1563
1564 fi
1565 fi
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568   echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571   echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1573 fi
1574
1575 fi
1576 if test -z "$ac_cv_prog_CC"; then
1577   ac_ct_CC=$CC
1578   # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   if test -n "$ac_ct_CC"; then
1586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   for ac_exec_ext in '' $ac_executable_extensions; do
1594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595     ac_cv_prog_ac_ct_CC="gcc"
1596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597     break 2
1598   fi
1599 done
1600 done
1601
1602 fi
1603 fi
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613   CC=$ac_ct_CC
1614 else
1615   CC="$ac_cv_prog_CC"
1616 fi
1617
1618 if test -z "$CC"; then
1619   if test -n "$ac_tool_prefix"; then
1620   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   if test -n "$CC"; then
1628   ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     ac_cv_prog_CC="${ac_tool_prefix}cc"
1638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639     break 2
1640   fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648   echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 fi
1656 if test -z "$ac_cv_prog_CC"; then
1657   ac_ct_CC=$CC
1658   # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   if test -n "$ac_ct_CC"; then
1666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   for ac_exec_ext in '' $ac_executable_extensions; do
1674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675     ac_cv_prog_ac_ct_CC="cc"
1676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677     break 2
1678   fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1688 else
1689   echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693   CC=$ac_ct_CC
1694 else
1695   CC="$ac_cv_prog_CC"
1696 fi
1697
1698 fi
1699 if test -z "$CC"; then
1700   # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   if test -n "$CC"; then
1708   ac_cv_prog_CC="$CC" # Let the user override the test.
1709 else
1710   ac_prog_rejected=no
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1719        ac_prog_rejected=yes
1720        continue
1721      fi
1722     ac_cv_prog_CC="cc"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 if test $ac_prog_rejected = yes; then
1730   # We found a bogon in the path, so make sure we never use it.
1731   set dummy $ac_cv_prog_CC
1732   shift
1733   if test $# != 0; then
1734     # We chose a different compiler from the bogus one.
1735     # However, it has the same basename, so the bogon will be chosen
1736     # first if we set CC to just the basename; use the full file name.
1737     shift
1738     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1739   fi
1740 fi
1741 fi
1742 fi
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745   echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752 fi
1753 if test -z "$CC"; then
1754   if test -n "$ac_tool_prefix"; then
1755   for ac_prog in cl
1756   do
1757     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   if test -n "$CC"; then
1765   ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770   IFS=$as_save_IFS
1771   test -z "$as_dir" && as_dir=.
1772   for ac_exec_ext in '' $ac_executable_extensions; do
1773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776     break 2
1777   fi
1778 done
1779 done
1780
1781 fi
1782 fi
1783 CC=$ac_cv_prog_CC
1784 if test -n "$CC"; then
1785   echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1787 else
1788   echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1790 fi
1791
1792     test -n "$CC" && break
1793   done
1794 fi
1795 if test -z "$CC"; then
1796   ac_ct_CC=$CC
1797   for ac_prog in cl
1798 do
1799   # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804   echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806   if test -n "$ac_ct_CC"; then
1807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812   IFS=$as_save_IFS
1813   test -z "$as_dir" && as_dir=.
1814   for ac_exec_ext in '' $ac_executable_extensions; do
1815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816     ac_cv_prog_ac_ct_CC="$ac_prog"
1817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818     break 2
1819   fi
1820 done
1821 done
1822
1823 fi
1824 fi
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1829 else
1830   echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834   test -n "$ac_ct_CC" && break
1835 done
1836
1837   CC=$ac_ct_CC
1838 fi
1839
1840 fi
1841
1842
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&2;}
1847    { (exit 1); exit 1; }; }
1848
1849 # Provide some information about the compiler.
1850 echo "$as_me:$LINENO:" \
1851      "checking for C compiler version" >&5
1852 ac_compiler=`set X $ac_compile; echo $2`
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1854   (eval $ac_compiler --version </dev/null >&5) 2>&5
1855   ac_status=$?
1856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857   (exit $ac_status); }
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1859   (eval $ac_compiler -v </dev/null >&5) 2>&5
1860   ac_status=$?
1861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862   (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1864   (eval $ac_compiler -V </dev/null >&5) 2>&5
1865   ac_status=$?
1866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867   (exit $ac_status); }
1868
1869 cat >conftest.$ac_ext <<_ACEOF
1870 /* confdefs.h.  */
1871 _ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h.  */
1875
1876 int
1877 main ()
1878 {
1879
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 ac_clean_files_save=$ac_clean_files
1885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1886 # Try to create an executable without -o first, disregard a.out.
1887 # It will help us diagnose broken compilers, and finding out an intuition
1888 # of exeext.
1889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1893   (eval $ac_link_default) 2>&5
1894   ac_status=$?
1895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896   (exit $ac_status); }; then
1897   # Find the output, starting from the most likely.  This scheme is
1898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # resort.
1900
1901 # Be careful to initialize this variable, since it used to be cached.
1902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1903 ac_cv_exeext=
1904 # b.out is created by i960 compilers.
1905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1906 do
1907   test -f "$ac_file" || continue
1908   case $ac_file in
1909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910         ;;
1911     conftest.$ac_ext )
1912         # This is the source file.
1913         ;;
1914     [ab].out )
1915         # We found the default executable, but exeext='' is most
1916         # certainly right.
1917         break;;
1918     *.* )
1919         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920         # FIXME: I believe we export ac_cv_exeext for Libtool,
1921         # but it would be cool to find out if it's true.  Does anybody
1922         # maintain Libtool? --akim.
1923         export ac_cv_exeext
1924         break;;
1925     * )
1926         break;;
1927   esac
1928 done
1929 else
1930   echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: C compiler cannot create executables
1936 See \`config.log' for more details." >&2;}
1937    { (exit 77); exit 77; }; }
1938 fi
1939
1940 ac_exeext=$ac_cv_exeext
1941 echo "$as_me:$LINENO: result: $ac_file" >&5
1942 echo "${ECHO_T}$ac_file" >&6
1943
1944 # Check the compiler produces executables we can run.  If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949 # If not cross compiling, check that we can run a simple program.
1950 if test "$cross_compiling" != yes; then
1951   if { ac_try='./$ac_file'
1952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953   (eval $ac_try) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; }; then
1957     cross_compiling=no
1958   else
1959     if test "$cross_compiling" = maybe; then
1960         cross_compiling=yes
1961     else
1962         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1963 If you meant to cross compile, use \`--host'.
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'.
1967 See \`config.log' for more details." >&2;}
1968    { (exit 1); exit 1; }; }
1969     fi
1970   fi
1971 fi
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1974
1975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1976 ac_clean_files=$ac_clean_files_save
1977 # Check the compiler produces executables we can run.  If not, either
1978 # the compiler is broken, or we cross compile.
1979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1982 echo "${ECHO_T}$cross_compiling" >&6
1983
1984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1987   (eval $ac_link) 2>&5
1988   ac_status=$?
1989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990   (exit $ac_status); }; then
1991   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1992 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1993 # work properly (i.e., refer to `conftest.exe'), while it won't with
1994 # `rm'.
1995 for ac_file in conftest.exe conftest conftest.*; do
1996   test -f "$ac_file" || continue
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1999     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000           export ac_cv_exeext
2001           break;;
2002     * ) break;;
2003   esac
2004 done
2005 else
2006   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 rm -f conftest$ac_cv_exeext
2014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2015 echo "${ECHO_T}$ac_cv_exeext" >&6
2016
2017 rm -f conftest.$ac_ext
2018 EXEEXT=$ac_cv_exeext
2019 ac_exeext=$EXEEXT
2020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2022 if test "${ac_cv_objext+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.o conftest.obj
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042   (eval $ac_compile) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; then
2046   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047   case $ac_file in
2048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2049     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2050        break;;
2051   esac
2052 done
2053 else
2054   echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2060 See \`config.log' for more details." >&2;}
2061    { (exit 1); exit 1; }; }
2062 fi
2063
2064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2065 fi
2066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2067 echo "${ECHO_T}$ac_cv_objext" >&6
2068 OBJEXT=$ac_cv_objext
2069 ac_objext=$OBJEXT
2070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085 #ifndef __GNUC__
2086        choke me
2087 #endif
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>conftest.er1
2096   ac_status=$?
2097   grep -v '^ *+' conftest.er1 >conftest.err
2098   rm -f conftest.er1
2099   cat conftest.err >&5
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); } &&
2102          { ac_try='test -z "$ac_c_werror_flag"
2103                          || test ! -s conftest.err'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; } &&
2109          { ac_try='test -s conftest.$ac_objext'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115   ac_compiler_gnu=yes
2116 else
2117   echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 ac_compiler_gnu=no
2121 fi
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124
2125 fi
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2131 CFLAGS="-g"
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h.  */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h.  */
2143
2144 int
2145 main ()
2146 {
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>conftest.er1
2155   ac_status=$?
2156   grep -v '^ *+' conftest.er1 >conftest.err
2157   rm -f conftest.er1
2158   cat conftest.err >&5
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); } &&
2161          { ac_try='test -z "$ac_c_werror_flag"
2162                          || test ! -s conftest.err'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   ac_cv_prog_cc_g=yes
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_cv_prog_cc_g=no
2180 fi
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2185 if test "$ac_test_CFLAGS" = set; then
2186   CFLAGS=$ac_save_CFLAGS
2187 elif test $ac_cv_prog_cc_g = yes; then
2188   if test "$GCC" = yes; then
2189     CFLAGS="-g -O2"
2190   else
2191     CFLAGS="-g"
2192   fi
2193 else
2194   if test "$GCC" = yes; then
2195     CFLAGS="-O2"
2196   else
2197     CFLAGS=
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   ac_cv_prog_cc_stdc=no
2206 ac_save_CC=$CC
2207 cat >conftest.$ac_ext <<_ACEOF
2208 /* confdefs.h.  */
2209 _ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h.  */
2213 #include <stdarg.h>
2214 #include <stdio.h>
2215 #include <sys/types.h>
2216 #include <sys/stat.h>
2217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2218 struct buf { int x; };
2219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2221      char **p;
2222      int i;
2223 {
2224   return p[i];
2225 }
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2227 {
2228   char *s;
2229   va_list v;
2230   va_start (v,p);
2231   s = g (p, va_arg (v,int));
2232   va_end (v);
2233   return s;
2234 }
2235
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2237    function prototypes and stuff, but not '\xHH' hex character constants.
2238    These don't provoke an error unfortunately, instead are silently treated
2239    as 'x'.  The following induces an error, until -std1 is added to get
2240    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2241    array size at least.  It's necessary to write '\x00'==0 to get something
2242    that's true only with -std1.  */
2243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2244
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2249 int argc;
2250 char **argv;
2251 int
2252 main ()
2253 {
2254 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 # Don't try gcc -ansi; that turns off useful extensions and
2260 # breaks some systems' header files.
2261 # AIX                   -qlanglvl=ansi
2262 # Ultrix and OSF/1      -std1
2263 # HP-UX 10.20 and later -Ae
2264 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2265 # SVR4                  -Xc -D__EXTENSIONS__
2266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2267 do
2268   CC="$ac_save_CC $ac_arg"
2269   rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>conftest.er1
2272   ac_status=$?
2273   grep -v '^ *+' conftest.er1 >conftest.err
2274   rm -f conftest.er1
2275   cat conftest.err >&5
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -z "$ac_c_werror_flag"
2279                          || test ! -s conftest.err'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   ac_cv_prog_cc_stdc=$ac_arg
2292 break
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 fi
2298 rm -f conftest.err conftest.$ac_objext
2299 done
2300 rm -f conftest.$ac_ext conftest.$ac_objext
2301 CC=$ac_save_CC
2302
2303 fi
2304
2305 case "x$ac_cv_prog_cc_stdc" in
2306   x|xno)
2307     echo "$as_me:$LINENO: result: none needed" >&5
2308 echo "${ECHO_T}none needed" >&6 ;;
2309   *)
2310     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312     CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 esac
2314
2315 # Some people use a C++ compiler to compile C.  Since we use `exit',
2316 # in C++ we need to declare it.  In case someone uses the same compiler
2317 # for both compiling C and C++ we need to have the C++ compiler decide
2318 # the declaration of exit, since it's the most demanding environment.
2319 cat >conftest.$ac_ext <<_ACEOF
2320 #ifndef __cplusplus
2321   choke me
2322 #endif
2323 _ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326   (eval $ac_compile) 2>conftest.er1
2327   ac_status=$?
2328   grep -v '^ *+' conftest.er1 >conftest.err
2329   rm -f conftest.er1
2330   cat conftest.err >&5
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); } &&
2333          { ac_try='test -z "$ac_c_werror_flag"
2334                          || test ! -s conftest.err'
2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336   (eval $ac_try) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; } &&
2340          { ac_try='test -s conftest.$ac_objext'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; }; then
2346   for ac_declaration in \
2347    '' \
2348    'extern "C" void std::exit (int) throw (); using std::exit;' \
2349    'extern "C" void std::exit (int); using std::exit;' \
2350    'extern "C" void exit (int) throw ();' \
2351    'extern "C" void exit (int);' \
2352    'void exit (int);'
2353 do
2354   cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360 $ac_declaration
2361 #include <stdlib.h>
2362 int
2363 main ()
2364 {
2365 exit (42);
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -z "$ac_c_werror_flag"
2380                          || test ! -s conftest.err'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; }; then
2392   :
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 continue
2398 fi
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400   cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 $ac_declaration
2407 int
2408 main ()
2409 {
2410 exit (42);
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417   (eval $ac_compile) 2>conftest.er1
2418   ac_status=$?
2419   grep -v '^ *+' conftest.er1 >conftest.err
2420   rm -f conftest.er1
2421   cat conftest.err >&5
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } &&
2424          { ac_try='test -z "$ac_c_werror_flag"
2425                          || test ! -s conftest.err'
2426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427   (eval $ac_try) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; }; then
2437   break
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 fi
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 done
2445 rm -f conftest*
2446 if test -n "$ac_declaration"; then
2447   echo '#ifdef __cplusplus' >>confdefs.h
2448   echo $ac_declaration      >>confdefs.h
2449   echo '#endif'             >>confdefs.h
2450 fi
2451
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464 ac_ext=cc
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2471   do
2472     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_CXX+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$CXX"; then
2480   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495
2496 fi
2497 fi
2498 CXX=$ac_cv_prog_CXX
2499 if test -n "$CXX"; then
2500   echo "$as_me:$LINENO: result: $CXX" >&5
2501 echo "${ECHO_T}$CXX" >&6
2502 else
2503   echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2505 fi
2506
2507     test -n "$CXX" && break
2508   done
2509 fi
2510 if test -z "$CXX"; then
2511   ac_ct_CXX=$CXX
2512   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 do
2514   # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   if test -n "$ac_ct_CXX"; then
2522   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531     ac_cv_prog_ac_ct_CXX="$ac_prog"
2532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536 done
2537
2538 fi
2539 fi
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6
2544 else
2545   echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2547 fi
2548
2549   test -n "$ac_ct_CXX" && break
2550 done
2551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2552
2553   CXX=$ac_ct_CXX
2554 fi
2555
2556
2557 # Provide some information about the compiler.
2558 echo "$as_me:$LINENO:" \
2559      "checking for C++ compiler version" >&5
2560 ac_compiler=`set X $ac_compile; echo $2`
2561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2562   (eval $ac_compiler --version </dev/null >&5) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2567   (eval $ac_compiler -v </dev/null >&5) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2572   (eval $ac_compiler -V </dev/null >&5) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }
2576
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592 #ifndef __GNUC__
2593        choke me
2594 #endif
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_cxx_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_compiler_gnu=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 ac_compiler_gnu=no
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631
2632 fi
2633 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2635 GXX=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CXXFLAGS=${CXXFLAGS+set}
2637 ac_save_CXXFLAGS=$CXXFLAGS
2638 CXXFLAGS="-g"
2639 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2640 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2641 if test "${ac_cv_prog_cxx_g+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650
2651 int
2652 main ()
2653 {
2654
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661   (eval $ac_compile) 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } &&
2668          { ac_try='test -z "$ac_cxx_werror_flag"
2669                          || test ! -s conftest.err'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cxx_g=yes
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 ac_cv_prog_cxx_g=no
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693   CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695   if test "$GXX" = yes; then
2696     CXXFLAGS="-g -O2"
2697   else
2698     CXXFLAGS="-g"
2699   fi
2700 else
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-O2"
2703   else
2704     CXXFLAGS=
2705   fi
2706 fi
2707 for ac_declaration in \
2708    '' \
2709    'extern "C" void std::exit (int) throw (); using std::exit;' \
2710    'extern "C" void std::exit (int); using std::exit;' \
2711    'extern "C" void exit (int) throw ();' \
2712    'extern "C" void exit (int);' \
2713    'void exit (int);'
2714 do
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721 $ac_declaration
2722 #include <stdlib.h>
2723 int
2724 main ()
2725 {
2726 exit (42);
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733   (eval $ac_compile) 2>conftest.er1
2734   ac_status=$?
2735   grep -v '^ *+' conftest.er1 >conftest.err
2736   rm -f conftest.er1
2737   cat conftest.err >&5
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -z "$ac_cxx_werror_flag"
2741                          || test ! -s conftest.err'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   :
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 continue
2759 fi
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761   cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767 $ac_declaration
2768 int
2769 main ()
2770 {
2771 exit (42);
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778   (eval $ac_compile) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -z "$ac_cxx_werror_flag"
2786                          || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   break
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 fi
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 done
2806 rm -f conftest*
2807 if test -n "$ac_declaration"; then
2808   echo '#ifdef __cplusplus' >>confdefs.h
2809   echo $ac_declaration      >>confdefs.h
2810   echo '#endif'             >>confdefs.h
2811 fi
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819 if test "x$CC" != xcc; then
2820   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2822 else
2823   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2824 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2825 fi
2826 set dummy $CC; ac_cc=`echo $2 |
2827                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2828 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838 int
2839 main ()
2840 {
2841
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 # Make sure it works both with $CC and with simple cc.
2847 # We do the test twice because some compilers refuse to overwrite an
2848 # existing .o file with -o, though they will create one.
2849 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2850 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } &&
2855    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); };
2860 then
2861   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2862   if test "x$CC" != xcc; then
2863     # Test first that cc exists at all.
2864     if { ac_try='cc -c conftest.$ac_ext >&5'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2871       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); };
2881       then
2882         # cc works too.
2883         :
2884       else
2885         # cc exists but doesn't like -o.
2886         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2887       fi
2888     fi
2889   fi
2890 else
2891   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2892 fi
2893 rm -f conftest*
2894
2895 fi
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2897   echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902
2903 cat >>confdefs.h <<\_ACEOF
2904 #define NO_MINUS_C_MINUS_O 1
2905 _ACEOF
2906
2907 fi
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918   CPP=
2919 fi
2920 if test -z "$CPP"; then
2921   if test "${ac_cv_prog_CPP+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924       # Double quotes because CPP needs to be expanded
2925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926     do
2927       ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2929 do
2930   # Use a header file that comes with gcc, so configuring glibc
2931   # with a fresh cross-compiler works.
2932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933   # <limits.h> exists even on freestanding compilers.
2934   # On the NeXT, cc -E runs the code through the compiler's parser,
2935   # not just through cpp. "Syntax error" is here to catch this case.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960   else
2961     ac_cpp_err=
2962   fi
2963 else
2964   ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967   :
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Broken: fails on valid input.
2973 continue
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977   # OK, works on sane cases.  Now check whether non-existent headers
2978   # can be detected and how.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998   else
2999     ac_cpp_err=
3000   fi
3001 else
3002   ac_cpp_err=yes
3003 fi
3004 if test -z "$ac_cpp_err"; then
3005   # Broken: success on invalid input.
3006 continue
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011   # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3014 fi
3015 rm -f conftest.err conftest.$ac_ext
3016
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021   break
3022 fi
3023
3024     done
3025     ac_cv_prog_CPP=$CPP
3026
3027 fi
3028   CPP=$ac_cv_prog_CPP
3029 else
3030   ac_cv_prog_CPP=$CPP
3031 fi
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3036 do
3037   # Use a header file that comes with gcc, so configuring glibc
3038   # with a fresh cross-compiler works.
3039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040   # <limits.h> exists even on freestanding compilers.
3041   # On the NeXT, cc -E runs the code through the compiler's parser,
3042   # not just through cpp. "Syntax error" is here to catch this case.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054                      Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   :
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Broken: fails on valid input.
3080 continue
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084   # OK, works on sane cases.  Now check whether non-existent headers
3085   # can be detected and how.
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } >/dev/null; then
3102   if test -s conftest.err; then
3103     ac_cpp_err=$ac_c_preproc_warn_flag
3104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105   else
3106     ac_cpp_err=
3107   fi
3108 else
3109   ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112   # Broken: success on invalid input.
3113 continue
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3121 fi
3122 rm -f conftest.err conftest.$ac_ext
3123
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3128   :
3129 else
3130   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150     then ac_cv_prog_egrep='grep -E'
3151     else ac_cv_prog_egrep='egrep'
3152     fi
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156  EGREP=$ac_cv_prog_egrep
3157
3158
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165     ac_pattern="Autoconf.*'x'"
3166   cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <sgtty.h>
3173 Autoconf TIOCGETP
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177   ac_cv_prog_gcc_traditional=yes
3178 else
3179   ac_cv_prog_gcc_traditional=no
3180 fi
3181 rm -f conftest*
3182
3183
3184   if test $ac_cv_prog_gcc_traditional = no; then
3185     cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <termio.h>
3192 Autoconf TCGETA
3193 _ACEOF
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196   ac_cv_prog_gcc_traditional=yes
3197 fi
3198 rm -f conftest*
3199
3200   fi
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204   if test $ac_cv_prog_gcc_traditional = yes; then
3205     CC="$CC -traditional"
3206   fi
3207 fi
3208
3209 if test "x$CC" = xgcc; then
3210    cat >>confdefs.h <<\_ACEOF
3211 #define HAVE_GCC 1
3212 _ACEOF
3213
3214 fi
3215 # Extract the first word of "$CXX", so it can be a program name with args.
3216 set dummy $CXX; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_CXX+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   case $CXX in
3223   [\\/]* | ?:[\\/]*)
3224   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3225   ;;
3226   *)
3227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3242   ;;
3243 esac
3244 fi
3245 CXX=$ac_cv_path_CXX
3246
3247 if test -n "$CXX"; then
3248   echo "$as_me:$LINENO: result: $CXX" >&5
3249 echo "${ECHO_T}$CXX" >&6
3250 else
3251   echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253 fi
3254
3255 if test ! -e $CXX; then
3256    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3257 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3258    { (exit 1); exit 1; }; }
3259 fi
3260
3261 # Find a good install program.  We prefer a C program (faster),
3262 # so one script is as good as another.  But avoid the broken or
3263 # incompatible versions:
3264 # SysV /etc/install, /usr/sbin/install
3265 # SunOS /usr/etc/install
3266 # IRIX /sbin/install
3267 # AIX /bin/install
3268 # AmigaOS /C/install, which installs bootblocks on floppy discs
3269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3272 # OS/2's system install, which has a completely different semantic
3273 # ./install, which can be erroneously created by make from ./install.sh.
3274 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3275 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3276 if test -z "$INSTALL"; then
3277 if test "${ac_cv_path_install+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   # Account for people who put trailing slashes in PATH elements.
3286 case $as_dir/ in
3287   ./ | .// | /cC/* | \
3288   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3289   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3290   /usr/ucb/* ) ;;
3291   *)
3292     # OSF1 and SCO ODT 3.0 have their own names for install.
3293     # Don't use installbsd from OSF since it installs stuff as root
3294     # by default.
3295     for ac_prog in ginstall scoinst install; do
3296       for ac_exec_ext in '' $ac_executable_extensions; do
3297         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3298           if test $ac_prog = install &&
3299             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300             # AIX install.  It has an incompatible calling convention.
3301             :
3302           elif test $ac_prog = install &&
3303             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3304             # program-specific install script used by HP pwplus--don't use.
3305             :
3306           else
3307             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308             break 3
3309           fi
3310         fi
3311       done
3312     done
3313     ;;
3314 esac
3315 done
3316
3317
3318 fi
3319   if test "${ac_cv_path_install+set}" = set; then
3320     INSTALL=$ac_cv_path_install
3321   else
3322     # As a last resort, use the slow shell script.  We don't cache a
3323     # path for INSTALL within a source directory, because that will
3324     # break other packages using the cache if that directory is
3325     # removed, or if the path is relative.
3326     INSTALL=$ac_install_sh
3327   fi
3328 fi
3329 echo "$as_me:$LINENO: result: $INSTALL" >&5
3330 echo "${ECHO_T}$INSTALL" >&6
3331
3332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3333 # It thinks the first close brace ends the variable substitution.
3334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3335
3336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3337
3338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3339
3340 if test -n "$ac_tool_prefix"; then
3341   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3343 echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_RANLIB+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   if test -n "$RANLIB"; then
3349   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356   for ac_exec_ext in '' $ac_executable_extensions; do
3357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363 done
3364
3365 fi
3366 fi
3367 RANLIB=$ac_cv_prog_RANLIB
3368 if test -n "$RANLIB"; then
3369   echo "$as_me:$LINENO: result: $RANLIB" >&5
3370 echo "${ECHO_T}$RANLIB" >&6
3371 else
3372   echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3374 fi
3375
3376 fi
3377 if test -z "$ac_cv_prog_RANLIB"; then
3378   ac_ct_RANLIB=$RANLIB
3379   # Extract the first word of "ranlib", so it can be a program name with args.
3380 set dummy ranlib; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$ac_ct_RANLIB"; then
3387   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394   for ac_exec_ext in '' $ac_executable_extensions; do
3395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396     ac_cv_prog_ac_ct_RANLIB="ranlib"
3397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401 done
3402
3403   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3404 fi
3405 fi
3406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3407 if test -n "$ac_ct_RANLIB"; then
3408   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3409 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
3414
3415   RANLIB=$ac_ct_RANLIB
3416 else
3417   RANLIB="$ac_cv_prog_RANLIB"
3418 fi
3419
3420 # Extract the first word of "mv", so it can be a program name with args.
3421 set dummy mv; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_path_MV+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   case $MV in
3428   [\\/]* | ?:[\\/]*)
3429   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3430   ;;
3431   *)
3432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435   IFS=$as_save_IFS
3436   test -z "$as_dir" && as_dir=.
3437   for ac_exec_ext in '' $ac_executable_extensions; do
3438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3439     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441     break 2
3442   fi
3443 done
3444 done
3445
3446   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3447   ;;
3448 esac
3449 fi
3450 MV=$ac_cv_path_MV
3451
3452 if test -n "$MV"; then
3453   echo "$as_me:$LINENO: result: $MV" >&5
3454 echo "${ECHO_T}$MV" >&6
3455 else
3456   echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3458 fi
3459
3460 # Extract the first word of "rm", so it can be a program name with args.
3461 set dummy rm; ac_word=$2
3462 echo "$as_me:$LINENO: checking for $ac_word" >&5
3463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3464 if test "${ac_cv_path_RM+set}" = set; then
3465   echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467   case $RM in
3468   [\\/]* | ?:[\\/]*)
3469   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3470   ;;
3471   *)
3472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475   IFS=$as_save_IFS
3476   test -z "$as_dir" && as_dir=.
3477   for ac_exec_ext in '' $ac_executable_extensions; do
3478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481     break 2
3482   fi
3483 done
3484 done
3485
3486   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3487   ;;
3488 esac
3489 fi
3490 RM=$ac_cv_path_RM
3491
3492 if test -n "$RM"; then
3493   echo "$as_me:$LINENO: result: $RM" >&5
3494 echo "${ECHO_T}$RM" >&6
3495 else
3496   echo "$as_me:$LINENO: result: no" >&5
3497 echo "${ECHO_T}no" >&6
3498 fi
3499
3500 # Extract the first word of "cp", so it can be a program name with args.
3501 set dummy cp; ac_word=$2
3502 echo "$as_me:$LINENO: checking for $ac_word" >&5
3503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3504 if test "${ac_cv_path_CP+set}" = set; then
3505   echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507   case $CP in
3508   [\\/]* | ?:[\\/]*)
3509   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3510   ;;
3511   *)
3512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517   for ac_exec_ext in '' $ac_executable_extensions; do
3518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521     break 2
3522   fi
3523 done
3524 done
3525
3526   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3527   ;;
3528 esac
3529 fi
3530 CP=$ac_cv_path_CP
3531
3532 if test -n "$CP"; then
3533   echo "$as_me:$LINENO: result: $CP" >&5
3534 echo "${ECHO_T}$CP" >&6
3535 else
3536   echo "$as_me:$LINENO: result: no" >&5
3537 echo "${ECHO_T}no" >&6
3538 fi
3539
3540 # Extract the first word of "sed", so it can be a program name with args.
3541 set dummy sed; ac_word=$2
3542 echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544 if test "${ac_cv_path_SED+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   case $SED in
3548   [\\/]* | ?:[\\/]*)
3549   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3550   ;;
3551   *)
3552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555   IFS=$as_save_IFS
3556   test -z "$as_dir" && as_dir=.
3557   for ac_exec_ext in '' $ac_executable_extensions; do
3558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561     break 2
3562   fi
3563 done
3564 done
3565
3566   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3567   ;;
3568 esac
3569 fi
3570 SED=$ac_cv_path_SED
3571
3572 if test -n "$SED"; then
3573   echo "$as_me:$LINENO: result: $SED" >&5
3574 echo "${ECHO_T}$SED" >&6
3575 else
3576   echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3578 fi
3579
3580 # Extract the first word of "echo", so it can be a program name with args.
3581 set dummy echo; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_path_ECHO+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   case $ECHO in
3588   [\\/]* | ?:[\\/]*)
3589   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3590   ;;
3591   *)
3592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597   for ac_exec_ext in '' $ac_executable_extensions; do
3598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604 done
3605
3606   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3607   ;;
3608 esac
3609 fi
3610 ECHO=$ac_cv_path_ECHO
3611
3612 if test -n "$ECHO"; then
3613   echo "$as_me:$LINENO: result: $ECHO" >&5
3614 echo "${ECHO_T}$ECHO" >&6
3615 else
3616   echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6
3618 fi
3619
3620 # Extract the first word of "cmp", so it can be a program name with args.
3621 set dummy cmp; ac_word=$2
3622 echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3624 if test "${ac_cv_path_CMP+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   case $CMP in
3628   [\\/]* | ?:[\\/]*)
3629   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3630   ;;
3631   *)
3632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3634 do
3635   IFS=$as_save_IFS
3636   test -z "$as_dir" && as_dir=.
3637   for ac_exec_ext in '' $ac_executable_extensions; do
3638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3639     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641     break 2
3642   fi
3643 done
3644 done
3645
3646   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3647   ;;
3648 esac
3649 fi
3650 CMP=$ac_cv_path_CMP
3651
3652 if test -n "$CMP"; then
3653   echo "$as_me:$LINENO: result: $CMP" >&5
3654 echo "${ECHO_T}$CMP" >&6
3655 else
3656   echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3658 fi
3659
3660 # Extract the first word of "tbl", so it can be a program name with args.
3661 set dummy tbl; ac_word=$2
3662 echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3664 if test "${ac_cv_path_TBL+set}" = set; then
3665   echo $ECHO_N "(cached) $ECHO_C" >&6
3666 else
3667   case $TBL in
3668   [\\/]* | ?:[\\/]*)
3669   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3670   ;;
3671   *)
3672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675   IFS=$as_save_IFS
3676   test -z "$as_dir" && as_dir=.
3677   for ac_exec_ext in '' $ac_executable_extensions; do
3678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681     break 2
3682   fi
3683 done
3684 done
3685
3686   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3687   ;;
3688 esac
3689 fi
3690 TBL=$ac_cv_path_TBL
3691
3692 if test -n "$TBL"; then
3693   echo "$as_me:$LINENO: result: $TBL" >&5
3694 echo "${ECHO_T}$TBL" >&6
3695 else
3696   echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3698 fi
3699
3700 # Extract the first word of "ar", so it can be a program name with args.
3701 set dummy ar; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_path_AR+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   case $AR in
3708   [\\/]* | ?:[\\/]*)
3709   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3710   ;;
3711   *)
3712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3714 do
3715   IFS=$as_save_IFS
3716   test -z "$as_dir" && as_dir=.
3717   for ac_exec_ext in '' $ac_executable_extensions; do
3718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721     break 2
3722   fi
3723 done
3724 done
3725
3726   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3727   ;;
3728 esac
3729 fi
3730 AR=$ac_cv_path_AR
3731
3732 if test -n "$AR"; then
3733   echo "$as_me:$LINENO: result: $AR" >&5
3734 echo "${ECHO_T}$AR" >&6
3735 else
3736   echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3738 fi
3739
3740 # Extract the first word of "openssl", so it can be a program name with args.
3741 set dummy openssl; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_path_OPENSSL+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   case $OPENSSL in
3748   [\\/]* | ?:[\\/]*)
3749   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3750   ;;
3751   *)
3752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764 done
3765
3766   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3767   ;;
3768 esac
3769 fi
3770 OPENSSL=$ac_cv_path_OPENSSL
3771
3772 if test -n "$OPENSSL"; then
3773   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3774 echo "${ECHO_T}$OPENSSL" >&6
3775 else
3776   echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3778 fi
3779
3780 # Extract the first word of "mtx", so it can be a program name with args.
3781 set dummy mtx; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_path_MTX+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   case $MTX in
3788   [\\/]* | ?:[\\/]*)
3789   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3790   ;;
3791   *)
3792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   test -z "$as_dir" && as_dir=.
3797   for ac_exec_ext in '' $ac_executable_extensions; do
3798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804 done
3805
3806   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3807   ;;
3808 esac
3809 fi
3810 MTX=$ac_cv_path_MTX
3811
3812 if test -n "$MTX"; then
3813   echo "$as_me:$LINENO: result: $MTX" >&5
3814 echo "${ECHO_T}$MTX" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820 # Extract the first word of "dd", so it can be a program name with args.
3821 set dummy dd; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_path_DD+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   case $DD in
3828   [\\/]* | ?:[\\/]*)
3829   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3830   ;;
3831   *)
3832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for ac_exec_ext in '' $ac_executable_extensions; do
3838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844 done
3845
3846   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3847   ;;
3848 esac
3849 fi
3850 DD=$ac_cv_path_DD
3851
3852 if test -n "$DD"; then
3853   echo "$as_me:$LINENO: result: $DD" >&5
3854 echo "${ECHO_T}$DD" >&6
3855 else
3856   echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 fi
3859
3860 # Extract the first word of "mkisofs", so it can be a program name with args.
3861 set dummy mkisofs; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_path_MKISOFS+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   case $MKISOFS in
3868   [\\/]* | ?:[\\/]*)
3869   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3870   ;;
3871   *)
3872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877   for ac_exec_ext in '' $ac_executable_extensions; do
3878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881     break 2
3882   fi
3883 done
3884 done
3885
3886   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3887   ;;
3888 esac
3889 fi
3890 MKISOFS=$ac_cv_path_MKISOFS
3891
3892 if test -n "$MKISOFS"; then
3893   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3894 echo "${ECHO_T}$MKISOFS" >&6
3895 else
3896   echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3898 fi
3899
3900 # Extract the first word of "python", so it can be a program name with args.
3901 set dummy python; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_path_PYTHON+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   case $PYTHON in
3908   [\\/]* | ?:[\\/]*)
3909   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3910   ;;
3911   *)
3912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924 done
3925
3926   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3927   ;;
3928 esac
3929 fi
3930 PYTHON=$ac_cv_path_PYTHON
3931
3932 if test -n "$PYTHON"; then
3933   echo "$as_me:$LINENO: result: $PYTHON" >&5
3934 echo "${ECHO_T}$PYTHON" >&6
3935 else
3936   echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3938 fi
3939
3940 # Extract the first word of "growisofs", so it can be a program name with args.
3941 set dummy growisofs; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3945   echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947   case $GROWISOFS in
3948   [\\/]* | ?:[\\/]*)
3949   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3950   ;;
3951   *)
3952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   test -z "$as_dir" && as_dir=.
3957   for ac_exec_ext in '' $ac_executable_extensions; do
3958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961     break 2
3962   fi
3963 done
3964 done
3965
3966   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3967   ;;
3968 esac
3969 fi
3970 GROWISOFS=$ac_cv_path_GROWISOFS
3971
3972 if test -n "$GROWISOFS"; then
3973   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3974 echo "${ECHO_T}$GROWISOFS" >&6
3975 else
3976   echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3981 set dummy dvd+rw-mediainfo; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   case $DVDRWMEDIAINFO in
3988   [\\/]* | ?:[\\/]*)
3989   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3990   ;;
3991   *)
3992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_exec_ext in '' $ac_executable_extensions; do
3998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004 done
4005
4006   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4007   ;;
4008 esac
4009 fi
4010 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4011
4012 if test -n "$DVDRWMEDIAINFO"; then
4013   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4014 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4015 else
4016   echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4018 fi
4019
4020 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4021 set dummy dvd+rw-format; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   case $DVDRWFORMAT in
4028   [\\/]* | ?:[\\/]*)
4029   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4030   ;;
4031   *)
4032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   for ac_exec_ext in '' $ac_executable_extensions; do
4038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044 done
4045
4046   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4047   ;;
4048 esac
4049 fi
4050 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4051
4052 if test -n "$DVDRWFORMAT"; then
4053   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4054 echo "${ECHO_T}$DVDRWFORMAT" >&6
4055 else
4056   echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060 # Extract the first word of "pkg-config", so it can be a program name with args.
4061 set dummy pkg-config; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   case $PKGCONFIG in
4068   [\\/]* | ?:[\\/]*)
4069   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4070   ;;
4071   *)
4072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084 done
4085
4086   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4087   ;;
4088 esac
4089 fi
4090 PKGCONFIG=$ac_cv_path_PKGCONFIG
4091
4092 if test -n "$PKGCONFIG"; then
4093   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4094 echo "${ECHO_T}$PKGCONFIG" >&6
4095 else
4096   echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101 if test "x$WXCONFIG" = x; then
4102   WXCONFIG=wx-config
4103 fi
4104 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4105 set dummy ${WXCONFIG}; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   case $WXCONFIG in
4112   [\\/]* | ?:[\\/]*)
4113   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4114   ;;
4115   *)
4116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121   for ac_exec_ext in '' $ac_executable_extensions; do
4122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125     break 2
4126   fi
4127 done
4128 done
4129
4130   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4131   ;;
4132 esac
4133 fi
4134 WXCONFIG=$ac_cv_path_WXCONFIG
4135
4136 if test -n "$WXCONFIG"; then
4137   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4138 echo "${ECHO_T}$WXCONFIG" >&6
4139 else
4140   echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4142 fi
4143
4144
4145 # Extract the first word of "cdrecord", so it can be a program name with args.
4146 set dummy cdrecord; ac_word=$2
4147 echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_CDRECORD+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   case $CDRECORD in
4153   [\\/]* | ?:[\\/]*)
4154   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4155   ;;
4156   *)
4157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162   for ac_exec_ext in '' $ac_executable_extensions; do
4163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169 done
4170
4171   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4172   ;;
4173 esac
4174 fi
4175 CDRECORD=$ac_cv_path_CDRECORD
4176
4177 if test -n "$CDRECORD"; then
4178   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4179 echo "${ECHO_T}$CDRECORD" >&6
4180 else
4181   echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4183 fi
4184
4185 # Extract the first word of "pidof", so it can be a program name with args.
4186 set dummy pidof; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_path_PIDOF+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   case $PIDOF in
4193   [\\/]* | ?:[\\/]*)
4194   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4195   ;;
4196   *)
4197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202   for ac_exec_ext in '' $ac_executable_extensions; do
4203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209 done
4210
4211   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4212   ;;
4213 esac
4214 fi
4215 PIDOF=$ac_cv_path_PIDOF
4216
4217 if test -n "$PIDOF"; then
4218   echo "$as_me:$LINENO: result: $PIDOF" >&5
4219 echo "${ECHO_T}$PIDOF" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225 for ac_prog in gawk mawk nawk awk
4226 do
4227   # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4231 if test "${ac_cv_prog_AWK+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   if test -n "$AWK"; then
4235   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4236 else
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH
4239 do
4240   IFS=$as_save_IFS
4241   test -z "$as_dir" && as_dir=.
4242   for ac_exec_ext in '' $ac_executable_extensions; do
4243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244     ac_cv_prog_AWK="$ac_prog"
4245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246     break 2
4247   fi
4248 done
4249 done
4250
4251 fi
4252 fi
4253 AWK=$ac_cv_prog_AWK
4254 if test -n "$AWK"; then
4255   echo "$as_me:$LINENO: result: $AWK" >&5
4256 echo "${ECHO_T}$AWK" >&6
4257 else
4258   echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6
4260 fi
4261
4262   test -n "$AWK" && break
4263 done
4264
4265 # Some AWK programs fail, so test it and warn the user
4266 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4267       { if ((prog == $2) || (("(" prog ")") == $2) ||
4268            (("" prog "") == $2) ||
4269            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4270 else
4271   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4272    The regex engine of $AWK is too broken to be used you
4273    might want to install GNU AWK.
4274    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4275 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4276    The regex engine of $AWK is too broken to be used you
4277    might want to install GNU AWK.
4278    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4279    { (exit 1); exit 1; }; }
4280 fi
4281 THE_AWK=$AWK
4282 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4283 set dummy $THE_AWK; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_AWK+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   case $AWK in
4290   [\\/]* | ?:[\\/]*)
4291   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4292   ;;
4293   *)
4294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297   IFS=$as_save_IFS
4298   test -z "$as_dir" && as_dir=.
4299   for ac_exec_ext in '' $ac_executable_extensions; do
4300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303     break 2
4304   fi
4305 done
4306 done
4307
4308   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4309   ;;
4310 esac
4311 fi
4312 AWK=$ac_cv_path_AWK
4313
4314 if test -n "$AWK"; then
4315   echo "$as_me:$LINENO: result: $AWK" >&5
4316 echo "${ECHO_T}$AWK" >&6
4317 else
4318   echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4320 fi
4321
4322
4323 test -n "$ARFLAG" || ARFLAGS="cr"
4324
4325
4326 MAKE_SHELL=/bin/sh
4327
4328
4329
4330
4331
4332
4333
4334 # Make sure we can run config.sub.
4335 $ac_config_sub sun4 >/dev/null 2>&1 ||
4336   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4337 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4338    { (exit 1); exit 1; }; }
4339
4340 echo "$as_me:$LINENO: checking build system type" >&5
4341 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4342 if test "${ac_cv_build+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   ac_cv_build_alias=$build_alias
4346 test -z "$ac_cv_build_alias" &&
4347   ac_cv_build_alias=`$ac_config_guess`
4348 test -z "$ac_cv_build_alias" &&
4349   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4350 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4351    { (exit 1); exit 1; }; }
4352 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4353   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4354 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4355    { (exit 1); exit 1; }; }
4356
4357 fi
4358 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4359 echo "${ECHO_T}$ac_cv_build" >&6
4360 build=$ac_cv_build
4361 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4362 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4363 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4364
4365
4366
4367 echo "$as_me:$LINENO: checking host system type" >&5
4368 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4369 if test "${ac_cv_host+set}" = set; then
4370   echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372   ac_cv_host_alias=$host_alias
4373 test -z "$ac_cv_host_alias" &&
4374   ac_cv_host_alias=$ac_cv_build_alias
4375 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4376   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4377 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4378    { (exit 1); exit 1; }; }
4379
4380 fi
4381 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4382 echo "${ECHO_T}$ac_cv_host" >&6
4383 host=$ac_cv_host
4384 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4385 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4386 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4387
4388
4389 case $host_os in
4390   *cygwin* ) CYGWIN=yes;;
4391          * ) CYGWIN=no;;
4392 esac
4393
4394 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4395 then
4396
4397
4398 if $TRUEPRG; then
4399   HAVE_SUN_OS_TRUE=
4400   HAVE_SUN_OS_FALSE='#'
4401 else
4402   HAVE_SUN_OS_TRUE='#'
4403   HAVE_SUN_OS_FALSE=
4404 fi
4405         cat >>confdefs.h <<\_ACEOF
4406 #define HAVE_SUN_OS 1
4407 _ACEOF
4408
4409 else
4410
4411
4412 if $FALSEPRG; then
4413   HAVE_SUN_OS_TRUE=
4414   HAVE_SUN_OS_FALSE='#'
4415 else
4416   HAVE_SUN_OS_TRUE='#'
4417   HAVE_SUN_OS_FALSE=
4418 fi
4419 fi
4420
4421 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4422 then
4423
4424
4425 if $TRUEPRG; then
4426   HAVE_OSF1_OS_TRUE=
4427   HAVE_OSF1_OS_FALSE='#'
4428 else
4429   HAVE_OSF1_OS_TRUE='#'
4430   HAVE_OSF1_OS_FALSE=
4431 fi
4432         cat >>confdefs.h <<\_ACEOF
4433 #define HAVE_OSF1_OS 1
4434 _ACEOF
4435
4436 else
4437
4438
4439 if $FALSEPRG; then
4440   HAVE_OSF1_OS_TRUE=
4441   HAVE_OSF1_OS_FALSE='#'
4442 else
4443   HAVE_OSF1_OS_TRUE='#'
4444   HAVE_OSF1_OS_FALSE=
4445 fi
4446 fi
4447
4448 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4449 then
4450
4451
4452 if $TRUEPRG; then
4453   HAVE_AIX_OS_TRUE=
4454   HAVE_AIX_OS_FALSE='#'
4455 else
4456   HAVE_AIX_OS_TRUE='#'
4457   HAVE_AIX_OS_FALSE=
4458 fi
4459         cat >>confdefs.h <<\_ACEOF
4460 #define HAVE_AIX_OS 1
4461 _ACEOF
4462
4463 else
4464
4465
4466 if $FALSEPRG; then
4467   HAVE_AIX_OS_TRUE=
4468   HAVE_AIX_OS_FALSE='#'
4469 else
4470   HAVE_AIX_OS_TRUE='#'
4471   HAVE_AIX_OS_FALSE=
4472 fi
4473 fi
4474
4475 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4476 then
4477
4478
4479 if $TRUEPRG; then
4480   HAVE_HPUX_OS_TRUE=
4481   HAVE_HPUX_OS_FALSE='#'
4482 else
4483   HAVE_HPUX_OS_TRUE='#'
4484   HAVE_HPUX_OS_FALSE=
4485 fi
4486         cat >>confdefs.h <<\_ACEOF
4487 #define HAVE_HPUX_OS 1
4488 _ACEOF
4489
4490 else
4491
4492
4493 if $FALSEPRG; then
4494   HAVE_HPUX_OS_TRUE=
4495   HAVE_HPUX_OS_FALSE='#'
4496 else
4497   HAVE_HPUX_OS_TRUE='#'
4498   HAVE_HPUX_OS_FALSE=
4499 fi
4500 fi
4501
4502 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4503 then
4504
4505
4506 if $TRUEPRG; then
4507   HAVE_LINUX_OS_TRUE=
4508   HAVE_LINUX_OS_FALSE='#'
4509 else
4510   HAVE_LINUX_OS_TRUE='#'
4511   HAVE_LINUX_OS_FALSE=
4512 fi
4513         cat >>confdefs.h <<\_ACEOF
4514 #define HAVE_LINUX_OS 1
4515 _ACEOF
4516
4517 else
4518
4519
4520 if $FALSEPRG; then
4521   HAVE_LINUX_OS_TRUE=
4522   HAVE_LINUX_OS_FALSE='#'
4523 else
4524   HAVE_LINUX_OS_TRUE='#'
4525   HAVE_LINUX_OS_FALSE=
4526 fi
4527 fi
4528
4529 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4530 then
4531
4532
4533 if $TRUEPRG; then
4534   HAVE_FREEBSD_OS_TRUE=
4535   HAVE_FREEBSD_OS_FALSE='#'
4536 else
4537   HAVE_FREEBSD_OS_TRUE='#'
4538   HAVE_FREEBSD_OS_FALSE=
4539 fi
4540         cat >>confdefs.h <<\_ACEOF
4541 #define HAVE_FREEBSD_OS 1
4542 _ACEOF
4543
4544 else
4545
4546
4547 if $FALSEPRG; then
4548   HAVE_FREEBSD_OS_TRUE=
4549   HAVE_FREEBSD_OS_FALSE='#'
4550 else
4551   HAVE_FREEBSD_OS_TRUE='#'
4552   HAVE_FREEBSD_OS_FALSE=
4553 fi
4554 fi
4555
4556 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4557 then
4558
4559
4560 if $TRUEPRG; then
4561   HAVE_NETBSD_OS_TRUE=
4562   HAVE_NETBSD_OS_FALSE='#'
4563 else
4564   HAVE_NETBSD_OS_TRUE='#'
4565   HAVE_NETBSD_OS_FALSE=
4566 fi
4567         cat >>confdefs.h <<\_ACEOF
4568 #define HAVE_NETBSD_OS 1
4569 _ACEOF
4570
4571 else
4572
4573
4574 if $FALSEPRG; then
4575   HAVE_NETBSD_OS_TRUE=
4576   HAVE_NETBSD_OS_FALSE='#'
4577 else
4578   HAVE_NETBSD_OS_TRUE='#'
4579   HAVE_NETBSD_OS_FALSE=
4580 fi
4581 fi
4582
4583 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4584 then
4585
4586
4587 if $TRUEPRG; then
4588   HAVE_OPENBSD_OS_TRUE=
4589   HAVE_OPENBSD_OS_FALSE='#'
4590 else
4591   HAVE_OPENBSD_OS_TRUE='#'
4592   HAVE_OPENBSD_OS_FALSE=
4593 fi
4594         cat >>confdefs.h <<\_ACEOF
4595 #define HAVE_OPENBSD_OS 1
4596 _ACEOF
4597
4598 else
4599
4600
4601 if $FALSEPRG; then
4602   HAVE_OPENBSD_OS_TRUE=
4603   HAVE_OPENBSD_OS_FALSE='#'
4604 else
4605   HAVE_OPENBSD_OS_TRUE='#'
4606   HAVE_OPENBSD_OS_FALSE=
4607 fi
4608 fi
4609
4610 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4611 then
4612
4613
4614 if $TRUEPRG; then
4615   HAVE_BSDI_OS_TRUE=
4616   HAVE_BSDI_OS_FALSE='#'
4617 else
4618   HAVE_BSDI_OS_TRUE='#'
4619   HAVE_BSDI_OS_FALSE=
4620 fi
4621         cat >>confdefs.h <<\_ACEOF
4622 #define HAVE_BSDI_OS 1
4623 _ACEOF
4624
4625 else
4626
4627
4628 if $FALSEPRG; then
4629   HAVE_BSDI_OS_TRUE=
4630   HAVE_BSDI_OS_FALSE='#'
4631 else
4632   HAVE_BSDI_OS_TRUE='#'
4633   HAVE_BSDI_OS_FALSE=
4634 fi
4635 fi
4636
4637 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4638 then
4639
4640
4641 if $TRUEPRG; then
4642   HAVE_SGI_OS_TRUE=
4643   HAVE_SGI_OS_FALSE='#'
4644 else
4645   HAVE_SGI_OS_TRUE='#'
4646   HAVE_SGI_OS_FALSE=
4647 fi
4648         cat >>confdefs.h <<\_ACEOF
4649 #define HAVE_SGI_OS 1
4650 _ACEOF
4651
4652 else
4653
4654
4655 if $FALSEPRG; then
4656   HAVE_SGI_OS_TRUE=
4657   HAVE_SGI_OS_FALSE='#'
4658 else
4659   HAVE_SGI_OS_TRUE='#'
4660   HAVE_SGI_OS_FALSE=
4661 fi
4662 fi
4663
4664 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4665 then
4666
4667
4668 if $TRUEPRG; then
4669   HAVE_IRIX_OS_TRUE=
4670   HAVE_IRIX_OS_FALSE='#'
4671 else
4672   HAVE_IRIX_OS_TRUE='#'
4673   HAVE_IRIX_OS_FALSE=
4674 fi
4675         cat >>confdefs.h <<\_ACEOF
4676 #define HAVE_IRIX_OS 1
4677 _ACEOF
4678
4679 else
4680
4681
4682 if $FALSEPRG; then
4683   HAVE_IRIX_OS_TRUE=
4684   HAVE_IRIX_OS_FALSE='#'
4685 else
4686   HAVE_IRIX_OS_TRUE='#'
4687   HAVE_IRIX_OS_FALSE=
4688 fi
4689 fi
4690
4691 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4692 then
4693
4694
4695 if $TRUEPRG; then
4696   HAVE_DARWIN_OS_TRUE=
4697   HAVE_DARWIN_OS_FALSE='#'
4698 else
4699   HAVE_DARWIN_OS_TRUE='#'
4700   HAVE_DARWIN_OS_FALSE=
4701 fi
4702     cat >>confdefs.h <<\_ACEOF
4703 #define HAVE_DARWIN_OS 1
4704 _ACEOF
4705
4706 else
4707
4708
4709 if $FALSEPRG; then
4710   HAVE_DARWIN_OS_TRUE=
4711   HAVE_DARWIN_OS_FALSE='#'
4712 else
4713   HAVE_DARWIN_OS_TRUE='#'
4714   HAVE_DARWIN_OS_FALSE=
4715 fi
4716 fi
4717
4718
4719 # -----------------------------------------------------------
4720 # ----------------------------------------------------------
4721 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4722 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4723 if test "x$DISTNAME" != "x"
4724 then
4725         echo "distname set to $DISTNAME"
4726 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4727 then
4728         DISTNAME=alpha
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4730 then
4731         DISTNAME=aix
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4733 then
4734         DISTNAME=hpux
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4736 then
4737         DISTNAME=solaris
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4739 then
4740         DISTNAME=freebsd
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4742 then
4743         DISTNAME=netbsd
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4745 then
4746         DISTNAME=openbsd
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4748 then
4749         DISTNAME=irix
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4751 then
4752         DISTNAME=bsdi
4753 elif test -f /etc/SuSE-release
4754 then
4755         DISTNAME=suse
4756 elif test -d /etc/SuSEconfig
4757 then
4758         DISTNAME=suse5
4759 elif test -f /etc/mandrake-release
4760 then
4761         DISTNAME=mandrake
4762 elif test -f /etc/whitebox-release
4763 then
4764        DISTNAME=redhat
4765 elif test -f /etc/redhat-release
4766 then
4767         DISTNAME=redhat
4768 elif test -f /etc/gentoo-release
4769 then
4770         DISTNAME=gentoo
4771 elif test -f /etc/debian_version
4772 then
4773         DISTNAME=debian
4774 elif test -f /etc/slackware-version
4775 then
4776         DISTNAME=slackware
4777 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4778 then
4779     DISTNAME=darwin
4780 elif test -f /etc/engarde-version
4781 then
4782         DISTNAME=engarde
4783 elif test "$CYGWIN" = yes
4784 then
4785         DISTNAME=cygwin
4786         cat >>confdefs.h <<\_ACEOF
4787 #define HAVE_CYGWIN 1
4788 _ACEOF
4789
4790 else
4791         DISTNAME=unknown
4792 fi
4793 echo "$as_me:$LINENO: result: done" >&5
4794 echo "${ECHO_T}done" >&6
4795
4796
4797 # --------------------------------------------------
4798 # Suppport for gettext (translations)
4799 # By default, $datadir is ${prefix}/share
4800 # --------------------------------------------------
4801 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4802 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4803 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4804 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   cat >conftest.make <<\_ACEOF
4808 all:
4809         @echo 'ac_maketemp="$(MAKE)"'
4810 _ACEOF
4811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4812 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4813 if test -n "$ac_maketemp"; then
4814   eval ac_cv_prog_make_${ac_make}_set=yes
4815 else
4816   eval ac_cv_prog_make_${ac_make}_set=no
4817 fi
4818 rm -f conftest.make
4819 fi
4820 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4821   echo "$as_me:$LINENO: result: yes" >&5
4822 echo "${ECHO_T}yes" >&6
4823   SET_MAKE=
4824 else
4825   echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6
4827   SET_MAKE="MAKE=${MAKE-make}"
4828 fi
4829
4830
4831
4832         MKINSTALLDIRS=
4833   if test -n "$ac_aux_dir"; then
4834     case "$ac_aux_dir" in
4835       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4836       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4837     esac
4838   fi
4839   if test -z "$MKINSTALLDIRS"; then
4840     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4841   fi
4842
4843
4844
4845   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4847     # Check whether --enable-nls or --disable-nls was given.
4848 if test "${enable_nls+set}" = set; then
4849   enableval="$enable_nls"
4850   USE_NLS=$enableval
4851 else
4852   USE_NLS=yes
4853 fi;
4854   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4855 echo "${ECHO_T}$USE_NLS" >&6
4856
4857
4858
4859
4860
4861
4862 # Prepare PATH_SEPARATOR.
4863 # The user is always right.
4864 if test "${PATH_SEPARATOR+set}" != set; then
4865   echo "#! /bin/sh" >conf$$.sh
4866   echo  "exit 0"   >>conf$$.sh
4867   chmod +x conf$$.sh
4868   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4869     PATH_SEPARATOR=';'
4870   else
4871     PATH_SEPARATOR=:
4872   fi
4873   rm -f conf$$.sh
4874 fi
4875
4876 # Find out how to test for executable files. Don't use a zero-byte file,
4877 # as systems may use methods other than mode bits to determine executability.
4878 cat >conf$$.file <<_ASEOF
4879 #! /bin/sh
4880 exit 0
4881 _ASEOF
4882 chmod +x conf$$.file
4883 if test -x conf$$.file >/dev/null 2>&1; then
4884   ac_executable_p="test -x"
4885 else
4886   ac_executable_p="test -f"
4887 fi
4888 rm -f conf$$.file
4889
4890 # Extract the first word of "msgfmt", so it can be a program name with args.
4891 set dummy msgfmt; ac_word=$2
4892 echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894 if test "${ac_cv_path_MSGFMT+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   case "$MSGFMT" in
4898   [\\/]* | ?:[\\/]*)
4899     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4900     ;;
4901   *)
4902     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4903     for ac_dir in $PATH; do
4904       IFS="$ac_save_IFS"
4905       test -z "$ac_dir" && ac_dir=.
4906       for ac_exec_ext in '' $ac_executable_extensions; do
4907         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4908           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4909           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4910      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4911             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4912             break 2
4913           fi
4914         fi
4915       done
4916     done
4917     IFS="$ac_save_IFS"
4918   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4919     ;;
4920 esac
4921 fi
4922 MSGFMT="$ac_cv_path_MSGFMT"
4923 if test "$MSGFMT" != ":"; then
4924   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4925 echo "${ECHO_T}$MSGFMT" >&6
4926 else
4927   echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4929 fi
4930
4931   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4932 set dummy gmsgfmt; ac_word=$2
4933 echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   case $GMSGFMT in
4939   [\\/]* | ?:[\\/]*)
4940   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4941   ;;
4942   *)
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956
4957   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4958   ;;
4959 esac
4960 fi
4961 GMSGFMT=$ac_cv_path_GMSGFMT
4962
4963 if test -n "$GMSGFMT"; then
4964   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4965 echo "${ECHO_T}$GMSGFMT" >&6
4966 else
4967   echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6
4969 fi
4970
4971
4972
4973 # Prepare PATH_SEPARATOR.
4974 # The user is always right.
4975 if test "${PATH_SEPARATOR+set}" != set; then
4976   echo "#! /bin/sh" >conf$$.sh
4977   echo  "exit 0"   >>conf$$.sh
4978   chmod +x conf$$.sh
4979   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4980     PATH_SEPARATOR=';'
4981   else
4982     PATH_SEPARATOR=:
4983   fi
4984   rm -f conf$$.sh
4985 fi
4986
4987 # Find out how to test for executable files. Don't use a zero-byte file,
4988 # as systems may use methods other than mode bits to determine executability.
4989 cat >conf$$.file <<_ASEOF
4990 #! /bin/sh
4991 exit 0
4992 _ASEOF
4993 chmod +x conf$$.file
4994 if test -x conf$$.file >/dev/null 2>&1; then
4995   ac_executable_p="test -x"
4996 else
4997   ac_executable_p="test -f"
4998 fi
4999 rm -f conf$$.file
5000
5001 # Extract the first word of "xgettext", so it can be a program name with args.
5002 set dummy xgettext; ac_word=$2
5003 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   case "$XGETTEXT" in
5009   [\\/]* | ?:[\\/]*)
5010     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5011     ;;
5012   *)
5013     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5014     for ac_dir in $PATH; do
5015       IFS="$ac_save_IFS"
5016       test -z "$ac_dir" && ac_dir=.
5017       for ac_exec_ext in '' $ac_executable_extensions; do
5018         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5019           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5020           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5021      (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
5022             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5023             break 2
5024           fi
5025         fi
5026       done
5027     done
5028     IFS="$ac_save_IFS"
5029   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5030     ;;
5031 esac
5032 fi
5033 XGETTEXT="$ac_cv_path_XGETTEXT"
5034 if test "$XGETTEXT" != ":"; then
5035   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5036 echo "${ECHO_T}$XGETTEXT" >&6
5037 else
5038   echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6
5040 fi
5041
5042     rm -f messages.po
5043
5044
5045 # Prepare PATH_SEPARATOR.
5046 # The user is always right.
5047 if test "${PATH_SEPARATOR+set}" != set; then
5048   echo "#! /bin/sh" >conf$$.sh
5049   echo  "exit 0"   >>conf$$.sh
5050   chmod +x conf$$.sh
5051   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5052     PATH_SEPARATOR=';'
5053   else
5054     PATH_SEPARATOR=:
5055   fi
5056   rm -f conf$$.sh
5057 fi
5058
5059 # Find out how to test for executable files. Don't use a zero-byte file,
5060 # as systems may use methods other than mode bits to determine executability.
5061 cat >conf$$.file <<_ASEOF
5062 #! /bin/sh
5063 exit 0
5064 _ASEOF
5065 chmod +x conf$$.file
5066 if test -x conf$$.file >/dev/null 2>&1; then
5067   ac_executable_p="test -x"
5068 else
5069   ac_executable_p="test -f"
5070 fi
5071 rm -f conf$$.file
5072
5073 # Extract the first word of "msgmerge", so it can be a program name with args.
5074 set dummy msgmerge; ac_word=$2
5075 echo "$as_me:$LINENO: checking for $ac_word" >&5
5076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5077 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   case "$MSGMERGE" in
5081   [\\/]* | ?:[\\/]*)
5082     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5083     ;;
5084   *)
5085     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5086     for ac_dir in $PATH; do
5087       IFS="$ac_save_IFS"
5088       test -z "$ac_dir" && ac_dir=.
5089       for ac_exec_ext in '' $ac_executable_extensions; do
5090         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5091           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5092           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5093             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5094             break 2
5095           fi
5096         fi
5097       done
5098     done
5099     IFS="$ac_save_IFS"
5100   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5101     ;;
5102 esac
5103 fi
5104 MSGMERGE="$ac_cv_path_MSGMERGE"
5105 if test "$MSGMERGE" != ":"; then
5106   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5107 echo "${ECHO_T}$MSGMERGE" >&6
5108 else
5109   echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6
5111 fi
5112
5113
5114       if test "$GMSGFMT" != ":"; then
5115             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5116        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5117       : ;
5118     else
5119       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5120       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5121 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5122       GMSGFMT=":"
5123     fi
5124   fi
5125
5126       if test "$XGETTEXT" != ":"; then
5127             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5128        (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
5129       : ;
5130     else
5131       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5132 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5133       XGETTEXT=":"
5134     fi
5135         rm -f messages.po
5136   fi
5137
5138             ac_config_commands="$ac_config_commands default-1"
5139
5140
5141
5142       if test "X$prefix" = "XNONE"; then
5143     acl_final_prefix="$ac_default_prefix"
5144   else
5145     acl_final_prefix="$prefix"
5146   fi
5147   if test "X$exec_prefix" = "XNONE"; then
5148     acl_final_exec_prefix='${prefix}'
5149   else
5150     acl_final_exec_prefix="$exec_prefix"
5151   fi
5152   acl_save_prefix="$prefix"
5153   prefix="$acl_final_prefix"
5154   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5155   prefix="$acl_save_prefix"
5156
5157
5158 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5159 if test "${with_gnu_ld+set}" = set; then
5160   withval="$with_gnu_ld"
5161   test "$withval" = no || with_gnu_ld=yes
5162 else
5163   with_gnu_ld=no
5164 fi;
5165 # Prepare PATH_SEPARATOR.
5166 # The user is always right.
5167 if test "${PATH_SEPARATOR+set}" != set; then
5168   echo "#! /bin/sh" >conf$$.sh
5169   echo  "exit 0"   >>conf$$.sh
5170   chmod +x conf$$.sh
5171   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5172     PATH_SEPARATOR=';'
5173   else
5174     PATH_SEPARATOR=:
5175   fi
5176   rm -f conf$$.sh
5177 fi
5178 ac_prog=ld
5179 if test "$GCC" = yes; then
5180   # Check if gcc -print-prog-name=ld gives a path.
5181   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5182 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5183   case $host in
5184   *-*-mingw*)
5185     # gcc leaves a trailing carriage return which upsets mingw
5186     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5187   *)
5188     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5189   esac
5190   case $ac_prog in
5191     # Accept absolute paths.
5192     [\\/]* | [A-Za-z]:[\\/]*)
5193       re_direlt='/[^/][^/]*/\.\./'
5194       # Canonicalize the path of ld
5195       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5196       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5197         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5198       done
5199       test -z "$LD" && LD="$ac_prog"
5200       ;;
5201   "")
5202     # If it fails, then pretend we aren't using GCC.
5203     ac_prog=ld
5204     ;;
5205   *)
5206     # If it is relative, then search for the first ld in PATH.
5207     with_gnu_ld=unknown
5208     ;;
5209   esac
5210 elif test "$with_gnu_ld" = yes; then
5211   echo "$as_me:$LINENO: checking for GNU ld" >&5
5212 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5213 else
5214   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5215 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5216 fi
5217 if test "${acl_cv_path_LD+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   if test -z "$LD"; then
5221   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5222   for ac_dir in $PATH; do
5223     test -z "$ac_dir" && ac_dir=.
5224     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225       acl_cv_path_LD="$ac_dir/$ac_prog"
5226       # Check to see if the program is GNU ld.  I'd rather use --version,
5227       # but apparently some GNU ld's only accept -v.
5228       # Break only if it was the GNU/non-GNU ld that we prefer.
5229       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5230       *GNU* | *'with BFD'*)
5231         test "$with_gnu_ld" != no && break ;;
5232       *)
5233         test "$with_gnu_ld" != yes && break ;;
5234       esac
5235     fi
5236   done
5237   IFS="$ac_save_ifs"
5238 else
5239   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5240 fi
5241 fi
5242
5243 LD="$acl_cv_path_LD"
5244 if test -n "$LD"; then
5245   echo "$as_me:$LINENO: result: $LD" >&5
5246 echo "${ECHO_T}$LD" >&6
5247 else
5248   echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5250 fi
5251 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5252 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5253    { (exit 1); exit 1; }; }
5254 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5255 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5256 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262   acl_cv_prog_gnu_ld=yes ;;
5263 *)
5264   acl_cv_prog_gnu_ld=no ;;
5265 esac
5266 fi
5267 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5268 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5269 with_gnu_ld=$acl_cv_prog_gnu_ld
5270
5271
5272
5273
5274                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5275 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5276 if test "${acl_cv_rpath+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279
5280     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5281     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5282     . ./conftest.sh
5283     rm -f ./conftest.sh
5284     acl_cv_rpath=done
5285
5286 fi
5287 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5288 echo "${ECHO_T}$acl_cv_rpath" >&6
5289   wl="$acl_cv_wl"
5290   libext="$acl_cv_libext"
5291   shlibext="$acl_cv_shlibext"
5292   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5293   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5294   hardcode_direct="$acl_cv_hardcode_direct"
5295   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5296     # Check whether --enable-rpath or --disable-rpath was given.
5297 if test "${enable_rpath+set}" = set; then
5298   enableval="$enable_rpath"
5299   :
5300 else
5301   enable_rpath=yes
5302 fi;
5303
5304
5305
5306
5307
5308
5309
5310     use_additional=yes
5311
5312   acl_save_prefix="$prefix"
5313   prefix="$acl_final_prefix"
5314   acl_save_exec_prefix="$exec_prefix"
5315   exec_prefix="$acl_final_exec_prefix"
5316
5317     eval additional_includedir=\"$includedir\"
5318     eval additional_libdir=\"$libdir\"
5319
5320   exec_prefix="$acl_save_exec_prefix"
5321   prefix="$acl_save_prefix"
5322
5323
5324 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5325 if test "${with_libiconv_prefix+set}" = set; then
5326   withval="$with_libiconv_prefix"
5327
5328     if test "X$withval" = "Xno"; then
5329       use_additional=no
5330     else
5331       if test "X$withval" = "X"; then
5332
5333   acl_save_prefix="$prefix"
5334   prefix="$acl_final_prefix"
5335   acl_save_exec_prefix="$exec_prefix"
5336   exec_prefix="$acl_final_exec_prefix"
5337
5338           eval additional_includedir=\"$includedir\"
5339           eval additional_libdir=\"$libdir\"
5340
5341   exec_prefix="$acl_save_exec_prefix"
5342   prefix="$acl_save_prefix"
5343
5344       else
5345         additional_includedir="$withval/include"
5346         additional_libdir="$withval/lib"
5347       fi
5348     fi
5349
5350 fi;
5351       LIBICONV=
5352   LTLIBICONV=
5353   INCICONV=
5354   rpathdirs=
5355   ltrpathdirs=
5356   names_already_handled=
5357   names_next_round='iconv '
5358   while test -n "$names_next_round"; do
5359     names_this_round="$names_next_round"
5360     names_next_round=
5361     for name in $names_this_round; do
5362       already_handled=
5363       for n in $names_already_handled; do
5364         if test "$n" = "$name"; then
5365           already_handled=yes
5366           break
5367         fi
5368       done
5369       if test -z "$already_handled"; then
5370         names_already_handled="$names_already_handled $name"
5371                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5372         eval value=\"\$HAVE_LIB$uppername\"
5373         if test -n "$value"; then
5374           if test "$value" = yes; then
5375             eval value=\"\$LIB$uppername\"
5376             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5377             eval value=\"\$LTLIB$uppername\"
5378             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5379           else
5380                                     :
5381           fi
5382         else
5383                               found_dir=
5384           found_la=
5385           found_so=
5386           found_a=
5387           if test $use_additional = yes; then
5388             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5389               found_dir="$additional_libdir"
5390               found_so="$additional_libdir/lib$name.$shlibext"
5391               if test -f "$additional_libdir/lib$name.la"; then
5392                 found_la="$additional_libdir/lib$name.la"
5393               fi
5394             else
5395               if test -f "$additional_libdir/lib$name.$libext"; then
5396                 found_dir="$additional_libdir"
5397                 found_a="$additional_libdir/lib$name.$libext"
5398                 if test -f "$additional_libdir/lib$name.la"; then
5399                   found_la="$additional_libdir/lib$name.la"
5400                 fi
5401               fi
5402             fi
5403           fi
5404           if test "X$found_dir" = "X"; then
5405             for x in $LDFLAGS $LTLIBICONV; do
5406
5407   acl_save_prefix="$prefix"
5408   prefix="$acl_final_prefix"
5409   acl_save_exec_prefix="$exec_prefix"
5410   exec_prefix="$acl_final_exec_prefix"
5411   eval x=\"$x\"
5412   exec_prefix="$acl_save_exec_prefix"
5413   prefix="$acl_save_prefix"
5414
5415               case "$x" in
5416                 -L*)
5417                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5418                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5419                     found_dir="$dir"
5420                     found_so="$dir/lib$name.$shlibext"
5421                     if test -f "$dir/lib$name.la"; then
5422                       found_la="$dir/lib$name.la"
5423                     fi
5424                   else
5425                     if test -f "$dir/lib$name.$libext"; then
5426                       found_dir="$dir"
5427                       found_a="$dir/lib$name.$libext"
5428                       if test -f "$dir/lib$name.la"; then
5429                         found_la="$dir/lib$name.la"
5430                       fi
5431                     fi
5432                   fi
5433                   ;;
5434               esac
5435               if test "X$found_dir" != "X"; then
5436                 break
5437               fi
5438             done
5439           fi
5440           if test "X$found_dir" != "X"; then
5441                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5442             if test "X$found_so" != "X"; then
5443                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5444                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5445               else
5446                                                                                 haveit=
5447                 for x in $ltrpathdirs; do
5448                   if test "X$x" = "X$found_dir"; then
5449                     haveit=yes
5450                     break
5451                   fi
5452                 done
5453                 if test -z "$haveit"; then
5454                   ltrpathdirs="$ltrpathdirs $found_dir"
5455                 fi
5456                                 if test "$hardcode_direct" = yes; then
5457                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5458                 else
5459                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5460                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5461                                                             haveit=
5462                     for x in $rpathdirs; do
5463                       if test "X$x" = "X$found_dir"; then
5464                         haveit=yes
5465                         break
5466                       fi
5467                     done
5468                     if test -z "$haveit"; then
5469                       rpathdirs="$rpathdirs $found_dir"
5470                     fi
5471                   else
5472                                                                                 haveit=
5473                     for x in $LDFLAGS $LIBICONV; do
5474
5475   acl_save_prefix="$prefix"
5476   prefix="$acl_final_prefix"
5477   acl_save_exec_prefix="$exec_prefix"
5478   exec_prefix="$acl_final_exec_prefix"
5479   eval x=\"$x\"
5480   exec_prefix="$acl_save_exec_prefix"
5481   prefix="$acl_save_prefix"
5482
5483                       if test "X$x" = "X-L$found_dir"; then
5484                         haveit=yes
5485                         break
5486                       fi
5487                     done
5488                     if test -z "$haveit"; then
5489                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5490                     fi
5491                     if test "$hardcode_minus_L" != no; then
5492                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5493                     else
5494                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5495                     fi
5496                   fi
5497                 fi
5498               fi
5499             else
5500               if test "X$found_a" != "X"; then
5501                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5502               else
5503                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5504               fi
5505             fi
5506                         additional_includedir=
5507             case "$found_dir" in
5508               */lib | */lib/)
5509                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5510                 additional_includedir="$basedir/include"
5511                 ;;
5512             esac
5513             if test "X$additional_includedir" != "X"; then
5514                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5515                 haveit=
5516                 if test "X$additional_includedir" = "X/usr/local/include"; then
5517                   if test -n "$GCC"; then
5518                     case $host_os in
5519                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5520                     esac
5521                   fi
5522                 fi
5523                 if test -z "$haveit"; then
5524                   for x in $CPPFLAGS $INCICONV; do
5525
5526   acl_save_prefix="$prefix"
5527   prefix="$acl_final_prefix"
5528   acl_save_exec_prefix="$exec_prefix"
5529   exec_prefix="$acl_final_exec_prefix"
5530   eval x=\"$x\"
5531   exec_prefix="$acl_save_exec_prefix"
5532   prefix="$acl_save_prefix"
5533
5534                     if test "X$x" = "X-I$additional_includedir"; then
5535                       haveit=yes
5536                       break
5537                     fi
5538                   done
5539                   if test -z "$haveit"; then
5540                     if test -d "$additional_includedir"; then
5541                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5542                     fi
5543                   fi
5544                 fi
5545               fi
5546             fi
5547                         if test -n "$found_la"; then
5548                                                         save_libdir="$libdir"
5549               case "$found_la" in
5550                 */* | *\\*) . "$found_la" ;;
5551                 *) . "./$found_la" ;;
5552               esac
5553               libdir="$save_libdir"
5554                             for dep in $dependency_libs; do
5555                 case "$dep" in
5556                   -L*)
5557                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5558                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5559                       haveit=
5560                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5561                         if test -n "$GCC"; then
5562                           case $host_os in
5563                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5564                           esac
5565                         fi
5566                       fi
5567                       if test -z "$haveit"; then
5568                         haveit=
5569                         for x in $LDFLAGS $LIBICONV; do
5570
5571   acl_save_prefix="$prefix"
5572   prefix="$acl_final_prefix"
5573   acl_save_exec_prefix="$exec_prefix"
5574   exec_prefix="$acl_final_exec_prefix"
5575   eval x=\"$x\"
5576   exec_prefix="$acl_save_exec_prefix"
5577   prefix="$acl_save_prefix"
5578
5579                           if test "X$x" = "X-L$additional_libdir"; then
5580                             haveit=yes
5581                             break
5582                           fi
5583                         done
5584                         if test -z "$haveit"; then
5585                           if test -d "$additional_libdir"; then
5586                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5587                           fi
5588                         fi
5589                         haveit=
5590                         for x in $LDFLAGS $LTLIBICONV; do
5591
5592   acl_save_prefix="$prefix"
5593   prefix="$acl_final_prefix"
5594   acl_save_exec_prefix="$exec_prefix"
5595   exec_prefix="$acl_final_exec_prefix"
5596   eval x=\"$x\"
5597   exec_prefix="$acl_save_exec_prefix"
5598   prefix="$acl_save_prefix"
5599
5600                           if test "X$x" = "X-L$additional_libdir"; then
5601                             haveit=yes
5602                             break
5603                           fi
5604                         done
5605                         if test -z "$haveit"; then
5606                           if test -d "$additional_libdir"; then
5607                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5608                           fi
5609                         fi
5610                       fi
5611                     fi
5612                     ;;
5613                   -R*)
5614                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5615                     if test "$enable_rpath" != no; then
5616                                                                   haveit=
5617                       for x in $rpathdirs; do
5618                         if test "X$x" = "X$dir"; then
5619                           haveit=yes
5620                           break
5621                         fi
5622                       done
5623                       if test -z "$haveit"; then
5624                         rpathdirs="$rpathdirs $dir"
5625                       fi
5626                                                                   haveit=
5627                       for x in $ltrpathdirs; do
5628                         if test "X$x" = "X$dir"; then
5629                           haveit=yes
5630                           break
5631                         fi
5632                       done
5633                       if test -z "$haveit"; then
5634                         ltrpathdirs="$ltrpathdirs $dir"
5635                       fi
5636                     fi
5637                     ;;
5638                   -l*)
5639                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5640                     ;;
5641                   *.la)
5642                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5643                     ;;
5644                   *)
5645                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5646                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5647                     ;;
5648                 esac
5649               done
5650             fi
5651           else
5652                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5653             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5654           fi
5655         fi
5656       fi
5657     done
5658   done
5659   if test "X$rpathdirs" != "X"; then
5660     if test -n "$hardcode_libdir_separator"; then
5661                         alldirs=
5662       for found_dir in $rpathdirs; do
5663         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5664       done
5665             acl_save_libdir="$libdir"
5666       libdir="$alldirs"
5667       eval flag=\"$hardcode_libdir_flag_spec\"
5668       libdir="$acl_save_libdir"
5669       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5670     else
5671             for found_dir in $rpathdirs; do
5672         acl_save_libdir="$libdir"
5673         libdir="$found_dir"
5674         eval flag=\"$hardcode_libdir_flag_spec\"
5675         libdir="$acl_save_libdir"
5676         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5677       done
5678     fi
5679   fi
5680   if test "X$ltrpathdirs" != "X"; then
5681             for found_dir in $ltrpathdirs; do
5682       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5683     done
5684   fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5704 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5705 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   gt_save_CPPFLAGS="$CPPFLAGS"
5709      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5710      gt_save_LIBS="$LIBS"
5711      LIBS="$LIBS -framework CoreFoundation"
5712      cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718 #include <CFPreferences.h>
5719 int
5720 main ()
5721 {
5722 CFPreferencesCopyAppValue(NULL, NULL)
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729   (eval $ac_link) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest$ac_exeext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   gt_cv_func_CFPreferencesCopyAppValue=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 gt_cv_func_CFPreferencesCopyAppValue=no
5755 fi
5756 rm -f conftest.err conftest.$ac_objext \
5757       conftest$ac_exeext conftest.$ac_ext
5758      CPPFLAGS="$gt_save_CPPFLAGS"
5759      LIBS="$gt_save_LIBS"
5760 fi
5761 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5762 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5763   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5764
5765 cat >>confdefs.h <<\_ACEOF
5766 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5767 _ACEOF
5768
5769   fi
5770     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5771 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5772 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   gt_save_CPPFLAGS="$CPPFLAGS"
5776      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5777      gt_save_LIBS="$LIBS"
5778      LIBS="$LIBS -framework CoreFoundation"
5779      cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h.  */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h.  */
5785 #include <CFLocale.h>
5786 int
5787 main ()
5788 {
5789 CFLocaleCopyCurrent();
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796   (eval $ac_link) 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } &&
5803          { ac_try='test -z "$ac_c_werror_flag"
5804                          || test ! -s conftest.err'
5805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806   (eval $ac_try) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); }; } &&
5810          { ac_try='test -s conftest$ac_exeext'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; }; then
5816   gt_cv_func_CFLocaleCopyCurrent=yes
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821 gt_cv_func_CFLocaleCopyCurrent=no
5822 fi
5823 rm -f conftest.err conftest.$ac_objext \
5824       conftest$ac_exeext conftest.$ac_ext
5825      CPPFLAGS="$gt_save_CPPFLAGS"
5826      LIBS="$gt_save_LIBS"
5827 fi
5828 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5829 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5830   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5831
5832 cat >>confdefs.h <<\_ACEOF
5833 #define HAVE_CFLOCALECOPYCURRENT 1
5834 _ACEOF
5835
5836   fi
5837   INTL_MACOSX_LIBS=
5838   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5839     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5840   fi
5841
5842
5843
5844
5845   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5846 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5847     # Check whether --enable-nls or --disable-nls was given.
5848 if test "${enable_nls+set}" = set; then
5849   enableval="$enable_nls"
5850   USE_NLS=$enableval
5851 else
5852   USE_NLS=yes
5853 fi;
5854   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5855 echo "${ECHO_T}$USE_NLS" >&6
5856
5857
5858
5859
5860   LIBINTL=
5861   LTLIBINTL=
5862   POSUB=
5863
5864     if test "$USE_NLS" = "yes"; then
5865     gt_use_preinstalled_gnugettext=no
5866
5867
5868
5869
5870
5871
5872         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5873 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5874 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5875   echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877   cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 #include <libintl.h>
5884 extern int _nl_msg_cat_cntr;
5885 extern int *_nl_domain_bindings;
5886 int
5887 main ()
5888 {
5889 bindtextdomain ("", "");
5890 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5897   (eval $ac_link) 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } &&
5904          { ac_try='test -z "$ac_c_werror_flag"
5905                          || test ! -s conftest.err'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; } &&
5911          { ac_try='test -s conftest$ac_exeext'
5912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913   (eval $ac_try) 2>&5
5914   ac_status=$?
5915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916   (exit $ac_status); }; }; then
5917   gt_cv_func_gnugettext1_libc=yes
5918 else
5919   echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 gt_cv_func_gnugettext1_libc=no
5923 fi
5924 rm -f conftest.err conftest.$ac_objext \
5925       conftest$ac_exeext conftest.$ac_ext
5926 fi
5927 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5928 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5929
5930         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5931
5932
5933
5934
5935
5936           am_save_CPPFLAGS="$CPPFLAGS"
5937
5938   for element in $INCICONV; do
5939     haveit=
5940     for x in $CPPFLAGS; do
5941
5942   acl_save_prefix="$prefix"
5943   prefix="$acl_final_prefix"
5944   acl_save_exec_prefix="$exec_prefix"
5945   exec_prefix="$acl_final_exec_prefix"
5946   eval x=\"$x\"
5947   exec_prefix="$acl_save_exec_prefix"
5948   prefix="$acl_save_prefix"
5949
5950       if test "X$x" = "X$element"; then
5951         haveit=yes
5952         break
5953       fi
5954     done
5955     if test -z "$haveit"; then
5956       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5957     fi
5958   done
5959
5960
5961   echo "$as_me:$LINENO: checking for iconv" >&5
5962 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5963 if test "${am_cv_func_iconv+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966
5967     am_cv_func_iconv="no, consider installing GNU libiconv"
5968     am_cv_lib_iconv=no
5969     cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h.  */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h.  */
5975 #include <stdlib.h>
5976 #include <iconv.h>
5977 int
5978 main ()
5979 {
5980 iconv_t cd = iconv_open("","");
5981        iconv(cd,NULL,NULL,NULL,NULL);
5982        iconv_close(cd);
5983   ;
5984   return 0;
5985 }
5986 _ACEOF
5987 rm -f conftest.$ac_objext conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989   (eval $ac_link) 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } &&
5996          { ac_try='test -z "$ac_c_werror_flag"
5997                          || test ! -s conftest.err'
5998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999   (eval $ac_try) 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; } &&
6003          { ac_try='test -s conftest$ac_exeext'
6004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005   (eval $ac_try) 2>&5
6006   ac_status=$?
6007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008   (exit $ac_status); }; }; then
6009   am_cv_func_iconv=yes
6010 else
6011   echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6013
6014 fi
6015 rm -f conftest.err conftest.$ac_objext \
6016       conftest$ac_exeext conftest.$ac_ext
6017     if test "$am_cv_func_iconv" != yes; then
6018       am_save_LIBS="$LIBS"
6019       LIBS="$LIBS $LIBICONV"
6020       cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026 #include <stdlib.h>
6027 #include <iconv.h>
6028 int
6029 main ()
6030 {
6031 iconv_t cd = iconv_open("","");
6032          iconv(cd,NULL,NULL,NULL,NULL);
6033          iconv_close(cd);
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>conftest.er1
6041   ac_status=$?
6042   grep -v '^ *+' conftest.er1 >conftest.err
6043   rm -f conftest.er1
6044   cat conftest.err >&5
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } &&
6047          { ac_try='test -z "$ac_c_werror_flag"
6048                          || test ! -s conftest.err'
6049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050   (eval $ac_try) 2>&5
6051   ac_status=$?
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); }; } &&
6054          { ac_try='test -s conftest$ac_exeext'
6055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056   (eval $ac_try) 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); }; }; then
6060   am_cv_lib_iconv=yes
6061         am_cv_func_iconv=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 fi
6067 rm -f conftest.err conftest.$ac_objext \
6068       conftest$ac_exeext conftest.$ac_ext
6069       LIBS="$am_save_LIBS"
6070     fi
6071
6072 fi
6073 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6074 echo "${ECHO_T}$am_cv_func_iconv" >&6
6075   if test "$am_cv_func_iconv" = yes; then
6076
6077 cat >>confdefs.h <<\_ACEOF
6078 #define HAVE_ICONV 1
6079 _ACEOF
6080
6081   fi
6082   if test "$am_cv_lib_iconv" = yes; then
6083     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6084 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6085     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6086 echo "${ECHO_T}$LIBICONV" >&6
6087   else
6088             CPPFLAGS="$am_save_CPPFLAGS"
6089     LIBICONV=
6090     LTLIBICONV=
6091   fi
6092
6093
6094
6095
6096
6097
6098     use_additional=yes
6099
6100   acl_save_prefix="$prefix"
6101   prefix="$acl_final_prefix"
6102   acl_save_exec_prefix="$exec_prefix"
6103   exec_prefix="$acl_final_exec_prefix"
6104
6105     eval additional_includedir=\"$includedir\"
6106     eval additional_libdir=\"$libdir\"
6107
6108   exec_prefix="$acl_save_exec_prefix"
6109   prefix="$acl_save_prefix"
6110
6111
6112 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6113 if test "${with_libintl_prefix+set}" = set; then
6114   withval="$with_libintl_prefix"
6115
6116     if test "X$withval" = "Xno"; then
6117       use_additional=no
6118     else
6119       if test "X$withval" = "X"; then
6120
6121   acl_save_prefix="$prefix"
6122   prefix="$acl_final_prefix"
6123   acl_save_exec_prefix="$exec_prefix"
6124   exec_prefix="$acl_final_exec_prefix"
6125
6126           eval additional_includedir=\"$includedir\"
6127           eval additional_libdir=\"$libdir\"
6128
6129   exec_prefix="$acl_save_exec_prefix"
6130   prefix="$acl_save_prefix"
6131
6132       else
6133         additional_includedir="$withval/include"
6134         additional_libdir="$withval/lib"
6135       fi
6136     fi
6137
6138 fi;
6139       LIBINTL=
6140   LTLIBINTL=
6141   INCINTL=
6142   rpathdirs=
6143   ltrpathdirs=
6144   names_already_handled=
6145   names_next_round='intl '
6146   while test -n "$names_next_round"; do
6147     names_this_round="$names_next_round"
6148     names_next_round=
6149     for name in $names_this_round; do
6150       already_handled=
6151       for n in $names_already_handled; do
6152         if test "$n" = "$name"; then
6153           already_handled=yes
6154           break
6155         fi
6156       done
6157       if test -z "$already_handled"; then
6158         names_already_handled="$names_already_handled $name"
6159                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6160         eval value=\"\$HAVE_LIB$uppername\"
6161         if test -n "$value"; then
6162           if test "$value" = yes; then
6163             eval value=\"\$LIB$uppername\"
6164             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6165             eval value=\"\$LTLIB$uppername\"
6166             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6167           else
6168                                     :
6169           fi
6170         else
6171                               found_dir=
6172           found_la=
6173           found_so=
6174           found_a=
6175           if test $use_additional = yes; then
6176             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6177               found_dir="$additional_libdir"
6178               found_so="$additional_libdir/lib$name.$shlibext"
6179               if test -f "$additional_libdir/lib$name.la"; then
6180                 found_la="$additional_libdir/lib$name.la"
6181               fi
6182             else
6183               if test -f "$additional_libdir/lib$name.$libext"; then
6184                 found_dir="$additional_libdir"
6185                 found_a="$additional_libdir/lib$name.$libext"
6186                 if test -f "$additional_libdir/lib$name.la"; then
6187                   found_la="$additional_libdir/lib$name.la"
6188                 fi
6189               fi
6190             fi
6191           fi
6192           if test "X$found_dir" = "X"; then
6193             for x in $LDFLAGS $LTLIBINTL; do
6194
6195   acl_save_prefix="$prefix"
6196   prefix="$acl_final_prefix"
6197   acl_save_exec_prefix="$exec_prefix"
6198   exec_prefix="$acl_final_exec_prefix"
6199   eval x=\"$x\"
6200   exec_prefix="$acl_save_exec_prefix"
6201   prefix="$acl_save_prefix"
6202
6203               case "$x" in
6204                 -L*)
6205                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6206                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6207                     found_dir="$dir"
6208                     found_so="$dir/lib$name.$shlibext"
6209                     if test -f "$dir/lib$name.la"; then
6210                       found_la="$dir/lib$name.la"
6211                     fi
6212                   else
6213                     if test -f "$dir/lib$name.$libext"; then
6214                       found_dir="$dir"
6215                       found_a="$dir/lib$name.$libext"
6216                       if test -f "$dir/lib$name.la"; then
6217                         found_la="$dir/lib$name.la"
6218                       fi
6219                     fi
6220                   fi
6221                   ;;
6222               esac
6223               if test "X$found_dir" != "X"; then
6224                 break
6225               fi
6226             done
6227           fi
6228           if test "X$found_dir" != "X"; then
6229                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6230             if test "X$found_so" != "X"; then
6231                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6232                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6233               else
6234                                                                                 haveit=
6235                 for x in $ltrpathdirs; do
6236                   if test "X$x" = "X$found_dir"; then
6237                     haveit=yes
6238                     break
6239                   fi
6240                 done
6241                 if test -z "$haveit"; then
6242                   ltrpathdirs="$ltrpathdirs $found_dir"
6243                 fi
6244                                 if test "$hardcode_direct" = yes; then
6245                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6246                 else
6247                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6248                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6249                                                             haveit=
6250                     for x in $rpathdirs; do
6251                       if test "X$x" = "X$found_dir"; then
6252                         haveit=yes
6253                         break
6254                       fi
6255                     done
6256                     if test -z "$haveit"; then
6257                       rpathdirs="$rpathdirs $found_dir"
6258                     fi
6259                   else
6260                                                                                 haveit=
6261                     for x in $LDFLAGS $LIBINTL; do
6262
6263   acl_save_prefix="$prefix"
6264   prefix="$acl_final_prefix"
6265   acl_save_exec_prefix="$exec_prefix"
6266   exec_prefix="$acl_final_exec_prefix"
6267   eval x=\"$x\"
6268   exec_prefix="$acl_save_exec_prefix"
6269   prefix="$acl_save_prefix"
6270
6271                       if test "X$x" = "X-L$found_dir"; then
6272                         haveit=yes
6273                         break
6274                       fi
6275                     done
6276                     if test -z "$haveit"; then
6277                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6278                     fi
6279                     if test "$hardcode_minus_L" != no; then
6280                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6281                     else
6282                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6283                     fi
6284                   fi
6285                 fi
6286               fi
6287             else
6288               if test "X$found_a" != "X"; then
6289                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6290               else
6291                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6292               fi
6293             fi
6294                         additional_includedir=
6295             case "$found_dir" in
6296               */lib | */lib/)
6297                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6298                 additional_includedir="$basedir/include"
6299                 ;;
6300             esac
6301             if test "X$additional_includedir" != "X"; then
6302                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6303                 haveit=
6304                 if test "X$additional_includedir" = "X/usr/local/include"; then
6305                   if test -n "$GCC"; then
6306                     case $host_os in
6307                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6308                     esac
6309                   fi
6310                 fi
6311                 if test -z "$haveit"; then
6312                   for x in $CPPFLAGS $INCINTL; do
6313
6314   acl_save_prefix="$prefix"
6315   prefix="$acl_final_prefix"
6316   acl_save_exec_prefix="$exec_prefix"
6317   exec_prefix="$acl_final_exec_prefix"
6318   eval x=\"$x\"
6319   exec_prefix="$acl_save_exec_prefix"
6320   prefix="$acl_save_prefix"
6321
6322                     if test "X$x" = "X-I$additional_includedir"; then
6323                       haveit=yes
6324                       break
6325                     fi
6326                   done
6327                   if test -z "$haveit"; then
6328                     if test -d "$additional_includedir"; then
6329                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6330                     fi
6331                   fi
6332                 fi
6333               fi
6334             fi
6335                         if test -n "$found_la"; then
6336                                                         save_libdir="$libdir"
6337               case "$found_la" in
6338                 */* | *\\*) . "$found_la" ;;
6339                 *) . "./$found_la" ;;
6340               esac
6341               libdir="$save_libdir"
6342                             for dep in $dependency_libs; do
6343                 case "$dep" in
6344                   -L*)
6345                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6346                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6347                       haveit=
6348                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6349                         if test -n "$GCC"; then
6350                           case $host_os in
6351                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6352                           esac
6353                         fi
6354                       fi
6355                       if test -z "$haveit"; then
6356                         haveit=
6357                         for x in $LDFLAGS $LIBINTL; do
6358
6359   acl_save_prefix="$prefix"
6360   prefix="$acl_final_prefix"
6361   acl_save_exec_prefix="$exec_prefix"
6362   exec_prefix="$acl_final_exec_prefix"
6363   eval x=\"$x\"
6364   exec_prefix="$acl_save_exec_prefix"
6365   prefix="$acl_save_prefix"
6366
6367                           if test "X$x" = "X-L$additional_libdir"; then
6368                             haveit=yes
6369                             break
6370                           fi
6371                         done
6372                         if test -z "$haveit"; then
6373                           if test -d "$additional_libdir"; then
6374                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6375                           fi
6376                         fi
6377                         haveit=
6378                         for x in $LDFLAGS $LTLIBINTL; do
6379
6380   acl_save_prefix="$prefix"
6381   prefix="$acl_final_prefix"
6382   acl_save_exec_prefix="$exec_prefix"
6383   exec_prefix="$acl_final_exec_prefix"
6384   eval x=\"$x\"
6385   exec_prefix="$acl_save_exec_prefix"
6386   prefix="$acl_save_prefix"
6387
6388                           if test "X$x" = "X-L$additional_libdir"; then
6389                             haveit=yes
6390                             break
6391                           fi
6392                         done
6393                         if test -z "$haveit"; then
6394                           if test -d "$additional_libdir"; then
6395                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6396                           fi
6397                         fi
6398                       fi
6399                     fi
6400                     ;;
6401                   -R*)
6402                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6403                     if test "$enable_rpath" != no; then
6404                                                                   haveit=
6405                       for x in $rpathdirs; do
6406                         if test "X$x" = "X$dir"; then
6407                           haveit=yes
6408                           break
6409                         fi
6410                       done
6411                       if test -z "$haveit"; then
6412                         rpathdirs="$rpathdirs $dir"
6413                       fi
6414                                                                   haveit=
6415                       for x in $ltrpathdirs; do
6416                         if test "X$x" = "X$dir"; then
6417                           haveit=yes
6418                           break
6419                         fi
6420                       done
6421                       if test -z "$haveit"; then
6422                         ltrpathdirs="$ltrpathdirs $dir"
6423                       fi
6424                     fi
6425                     ;;
6426                   -l*)
6427                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6428                     ;;
6429                   *.la)
6430                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6431                     ;;
6432                   *)
6433                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6434                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6435                     ;;
6436                 esac
6437               done
6438             fi
6439           else
6440                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6441             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6442           fi
6443         fi
6444       fi
6445     done
6446   done
6447   if test "X$rpathdirs" != "X"; then
6448     if test -n "$hardcode_libdir_separator"; then
6449                         alldirs=
6450       for found_dir in $rpathdirs; do
6451         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6452       done
6453             acl_save_libdir="$libdir"
6454       libdir="$alldirs"
6455       eval flag=\"$hardcode_libdir_flag_spec\"
6456       libdir="$acl_save_libdir"
6457       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6458     else
6459             for found_dir in $rpathdirs; do
6460         acl_save_libdir="$libdir"
6461         libdir="$found_dir"
6462         eval flag=\"$hardcode_libdir_flag_spec\"
6463         libdir="$acl_save_libdir"
6464         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6465       done
6466     fi
6467   fi
6468   if test "X$ltrpathdirs" != "X"; then
6469             for found_dir in $ltrpathdirs; do
6470       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6471     done
6472   fi
6473
6474           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6475 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6476 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6477   echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479   gt_save_CPPFLAGS="$CPPFLAGS"
6480             CPPFLAGS="$CPPFLAGS $INCINTL"
6481             gt_save_LIBS="$LIBS"
6482             LIBS="$LIBS $LIBINTL"
6483                         cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 #include <libintl.h>
6490 extern int _nl_msg_cat_cntr;
6491 extern
6492 #ifdef __cplusplus
6493 "C"
6494 #endif
6495 const char *_nl_expand_alias (const char *);
6496 int
6497 main ()
6498 {
6499 bindtextdomain ("", "");
6500 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507   (eval $ac_link) 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } &&
6514          { ac_try='test -z "$ac_c_werror_flag"
6515                          || test ! -s conftest.err'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; } &&
6521          { ac_try='test -s conftest$ac_exeext'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   gt_cv_func_gnugettext1_libintl=yes
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 gt_cv_func_gnugettext1_libintl=no
6533 fi
6534 rm -f conftest.err conftest.$ac_objext \
6535       conftest$ac_exeext conftest.$ac_ext
6536                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6537               LIBS="$LIBS $LIBICONV"
6538               cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544 #include <libintl.h>
6545 extern int _nl_msg_cat_cntr;
6546 extern
6547 #ifdef __cplusplus
6548 "C"
6549 #endif
6550 const char *_nl_expand_alias (const char *);
6551 int
6552 main ()
6553 {
6554 bindtextdomain ("", "");
6555 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6556   ;
6557   return 0;
6558 }
6559 _ACEOF
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562   (eval $ac_link) 2>conftest.er1
6563   ac_status=$?
6564   grep -v '^ *+' conftest.er1 >conftest.err
6565   rm -f conftest.er1
6566   cat conftest.err >&5
6567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } &&
6569          { ac_try='test -z "$ac_c_werror_flag"
6570                          || test ! -s conftest.err'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; } &&
6576          { ac_try='test -s conftest$ac_exeext'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; }; then
6582   LIBINTL="$LIBINTL $LIBICONV"
6583                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6584                 gt_cv_func_gnugettext1_libintl=yes
6585
6586 else
6587   echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 fi
6591 rm -f conftest.err conftest.$ac_objext \
6592       conftest$ac_exeext conftest.$ac_ext
6593             fi
6594             CPPFLAGS="$gt_save_CPPFLAGS"
6595             LIBS="$gt_save_LIBS"
6596 fi
6597 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6598 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6599         fi
6600
6601                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6602            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6603                 && test "$PACKAGE" != gettext-runtime \
6604                 && test "$PACKAGE" != gettext-tools; }; then
6605           gt_use_preinstalled_gnugettext=yes
6606         else
6607                     LIBINTL=
6608           LTLIBINTL=
6609           INCINTL=
6610         fi
6611
6612
6613
6614     if test -n "$INTL_MACOSX_LIBS"; then
6615       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6616          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6617                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6618         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6619       fi
6620     fi
6621
6622     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6623        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6624
6625 cat >>confdefs.h <<\_ACEOF
6626 #define ENABLE_NLS 1
6627 _ACEOF
6628
6629     else
6630       USE_NLS=no
6631     fi
6632   fi
6633
6634   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6635 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6636   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6637 echo "${ECHO_T}$USE_NLS" >&6
6638   if test "$USE_NLS" = "yes"; then
6639     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6640 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6641     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6642       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6643         gt_source="external libintl"
6644       else
6645         gt_source="libc"
6646       fi
6647     else
6648       gt_source="included intl directory"
6649     fi
6650     echo "$as_me:$LINENO: result: $gt_source" >&5
6651 echo "${ECHO_T}$gt_source" >&6
6652   fi
6653
6654   if test "$USE_NLS" = "yes"; then
6655
6656     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6657       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6658         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6659 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6660         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6661 echo "${ECHO_T}$LIBINTL" >&6
6662
6663   for element in $INCINTL; do
6664     haveit=
6665     for x in $CPPFLAGS; do
6666
6667   acl_save_prefix="$prefix"
6668   prefix="$acl_final_prefix"
6669   acl_save_exec_prefix="$exec_prefix"
6670   exec_prefix="$acl_final_exec_prefix"
6671   eval x=\"$x\"
6672   exec_prefix="$acl_save_exec_prefix"
6673   prefix="$acl_save_prefix"
6674
6675       if test "X$x" = "X$element"; then
6676         haveit=yes
6677         break
6678       fi
6679     done
6680     if test -z "$haveit"; then
6681       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6682     fi
6683   done
6684
6685       fi
6686
6687
6688 cat >>confdefs.h <<\_ACEOF
6689 #define HAVE_GETTEXT 1
6690 _ACEOF
6691
6692
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_DCGETTEXT 1
6695 _ACEOF
6696
6697     fi
6698
6699         POSUB=po
6700   fi
6701
6702
6703
6704     INTLLIBS="$LIBINTL"
6705
6706
6707
6708
6709
6710
6711 if test x${prefix} = xNONE ; then
6712    if test `eval echo ${datadir}` = NONE/share ; then
6713       datadir=/usr/share
6714    fi
6715 fi
6716
6717 # ------------------------------------------------------------------
6718 #  If the user has not set --prefix, we set our default to nothing.
6719 #  In this case, if the user has not set --sysconfdir, we set it
6720 #  to the package default of /etc/bacula.  If either --prefix or
6721 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6722 # ------------------------------------------------------------------
6723 if test x${prefix} = xNONE ; then
6724     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6725         sysconfdir=/etc/bacula
6726     fi
6727     prefix=
6728 fi
6729 sysconfdir=`eval echo ${sysconfdir}`
6730 datadir=`eval echo ${datadir}`
6731 localedir=`eval echo ${datadir}/locale`
6732 cat >>confdefs.h <<_ACEOF
6733 #define LOCALEDIR "$localedir"
6734 _ACEOF
6735
6736
6737 # -------------------------------------------------------------------------
6738 #  If the user has not set --exec-prefix, we default to ${prefix}
6739 # -------------------------------------------------------------------------
6740 if test x${exec_prefix} = xNONE ; then
6741     exec_prefix=${prefix}
6742 fi
6743
6744 # ------------------------------------------------------------------
6745 # If the user has not set --sbindir, we set our default as /sbin
6746 # ------------------------------------------------------------------
6747 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6748     sbindir=${exec_prefix}/sbin
6749 fi
6750 sbindir=`eval echo ${sbindir}`
6751
6752 # -------------------------------------------------------------------------
6753 #  If the user has not set --mandir, we default to /usr/share/man
6754 # -------------------------------------------------------------------------
6755 if test x$mandir = x'${prefix}/man' ; then
6756    mandir=/usr/share/man
6757 fi
6758
6759
6760 # ------------------------------------------------------------------
6761 # All list of languages for which a translation exist. Each
6762 #  language is separated by a space.
6763 # ------------------------------------------------------------------
6764 ALL_LINGUAS=""
6765
6766 for ac_prog in msgfmt
6767 do
6768   # Extract the first word of "$ac_prog", so it can be a program name with args.
6769 set dummy $ac_prog; ac_word=$2
6770 echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772 if test "${ac_cv_path_MSGFMT+set}" = set; then
6773   echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775   case $MSGFMT in
6776   [\\/]* | ?:[\\/]*)
6777   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6778   ;;
6779   *)
6780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793
6794   ;;
6795 esac
6796 fi
6797 MSGFMT=$ac_cv_path_MSGFMT
6798
6799 if test -n "$MSGFMT"; then
6800   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6801 echo "${ECHO_T}$MSGFMT" >&6
6802 else
6803   echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6
6805 fi
6806
6807   test -n "$MSGFMT" && break
6808 done
6809 test -n "$MSGFMT" || MSGFMT="no"
6810
6811 if test "$MSGFMT" = "no"
6812 then
6813    echo 'msgfmt program not found, disabling NLS !'
6814    USE_NLS=no
6815    USE_INCLUDED_LIBINTL=no
6816 #else
6817
6818     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6819 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6820 if test "${ac_cv_gnu_library_2+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829
6830 #include <features.h>
6831 #ifdef __GNU_LIBRARY__
6832  #if (__GLIBC__ >= 2)
6833   Lucky GNU user
6834  #endif
6835 #endif
6836
6837 _ACEOF
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6840   ac_cv_gnu_library_2=yes
6841 else
6842   ac_cv_gnu_library_2=no
6843 fi
6844 rm -f conftest*
6845
6846
6847
6848 fi
6849 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6850 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6851
6852     GLIBC2="$ac_cv_gnu_library_2"
6853
6854
6855 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6856 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6857 if test "${ac_cv_search_strerror+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   ac_func_search_save_LIBS=$LIBS
6861 ac_cv_search_strerror=no
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868
6869 /* Override any gcc2 internal prototype to avoid an error.  */
6870 #ifdef __cplusplus
6871 extern "C"
6872 #endif
6873 /* We use char because int might match the return type of a gcc2
6874    builtin and then its argument prototype would still apply.  */
6875 char strerror ();
6876 int
6877 main ()
6878 {
6879 strerror ();
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6886   (eval $ac_link) 2>conftest.er1
6887   ac_status=$?
6888   grep -v '^ *+' conftest.er1 >conftest.err
6889   rm -f conftest.er1
6890   cat conftest.err >&5
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); } &&
6893          { ac_try='test -z "$ac_c_werror_flag"
6894                          || test ! -s conftest.err'
6895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896   (eval $ac_try) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; } &&
6900          { ac_try='test -s conftest$ac_exeext'
6901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902   (eval $ac_try) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }; }; then
6906   ac_cv_search_strerror="none required"
6907 else
6908   echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 fi
6912 rm -f conftest.err conftest.$ac_objext \
6913       conftest$ac_exeext conftest.$ac_ext
6914 if test "$ac_cv_search_strerror" = no; then
6915   for ac_lib in cposix; do
6916     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6917     cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h.  */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h.  */
6923
6924 /* Override any gcc2 internal prototype to avoid an error.  */
6925 #ifdef __cplusplus
6926 extern "C"
6927 #endif
6928 /* We use char because int might match the return type of a gcc2
6929    builtin and then its argument prototype would still apply.  */
6930 char strerror ();
6931 int
6932 main ()
6933 {
6934 strerror ();
6935   ;
6936   return 0;
6937 }
6938 _ACEOF
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941   (eval $ac_link) 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } &&
6948          { ac_try='test -z "$ac_c_werror_flag"
6949                          || test ! -s conftest.err'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; } &&
6955          { ac_try='test -s conftest$ac_exeext'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; }; then
6961   ac_cv_search_strerror="-l$ac_lib"
6962 break
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 fi
6968 rm -f conftest.err conftest.$ac_objext \
6969       conftest$ac_exeext conftest.$ac_ext
6970   done
6971 fi
6972 LIBS=$ac_func_search_save_LIBS
6973 fi
6974 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6975 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6976 if test "$ac_cv_search_strerror" != no; then
6977   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6978
6979 fi
6980
6981 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6983 if test "${ac_cv_header_stdc+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992 #include <stdlib.h>
6993 #include <stdarg.h>
6994 #include <string.h>
6995 #include <float.h>
6996
6997 int
6998 main ()
6999 {
7000
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007   (eval $ac_compile) 2>conftest.er1
7008   ac_status=$?
7009   grep -v '^ *+' conftest.er1 >conftest.err
7010   rm -f conftest.er1
7011   cat conftest.err >&5
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -z "$ac_c_werror_flag"
7015                          || test ! -s conftest.err'
7016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017   (eval $ac_try) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; } &&
7021          { ac_try='test -s conftest.$ac_objext'
7022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   ac_cv_header_stdc=yes
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ac_cv_header_stdc=no
7033 fi
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035
7036 if test $ac_cv_header_stdc = yes; then
7037   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7038   cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 #include <string.h>
7045
7046 _ACEOF
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048   $EGREP "memchr" >/dev/null 2>&1; then
7049   :
7050 else
7051   ac_cv_header_stdc=no
7052 fi
7053 rm -f conftest*
7054
7055 fi
7056
7057 if test $ac_cv_header_stdc = yes; then
7058   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7059   cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h.  */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h.  */
7065 #include <stdlib.h>
7066
7067 _ACEOF
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069   $EGREP "free" >/dev/null 2>&1; then
7070   :
7071 else
7072   ac_cv_header_stdc=no
7073 fi
7074 rm -f conftest*
7075
7076 fi
7077
7078 if test $ac_cv_header_stdc = yes; then
7079   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7080   if test "$cross_compiling" = yes; then
7081   :
7082 else
7083   cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h.  */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h.  */
7089 #include <ctype.h>
7090 #if ((' ' & 0x0FF) == 0x020)
7091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7093 #else
7094 # define ISLOWER(c) \
7095                    (('a' <= (c) && (c) <= 'i') \
7096                      || ('j' <= (c) && (c) <= 'r') \
7097                      || ('s' <= (c) && (c) <= 'z'))
7098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7099 #endif
7100
7101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7102 int
7103 main ()
7104 {
7105   int i;
7106   for (i = 0; i < 256; i++)
7107     if (XOR (islower (i), ISLOWER (i))
7108         || toupper (i) != TOUPPER (i))
7109       exit(2);
7110   exit (0);
7111 }
7112 _ACEOF
7113 rm -f conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115   (eval $ac_link) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120   (eval $ac_try) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); }; }; then
7124   :
7125 else
7126   echo "$as_me: program exited with status $ac_status" >&5
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ( exit $ac_status )
7131 ac_cv_header_stdc=no
7132 fi
7133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 fi
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7138 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7139 if test $ac_cv_header_stdc = yes; then
7140
7141 cat >>confdefs.h <<\_ACEOF
7142 #define STDC_HEADERS 1
7143 _ACEOF
7144
7145 fi
7146
7147 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7148 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7149 if test "${ac_cv_c_const+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158
7159 int
7160 main ()
7161 {
7162 /* FIXME: Include the comments suggested by Paul. */
7163 #ifndef __cplusplus
7164   /* Ultrix mips cc rejects this.  */
7165   typedef int charset[2];
7166   const charset x;
7167   /* SunOS 4.1.1 cc rejects this.  */
7168   char const *const *ccp;
7169   char **p;
7170   /* NEC SVR4.0.2 mips cc rejects this.  */
7171   struct point {int x, y;};
7172   static struct point const zero = {0,0};
7173   /* AIX XL C 1.02.0.0 rejects this.
7174      It does not let you subtract one const X* pointer from another in
7175      an arm of an if-expression whose if-part is not a constant
7176      expression */
7177   const char *g = "string";
7178   ccp = &g + (g ? g-g : 0);
7179   /* HPUX 7.0 cc rejects these. */
7180   ++ccp;
7181   p = (char**) ccp;
7182   ccp = (char const *const *) p;
7183   { /* SCO 3.2v4 cc rejects this.  */
7184     char *t;
7185     char const *s = 0 ? (char *) 0 : (char const *) 0;
7186
7187     *t++ = 0;
7188   }
7189   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7190     int x[] = {25, 17};
7191     const int *foo = &x[0];
7192     ++foo;
7193   }
7194   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7195     typedef const int *iptr;
7196     iptr p = 0;
7197     ++p;
7198   }
7199   { /* AIX XL C 1.02.0.0 rejects this saying
7200        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7201     struct s { int j; const int *ap[3]; };
7202     struct s *b; b->j = 5;
7203   }
7204   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7205     const int foo = 10;
7206   }
7207 #endif
7208
7209   ;
7210   return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215   (eval $ac_compile) 2>conftest.er1
7216   ac_status=$?
7217   grep -v '^ *+' conftest.er1 >conftest.err
7218   rm -f conftest.er1
7219   cat conftest.err >&5
7220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221   (exit $ac_status); } &&
7222          { ac_try='test -z "$ac_c_werror_flag"
7223                          || test ! -s conftest.err'
7224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; } &&
7229          { ac_try='test -s conftest.$ac_objext'
7230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231   (eval $ac_try) 2>&5
7232   ac_status=$?
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); }; }; then
7235   ac_cv_c_const=yes
7236 else
7237   echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ac_cv_c_const=no
7241 fi
7242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243 fi
7244 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7245 echo "${ECHO_T}$ac_cv_c_const" >&6
7246 if test $ac_cv_c_const = no; then
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define const
7250 _ACEOF
7251
7252 fi
7253
7254
7255   echo "$as_me:$LINENO: checking for signed" >&5
7256 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7257 if test "${bh_cv_c_signed+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h.  */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h.  */
7266
7267 int
7268 main ()
7269 {
7270 signed char x;
7271   ;
7272   return 0;
7273 }
7274 _ACEOF
7275 rm -f conftest.$ac_objext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277   (eval $ac_compile) 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } &&
7284          { ac_try='test -z "$ac_c_werror_flag"
7285                          || test ! -s conftest.err'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; } &&
7291          { ac_try='test -s conftest.$ac_objext'
7292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293   (eval $ac_try) 2>&5
7294   ac_status=$?
7295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296   (exit $ac_status); }; }; then
7297   bh_cv_c_signed=yes
7298 else
7299   echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 bh_cv_c_signed=no
7303 fi
7304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7305 fi
7306 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7307 echo "${ECHO_T}$bh_cv_c_signed" >&6
7308   if test $bh_cv_c_signed = no; then
7309
7310 cat >>confdefs.h <<\_ACEOF
7311 #define signed
7312 _ACEOF
7313
7314   fi
7315
7316 echo "$as_me:$LINENO: checking for inline" >&5
7317 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7318 if test "${ac_cv_c_inline+set}" = set; then
7319   echo $ECHO_N "(cached) $ECHO_C" >&6
7320 else
7321   ac_cv_c_inline=no
7322 for ac_kw in inline __inline__ __inline; do
7323   cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 #ifndef __cplusplus
7330 typedef int foo_t;
7331 static $ac_kw foo_t static_foo () {return 0; }
7332 $ac_kw foo_t foo () {return 0; }
7333 #endif
7334
7335 _ACEOF
7336 rm -f conftest.$ac_objext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338   (eval $ac_compile) 2>conftest.er1
7339   ac_status=$?
7340   grep -v '^ *+' conftest.er1 >conftest.err
7341   rm -f conftest.er1
7342   cat conftest.err >&5
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); } &&
7345          { ac_try='test -z "$ac_c_werror_flag"
7346                          || test ! -s conftest.err'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; } &&
7352          { ac_try='test -s conftest.$ac_objext'
7353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354   (eval $ac_try) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; }; then
7358   ac_cv_c_inline=$ac_kw; break
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363 fi
7364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 done
7366
7367 fi
7368 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7369 echo "${ECHO_T}$ac_cv_c_inline" >&6
7370
7371
7372 case $ac_cv_c_inline in
7373   inline | yes) ;;
7374   *)
7375     case $ac_cv_c_inline in
7376       no) ac_val=;;
7377       *) ac_val=$ac_cv_c_inline;;
7378     esac
7379     cat >>confdefs.h <<_ACEOF
7380 #ifndef __cplusplus
7381 #define inline $ac_val
7382 #endif
7383 _ACEOF
7384     ;;
7385 esac
7386
7387 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7398                   inttypes.h stdint.h unistd.h
7399 do
7400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7401 echo "$as_me:$LINENO: checking for $ac_header" >&5
7402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   cat >conftest.$ac_ext <<_ACEOF
7407 /* confdefs.h.  */
7408 _ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h.  */
7412 $ac_includes_default
7413
7414 #include <$ac_header>
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418   (eval $ac_compile) 2>conftest.er1
7419   ac_status=$?
7420   grep -v '^ *+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } &&
7425          { ac_try='test -z "$ac_c_werror_flag"
7426                          || test ! -s conftest.err'
7427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428   (eval $ac_try) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }; } &&
7432          { ac_try='test -s conftest.$ac_objext'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; }; then
7438   eval "$as_ac_Header=yes"
7439 else
7440   echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7442
7443 eval "$as_ac_Header=no"
7444 fi
7445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7446 fi
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7450   cat >>confdefs.h <<_ACEOF
7451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7452 _ACEOF
7453
7454 fi
7455
7456 done
7457
7458
7459 echo "$as_me:$LINENO: checking for off_t" >&5
7460 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7461 if test "${ac_cv_type_off_t+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 $ac_includes_default
7471 int
7472 main ()
7473 {
7474 if ((off_t *) 0)
7475   return 0;
7476 if (sizeof (off_t))
7477   return 0;
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484   (eval $ac_compile) 2>conftest.er1
7485   ac_status=$?
7486   grep -v '^ *+' conftest.er1 >conftest.err
7487   rm -f conftest.er1
7488   cat conftest.err >&5
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); } &&
7491          { ac_try='test -z "$ac_c_werror_flag"
7492                          || test ! -s conftest.err'
7493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494   (eval $ac_try) 2>&5
7495   ac_status=$?
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); }; } &&
7498          { ac_try='test -s conftest.$ac_objext'
7499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500   (eval $ac_try) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }; }; then
7504   ac_cv_type_off_t=yes
7505 else
7506   echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7508
7509 ac_cv_type_off_t=no
7510 fi
7511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7515 if test $ac_cv_type_off_t = yes; then
7516   :
7517 else
7518
7519 cat >>confdefs.h <<_ACEOF
7520 #define off_t long
7521 _ACEOF
7522
7523 fi
7524
7525 echo "$as_me:$LINENO: checking for size_t" >&5
7526 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7527 if test "${ac_cv_type_size_t+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 $ac_includes_default
7537 int
7538 main ()
7539 {
7540 if ((size_t *) 0)
7541   return 0;
7542 if (sizeof (size_t))
7543   return 0;
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550   (eval $ac_compile) 2>conftest.er1
7551   ac_status=$?
7552   grep -v '^ *+' conftest.er1 >conftest.err
7553   rm -f conftest.er1
7554   cat conftest.err >&5
7555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } &&
7557          { ac_try='test -z "$ac_c_werror_flag"
7558                          || test ! -s conftest.err'
7559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560   (eval $ac_try) 2>&5
7561   ac_status=$?
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); }; } &&
7564          { ac_try='test -s conftest.$ac_objext'
7565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566   (eval $ac_try) 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }; }; then
7570   ac_cv_type_size_t=yes
7571 else
7572   echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575 ac_cv_type_size_t=no
7576 fi
7577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7580 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7581 if test $ac_cv_type_size_t = yes; then
7582   :
7583 else
7584
7585 cat >>confdefs.h <<_ACEOF
7586 #define size_t unsigned
7587 _ACEOF
7588
7589 fi
7590
7591
7592   echo "$as_me:$LINENO: checking for long long" >&5
7593 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7594 if test "${ac_cv_type_long_long+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603 long long ll = 1LL; int i = 63;
7604 int
7605 main ()
7606 {
7607 long long llmax = (long long) -1;
7608      return ll << i | ll >> i | llmax / ll | llmax % ll;
7609   ;
7610   return 0;
7611 }
7612 _ACEOF
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615   (eval $ac_link) 2>conftest.er1
7616   ac_status=$?
7617   grep -v '^ *+' conftest.er1 >conftest.err
7618   rm -f conftest.er1
7619   cat conftest.err >&5
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -z "$ac_c_werror_flag"
7623                          || test ! -s conftest.err'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; } &&
7629          { ac_try='test -s conftest$ac_exeext'
7630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631   (eval $ac_try) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; }; then
7635   ac_cv_type_long_long=yes
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 ac_cv_type_long_long=no
7641 fi
7642 rm -f conftest.err conftest.$ac_objext \
7643       conftest$ac_exeext conftest.$ac_ext
7644 fi
7645 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7646 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7647   if test $ac_cv_type_long_long = yes; then
7648
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_LONG_LONG 1
7651 _ACEOF
7652
7653   fi
7654
7655
7656   echo "$as_me:$LINENO: checking for long double" >&5
7657 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7658 if test "${gt_cv_c_long_double+set}" = set; then
7659   echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661   if test "$GCC" = yes; then
7662        gt_cv_c_long_double=yes
7663      else
7664        cat >conftest.$ac_ext <<_ACEOF
7665 /* confdefs.h.  */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h.  */
7670
7671          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7672          long double foo = 0.0;
7673          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7674          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7675
7676 int
7677 main ()
7678 {
7679
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686   (eval $ac_compile) 2>conftest.er1
7687   ac_status=$?
7688   grep -v '^ *+' conftest.er1 >conftest.err
7689   rm -f conftest.er1
7690   cat conftest.err >&5
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -z "$ac_c_werror_flag"
7694                          || test ! -s conftest.err'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; } &&
7700          { ac_try='test -s conftest.$ac_objext'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; }; then
7706   gt_cv_c_long_double=yes
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 gt_cv_c_long_double=no
7712 fi
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714      fi
7715 fi
7716 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7717 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7718   if test $gt_cv_c_long_double = yes; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_LONG_DOUBLE 1
7722 _ACEOF
7723
7724   fi
7725
7726
7727   echo "$as_me:$LINENO: checking for wchar_t" >&5
7728 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7729 if test "${gt_cv_c_wchar_t+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738 #include <stddef.h>
7739        wchar_t foo = (wchar_t)'\0';
7740 int
7741 main ()
7742 {
7743
7744   ;
7745   return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7750   (eval $ac_compile) 2>conftest.er1
7751   ac_status=$?
7752   grep -v '^ *+' conftest.er1 >conftest.err
7753   rm -f conftest.er1
7754   cat conftest.err >&5
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); } &&
7757          { ac_try='test -z "$ac_c_werror_flag"
7758                          || test ! -s conftest.err'
7759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760   (eval $ac_try) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); }; } &&
7764          { ac_try='test -s conftest.$ac_objext'
7765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766   (eval $ac_try) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); }; }; then
7770   gt_cv_c_wchar_t=yes
7771 else
7772   echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 gt_cv_c_wchar_t=no
7776 fi
7777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7778 fi
7779 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7780 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7781   if test $gt_cv_c_wchar_t = yes; then
7782
7783 cat >>confdefs.h <<\_ACEOF
7784 #define HAVE_WCHAR_T 1
7785 _ACEOF
7786
7787   fi
7788
7789
7790   echo "$as_me:$LINENO: checking for wint_t" >&5
7791 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7792 if test "${gt_cv_c_wint_t+set}" = set; then
7793   echo $ECHO_N "(cached) $ECHO_C" >&6
7794 else
7795   cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801 #include <wchar.h>
7802        wint_t foo = (wchar_t)'\0';
7803 int
7804 main ()
7805 {
7806
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813   (eval $ac_compile) 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag"
7821                          || test ! -s conftest.err'
7822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823   (eval $ac_try) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); }; } &&
7827          { ac_try='test -s conftest.$ac_objext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   gt_cv_c_wint_t=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 gt_cv_c_wint_t=no
7839 fi
7840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7843 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7844   if test $gt_cv_c_wint_t = yes; then
7845
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_WINT_T 1
7848 _ACEOF
7849
7850   fi
7851
7852
7853   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7854 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7855 if test "${gl_cv_header_inttypes_h+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864 #include <sys/types.h>
7865 #include <inttypes.h>
7866 int
7867 main ()
7868 {
7869 uintmax_t i = (uintmax_t) -1;
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876   (eval $ac_compile) 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag"
7884                          || test ! -s conftest.err'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; } &&
7890          { ac_try='test -s conftest.$ac_objext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   gl_cv_header_inttypes_h=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 gl_cv_header_inttypes_h=no
7902 fi
7903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7904 fi
7905 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7906 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7907   if test $gl_cv_header_inttypes_h = yes; then
7908
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7911 _ACEOF
7912
7913   fi
7914
7915
7916   echo "$as_me:$LINENO: checking for stdint.h" >&5
7917 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7918 if test "${gl_cv_header_stdint_h+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927 #include <sys/types.h>
7928 #include <stdint.h>
7929 int
7930 main ()
7931 {
7932 uintmax_t i = (uintmax_t) -1;
7933   ;
7934   return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939   (eval $ac_compile) 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } &&
7946          { ac_try='test -z "$ac_c_werror_flag"
7947                          || test ! -s conftest.err'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; } &&
7953          { ac_try='test -s conftest.$ac_objext'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; }; then
7959   gl_cv_header_stdint_h=yes
7960 else
7961   echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 gl_cv_header_stdint_h=no
7965 fi
7966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967 fi
7968 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7969 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7970   if test $gl_cv_header_stdint_h = yes; then
7971
7972 cat >>confdefs.h <<_ACEOF
7973 #define HAVE_STDINT_H_WITH_UINTMAX 1
7974 _ACEOF
7975
7976   fi
7977
7978
7979
7980
7981   echo "$as_me:$LINENO: checking for intmax_t" >&5
7982 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7983 if test "${gt_cv_c_intmax_t+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h.  */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h.  */
7992
7993 #include <stddef.h>
7994 #include <stdlib.h>
7995 #if HAVE_STDINT_H_WITH_UINTMAX
7996 #include <stdint.h>
7997 #endif
7998 #if HAVE_INTTYPES_H_WITH_UINTMAX
7999 #include <inttypes.h>
8000 #endif
8001
8002 int
8003 main ()
8004 {
8005 intmax_t x = -1;
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8012   (eval $ac_compile) 2>conftest.er1
8013   ac_status=$?
8014   grep -v '^ *+' conftest.er1 >conftest.err
8015   rm -f conftest.er1
8016   cat conftest.err >&5
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } &&
8019          { ac_try='test -z "$ac_c_werror_flag"
8020                          || test ! -s conftest.err'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; } &&
8026          { ac_try='test -s conftest.$ac_objext'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; }; then
8032   gt_cv_c_intmax_t=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 gt_cv_c_intmax_t=no
8038 fi
8039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040 fi
8041 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8042 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8043   if test $gt_cv_c_intmax_t = yes; then
8044
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_INTMAX_T 1
8047 _ACEOF
8048
8049   fi
8050
8051
8052
8053   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8054 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8055 if test "${gt_cv_func_printf_posix+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058
8059       if test "$cross_compiling" = yes; then
8060
8061         cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h.  */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h.  */
8067
8068 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8069   notposix
8070 #endif
8071
8072 _ACEOF
8073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074   $EGREP "notposix" >/dev/null 2>&1; then
8075   gt_cv_func_printf_posix="guessing no"
8076 else
8077   gt_cv_func_printf_posix="guessing yes"
8078 fi
8079 rm -f conftest*
8080
8081
8082 else
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089
8090 #include <stdio.h>
8091 #include <string.h>
8092 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8093    dollar expansion (possibly an autoconf bug).  */
8094 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8095 static char buf[100];
8096 int main ()
8097 {
8098   sprintf (buf, format, 33, 55);
8099   return (strcmp (buf, "55 33") != 0);
8100 }
8101 _ACEOF
8102 rm -f conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109   (eval $ac_try) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; }; then
8113   gt_cv_func_printf_posix=yes
8114 else
8115   echo "$as_me: program exited with status $ac_status" >&5
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 ( exit $ac_status )
8120 gt_cv_func_printf_posix=no
8121 fi
8122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8123 fi
8124
8125 fi
8126 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8127 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8128   case $gt_cv_func_printf_posix in
8129     *yes)
8130
8131 cat >>confdefs.h <<\_ACEOF
8132 #define HAVE_POSIX_PRINTF 1
8133 _ACEOF
8134
8135       ;;
8136   esac
8137
8138 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8139 # for constant arguments.  Useless!
8140 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8141 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8142 if test "${ac_cv_working_alloca_h+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h.  */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h.  */
8151 #include <alloca.h>
8152 int
8153 main ()
8154 {
8155 char *p = (char *) alloca (2 * sizeof (int));
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag"
8170                          || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest$ac_exeext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   ac_cv_working_alloca_h=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_working_alloca_h=no
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8193 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8194 if test $ac_cv_working_alloca_h = yes; then
8195
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_ALLOCA_H 1
8198 _ACEOF
8199
8200 fi
8201
8202 echo "$as_me:$LINENO: checking for alloca" >&5
8203 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8204 if test "${ac_cv_func_alloca_works+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 #ifdef __GNUC__
8214 # define alloca __builtin_alloca
8215 #else
8216 # ifdef _MSC_VER
8217 #  include <malloc.h>
8218 #  define alloca _alloca
8219 # else
8220 #  if HAVE_ALLOCA_H
8221 #   include <alloca.h>
8222 #  else
8223 #   ifdef _AIX
8224  #pragma alloca
8225 #   else
8226 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8227 char *alloca ();
8228 #    endif
8229 #   endif
8230 #  endif
8231 # endif
8232 #endif
8233
8234 int
8235 main ()
8236 {
8237 char *p = (char *) alloca (1);
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8244   (eval $ac_link) 2>conftest.er1
8245   ac_status=$?
8246   grep -v '^ *+' conftest.er1 >conftest.err
8247   rm -f conftest.er1
8248   cat conftest.err >&5
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); } &&
8251          { ac_try='test -z "$ac_c_werror_flag"
8252                          || test ! -s conftest.err'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; } &&
8258          { ac_try='test -s conftest$ac_exeext'
8259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260   (eval $ac_try) 2>&5
8261   ac_status=$?
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); }; }; then
8264   ac_cv_func_alloca_works=yes
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ac_cv_func_alloca_works=no
8270 fi
8271 rm -f conftest.err conftest.$ac_objext \
8272       conftest$ac_exeext conftest.$ac_ext
8273 fi
8274 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8275 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8276
8277 if test $ac_cv_func_alloca_works = yes; then
8278
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_ALLOCA 1
8281 _ACEOF
8282
8283 else
8284   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8285 # that cause trouble.  Some versions do not even contain alloca or
8286 # contain a buggy version.  If you still want to use their alloca,
8287 # use ar to extract alloca.o from them instead of compiling alloca.c.
8288
8289 ALLOCA=alloca.$ac_objext
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define C_ALLOCA 1
8293 _ACEOF
8294
8295
8296 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8297 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8298 if test "${ac_cv_os_cray+set}" = set; then
8299   echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301   cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307 #if defined(CRAY) && ! defined(CRAY2)
8308 webecray
8309 #else
8310 wenotbecray
8311 #endif
8312
8313 _ACEOF
8314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8315   $EGREP "webecray" >/dev/null 2>&1; then
8316   ac_cv_os_cray=yes
8317 else
8318   ac_cv_os_cray=no
8319 fi
8320 rm -f conftest*
8321
8322 fi
8323 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8324 echo "${ECHO_T}$ac_cv_os_cray" >&6
8325 if test $ac_cv_os_cray = yes; then
8326   for ac_func in _getb67 GETB67 getb67; do
8327     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8328 echo "$as_me:$LINENO: checking for $ac_func" >&5
8329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8330 if eval "test \"\${$as_ac_var+set}\" = set"; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8341 #define $ac_func innocuous_$ac_func
8342
8343 /* System header to define __stub macros and hopefully few prototypes,
8344     which can conflict with char $ac_func (); below.
8345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8346     <limits.h> exists even on freestanding compilers.  */
8347
8348 #ifdef __STDC__
8349 # include <limits.h>
8350 #else
8351 # include <assert.h>
8352 #endif
8353
8354 #undef $ac_func
8355
8356 /* Override any gcc2 internal prototype to avoid an error.  */
8357 #ifdef __cplusplus
8358 extern "C"
8359 {
8360 #endif
8361 /* We use char because int might match the return type of a gcc2
8362    builtin and then its argument prototype would still apply.  */
8363 char $ac_func ();
8364 /* The GNU C library defines this for functions which it implements
8365     to always fail with ENOSYS.  Some functions are actually named
8366     something starting with __ and the normal name is an alias.  */
8367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8368 choke me
8369 #else
8370 char (*f) () = $ac_func;
8371 #endif
8372 #ifdef __cplusplus
8373 }
8374 #endif
8375
8376 int
8377 main ()
8378 {
8379 return f != $ac_func;
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386   (eval $ac_link) 2>conftest.er1
8387   ac_status=$?
8388   grep -v '^ *+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } &&
8393          { ac_try='test -z "$ac_c_werror_flag"
8394                          || test ! -s conftest.err'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; } &&
8400          { ac_try='test -s conftest$ac_exeext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   eval "$as_ac_var=yes"
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 eval "$as_ac_var=no"
8412 fi
8413 rm -f conftest.err conftest.$ac_objext \
8414       conftest$ac_exeext conftest.$ac_ext
8415 fi
8416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8418 if test `eval echo '${'$as_ac_var'}'` = yes; then
8419
8420 cat >>confdefs.h <<_ACEOF
8421 #define CRAY_STACKSEG_END $ac_func
8422 _ACEOF
8423
8424     break
8425 fi
8426
8427   done
8428 fi
8429
8430 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8431 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8432 if test "${ac_cv_c_stack_direction+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   if test "$cross_compiling" = yes; then
8436   ac_cv_c_stack_direction=0
8437 else
8438   cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444 int
8445 find_stack_direction ()
8446 {
8447   static char *addr = 0;
8448   auto char dummy;
8449   if (addr == 0)
8450     {
8451       addr = &dummy;
8452       return find_stack_direction ();
8453     }
8454   else
8455     return (&dummy > addr) ? 1 : -1;
8456 }
8457
8458 int
8459 main ()
8460 {
8461   exit (find_stack_direction () < 0);
8462 }
8463 _ACEOF
8464 rm -f conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466   (eval $ac_link) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_cv_c_stack_direction=1
8476 else
8477   echo "$as_me: program exited with status $ac_status" >&5
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 ( exit $ac_status )
8482 ac_cv_c_stack_direction=-1
8483 fi
8484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8485 fi
8486 fi
8487 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8488 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8489
8490 cat >>confdefs.h <<_ACEOF
8491 #define STACK_DIRECTION $ac_cv_c_stack_direction
8492 _ACEOF
8493
8494
8495 fi
8496
8497
8498
8499 for ac_header in stdlib.h unistd.h
8500 do
8501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8503   echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 fi
8508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8510 else
8511   # Is the header compilable?
8512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h.  */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h.  */
8520 $ac_includes_default
8521 #include <$ac_header>
8522 _ACEOF
8523 rm -f conftest.$ac_objext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525   (eval $ac_compile) 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag"
8533                          || test ! -s conftest.err'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; } &&
8539          { ac_try='test -s conftest.$ac_objext'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   ac_header_compiler=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 ac_header_compiler=no
8551 fi
8552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8554 echo "${ECHO_T}$ac_header_compiler" >&6
8555
8556 # Is the header present?
8557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565 #include <$ac_header>
8566 _ACEOF
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8569   ac_status=$?
8570   grep -v '^ *+' conftest.er1 >conftest.err
8571   rm -f conftest.er1
8572   cat conftest.err >&5
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } >/dev/null; then
8575   if test -s conftest.err; then
8576     ac_cpp_err=$ac_c_preproc_warn_flag
8577     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8578   else
8579     ac_cpp_err=
8580   fi
8581 else
8582   ac_cpp_err=yes
8583 fi
8584 if test -z "$ac_cpp_err"; then
8585   ac_header_preproc=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590   ac_header_preproc=no
8591 fi
8592 rm -f conftest.err conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594 echo "${ECHO_T}$ac_header_preproc" >&6
8595
8596 # So?  What about this header?
8597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8598   yes:no: )
8599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8603     ac_header_preproc=yes
8604     ;;
8605   no:yes:* )
8606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8608     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8609 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8610     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8612     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8613 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8614     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8616     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8618     (
8619       cat <<\_ASBOX
8620 ## ------------------------------------------ ##
8621 ## Report this to the AC_PACKAGE_NAME lists.  ##
8622 ## ------------------------------------------ ##
8623 _ASBOX
8624     ) |
8625       sed "s/^/$as_me: WARNING:     /" >&2
8626     ;;
8627 esac
8628 echo "$as_me:$LINENO: checking for $ac_header" >&5
8629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   eval "$as_ac_Header=\$ac_header_preproc"
8634 fi
8635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8637
8638 fi
8639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8640   cat >>confdefs.h <<_ACEOF
8641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8642 _ACEOF
8643
8644 fi
8645
8646 done
8647
8648
8649 for ac_func in getpagesize
8650 do
8651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8652 echo "$as_me:$LINENO: checking for $ac_func" >&5
8653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_var+set}\" = set"; then
8655   echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657   cat >conftest.$ac_ext <<_ACEOF
8658 /* confdefs.h.  */
8659 _ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h.  */
8663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8665 #define $ac_func innocuous_$ac_func
8666
8667 /* System header to define __stub macros and hopefully few prototypes,
8668     which can conflict with char $ac_func (); below.
8669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670     <limits.h> exists even on freestanding compilers.  */
8671
8672 #ifdef __STDC__
8673 # include <limits.h>
8674 #else
8675 # include <assert.h>
8676 #endif
8677
8678 #undef $ac_func
8679
8680 /* Override any gcc2 internal prototype to avoid an error.  */
8681 #ifdef __cplusplus
8682 extern "C"
8683 {
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686    builtin and then its argument prototype would still apply.  */
8687 char $ac_func ();
8688 /* The GNU C library defines this for functions which it implements
8689     to always fail with ENOSYS.  Some functions are actually named
8690     something starting with __ and the normal name is an alias.  */
8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8692 choke me
8693 #else
8694 char (*f) () = $ac_func;
8695 #endif
8696 #ifdef __cplusplus
8697 }
8698 #endif
8699
8700 int
8701 main ()
8702 {
8703 return f != $ac_func;
8704   ;
8705   return 0;
8706 }
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710   (eval $ac_link) 2>conftest.er1
8711   ac_status=$?
8712   grep -v '^ *+' conftest.er1 >conftest.err
8713   rm -f conftest.er1
8714   cat conftest.err >&5
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -z "$ac_c_werror_flag"
8718                          || test ! -s conftest.err'
8719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720   (eval $ac_try) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); }; } &&
8724          { ac_try='test -s conftest$ac_exeext'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; }; then
8730   eval "$as_ac_var=yes"
8731 else
8732   echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 eval "$as_ac_var=no"
8736 fi
8737 rm -f conftest.err conftest.$ac_objext \
8738       conftest$ac_exeext conftest.$ac_ext
8739 fi
8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8742 if test `eval echo '${'$as_ac_var'}'` = yes; then
8743   cat >>confdefs.h <<_ACEOF
8744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8745 _ACEOF
8746
8747 fi
8748 done
8749
8750 echo "$as_me:$LINENO: checking for working mmap" >&5
8751 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8752 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8753   echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755   if test "$cross_compiling" = yes; then
8756   ac_cv_func_mmap_fixed_mapped=no
8757 else
8758   cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764 $ac_includes_default
8765 /* malloc might have been renamed as rpl_malloc. */
8766 #undef malloc
8767
8768 /* Thanks to Mike Haertel and Jim Avera for this test.
8769    Here is a matrix of mmap possibilities:
8770         mmap private not fixed
8771         mmap private fixed at somewhere currently unmapped
8772         mmap private fixed at somewhere already mapped
8773         mmap shared not fixed
8774         mmap shared fixed at somewhere currently unmapped
8775         mmap shared fixed at somewhere already mapped
8776    For private mappings, we should verify that changes cannot be read()
8777    back from the file, nor mmap's back from the file at a different
8778    address.  (There have been systems where private was not correctly
8779    implemented like the infamous i386 svr4.0, and systems where the
8780    VM page cache was not coherent with the file system buffer cache
8781    like early versions of FreeBSD and possibly contemporary NetBSD.)
8782    For shared mappings, we should conversely verify that changes get
8783    propagated back to all the places they're supposed to be.
8784
8785    Grep wants private fixed already mapped.
8786    The main things grep needs to know about mmap are:
8787    * does it exist and is it safe to write into the mmap'd area
8788    * how to use it (BSD variants)  */
8789
8790 #include <fcntl.h>
8791 #include <sys/mman.h>
8792
8793 #if !STDC_HEADERS && !HAVE_STDLIB_H
8794 char *malloc ();
8795 #endif
8796
8797 /* This mess was copied from the GNU getpagesize.h.  */
8798 #if !HAVE_GETPAGESIZE
8799 /* Assume that all systems that can run configure have sys/param.h.  */
8800 # if !HAVE_SYS_PARAM_H
8801 #  define HAVE_SYS_PARAM_H 1
8802 # endif
8803
8804 # ifdef _SC_PAGESIZE
8805 #  define getpagesize() sysconf(_SC_PAGESIZE)
8806 # else /* no _SC_PAGESIZE */
8807 #  if HAVE_SYS_PARAM_H
8808 #   include <sys/param.h>
8809 #   ifdef EXEC_PAGESIZE
8810 #    define getpagesize() EXEC_PAGESIZE
8811 #   else /* no EXEC_PAGESIZE */
8812 #    ifdef NBPG
8813 #     define getpagesize() NBPG * CLSIZE
8814 #     ifndef CLSIZE
8815 #      define CLSIZE 1
8816 #     endif /* no CLSIZE */
8817 #    else /* no NBPG */
8818 #     ifdef NBPC
8819 #      define getpagesize() NBPC
8820 #     else /* no NBPC */
8821 #      ifdef PAGESIZE
8822 #       define getpagesize() PAGESIZE
8823 #      endif /* PAGESIZE */
8824 #     endif /* no NBPC */
8825 #    endif /* no NBPG */
8826 #   endif /* no EXEC_PAGESIZE */
8827 #  else /* no HAVE_SYS_PARAM_H */
8828 #   define getpagesize() 8192   /* punt totally */
8829 #  endif /* no HAVE_SYS_PARAM_H */
8830 # endif /* no _SC_PAGESIZE */
8831
8832 #endif /* no HAVE_GETPAGESIZE */
8833
8834 int
8835 main ()
8836 {
8837   char *data, *data2, *data3;
8838   int i, pagesize;
8839   int fd;
8840
8841   pagesize = getpagesize ();
8842
8843   /* First, make a file with some known garbage in it. */
8844   data = (char *) malloc (pagesize);
8845   if (!data)
8846     exit (1);
8847   for (i = 0; i < pagesize; ++i)
8848     *(data + i) = rand ();
8849   umask (0);
8850   fd = creat ("conftest.mmap", 0600);
8851   if (fd < 0)
8852     exit (1);
8853   if (write (fd, data, pagesize) != pagesize)
8854     exit (1);
8855   close (fd);
8856
8857   /* Next, try to mmap the file at a fixed address which already has
8858      something else allocated at it.  If we can, also make sure that
8859      we see the same garbage.  */
8860   fd = open ("conftest.mmap", O_RDWR);
8861   if (fd < 0)
8862     exit (1);
8863   data2 = (char *) malloc (2 * pagesize);
8864   if (!data2)
8865     exit (1);
8866   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8867   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8868                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8869     exit (1);
8870   for (i = 0; i < pagesize; ++i)
8871     if (*(data + i) != *(data2 + i))
8872       exit (1);
8873
8874   /* Finally, make sure that changes to the mapped area do not
8875      percolate back to the file as seen by read().  (This is a bug on
8876      some variants of i386 svr4.0.)  */
8877   for (i = 0; i < pagesize; ++i)
8878     *(data2 + i) = *(data2 + i) + 1;
8879   data3 = (char *) malloc (pagesize);
8880   if (!data3)
8881     exit (1);
8882   if (read (fd, data3, pagesize) != pagesize)
8883     exit (1);
8884   for (i = 0; i < pagesize; ++i)
8885     if (*(data + i) != *(data3 + i))
8886       exit (1);
8887   close (fd);
8888   exit (0);
8889 }
8890 _ACEOF
8891 rm -f conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893   (eval $ac_link) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_cv_func_mmap_fixed_mapped=yes
8903 else
8904   echo "$as_me: program exited with status $ac_status" >&5
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 ( exit $ac_status )
8909 ac_cv_func_mmap_fixed_mapped=no
8910 fi
8911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8912 fi
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8915 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8916 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8917
8918 cat >>confdefs.h <<\_ACEOF
8919 #define HAVE_MMAP 1
8920 _ACEOF
8921
8922 fi
8923 rm -f conftest.mmap
8924
8925
8926     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8927 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8928 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937
8938 #include <features.h>
8939 #ifdef __GNU_LIBRARY__
8940  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8941   Lucky GNU user
8942  #endif
8943 #endif
8944
8945 _ACEOF
8946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8947   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8948   ac_cv_gnu_library_2_1=yes
8949 else
8950   ac_cv_gnu_library_2_1=no
8951 fi
8952 rm -f conftest*
8953
8954
8955
8956 fi
8957 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8958 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8959
8960     GLIBC21="$ac_cv_gnu_library_2_1"
8961
8962
8963
8964
8965   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8966 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8967 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970
8971       if test "$cross_compiling" = yes; then
8972
8973           # Guess based on the CPU.
8974           case "$host_cpu" in
8975             alpha* | i3456786 | m68k | s390*)
8976               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8977             *)
8978               gt_cv_int_divbyzero_sigfpe="guessing no";;
8979           esac
8980
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 #include <stdlib.h>
8990 #include <signal.h>
8991
8992 static void
8993 #ifdef __cplusplus
8994 sigfpe_handler (int sig)
8995 #else
8996 sigfpe_handler (sig) int sig;
8997 #endif
8998 {
8999   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9000   exit (sig != SIGFPE);
9001 }
9002
9003 int x = 1;
9004 int y = 0;
9005 int z;
9006 int nan;
9007
9008 int main ()
9009 {
9010   signal (SIGFPE, sigfpe_handler);
9011 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9012 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9013   signal (SIGTRAP, sigfpe_handler);
9014 #endif
9015 /* Linux/SPARC yields signal SIGILL.  */
9016 #if defined (__sparc__) && defined (__linux__)
9017   signal (SIGILL, sigfpe_handler);
9018 #endif
9019
9020   z = x / y;
9021   nan = y / y;
9022   exit (1);
9023 }
9024
9025 _ACEOF
9026 rm -f conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028   (eval $ac_link) 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033   (eval $ac_try) 2>&5
9034   ac_status=$?
9035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036   (exit $ac_status); }; }; then
9037   gt_cv_int_divbyzero_sigfpe=yes
9038 else
9039   echo "$as_me: program exited with status $ac_status" >&5
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 ( exit $ac_status )
9044 gt_cv_int_divbyzero_sigfpe=no
9045 fi
9046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9047 fi
9048
9049 fi
9050 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9051 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9052   case "$gt_cv_int_divbyzero_sigfpe" in
9053     *yes) value=1;;
9054     *) value=0;;
9055   esac
9056
9057 cat >>confdefs.h <<_ACEOF
9058 #define INTDIV0_RAISES_SIGFPE $value
9059 _ACEOF
9060
9061
9062
9063   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9064 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9065 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9066   echo $ECHO_N "(cached) $ECHO_C" >&6
9067 else
9068   cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h.  */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h.  */
9074 unsigned long long ull = 1ULL; int i = 63;
9075 int
9076 main ()
9077 {
9078 unsigned long long ullmax = (unsigned long long) -1;
9079      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086   (eval $ac_link) 2>conftest.er1
9087   ac_status=$?
9088   grep -v '^ *+' conftest.er1 >conftest.err
9089   rm -f conftest.er1
9090   cat conftest.err >&5
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } &&
9093          { ac_try='test -z "$ac_c_werror_flag"
9094                          || test ! -s conftest.err'
9095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096   (eval $ac_try) 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; } &&
9100          { ac_try='test -s conftest$ac_exeext'
9101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102   (eval $ac_try) 2>&5
9103   ac_status=$?
9104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105   (exit $ac_status); }; }; then
9106   ac_cv_type_unsigned_long_long=yes
9107 else
9108   echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111 ac_cv_type_unsigned_long_long=no
9112 fi
9113 rm -f conftest.err conftest.$ac_objext \
9114       conftest$ac_exeext conftest.$ac_ext
9115 fi
9116 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9117 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9118   if test $ac_cv_type_unsigned_long_long = yes; then
9119
9120 cat >>confdefs.h <<\_ACEOF
9121 #define HAVE_UNSIGNED_LONG_LONG 1
9122 _ACEOF
9123
9124   fi
9125
9126
9127
9128
9129   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9130
9131     test $ac_cv_type_unsigned_long_long = yes \
9132       && ac_type='unsigned long long' \
9133       || ac_type='unsigned long'
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define uintmax_t $ac_type
9137 _ACEOF
9138
9139   else
9140
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_UINTMAX_T 1
9143 _ACEOF
9144
9145   fi
9146
9147
9148   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9149 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9150 if test "${gt_cv_header_inttypes_h+set}" = set; then
9151   echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153
9154     cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160 #include <sys/types.h>
9161 #include <inttypes.h>
9162 int
9163 main ()
9164 {
9165
9166   ;
9167   return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172   (eval $ac_compile) 2>conftest.er1
9173   ac_status=$?
9174   grep -v '^ *+' conftest.er1 >conftest.err
9175   rm -f conftest.er1
9176   cat conftest.err >&5
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); } &&
9179          { ac_try='test -z "$ac_c_werror_flag"
9180                          || test ! -s conftest.err'
9181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182   (eval $ac_try) 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; } &&
9186          { ac_try='test -s conftest.$ac_objext'
9187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188   (eval $ac_try) 2>&5
9189   ac_status=$?
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); }; }; then
9192   gt_cv_header_inttypes_h=yes
9193 else
9194   echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 gt_cv_header_inttypes_h=no
9198 fi
9199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9200
9201 fi
9202 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9203 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9204   if test $gt_cv_header_inttypes_h = yes; then
9205
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_INTTYPES_H 1
9208 _ACEOF
9209
9210   fi
9211
9212
9213
9214   if test $gt_cv_header_inttypes_h = yes; then
9215     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9216 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9217 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9218   echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220
9221         cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227 #include <inttypes.h>
9228 #ifdef PRId32
9229 char *p = PRId32;
9230 #endif
9231
9232 int
9233 main ()
9234 {
9235
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242   (eval $ac_compile) 2>conftest.er1
9243   ac_status=$?
9244   grep -v '^ *+' conftest.er1 >conftest.err
9245   rm -f conftest.er1
9246   cat conftest.err >&5
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); } &&
9249          { ac_try='test -z "$ac_c_werror_flag"
9250                          || test ! -s conftest.err'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; } &&
9256          { ac_try='test -s conftest.$ac_objext'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; }; then
9262   gt_cv_inttypes_pri_broken=no
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267 gt_cv_inttypes_pri_broken=yes
9268 fi
9269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9270
9271 fi
9272 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9273 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9274   fi
9275   if test "$gt_cv_inttypes_pri_broken" = yes; then
9276
9277 cat >>confdefs.h <<_ACEOF
9278 #define PRI_MACROS_BROKEN 1
9279 _ACEOF
9280
9281   fi
9282
9283
9284
9285 for ac_header in stdint.h
9286 do
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289   echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 fi
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9296 else
9297   # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306 $ac_includes_default
9307 #include <$ac_header>
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311   (eval $ac_compile) 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } &&
9318          { ac_try='test -z "$ac_c_werror_flag"
9319                          || test ! -s conftest.err'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; } &&
9325          { ac_try='test -s conftest.$ac_objext'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; }; then
9331   ac_header_compiler=yes
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336 ac_header_compiler=no
9337 fi
9338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9340 echo "${ECHO_T}$ac_header_compiler" >&6
9341
9342 # Is the header present?
9343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9345 cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h.  */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h.  */
9351 #include <$ac_header>
9352 _ACEOF
9353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9355   ac_status=$?
9356   grep -v '^ *+' conftest.er1 >conftest.err
9357   rm -f conftest.er1
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } >/dev/null; then
9361   if test -s conftest.err; then
9362     ac_cpp_err=$ac_c_preproc_warn_flag
9363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9364   else
9365     ac_cpp_err=
9366   fi
9367 else
9368   ac_cpp_err=yes
9369 fi
9370 if test -z "$ac_cpp_err"; then
9371   ac_header_preproc=yes
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376   ac_header_preproc=no
9377 fi
9378 rm -f conftest.err conftest.$ac_ext
9379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9380 echo "${ECHO_T}$ac_header_preproc" >&6
9381
9382 # So?  What about this header?
9383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9384   yes:no: )
9385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9389     ac_header_preproc=yes
9390     ;;
9391   no:yes:* )
9392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9404     (
9405       cat <<\_ASBOX
9406 ## ------------------------------------------ ##
9407 ## Report this to the AC_PACKAGE_NAME lists.  ##
9408 ## ------------------------------------------ ##
9409 _ASBOX
9410     ) |
9411       sed "s/^/$as_me: WARNING:     /" >&2
9412     ;;
9413 esac
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   eval "$as_ac_Header=\$ac_header_preproc"
9420 fi
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9423
9424 fi
9425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9426   cat >>confdefs.h <<_ACEOF
9427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9428 _ACEOF
9429
9430 fi
9431
9432 done
9433
9434     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9435 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9436   result=
9437   cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443
9444 #include <limits.h>
9445 #if HAVE_STDINT_H
9446 #include <stdint.h>
9447 #endif
9448 #ifdef SIZE_MAX
9449 Found it
9450 #endif
9451
9452 _ACEOF
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454   $EGREP "Found it" >/dev/null 2>&1; then
9455   result=yes
9456 fi
9457 rm -f conftest*
9458
9459   if test -z "$result"; then
9460                     if test "$cross_compiling" = yes; then
9461   # Depending upon the size, compute the lo and hi bounds.
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468 #include <stddef.h>
9469 int
9470 main ()
9471 {
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9473 test_array [0] = 0
9474
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481   (eval $ac_compile) 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -z "$ac_c_werror_flag"
9489                          || test ! -s conftest.err'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; } &&
9495          { ac_try='test -s conftest.$ac_objext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_lo=0 ac_mid=0
9502   while :; do
9503     cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 #include <stddef.h>
9510 int
9511 main ()
9512 {
9513 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9514 test_array [0] = 0
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522   (eval $ac_compile) 2>conftest.er1
9523   ac_status=$?
9524   grep -v '^ *+' conftest.er1 >conftest.err
9525   rm -f conftest.er1
9526   cat conftest.err >&5
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } &&
9529          { ac_try='test -z "$ac_c_werror_flag"
9530                          || test ! -s conftest.err'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; } &&
9536          { ac_try='test -s conftest.$ac_objext'
9537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538   (eval $ac_try) 2>&5
9539   ac_status=$?
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); }; }; then
9542   ac_hi=$ac_mid; break
9543 else
9544   echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_lo=`expr $ac_mid + 1`
9548                     if test $ac_lo -le $ac_mid; then
9549                       ac_lo= ac_hi=
9550                       break
9551                     fi
9552                     ac_mid=`expr 2 '*' $ac_mid + 1`
9553 fi
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555   done
9556 else
9557   echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 #include <stddef.h>
9567 int
9568 main ()
9569 {
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9571 test_array [0] = 0
9572
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579   (eval $ac_compile) 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } &&
9586          { ac_try='test -z "$ac_c_werror_flag"
9587                          || test ! -s conftest.err'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; } &&
9593          { ac_try='test -s conftest.$ac_objext'
9594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595   (eval $ac_try) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; }; then
9599   ac_hi=-1 ac_mid=-1
9600   while :; do
9601     cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 #include <stddef.h>
9608 int
9609 main ()
9610 {
9611 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9612 test_array [0] = 0
9613
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620   (eval $ac_compile) 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -z "$ac_c_werror_flag"
9628                          || test ! -s conftest.err'
9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630   (eval $ac_try) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; } &&
9634          { ac_try='test -s conftest.$ac_objext'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640   ac_lo=$ac_mid; break
9641 else
9642   echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ac_hi=`expr '(' $ac_mid ')' - 1`
9646                        if test $ac_mid -le $ac_hi; then
9647                          ac_lo= ac_hi=
9648                          break
9649                        fi
9650                        ac_mid=`expr 2 '*' $ac_mid`
9651 fi
9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9653   done
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 ac_lo= ac_hi=
9659 fi
9660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9663 # Binary search between lo and hi bounds.
9664 while test "x$ac_lo" != "x$ac_hi"; do
9665   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9666   cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h.  */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h.  */
9672 #include <stddef.h>
9673 int
9674 main ()
9675 {
9676 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9677 test_array [0] = 0
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685   (eval $ac_compile) 2>conftest.er1
9686   ac_status=$?
9687   grep -v '^ *+' conftest.er1 >conftest.err
9688   rm -f conftest.er1
9689   cat conftest.err >&5
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -z "$ac_c_werror_flag"
9693                          || test ! -s conftest.err'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; } &&
9699          { ac_try='test -s conftest.$ac_objext'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_hi=$ac_mid
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_lo=`expr '(' $ac_mid ')' + 1`
9711 fi
9712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9713 done
9714 case $ac_lo in
9715 ?*) res_hi=$ac_lo;;
9716 '') result=? ;;
9717 esac
9718 else
9719   if test "$cross_compiling" = yes; then
9720   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9721 See \`config.log' for more details." >&5
9722 echo "$as_me: error: cannot run test program while cross compiling
9723 See \`config.log' for more details." >&2;}
9724    { (exit 1); exit 1; }; }
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 #include <stddef.h>
9733 long longval () { return ~(size_t)0 / 10; }
9734 unsigned long ulongval () { return ~(size_t)0 / 10; }
9735 #include <stdio.h>
9736 #include <stdlib.h>
9737 int
9738 main ()
9739 {
9740
9741   FILE *f = fopen ("conftest.val", "w");
9742   if (! f)
9743     exit (1);
9744   if ((~(size_t)0 / 10) < 0)
9745     {
9746       long i = longval ();
9747       if (i != (~(size_t)0 / 10))
9748         exit (1);
9749       fprintf (f, "%ld\n", i);
9750     }
9751   else
9752     {
9753       unsigned long i = ulongval ();
9754       if (i != (~(size_t)0 / 10))
9755         exit (1);
9756       fprintf (f, "%lu\n", i);
9757     }
9758   exit (ferror (f) || fclose (f) != 0);
9759
9760   ;
9761   return 0;
9762 }
9763 _ACEOF
9764 rm -f conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766   (eval $ac_link) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771   (eval $ac_try) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); }; }; then
9775   res_hi=`cat conftest.val`
9776 else
9777   echo "$as_me: program exited with status $ac_status" >&5
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ( exit $ac_status )
9782 result=?
9783 fi
9784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 fi
9787 rm -f conftest.val
9788     if test "$cross_compiling" = yes; then
9789   # Depending upon the size, compute the lo and hi bounds.
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796 #include <stddef.h>
9797 int
9798 main ()
9799 {
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9801 test_array [0] = 0
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest.$ac_objext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_lo=0 ac_mid=0
9830   while :; do
9831     cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 #include <stddef.h>
9838 int
9839 main ()
9840 {
9841 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9842 test_array [0] = 0
9843
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850   (eval $ac_compile) 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag"
9858                          || test ! -s conftest.err'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; } &&
9864          { ac_try='test -s conftest.$ac_objext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_hi=$ac_mid; break
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875 ac_lo=`expr $ac_mid + 1`
9876                     if test $ac_lo -le $ac_mid; then
9877                       ac_lo= ac_hi=
9878                       break
9879                     fi
9880                     ac_mid=`expr 2 '*' $ac_mid + 1`
9881 fi
9882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9883   done
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 #include <stddef.h>
9895 int
9896 main ()
9897 {
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9899 test_array [0] = 0
9900
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907   (eval $ac_compile) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_hi=-1 ac_mid=-1
9928   while :; do
9929     cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 #include <stddef.h>
9936 int
9937 main ()
9938 {
9939 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9940 test_array [0] = 0
9941
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948   (eval $ac_compile) 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } &&
9955          { ac_try='test -z "$ac_c_werror_flag"
9956                          || test ! -s conftest.err'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest.$ac_objext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   ac_lo=$ac_mid; break
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9972
9973 ac_hi=`expr '(' $ac_mid ')' - 1`
9974                        if test $ac_mid -le $ac_hi; then
9975                          ac_lo= ac_hi=
9976                          break
9977                        fi
9978                        ac_mid=`expr 2 '*' $ac_mid`
9979 fi
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981   done
9982 else
9983   echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 ac_lo= ac_hi=
9987 fi
9988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9989 fi
9990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 # Binary search between lo and hi bounds.
9992 while test "x$ac_lo" != "x$ac_hi"; do
9993   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9994   cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 #include <stddef.h>
10001 int
10002 main ()
10003 {
10004 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10005 test_array [0] = 0
10006
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10013   (eval $ac_compile) 2>conftest.er1
10014   ac_status=$?
10015   grep -v '^ *+' conftest.er1 >conftest.err
10016   rm -f conftest.er1
10017   cat conftest.err >&5
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -z "$ac_c_werror_flag"
10021                          || test ! -s conftest.err'
10022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023   (eval $ac_try) 2>&5
10024   ac_status=$?
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); }; } &&
10027          { ac_try='test -s conftest.$ac_objext'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; }; then
10033   ac_hi=$ac_mid
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038 ac_lo=`expr '(' $ac_mid ')' + 1`
10039 fi
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10041 done
10042 case $ac_lo in
10043 ?*) res_lo=$ac_lo;;
10044 '') result=? ;;
10045 esac
10046 else
10047   if test "$cross_compiling" = yes; then
10048   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10049 See \`config.log' for more details." >&5
10050 echo "$as_me: error: cannot run test program while cross compiling
10051 See \`config.log' for more details." >&2;}
10052    { (exit 1); exit 1; }; }
10053 else
10054   cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060 #include <stddef.h>
10061 long longval () { return ~(size_t)0 % 10; }
10062 unsigned long ulongval () { return ~(size_t)0 % 10; }
10063 #include <stdio.h>
10064 #include <stdlib.h>
10065 int
10066 main ()
10067 {
10068
10069   FILE *f = fopen ("conftest.val", "w");
10070   if (! f)
10071     exit (1);
10072   if ((~(size_t)0 % 10) < 0)
10073     {
10074       long i = longval ();
10075       if (i != (~(size_t)0 % 10))
10076         exit (1);
10077       fprintf (f, "%ld\n", i);
10078     }
10079   else
10080     {
10081       unsigned long i = ulongval ();
10082       if (i != (~(size_t)0 % 10))
10083         exit (1);
10084       fprintf (f, "%lu\n", i);
10085     }
10086   exit (ferror (f) || fclose (f) != 0);
10087
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094   (eval $ac_link) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; }; then
10103   res_lo=`cat conftest.val`
10104 else
10105   echo "$as_me: program exited with status $ac_status" >&5
10106 echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10108
10109 ( exit $ac_status )
10110 result=?
10111 fi
10112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10113 fi
10114 fi
10115 rm -f conftest.val
10116     if test "$cross_compiling" = yes; then
10117   # Depending upon the size, compute the lo and hi bounds.
10118 cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 #include <stddef.h>
10125 int
10126 main ()
10127 {
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10129 test_array [0] = 0
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_lo=0 ac_mid=0
10158   while :; do
10159     cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165 #include <stddef.h>
10166 int
10167 main ()
10168 {
10169 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10170 test_array [0] = 0
10171
10172   ;
10173   return 0;
10174 }
10175 _ACEOF
10176 rm -f conftest.$ac_objext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10178   (eval $ac_compile) 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag"
10186                          || test ! -s conftest.err'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; } &&
10192          { ac_try='test -s conftest.$ac_objext'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   ac_hi=$ac_mid; break
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 ac_lo=`expr $ac_mid + 1`
10204                     if test $ac_lo -le $ac_mid; then
10205                       ac_lo= ac_hi=
10206                       break
10207                     fi
10208                     ac_mid=`expr 2 '*' $ac_mid + 1`
10209 fi
10210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10211   done
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <stddef.h>
10223 int
10224 main ()
10225 {
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10227 test_array [0] = 0
10228
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"
10243                          || test ! -s conftest.err'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest.$ac_objext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_hi=-1 ac_mid=-1
10256   while :; do
10257     cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263 #include <stddef.h>
10264 int
10265 main ()
10266 {
10267 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10268 test_array [0] = 0
10269
10270   ;
10271   return 0;
10272 }
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276   (eval $ac_compile) 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -z "$ac_c_werror_flag"
10284                          || test ! -s conftest.err'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest.$ac_objext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_lo=$ac_mid; break
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301 ac_hi=`expr '(' $ac_mid ')' - 1`
10302                        if test $ac_mid -le $ac_hi; then
10303                          ac_lo= ac_hi=
10304                          break
10305                        fi
10306                        ac_mid=`expr 2 '*' $ac_mid`
10307 fi
10308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10309   done
10310 else
10311   echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314 ac_lo= ac_hi=
10315 fi
10316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10317 fi
10318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319 # Binary search between lo and hi bounds.
10320 while test "x$ac_lo" != "x$ac_hi"; do
10321   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10322   cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 #include <stddef.h>
10329 int
10330 main ()
10331 {
10332 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10333 test_array [0] = 0
10334
10335   ;
10336   return 0;
10337 }
10338 _ACEOF
10339 rm -f conftest.$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341   (eval $ac_compile) 2>conftest.er1
10342   ac_status=$?
10343   grep -v '^ *+' conftest.er1 >conftest.err
10344   rm -f conftest.er1
10345   cat conftest.err >&5
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -z "$ac_c_werror_flag"
10349                          || test ! -s conftest.err'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; } &&
10355          { ac_try='test -s conftest.$ac_objext'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; }; then
10361   ac_hi=$ac_mid
10362 else
10363   echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366 ac_lo=`expr '(' $ac_mid ')' + 1`
10367 fi
10368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10369 done
10370 case $ac_lo in
10371 ?*) fits_in_uint=$ac_lo;;
10372 '') result=? ;;
10373 esac
10374 else
10375   if test "$cross_compiling" = yes; then
10376   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10377 See \`config.log' for more details." >&5
10378 echo "$as_me: error: cannot run test program while cross compiling
10379 See \`config.log' for more details." >&2;}
10380    { (exit 1); exit 1; }; }
10381 else
10382   cat >conftest.$ac_ext <<_ACEOF
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388 #include <stddef.h>
10389 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10390 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10391 #include <stdio.h>
10392 #include <stdlib.h>
10393 int
10394 main ()
10395 {
10396
10397   FILE *f = fopen ("conftest.val", "w");
10398   if (! f)
10399     exit (1);
10400   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10401     {
10402       long i = longval ();
10403       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10404         exit (1);
10405       fprintf (f, "%ld\n", i);
10406     }
10407   else
10408     {
10409       unsigned long i = ulongval ();
10410       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10411         exit (1);
10412       fprintf (f, "%lu\n", i);
10413     }
10414   exit (ferror (f) || fclose (f) != 0);
10415
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422   (eval $ac_link) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; }; then
10431   fits_in_uint=`cat conftest.val`
10432 else
10433   echo "$as_me: program exited with status $ac_status" >&5
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ( exit $ac_status )
10438 result=?
10439 fi
10440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10441 fi
10442 fi
10443 rm -f conftest.val
10444     if test "$fits_in_uint" = 1; then
10445                   cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451 #include <stddef.h>
10452         extern size_t foo;
10453         extern unsigned long foo;
10454
10455 int
10456 main ()
10457 {
10458
10459   ;
10460   return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465   (eval $ac_compile) 2>conftest.er1
10466   ac_status=$?
10467   grep -v '^ *+' conftest.er1 >conftest.err
10468   rm -f conftest.er1
10469   cat conftest.err >&5
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); } &&
10472          { ac_try='test -z "$ac_c_werror_flag"
10473                          || test ! -s conftest.err'
10474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475   (eval $ac_try) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); }; } &&
10479          { ac_try='test -s conftest.$ac_objext'
10480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481   (eval $ac_try) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); }; }; then
10485   fits_in_uint=0
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 fi
10491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10492     fi
10493     if test -z "$result"; then
10494       if test "$fits_in_uint" = 1; then
10495         result="$res_hi$res_lo"U
10496       else
10497         result="$res_hi$res_lo"UL
10498       fi
10499     else
10500             result='~(size_t)0'
10501     fi
10502   fi
10503   echo "$as_me:$LINENO: result: $result" >&5
10504 echo "${ECHO_T}$result" >&6
10505   if test "$result" != yes; then
10506
10507 cat >>confdefs.h <<_ACEOF
10508 #define SIZE_MAX $result
10509 _ACEOF
10510
10511   fi
10512
10513
10514
10515
10516
10517 for ac_header in stdint.h
10518 do
10519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10521   echo "$as_me:$LINENO: checking for $ac_header" >&5
10522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 fi
10526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10528 else
10529   # Is the header compilable?
10530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h.  */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h.  */
10538 $ac_includes_default
10539 #include <$ac_header>
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543   (eval $ac_compile) 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -z "$ac_c_werror_flag"
10551                          || test ! -s conftest.err'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; } &&
10557          { ac_try='test -s conftest.$ac_objext'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   ac_header_compiler=yes
10564 else
10565   echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_header_compiler=no
10569 fi
10570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10572 echo "${ECHO_T}$ac_header_compiler" >&6
10573
10574 # Is the header present?
10575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
10584 _ACEOF
10585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10587   ac_status=$?
10588   grep -v '^ *+' conftest.er1 >conftest.err
10589   rm -f conftest.er1
10590   cat conftest.err >&5
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); } >/dev/null; then
10593   if test -s conftest.err; then
10594     ac_cpp_err=$ac_c_preproc_warn_flag
10595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10596   else
10597     ac_cpp_err=
10598   fi
10599 else
10600   ac_cpp_err=yes
10601 fi
10602 if test -z "$ac_cpp_err"; then
10603   ac_header_preproc=yes
10604 else
10605   echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608   ac_header_preproc=no
10609 fi
10610 rm -f conftest.err conftest.$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10612 echo "${ECHO_T}$ac_header_preproc" >&6
10613
10614 # So?  What about this header?
10615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10616   yes:no: )
10617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10621     ac_header_preproc=yes
10622     ;;
10623   no:yes:* )
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10636     (
10637       cat <<\_ASBOX
10638 ## ------------------------------------------ ##
10639 ## Report this to the AC_PACKAGE_NAME lists.  ##
10640 ## ------------------------------------------ ##
10641 _ASBOX
10642     ) |
10643       sed "s/^/$as_me: WARNING:     /" >&2
10644     ;;
10645 esac
10646 echo "$as_me:$LINENO: checking for $ac_header" >&5
10647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10649   echo $ECHO_N "(cached) $ECHO_C" >&6
10650 else
10651   eval "$as_ac_Header=\$ac_header_preproc"
10652 fi
10653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10655
10656 fi
10657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10658   cat >>confdefs.h <<_ACEOF
10659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660 _ACEOF
10661
10662 fi
10663
10664 done
10665
10666
10667
10668
10669
10670
10671
10672
10673   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10674 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10675 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10676   echo $ECHO_N "(cached) $ECHO_C" >&6
10677 else
10678   cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 $ac_includes_default
10685 int
10686 main ()
10687 {
10688 if ((ptrdiff_t *) 0)
10689   return 0;
10690 if (sizeof (ptrdiff_t))
10691   return 0;
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698   (eval $ac_compile) 2>conftest.er1
10699   ac_status=$?
10700   grep -v '^ *+' conftest.er1 >conftest.err
10701   rm -f conftest.er1
10702   cat conftest.err >&5
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -z "$ac_c_werror_flag"
10706                          || test ! -s conftest.err'
10707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708   (eval $ac_try) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; } &&
10712          { ac_try='test -s conftest.$ac_objext'
10713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714   (eval $ac_try) 2>&5
10715   ac_status=$?
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); }; }; then
10718   ac_cv_type_ptrdiff_t=yes
10719 else
10720   echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722
10723 ac_cv_type_ptrdiff_t=no
10724 fi
10725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10726 fi
10727 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10728 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10729 if test $ac_cv_type_ptrdiff_t = yes; then
10730   :
10731 else
10732
10733 cat >>confdefs.h <<\_ACEOF
10734 #define ptrdiff_t long
10735 _ACEOF
10736
10737
10738 fi
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10751 stdlib.h string.h unistd.h sys/param.h
10752 do
10753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10755   echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10758   echo $ECHO_N "(cached) $ECHO_C" >&6
10759 fi
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10762 else
10763   # Is the header compilable?
10764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 $ac_includes_default
10773 #include <$ac_header>
10774 _ACEOF
10775 rm -f conftest.$ac_objext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777   (eval $ac_compile) 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } &&
10784          { ac_try='test -z "$ac_c_werror_flag"
10785                          || test ! -s conftest.err'
10786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787   (eval $ac_try) 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); }; } &&
10791          { ac_try='test -s conftest.$ac_objext'
10792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793   (eval $ac_try) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; }; then
10797   ac_header_compiler=yes
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802 ac_header_compiler=no
10803 fi
10804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 echo "${ECHO_T}$ac_header_compiler" >&6
10807
10808 # Is the header present?
10809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <$ac_header>
10818 _ACEOF
10819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } >/dev/null; then
10827   if test -s conftest.err; then
10828     ac_cpp_err=$ac_c_preproc_warn_flag
10829     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10830   else
10831     ac_cpp_err=
10832   fi
10833 else
10834   ac_cpp_err=yes
10835 fi
10836 if test -z "$ac_cpp_err"; then
10837   ac_header_preproc=yes
10838 else
10839   echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10841
10842   ac_header_preproc=no
10843 fi
10844 rm -f conftest.err conftest.$ac_ext
10845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6
10847
10848 # So?  What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850   yes:no: )
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855     ac_header_preproc=yes
10856     ;;
10857   no:yes:* )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870     (
10871       cat <<\_ASBOX
10872 ## ------------------------------------------ ##
10873 ## Report this to the AC_PACKAGE_NAME lists.  ##
10874 ## ------------------------------------------ ##
10875 _ASBOX
10876     ) |
10877       sed "s/^/$as_me: WARNING:     /" >&2
10878     ;;
10879 esac
10880 echo "$as_me:$LINENO: checking for $ac_header" >&5
10881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   eval "$as_ac_Header=\$ac_header_preproc"
10886 fi
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10889
10890 fi
10891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10892   cat >>confdefs.h <<_ACEOF
10893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10894 _ACEOF
10895
10896 fi
10897
10898 done
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10924 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10925 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10926 __fsetlocking
10927 do
10928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10929 echo "$as_me:$LINENO: checking for $ac_func" >&5
10930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10931 if eval "test \"\${$as_ac_var+set}\" = set"; then
10932   echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934   cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h.  */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h.  */
10940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10942 #define $ac_func innocuous_$ac_func
10943
10944 /* System header to define __stub macros and hopefully few prototypes,
10945     which can conflict with char $ac_func (); below.
10946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10947     <limits.h> exists even on freestanding compilers.  */
10948
10949 #ifdef __STDC__
10950 # include <limits.h>
10951 #else
10952 # include <assert.h>
10953 #endif
10954
10955 #undef $ac_func
10956
10957 /* Override any gcc2 internal prototype to avoid an error.  */
10958 #ifdef __cplusplus
10959 extern "C"
10960 {
10961 #endif
10962 /* We use char because int might match the return type of a gcc2
10963    builtin and then its argument prototype would still apply.  */
10964 char $ac_func ();
10965 /* The GNU C library defines this for functions which it implements
10966     to always fail with ENOSYS.  Some functions are actually named
10967     something starting with __ and the normal name is an alias.  */
10968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10969 choke me
10970 #else
10971 char (*f) () = $ac_func;
10972 #endif
10973 #ifdef __cplusplus
10974 }
10975 #endif
10976
10977 int
10978 main ()
10979 {
10980 return f != $ac_func;
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987   (eval $ac_link) 2>conftest.er1
10988   ac_status=$?
10989   grep -v '^ *+' conftest.er1 >conftest.err
10990   rm -f conftest.er1
10991   cat conftest.err >&5
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } &&
10994          { ac_try='test -z "$ac_c_werror_flag"
10995                          || test ! -s conftest.err'
10996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997   (eval $ac_try) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }; } &&
11001          { ac_try='test -s conftest$ac_exeext'
11002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003   (eval $ac_try) 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   eval "$as_ac_var=yes"
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 eval "$as_ac_var=no"
11013 fi
11014 rm -f conftest.err conftest.$ac_objext \
11015       conftest$ac_exeext conftest.$ac_ext
11016 fi
11017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11019 if test `eval echo '${'$as_ac_var'}'` = yes; then
11020   cat >>confdefs.h <<_ACEOF
11021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11022 _ACEOF
11023
11024 fi
11025 done
11026
11027
11028
11029   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11030 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11031 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11032   echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034   cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 #include <stdio.h>
11041 int
11042 main ()
11043 {
11044
11045 #ifndef _snprintf
11046   char *p = (char *) _snprintf;
11047 #endif
11048
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055   (eval $ac_compile) 2>conftest.er1
11056   ac_status=$?
11057   grep -v '^ *+' conftest.er1 >conftest.err
11058   rm -f conftest.er1
11059   cat conftest.err >&5
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); } &&
11062          { ac_try='test -z "$ac_c_werror_flag"
11063                          || test ! -s conftest.err'
11064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065   (eval $ac_try) 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; } &&
11069          { ac_try='test -s conftest.$ac_objext'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; }; then
11075   ac_cv_have_decl__snprintf=yes
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_cv_have_decl__snprintf=no
11081 fi
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11083 fi
11084 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11085 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11086   if test $ac_cv_have_decl__snprintf = yes; then
11087     gt_value=1
11088   else
11089     gt_value=0
11090   fi
11091
11092 cat >>confdefs.h <<_ACEOF
11093 #define HAVE_DECL__SNPRINTF $gt_value
11094 _ACEOF
11095
11096
11097
11098   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11099 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11100 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 #include <stdio.h>
11110 int
11111 main ()
11112 {
11113
11114 #ifndef _snwprintf
11115   char *p = (char *) _snwprintf;
11116 #endif
11117
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124   (eval $ac_compile) 2>conftest.er1
11125   ac_status=$?
11126   grep -v '^ *+' conftest.er1 >conftest.err
11127   rm -f conftest.er1
11128   cat conftest.err >&5
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); } &&
11131          { ac_try='test -z "$ac_c_werror_flag"
11132                          || test ! -s conftest.err'
11133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134   (eval $ac_try) 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; } &&
11138          { ac_try='test -s conftest.$ac_objext'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }; then
11144   ac_cv_have_decl__snwprintf=yes
11145 else
11146   echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_have_decl__snwprintf=no
11150 fi
11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11152 fi
11153 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11154 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11155   if test $ac_cv_have_decl__snwprintf = yes; then
11156     gt_value=1
11157   else
11158     gt_value=0
11159   fi
11160
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_DECL__SNWPRINTF $gt_value
11163 _ACEOF
11164
11165
11166
11167
11168   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11169 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11170 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 #include <stdio.h>
11180 int
11181 main ()
11182 {
11183
11184 #ifndef feof_unlocked
11185   char *p = (char *) feof_unlocked;
11186 #endif
11187
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11194   (eval $ac_compile) 2>conftest.er1
11195   ac_status=$?
11196   grep -v '^ *+' conftest.er1 >conftest.err
11197   rm -f conftest.er1
11198   cat conftest.err >&5
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); } &&
11201          { ac_try='test -z "$ac_c_werror_flag"
11202                          || test ! -s conftest.err'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; } &&
11208          { ac_try='test -s conftest.$ac_objext'
11209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210   (eval $ac_try) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; }; then
11214   ac_cv_have_decl_feof_unlocked=yes
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_cv_have_decl_feof_unlocked=no
11220 fi
11221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11222 fi
11223 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11224 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11225   if test $ac_cv_have_decl_feof_unlocked = yes; then
11226     gt_value=1
11227   else
11228     gt_value=0
11229   fi
11230
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11233 _ACEOF
11234
11235
11236
11237   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11238 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11239 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 #include <stdio.h>
11249 int
11250 main ()
11251 {
11252
11253 #ifndef fgets_unlocked
11254   char *p = (char *) fgets_unlocked;
11255 #endif
11256
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263   (eval $ac_compile) 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -z "$ac_c_werror_flag"
11271                          || test ! -s conftest.err'
11272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273   (eval $ac_try) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; } &&
11277          { ac_try='test -s conftest.$ac_objext'
11278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279   (eval $ac_try) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; }; then
11283   ac_cv_have_decl_fgets_unlocked=yes
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 ac_cv_have_decl_fgets_unlocked=no
11289 fi
11290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11291 fi
11292 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11293 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11294   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11295     gt_value=1
11296   else
11297     gt_value=0
11298   fi
11299
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11302 _ACEOF
11303
11304
11305
11306   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11307 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11308 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11309   echo $ECHO_N "(cached) $ECHO_C" >&6
11310 else
11311   cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 #include <stdio.h>
11318 int
11319 main ()
11320 {
11321
11322 #ifndef getc_unlocked
11323   char *p = (char *) getc_unlocked;
11324 #endif
11325
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332   (eval $ac_compile) 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag"
11340                          || test ! -s conftest.err'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest.$ac_objext'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   ac_cv_have_decl_getc_unlocked=yes
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 ac_cv_have_decl_getc_unlocked=no
11358 fi
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11360 fi
11361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11362 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11363   if test $ac_cv_have_decl_getc_unlocked = yes; then
11364     gt_value=1
11365   else
11366     gt_value=0
11367   fi
11368
11369 cat >>confdefs.h <<_ACEOF
11370 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11371 _ACEOF
11372
11373
11374
11375   case $gt_cv_func_printf_posix in
11376     *yes) HAVE_POSIX_PRINTF=1 ;;
11377     *) HAVE_POSIX_PRINTF=0 ;;
11378   esac
11379
11380   if test "$ac_cv_func_asprintf" = yes; then
11381     HAVE_ASPRINTF=1
11382   else
11383     HAVE_ASPRINTF=0
11384   fi
11385
11386   if test "$ac_cv_func_snprintf" = yes; then
11387     HAVE_SNPRINTF=1
11388   else
11389     HAVE_SNPRINTF=0
11390   fi
11391
11392   if test "$ac_cv_func_wprintf" = yes; then
11393     HAVE_WPRINTF=1
11394   else
11395     HAVE_WPRINTF=0
11396   fi
11397
11398
11399
11400
11401
11402
11403
11404           am_save_CPPFLAGS="$CPPFLAGS"
11405
11406   for element in $INCICONV; do
11407     haveit=
11408     for x in $CPPFLAGS; do
11409
11410   acl_save_prefix="$prefix"
11411   prefix="$acl_final_prefix"
11412   acl_save_exec_prefix="$exec_prefix"
11413   exec_prefix="$acl_final_exec_prefix"
11414   eval x=\"$x\"
11415   exec_prefix="$acl_save_exec_prefix"
11416   prefix="$acl_save_prefix"
11417
11418       if test "X$x" = "X$element"; then
11419         haveit=yes
11420         break
11421       fi
11422     done
11423     if test -z "$haveit"; then
11424       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11425     fi
11426   done
11427
11428
11429   echo "$as_me:$LINENO: checking for iconv" >&5
11430 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11431 if test "${am_cv_func_iconv+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434
11435     am_cv_func_iconv="no, consider installing GNU libiconv"
11436     am_cv_lib_iconv=no
11437     cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 #include <stdlib.h>
11444 #include <iconv.h>
11445 int
11446 main ()
11447 {
11448 iconv_t cd = iconv_open("","");
11449        iconv(cd,NULL,NULL,NULL,NULL);
11450        iconv_close(cd);
11451   ;
11452   return 0;
11453 }
11454 _ACEOF
11455 rm -f conftest.$ac_objext conftest$ac_exeext
11456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11457   (eval $ac_link) 2>conftest.er1
11458   ac_status=$?
11459   grep -v '^ *+' conftest.er1 >conftest.err
11460   rm -f conftest.er1
11461   cat conftest.err >&5
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } &&
11464          { ac_try='test -z "$ac_c_werror_flag"
11465                          || test ! -s conftest.err'
11466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467   (eval $ac_try) 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; } &&
11471          { ac_try='test -s conftest$ac_exeext'
11472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473   (eval $ac_try) 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; }; then
11477   am_cv_func_iconv=yes
11478 else
11479   echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 fi
11483 rm -f conftest.err conftest.$ac_objext \
11484       conftest$ac_exeext conftest.$ac_ext
11485     if test "$am_cv_func_iconv" != yes; then
11486       am_save_LIBS="$LIBS"
11487       LIBS="$LIBS $LIBICONV"
11488       cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h.  */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h.  */
11494 #include <stdlib.h>
11495 #include <iconv.h>
11496 int
11497 main ()
11498 {
11499 iconv_t cd = iconv_open("","");
11500          iconv(cd,NULL,NULL,NULL,NULL);
11501          iconv_close(cd);
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508   (eval $ac_link) 2>conftest.er1
11509   ac_status=$?
11510   grep -v '^ *+' conftest.er1 >conftest.err
11511   rm -f conftest.er1
11512   cat conftest.err >&5
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); } &&
11515          { ac_try='test -z "$ac_c_werror_flag"
11516                          || test ! -s conftest.err'
11517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518   (eval $ac_try) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; } &&
11522          { ac_try='test -s conftest$ac_exeext'
11523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524   (eval $ac_try) 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; }; then
11528   am_cv_lib_iconv=yes
11529         am_cv_func_iconv=yes
11530 else
11531   echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 fi
11535 rm -f conftest.err conftest.$ac_objext \
11536       conftest$ac_exeext conftest.$ac_ext
11537       LIBS="$am_save_LIBS"
11538     fi
11539
11540 fi
11541 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11542 echo "${ECHO_T}$am_cv_func_iconv" >&6
11543   if test "$am_cv_func_iconv" = yes; then
11544
11545 cat >>confdefs.h <<\_ACEOF
11546 #define HAVE_ICONV 1
11547 _ACEOF
11548
11549   fi
11550   if test "$am_cv_lib_iconv" = yes; then
11551     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11552 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11553     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11554 echo "${ECHO_T}$LIBICONV" >&6
11555   else
11556             CPPFLAGS="$am_save_CPPFLAGS"
11557     LIBICONV=
11558     LTLIBICONV=
11559   fi
11560
11561
11562
11563   if test "$am_cv_func_iconv" = yes; then
11564     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11565 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11566     if test "${am_cv_proto_iconv+set}" = set; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569
11570       cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576
11577 #include <stdlib.h>
11578 #include <iconv.h>
11579 extern
11580 #ifdef __cplusplus
11581 "C"
11582 #endif
11583 #if defined(__STDC__) || defined(__cplusplus)
11584 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11585 #else
11586 size_t iconv();
11587 #endif
11588
11589 int
11590 main ()
11591 {
11592
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11599   (eval $ac_compile) 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -z "$ac_c_werror_flag"
11607                          || test ! -s conftest.err'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; } &&
11613          { ac_try='test -s conftest.$ac_objext'
11614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615   (eval $ac_try) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; }; then
11619   am_cv_proto_iconv_arg1=""
11620 else
11621   echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 am_cv_proto_iconv_arg1="const"
11625 fi
11626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11627       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);"
11628 fi
11629
11630     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11631     echo "$as_me:$LINENO: result: ${ac_t:-
11632          }$am_cv_proto_iconv" >&5
11633 echo "${ECHO_T}${ac_t:-
11634          }$am_cv_proto_iconv" >&6
11635
11636 cat >>confdefs.h <<_ACEOF
11637 #define ICONV_CONST $am_cv_proto_iconv_arg1
11638 _ACEOF
11639
11640   fi
11641
11642
11643   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11644 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11645 if test "${am_cv_langinfo_codeset+set}" = set; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 #include <langinfo.h>
11655 int
11656 main ()
11657 {
11658 char* cs = nl_langinfo(CODESET);
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665   (eval $ac_link) 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -z "$ac_c_werror_flag"
11673                          || test ! -s conftest.err'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; } &&
11679          { ac_try='test -s conftest$ac_exeext'
11680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681   (eval $ac_try) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   am_cv_langinfo_codeset=yes
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 am_cv_langinfo_codeset=no
11691 fi
11692 rm -f conftest.err conftest.$ac_objext \
11693       conftest$ac_exeext conftest.$ac_ext
11694
11695 fi
11696 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11697 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11698   if test $am_cv_langinfo_codeset = yes; then
11699
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_LANGINFO_CODESET 1
11702 _ACEOF
11703
11704   fi
11705
11706   if test $ac_cv_header_locale_h = yes; then
11707
11708   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11709 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11710 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719 #include <locale.h>
11720 int
11721 main ()
11722 {
11723 return LC_MESSAGES
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 rm -f conftest.$ac_objext conftest$ac_exeext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11730   (eval $ac_link) 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } &&
11737          { ac_try='test -z "$ac_c_werror_flag"
11738                          || test ! -s conftest.err'
11739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740   (eval $ac_try) 2>&5
11741   ac_status=$?
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); }; } &&
11744          { ac_try='test -s conftest$ac_exeext'
11745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746   (eval $ac_try) 2>&5
11747   ac_status=$?
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); }; }; then
11750   gt_cv_val_LC_MESSAGES=yes
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 gt_cv_val_LC_MESSAGES=no
11756 fi
11757 rm -f conftest.err conftest.$ac_objext \
11758       conftest$ac_exeext conftest.$ac_ext
11759 fi
11760 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11761 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11762   if test $gt_cv_val_LC_MESSAGES = yes; then
11763
11764 cat >>confdefs.h <<\_ACEOF
11765 #define HAVE_LC_MESSAGES 1
11766 _ACEOF
11767
11768   fi
11769
11770   fi
11771
11772   if test -n "$INTL_MACOSX_LIBS"; then
11773     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11774   fi
11775
11776                       for ac_prog in bison
11777 do
11778   # Extract the first word of "$ac_prog", so it can be a program name with args.
11779 set dummy $ac_prog; ac_word=$2
11780 echo "$as_me:$LINENO: checking for $ac_word" >&5
11781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11782 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785   if test -n "$INTLBISON"; then
11786   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11787 else
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793   for ac_exec_ext in '' $ac_executable_extensions; do
11794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795     ac_cv_prog_INTLBISON="$ac_prog"
11796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800 done
11801
11802 fi
11803 fi
11804 INTLBISON=$ac_cv_prog_INTLBISON
11805 if test -n "$INTLBISON"; then
11806   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11807 echo "${ECHO_T}$INTLBISON" >&6
11808 else
11809   echo "$as_me:$LINENO: result: no" >&5
11810 echo "${ECHO_T}no" >&6
11811 fi
11812
11813   test -n "$INTLBISON" && break
11814 done
11815
11816   if test -z "$INTLBISON"; then
11817     ac_verc_fail=yes
11818   else
11819         echo "$as_me:$LINENO: checking version of bison" >&5
11820 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11821     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11822     case $ac_prog_version in
11823       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11824       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11825          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11826       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11827     esac
11828     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11829 echo "${ECHO_T}$ac_prog_version" >&6
11830   fi
11831   if test $ac_verc_fail = yes; then
11832     INTLBISON=:
11833   fi
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11851 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11852 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   gt_save_CPPFLAGS="$CPPFLAGS"
11856      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11857      gt_save_LIBS="$LIBS"
11858      LIBS="$LIBS -framework CoreFoundation"
11859      cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 #include <CFPreferences.h>
11866 int
11867 main ()
11868 {
11869 CFPreferencesCopyAppValue(NULL, NULL)
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876   (eval $ac_link) 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } &&
11883          { ac_try='test -z "$ac_c_werror_flag"
11884                          || test ! -s conftest.err'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; } &&
11890          { ac_try='test -s conftest$ac_exeext'
11891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892   (eval $ac_try) 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; }; then
11896   gt_cv_func_CFPreferencesCopyAppValue=yes
11897 else
11898   echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 gt_cv_func_CFPreferencesCopyAppValue=no
11902 fi
11903 rm -f conftest.err conftest.$ac_objext \
11904       conftest$ac_exeext conftest.$ac_ext
11905      CPPFLAGS="$gt_save_CPPFLAGS"
11906      LIBS="$gt_save_LIBS"
11907 fi
11908 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11909 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11910   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11911
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11914 _ACEOF
11915
11916   fi
11917     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11918 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11919 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   gt_save_CPPFLAGS="$CPPFLAGS"
11923      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11924      gt_save_LIBS="$LIBS"
11925      LIBS="$LIBS -framework CoreFoundation"
11926      cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932 #include <CFLocale.h>
11933 int
11934 main ()
11935 {
11936 CFLocaleCopyCurrent();
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943   (eval $ac_link) 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -z "$ac_c_werror_flag"
11951                          || test ! -s conftest.err'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; } &&
11957          { ac_try='test -s conftest$ac_exeext'
11958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959   (eval $ac_try) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; }; then
11963   gt_cv_func_CFLocaleCopyCurrent=yes
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 gt_cv_func_CFLocaleCopyCurrent=no
11969 fi
11970 rm -f conftest.err conftest.$ac_objext \
11971       conftest$ac_exeext conftest.$ac_ext
11972      CPPFLAGS="$gt_save_CPPFLAGS"
11973      LIBS="$gt_save_LIBS"
11974 fi
11975 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11976 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11977   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11978
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_CFLOCALECOPYCURRENT 1
11981 _ACEOF
11982
11983   fi
11984   INTL_MACOSX_LIBS=
11985   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11986     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11987   fi
11988
11989
11990
11991
11992   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11993 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11994     # Check whether --enable-nls or --disable-nls was given.
11995 if test "${enable_nls+set}" = set; then
11996   enableval="$enable_nls"
11997   USE_NLS=$enableval
11998 else
11999   USE_NLS=yes
12000 fi;
12001   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12002 echo "${ECHO_T}$USE_NLS" >&6
12003
12004
12005
12006
12007     BUILD_INCLUDED_LIBINTL=no
12008     USE_INCLUDED_LIBINTL=no
12009
12010   LIBINTL=
12011   LTLIBINTL=
12012   POSUB=
12013
12014     if test "$USE_NLS" = "yes"; then
12015     gt_use_preinstalled_gnugettext=no
12016
12017       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12018 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12019
12020 # Check whether --with-included-gettext or --without-included-gettext was given.
12021 if test "${with_included_gettext+set}" = set; then
12022   withval="$with_included_gettext"
12023   nls_cv_force_use_gnu_gettext=$withval
12024 else
12025   nls_cv_force_use_gnu_gettext=no
12026 fi;
12027       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12028 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12029
12030       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12031       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12032
12033
12034
12035
12036
12037
12038         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12039 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12040 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12041   echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043   cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 #include <libintl.h>
12050 extern int _nl_msg_cat_cntr;
12051 extern int *_nl_domain_bindings;
12052 int
12053 main ()
12054 {
12055 bindtextdomain ("", "");
12056 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063   (eval $ac_link) 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -z "$ac_c_werror_flag"
12071                          || test ! -s conftest.err'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; }; then
12083   gt_cv_func_gnugettext1_libc=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 gt_cv_func_gnugettext1_libc=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext \
12091       conftest$ac_exeext conftest.$ac_ext
12092 fi
12093 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12094 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12095
12096         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12097
12098
12099
12100     use_additional=yes
12101
12102   acl_save_prefix="$prefix"
12103   prefix="$acl_final_prefix"
12104   acl_save_exec_prefix="$exec_prefix"
12105   exec_prefix="$acl_final_exec_prefix"
12106
12107     eval additional_includedir=\"$includedir\"
12108     eval additional_libdir=\"$libdir\"
12109
12110   exec_prefix="$acl_save_exec_prefix"
12111   prefix="$acl_save_prefix"
12112
12113
12114 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12115 if test "${with_libintl_prefix+set}" = set; then
12116   withval="$with_libintl_prefix"
12117
12118     if test "X$withval" = "Xno"; then
12119       use_additional=no
12120     else
12121       if test "X$withval" = "X"; then
12122
12123   acl_save_prefix="$prefix"
12124   prefix="$acl_final_prefix"
12125   acl_save_exec_prefix="$exec_prefix"
12126   exec_prefix="$acl_final_exec_prefix"
12127
12128           eval additional_includedir=\"$includedir\"
12129           eval additional_libdir=\"$libdir\"
12130
12131   exec_prefix="$acl_save_exec_prefix"
12132   prefix="$acl_save_prefix"
12133
12134       else
12135         additional_includedir="$withval/include"
12136         additional_libdir="$withval/lib"
12137       fi
12138     fi
12139
12140 fi;
12141       LIBINTL=
12142   LTLIBINTL=
12143   INCINTL=
12144   rpathdirs=
12145   ltrpathdirs=
12146   names_already_handled=
12147   names_next_round='intl '
12148   while test -n "$names_next_round"; do
12149     names_this_round="$names_next_round"
12150     names_next_round=
12151     for name in $names_this_round; do
12152       already_handled=
12153       for n in $names_already_handled; do
12154         if test "$n" = "$name"; then
12155           already_handled=yes
12156           break
12157         fi
12158       done
12159       if test -z "$already_handled"; then
12160         names_already_handled="$names_already_handled $name"
12161                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12162         eval value=\"\$HAVE_LIB$uppername\"
12163         if test -n "$value"; then
12164           if test "$value" = yes; then
12165             eval value=\"\$LIB$uppername\"
12166             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12167             eval value=\"\$LTLIB$uppername\"
12168             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12169           else
12170                                     :
12171           fi
12172         else
12173                               found_dir=
12174           found_la=
12175           found_so=
12176           found_a=
12177           if test $use_additional = yes; then
12178             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12179               found_dir="$additional_libdir"
12180               found_so="$additional_libdir/lib$name.$shlibext"
12181               if test -f "$additional_libdir/lib$name.la"; then
12182                 found_la="$additional_libdir/lib$name.la"
12183               fi
12184             else
12185               if test -f "$additional_libdir/lib$name.$libext"; then
12186                 found_dir="$additional_libdir"
12187                 found_a="$additional_libdir/lib$name.$libext"
12188                 if test -f "$additional_libdir/lib$name.la"; then
12189                   found_la="$additional_libdir/lib$name.la"
12190                 fi
12191               fi
12192             fi
12193           fi
12194           if test "X$found_dir" = "X"; then
12195             for x in $LDFLAGS $LTLIBINTL; do
12196
12197   acl_save_prefix="$prefix"
12198   prefix="$acl_final_prefix"
12199   acl_save_exec_prefix="$exec_prefix"
12200   exec_prefix="$acl_final_exec_prefix"
12201   eval x=\"$x\"
12202   exec_prefix="$acl_save_exec_prefix"
12203   prefix="$acl_save_prefix"
12204
12205               case "$x" in
12206                 -L*)
12207                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12208                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12209                     found_dir="$dir"
12210                     found_so="$dir/lib$name.$shlibext"
12211                     if test -f "$dir/lib$name.la"; then
12212                       found_la="$dir/lib$name.la"
12213                     fi
12214                   else
12215                     if test -f "$dir/lib$name.$libext"; then
12216                       found_dir="$dir"
12217                       found_a="$dir/lib$name.$libext"
12218                       if test -f "$dir/lib$name.la"; then
12219                         found_la="$dir/lib$name.la"
12220                       fi
12221                     fi
12222                   fi
12223                   ;;
12224               esac
12225               if test "X$found_dir" != "X"; then
12226                 break
12227               fi
12228             done
12229           fi
12230           if test "X$found_dir" != "X"; then
12231                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12232             if test "X$found_so" != "X"; then
12233                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12234                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12235               else
12236                                                                                 haveit=
12237                 for x in $ltrpathdirs; do
12238                   if test "X$x" = "X$found_dir"; then
12239                     haveit=yes
12240                     break
12241                   fi
12242                 done
12243                 if test -z "$haveit"; then
12244                   ltrpathdirs="$ltrpathdirs $found_dir"
12245                 fi
12246                                 if test "$hardcode_direct" = yes; then
12247                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12248                 else
12249                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12250                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12251                                                             haveit=
12252                     for x in $rpathdirs; do
12253                       if test "X$x" = "X$found_dir"; then
12254                         haveit=yes
12255                         break
12256                       fi
12257                     done
12258                     if test -z "$haveit"; then
12259                       rpathdirs="$rpathdirs $found_dir"
12260                     fi
12261                   else
12262                                                                                 haveit=
12263                     for x in $LDFLAGS $LIBINTL; do
12264
12265   acl_save_prefix="$prefix"
12266   prefix="$acl_final_prefix"
12267   acl_save_exec_prefix="$exec_prefix"
12268   exec_prefix="$acl_final_exec_prefix"
12269   eval x=\"$x\"
12270   exec_prefix="$acl_save_exec_prefix"
12271   prefix="$acl_save_prefix"
12272
12273                       if test "X$x" = "X-L$found_dir"; then
12274                         haveit=yes
12275                         break
12276                       fi
12277                     done
12278                     if test -z "$haveit"; then
12279                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12280                     fi
12281                     if test "$hardcode_minus_L" != no; then
12282                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12283                     else
12284                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12285                     fi
12286                   fi
12287                 fi
12288               fi
12289             else
12290               if test "X$found_a" != "X"; then
12291                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12292               else
12293                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12294               fi
12295             fi
12296                         additional_includedir=
12297             case "$found_dir" in
12298               */lib | */lib/)
12299                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12300                 additional_includedir="$basedir/include"
12301                 ;;
12302             esac
12303             if test "X$additional_includedir" != "X"; then
12304                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12305                 haveit=
12306                 if test "X$additional_includedir" = "X/usr/local/include"; then
12307                   if test -n "$GCC"; then
12308                     case $host_os in
12309                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12310                     esac
12311                   fi
12312                 fi
12313                 if test -z "$haveit"; then
12314                   for x in $CPPFLAGS $INCINTL; do
12315
12316   acl_save_prefix="$prefix"
12317   prefix="$acl_final_prefix"
12318   acl_save_exec_prefix="$exec_prefix"
12319   exec_prefix="$acl_final_exec_prefix"
12320   eval x=\"$x\"
12321   exec_prefix="$acl_save_exec_prefix"
12322   prefix="$acl_save_prefix"
12323
12324                     if test "X$x" = "X-I$additional_includedir"; then
12325                       haveit=yes
12326                       break
12327                     fi
12328                   done
12329                   if test -z "$haveit"; then
12330                     if test -d "$additional_includedir"; then
12331                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12332                     fi
12333                   fi
12334                 fi
12335               fi
12336             fi
12337                         if test -n "$found_la"; then
12338                                                         save_libdir="$libdir"
12339               case "$found_la" in
12340                 */* | *\\*) . "$found_la" ;;
12341                 *) . "./$found_la" ;;
12342               esac
12343               libdir="$save_libdir"
12344                             for dep in $dependency_libs; do
12345                 case "$dep" in
12346                   -L*)
12347                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12348                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12349                       haveit=
12350                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12351                         if test -n "$GCC"; then
12352                           case $host_os in
12353                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12354                           esac
12355                         fi
12356                       fi
12357                       if test -z "$haveit"; then
12358                         haveit=
12359                         for x in $LDFLAGS $LIBINTL; do
12360
12361   acl_save_prefix="$prefix"
12362   prefix="$acl_final_prefix"
12363   acl_save_exec_prefix="$exec_prefix"
12364   exec_prefix="$acl_final_exec_prefix"
12365   eval x=\"$x\"
12366   exec_prefix="$acl_save_exec_prefix"
12367   prefix="$acl_save_prefix"
12368
12369                           if test "X$x" = "X-L$additional_libdir"; then
12370                             haveit=yes
12371                             break
12372                           fi
12373                         done
12374                         if test -z "$haveit"; then
12375                           if test -d "$additional_libdir"; then
12376                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12377                           fi
12378                         fi
12379                         haveit=
12380                         for x in $LDFLAGS $LTLIBINTL; do
12381
12382   acl_save_prefix="$prefix"
12383   prefix="$acl_final_prefix"
12384   acl_save_exec_prefix="$exec_prefix"
12385   exec_prefix="$acl_final_exec_prefix"
12386   eval x=\"$x\"
12387   exec_prefix="$acl_save_exec_prefix"
12388   prefix="$acl_save_prefix"
12389
12390                           if test "X$x" = "X-L$additional_libdir"; then
12391                             haveit=yes
12392                             break
12393                           fi
12394                         done
12395                         if test -z "$haveit"; then
12396                           if test -d "$additional_libdir"; then
12397                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12398                           fi
12399                         fi
12400                       fi
12401                     fi
12402                     ;;
12403                   -R*)
12404                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12405                     if test "$enable_rpath" != no; then
12406                                                                   haveit=
12407                       for x in $rpathdirs; do
12408                         if test "X$x" = "X$dir"; then
12409                           haveit=yes
12410                           break
12411                         fi
12412                       done
12413                       if test -z "$haveit"; then
12414                         rpathdirs="$rpathdirs $dir"
12415                       fi
12416                                                                   haveit=
12417                       for x in $ltrpathdirs; do
12418                         if test "X$x" = "X$dir"; then
12419                           haveit=yes
12420                           break
12421                         fi
12422                       done
12423                       if test -z "$haveit"; then
12424                         ltrpathdirs="$ltrpathdirs $dir"
12425                       fi
12426                     fi
12427                     ;;
12428                   -l*)
12429                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12430                     ;;
12431                   *.la)
12432                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12433                     ;;
12434                   *)
12435                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12436                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12437                     ;;
12438                 esac
12439               done
12440             fi
12441           else
12442                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12443             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12444           fi
12445         fi
12446       fi
12447     done
12448   done
12449   if test "X$rpathdirs" != "X"; then
12450     if test -n "$hardcode_libdir_separator"; then
12451                         alldirs=
12452       for found_dir in $rpathdirs; do
12453         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12454       done
12455             acl_save_libdir="$libdir"
12456       libdir="$alldirs"
12457       eval flag=\"$hardcode_libdir_flag_spec\"
12458       libdir="$acl_save_libdir"
12459       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12460     else
12461             for found_dir in $rpathdirs; do
12462         acl_save_libdir="$libdir"
12463         libdir="$found_dir"
12464         eval flag=\"$hardcode_libdir_flag_spec\"
12465         libdir="$acl_save_libdir"
12466         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12467       done
12468     fi
12469   fi
12470   if test "X$ltrpathdirs" != "X"; then
12471             for found_dir in $ltrpathdirs; do
12472       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12473     done
12474   fi
12475
12476           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12477 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12478 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   gt_save_CPPFLAGS="$CPPFLAGS"
12482             CPPFLAGS="$CPPFLAGS $INCINTL"
12483             gt_save_LIBS="$LIBS"
12484             LIBS="$LIBS $LIBINTL"
12485                         cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h.  */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h.  */
12491 #include <libintl.h>
12492 extern int _nl_msg_cat_cntr;
12493 extern
12494 #ifdef __cplusplus
12495 "C"
12496 #endif
12497 const char *_nl_expand_alias (const char *);
12498 int
12499 main ()
12500 {
12501 bindtextdomain ("", "");
12502 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509   (eval $ac_link) 2>conftest.er1
12510   ac_status=$?
12511   grep -v '^ *+' conftest.er1 >conftest.err
12512   rm -f conftest.er1
12513   cat conftest.err >&5
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } &&
12516          { ac_try='test -z "$ac_c_werror_flag"
12517                          || test ! -s conftest.err'
12518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519   (eval $ac_try) 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); }; } &&
12523          { ac_try='test -s conftest$ac_exeext'
12524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525   (eval $ac_try) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); }; }; then
12529   gt_cv_func_gnugettext1_libintl=yes
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 gt_cv_func_gnugettext1_libintl=no
12535 fi
12536 rm -f conftest.err conftest.$ac_objext \
12537       conftest$ac_exeext conftest.$ac_ext
12538                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12539               LIBS="$LIBS $LIBICONV"
12540               cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h.  */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h.  */
12546 #include <libintl.h>
12547 extern int _nl_msg_cat_cntr;
12548 extern
12549 #ifdef __cplusplus
12550 "C"
12551 #endif
12552 const char *_nl_expand_alias (const char *);
12553 int
12554 main ()
12555 {
12556 bindtextdomain ("", "");
12557 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564   (eval $ac_link) 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -z "$ac_c_werror_flag"
12572                          || test ! -s conftest.err'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; } &&
12578          { ac_try='test -s conftest$ac_exeext'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   LIBINTL="$LIBINTL $LIBICONV"
12585                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12586                 gt_cv_func_gnugettext1_libintl=yes
12587
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 fi
12593 rm -f conftest.err conftest.$ac_objext \
12594       conftest$ac_exeext conftest.$ac_ext
12595             fi
12596             CPPFLAGS="$gt_save_CPPFLAGS"
12597             LIBS="$gt_save_LIBS"
12598 fi
12599 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12600 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12601         fi
12602
12603                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12604            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12605                 && test "$PACKAGE" != gettext-runtime \
12606                 && test "$PACKAGE" != gettext-tools; }; then
12607           gt_use_preinstalled_gnugettext=yes
12608         else
12609                     LIBINTL=
12610           LTLIBINTL=
12611           INCINTL=
12612         fi
12613
12614
12615         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12616                               nls_cv_use_gnu_gettext=yes
12617         fi
12618       fi
12619
12620       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12621                 BUILD_INCLUDED_LIBINTL=yes
12622         USE_INCLUDED_LIBINTL=yes
12623         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12624         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12625         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12626       fi
12627
12628       CATOBJEXT=
12629       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12630          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12631                 CATOBJEXT=.gmo
12632       fi
12633
12634
12635     if test -n "$INTL_MACOSX_LIBS"; then
12636       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12638                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12639         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12640       fi
12641     fi
12642
12643     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define ENABLE_NLS 1
12648 _ACEOF
12649
12650     else
12651       USE_NLS=no
12652     fi
12653   fi
12654
12655   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12656 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12657   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12658 echo "${ECHO_T}$USE_NLS" >&6
12659   if test "$USE_NLS" = "yes"; then
12660     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12661 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12662     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12663       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12664         gt_source="external libintl"
12665       else
12666         gt_source="libc"
12667       fi
12668     else
12669       gt_source="included intl directory"
12670     fi
12671     echo "$as_me:$LINENO: result: $gt_source" >&5
12672 echo "${ECHO_T}$gt_source" >&6
12673   fi
12674
12675   if test "$USE_NLS" = "yes"; then
12676
12677     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12678       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12679         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12680 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12681         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12682 echo "${ECHO_T}$LIBINTL" >&6
12683
12684   for element in $INCINTL; do
12685     haveit=
12686     for x in $CPPFLAGS; do
12687
12688   acl_save_prefix="$prefix"
12689   prefix="$acl_final_prefix"
12690   acl_save_exec_prefix="$exec_prefix"
12691   exec_prefix="$acl_final_exec_prefix"
12692   eval x=\"$x\"
12693   exec_prefix="$acl_save_exec_prefix"
12694   prefix="$acl_save_prefix"
12695
12696       if test "X$x" = "X$element"; then
12697         haveit=yes
12698         break
12699       fi
12700     done
12701     if test -z "$haveit"; then
12702       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12703     fi
12704   done
12705
12706       fi
12707
12708
12709 cat >>confdefs.h <<\_ACEOF
12710 #define HAVE_GETTEXT 1
12711 _ACEOF
12712
12713
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_DCGETTEXT 1
12716 _ACEOF
12717
12718     fi
12719
12720         POSUB=po
12721   fi
12722
12723
12724             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12725       BUILD_INCLUDED_LIBINTL=yes
12726     fi
12727
12728
12729
12730
12731
12732         nls_cv_header_intl=
12733     nls_cv_header_libgt=
12734
12735         DATADIRNAME=share
12736
12737
12738         INSTOBJEXT=.mo
12739
12740
12741         GENCAT=gencat
12742
12743
12744         INTLOBJS=
12745     if test "$USE_INCLUDED_LIBINTL" = yes; then
12746       INTLOBJS="\$(GETTOBJS)"
12747     fi
12748
12749
12750         INTL_LIBTOOL_SUFFIX_PREFIX=
12751
12752
12753
12754     INTLLIBS="$LIBINTL"
12755
12756
12757
12758
12759
12760
12761 fi
12762
12763
12764 support_mysql=no
12765 support_sqlite=no
12766 support_sqlite3=no
12767 support_postgresql=no
12768 support_smartalloc=yes
12769 support_readline=yes
12770 support_conio=yes
12771 support_gnome=no
12772 support_wx_console=no
12773 support_tls=no
12774 support_crypto=no
12775 gnome_version=
12776 wx_version=
12777 support_static_tools=no
12778 support_static_fd=no
12779 support_static_sd=no
12780 support_static_dir=no
12781 support_static_cons=no
12782 support_python=no
12783 build_client_only=no
12784 build_dird=yes
12785 build_stored=yes
12786 cats=
12787 db_name=Internal
12788 DB_NAME=bdb
12789
12790
12791 # -------------------------------------------
12792 # gnome (default off)
12793 # -------------------------------------------
12794 # Check whether --enable-gnome or --disable-gnome was given.
12795 if test "${enable_gnome+set}" = set; then
12796   enableval="$enable_gnome"
12797   if test x$enableval = xyes; then
12798     support_gnome=yes
12799   fi
12800 fi;
12801
12802 GNOME_DIR=
12803 if test x$support_gnome = xyes; then
12804   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12805   pkg=$?
12806   if test $pkg = 0; then
12807      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12808      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12809      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12810      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12811
12812
12813
12814
12815      GNOME_DIR=src/gnome2-console
12816      gnome_version="Version 2.x"
12817   else
12818      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12819 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12820    { (exit 1); exit 1; }; }
12821   fi
12822 fi
12823
12824
12825
12826 # -------------------------------------------
12827 # wx-console (default off)
12828 # -------------------------------------------
12829 # Check whether --enable-wx-console or --disable-wx-console was given.
12830 if test "${enable_wx_console+set}" = set; then
12831   enableval="$enable_wx_console"
12832   if test x$enableval = xyes; then
12833     support_wx_console=yes
12834   fi
12835 fi;
12836
12837 WX_DIR=
12838 if test x$support_wx_console = xyes; then
12839   abc=`$WXCONFIG $WXFLAGS --cppflags`
12840   pkg=$?
12841   if test $pkg = 0; then
12842      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12843      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12844      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12845
12846
12847
12848      WX_DIR=src/wx-console
12849   else
12850      echo " "
12851      echo "wx-config program not found. wx-console disabled."
12852      echo " "
12853      support_wx_console=no
12854   fi
12855 fi
12856
12857
12858
12859 # -------------------------------------------
12860 # tray-monitor (default off)
12861 # -------------------------------------------
12862 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12863 if test "${enable_tray_monitor+set}" = set; then
12864   enableval="$enable_tray_monitor"
12865   if test x$enableval = xyes; then
12866     support_tray_monitor=yes
12867   fi
12868 fi;
12869
12870 TRAY_MONITOR_DIR=
12871 if test x$support_tray_monitor = xyes; then
12872   abc=`$PKGCONFIG --exists gtk+-2.0`
12873   pkg=$?
12874   if test $pkg = 0; then
12875      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12876      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12877
12878
12879      TRAY_MONITOR_DIR=src/tray-monitor
12880      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12881      pkg=$?
12882      if test $pkg = 0; then
12883         cat >>confdefs.h <<\_ACEOF
12884 #define HAVE_GTK_2_4 1
12885 _ACEOF
12886
12887      fi
12888   fi
12889 fi
12890
12891
12892 # -------------------------------------------
12893 # smartalloc (default off)
12894 # -------------------------------------------
12895 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12896 if test "${enable_smartalloc+set}" = set; then
12897   enableval="$enable_smartalloc"
12898   if test x$enableval = xno; then
12899     support_smartalloc=no
12900   fi
12901 fi;
12902
12903 if test x$support_smartalloc = xyes; then
12904    cat >>confdefs.h <<\_ACEOF
12905 #define SMARTALLOC 1
12906 _ACEOF
12907
12908 fi
12909
12910 # -------------------------------------------
12911 # static-tools (default off)
12912 # -------------------------------------------
12913 # Check whether --enable-static-tools or --disable-static-tools was given.
12914 if test "${enable_static_tools+set}" = set; then
12915   enableval="$enable_static_tools"
12916   if test x$enableval = xyes; then
12917      support_static_tools=yes
12918    fi
12919 fi;
12920
12921 TTOOL_LDFLAGS=
12922 if test x$support_static_tools = xyes; then
12923    TTOOL_LDFLAGS="-static"
12924 fi
12925
12926
12927 # -------------------------------------------
12928 # static-fd    (default off)
12929 # -------------------------------------------
12930 # Check whether --enable-static-fd or --disable-static-fd was given.
12931 if test "${enable_static_fd+set}" = set; then
12932   enableval="$enable_static_fd"
12933   if test x$enableval = xyes; then
12934      support_static_fd=yes
12935    fi
12936 fi;
12937
12938 STATIC_FD=
12939 if test x$support_static_fd = xyes; then
12940    STATIC_FD="static-bacula-fd"
12941 fi
12942
12943
12944 # -------------------------------------------
12945 # static-sd    (default off)
12946 # -------------------------------------------
12947 # Check whether --enable-static-sd or --disable-static-sd was given.
12948 if test "${enable_static_sd+set}" = set; then
12949   enableval="$enable_static_sd"
12950   if test x$enableval = xyes; then
12951      support_static_sd=yes
12952    fi
12953 fi;
12954
12955 STATIC_SD=
12956 if test x$support_static_sd = xyes; then
12957    STATIC_SD="static-bacula-sd"
12958 fi
12959
12960
12961 # -------------------------------------------
12962 # static-dir   (default off)
12963 # -------------------------------------------
12964 # Check whether --enable-static-dir or --disable-static-dir was given.
12965 if test "${enable_static_dir+set}" = set; then
12966   enableval="$enable_static_dir"
12967   if test x$enableval = xyes; then
12968      support_static_dir=yes
12969    fi
12970 fi;
12971
12972 STATIC_DIR=
12973 if test x$support_static_dir = xyes; then
12974    STATIC_DIR="static-bacula-dir"
12975 fi
12976
12977
12978 # -------------------------------------------
12979 # static-cons  (default off)
12980 # -------------------------------------------
12981 # Check whether --enable-static-cons or --disable-static-cons was given.
12982 if test "${enable_static_cons+set}" = set; then
12983   enableval="$enable_static_cons"
12984   if test x$enableval = xyes; then
12985      support_static_cons=yes
12986    fi
12987 fi;
12988
12989 STATIC_CONS=
12990 STATIC_GNOME_CONS=
12991 STATIC_WX_CONS=
12992 if test x$support_static_cons = xyes; then
12993    STATIC_CONS="static-bconsole"
12994    STATIC_GNOME_CONS="static-gnome-console"
12995    STATIC_WX_CONS="static-wx-console"
12996 fi
12997
12998
12999
13000
13001 # -------------------------------------------
13002 # client_only  (default off)
13003 # -------------------------------------------
13004 # Check whether --enable-client-only or --disable-client-only was given.
13005 if test "${enable_client_only+set}" = set; then
13006   enableval="$enable_client_only"
13007   if test x$enableval = xyes; then
13008       build_client_only=yes
13009       db_name=None
13010       DB_NAME=none
13011    fi
13012 fi;
13013 if test x$build_client_only = xno; then
13014    ALL_DIRS="subdirs"
13015 else
13016    ALL_DIRS=""
13017 fi
13018
13019
13020 # -------------------------------------------
13021 # director  (default on)
13022 # -------------------------------------------
13023 # Check whether --enable-build-dird or --disable-build-dird was given.
13024 if test "${enable_build_dird+set}" = set; then
13025   enableval="$enable_build_dird"
13026   if test x$enableval = xno; then
13027       build_dird=no
13028    fi
13029 fi;
13030 if test x$build_dird = xyes; then
13031    DIRD_DIR="src/dird"
13032    DIR_TOOLS="DIRTOOLS"
13033 else
13034    DIRD_DIR=""
13035    DIR_TOOLS="NODIRTOOLS"
13036 fi
13037
13038
13039
13040 # -------------------------------------------
13041 # stored  (default on)
13042 # -------------------------------------------
13043 # Check whether --enable-build-stored or --disable-build-stored was given.
13044 if test "${enable_build_stored+set}" = set; then
13045   enableval="$enable_build_stored"
13046   if test x$enableval = xno; then
13047       build_stored=no
13048    fi
13049 fi;
13050 if test x$build_stored = xyes; then
13051    STORED_DIR="src/stored"
13052 else
13053    STORED_DIR=""
13054 fi
13055
13056
13057 # ---------------------------------------------------
13058 # Check for conio (Bacula readline substitute)(
13059 # ---------------------------------------------------
13060 # this allows you to turn it completely off
13061 # Check whether --enable-conio or --disable-conio was given.
13062 if test "${enable_conio+set}" = set; then
13063   enableval="$enable_conio"
13064   if test x$enableval = xno; then
13065     support_conio=no
13066   fi
13067 fi;
13068
13069 got_conio="no"
13070 if test x$support_conio = xyes; then
13071    if test "${ac_cv_header_termcap_h+set}" = set; then
13072   echo "$as_me:$LINENO: checking for termcap.h" >&5
13073 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13074 if test "${ac_cv_header_termcap_h+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 fi
13077 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13079 else
13080   # Is the header compilable?
13081 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13082 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h.  */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h.  */
13089 $ac_includes_default
13090 #include <termcap.h>
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094   (eval $ac_compile) 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } &&
13101          { ac_try='test -z "$ac_c_werror_flag"
13102                          || test ! -s conftest.err'
13103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104   (eval $ac_try) 2>&5
13105   ac_status=$?
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); }; } &&
13108          { ac_try='test -s conftest.$ac_objext'
13109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110   (eval $ac_try) 2>&5
13111   ac_status=$?
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); }; }; then
13114   ac_header_compiler=yes
13115 else
13116   echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119 ac_header_compiler=no
13120 fi
13121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13123 echo "${ECHO_T}$ac_header_compiler" >&6
13124
13125 # Is the header present?
13126 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13127 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h.  */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h.  */
13134 #include <termcap.h>
13135 _ACEOF
13136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13138   ac_status=$?
13139   grep -v '^ *+' conftest.er1 >conftest.err
13140   rm -f conftest.er1
13141   cat conftest.err >&5
13142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); } >/dev/null; then
13144   if test -s conftest.err; then
13145     ac_cpp_err=$ac_c_preproc_warn_flag
13146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13147   else
13148     ac_cpp_err=
13149   fi
13150 else
13151   ac_cpp_err=yes
13152 fi
13153 if test -z "$ac_cpp_err"; then
13154   ac_header_preproc=yes
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159   ac_header_preproc=no
13160 fi
13161 rm -f conftest.err conftest.$ac_ext
13162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13163 echo "${ECHO_T}$ac_header_preproc" >&6
13164
13165 # So?  What about this header?
13166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13167   yes:no: )
13168     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13169 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13170     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13171 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13172     ac_header_preproc=yes
13173     ;;
13174   no:yes:* )
13175     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13176 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13177     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13178 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13179     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13180 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13181     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13182 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13183     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13185     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13186 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13187     (
13188       cat <<\_ASBOX
13189 ## ------------------------------------------ ##
13190 ## Report this to the AC_PACKAGE_NAME lists.  ##
13191 ## ------------------------------------------ ##
13192 _ASBOX
13193     ) |
13194       sed "s/^/$as_me: WARNING:     /" >&2
13195     ;;
13196 esac
13197 echo "$as_me:$LINENO: checking for termcap.h" >&5
13198 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13199 if test "${ac_cv_header_termcap_h+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   ac_cv_header_termcap_h=$ac_header_preproc
13203 fi
13204 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13205 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13206
13207 fi
13208 if test $ac_cv_header_termcap_h = yes; then
13209    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13210 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13211 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ltermcap  $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222
13223 /* Override any gcc2 internal prototype to avoid an error.  */
13224 #ifdef __cplusplus
13225 extern "C"
13226 #endif
13227 /* We use char because int might match the return type of a gcc2
13228    builtin and then its argument prototype would still apply.  */
13229 char tgetent ();
13230 int
13231 main ()
13232 {
13233 tgetent ();
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240   (eval $ac_link) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_c_werror_flag"
13248                          || test ! -s conftest.err'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; } &&
13254          { ac_try='test -s conftest$ac_exeext'
13255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256   (eval $ac_try) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; }; then
13260   ac_cv_lib_termcap_tgetent=yes
13261 else
13262   echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_lib_termcap_tgetent=no
13266 fi
13267 rm -f conftest.err conftest.$ac_objext \
13268       conftest$ac_exeext conftest.$ac_ext
13269 LIBS=$ac_check_lib_save_LIBS
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13272 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13273 if test $ac_cv_lib_termcap_tgetent = yes; then
13274    CONS_LIBS="-ltermcap"
13275          CONS_OBJ="conio.o"
13276          CONS_SRC="conio.c"
13277          got_conio="yes"
13278          support_readline=no
13279
13280 cat >>confdefs.h <<\_ACEOF
13281 #define HAVE_CONIO 1
13282 _ACEOF
13283
13284
13285 else
13286    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13287 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13288 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lncurses  $LIBS"
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h.  */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h.  */
13299
13300 /* Override any gcc2 internal prototype to avoid an error.  */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 /* We use char because int might match the return type of a gcc2
13305    builtin and then its argument prototype would still apply.  */
13306 char tgetent ();
13307 int
13308 main ()
13309 {
13310 tgetent ();
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317   (eval $ac_link) 2>conftest.er1
13318   ac_status=$?
13319   grep -v '^ *+' conftest.er1 >conftest.err
13320   rm -f conftest.er1
13321   cat conftest.err >&5
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); } &&
13324          { ac_try='test -z "$ac_c_werror_flag"
13325                          || test ! -s conftest.err'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; } &&
13331          { ac_try='test -s conftest$ac_exeext'
13332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333   (eval $ac_try) 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }; }; then
13337   ac_cv_lib_ncurses_tgetent=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342 ac_cv_lib_ncurses_tgetent=no
13343 fi
13344 rm -f conftest.err conftest.$ac_objext \
13345       conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13347 fi
13348 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13349 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13350 if test $ac_cv_lib_ncurses_tgetent = yes; then
13351    CONS_LIBS="-lncurses"
13352            CONS_OBJ="conio.o"
13353            CONS_SRC="conio.c"
13354            got_conio="yes"
13355            support_readline=no
13356
13357 cat >>confdefs.h <<\_ACEOF
13358 #define HAVE_CONIO 1
13359 _ACEOF
13360
13361
13362 fi
13363
13364
13365 fi
13366
13367
13368 else
13369
13370
13371 for ac_header in curses.h
13372 do
13373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13375   echo "$as_me:$LINENO: checking for $ac_header" >&5
13376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13378   echo $ECHO_N "(cached) $ECHO_C" >&6
13379 fi
13380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13382 else
13383   # Is the header compilable?
13384 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h.  */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h.  */
13392 $ac_includes_default
13393 #include <$ac_header>
13394 _ACEOF
13395 rm -f conftest.$ac_objext
13396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397   (eval $ac_compile) 2>conftest.er1
13398   ac_status=$?
13399   grep -v '^ *+' conftest.er1 >conftest.err
13400   rm -f conftest.er1
13401   cat conftest.err >&5
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); } &&
13404          { ac_try='test -z "$ac_c_werror_flag"
13405                          || test ! -s conftest.err'
13406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407   (eval $ac_try) 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); }; } &&
13411          { ac_try='test -s conftest.$ac_objext'
13412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413   (eval $ac_try) 2>&5
13414   ac_status=$?
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); }; }; then
13417   ac_header_compiler=yes
13418 else
13419   echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13421
13422 ac_header_compiler=no
13423 fi
13424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13426 echo "${ECHO_T}$ac_header_compiler" >&6
13427
13428 # Is the header present?
13429 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437 #include <$ac_header>
13438 _ACEOF
13439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } >/dev/null; then
13447   if test -s conftest.err; then
13448     ac_cpp_err=$ac_c_preproc_warn_flag
13449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13450   else
13451     ac_cpp_err=
13452   fi
13453 else
13454   ac_cpp_err=yes
13455 fi
13456 if test -z "$ac_cpp_err"; then
13457   ac_header_preproc=yes
13458 else
13459   echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462   ac_header_preproc=no
13463 fi
13464 rm -f conftest.err conftest.$ac_ext
13465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13466 echo "${ECHO_T}$ac_header_preproc" >&6
13467
13468 # So?  What about this header?
13469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13470   yes:no: )
13471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13475     ac_header_preproc=yes
13476     ;;
13477   no:yes:* )
13478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13490     (
13491       cat <<\_ASBOX
13492 ## ------------------------------------------ ##
13493 ## Report this to the AC_PACKAGE_NAME lists.  ##
13494 ## ------------------------------------------ ##
13495 _ASBOX
13496     ) |
13497       sed "s/^/$as_me: WARNING:     /" >&2
13498     ;;
13499 esac
13500 echo "$as_me:$LINENO: checking for $ac_header" >&5
13501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503   echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505   eval "$as_ac_Header=\$ac_header_preproc"
13506 fi
13507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13509
13510 fi
13511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13512   cat >>confdefs.h <<_ACEOF
13513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13514 _ACEOF
13515
13516 fi
13517
13518 done
13519
13520          echo "$as_me:$LINENO: checking for term.h" >&5
13521 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13522 if test "${ac_cv_header_term_h+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   cat >conftest.$ac_ext <<_ACEOF
13526 /* confdefs.h.  */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h.  */
13531 #if HAVE_CURSES_H
13532 #include <curses.h>
13533 #endif
13534
13535
13536 #include <term.h>
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540   (eval $ac_compile) 2>conftest.er1
13541   ac_status=$?
13542   grep -v '^ *+' conftest.er1 >conftest.err
13543   rm -f conftest.er1
13544   cat conftest.err >&5
13545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546   (exit $ac_status); } &&
13547          { ac_try='test -z "$ac_c_werror_flag"
13548                          || test ! -s conftest.err'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; } &&
13554          { ac_try='test -s conftest.$ac_objext'
13555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556   (eval $ac_try) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); }; }; then
13560   ac_cv_header_term_h=yes
13561 else
13562   echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_cv_header_term_h=no
13566 fi
13567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 fi
13569 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13570 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13571 if test $ac_cv_header_term_h = yes; then
13572    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13573 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13574 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13575   echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577   ac_check_lib_save_LIBS=$LIBS
13578 LIBS="-lcurses  $LIBS"
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h.  */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h.  */
13585
13586 /* Override any gcc2 internal prototype to avoid an error.  */
13587 #ifdef __cplusplus
13588 extern "C"
13589 #endif
13590 /* We use char because int might match the return type of a gcc2
13591    builtin and then its argument prototype would still apply.  */
13592 char tgetent ();
13593 int
13594 main ()
13595 {
13596 tgetent ();
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603   (eval $ac_link) 2>conftest.er1
13604   ac_status=$?
13605   grep -v '^ *+' conftest.er1 >conftest.err
13606   rm -f conftest.er1
13607   cat conftest.err >&5
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); } &&
13610          { ac_try='test -z "$ac_c_werror_flag"
13611                          || test ! -s conftest.err'
13612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613   (eval $ac_try) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; } &&
13617          { ac_try='test -s conftest$ac_exeext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_cv_lib_curses_tgetent=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_cv_lib_curses_tgetent=no
13629 fi
13630 rm -f conftest.err conftest.$ac_objext \
13631       conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS
13633 fi
13634 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13635 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13636 if test $ac_cv_lib_curses_tgetent = yes; then
13637    CONS_LIBS="-lcurses"
13638                    CONS_OBJ="conio.o"
13639                    CONS_SRC="conio.c"
13640                    got_conio="yes"
13641                    support_readline=no
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_CONIO 1
13645 _ACEOF
13646
13647
13648 fi
13649
13650
13651 else
13652    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13653 fi
13654
13655
13656
13657 fi
13658
13659
13660 fi
13661
13662
13663 # ---------------------------------------------------
13664 # Check for readline support/directory (default off)
13665 # ---------------------------------------------------
13666 # this allows you to turn it completely off
13667 # Check whether --enable-readline or --disable-readline was given.
13668 if test "${enable_readline+set}" = set; then
13669   enableval="$enable_readline"
13670   if test x$enableval = xno; then
13671     support_readline=no
13672   fi
13673 fi;
13674
13675 got_readline="no"
13676 READLINE_SRC=
13677 if test x$support_readline = xyes; then
13678
13679 # Check whether --with-readline or --without-readline was given.
13680 if test "${with_readline+set}" = set; then
13681   withval="$with_readline"
13682
13683         case "$with_readline" in
13684         no) : ;;
13685         yes|*)
13686           if test -f ${with_readline}/readline.h; then
13687              CONS_INC="-I${with_readline}"
13688              CONS_LDFLAGS="-L$with_readline"
13689           elif test -f ${with_readline}/include/readline/readline.h; then
13690              CONS_INC="-I${with_readline}/include/readline"
13691              CONS_LDFLAGS="-L${with_readline}/lib"
13692              with_readline="${with_readline}/include/readline"
13693           else
13694              with_readline="/usr/include/readline"
13695           fi
13696           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13698   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13699 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13701   echo $ECHO_N "(cached) $ECHO_C" >&6
13702 fi
13703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13705 else
13706   # Is the header compilable?
13707 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13708 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h.  */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h.  */
13715 $ac_includes_default
13716 #include <${with_readline}/readline.h>
13717 _ACEOF
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720   (eval $ac_compile) 2>conftest.er1
13721   ac_status=$?
13722   grep -v '^ *+' conftest.er1 >conftest.err
13723   rm -f conftest.er1
13724   cat conftest.err >&5
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } &&
13727          { ac_try='test -z "$ac_c_werror_flag"
13728                          || test ! -s conftest.err'
13729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730   (eval $ac_try) 2>&5
13731   ac_status=$?
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); }; } &&
13734          { ac_try='test -s conftest.$ac_objext'
13735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736   (eval $ac_try) 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); }; }; then
13740   ac_header_compiler=yes
13741 else
13742   echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13744
13745 ac_header_compiler=no
13746 fi
13747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13748 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13749 echo "${ECHO_T}$ac_header_compiler" >&6
13750
13751 # Is the header present?
13752 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13753 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 #include <${with_readline}/readline.h>
13761 _ACEOF
13762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13764   ac_status=$?
13765   grep -v '^ *+' conftest.er1 >conftest.err
13766   rm -f conftest.er1
13767   cat conftest.err >&5
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } >/dev/null; then
13770   if test -s conftest.err; then
13771     ac_cpp_err=$ac_c_preproc_warn_flag
13772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13773   else
13774     ac_cpp_err=
13775   fi
13776 else
13777   ac_cpp_err=yes
13778 fi
13779 if test -z "$ac_cpp_err"; then
13780   ac_header_preproc=yes
13781 else
13782   echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13784
13785   ac_header_preproc=no
13786 fi
13787 rm -f conftest.err conftest.$ac_ext
13788 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13789 echo "${ECHO_T}$ac_header_preproc" >&6
13790
13791 # So?  What about this header?
13792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13793   yes:no: )
13794     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13795 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13796     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13797 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13798     ac_header_preproc=yes
13799     ;;
13800   no:yes:* )
13801     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13803     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13805     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13806 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13807     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13808 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13809     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13810 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13811     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13812 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13813     (
13814       cat <<\_ASBOX
13815 ## ------------------------------------------ ##
13816 ## Report this to the AC_PACKAGE_NAME lists.  ##
13817 ## ------------------------------------------ ##
13818 _ASBOX
13819     ) |
13820       sed "s/^/$as_me: WARNING:     /" >&2
13821     ;;
13822 esac
13823 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13824 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   eval "$as_ac_Header=\$ac_header_preproc"
13829 fi
13830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13832
13833 fi
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835    cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_READLINE 1
13837 _ACEOF
13838
13839                CONS_LIBS="-lreadline -lhistory -ltermcap"
13840                got_readline="yes"
13841
13842 else
13843    echo " "
13844                echo "readline.h not found. readline turned off ..."
13845                echo " "
13846
13847
13848 fi
13849
13850
13851           ;;
13852         esac
13853
13854 else
13855
13856        # check for standard readline library
13857        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13858   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13859 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13860 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13861   echo $ECHO_N "(cached) $ECHO_C" >&6
13862 fi
13863 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13864 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13865 else
13866   # Is the header compilable?
13867 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13868 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13869 cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h.  */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h.  */
13875 $ac_includes_default
13876 #include </usr/include/readline/readline.h>
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880   (eval $ac_compile) 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } &&
13887          { ac_try='test -z "$ac_c_werror_flag"
13888                          || test ! -s conftest.err'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; } &&
13894          { ac_try='test -s conftest.$ac_objext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_header_compiler=yes
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 ac_header_compiler=no
13906 fi
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13909 echo "${ECHO_T}$ac_header_compiler" >&6
13910
13911 # Is the header present?
13912 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13913 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h.  */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h.  */
13920 #include </usr/include/readline/readline.h>
13921 _ACEOF
13922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } >/dev/null; then
13930   if test -s conftest.err; then
13931     ac_cpp_err=$ac_c_preproc_warn_flag
13932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13933   else
13934     ac_cpp_err=
13935   fi
13936 else
13937   ac_cpp_err=yes
13938 fi
13939 if test -z "$ac_cpp_err"; then
13940   ac_header_preproc=yes
13941 else
13942   echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13944
13945   ac_header_preproc=no
13946 fi
13947 rm -f conftest.err conftest.$ac_ext
13948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13949 echo "${ECHO_T}$ac_header_preproc" >&6
13950
13951 # So?  What about this header?
13952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13953   yes:no: )
13954     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13955 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13956     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13957 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13958     ac_header_preproc=yes
13959     ;;
13960   no:yes:* )
13961     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
13965     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13966 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13967     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13968 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13969     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13970 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13971     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13972 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13973     (
13974       cat <<\_ASBOX
13975 ## ------------------------------------------ ##
13976 ## Report this to the AC_PACKAGE_NAME lists.  ##
13977 ## ------------------------------------------ ##
13978 _ASBOX
13979     ) |
13980       sed "s/^/$as_me: WARNING:     /" >&2
13981     ;;
13982 esac
13983 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13984 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13985 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13989 fi
13990 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13991 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13992
13993 fi
13994 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
13995    cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_READLINE 1
13997 _ACEOF
13998
13999            got_readline="yes"
14000            CONS_INC="-I/usr/include/readline"
14001            CONS_LIBS="-lreadline -ltermcap"
14002
14003 else
14004
14005            # Did not find standard library, so try Bacula's default
14006             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14009 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 fi
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14015 else
14016   # Is the header compilable?
14017 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14018 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 $ac_includes_default
14026 #include <${TOP_DIR}/depkgs/readline/readline.h>
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030   (eval $ac_compile) 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } &&
14037          { ac_try='test -z "$ac_c_werror_flag"
14038                          || test ! -s conftest.err'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; } &&
14044          { ac_try='test -s conftest.$ac_objext'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   ac_header_compiler=yes
14051 else
14052   echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055 ac_header_compiler=no
14056 fi
14057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14059 echo "${ECHO_T}$ac_header_compiler" >&6
14060
14061 # Is the header present?
14062 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14063 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14064 cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h.  */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h.  */
14070 #include <${TOP_DIR}/depkgs/readline/readline.h>
14071 _ACEOF
14072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14074   ac_status=$?
14075   grep -v '^ *+' conftest.er1 >conftest.err
14076   rm -f conftest.er1
14077   cat conftest.err >&5
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } >/dev/null; then
14080   if test -s conftest.err; then
14081     ac_cpp_err=$ac_c_preproc_warn_flag
14082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14083   else
14084     ac_cpp_err=
14085   fi
14086 else
14087   ac_cpp_err=yes
14088 fi
14089 if test -z "$ac_cpp_err"; then
14090   ac_header_preproc=yes
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095   ac_header_preproc=no
14096 fi
14097 rm -f conftest.err conftest.$ac_ext
14098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14099 echo "${ECHO_T}$ac_header_preproc" >&6
14100
14101 # So?  What about this header?
14102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14103   yes:no: )
14104     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14105 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14106     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14107 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14108     ac_header_preproc=yes
14109     ;;
14110   no:yes:* )
14111     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14113     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14115     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14116 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14117     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14118 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14119     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14120 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14121     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14122 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14123     (
14124       cat <<\_ASBOX
14125 ## ------------------------------------------ ##
14126 ## Report this to the AC_PACKAGE_NAME lists.  ##
14127 ## ------------------------------------------ ##
14128 _ASBOX
14129     ) |
14130       sed "s/^/$as_me: WARNING:     /" >&2
14131     ;;
14132 esac
14133 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14134 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14136   echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138   eval "$as_ac_Header=\$ac_header_preproc"
14139 fi
14140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14142
14143 fi
14144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14145    cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_READLINE 1
14147 _ACEOF
14148
14149                  got_readline="yes"
14150                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14151                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14152                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14153                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14154
14155 else
14156    echo " "
14157                 echo "readline.h not found. readline turned off ..."
14158                 echo " "
14159
14160
14161 fi
14162
14163
14164
14165
14166 fi
14167
14168
14169
14170
14171 fi;
14172 fi
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183 # Minimal stuff for readline Makefile configuration
14184 MAKE_SHELL=/bin/sh
14185
14186 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14187 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14188 if test "${ac_cv_header_stat_broken+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 #include <sys/types.h>
14198 #include <sys/stat.h>
14199
14200 #if defined(S_ISBLK) && defined(S_IFDIR)
14201 # if S_ISBLK (S_IFDIR)
14202 You lose.
14203 # endif
14204 #endif
14205
14206 #if defined(S_ISBLK) && defined(S_IFCHR)
14207 # if S_ISBLK (S_IFCHR)
14208 You lose.
14209 # endif
14210 #endif
14211
14212 #if defined(S_ISLNK) && defined(S_IFREG)
14213 # if S_ISLNK (S_IFREG)
14214 You lose.
14215 # endif
14216 #endif
14217
14218 #if defined(S_ISSOCK) && defined(S_IFREG)
14219 # if S_ISSOCK (S_IFREG)
14220 You lose.
14221 # endif
14222 #endif
14223
14224 _ACEOF
14225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226   $EGREP "You lose" >/dev/null 2>&1; then
14227   ac_cv_header_stat_broken=yes
14228 else
14229   ac_cv_header_stat_broken=no
14230 fi
14231 rm -f conftest*
14232
14233 fi
14234 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14235 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14236 if test $ac_cv_header_stat_broken = yes; then
14237
14238 cat >>confdefs.h <<\_ACEOF
14239 #define STAT_MACROS_BROKEN 1
14240 _ACEOF
14241
14242 fi
14243
14244
14245
14246
14247
14248
14249 ac_header_dirent=no
14250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14251   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14252 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14255   echo $ECHO_N "(cached) $ECHO_C" >&6
14256 else
14257   cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h.  */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h.  */
14263 #include <sys/types.h>
14264 #include <$ac_hdr>
14265
14266 int
14267 main ()
14268 {
14269 if ((DIR *) 0)
14270 return 0;
14271   ;
14272   return 0;
14273 }
14274 _ACEOF
14275 rm -f conftest.$ac_objext
14276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14277   (eval $ac_compile) 2>conftest.er1
14278   ac_status=$?
14279   grep -v '^ *+' conftest.er1 >conftest.err
14280   rm -f conftest.er1
14281   cat conftest.err >&5
14282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } &&
14284          { ac_try='test -z "$ac_c_werror_flag"
14285                          || test ! -s conftest.err'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; } &&
14291          { ac_try='test -s conftest.$ac_objext'
14292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293   (eval $ac_try) 2>&5
14294   ac_status=$?
14295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296   (exit $ac_status); }; }; then
14297   eval "$as_ac_Header=yes"
14298 else
14299   echo "$as_me: failed program was:" >&5
14300 sed 's/^/| /' conftest.$ac_ext >&5
14301
14302 eval "$as_ac_Header=no"
14303 fi
14304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14305 fi
14306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14309   cat >>confdefs.h <<_ACEOF
14310 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14311 _ACEOF
14312
14313 ac_header_dirent=$ac_hdr; break
14314 fi
14315
14316 done
14317 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14318 if test $ac_header_dirent = dirent.h; then
14319   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14320 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14321 if test "${ac_cv_search_opendir+set}" = set; then
14322   echo $ECHO_N "(cached) $ECHO_C" >&6
14323 else
14324   ac_func_search_save_LIBS=$LIBS
14325 ac_cv_search_opendir=no
14326 cat >conftest.$ac_ext <<_ACEOF
14327 /* confdefs.h.  */
14328 _ACEOF
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h.  */
14332
14333 /* Override any gcc2 internal prototype to avoid an error.  */
14334 #ifdef __cplusplus
14335 extern "C"
14336 #endif
14337 /* We use char because int might match the return type of a gcc2
14338    builtin and then its argument prototype would still apply.  */
14339 char opendir ();
14340 int
14341 main ()
14342 {
14343 opendir ();
14344   ;
14345   return 0;
14346 }
14347 _ACEOF
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350   (eval $ac_link) 2>conftest.er1
14351   ac_status=$?
14352   grep -v '^ *+' conftest.er1 >conftest.err
14353   rm -f conftest.er1
14354   cat conftest.err >&5
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -z "$ac_c_werror_flag"
14358                          || test ! -s conftest.err'
14359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360   (eval $ac_try) 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; } &&
14364          { ac_try='test -s conftest$ac_exeext'
14365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366   (eval $ac_try) 2>&5
14367   ac_status=$?
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); }; }; then
14370   ac_cv_search_opendir="none required"
14371 else
14372   echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375 fi
14376 rm -f conftest.err conftest.$ac_objext \
14377       conftest$ac_exeext conftest.$ac_ext
14378 if test "$ac_cv_search_opendir" = no; then
14379   for ac_lib in dir; do
14380     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14381     cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387
14388 /* Override any gcc2 internal prototype to avoid an error.  */
14389 #ifdef __cplusplus
14390 extern "C"
14391 #endif
14392 /* We use char because int might match the return type of a gcc2
14393    builtin and then its argument prototype would still apply.  */
14394 char opendir ();
14395 int
14396 main ()
14397 {
14398 opendir ();
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14405   (eval $ac_link) 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -z "$ac_c_werror_flag"
14413                          || test ! -s conftest.err'
14414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415   (eval $ac_try) 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; } &&
14419          { ac_try='test -s conftest$ac_exeext'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; }; then
14425   ac_cv_search_opendir="-l$ac_lib"
14426 break
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 fi
14432 rm -f conftest.err conftest.$ac_objext \
14433       conftest$ac_exeext conftest.$ac_ext
14434   done
14435 fi
14436 LIBS=$ac_func_search_save_LIBS
14437 fi
14438 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14439 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14440 if test "$ac_cv_search_opendir" != no; then
14441   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14442
14443 fi
14444
14445 else
14446   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14448 if test "${ac_cv_search_opendir+set}" = set; then
14449   echo $ECHO_N "(cached) $ECHO_C" >&6
14450 else
14451   ac_func_search_save_LIBS=$LIBS
14452 ac_cv_search_opendir=no
14453 cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459
14460 /* Override any gcc2 internal prototype to avoid an error.  */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 /* We use char because int might match the return type of a gcc2
14465    builtin and then its argument prototype would still apply.  */
14466 char opendir ();
14467 int
14468 main ()
14469 {
14470 opendir ();
14471   ;
14472   return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext conftest$ac_exeext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14477   (eval $ac_link) 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } &&
14484          { ac_try='test -z "$ac_c_werror_flag"
14485                          || test ! -s conftest.err'
14486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487   (eval $ac_try) 2>&5
14488   ac_status=$?
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); }; } &&
14491          { ac_try='test -s conftest$ac_exeext'
14492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493   (eval $ac_try) 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_search_opendir="none required"
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 fi
14503 rm -f conftest.err conftest.$ac_objext \
14504       conftest$ac_exeext conftest.$ac_ext
14505 if test "$ac_cv_search_opendir" = no; then
14506   for ac_lib in x; do
14507     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14508     cat >conftest.$ac_ext <<_ACEOF
14509 /* confdefs.h.  */
14510 _ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h.  */
14514
14515 /* Override any gcc2 internal prototype to avoid an error.  */
14516 #ifdef __cplusplus
14517 extern "C"
14518 #endif
14519 /* We use char because int might match the return type of a gcc2
14520    builtin and then its argument prototype would still apply.  */
14521 char opendir ();
14522 int
14523 main ()
14524 {
14525 opendir ();
14526   ;
14527   return 0;
14528 }
14529 _ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14532   (eval $ac_link) 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -z "$ac_c_werror_flag"
14540                          || test ! -s conftest.err'
14541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542   (eval $ac_try) 2>&5
14543   ac_status=$?
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; } &&
14546          { ac_try='test -s conftest$ac_exeext'
14547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548   (eval $ac_try) 2>&5
14549   ac_status=$?
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); }; }; then
14552   ac_cv_search_opendir="-l$ac_lib"
14553 break
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 fi
14559 rm -f conftest.err conftest.$ac_objext \
14560       conftest$ac_exeext conftest.$ac_ext
14561   done
14562 fi
14563 LIBS=$ac_func_search_save_LIBS
14564 fi
14565 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14566 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14567 if test "$ac_cv_search_opendir" != no; then
14568   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14569
14570 fi
14571
14572 fi
14573
14574
14575
14576
14577
14578
14579
14580
14581 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14582 do
14583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14584 echo "$as_me:$LINENO: checking for $ac_func" >&5
14585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14586 if eval "test \"\${$as_ac_var+set}\" = set"; then
14587   echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589   cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14597 #define $ac_func innocuous_$ac_func
14598
14599 /* System header to define __stub macros and hopefully few prototypes,
14600     which can conflict with char $ac_func (); below.
14601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602     <limits.h> exists even on freestanding compilers.  */
14603
14604 #ifdef __STDC__
14605 # include <limits.h>
14606 #else
14607 # include <assert.h>
14608 #endif
14609
14610 #undef $ac_func
14611
14612 /* Override any gcc2 internal prototype to avoid an error.  */
14613 #ifdef __cplusplus
14614 extern "C"
14615 {
14616 #endif
14617 /* We use char because int might match the return type of a gcc2
14618    builtin and then its argument prototype would still apply.  */
14619 char $ac_func ();
14620 /* The GNU C library defines this for functions which it implements
14621     to always fail with ENOSYS.  Some functions are actually named
14622     something starting with __ and the normal name is an alias.  */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14624 choke me
14625 #else
14626 char (*f) () = $ac_func;
14627 #endif
14628 #ifdef __cplusplus
14629 }
14630 #endif
14631
14632 int
14633 main ()
14634 {
14635 return f != $ac_func;
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642   (eval $ac_link) 2>conftest.er1
14643   ac_status=$?
14644   grep -v '^ *+' conftest.er1 >conftest.err
14645   rm -f conftest.er1
14646   cat conftest.err >&5
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -z "$ac_c_werror_flag"
14650                          || test ! -s conftest.err'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; } &&
14656          { ac_try='test -s conftest$ac_exeext'
14657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658   (eval $ac_try) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); }; }; then
14662   eval "$as_ac_var=yes"
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 eval "$as_ac_var=no"
14668 fi
14669 rm -f conftest.err conftest.$ac_objext \
14670       conftest$ac_exeext conftest.$ac_ext
14671 fi
14672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14674 if test `eval echo '${'$as_ac_var'}'` = yes; then
14675   cat >>confdefs.h <<_ACEOF
14676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677 _ACEOF
14678
14679 fi
14680 done
14681
14682
14683
14684 for ac_func in nanosleep nl_langinfo
14685 do
14686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687 echo "$as_me:$LINENO: checking for $ac_func" >&5
14688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14689 if eval "test \"\${$as_ac_var+set}\" = set"; then
14690   echo $ECHO_N "(cached) $ECHO_C" >&6
14691 else
14692   cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14700 #define $ac_func innocuous_$ac_func
14701
14702 /* System header to define __stub macros and hopefully few prototypes,
14703     which can conflict with char $ac_func (); below.
14704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14705     <limits.h> exists even on freestanding compilers.  */
14706
14707 #ifdef __STDC__
14708 # include <limits.h>
14709 #else
14710 # include <assert.h>
14711 #endif
14712
14713 #undef $ac_func
14714
14715 /* Override any gcc2 internal prototype to avoid an error.  */
14716 #ifdef __cplusplus
14717 extern "C"
14718 {
14719 #endif
14720 /* We use char because int might match the return type of a gcc2
14721    builtin and then its argument prototype would still apply.  */
14722 char $ac_func ();
14723 /* The GNU C library defines this for functions which it implements
14724     to always fail with ENOSYS.  Some functions are actually named
14725     something starting with __ and the normal name is an alias.  */
14726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14727 choke me
14728 #else
14729 char (*f) () = $ac_func;
14730 #endif
14731 #ifdef __cplusplus
14732 }
14733 #endif
14734
14735 int
14736 main ()
14737 {
14738 return f != $ac_func;
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745   (eval $ac_link) 2>conftest.er1
14746   ac_status=$?
14747   grep -v '^ *+' conftest.er1 >conftest.err
14748   rm -f conftest.er1
14749   cat conftest.err >&5
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -z "$ac_c_werror_flag"
14753                          || test ! -s conftest.err'
14754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755   (eval $ac_try) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); }; } &&
14759          { ac_try='test -s conftest$ac_exeext'
14760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761   (eval $ac_try) 2>&5
14762   ac_status=$?
14763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); }; }; then
14765   eval "$as_ac_var=yes"
14766 else
14767   echo "$as_me: failed program was:" >&5
14768 sed 's/^/| /' conftest.$ac_ext >&5
14769
14770 eval "$as_ac_var=no"
14771 fi
14772 rm -f conftest.err conftest.$ac_objext \
14773       conftest$ac_exeext conftest.$ac_ext
14774 fi
14775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14777 if test `eval echo '${'$as_ac_var'}'` = yes; then
14778   cat >>confdefs.h <<_ACEOF
14779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14780 _ACEOF
14781
14782 fi
14783 done
14784
14785
14786 for ac_header in varargs.h
14787 do
14788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14790   echo "$as_me:$LINENO: checking for $ac_header" >&5
14791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14793   echo $ECHO_N "(cached) $ECHO_C" >&6
14794 fi
14795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14797 else
14798   # Is the header compilable?
14799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14802 /* confdefs.h.  */
14803 _ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h.  */
14807 $ac_includes_default
14808 #include <$ac_header>
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812   (eval $ac_compile) 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -z "$ac_c_werror_flag"
14820                          || test ! -s conftest.err'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest.$ac_objext'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_header_compiler=yes
14833 else
14834   echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 ac_header_compiler=no
14838 fi
14839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14841 echo "${ECHO_T}$ac_header_compiler" >&6
14842
14843 # Is the header present?
14844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h.  */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h.  */
14852 #include <$ac_header>
14853 _ACEOF
14854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14856   ac_status=$?
14857   grep -v '^ *+' conftest.er1 >conftest.err
14858   rm -f conftest.er1
14859   cat conftest.err >&5
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); } >/dev/null; then
14862   if test -s conftest.err; then
14863     ac_cpp_err=$ac_c_preproc_warn_flag
14864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14865   else
14866     ac_cpp_err=
14867   fi
14868 else
14869   ac_cpp_err=yes
14870 fi
14871 if test -z "$ac_cpp_err"; then
14872   ac_header_preproc=yes
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877   ac_header_preproc=no
14878 fi
14879 rm -f conftest.err conftest.$ac_ext
14880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14881 echo "${ECHO_T}$ac_header_preproc" >&6
14882
14883 # So?  What about this header?
14884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885   yes:no: )
14886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14890     ac_header_preproc=yes
14891     ;;
14892   no:yes:* )
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14905     (
14906       cat <<\_ASBOX
14907 ## ------------------------------------------ ##
14908 ## Report this to the AC_PACKAGE_NAME lists.  ##
14909 ## ------------------------------------------ ##
14910 _ASBOX
14911     ) |
14912       sed "s/^/$as_me: WARNING:     /" >&2
14913     ;;
14914 esac
14915 echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920   eval "$as_ac_Header=\$ac_header_preproc"
14921 fi
14922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14924
14925 fi
14926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14927   cat >>confdefs.h <<_ACEOF
14928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14929 _ACEOF
14930
14931 fi
14932
14933 done
14934
14935
14936 # End of readline/conio stuff
14937 # -----------------------------------------------------------------------
14938
14939 # -----------------------------------------------------------------------
14940 #  Check for Python support
14941 #
14942 echo "$as_me:$LINENO: checking for Python support" >&5
14943 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14944
14945 # Check whether --with-python or --without-python was given.
14946 if test "${with_python+set}" = set; then
14947   withval="$with_python"
14948
14949   PYTHON_INCDIR=
14950   PYTHON_LIBS=
14951   if test "$withval" != "no"; then
14952      if test "$withval" = "yes"; then
14953         for python_root in /usr /usr/local /usr/sfw; do
14954           if test -f $python_root/include/python2.2/Python.h; then
14955              PYTHON_INCDIR=-I$python_root/include/python2.2
14956              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
14957              break
14958           elif test -f $python_root/include/python2.3/Python.h; then
14959              PYTHON_INCDIR=-I$python_root/include/python2.3
14960              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
14961              break
14962           elif test -f $python_root/include/python2.4/Python.h; then
14963              PYTHON_INCDIR=-I$python_root/include/python2.4
14964              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
14965              break
14966           fi
14967         done
14968         if test x$PYTHON_INCDIR = x; then
14969           if test -f $prefix/include/Python.h; then
14970              PYTHON_INCDIR=-I$prefix/include
14971              PYTHON_LIBS="-L$prefix/lib/config -lpython"
14972           else
14973            echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6
14975            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14976 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14977    { (exit 1); exit 1; }; }
14978           fi
14979         fi
14980      else
14981         if test -f $withval/Python.h; then
14982            PYTHON_INCDIR=-I$withval
14983            PYTHON_LIBS="-L$withval/config -lpython"
14984         elif test -f $withval/include/Python.h; then
14985            PYTHON_INCDIR=-I$withval/include
14986            PYTHON_LIBS="-L$withval/lib/config -lpython"
14987         elif test -f $withval/include/python/Python.h; then
14988            PYTHON_INCDIR=-I$withval/include/python
14989            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
14990         else
14991            echo "$as_me:$LINENO: result: no" >&5
14992 echo "${ECHO_T}no" >&6
14993            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
14994 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
14995    { (exit 1); exit 1; }; }
14996         fi
14997      fi
14998      cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_PYTHON 1
15000 _ACEOF
15001
15002      echo "$as_me:$LINENO: result: yes" >&5
15003 echo "${ECHO_T}yes" >&6
15004      support_python=yes
15005      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15006 echo "$as_me: checking for more Python libs" >&6;}
15007      saved_LIBS="$LIBS"; LIBS=
15008      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15009 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15010 if test "${ac_cv_search_shm_open+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   ac_func_search_save_LIBS=$LIBS
15014 ac_cv_search_shm_open=no
15015 cat >conftest.$ac_ext <<_ACEOF
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021
15022 /* Override any gcc2 internal prototype to avoid an error.  */
15023 #ifdef __cplusplus
15024 extern "C"
15025 #endif
15026 /* We use char because int might match the return type of a gcc2
15027    builtin and then its argument prototype would still apply.  */
15028 char shm_open ();
15029 int
15030 main ()
15031 {
15032 shm_open ();
15033   ;
15034   return 0;
15035 }
15036 _ACEOF
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039   (eval $ac_link) 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } &&
15046          { ac_try='test -z "$ac_c_werror_flag"
15047                          || test ! -s conftest.err'
15048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049   (eval $ac_try) 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest$ac_exeext'
15054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055   (eval $ac_try) 2>&5
15056   ac_status=$?
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); }; }; then
15059   ac_cv_search_shm_open="none required"
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064 fi
15065 rm -f conftest.err conftest.$ac_objext \
15066       conftest$ac_exeext conftest.$ac_ext
15067 if test "$ac_cv_search_shm_open" = no; then
15068   for ac_lib in rt; do
15069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15070     cat >conftest.$ac_ext <<_ACEOF
15071 /* confdefs.h.  */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h.  */
15076
15077 /* Override any gcc2 internal prototype to avoid an error.  */
15078 #ifdef __cplusplus
15079 extern "C"
15080 #endif
15081 /* We use char because int might match the return type of a gcc2
15082    builtin and then its argument prototype would still apply.  */
15083 char shm_open ();
15084 int
15085 main ()
15086 {
15087 shm_open ();
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094   (eval $ac_link) 2>conftest.er1
15095   ac_status=$?
15096   grep -v '^ *+' conftest.er1 >conftest.err
15097   rm -f conftest.er1
15098   cat conftest.err >&5
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); } &&
15101          { ac_try='test -z "$ac_c_werror_flag"
15102                          || test ! -s conftest.err'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; } &&
15108          { ac_try='test -s conftest$ac_exeext'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; }; then
15114   ac_cv_search_shm_open="-l$ac_lib"
15115 break
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120 fi
15121 rm -f conftest.err conftest.$ac_objext \
15122       conftest$ac_exeext conftest.$ac_ext
15123   done
15124 fi
15125 LIBS=$ac_func_search_save_LIBS
15126 fi
15127 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15128 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15129 if test "$ac_cv_search_shm_open" != no; then
15130   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15131
15132 fi
15133
15134
15135 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15136 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15137 if test "${ac_cv_lib_util_openpty+set}" = set; then
15138   echo $ECHO_N "(cached) $ECHO_C" >&6
15139 else
15140   ac_check_lib_save_LIBS=$LIBS
15141 LIBS="-lutil  $LIBS"
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h.  */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h.  */
15148
15149 /* Override any gcc2 internal prototype to avoid an error.  */
15150 #ifdef __cplusplus
15151 extern "C"
15152 #endif
15153 /* We use char because int might match the return type of a gcc2
15154    builtin and then its argument prototype would still apply.  */
15155 char openpty ();
15156 int
15157 main ()
15158 {
15159 openpty ();
15160   ;
15161   return 0;
15162 }
15163 _ACEOF
15164 rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15166   (eval $ac_link) 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } &&
15173          { ac_try='test -z "$ac_c_werror_flag"
15174                          || test ! -s conftest.err'
15175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176   (eval $ac_try) 2>&5
15177   ac_status=$?
15178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); }; } &&
15180          { ac_try='test -s conftest$ac_exeext'
15181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182   (eval $ac_try) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; }; then
15186   ac_cv_lib_util_openpty=yes
15187 else
15188   echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191 ac_cv_lib_util_openpty=no
15192 fi
15193 rm -f conftest.err conftest.$ac_objext \
15194       conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15196 fi
15197 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15198 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15199 if test $ac_cv_lib_util_openpty = yes; then
15200   cat >>confdefs.h <<_ACEOF
15201 #define HAVE_LIBUTIL 1
15202 _ACEOF
15203
15204   LIBS="-lutil $LIBS"
15205
15206 fi
15207
15208      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15209      LIBS="$saved_LIBS"
15210   else
15211      echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15213   fi
15214
15215 else
15216
15217   echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15219
15220 fi;
15221
15222
15223
15224
15225 #
15226 # Find where sockets are (especially for Solaris)
15227 # Do this before the TCP Wrappers test since tcp wrappers
15228 # uses the socket library and some linkers are stupid.
15229 #
15230 echo "$as_me:$LINENO: checking for socket" >&5
15231 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15232 if test "${ac_cv_func_socket+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15243 #define socket innocuous_socket
15244
15245 /* System header to define __stub macros and hopefully few prototypes,
15246     which can conflict with char socket (); below.
15247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248     <limits.h> exists even on freestanding compilers.  */
15249
15250 #ifdef __STDC__
15251 # include <limits.h>
15252 #else
15253 # include <assert.h>
15254 #endif
15255
15256 #undef socket
15257
15258 /* Override any gcc2 internal prototype to avoid an error.  */
15259 #ifdef __cplusplus
15260 extern "C"
15261 {
15262 #endif
15263 /* We use char because int might match the return type of a gcc2
15264    builtin and then its argument prototype would still apply.  */
15265 char socket ();
15266 /* The GNU C library defines this for functions which it implements
15267     to always fail with ENOSYS.  Some functions are actually named
15268     something starting with __ and the normal name is an alias.  */
15269 #if defined (__stub_socket) || defined (__stub___socket)
15270 choke me
15271 #else
15272 char (*f) () = socket;
15273 #endif
15274 #ifdef __cplusplus
15275 }
15276 #endif
15277
15278 int
15279 main ()
15280 {
15281 return f != socket;
15282   ;
15283   return 0;
15284 }
15285 _ACEOF
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15288   (eval $ac_link) 2>conftest.er1
15289   ac_status=$?
15290   grep -v '^ *+' conftest.er1 >conftest.err
15291   rm -f conftest.er1
15292   cat conftest.err >&5
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); } &&
15295          { ac_try='test -z "$ac_c_werror_flag"
15296                          || test ! -s conftest.err'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; } &&
15302          { ac_try='test -s conftest$ac_exeext'
15303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304   (eval $ac_try) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; }; then
15308   ac_cv_func_socket=yes
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 ac_cv_func_socket=no
15314 fi
15315 rm -f conftest.err conftest.$ac_objext \
15316       conftest$ac_exeext conftest.$ac_ext
15317 fi
15318 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15319 echo "${ECHO_T}$ac_cv_func_socket" >&6
15320 if test $ac_cv_func_socket = yes; then
15321   echo "$as_me:$LINENO: result: using libc's socket" >&5
15322 echo "${ECHO_T}using libc's socket" >&6
15323 else
15324
15325 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15326 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15327 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   ac_check_lib_save_LIBS=$LIBS
15331 LIBS="-lxnet  $LIBS"
15332 cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h.  */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h.  */
15338
15339 /* Override any gcc2 internal prototype to avoid an error.  */
15340 #ifdef __cplusplus
15341 extern "C"
15342 #endif
15343 /* We use char because int might match the return type of a gcc2
15344    builtin and then its argument prototype would still apply.  */
15345 char socket ();
15346 int
15347 main ()
15348 {
15349 socket ();
15350   ;
15351   return 0;
15352 }
15353 _ACEOF
15354 rm -f conftest.$ac_objext conftest$ac_exeext
15355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15356   (eval $ac_link) 2>conftest.er1
15357   ac_status=$?
15358   grep -v '^ *+' conftest.er1 >conftest.err
15359   rm -f conftest.er1
15360   cat conftest.err >&5
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } &&
15363          { ac_try='test -z "$ac_c_werror_flag"
15364                          || test ! -s conftest.err'
15365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366   (eval $ac_try) 2>&5
15367   ac_status=$?
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); }; } &&
15370          { ac_try='test -s conftest$ac_exeext'
15371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372   (eval $ac_try) 2>&5
15373   ac_status=$?
15374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375   (exit $ac_status); }; }; then
15376   ac_cv_lib_xnet_socket=yes
15377 else
15378   echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381 ac_cv_lib_xnet_socket=no
15382 fi
15383 rm -f conftest.err conftest.$ac_objext \
15384       conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS
15386 fi
15387 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15388 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15389 if test $ac_cv_lib_xnet_socket = yes; then
15390   cat >>confdefs.h <<_ACEOF
15391 #define HAVE_LIBXNET 1
15392 _ACEOF
15393
15394   LIBS="-lxnet $LIBS"
15395
15396 fi
15397
15398
15399 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15400 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15401 if test "${ac_cv_lib_socket_socket+set}" = set; then
15402   echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404   ac_check_lib_save_LIBS=$LIBS
15405 LIBS="-lsocket  $LIBS"
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412
15413 /* Override any gcc2 internal prototype to avoid an error.  */
15414 #ifdef __cplusplus
15415 extern "C"
15416 #endif
15417 /* We use char because int might match the return type of a gcc2
15418    builtin and then its argument prototype would still apply.  */
15419 char socket ();
15420 int
15421 main ()
15422 {
15423 socket ();
15424   ;
15425   return 0;
15426 }
15427 _ACEOF
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430   (eval $ac_link) 2>conftest.er1
15431   ac_status=$?
15432   grep -v '^ *+' conftest.er1 >conftest.err
15433   rm -f conftest.er1
15434   cat conftest.err >&5
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } &&
15437          { ac_try='test -z "$ac_c_werror_flag"
15438                          || test ! -s conftest.err'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; } &&
15444          { ac_try='test -s conftest$ac_exeext'
15445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446   (eval $ac_try) 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; }; then
15450   ac_cv_lib_socket_socket=yes
15451 else
15452   echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15454
15455 ac_cv_lib_socket_socket=no
15456 fi
15457 rm -f conftest.err conftest.$ac_objext \
15458       conftest$ac_exeext conftest.$ac_ext
15459 LIBS=$ac_check_lib_save_LIBS
15460 fi
15461 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15462 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15463 if test $ac_cv_lib_socket_socket = yes; then
15464   cat >>confdefs.h <<_ACEOF
15465 #define HAVE_LIBSOCKET 1
15466 _ACEOF
15467
15468   LIBS="-lsocket $LIBS"
15469
15470 fi
15471
15472
15473 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15474 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15475 if test "${ac_cv_lib_inet_socket+set}" = set; then
15476   echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478   ac_check_lib_save_LIBS=$LIBS
15479 LIBS="-linet  $LIBS"
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h.  */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h.  */
15486
15487 /* Override any gcc2 internal prototype to avoid an error.  */
15488 #ifdef __cplusplus
15489 extern "C"
15490 #endif
15491 /* We use char because int might match the return type of a gcc2
15492    builtin and then its argument prototype would still apply.  */
15493 char socket ();
15494 int
15495 main ()
15496 {
15497 socket ();
15498   ;
15499   return 0;
15500 }
15501 _ACEOF
15502 rm -f conftest.$ac_objext conftest$ac_exeext
15503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15504   (eval $ac_link) 2>conftest.er1
15505   ac_status=$?
15506   grep -v '^ *+' conftest.er1 >conftest.err
15507   rm -f conftest.er1
15508   cat conftest.err >&5
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -z "$ac_c_werror_flag"
15512                          || test ! -s conftest.err'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; } &&
15518          { ac_try='test -s conftest$ac_exeext'
15519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520   (eval $ac_try) 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; }; then
15524   ac_cv_lib_inet_socket=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529 ac_cv_lib_inet_socket=no
15530 fi
15531 rm -f conftest.err conftest.$ac_objext \
15532       conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_check_lib_save_LIBS
15534 fi
15535 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15536 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15537 if test $ac_cv_lib_inet_socket = yes; then
15538   cat >>confdefs.h <<_ACEOF
15539 #define HAVE_LIBINET 1
15540 _ACEOF
15541
15542   LIBS="-linet $LIBS"
15543
15544 fi
15545
15546 fi
15547
15548
15549
15550 # -----------------------------------------------------------
15551 # Check whether user wants TCP wrappers support (default off)
15552 # -----------------------------------------------------------
15553 TCPW_MSG="no"
15554 WRAPLIBS=""
15555
15556 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15557 if test "${with_tcp_wrappers+set}" = set; then
15558   withval="$with_tcp_wrappers"
15559
15560     if test "x$withval" != "xno" ; then
15561        saved_LIBS="$LIBS"
15562        LIBS="$saved_LIBS -lwrap"
15563        echo "$as_me:$LINENO: checking for libwrap" >&5
15564 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15565        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15566 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15567 if test "${ac_cv_search_nanosleep+set}" = set; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570   ac_func_search_save_LIBS=$LIBS
15571 ac_cv_search_nanosleep=no
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578
15579 /* Override any gcc2 internal prototype to avoid an error.  */
15580 #ifdef __cplusplus
15581 extern "C"
15582 #endif
15583 /* We use char because int might match the return type of a gcc2
15584    builtin and then its argument prototype would still apply.  */
15585 char nanosleep ();
15586 int
15587 main ()
15588 {
15589 nanosleep ();
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15596   (eval $ac_link) 2>conftest.er1
15597   ac_status=$?
15598   grep -v '^ *+' conftest.er1 >conftest.err
15599   rm -f conftest.er1
15600   cat conftest.err >&5
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); } &&
15603          { ac_try='test -z "$ac_c_werror_flag"
15604                          || test ! -s conftest.err'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; } &&
15610          { ac_try='test -s conftest$ac_exeext'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; }; then
15616   ac_cv_search_nanosleep="none required"
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 fi
15622 rm -f conftest.err conftest.$ac_objext \
15623       conftest$ac_exeext conftest.$ac_ext
15624 if test "$ac_cv_search_nanosleep" = no; then
15625   for ac_lib in rt; do
15626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15627     cat >conftest.$ac_ext <<_ACEOF
15628 /* confdefs.h.  */
15629 _ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h.  */
15633
15634 /* Override any gcc2 internal prototype to avoid an error.  */
15635 #ifdef __cplusplus
15636 extern "C"
15637 #endif
15638 /* We use char because int might match the return type of a gcc2
15639    builtin and then its argument prototype would still apply.  */
15640 char nanosleep ();
15641 int
15642 main ()
15643 {
15644 nanosleep ();
15645   ;
15646   return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15651   (eval $ac_link) 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } &&
15658          { ac_try='test -z "$ac_c_werror_flag"
15659                          || test ! -s conftest.err'
15660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661   (eval $ac_try) 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest$ac_exeext'
15666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667   (eval $ac_try) 2>&5
15668   ac_status=$?
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); }; }; then
15671   ac_cv_search_nanosleep="-l$ac_lib"
15672 break
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677 fi
15678 rm -f conftest.err conftest.$ac_objext \
15679       conftest$ac_exeext conftest.$ac_ext
15680   done
15681 fi
15682 LIBS=$ac_func_search_save_LIBS
15683 fi
15684 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15685 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15686 if test "$ac_cv_search_nanosleep" != no; then
15687   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15688
15689 fi
15690
15691        cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h.  */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h.  */
15697  #include <sys/types.h>
15698             #include <tcpd.h>
15699              int deny_severity = 0;
15700              int allow_severity = 0;
15701              struct request_info *req;
15702 int
15703 main ()
15704 {
15705  hosts_access(req);
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15712   (eval $ac_link) 2>conftest.er1
15713   ac_status=$?
15714   grep -v '^ *+' conftest.er1 >conftest.err
15715   rm -f conftest.er1
15716   cat conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } &&
15719          { ac_try='test -z "$ac_c_werror_flag"
15720                          || test ! -s conftest.err'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; } &&
15726          { ac_try='test -s conftest$ac_exeext'
15727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728   (eval $ac_try) 2>&5
15729   ac_status=$?
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); }; }; then
15732
15733             echo "$as_me:$LINENO: result: yes" >&5
15734 echo "${ECHO_T}yes" >&6
15735             cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_LIBWRAP 1
15737 _ACEOF
15738
15739             TCPW_MSG="yes"
15740             LIBS="$saved_LIBS"
15741             WRAPLIBS="-lwrap"
15742
15743 else
15744   echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15746
15747
15748             LIBS="$saved_LIBS -lwrap -lnsl"
15749             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15750             cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756  #include <sys/types.h>
15757                  #include <tcpd.h>
15758                  int deny_severity = 0;
15759                  int allow_severity = 0;
15760                  struct request_info *req;
15761 int
15762 main ()
15763 {
15764  hosts_access(req);
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 rm -f conftest.$ac_objext conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771   (eval $ac_link) 2>conftest.er1
15772   ac_status=$?
15773   grep -v '^ *+' conftest.er1 >conftest.err
15774   rm -f conftest.er1
15775   cat conftest.err >&5
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); } &&
15778          { ac_try='test -z "$ac_c_werror_flag"
15779                          || test ! -s conftest.err'
15780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781   (eval $ac_try) 2>&5
15782   ac_status=$?
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; } &&
15785          { ac_try='test -s conftest$ac_exeext'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; }; then
15791
15792                  echo "$as_me:$LINENO: result: yes" >&5
15793 echo "${ECHO_T}yes" >&6
15794                  cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_LIBWRAP 1
15796 _ACEOF
15797
15798                  TCPW_MSG="yes"
15799                  LIBS="$saved_LIBS"
15800                  WRAPLIBS="-lwrap"
15801
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15807 echo "$as_me: error: *** libwrap missing" >&2;}
15808    { (exit 1); exit 1; }; }
15809
15810 fi
15811 rm -f conftest.err conftest.$ac_objext \
15812       conftest$ac_exeext conftest.$ac_ext
15813
15814 fi
15815 rm -f conftest.err conftest.$ac_objext \
15816       conftest$ac_exeext conftest.$ac_ext
15817     fi
15818
15819
15820 fi;
15821
15822 # -----------------------------------------------------------
15823 # Check whether OpenSSL is available
15824 # -----------------------------------------------------------
15825 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15826 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15827
15828 # Check whether --with-openssl or --without-openssl was given.
15829 if test "${with_openssl+set}" = set; then
15830   withval="$with_openssl"
15831   with_openssl_directory=${withval}
15832 fi;
15833
15834 if test "x$with_openssl_directory" != "x"; then
15835         OPENSSL_LIBS="-lssl -lcrypto"
15836         OPENSSL_INC=""
15837
15838         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15839                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15840                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15841         fi
15842
15843         saved_LIBS="$LIBS"
15844         saved_CFLAGS="$CFLAGS"
15845         LIBS="$saved_LIBS $OPENSSL_LIBS"
15846         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
15847
15848         cat >conftest.$ac_ext <<_ACEOF
15849 /* confdefs.h.  */
15850 _ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h.  */
15854  #include <openssl/ssl.h>
15855 int
15856 main ()
15857 {
15858  CRYPTO_set_id_callback(NULL);
15859   ;
15860   return 0;
15861 }
15862 _ACEOF
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15865   (eval $ac_link) 2>conftest.er1
15866   ac_status=$?
15867   grep -v '^ *+' conftest.er1 >conftest.err
15868   rm -f conftest.er1
15869   cat conftest.err >&5
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); } &&
15872          { ac_try='test -z "$ac_c_werror_flag"
15873                          || test ! -s conftest.err'
15874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875   (eval $ac_try) 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); }; } &&
15879          { ac_try='test -s conftest$ac_exeext'
15880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881   (eval $ac_try) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; }; then
15885
15886                         support_tls="yes"
15887                         support_crypto="yes"
15888
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893  support_tls="no"
15894
15895 fi
15896 rm -f conftest.err conftest.$ac_objext \
15897       conftest$ac_exeext conftest.$ac_ext
15898
15899         cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905  #include <openssl/evp.h>
15906 int
15907 main ()
15908 {
15909  EVP_sha512();
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916   (eval $ac_link) 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } &&
15923          { ac_try='test -z "$ac_c_werror_flag"
15924                          || test ! -s conftest.err'
15925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926   (eval $ac_try) 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest$ac_exeext'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; }; then
15936    ac_cv_openssl_sha2="yes"
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941  ac_cv_openssl_sha2="no"
15942
15943 fi
15944 rm -f conftest.err conftest.$ac_objext \
15945       conftest$ac_exeext conftest.$ac_ext
15946
15947         LIBS="$saved_LIBS"
15948         CFLAGS="$saved_CFLAGS"
15949
15950         if test "$support_tls" = "yes"; then
15951
15952 cat >>confdefs.h <<\_ACEOF
15953 #define HAVE_OPENSSL 1
15954 _ACEOF
15955
15956
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE_TLS 1
15959 _ACEOF
15960
15961
15962 cat >>confdefs.h <<\_ACEOF
15963 #define HAVE_CRYPTO 1
15964 _ACEOF
15965
15966         fi
15967
15968         if test "$ac_cv_openssl_sha2" = "yes"; then
15969
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_SHA2 1
15972 _ACEOF
15973
15974         fi
15975 else
15976         support_tls="no"
15977         support_crypto="no"
15978         OPENSSL_LIBS=""
15979         OPENSSL_INC=""
15980 fi
15981
15982 echo "$as_me:$LINENO: result: $support_tls" >&5
15983 echo "${ECHO_T}$support_tls" >&6
15984
15985
15986
15987
15988 # -----------------------------------------------------------
15989 # Python and OpenSSL are using dlopen
15990 # -----------------------------------------------------------
15991
15992 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
15993    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15994 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
15995 if test "${ac_cv_search_dlopen+set}" = set; then
15996   echo $ECHO_N "(cached) $ECHO_C" >&6
15997 else
15998   ac_func_search_save_LIBS=$LIBS
15999 ac_cv_search_dlopen=no
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006
16007 /* Override any gcc2 internal prototype to avoid an error.  */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 /* We use char because int might match the return type of a gcc2
16012    builtin and then its argument prototype would still apply.  */
16013 char dlopen ();
16014 int
16015 main ()
16016 {
16017 dlopen ();
16018   ;
16019   return 0;
16020 }
16021 _ACEOF
16022 rm -f conftest.$ac_objext conftest$ac_exeext
16023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16024   (eval $ac_link) 2>conftest.er1
16025   ac_status=$?
16026   grep -v '^ *+' conftest.er1 >conftest.err
16027   rm -f conftest.er1
16028   cat conftest.err >&5
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); } &&
16031          { ac_try='test -z "$ac_c_werror_flag"
16032                          || test ! -s conftest.err'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; } &&
16038          { ac_try='test -s conftest$ac_exeext'
16039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040   (eval $ac_try) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044   ac_cv_search_dlopen="none required"
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 fi
16050 rm -f conftest.err conftest.$ac_objext \
16051       conftest$ac_exeext conftest.$ac_ext
16052 if test "$ac_cv_search_dlopen" = no; then
16053   for ac_lib in dl; do
16054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16055     cat >conftest.$ac_ext <<_ACEOF
16056 /* confdefs.h.  */
16057 _ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h.  */
16061
16062 /* Override any gcc2 internal prototype to avoid an error.  */
16063 #ifdef __cplusplus
16064 extern "C"
16065 #endif
16066 /* We use char because int might match the return type of a gcc2
16067    builtin and then its argument prototype would still apply.  */
16068 char dlopen ();
16069 int
16070 main ()
16071 {
16072 dlopen ();
16073   ;
16074   return 0;
16075 }
16076 _ACEOF
16077 rm -f conftest.$ac_objext conftest$ac_exeext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16079   (eval $ac_link) 2>conftest.er1
16080   ac_status=$?
16081   grep -v '^ *+' conftest.er1 >conftest.err
16082   rm -f conftest.er1
16083   cat conftest.err >&5
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); } &&
16086          { ac_try='test -z "$ac_c_werror_flag"
16087                          || test ! -s conftest.err'
16088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089   (eval $ac_try) 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); }; } &&
16093          { ac_try='test -s conftest$ac_exeext'
16094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095   (eval $ac_try) 2>&5
16096   ac_status=$?
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); }; }; then
16099   ac_cv_search_dlopen="-l$ac_lib"
16100 break
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105 fi
16106 rm -f conftest.err conftest.$ac_objext \
16107       conftest$ac_exeext conftest.$ac_ext
16108   done
16109 fi
16110 LIBS=$ac_func_search_save_LIBS
16111 fi
16112 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16113 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16114 if test "$ac_cv_search_dlopen" != no; then
16115   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16116
16117 fi
16118
16119 fi
16120
16121 # ------------------------------------------
16122 # Where to place working dir
16123 # ------------------------------------------
16124 working_dir=`eval echo ${prefix}/var/bacula/working`
16125
16126 # Check whether --with-working-dir or --without-working-dir was given.
16127 if test "${with_working_dir+set}" = set; then
16128   withval="$with_working_dir"
16129
16130        if test "x$withval" != "xno" ; then
16131               working_dir=$withval
16132        fi
16133
16134
16135 fi;
16136
16137
16138
16139
16140 # ------------------------------------------
16141 # Where to place scriptdir (script files)
16142 # ------------------------------------------
16143 scriptdir=`eval echo ${sysconfdir}`
16144
16145 # Check whether --with-scriptdir or --without-scriptdir was given.
16146 if test "${with_scriptdir+set}" = set; then
16147   withval="$with_scriptdir"
16148
16149        if test "x$withval" != "xno" ; then
16150               scriptdir=$withval
16151        fi
16152
16153
16154 fi;
16155
16156
16157
16158
16159 # ------------------------------------------
16160 # Where to send dump email
16161 # ------------------------------------------
16162 dump_email=root@localhost
16163
16164 # Check whether --with-dump-email or --without-dump-email was given.
16165 if test "${with_dump_email+set}" = set; then
16166   withval="$with_dump_email"
16167
16168        if test "x$withval" != "xno" ; then
16169               dump_email=$withval
16170        fi
16171
16172
16173 fi;
16174
16175
16176
16177 # ------------------------------------------
16178 # Where to send job email
16179 # ------------------------------------------
16180 job_email=root@localhost
16181
16182 # Check whether --with-job-email or --without-job-email was given.
16183 if test "${with_job_email+set}" = set; then
16184   withval="$with_job_email"
16185
16186        if test "x$withval" != "xno" ; then
16187               job_email=$withval
16188        fi
16189
16190
16191 fi;
16192
16193
16194
16195 # ------------------------------------------
16196 # Where to find smtp host
16197 # ------------------------------------------
16198 smtp_host=localhost
16199
16200 # Check whether --with-smtp_host or --without-smtp_host was given.
16201 if test "${with_smtp_host+set}" = set; then
16202   withval="$with_smtp_host"
16203
16204        if test "x$withval" != "xno" ; then
16205               smtp_host=$withval
16206        fi
16207
16208
16209 fi;
16210
16211
16212
16213
16214 # ------------------------------------
16215 # Where to place pid files
16216 # ------------------------------------
16217 piddir=/var/run
16218
16219 # Check whether --with-pid-dir or --without-pid-dir was given.
16220 if test "${with_pid_dir+set}" = set; then
16221   withval="$with_pid_dir"
16222
16223         if test "x$withval" != "xno" ; then
16224             piddir=$withval
16225         fi
16226
16227
16228 fi;
16229
16230 cat >>confdefs.h <<_ACEOF
16231 #define _PATH_BACULA_PIDDIR "$piddir"
16232 _ACEOF
16233
16234
16235
16236
16237 # ------------------------------------
16238 # Where to place subsys "lock file"
16239 # ------------------------------------
16240 subsysdir=/var/run/subsys
16241
16242 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16243 if test "${with_subsys_dir+set}" = set; then
16244   withval="$with_subsys_dir"
16245
16246         if test "x$withval" != "xno" ; then
16247             subsysdir=$withval
16248         fi
16249
16250
16251 fi;
16252
16253
16254
16255
16256
16257 # ------------------------------------
16258 # Where to start assigning ports
16259 # ------------------------------------
16260 baseport=9101
16261
16262 # Check whether --with-baseport or --without-baseport was given.
16263 if test "${with_baseport+set}" = set; then
16264   withval="$with_baseport"
16265
16266         if test "x$withval" != "xno" ; then
16267              baseport=$withval
16268         fi
16269
16270
16271 fi;
16272
16273
16274 dir_port=`expr $baseport`
16275 fd_port=`expr $baseport + 1`
16276 sd_port=`expr $fd_port + 1`
16277
16278
16279
16280
16281
16282
16283 # ------------------------------------------
16284 # Generate passwords
16285 # ------------------------------------------
16286 dir_password=
16287
16288 # Check whether --with-dir-password or --without-dir-password was given.
16289 if test "${with_dir_password+set}" = set; then
16290   withval="$with_dir_password"
16291
16292        if test "x$withval" != "xno" ; then
16293            dir_password=$withval
16294        fi
16295
16296
16297 fi;
16298
16299 if test "x$dir_password" = "x" ; then
16300    if test "x$OPENSSL" = "xnone" ; then
16301       key=`autoconf/randpass 33`
16302    else
16303       key=`openssl rand -base64 33`
16304    fi
16305    dir_password=$key
16306 fi
16307
16308 fd_password=
16309
16310 # Check whether --with-fd-password or --without-fd-password was given.
16311 if test "${with_fd_password+set}" = set; then
16312   withval="$with_fd_password"
16313
16314        if test "x$withval" != "xno" ; then
16315            fd_password=$withval
16316        fi
16317
16318
16319 fi;
16320
16321 if test "x$fd_password" = "x" ; then
16322    if test "x$OPENSSL" = "xnone" ; then
16323       key=`autoconf/randpass 37`
16324    else
16325       key=`openssl rand -base64 33`
16326    fi
16327    fd_password=$key
16328 fi
16329
16330 sd_password=
16331
16332 # Check whether --with-sd-password or --without-sd-password was given.
16333 if test "${with_sd_password+set}" = set; then
16334   withval="$with_sd_password"
16335
16336        if test "x$withval" != "xno" ; then
16337            sd_password=$withval
16338        fi
16339
16340
16341 fi;
16342
16343 if test "x$sd_password" = "x" ; then
16344    if test "x$OPENSSL" = "xnone" ; then
16345       key=`autoconf/randpass 41`
16346    else
16347       key=`openssl rand -base64 33`
16348    fi
16349    sd_password=$key
16350 fi
16351
16352 mon_dir_password=
16353
16354 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16355 if test "${with_mon_dir_password+set}" = set; then
16356   withval="$with_mon_dir_password"
16357
16358        if test "x$withval" != "xno" ; then
16359            mon_dir_password=$withval
16360        fi
16361
16362
16363 fi;
16364
16365 if test "x$mon_dir_password" = "x" ; then
16366    if test "x$OPENSSL" = "xnone" ; then
16367       key=`autoconf/randpass 33`
16368    else
16369       key=`openssl rand -base64 33`
16370    fi
16371    mon_dir_password=$key
16372 fi
16373
16374 mon_fd_password=
16375
16376 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16377 if test "${with_mon_fd_password+set}" = set; then
16378   withval="$with_mon_fd_password"
16379
16380        if test "x$withval" != "xno" ; then
16381            mon_fd_password=$withval
16382        fi
16383
16384
16385 fi;
16386
16387 if test "x$mon_fd_password" = "x" ; then
16388    if test "x$OPENSSL" = "xnone" ; then
16389       key=`autoconf/randpass 37`
16390    else
16391       key=`openssl rand -base64 33`
16392    fi
16393    mon_fd_password=$key
16394 fi
16395
16396 mon_sd_password=
16397
16398 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16399 if test "${with_mon_sd_password+set}" = set; then
16400   withval="$with_mon_sd_password"
16401
16402        if test "x$withval" != "xno" ; then
16403            mon_sd_password=$withval
16404        fi
16405
16406
16407 fi;
16408
16409 if test "x$mon_sd_password" = "x" ; then
16410    if test "x$OPENSSL" = "xnone" ; then
16411       key=`autoconf/randpass 41`
16412    else
16413       key=`openssl rand -base64 33`
16414    fi
16415    mon_sd_password=$key
16416 fi
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426 #
16427 # Handle users and groups for each daemon
16428 #
16429 dir_user=
16430
16431 # Check whether --with-dir_user or --without-dir_user was given.
16432 if test "${with_dir_user+set}" = set; then
16433   withval="$with_dir_user"
16434
16435         if test "x$withval" != "x" ; then
16436              dir_user=$withval
16437         fi
16438
16439
16440 fi;
16441
16442 dir_group=
16443
16444 # Check whether --with-dir_group or --without-dir_group was given.
16445 if test "${with_dir_group+set}" = set; then
16446   withval="$with_dir_group"
16447
16448         if test "x$withval" != "x" ; then
16449              dir_group=$withval
16450         fi
16451
16452
16453 fi;
16454
16455 sd_user=
16456
16457 # Check whether --with-sd_user or --without-sd_user was given.
16458 if test "${with_sd_user+set}" = set; then
16459   withval="$with_sd_user"
16460
16461         if test "x$withval" != "x" ; then
16462              sd_user=$withval
16463         fi
16464
16465
16466 fi;
16467
16468 sd_group=
16469
16470 # Check whether --with-sd_group or --without-sd_group was given.
16471 if test "${with_sd_group+set}" = set; then
16472   withval="$with_sd_group"
16473
16474         if test "x$withval" != "x" ; then
16475              sd_group=$withval
16476         fi
16477
16478
16479 fi;
16480
16481 fd_user=
16482
16483 # Check whether --with-fd_user or --without-fd_user was given.
16484 if test "${with_fd_user+set}" = set; then
16485   withval="$with_fd_user"
16486
16487         if test "x$withval" != "x" ; then
16488              fd_user=$withval
16489         fi
16490
16491
16492 fi;
16493
16494 fd_group=
16495
16496 # Check whether --with-fd_group or --without-fd_group was given.
16497 if test "${with_fd_group+set}" = set; then
16498   withval="$with_fd_group"
16499
16500         if test "x$withval" != "x" ; then
16501              fd_group=$withval
16502         fi
16503
16504
16505 fi;
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517 #
16518 # allow setting default executable permissions
16519 #
16520 SBINPERM=0754
16521
16522 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16523 if test "${with_sbin_perm+set}" = set; then
16524   withval="$with_sbin_perm"
16525
16526         if test "x$withval" != "x" ; then
16527             SBINPERM=$withval
16528         fi
16529
16530
16531 fi;
16532
16533
16534
16535 # ------------------------------------------------
16536 # Bacula check for various SQL database engines
16537 # ------------------------------------------------
16538
16539 db_found=no
16540 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16541 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16542
16543 # Check whether --with-postgresql or --without-postgresql was given.
16544 if test "${with_postgresql+set}" = set; then
16545   withval="$with_postgresql"
16546
16547   if test "$withval" != "no"; then
16548       if test "$db_found" = "yes"; then
16549           echo "$as_me:$LINENO: result: error" >&5
16550 echo "${ECHO_T}error" >&6
16551           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16552 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16553    { (exit 1); exit 1; }; };
16554       fi
16555       if test "$withval" = "yes"; then
16556           PG_CONFIG=`which pg_config`
16557           if test -n "$PG_CONFIG";then
16558               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16559               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16560               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16561           elif test -f /usr/local/include/libpq-fe.h; then
16562               POSTGRESQL_INCDIR=/usr/local/include
16563               POSTGRESQL_LIBDIR=/usr/local/lib
16564               POSTGRESQL_BINDIR=/usr/local/bin
16565           elif test -f /usr/include/libpq-fe.h; then
16566               POSTGRESQL_INCDIR=/usr/include
16567               POSTGRESQL_LIBDIR=/usr/lib
16568               POSTGRESQL_BINDIR=/usr/bin
16569           elif test -f /usr/include/pgsql/libpq-fe.h; then
16570               POSTGRESQL_INCDIR=/usr/include/pgsql
16571               POSTGRESQL_LIBDIR=/usr/lib/pgsql
16572               POSTGRESQL_BINDIR=/usr/bin
16573           elif test -f /usr/include/postgresql/libpq-fe.h; then
16574               POSTGRESQL_INCDIR=/usr/include/postgresql
16575               POSTGRESQL_LIBDIR=/usr/lib/postgresql
16576               POSTGRESQL_BINDIR=/usr/bin
16577           else
16578               echo "$as_me:$LINENO: result: no" >&5
16579 echo "${ECHO_T}no" >&6
16580               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16581 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16582    { (exit 1); exit 1; }; }
16583           fi
16584       elif test -f $withval/include/libpq-fe.h; then
16585           POSTGRESQL_INCDIR=$withval/include
16586           POSTGRESQL_LIBDIR=$withval/lib
16587           POSTGRESQL_BINDIR=$withval/bin
16588       elif test -f $withval/include/postgresql/libpq-fe.h; then
16589           POSTGRESQL_INCDIR=$withval/include/postgresql
16590           POSTGRESQL_LIBDIR=$withval/lib
16591           POSTGRESQL_BINDIR=$withval/bin
16592       else
16593           echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16595           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16596 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16597    { (exit 1); exit 1; }; }
16598       fi
16599       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16600       echo "$as_me:$LINENO: checking for crypt" >&5
16601 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16602 if test "${ac_cv_func_crypt+set}" = set; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h.  */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h.  */
16611 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16613 #define crypt innocuous_crypt
16614
16615 /* System header to define __stub macros and hopefully few prototypes,
16616     which can conflict with char crypt (); below.
16617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618     <limits.h> exists even on freestanding compilers.  */
16619
16620 #ifdef __STDC__
16621 # include <limits.h>
16622 #else
16623 # include <assert.h>
16624 #endif
16625
16626 #undef crypt
16627
16628 /* Override any gcc2 internal prototype to avoid an error.  */
16629 #ifdef __cplusplus
16630 extern "C"
16631 {
16632 #endif
16633 /* We use char because int might match the return type of a gcc2
16634    builtin and then its argument prototype would still apply.  */
16635 char crypt ();
16636 /* The GNU C library defines this for functions which it implements
16637     to always fail with ENOSYS.  Some functions are actually named
16638     something starting with __ and the normal name is an alias.  */
16639 #if defined (__stub_crypt) || defined (__stub___crypt)
16640 choke me
16641 #else
16642 char (*f) () = crypt;
16643 #endif
16644 #ifdef __cplusplus
16645 }
16646 #endif
16647
16648 int
16649 main ()
16650 {
16651 return f != crypt;
16652   ;
16653   return 0;
16654 }
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658   (eval $ac_link) 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_c_werror_flag"
16666                          || test ! -s conftest.err'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; } &&
16672          { ac_try='test -s conftest$ac_exeext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_cv_func_crypt=yes
16679 else
16680   echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 ac_cv_func_crypt=no
16684 fi
16685 rm -f conftest.err conftest.$ac_objext \
16686       conftest$ac_exeext conftest.$ac_ext
16687 fi
16688 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16689 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16690 if test $ac_cv_func_crypt = yes; then
16691   :
16692 else
16693   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16694 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16695 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16696   echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698   ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-lcrypt  $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706
16707 /* Override any gcc2 internal prototype to avoid an error.  */
16708 #ifdef __cplusplus
16709 extern "C"
16710 #endif
16711 /* We use char because int might match the return type of a gcc2
16712    builtin and then its argument prototype would still apply.  */
16713 char crypt ();
16714 int
16715 main ()
16716 {
16717 crypt ();
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16724   (eval $ac_link) 2>conftest.er1
16725   ac_status=$?
16726   grep -v '^ *+' conftest.er1 >conftest.err
16727   rm -f conftest.er1
16728   cat conftest.err >&5
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); } &&
16731          { ac_try='test -z "$ac_c_werror_flag"
16732                          || test ! -s conftest.err'
16733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734   (eval $ac_try) 2>&5
16735   ac_status=$?
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); }; } &&
16738          { ac_try='test -s conftest$ac_exeext'
16739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740   (eval $ac_try) 2>&5
16741   ac_status=$?
16742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743   (exit $ac_status); }; }; then
16744   ac_cv_lib_crypt_crypt=yes
16745 else
16746   echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 ac_cv_lib_crypt_crypt=no
16750 fi
16751 rm -f conftest.err conftest.$ac_objext \
16752       conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16754 fi
16755 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16756 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16757 if test $ac_cv_lib_crypt_crypt = yes; then
16758   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16759 fi
16760
16761 fi
16762
16763       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16764       SQL_LFLAGS=$POSTGRESQL_LFLAGS
16765       SQL_BINDIR=$POSTGRESQL_BINDIR
16766       cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_POSTGRESQL 1
16768 _ACEOF
16769
16770       echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6
16772       db_found=yes
16773       support_postgresql=yes
16774       db_name=PostgreSQL
16775       DB_NAME=postgresql
16776   else
16777       echo "$as_me:$LINENO: result: no" >&5
16778 echo "${ECHO_T}no" >&6
16779   fi
16780
16781 else
16782
16783   echo "$as_me:$LINENO: result: no" >&5
16784 echo "${ECHO_T}no" >&6
16785
16786 fi;
16787
16788
16789
16790
16791
16792
16793
16794 db_found=no
16795 echo "$as_me:$LINENO: checking for MySQL support" >&5
16796 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16797
16798 # Check whether --with-mysql or --without-mysql was given.
16799 if test "${with_mysql+set}" = set; then
16800   withval="$with_mysql"
16801
16802   if test "$withval" != "no"; then
16803         if test "$withval" = "yes"; then
16804                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16805                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16806                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16807                         MYSQL_BINDIR=/usr/local/mysql/bin
16808                 elif test -f /usr/include/mysql/mysql.h; then
16809                         MYSQL_INCDIR=/usr/include/mysql
16810                         MYSQL_LIBDIR=/usr/lib/mysql
16811                         MYSQL_BINDIR=/usr/bin
16812                 elif test -f /usr/include/mysql.h; then
16813                         MYSQL_INCDIR=/usr/include
16814                         MYSQL_LIBDIR=/usr/lib
16815                         MYSQL_BINDIR=/usr/bin
16816                 elif test -f /usr/local/include/mysql/mysql.h; then
16817                         MYSQL_INCDIR=/usr/local/include/mysql
16818                         MYSQL_LIBDIR=/usr/local/lib/mysql
16819                         MYSQL_BINDIR=/usr/local/bin
16820                 elif test -f /usr/local/include/mysql.h; then
16821                         MYSQL_INCDIR=/usr/local/include
16822                         MYSQL_LIBDIR=/usr/local/lib
16823                         MYSQL_BINDIR=/usr/local/bin
16824                 else
16825                    echo "$as_me:$LINENO: result: no" >&5
16826 echo "${ECHO_T}no" >&6
16827                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16828 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16829    { (exit 1); exit 1; }; }
16830                 fi
16831         else
16832                 if test -f $withval/include/mysql/mysql.h; then
16833                         MYSQL_INCDIR=$withval/include/mysql
16834                         MYSQL_LIBDIR=$withval/lib/mysql
16835                         MYSQL_BINDIR=$withval/bin
16836                 elif test -f $withval/include/mysql.h; then
16837                         MYSQL_INCDIR=$withval/include
16838                         MYSQL_LIBDIR=$withval/lib
16839                         MYSQL_BINDIR=$withval/bin
16840                 else
16841                    echo "$as_me:$LINENO: result: no" >&5
16842 echo "${ECHO_T}no" >&6
16843                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16844 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16845    { (exit 1); exit 1; }; }
16846                 fi
16847         fi
16848     SQL_INCLUDE=-I$MYSQL_INCDIR
16849     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
16850        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16851        cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_THREAD_SAFE_MYSQL 1
16853 _ACEOF
16854
16855     else
16856        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16857     fi
16858     SQL_BINDIR=$MYSQL_BINDIR
16859
16860     cat >>confdefs.h <<\_ACEOF
16861 #define HAVE_MYSQL 1
16862 _ACEOF
16863
16864     echo "$as_me:$LINENO: result: yes" >&5
16865 echo "${ECHO_T}yes" >&6
16866     db_found=yes
16867     support_mysql=yes
16868     db_name=MySQL
16869     DB_NAME=mysql
16870
16871   else
16872         echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6
16874   fi
16875
16876
16877 fi;
16878
16879
16880 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16881 if test "${with_embedded_mysql+set}" = set; then
16882   withval="$with_embedded_mysql"
16883
16884   if test "$withval" != "no"; then
16885         if test "$withval" = "yes"; then
16886                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16887                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16888                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16889                         MYSQL_BINDIR=/usr/local/mysql/bin
16890                 elif test -f /usr/include/mysql/mysql.h; then
16891                         MYSQL_INCDIR=/usr/include/mysql
16892                         MYSQL_LIBDIR=/usr/lib/mysql
16893                         MYSQL_BINDIR=/usr/bin
16894                 elif test -f /usr/include/mysql.h; then
16895                         MYSQL_INCDIR=/usr/include
16896                         MYSQL_LIBDIR=/usr/lib
16897                         MYSQL_BINDIR=/usr/bin
16898                 elif test -f /usr/local/include/mysql/mysql.h; then
16899                         MYSQL_INCDIR=/usr/local/include/mysql
16900                         MYSQL_LIBDIR=/usr/local/lib/mysql
16901                         MYSQL_BINDIR=/usr/local/bin
16902                 elif test -f /usr/local/include/mysql.h; then
16903                         MYSQL_INCDIR=/usr/local/include
16904                         MYSQL_LIBDIR=/usr/local/lib
16905                         MYSQL_BINDIR=/usr/local/bin
16906                 else
16907                    echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6
16909                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16910 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16911    { (exit 1); exit 1; }; }
16912                 fi
16913         else
16914                 if test -f $withval/include/mysql/mysql.h; then
16915                         MYSQL_INCDIR=$withval/include/mysql
16916                         MYSQL_LIBDIR=$withval/lib/mysql
16917                         MYSQL_BINDIR=$withval/bin
16918                 elif test -f $withval/include/mysql.h; then
16919                         MYSQL_INCDIR=$withval/include
16920                         MYSQL_LIBDIR=$withval/lib
16921                         MYSQL_BINDIR=$withval/bin
16922                 else
16923                    echo "$as_me:$LINENO: result: no" >&5
16924 echo "${ECHO_T}no" >&6
16925                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16926 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16927    { (exit 1); exit 1; }; }
16928                 fi
16929         fi
16930     SQL_INCLUDE=-I$MYSQL_INCDIR
16931     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
16932     SQL_BINDIR=$MYSQL_BINDIR
16933
16934     cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_MYSQL 1
16936 _ACEOF
16937
16938     cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_EMBEDDED_MYSQL 1
16940 _ACEOF
16941
16942     echo "$as_me:$LINENO: result: yes" >&5
16943 echo "${ECHO_T}yes" >&6
16944     db_found=yes
16945     support_mysql=yes
16946     db_name=MySQL
16947     DB_NAME=mysql
16948
16949   else
16950         echo "$as_me:$LINENO: result: no" >&5
16951 echo "${ECHO_T}no" >&6
16952   fi
16953
16954
16955 fi;
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965 db_found=no
16966 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
16967 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
16968
16969 # Check whether --with-sqlite3 or --without-sqlite3 was given.
16970 if test "${with_sqlite3+set}" = set; then
16971   withval="$with_sqlite3"
16972
16973   if test "$withval" != "no"; then
16974      if test "$withval" = "yes"; then
16975         if test -f /usr/local/include/sqlite3.h; then
16976            SQLITE_INCDIR=/usr/local/include
16977            SQLITE_LIBDIR=/usr/local/lib
16978            SQLITE_BINDIR=/usr/local/bin
16979         elif test -f /usr/include/sqlite3.h; then
16980            SQLITE_INCDIR=/usr/include
16981            SQLITE_LIBDIR=/usr/lib
16982            SQLITE_BINDIR=/usr/bin
16983         elif test -f $prefix/include/sqlite3.h; then
16984            SQLITE_INCDIR=$prefix/include
16985            SQLITE_LIBDIR=$prefix/lib
16986            SQLITE_BINDIR=$prefix/bin
16987         else
16988            echo "$as_me:$LINENO: result: no" >&5
16989 echo "${ECHO_T}no" >&6
16990            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
16991 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
16992    { (exit 1); exit 1; }; }
16993         fi
16994      else
16995         if test -f $withval/sqlite3.h; then
16996            SQLITE_INCDIR=$withval
16997            SQLITE_LIBDIR=$withval
16998            SQLITE_BINDIR=$withval
16999         elif test -f $withval/include/sqlite3.h; then
17000            SQLITE_INCDIR=$withval/include
17001            SQLITE_LIBDIR=$withval/lib
17002            SQLITE_BINDIR=$withval/bin
17003         else
17004            echo "$as_me:$LINENO: result: no" >&5
17005 echo "${ECHO_T}no" >&6
17006            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17007 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17008    { (exit 1); exit 1; }; }
17009         fi
17010      fi
17011      SQL_INCLUDE=-I$SQLITE_INCDIR
17012      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17013      SQL_BINDIR=$SQLITE_BINDIR
17014
17015      cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_SQLITE3 1
17017 _ACEOF
17018
17019      echo "$as_me:$LINENO: result: yes" >&5
17020 echo "${ECHO_T}yes" >&6
17021      db_found=yes
17022      support_sqlite3=yes
17023      db_name=SQLite3
17024      DB_NAME=sqlite3
17025
17026   else
17027      echo "$as_me:$LINENO: result: no" >&5
17028 echo "${ECHO_T}no" >&6
17029   fi
17030
17031 else
17032
17033   echo "$as_me:$LINENO: result: no" >&5
17034 echo "${ECHO_T}no" >&6
17035
17036 fi;
17037
17038
17039
17040
17041
17042
17043
17044 db_found=no
17045 echo "$as_me:$LINENO: checking for SQLite support" >&5
17046 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17047
17048 # Check whether --with-sqlite or --without-sqlite was given.
17049 if test "${with_sqlite+set}" = set; then
17050   withval="$with_sqlite"
17051
17052   if test "$withval" != "no"; then
17053      if test "$withval" = "yes"; then
17054         if test -f /usr/local/include/sqlite.h; then
17055            SQLITE_INCDIR=/usr/local/include
17056            SQLITE_LIBDIR=/usr/local/lib
17057            SQLITE_BINDIR=/usr/local/bin
17058         elif test -f /usr/include/sqlite.h; then
17059            SQLITE_INCDIR=/usr/include
17060            SQLITE_LIBDIR=/usr/lib
17061            SQLITE_BINDIR=/usr/bin
17062         elif test -f $prefix/include/sqlite.h; then
17063            SQLITE_INCDIR=$prefix/include
17064            SQLITE_LIBDIR=$prefix/lib
17065            SQLITE_BINDIR=$prefix/bin
17066         else
17067            echo "$as_me:$LINENO: result: no" >&5
17068 echo "${ECHO_T}no" >&6
17069            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17070 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17071    { (exit 1); exit 1; }; }
17072         fi
17073      else
17074         if test -f $withval/sqlite.h; then
17075            SQLITE_INCDIR=$withval
17076            SQLITE_LIBDIR=$withval
17077            SQLITE_BINDIR=$withval
17078         elif test -f $withval/include/sqlite.h; then
17079            SQLITE_INCDIR=$withval/include
17080            SQLITE_LIBDIR=$withval/lib
17081            SQLITE_BINDIR=$withval/bin
17082         else
17083            echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6
17085            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17086 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17087    { (exit 1); exit 1; }; }
17088         fi
17089      fi
17090      SQL_INCLUDE=-I$SQLITE_INCDIR
17091      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17092      SQL_BINDIR=$SQLITE_BINDIR
17093
17094      cat >>confdefs.h <<\_ACEOF
17095 #define HAVE_SQLITE 1
17096 _ACEOF
17097
17098      echo "$as_me:$LINENO: result: yes" >&5
17099 echo "${ECHO_T}yes" >&6
17100      db_found=yes
17101      support_sqlite=yes
17102      db_name=SQLite
17103      DB_NAME=sqlite
17104
17105   else
17106      echo "$as_me:$LINENO: result: no" >&5
17107 echo "${ECHO_T}no" >&6
17108   fi
17109
17110 else
17111
17112   echo "$as_me:$LINENO: result: no" >&5
17113 echo "${ECHO_T}no" >&6
17114
17115 fi;
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125 cat >>confdefs.h <<\_ACEOF
17126 #define PROTOTYPES 1
17127 _ACEOF
17128
17129
17130 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17131     if test -z "$CCOPTS"; then
17132         CCOPTS='-g -O2 -Wall'
17133     fi
17134     CFLAGS="$CCOPTS"
17135 fi
17136
17137
17138
17139
17140 largefile_support="no"
17141
17142    # Check whether --enable-largefile or --disable-largefile was given.
17143 if test "${enable_largefile+set}" = set; then
17144   enableval="$enable_largefile"
17145
17146 fi;
17147    if test "$enable_largefile" != no; then
17148      if test -n "$ac_tool_prefix"; then
17149   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17150 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17151 echo "$as_me:$LINENO: checking for $ac_word" >&5
17152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17153 if test "${ac_cv_prog_GETCONF+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156   if test -n "$GETCONF"; then
17157   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17158 else
17159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160 for as_dir in $PATH
17161 do
17162   IFS=$as_save_IFS
17163   test -z "$as_dir" && as_dir=.
17164   for ac_exec_ext in '' $ac_executable_extensions; do
17165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17168     break 2
17169   fi
17170 done
17171 done
17172
17173 fi
17174 fi
17175 GETCONF=$ac_cv_prog_GETCONF
17176 if test -n "$GETCONF"; then
17177   echo "$as_me:$LINENO: result: $GETCONF" >&5
17178 echo "${ECHO_T}$GETCONF" >&6
17179 else
17180   echo "$as_me:$LINENO: result: no" >&5
17181 echo "${ECHO_T}no" >&6
17182 fi
17183
17184 fi
17185 if test -z "$ac_cv_prog_GETCONF"; then
17186   ac_ct_GETCONF=$GETCONF
17187   # Extract the first word of "getconf", so it can be a program name with args.
17188 set dummy getconf; ac_word=$2
17189 echo "$as_me:$LINENO: checking for $ac_word" >&5
17190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17191 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17192   echo $ECHO_N "(cached) $ECHO_C" >&6
17193 else
17194   if test -n "$ac_ct_GETCONF"; then
17195   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17196 else
17197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $PATH
17199 do
17200   IFS=$as_save_IFS
17201   test -z "$as_dir" && as_dir=.
17202   for ac_exec_ext in '' $ac_executable_extensions; do
17203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17204     ac_cv_prog_ac_ct_GETCONF="getconf"
17205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17206     break 2
17207   fi
17208 done
17209 done
17210
17211 fi
17212 fi
17213 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17214 if test -n "$ac_ct_GETCONF"; then
17215   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17216 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17217 else
17218   echo "$as_me:$LINENO: result: no" >&5
17219 echo "${ECHO_T}no" >&6
17220 fi
17221
17222   GETCONF=$ac_ct_GETCONF
17223 else
17224   GETCONF="$ac_cv_prog_GETCONF"
17225 fi
17226
17227      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17228 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17229 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17230   echo $ECHO_N "(cached) $ECHO_C" >&6
17231 else
17232   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17233         ac_cv_sys_largefile_CFLAGS=no
17234         case "$host_os" in
17235            # IRIX 6.2 and later require cc -n32.
17236            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17237              if test "$GCC" != yes; then
17238                ac_cv_sys_largefile_CFLAGS=-n32
17239              fi
17240              ac_save_CC="$CC"
17241              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17242              cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248
17249 int
17250 main ()
17251 {
17252
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259   (eval $ac_link) 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -z "$ac_c_werror_flag"
17267                          || test ! -s conftest.err'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; } &&
17273          { ac_try='test -s conftest$ac_exeext'
17274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275   (eval $ac_try) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; }; then
17279   :
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 ac_cv_sys_largefile_CFLAGS=no
17285 fi
17286 rm -f conftest.err conftest.$ac_objext \
17287       conftest$ac_exeext conftest.$ac_ext
17288              CC="$ac_save_CC"
17289            esac
17290       }
17291 fi
17292 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17293 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17294      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17295 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17296 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17300         ac_cv_sys_largefile_LDFLAGS=no
17301
17302       }
17303 fi
17304 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17305 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17306      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17307 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17308 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17312         ac_cv_sys_largefile_LIBS=no
17313
17314       }
17315 fi
17316 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17317 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17318
17319      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17320        case "$ac_flag" in
17321        no) ;;
17322        -D_FILE_OFFSET_BITS=*) ;;
17323        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17324        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17325        -D?* | -I?*)
17326          case "$ac_flag" in
17327    no) ;;
17328    ?*)
17329      case "$CPPFLAGS" in
17330      '') CPPFLAGS="$ac_flag" ;;
17331      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17332      esac ;;
17333    esac ;;
17334        *)
17335          case "$ac_flag" in
17336    no) ;;
17337    ?*)
17338      case "$CFLAGS" in
17339      '') CFLAGS="$ac_flag" ;;
17340      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17341      esac ;;
17342    esac ;;
17343        esac
17344      done
17345      case "$ac_cv_sys_largefile_LDFLAGS" in
17346    no) ;;
17347    ?*)
17348      case "$LDFLAGS" in
17349      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17350      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17351      esac ;;
17352    esac
17353      case "$ac_cv_sys_largefile_LIBS" in
17354    no) ;;
17355    ?*)
17356      case "$LIBS" in
17357      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17358      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17359      esac ;;
17360    esac
17361      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17362 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17363 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   ac_cv_sys_file_offset_bits=no
17367       ac_cv_sys_file_offset_bits=64
17368       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17369         case "$ac_flag" in
17370         -D_FILE_OFFSET_BITS)
17371           ac_cv_sys_file_offset_bits=1 ;;
17372         -D_FILE_OFFSET_BITS=*)
17373           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17374         esac
17375       done
17376
17377 fi
17378 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17379 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17380    if test "$ac_cv_sys_file_offset_bits" != no; then
17381
17382 cat >>confdefs.h <<_ACEOF
17383 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17384 _ACEOF
17385
17386    fi
17387      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17388 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17389 if test "${ac_cv_sys_largefile_source+set}" = set; then
17390   echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392   ac_cv_sys_largefile_source=no
17393       ac_cv_sys_largefile_source=1
17394       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17395         case "$ac_flag" in
17396         -D_LARGEFILE_SOURCE)
17397           ac_cv_sys_largefile_source=1 ;;
17398         -D_LARGEFILE_SOURCE=*)
17399           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17400         esac
17401       done
17402
17403 fi
17404 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17405 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17406    if test "$ac_cv_sys_largefile_source" != no; then
17407
17408 cat >>confdefs.h <<_ACEOF
17409 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17410 _ACEOF
17411
17412    fi
17413      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17414 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17415 if test "${ac_cv_sys_large_files+set}" = set; then
17416   echo $ECHO_N "(cached) $ECHO_C" >&6
17417 else
17418   ac_cv_sys_large_files=no
17419       ac_cv_sys_large_files=1
17420       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17421         case "$ac_flag" in
17422         -D_LARGE_FILES)
17423           ac_cv_sys_large_files=1 ;;
17424         -D_LARGE_FILES=*)
17425           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17426         esac
17427       done
17428
17429 fi
17430 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17431 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17432    if test "$ac_cv_sys_large_files" != no; then
17433
17434 cat >>confdefs.h <<_ACEOF
17435 #define _LARGE_FILES $ac_cv_sys_large_files
17436 _ACEOF
17437
17438    fi
17439    fi
17440
17441
17442
17443 echo "$as_me:$LINENO: checking for X" >&5
17444 echo $ECHO_N "checking for X... $ECHO_C" >&6
17445
17446
17447 # Check whether --with-x or --without-x was given.
17448 if test "${with_x+set}" = set; then
17449   withval="$with_x"
17450
17451 fi;
17452 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17453 if test "x$with_x" = xno; then
17454   # The user explicitly disabled X.
17455   have_x=disabled
17456 else
17457   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17458     # Both variables are already set.
17459     have_x=yes
17460   else
17461     if test "${ac_cv_have_x+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   # One or both of the vars are not set, and there is no cached value.
17465 ac_x_includes=no ac_x_libraries=no
17466 rm -fr conftest.dir
17467 if mkdir conftest.dir; then
17468   cd conftest.dir
17469   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17470   cat >Imakefile <<'_ACEOF'
17471 acfindx:
17472         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17473 _ACEOF
17474   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17475     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17476     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17477     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17478     for ac_extension in a so sl; do
17479       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17480          test -f $ac_im_libdir/libX11.$ac_extension; then
17481         ac_im_usrlibdir=$ac_im_libdir; break
17482       fi
17483     done
17484     # Screen out bogus values from the imake configuration.  They are
17485     # bogus both because they are the default anyway, and because
17486     # using them would break gcc on systems where it needs fixed includes.
17487     case $ac_im_incroot in
17488         /usr/include) ;;
17489         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17490     esac
17491     case $ac_im_usrlibdir in
17492         /usr/lib | /lib) ;;
17493         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17494     esac
17495   fi
17496   cd ..
17497   rm -fr conftest.dir
17498 fi
17499
17500 # Standard set of common directories for X headers.
17501 # Check X11 before X11Rn because it is often a symlink to the current release.
17502 ac_x_header_dirs='
17503 /usr/X11/include
17504 /usr/X11R6/include
17505 /usr/X11R5/include
17506 /usr/X11R4/include
17507
17508 /usr/include/X11
17509 /usr/include/X11R6
17510 /usr/include/X11R5
17511 /usr/include/X11R4
17512
17513 /usr/local/X11/include
17514 /usr/local/X11R6/include
17515 /usr/local/X11R5/include
17516 /usr/local/X11R4/include
17517
17518 /usr/local/include/X11
17519 /usr/local/include/X11R6
17520 /usr/local/include/X11R5
17521 /usr/local/include/X11R4
17522
17523 /usr/X386/include
17524 /usr/x386/include
17525 /usr/XFree86/include/X11
17526
17527 /usr/include
17528 /usr/local/include
17529 /usr/unsupported/include
17530 /usr/athena/include
17531 /usr/local/x11r5/include
17532 /usr/lpp/Xamples/include
17533
17534 /usr/openwin/include
17535 /usr/openwin/share/include'
17536
17537 if test "$ac_x_includes" = no; then
17538   # Guess where to find include files, by looking for Xlib.h.
17539   # First, try using that file with no special directory specified.
17540   cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546 #include <X11/Xlib.h>
17547 _ACEOF
17548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17549   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17550   ac_status=$?
17551   grep -v '^ *+' conftest.er1 >conftest.err
17552   rm -f conftest.er1
17553   cat conftest.err >&5
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); } >/dev/null; then
17556   if test -s conftest.err; then
17557     ac_cpp_err=$ac_c_preproc_warn_flag
17558     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17559   else
17560     ac_cpp_err=
17561   fi
17562 else
17563   ac_cpp_err=yes
17564 fi
17565 if test -z "$ac_cpp_err"; then
17566   # We can compile using X headers with no special include directory.
17567 ac_x_includes=
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572   for ac_dir in $ac_x_header_dirs; do
17573   if test -r "$ac_dir/X11/Xlib.h"; then
17574     ac_x_includes=$ac_dir
17575     break
17576   fi
17577 done
17578 fi
17579 rm -f conftest.err conftest.$ac_ext
17580 fi # $ac_x_includes = no
17581
17582 if test "$ac_x_libraries" = no; then
17583   # Check for the libraries.
17584   # See if we find them without any special options.
17585   # Don't add to $LIBS permanently.
17586   ac_save_LIBS=$LIBS
17587   LIBS="-lXt $LIBS"
17588   cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594 #include <X11/Xlib.h>
17595 int
17596 main ()
17597 {
17598 XrmInitialize ()
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605   (eval $ac_link) 2>conftest.er1
17606   ac_status=$?
17607   grep -v '^ *+' conftest.er1 >conftest.err
17608   rm -f conftest.er1
17609   cat conftest.err >&5
17610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611   (exit $ac_status); } &&
17612          { ac_try='test -z "$ac_c_werror_flag"
17613                          || test ! -s conftest.err'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; } &&
17619          { ac_try='test -s conftest$ac_exeext'
17620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621   (eval $ac_try) 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625   LIBS=$ac_save_LIBS
17626 # We can link X programs with no special library path.
17627 ac_x_libraries=
17628 else
17629   echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17631
17632 LIBS=$ac_save_LIBS
17633 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17634 do
17635   # Don't even attempt the hair of trying to link an X program!
17636   for ac_extension in a so sl; do
17637     if test -r $ac_dir/libXt.$ac_extension; then
17638       ac_x_libraries=$ac_dir
17639       break 2
17640     fi
17641   done
17642 done
17643 fi
17644 rm -f conftest.err conftest.$ac_objext \
17645       conftest$ac_exeext conftest.$ac_ext
17646 fi # $ac_x_libraries = no
17647
17648 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17649   # Didn't find X anywhere.  Cache the known absence of X.
17650   ac_cv_have_x="have_x=no"
17651 else
17652   # Record where we found X for the cache.
17653   ac_cv_have_x="have_x=yes \
17654                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17655 fi
17656 fi
17657
17658   fi
17659   eval "$ac_cv_have_x"
17660 fi # $with_x != no
17661
17662 if test "$have_x" != yes; then
17663   echo "$as_me:$LINENO: result: $have_x" >&5
17664 echo "${ECHO_T}$have_x" >&6
17665   no_x=yes
17666 else
17667   # If each of the values was on the command line, it overrides each guess.
17668   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17669   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17670   # Update the cache value to reflect the command line values.
17671   ac_cv_have_x="have_x=yes \
17672                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17673   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17674 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17675 fi
17676
17677 if test "$no_x" = yes; then
17678   # Not all programs may use this symbol, but it does not hurt to define it.
17679
17680 cat >>confdefs.h <<\_ACEOF
17681 #define X_DISPLAY_MISSING 1
17682 _ACEOF
17683
17684   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17685 else
17686   if test -n "$x_includes"; then
17687     X_CFLAGS="$X_CFLAGS -I$x_includes"
17688   fi
17689
17690   # It would also be nice to do this for all -L options, not just this one.
17691   if test -n "$x_libraries"; then
17692     X_LIBS="$X_LIBS -L$x_libraries"
17693     # For Solaris; some versions of Sun CC require a space after -R and
17694     # others require no space.  Words are not sufficient . . . .
17695     case `(uname -sr) 2>/dev/null` in
17696     "SunOS 5"*)
17697       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17698 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17699       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17700       cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h.  */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h.  */
17706
17707 int
17708 main ()
17709 {
17710
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717   (eval $ac_link) 2>conftest.er1
17718   ac_status=$?
17719   grep -v '^ *+' conftest.er1 >conftest.err
17720   rm -f conftest.er1
17721   cat conftest.err >&5
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -z "$ac_c_werror_flag"
17725                          || test ! -s conftest.err'
17726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727   (eval $ac_try) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest$ac_exeext'
17732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733   (eval $ac_try) 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; }; then
17737   ac_R_nospace=yes
17738 else
17739   echo "$as_me: failed program was:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17741
17742 ac_R_nospace=no
17743 fi
17744 rm -f conftest.err conftest.$ac_objext \
17745       conftest$ac_exeext conftest.$ac_ext
17746       if test $ac_R_nospace = yes; then
17747         echo "$as_me:$LINENO: result: no" >&5
17748 echo "${ECHO_T}no" >&6
17749         X_LIBS="$X_LIBS -R$x_libraries"
17750       else
17751         LIBS="$ac_xsave_LIBS -R $x_libraries"
17752         cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758
17759 int
17760 main ()
17761 {
17762
17763   ;
17764   return 0;
17765 }
17766 _ACEOF
17767 rm -f conftest.$ac_objext conftest$ac_exeext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17769   (eval $ac_link) 2>conftest.er1
17770   ac_status=$?
17771   grep -v '^ *+' conftest.er1 >conftest.err
17772   rm -f conftest.er1
17773   cat conftest.err >&5
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); } &&
17776          { ac_try='test -z "$ac_c_werror_flag"
17777                          || test ! -s conftest.err'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; } &&
17783          { ac_try='test -s conftest$ac_exeext'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   ac_R_space=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 ac_R_space=no
17795 fi
17796 rm -f conftest.err conftest.$ac_objext \
17797       conftest$ac_exeext conftest.$ac_ext
17798         if test $ac_R_space = yes; then
17799           echo "$as_me:$LINENO: result: yes" >&5
17800 echo "${ECHO_T}yes" >&6
17801           X_LIBS="$X_LIBS -R $x_libraries"
17802         else
17803           echo "$as_me:$LINENO: result: neither works" >&5
17804 echo "${ECHO_T}neither works" >&6
17805         fi
17806       fi
17807       LIBS=$ac_xsave_LIBS
17808     esac
17809   fi
17810
17811   # Check for system-dependent libraries X programs must link with.
17812   # Do this before checking for the system-independent R6 libraries
17813   # (-lICE), since we may need -lsocket or whatever for X linking.
17814
17815   if test "$ISC" = yes; then
17816     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17817   else
17818     # Martyn Johnson says this is needed for Ultrix, if the X
17819     # libraries were built with DECnet support.  And Karl Berry says
17820     # the Alpha needs dnet_stub (dnet does not exist).
17821     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17822     cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h.  */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h.  */
17828
17829 /* Override any gcc2 internal prototype to avoid an error.  */
17830 #ifdef __cplusplus
17831 extern "C"
17832 #endif
17833 /* We use char because int might match the return type of a gcc2
17834    builtin and then its argument prototype would still apply.  */
17835 char XOpenDisplay ();
17836 int
17837 main ()
17838 {
17839 XOpenDisplay ();
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846   (eval $ac_link) 2>conftest.er1
17847   ac_status=$?
17848   grep -v '^ *+' conftest.er1 >conftest.err
17849   rm -f conftest.er1
17850   cat conftest.err >&5
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } &&
17853          { ac_try='test -z "$ac_c_werror_flag"
17854                          || test ! -s conftest.err'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; } &&
17860          { ac_try='test -s conftest$ac_exeext'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; }; then
17866   :
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
17872 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17873 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17874   echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876   ac_check_lib_save_LIBS=$LIBS
17877 LIBS="-ldnet  $LIBS"
17878 cat >conftest.$ac_ext <<_ACEOF
17879 /* confdefs.h.  */
17880 _ACEOF
17881 cat confdefs.h >>conftest.$ac_ext
17882 cat >>conftest.$ac_ext <<_ACEOF
17883 /* end confdefs.h.  */
17884
17885 /* Override any gcc2 internal prototype to avoid an error.  */
17886 #ifdef __cplusplus
17887 extern "C"
17888 #endif
17889 /* We use char because int might match the return type of a gcc2
17890    builtin and then its argument prototype would still apply.  */
17891 char dnet_ntoa ();
17892 int
17893 main ()
17894 {
17895 dnet_ntoa ();
17896   ;
17897   return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902   (eval $ac_link) 2>conftest.er1
17903   ac_status=$?
17904   grep -v '^ *+' conftest.er1 >conftest.err
17905   rm -f conftest.er1
17906   cat conftest.err >&5
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -z "$ac_c_werror_flag"
17910                          || test ! -s conftest.err'
17911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912   (eval $ac_try) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; } &&
17916          { ac_try='test -s conftest$ac_exeext'
17917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918   (eval $ac_try) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); }; }; then
17922   ac_cv_lib_dnet_dnet_ntoa=yes
17923 else
17924   echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 ac_cv_lib_dnet_dnet_ntoa=no
17928 fi
17929 rm -f conftest.err conftest.$ac_objext \
17930       conftest$ac_exeext conftest.$ac_ext
17931 LIBS=$ac_check_lib_save_LIBS
17932 fi
17933 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17934 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17935 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17936   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17937 fi
17938
17939     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17940       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
17941 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17942 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17943   echo $ECHO_N "(cached) $ECHO_C" >&6
17944 else
17945   ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-ldnet_stub  $LIBS"
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953
17954 /* Override any gcc2 internal prototype to avoid an error.  */
17955 #ifdef __cplusplus
17956 extern "C"
17957 #endif
17958 /* We use char because int might match the return type of a gcc2
17959    builtin and then its argument prototype would still apply.  */
17960 char dnet_ntoa ();
17961 int
17962 main ()
17963 {
17964 dnet_ntoa ();
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17971   (eval $ac_link) 2>conftest.er1
17972   ac_status=$?
17973   grep -v '^ *+' conftest.er1 >conftest.err
17974   rm -f conftest.er1
17975   cat conftest.err >&5
17976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977   (exit $ac_status); } &&
17978          { ac_try='test -z "$ac_c_werror_flag"
17979                          || test ! -s conftest.err'
17980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981   (eval $ac_try) 2>&5
17982   ac_status=$?
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); }; } &&
17985          { ac_try='test -s conftest$ac_exeext'
17986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987   (eval $ac_try) 2>&5
17988   ac_status=$?
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); }; }; then
17991   ac_cv_lib_dnet_stub_dnet_ntoa=yes
17992 else
17993   echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 ac_cv_lib_dnet_stub_dnet_ntoa=no
17997 fi
17998 rm -f conftest.err conftest.$ac_objext \
17999       conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18001 fi
18002 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18003 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18004 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18005   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18006 fi
18007
18008     fi
18009 fi
18010 rm -f conftest.err conftest.$ac_objext \
18011       conftest$ac_exeext conftest.$ac_ext
18012     LIBS="$ac_xsave_LIBS"
18013
18014     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18015     # to get the SysV transport functions.
18016     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18017     # needs -lnsl.
18018     # The nsl library prevents programs from opening the X display
18019     # on Irix 5.2, according to T.E. Dickey.
18020     # The functions gethostbyname, getservbyname, and inet_addr are
18021     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18022     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18023 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18024 if test "${ac_cv_func_gethostbyname+set}" = set; then
18025   echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18035 #define gethostbyname innocuous_gethostbyname
18036
18037 /* System header to define __stub macros and hopefully few prototypes,
18038     which can conflict with char gethostbyname (); below.
18039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18040     <limits.h> exists even on freestanding compilers.  */
18041
18042 #ifdef __STDC__
18043 # include <limits.h>
18044 #else
18045 # include <assert.h>
18046 #endif
18047
18048 #undef gethostbyname
18049
18050 /* Override any gcc2 internal prototype to avoid an error.  */
18051 #ifdef __cplusplus
18052 extern "C"
18053 {
18054 #endif
18055 /* We use char because int might match the return type of a gcc2
18056    builtin and then its argument prototype would still apply.  */
18057 char gethostbyname ();
18058 /* The GNU C library defines this for functions which it implements
18059     to always fail with ENOSYS.  Some functions are actually named
18060     something starting with __ and the normal name is an alias.  */
18061 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18062 choke me
18063 #else
18064 char (*f) () = gethostbyname;
18065 #endif
18066 #ifdef __cplusplus
18067 }
18068 #endif
18069
18070 int
18071 main ()
18072 {
18073 return f != gethostbyname;
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 rm -f conftest.$ac_objext conftest$ac_exeext
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080   (eval $ac_link) 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } &&
18087          { ac_try='test -z "$ac_c_werror_flag"
18088                          || test ! -s conftest.err'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; } &&
18094          { ac_try='test -s conftest$ac_exeext'
18095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096   (eval $ac_try) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); }; }; then
18100   ac_cv_func_gethostbyname=yes
18101 else
18102   echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ac_cv_func_gethostbyname=no
18106 fi
18107 rm -f conftest.err conftest.$ac_objext \
18108       conftest$ac_exeext conftest.$ac_ext
18109 fi
18110 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18111 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18112
18113     if test $ac_cv_func_gethostbyname = no; then
18114       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18115 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18116 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18117   echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119   ac_check_lib_save_LIBS=$LIBS
18120 LIBS="-lnsl  $LIBS"
18121 cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h.  */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h.  */
18127
18128 /* Override any gcc2 internal prototype to avoid an error.  */
18129 #ifdef __cplusplus
18130 extern "C"
18131 #endif
18132 /* We use char because int might match the return type of a gcc2
18133    builtin and then its argument prototype would still apply.  */
18134 char gethostbyname ();
18135 int
18136 main ()
18137 {
18138 gethostbyname ();
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 rm -f conftest.$ac_objext conftest$ac_exeext
18144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18145   (eval $ac_link) 2>conftest.er1
18146   ac_status=$?
18147   grep -v '^ *+' conftest.er1 >conftest.err
18148   rm -f conftest.er1
18149   cat conftest.err >&5
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } &&
18152          { ac_try='test -z "$ac_c_werror_flag"
18153                          || test ! -s conftest.err'
18154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155   (eval $ac_try) 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); }; } &&
18159          { ac_try='test -s conftest$ac_exeext'
18160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161   (eval $ac_try) 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; }; then
18165   ac_cv_lib_nsl_gethostbyname=yes
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 ac_cv_lib_nsl_gethostbyname=no
18171 fi
18172 rm -f conftest.err conftest.$ac_objext \
18173       conftest$ac_exeext conftest.$ac_ext
18174 LIBS=$ac_check_lib_save_LIBS
18175 fi
18176 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18177 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18178 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18179   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18180 fi
18181
18182       if test $ac_cv_lib_nsl_gethostbyname = no; then
18183         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18184 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18185 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18186   echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188   ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-lbsd  $LIBS"
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196
18197 /* Override any gcc2 internal prototype to avoid an error.  */
18198 #ifdef __cplusplus
18199 extern "C"
18200 #endif
18201 /* We use char because int might match the return type of a gcc2
18202    builtin and then its argument prototype would still apply.  */
18203 char gethostbyname ();
18204 int
18205 main ()
18206 {
18207 gethostbyname ();
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18214   (eval $ac_link) 2>conftest.er1
18215   ac_status=$?
18216   grep -v '^ *+' conftest.er1 >conftest.err
18217   rm -f conftest.er1
18218   cat conftest.err >&5
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); } &&
18221          { ac_try='test -z "$ac_c_werror_flag"
18222                          || test ! -s conftest.err'
18223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224   (eval $ac_try) 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); }; } &&
18228          { ac_try='test -s conftest$ac_exeext'
18229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230   (eval $ac_try) 2>&5
18231   ac_status=$?
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); }; }; then
18234   ac_cv_lib_bsd_gethostbyname=yes
18235 else
18236   echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.$ac_ext >&5
18238
18239 ac_cv_lib_bsd_gethostbyname=no
18240 fi
18241 rm -f conftest.err conftest.$ac_objext \
18242       conftest$ac_exeext conftest.$ac_ext
18243 LIBS=$ac_check_lib_save_LIBS
18244 fi
18245 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18246 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18247 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18248   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18249 fi
18250
18251       fi
18252     fi
18253
18254     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18255     # socket/setsockopt and other routines are undefined under SCO ODT
18256     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18257     # on later versions), says Simon Leinen: it contains gethostby*
18258     # variants that don't use the name server (or something).  -lsocket
18259     # must be given before -lnsl if both are needed.  We assume that
18260     # if connect needs -lnsl, so does gethostbyname.
18261     echo "$as_me:$LINENO: checking for connect" >&5
18262 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18263 if test "${ac_cv_func_connect+set}" = set; then
18264   echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266   cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h.  */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h.  */
18272 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18274 #define connect innocuous_connect
18275
18276 /* System header to define __stub macros and hopefully few prototypes,
18277     which can conflict with char connect (); below.
18278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279     <limits.h> exists even on freestanding compilers.  */
18280
18281 #ifdef __STDC__
18282 # include <limits.h>
18283 #else
18284 # include <assert.h>
18285 #endif
18286
18287 #undef connect
18288
18289 /* Override any gcc2 internal prototype to avoid an error.  */
18290 #ifdef __cplusplus
18291 extern "C"
18292 {
18293 #endif
18294 /* We use char because int might match the return type of a gcc2
18295    builtin and then its argument prototype would still apply.  */
18296 char connect ();
18297 /* The GNU C library defines this for functions which it implements
18298     to always fail with ENOSYS.  Some functions are actually named
18299     something starting with __ and the normal name is an alias.  */
18300 #if defined (__stub_connect) || defined (__stub___connect)
18301 choke me
18302 #else
18303 char (*f) () = connect;
18304 #endif
18305 #ifdef __cplusplus
18306 }
18307 #endif
18308
18309 int
18310 main ()
18311 {
18312 return f != connect;
18313   ;
18314   return 0;
18315 }
18316 _ACEOF
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319   (eval $ac_link) 2>conftest.er1
18320   ac_status=$?
18321   grep -v '^ *+' conftest.er1 >conftest.err
18322   rm -f conftest.er1
18323   cat conftest.err >&5
18324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325   (exit $ac_status); } &&
18326          { ac_try='test -z "$ac_c_werror_flag"
18327                          || test ! -s conftest.err'
18328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329   (eval $ac_try) 2>&5
18330   ac_status=$?
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); }; } &&
18333          { ac_try='test -s conftest$ac_exeext'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; }; then
18339   ac_cv_func_connect=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344 ac_cv_func_connect=no
18345 fi
18346 rm -f conftest.err conftest.$ac_objext \
18347       conftest$ac_exeext conftest.$ac_ext
18348 fi
18349 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18350 echo "${ECHO_T}$ac_cv_func_connect" >&6
18351
18352     if test $ac_cv_func_connect = no; then
18353       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18354 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18355 if test "${ac_cv_lib_socket_connect+set}" = set; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366
18367 /* Override any gcc2 internal prototype to avoid an error.  */
18368 #ifdef __cplusplus
18369 extern "C"
18370 #endif
18371 /* We use char because int might match the return type of a gcc2
18372    builtin and then its argument prototype would still apply.  */
18373 char connect ();
18374 int
18375 main ()
18376 {
18377 connect ();
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18384   (eval $ac_link) 2>conftest.er1
18385   ac_status=$?
18386   grep -v '^ *+' conftest.er1 >conftest.err
18387   rm -f conftest.er1
18388   cat conftest.err >&5
18389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390   (exit $ac_status); } &&
18391          { ac_try='test -z "$ac_c_werror_flag"
18392                          || test ! -s conftest.err'
18393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394   (eval $ac_try) 2>&5
18395   ac_status=$?
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); }; } &&
18398          { ac_try='test -s conftest$ac_exeext'
18399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400   (eval $ac_try) 2>&5
18401   ac_status=$?
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); }; }; then
18404   ac_cv_lib_socket_connect=yes
18405 else
18406   echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18408
18409 ac_cv_lib_socket_connect=no
18410 fi
18411 rm -f conftest.err conftest.$ac_objext \
18412       conftest$ac_exeext conftest.$ac_ext
18413 LIBS=$ac_check_lib_save_LIBS
18414 fi
18415 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18416 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18417 if test $ac_cv_lib_socket_connect = yes; then
18418   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18419 fi
18420
18421     fi
18422
18423     # Guillermo Gomez says -lposix is necessary on A/UX.
18424     echo "$as_me:$LINENO: checking for remove" >&5
18425 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18426 if test "${ac_cv_func_remove+set}" = set; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 else
18429   cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h.  */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h.  */
18435 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18437 #define remove innocuous_remove
18438
18439 /* System header to define __stub macros and hopefully few prototypes,
18440     which can conflict with char remove (); below.
18441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18442     <limits.h> exists even on freestanding compilers.  */
18443
18444 #ifdef __STDC__
18445 # include <limits.h>
18446 #else
18447 # include <assert.h>
18448 #endif
18449
18450 #undef remove
18451
18452 /* Override any gcc2 internal prototype to avoid an error.  */
18453 #ifdef __cplusplus
18454 extern "C"
18455 {
18456 #endif
18457 /* We use char because int might match the return type of a gcc2
18458    builtin and then its argument prototype would still apply.  */
18459 char remove ();
18460 /* The GNU C library defines this for functions which it implements
18461     to always fail with ENOSYS.  Some functions are actually named
18462     something starting with __ and the normal name is an alias.  */
18463 #if defined (__stub_remove) || defined (__stub___remove)
18464 choke me
18465 #else
18466 char (*f) () = remove;
18467 #endif
18468 #ifdef __cplusplus
18469 }
18470 #endif
18471
18472 int
18473 main ()
18474 {
18475 return f != remove;
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18482   (eval $ac_link) 2>conftest.er1
18483   ac_status=$?
18484   grep -v '^ *+' conftest.er1 >conftest.err
18485   rm -f conftest.er1
18486   cat conftest.err >&5
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); } &&
18489          { ac_try='test -z "$ac_c_werror_flag"
18490                          || test ! -s conftest.err'
18491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492   (eval $ac_try) 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; } &&
18496          { ac_try='test -s conftest$ac_exeext'
18497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498   (eval $ac_try) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; }; then
18502   ac_cv_func_remove=yes
18503 else
18504   echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18506
18507 ac_cv_func_remove=no
18508 fi
18509 rm -f conftest.err conftest.$ac_objext \
18510       conftest$ac_exeext conftest.$ac_ext
18511 fi
18512 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18513 echo "${ECHO_T}$ac_cv_func_remove" >&6
18514
18515     if test $ac_cv_func_remove = no; then
18516       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18517 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18518 if test "${ac_cv_lib_posix_remove+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   ac_check_lib_save_LIBS=$LIBS
18522 LIBS="-lposix  $LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h.  */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h.  */
18529
18530 /* Override any gcc2 internal prototype to avoid an error.  */
18531 #ifdef __cplusplus
18532 extern "C"
18533 #endif
18534 /* We use char because int might match the return type of a gcc2
18535    builtin and then its argument prototype would still apply.  */
18536 char remove ();
18537 int
18538 main ()
18539 {
18540 remove ();
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547   (eval $ac_link) 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } &&
18554          { ac_try='test -z "$ac_c_werror_flag"
18555                          || test ! -s conftest.err'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; } &&
18561          { ac_try='test -s conftest$ac_exeext'
18562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563   (eval $ac_try) 2>&5
18564   ac_status=$?
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); }; }; then
18567   ac_cv_lib_posix_remove=yes
18568 else
18569   echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 ac_cv_lib_posix_remove=no
18573 fi
18574 rm -f conftest.err conftest.$ac_objext \
18575       conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18577 fi
18578 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18579 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18580 if test $ac_cv_lib_posix_remove = yes; then
18581   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18582 fi
18583
18584     fi
18585
18586     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18587     echo "$as_me:$LINENO: checking for shmat" >&5
18588 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18589 if test "${ac_cv_func_shmat+set}" = set; then
18590   echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592   cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h.  */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h.  */
18598 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18600 #define shmat innocuous_shmat
18601
18602 /* System header to define __stub macros and hopefully few prototypes,
18603     which can conflict with char shmat (); below.
18604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605     <limits.h> exists even on freestanding compilers.  */
18606
18607 #ifdef __STDC__
18608 # include <limits.h>
18609 #else
18610 # include <assert.h>
18611 #endif
18612
18613 #undef shmat
18614
18615 /* Override any gcc2 internal prototype to avoid an error.  */
18616 #ifdef __cplusplus
18617 extern "C"
18618 {
18619 #endif
18620 /* We use char because int might match the return type of a gcc2
18621    builtin and then its argument prototype would still apply.  */
18622 char shmat ();
18623 /* The GNU C library defines this for functions which it implements
18624     to always fail with ENOSYS.  Some functions are actually named
18625     something starting with __ and the normal name is an alias.  */
18626 #if defined (__stub_shmat) || defined (__stub___shmat)
18627 choke me
18628 #else
18629 char (*f) () = shmat;
18630 #endif
18631 #ifdef __cplusplus
18632 }
18633 #endif
18634
18635 int
18636 main ()
18637 {
18638 return f != shmat;
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645   (eval $ac_link) 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } &&
18652          { ac_try='test -z "$ac_c_werror_flag"
18653                          || test ! -s conftest.err'
18654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655   (eval $ac_try) 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; } &&
18659          { ac_try='test -s conftest$ac_exeext'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; }; then
18665   ac_cv_func_shmat=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 ac_cv_func_shmat=no
18671 fi
18672 rm -f conftest.err conftest.$ac_objext \
18673       conftest$ac_exeext conftest.$ac_ext
18674 fi
18675 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18676 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18677
18678     if test $ac_cv_func_shmat = no; then
18679       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18680 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18681 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18682   echo $ECHO_N "(cached) $ECHO_C" >&6
18683 else
18684   ac_check_lib_save_LIBS=$LIBS
18685 LIBS="-lipc  $LIBS"
18686 cat >conftest.$ac_ext <<_ACEOF
18687 /* confdefs.h.  */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h.  */
18692
18693 /* Override any gcc2 internal prototype to avoid an error.  */
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 /* We use char because int might match the return type of a gcc2
18698    builtin and then its argument prototype would still apply.  */
18699 char shmat ();
18700 int
18701 main ()
18702 {
18703 shmat ();
18704   ;
18705   return 0;
18706 }
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18710   (eval $ac_link) 2>conftest.er1
18711   ac_status=$?
18712   grep -v '^ *+' conftest.er1 >conftest.err
18713   rm -f conftest.er1
18714   cat conftest.err >&5
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); } &&
18717          { ac_try='test -z "$ac_c_werror_flag"
18718                          || test ! -s conftest.err'
18719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720   (eval $ac_try) 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; } &&
18724          { ac_try='test -s conftest$ac_exeext'
18725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726   (eval $ac_try) 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; }; then
18730   ac_cv_lib_ipc_shmat=yes
18731 else
18732   echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735 ac_cv_lib_ipc_shmat=no
18736 fi
18737 rm -f conftest.err conftest.$ac_objext \
18738       conftest$ac_exeext conftest.$ac_ext
18739 LIBS=$ac_check_lib_save_LIBS
18740 fi
18741 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18742 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18743 if test $ac_cv_lib_ipc_shmat = yes; then
18744   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18745 fi
18746
18747     fi
18748   fi
18749
18750   # Check for libraries that X11R6 Xt/Xaw programs need.
18751   ac_save_LDFLAGS=$LDFLAGS
18752   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18753   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18754   # check for ICE first), but we must link in the order -lSM -lICE or
18755   # we get undefined symbols.  So assume we have SM if we have ICE.
18756   # These have to be linked with before -lX11, unlike the other
18757   # libraries we check for below, so use a different variable.
18758   # John Interrante, Karl Berry
18759   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18760 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18761 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   ac_check_lib_save_LIBS=$LIBS
18765 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18766 cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772
18773 /* Override any gcc2 internal prototype to avoid an error.  */
18774 #ifdef __cplusplus
18775 extern "C"
18776 #endif
18777 /* We use char because int might match the return type of a gcc2
18778    builtin and then its argument prototype would still apply.  */
18779 char IceConnectionNumber ();
18780 int
18781 main ()
18782 {
18783 IceConnectionNumber ();
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18790   (eval $ac_link) 2>conftest.er1
18791   ac_status=$?
18792   grep -v '^ *+' conftest.er1 >conftest.err
18793   rm -f conftest.er1
18794   cat conftest.err >&5
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); } &&
18797          { ac_try='test -z "$ac_c_werror_flag"
18798                          || test ! -s conftest.err'
18799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800   (eval $ac_try) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; } &&
18804          { ac_try='test -s conftest$ac_exeext'
18805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806   (eval $ac_try) 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; }; then
18810   ac_cv_lib_ICE_IceConnectionNumber=yes
18811 else
18812   echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18814
18815 ac_cv_lib_ICE_IceConnectionNumber=no
18816 fi
18817 rm -f conftest.err conftest.$ac_objext \
18818       conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18822 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18823 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18824   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18825 fi
18826
18827   LDFLAGS=$ac_save_LDFLAGS
18828
18829 fi
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859 for ac_header in \
18860         assert.h \
18861         fcntl.h \
18862         grp.h \
18863         pwd.h \
18864         libc.h \
18865         limits.h \
18866         stdarg.h \
18867         stdlib.h \
18868         stdint.h \
18869         string.h \
18870         termios.h \
18871         termcap.h \
18872         term.h \
18873         unistd.h \
18874         sys/bitypes.h \
18875         sys/byteorder.h \
18876         sys/ioctl.h \
18877         sys/select.h \
18878         sys/sockio.h \
18879         sys/time.h \
18880         sys/socket.h \
18881         arpa/nameser.h \
18882         resolv.h \
18883         mtio.h \
18884         sys/mtio.h \
18885         sys/tape.h \
18886         regex.h \
18887
18888 do
18889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18891   echo "$as_me:$LINENO: checking for $ac_header" >&5
18892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18894   echo $ECHO_N "(cached) $ECHO_C" >&6
18895 fi
18896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18898 else
18899   # Is the header compilable?
18900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908 $ac_includes_default
18909 #include <$ac_header>
18910 _ACEOF
18911 rm -f conftest.$ac_objext
18912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18913   (eval $ac_compile) 2>conftest.er1
18914   ac_status=$?
18915   grep -v '^ *+' conftest.er1 >conftest.err
18916   rm -f conftest.er1
18917   cat conftest.err >&5
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); } &&
18920          { ac_try='test -z "$ac_c_werror_flag"
18921                          || test ! -s conftest.err'
18922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18923   (eval $ac_try) 2>&5
18924   ac_status=$?
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); }; } &&
18927          { ac_try='test -s conftest.$ac_objext'
18928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929   (eval $ac_try) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; }; then
18933   ac_header_compiler=yes
18934 else
18935   echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938 ac_header_compiler=no
18939 fi
18940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18941 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18942 echo "${ECHO_T}$ac_header_compiler" >&6
18943
18944 # Is the header present?
18945 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18947 cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953 #include <$ac_header>
18954 _ACEOF
18955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18957   ac_status=$?
18958   grep -v '^ *+' conftest.er1 >conftest.err
18959   rm -f conftest.er1
18960   cat conftest.err >&5
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } >/dev/null; then
18963   if test -s conftest.err; then
18964     ac_cpp_err=$ac_c_preproc_warn_flag
18965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18966   else
18967     ac_cpp_err=
18968   fi
18969 else
18970   ac_cpp_err=yes
18971 fi
18972 if test -z "$ac_cpp_err"; then
18973   ac_header_preproc=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978   ac_header_preproc=no
18979 fi
18980 rm -f conftest.err conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18982 echo "${ECHO_T}$ac_header_preproc" >&6
18983
18984 # So?  What about this header?
18985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18986   yes:no: )
18987     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18991     ac_header_preproc=yes
18992     ;;
18993   no:yes:* )
18994     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18996     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18997 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18998     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19000     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19001 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19002     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19004     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19006     (
19007       cat <<\_ASBOX
19008 ## ------------------------------------------ ##
19009 ## Report this to the AC_PACKAGE_NAME lists.  ##
19010 ## ------------------------------------------ ##
19011 _ASBOX
19012     ) |
19013       sed "s/^/$as_me: WARNING:     /" >&2
19014     ;;
19015 esac
19016 echo "$as_me:$LINENO: checking for $ac_header" >&5
19017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   eval "$as_ac_Header=\$ac_header_preproc"
19022 fi
19023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19025
19026 fi
19027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19028   cat >>confdefs.h <<_ACEOF
19029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19030 _ACEOF
19031
19032 fi
19033
19034 done
19035
19036 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19038 if test "${ac_cv_header_stdc+set}" = set; then
19039   echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041   cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047 #include <stdlib.h>
19048 #include <stdarg.h>
19049 #include <string.h>
19050 #include <float.h>
19051
19052 int
19053 main ()
19054 {
19055
19056   ;
19057   return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062   (eval $ac_compile) 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } &&
19069          { ac_try='test -z "$ac_c_werror_flag"
19070                          || test ! -s conftest.err'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; } &&
19076          { ac_try='test -s conftest.$ac_objext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_header_stdc=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_header_stdc=no
19088 fi
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19090
19091 if test $ac_cv_header_stdc = yes; then
19092   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19093   cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099 #include <string.h>
19100
19101 _ACEOF
19102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19103   $EGREP "memchr" >/dev/null 2>&1; then
19104   :
19105 else
19106   ac_cv_header_stdc=no
19107 fi
19108 rm -f conftest*
19109
19110 fi
19111
19112 if test $ac_cv_header_stdc = yes; then
19113   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19114   cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120 #include <stdlib.h>
19121
19122 _ACEOF
19123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19124   $EGREP "free" >/dev/null 2>&1; then
19125   :
19126 else
19127   ac_cv_header_stdc=no
19128 fi
19129 rm -f conftest*
19130
19131 fi
19132
19133 if test $ac_cv_header_stdc = yes; then
19134   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19135   if test "$cross_compiling" = yes; then
19136   :
19137 else
19138   cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h.  */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h.  */
19144 #include <ctype.h>
19145 #if ((' ' & 0x0FF) == 0x020)
19146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19148 #else
19149 # define ISLOWER(c) \
19150                    (('a' <= (c) && (c) <= 'i') \
19151                      || ('j' <= (c) && (c) <= 'r') \
19152                      || ('s' <= (c) && (c) <= 'z'))
19153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19154 #endif
19155
19156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19157 int
19158 main ()
19159 {
19160   int i;
19161   for (i = 0; i < 256; i++)
19162     if (XOR (islower (i), ISLOWER (i))
19163         || toupper (i) != TOUPPER (i))
19164       exit(2);
19165   exit (0);
19166 }
19167 _ACEOF
19168 rm -f conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170   (eval $ac_link) 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175   (eval $ac_try) 2>&5
19176   ac_status=$?
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); }; }; then
19179   :
19180 else
19181   echo "$as_me: program exited with status $ac_status" >&5
19182 echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 ( exit $ac_status )
19186 ac_cv_header_stdc=no
19187 fi
19188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19189 fi
19190 fi
19191 fi
19192 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19193 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19194 if test $ac_cv_header_stdc = yes; then
19195
19196 cat >>confdefs.h <<\_ACEOF
19197 #define STDC_HEADERS 1
19198 _ACEOF
19199
19200 fi
19201
19202 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19203 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19204 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19205   echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207   cat >conftest.$ac_ext <<_ACEOF
19208 /* confdefs.h.  */
19209 _ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h.  */
19213 #include <sys/types.h>
19214 int
19215 main ()
19216 {
19217 return makedev(0, 0);
19218   ;
19219   return 0;
19220 }
19221 _ACEOF
19222 rm -f conftest.$ac_objext conftest$ac_exeext
19223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19224   (eval $ac_link) 2>conftest.er1
19225   ac_status=$?
19226   grep -v '^ *+' conftest.er1 >conftest.err
19227   rm -f conftest.er1
19228   cat conftest.err >&5
19229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); } &&
19231          { ac_try='test -z "$ac_c_werror_flag"
19232                          || test ! -s conftest.err'
19233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234   (eval $ac_try) 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; } &&
19238          { ac_try='test -s conftest$ac_exeext'
19239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240   (eval $ac_try) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; }; then
19244   ac_cv_header_sys_types_h_makedev=yes
19245 else
19246   echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 ac_cv_header_sys_types_h_makedev=no
19250 fi
19251 rm -f conftest.err conftest.$ac_objext \
19252       conftest$ac_exeext conftest.$ac_ext
19253
19254 fi
19255 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19256 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19257
19258 if test $ac_cv_header_sys_types_h_makedev = no; then
19259 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19260   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19261 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19262 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19263   echo $ECHO_N "(cached) $ECHO_C" >&6
19264 fi
19265 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19266 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19267 else
19268   # Is the header compilable?
19269 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19270 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h.  */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h.  */
19277 $ac_includes_default
19278 #include <sys/mkdev.h>
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19282   (eval $ac_compile) 2>conftest.er1
19283   ac_status=$?
19284   grep -v '^ *+' conftest.er1 >conftest.err
19285   rm -f conftest.er1
19286   cat conftest.err >&5
19287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288   (exit $ac_status); } &&
19289          { ac_try='test -z "$ac_c_werror_flag"
19290                          || test ! -s conftest.err'
19291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292   (eval $ac_try) 2>&5
19293   ac_status=$?
19294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295   (exit $ac_status); }; } &&
19296          { ac_try='test -s conftest.$ac_objext'
19297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298   (eval $ac_try) 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302   ac_header_compiler=yes
19303 else
19304   echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307 ac_header_compiler=no
19308 fi
19309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 echo "${ECHO_T}$ac_header_compiler" >&6
19312
19313 # Is the header present?
19314 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19315 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19316 cat >conftest.$ac_ext <<_ACEOF
19317 /* confdefs.h.  */
19318 _ACEOF
19319 cat confdefs.h >>conftest.$ac_ext
19320 cat >>conftest.$ac_ext <<_ACEOF
19321 /* end confdefs.h.  */
19322 #include <sys/mkdev.h>
19323 _ACEOF
19324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } >/dev/null; then
19332   if test -s conftest.err; then
19333     ac_cpp_err=$ac_c_preproc_warn_flag
19334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19335   else
19336     ac_cpp_err=
19337   fi
19338 else
19339   ac_cpp_err=yes
19340 fi
19341 if test -z "$ac_cpp_err"; then
19342   ac_header_preproc=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347   ac_header_preproc=no
19348 fi
19349 rm -f conftest.err conftest.$ac_ext
19350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19351 echo "${ECHO_T}$ac_header_preproc" >&6
19352
19353 # So?  What about this header?
19354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19355   yes:no: )
19356     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19357 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19358     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19359 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19360     ac_header_preproc=yes
19361     ;;
19362   no:yes:* )
19363     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19364 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19365     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19366 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19367     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19368 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19369     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19370 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19371     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19372 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19373     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19374 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19375     (
19376       cat <<\_ASBOX
19377 ## ------------------------------------------ ##
19378 ## Report this to the AC_PACKAGE_NAME lists.  ##
19379 ## ------------------------------------------ ##
19380 _ASBOX
19381     ) |
19382       sed "s/^/$as_me: WARNING:     /" >&2
19383     ;;
19384 esac
19385 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19386 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19387 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19391 fi
19392 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19393 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19394
19395 fi
19396 if test $ac_cv_header_sys_mkdev_h = yes; then
19397
19398 cat >>confdefs.h <<\_ACEOF
19399 #define MAJOR_IN_MKDEV 1
19400 _ACEOF
19401
19402 fi
19403
19404
19405
19406   if test $ac_cv_header_sys_mkdev_h = no; then
19407     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19408   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19409 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19410 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19411   echo $ECHO_N "(cached) $ECHO_C" >&6
19412 fi
19413 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19414 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19415 else
19416   # Is the header compilable?
19417 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19418 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 $ac_includes_default
19426 #include <sys/sysmacros.h>
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19430   (eval $ac_compile) 2>conftest.er1
19431   ac_status=$?
19432   grep -v '^ *+' conftest.er1 >conftest.err
19433   rm -f conftest.er1
19434   cat conftest.err >&5
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); } &&
19437          { ac_try='test -z "$ac_c_werror_flag"
19438                          || test ! -s conftest.err'
19439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440   (eval $ac_try) 2>&5
19441   ac_status=$?
19442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443   (exit $ac_status); }; } &&
19444          { ac_try='test -s conftest.$ac_objext'
19445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446   (eval $ac_try) 2>&5
19447   ac_status=$?
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   (exit $ac_status); }; }; then
19450   ac_header_compiler=yes
19451 else
19452   echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_header_compiler=no
19456 fi
19457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19459 echo "${ECHO_T}$ac_header_compiler" >&6
19460
19461 # Is the header present?
19462 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19463 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19465 /* confdefs.h.  */
19466 _ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h.  */
19470 #include <sys/sysmacros.h>
19471 _ACEOF
19472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } >/dev/null; then
19480   if test -s conftest.err; then
19481     ac_cpp_err=$ac_c_preproc_warn_flag
19482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19483   else
19484     ac_cpp_err=
19485   fi
19486 else
19487   ac_cpp_err=yes
19488 fi
19489 if test -z "$ac_cpp_err"; then
19490   ac_header_preproc=yes
19491 else
19492   echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19494
19495   ac_header_preproc=no
19496 fi
19497 rm -f conftest.err conftest.$ac_ext
19498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19499 echo "${ECHO_T}$ac_header_preproc" >&6
19500
19501 # So?  What about this header?
19502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19503   yes:no: )
19504     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19505 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19506     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19507 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19508     ac_header_preproc=yes
19509     ;;
19510   no:yes:* )
19511     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19512 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19513     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19514 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19515     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19516 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19517     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19518 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19519     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19520 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19521     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19522 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19523     (
19524       cat <<\_ASBOX
19525 ## ------------------------------------------ ##
19526 ## Report this to the AC_PACKAGE_NAME lists.  ##
19527 ## ------------------------------------------ ##
19528 _ASBOX
19529     ) |
19530       sed "s/^/$as_me: WARNING:     /" >&2
19531     ;;
19532 esac
19533 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19534 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19535 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19536   echo $ECHO_N "(cached) $ECHO_C" >&6
19537 else
19538   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19539 fi
19540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19541 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19542
19543 fi
19544 if test $ac_cv_header_sys_sysmacros_h = yes; then
19545
19546 cat >>confdefs.h <<\_ACEOF
19547 #define MAJOR_IN_SYSMACROS 1
19548 _ACEOF
19549
19550 fi
19551
19552
19553   fi
19554 fi
19555
19556
19557
19558
19559
19560
19561 ac_header_dirent=no
19562 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19563   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19564 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19565 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h.  */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h.  */
19575 #include <sys/types.h>
19576 #include <$ac_hdr>
19577
19578 int
19579 main ()
19580 {
19581 if ((DIR *) 0)
19582 return 0;
19583   ;
19584   return 0;
19585 }
19586 _ACEOF
19587 rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589   (eval $ac_compile) 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } &&
19596          { ac_try='test -z "$ac_c_werror_flag"
19597                          || test ! -s conftest.err'
19598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599   (eval $ac_try) 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; } &&
19603          { ac_try='test -s conftest.$ac_objext'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; }; then
19609   eval "$as_ac_Header=yes"
19610 else
19611   echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 eval "$as_ac_Header=no"
19615 fi
19616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19617 fi
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19621   cat >>confdefs.h <<_ACEOF
19622 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19623 _ACEOF
19624
19625 ac_header_dirent=$ac_hdr; break
19626 fi
19627
19628 done
19629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19630 if test $ac_header_dirent = dirent.h; then
19631   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19632 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19633 if test "${ac_cv_search_opendir+set}" = set; then
19634   echo $ECHO_N "(cached) $ECHO_C" >&6
19635 else
19636   ac_func_search_save_LIBS=$LIBS
19637 ac_cv_search_opendir=no
19638 cat >conftest.$ac_ext <<_ACEOF
19639 /* confdefs.h.  */
19640 _ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h.  */
19644
19645 /* Override any gcc2 internal prototype to avoid an error.  */
19646 #ifdef __cplusplus
19647 extern "C"
19648 #endif
19649 /* We use char because int might match the return type of a gcc2
19650    builtin and then its argument prototype would still apply.  */
19651 char opendir ();
19652 int
19653 main ()
19654 {
19655 opendir ();
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19662   (eval $ac_link) 2>conftest.er1
19663   ac_status=$?
19664   grep -v '^ *+' conftest.er1 >conftest.err
19665   rm -f conftest.er1
19666   cat conftest.err >&5
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); } &&
19669          { ac_try='test -z "$ac_c_werror_flag"
19670                          || test ! -s conftest.err'
19671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19672   (eval $ac_try) 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; } &&
19676          { ac_try='test -s conftest$ac_exeext'
19677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678   (eval $ac_try) 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; }; then
19682   ac_cv_search_opendir="none required"
19683 else
19684   echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687 fi
19688 rm -f conftest.err conftest.$ac_objext \
19689       conftest$ac_exeext conftest.$ac_ext
19690 if test "$ac_cv_search_opendir" = no; then
19691   for ac_lib in dir; do
19692     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19693     cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699
19700 /* Override any gcc2 internal prototype to avoid an error.  */
19701 #ifdef __cplusplus
19702 extern "C"
19703 #endif
19704 /* We use char because int might match the return type of a gcc2
19705    builtin and then its argument prototype would still apply.  */
19706 char opendir ();
19707 int
19708 main ()
19709 {
19710 opendir ();
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717   (eval $ac_link) 2>conftest.er1
19718   ac_status=$?
19719   grep -v '^ *+' conftest.er1 >conftest.err
19720   rm -f conftest.er1
19721   cat conftest.err >&5
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } &&
19724          { ac_try='test -z "$ac_c_werror_flag"
19725                          || test ! -s conftest.err'
19726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727   (eval $ac_try) 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; } &&
19731          { ac_try='test -s conftest$ac_exeext'
19732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733   (eval $ac_try) 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   ac_cv_search_opendir="-l$ac_lib"
19738 break
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 fi
19744 rm -f conftest.err conftest.$ac_objext \
19745       conftest$ac_exeext conftest.$ac_ext
19746   done
19747 fi
19748 LIBS=$ac_func_search_save_LIBS
19749 fi
19750 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19751 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19752 if test "$ac_cv_search_opendir" != no; then
19753   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19754
19755 fi
19756
19757 else
19758   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19759 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19760 if test "${ac_cv_search_opendir+set}" = set; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   ac_func_search_save_LIBS=$LIBS
19764 ac_cv_search_opendir=no
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h.  */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h.  */
19771
19772 /* Override any gcc2 internal prototype to avoid an error.  */
19773 #ifdef __cplusplus
19774 extern "C"
19775 #endif
19776 /* We use char because int might match the return type of a gcc2
19777    builtin and then its argument prototype would still apply.  */
19778 char opendir ();
19779 int
19780 main ()
19781 {
19782 opendir ();
19783   ;
19784   return 0;
19785 }
19786 _ACEOF
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19789   (eval $ac_link) 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } &&
19796          { ac_try='test -z "$ac_c_werror_flag"
19797                          || test ! -s conftest.err'
19798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799   (eval $ac_try) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; } &&
19803          { ac_try='test -s conftest$ac_exeext'
19804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805   (eval $ac_try) 2>&5
19806   ac_status=$?
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); }; }; then
19809   ac_cv_search_opendir="none required"
19810 else
19811   echo "$as_me: failed program was:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19813
19814 fi
19815 rm -f conftest.err conftest.$ac_objext \
19816       conftest$ac_exeext conftest.$ac_ext
19817 if test "$ac_cv_search_opendir" = no; then
19818   for ac_lib in x; do
19819     LIBS="-l$ac_lib  $ac_func_search_save_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 gcc2 internal prototype to avoid an error.  */
19828 #ifdef __cplusplus
19829 extern "C"
19830 #endif
19831 /* We use char because int might match the return type of a gcc2
19832    builtin and then its argument prototype would still apply.  */
19833 char opendir ();
19834 int
19835 main ()
19836 {
19837 opendir ();
19838   ;
19839   return 0;
19840 }
19841 _ACEOF
19842 rm -f conftest.$ac_objext conftest$ac_exeext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19844   (eval $ac_link) 2>conftest.er1
19845   ac_status=$?
19846   grep -v '^ *+' conftest.er1 >conftest.err
19847   rm -f conftest.er1
19848   cat conftest.err >&5
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); } &&
19851          { ac_try='test -z "$ac_c_werror_flag"
19852                          || test ! -s conftest.err'
19853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854   (eval $ac_try) 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; } &&
19858          { ac_try='test -s conftest$ac_exeext'
19859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860   (eval $ac_try) 2>&5
19861   ac_status=$?
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); }; }; then
19864   ac_cv_search_opendir="-l$ac_lib"
19865 break
19866 else
19867   echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 fi
19871 rm -f conftest.err conftest.$ac_objext \
19872       conftest$ac_exeext conftest.$ac_ext
19873   done
19874 fi
19875 LIBS=$ac_func_search_save_LIBS
19876 fi
19877 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19878 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19879 if test "$ac_cv_search_opendir" != no; then
19880   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19881
19882 fi
19883
19884 fi
19885
19886 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19887 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
19888 if test "${ac_cv_header_stat_broken+set}" = set; then
19889   echo $ECHO_N "(cached) $ECHO_C" >&6
19890 else
19891   cat >conftest.$ac_ext <<_ACEOF
19892 /* confdefs.h.  */
19893 _ACEOF
19894 cat confdefs.h >>conftest.$ac_ext
19895 cat >>conftest.$ac_ext <<_ACEOF
19896 /* end confdefs.h.  */
19897 #include <sys/types.h>
19898 #include <sys/stat.h>
19899
19900 #if defined(S_ISBLK) && defined(S_IFDIR)
19901 # if S_ISBLK (S_IFDIR)
19902 You lose.
19903 # endif
19904 #endif
19905
19906 #if defined(S_ISBLK) && defined(S_IFCHR)
19907 # if S_ISBLK (S_IFCHR)
19908 You lose.
19909 # endif
19910 #endif
19911
19912 #if defined(S_ISLNK) && defined(S_IFREG)
19913 # if S_ISLNK (S_IFREG)
19914 You lose.
19915 # endif
19916 #endif
19917
19918 #if defined(S_ISSOCK) && defined(S_IFREG)
19919 # if S_ISSOCK (S_IFREG)
19920 You lose.
19921 # endif
19922 #endif
19923
19924 _ACEOF
19925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19926   $EGREP "You lose" >/dev/null 2>&1; then
19927   ac_cv_header_stat_broken=yes
19928 else
19929   ac_cv_header_stat_broken=no
19930 fi
19931 rm -f conftest*
19932
19933 fi
19934 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19935 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
19936 if test $ac_cv_header_stat_broken = yes; then
19937
19938 cat >>confdefs.h <<\_ACEOF
19939 #define STAT_MACROS_BROKEN 1
19940 _ACEOF
19941
19942 fi
19943
19944 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19945 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19946 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19947   echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949   cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 #include <sys/types.h>
19956 #include <sys/wait.h>
19957 #ifndef WEXITSTATUS
19958 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19959 #endif
19960 #ifndef WIFEXITED
19961 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19962 #endif
19963
19964 int
19965 main ()
19966 {
19967   int s;
19968   wait (&s);
19969   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19970   ;
19971   return 0;
19972 }
19973 _ACEOF
19974 rm -f conftest.$ac_objext
19975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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          { ac_try='test -z "$ac_c_werror_flag"
19984                          || test ! -s conftest.err'
19985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986   (eval $ac_try) 2>&5
19987   ac_status=$?
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); }; } &&
19990          { ac_try='test -s conftest.$ac_objext'
19991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992   (eval $ac_try) 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }; }; then
19996   ac_cv_header_sys_wait_h=yes
19997 else
19998   echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001 ac_cv_header_sys_wait_h=no
20002 fi
20003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20004 fi
20005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20006 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20007 if test $ac_cv_header_sys_wait_h = yes; then
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_SYS_WAIT_H 1
20011 _ACEOF
20012
20013 fi
20014
20015 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20016 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20017 if test "${ac_cv_header_time+set}" = set; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 #include <sys/types.h>
20027 #include <sys/time.h>
20028 #include <time.h>
20029
20030 int
20031 main ()
20032 {
20033 if ((struct tm *) 0)
20034 return 0;
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041   (eval $ac_compile) 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag"
20049                          || test ! -s conftest.err'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest.$ac_objext'
20056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057   (eval $ac_try) 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   ac_cv_header_time=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 ac_cv_header_time=no
20067 fi
20068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20069 fi
20070 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20071 echo "${ECHO_T}$ac_cv_header_time" >&6
20072 if test $ac_cv_header_time = yes; then
20073
20074 cat >>confdefs.h <<\_ACEOF
20075 #define TIME_WITH_SYS_TIME 1
20076 _ACEOF
20077
20078 fi
20079
20080
20081 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20082 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20083 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086   cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092 $ac_includes_default
20093 int
20094 main ()
20095 {
20096 static struct stat ac_aggr;
20097 if (ac_aggr.st_blksize)
20098 return 0;
20099   ;
20100   return 0;
20101 }
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105   (eval $ac_compile) 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } &&
20112          { ac_try='test -z "$ac_c_werror_flag"
20113                          || test ! -s conftest.err'
20114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115   (eval $ac_try) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; } &&
20119          { ac_try='test -s conftest.$ac_objext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   ac_cv_member_struct_stat_st_blksize=yes
20126 else
20127   echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 $ac_includes_default
20137 int
20138 main ()
20139 {
20140 static struct stat ac_aggr;
20141 if (sizeof ac_aggr.st_blksize)
20142 return 0;
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 rm -f conftest.$ac_objext
20148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20149   (eval $ac_compile) 2>conftest.er1
20150   ac_status=$?
20151   grep -v '^ *+' conftest.er1 >conftest.err
20152   rm -f conftest.er1
20153   cat conftest.err >&5
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } &&
20156          { ac_try='test -z "$ac_c_werror_flag"
20157                          || test ! -s conftest.err'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; } &&
20163          { ac_try='test -s conftest.$ac_objext'
20164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165   (eval $ac_try) 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; }; then
20169   ac_cv_member_struct_stat_st_blksize=yes
20170 else
20171   echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20173
20174 ac_cv_member_struct_stat_st_blksize=no
20175 fi
20176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20177 fi
20178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20179 fi
20180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20182 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20183
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20186 _ACEOF
20187
20188
20189 cat >>confdefs.h <<\_ACEOF
20190 #define HAVE_ST_BLKSIZE 1
20191 _ACEOF
20192
20193 fi
20194
20195
20196 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20197 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20198 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   cat >conftest.$ac_ext <<_ACEOF
20202 /* confdefs.h.  */
20203 _ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h.  */
20207 $ac_includes_default
20208 int
20209 main ()
20210 {
20211 static struct stat ac_aggr;
20212 if (ac_aggr.st_blocks)
20213 return 0;
20214   ;
20215   return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220   (eval $ac_compile) 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } &&
20227          { ac_try='test -z "$ac_c_werror_flag"
20228                          || test ! -s conftest.err'
20229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20230   (eval $ac_try) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; } &&
20234          { ac_try='test -s conftest.$ac_objext'
20235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236   (eval $ac_try) 2>&5
20237   ac_status=$?
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); }; }; then
20240   ac_cv_member_struct_stat_st_blocks=yes
20241 else
20242   echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245 cat >conftest.$ac_ext <<_ACEOF
20246 /* confdefs.h.  */
20247 _ACEOF
20248 cat confdefs.h >>conftest.$ac_ext
20249 cat >>conftest.$ac_ext <<_ACEOF
20250 /* end confdefs.h.  */
20251 $ac_includes_default
20252 int
20253 main ()
20254 {
20255 static struct stat ac_aggr;
20256 if (sizeof ac_aggr.st_blocks)
20257 return 0;
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20264   (eval $ac_compile) 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } &&
20271          { ac_try='test -z "$ac_c_werror_flag"
20272                          || test ! -s conftest.err'
20273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20274   (eval $ac_try) 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; } &&
20278          { ac_try='test -s conftest.$ac_objext'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; }; then
20284   ac_cv_member_struct_stat_st_blocks=yes
20285 else
20286   echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ac_cv_member_struct_stat_st_blocks=no
20290 fi
20291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292 fi
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 fi
20295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20296 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20297 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20298
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20301 _ACEOF
20302
20303
20304 cat >>confdefs.h <<\_ACEOF
20305 #define HAVE_ST_BLOCKS 1
20306 _ACEOF
20307
20308 else
20309   case $LIBOBJS in
20310     "fileblocks.$ac_objext"   | \
20311   *" fileblocks.$ac_objext"   | \
20312     "fileblocks.$ac_objext "* | \
20313   *" fileblocks.$ac_objext "* ) ;;
20314   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20315 esac
20316
20317 fi
20318
20319
20320 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20321 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20322 if test "${ac_cv_struct_tm+set}" = set; then
20323   echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325   cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331 #include <sys/types.h>
20332 #include <time.h>
20333
20334 int
20335 main ()
20336 {
20337 struct tm *tp; tp->tm_sec;
20338   ;
20339   return 0;
20340 }
20341 _ACEOF
20342 rm -f conftest.$ac_objext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20344   (eval $ac_compile) 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } &&
20351          { ac_try='test -z "$ac_c_werror_flag"
20352                          || test ! -s conftest.err'
20353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354   (eval $ac_try) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; } &&
20358          { ac_try='test -s conftest.$ac_objext'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; }; then
20364   ac_cv_struct_tm=time.h
20365 else
20366   echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 ac_cv_struct_tm=sys/time.h
20370 fi
20371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20372 fi
20373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20375 if test $ac_cv_struct_tm = sys/time.h; then
20376
20377 cat >>confdefs.h <<\_ACEOF
20378 #define TM_IN_SYS_TIME 1
20379 _ACEOF
20380
20381 fi
20382
20383 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20384 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20385 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 #include <sys/types.h>
20395 #include <$ac_cv_struct_tm>
20396
20397
20398 int
20399 main ()
20400 {
20401 static struct tm ac_aggr;
20402 if (ac_aggr.tm_zone)
20403 return 0;
20404   ;
20405   return 0;
20406 }
20407 _ACEOF
20408 rm -f conftest.$ac_objext
20409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20410   (eval $ac_compile) 2>conftest.er1
20411   ac_status=$?
20412   grep -v '^ *+' conftest.er1 >conftest.err
20413   rm -f conftest.er1
20414   cat conftest.err >&5
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); } &&
20417          { ac_try='test -z "$ac_c_werror_flag"
20418                          || test ! -s conftest.err'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; } &&
20424          { ac_try='test -s conftest.$ac_objext'
20425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426   (eval $ac_try) 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); }; }; then
20430   ac_cv_member_struct_tm_tm_zone=yes
20431 else
20432   echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h.  */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h.  */
20441 #include <sys/types.h>
20442 #include <$ac_cv_struct_tm>
20443
20444
20445 int
20446 main ()
20447 {
20448 static struct tm ac_aggr;
20449 if (sizeof ac_aggr.tm_zone)
20450 return 0;
20451   ;
20452   return 0;
20453 }
20454 _ACEOF
20455 rm -f conftest.$ac_objext
20456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20457   (eval $ac_compile) 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } &&
20464          { ac_try='test -z "$ac_c_werror_flag"
20465                          || test ! -s conftest.err'
20466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467   (eval $ac_try) 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; } &&
20471          { ac_try='test -s conftest.$ac_objext'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; }; then
20477   ac_cv_member_struct_tm_tm_zone=yes
20478 else
20479   echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_cv_member_struct_tm_tm_zone=no
20483 fi
20484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20485 fi
20486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20487 fi
20488 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20491
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_STRUCT_TM_TM_ZONE 1
20494 _ACEOF
20495
20496
20497 fi
20498
20499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20500
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_TM_ZONE 1
20503 _ACEOF
20504
20505 else
20506   echo "$as_me:$LINENO: checking for tzname" >&5
20507 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20508 if test "${ac_cv_var_tzname+set}" = set; then
20509   echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511   cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517 #include <time.h>
20518 #ifndef tzname /* For SGI.  */
20519 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20520 #endif
20521
20522 int
20523 main ()
20524 {
20525 atoi(*tzname);
20526   ;
20527   return 0;
20528 }
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20532   (eval $ac_link) 2>conftest.er1
20533   ac_status=$?
20534   grep -v '^ *+' conftest.er1 >conftest.err
20535   rm -f conftest.er1
20536   cat conftest.err >&5
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); } &&
20539          { ac_try='test -z "$ac_c_werror_flag"
20540                          || test ! -s conftest.err'
20541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542   (eval $ac_try) 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; } &&
20546          { ac_try='test -s conftest$ac_exeext'
20547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548   (eval $ac_try) 2>&5
20549   ac_status=$?
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); }; }; then
20552   ac_cv_var_tzname=yes
20553 else
20554   echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20556
20557 ac_cv_var_tzname=no
20558 fi
20559 rm -f conftest.err conftest.$ac_objext \
20560       conftest$ac_exeext conftest.$ac_ext
20561 fi
20562 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20563 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20564   if test $ac_cv_var_tzname = yes; then
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_TZNAME 1
20568 _ACEOF
20569
20570   fi
20571 fi
20572
20573
20574 echo "$as_me:$LINENO: checking for utime.h" >&5
20575 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20576 if test "${ba_cv_header_utime_h+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585
20586 #include <sys/types.h>
20587 #include <utime.h>
20588 int
20589 main ()
20590 {
20591 struct utimbuf foo
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598   (eval $ac_compile) 2>conftest.er1
20599   ac_status=$?
20600   grep -v '^ *+' conftest.er1 >conftest.err
20601   rm -f conftest.er1
20602   cat conftest.err >&5
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } &&
20605          { ac_try='test -z "$ac_c_werror_flag"
20606                          || test ! -s conftest.err'
20607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608   (eval $ac_try) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); }; } &&
20612          { ac_try='test -s conftest.$ac_objext'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ba_cv_header_utime_h=yes
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ba_cv_header_utime_h=no
20624 fi
20625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20628 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20629 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_UTIME_H 1
20631 _ACEOF
20632
20633
20634 echo "$as_me:$LINENO: checking for socklen_t" >&5
20635 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20636 if test "${ba_cv_header_socklen_t+set}" = set; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639   cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h.  */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h.  */
20645
20646 #include <sys/types.h>
20647 #include <sys/socket.h>
20648 int
20649 main ()
20650 {
20651 socklen_t x
20652   ;
20653   return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20658   (eval $ac_compile) 2>conftest.er1
20659   ac_status=$?
20660   grep -v '^ *+' conftest.er1 >conftest.err
20661   rm -f conftest.er1
20662   cat conftest.err >&5
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); } &&
20665          { ac_try='test -z "$ac_c_werror_flag"
20666                          || test ! -s conftest.err'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; } &&
20672          { ac_try='test -s conftest.$ac_objext'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; }; then
20678   ba_cv_header_socklen_t=yes
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683 ba_cv_header_socklen_t=no
20684 fi
20685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20686 fi
20687 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20688 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20689 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20690 #define HAVE_SOCKLEN_T 1
20691 _ACEOF
20692
20693
20694 echo "$as_me:$LINENO: checking for bigendian" >&5
20695 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20696 if test "${ba_cv_bigendian+set}" = set; then
20697   echo $ECHO_N "(cached) $ECHO_C" >&6
20698 else
20699   if test "$cross_compiling" = yes; then
20700   ba_cv_bigendian=no
20701 else
20702   cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h.  */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h.  */
20708 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20709 _ACEOF
20710 rm -f conftest$ac_exeext
20711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20712   (eval $ac_link) 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20717   (eval $ac_try) 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); }; }; then
20721   ba_cv_bigendian=yes
20722 else
20723   echo "$as_me: program exited with status $ac_status" >&5
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 ( exit $ac_status )
20728 ba_cv_bigendian=no
20729 fi
20730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20731 fi
20732 fi
20733 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20734 echo "${ECHO_T}$ba_cv_bigendian" >&6
20735 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20736 #define HAVE_BIGENDIAN 1
20737 _ACEOF
20738
20739
20740 ac_ext=cc
20741 ac_cpp='$CXXCPP $CPPFLAGS'
20742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20745
20746
20747 echo "$as_me:$LINENO: checking for typeof" >&5
20748 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20749 if test "${ba_cv_have_typeof+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752   if test "$cross_compiling" = yes; then
20753   ba_cv_have_typeof=no
20754 else
20755   cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h.  */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h.  */
20761 main(){char *a = 0; a = (typeof a)a;}
20762 _ACEOF
20763 rm -f conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765   (eval $ac_link) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770   (eval $ac_try) 2>&5
20771   ac_status=$?
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); }; }; then
20774   ba_cv_have_typeof=yes
20775 else
20776   echo "$as_me: program exited with status $ac_status" >&5
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780 ( exit $ac_status )
20781 ba_cv_have_typeof=no
20782 fi
20783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20784 fi
20785 fi
20786 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20787 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20788 test $ba_cv_have_typeof = yes &&
20789 cat >>confdefs.h <<\_ACEOF
20790 #define HAVE_TYPEOF 1
20791 _ACEOF
20792
20793 ac_ext=c
20794 ac_cpp='$CPP $CPPFLAGS'
20795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20798
20799
20800 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20801 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20802 if test "${ac_cv_c_const+set}" = set; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805   cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811
20812 int
20813 main ()
20814 {
20815 /* FIXME: Include the comments suggested by Paul. */
20816 #ifndef __cplusplus
20817   /* Ultrix mips cc rejects this.  */
20818   typedef int charset[2];
20819   const charset x;
20820   /* SunOS 4.1.1 cc rejects this.  */
20821   char const *const *ccp;
20822   char **p;
20823   /* NEC SVR4.0.2 mips cc rejects this.  */
20824   struct point {int x, y;};
20825   static struct point const zero = {0,0};
20826   /* AIX XL C 1.02.0.0 rejects this.
20827      It does not let you subtract one const X* pointer from another in
20828      an arm of an if-expression whose if-part is not a constant
20829      expression */
20830   const char *g = "string";
20831   ccp = &g + (g ? g-g : 0);
20832   /* HPUX 7.0 cc rejects these. */
20833   ++ccp;
20834   p = (char**) ccp;
20835   ccp = (char const *const *) p;
20836   { /* SCO 3.2v4 cc rejects this.  */
20837     char *t;
20838     char const *s = 0 ? (char *) 0 : (char const *) 0;
20839
20840     *t++ = 0;
20841   }
20842   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20843     int x[] = {25, 17};
20844     const int *foo = &x[0];
20845     ++foo;
20846   }
20847   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20848     typedef const int *iptr;
20849     iptr p = 0;
20850     ++p;
20851   }
20852   { /* AIX XL C 1.02.0.0 rejects this saying
20853        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20854     struct s { int j; const int *ap[3]; };
20855     struct s *b; b->j = 5;
20856   }
20857   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20858     const int foo = 10;
20859   }
20860 #endif
20861
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 rm -f conftest.$ac_objext
20867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20868   (eval $ac_compile) 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } &&
20875          { ac_try='test -z "$ac_c_werror_flag"
20876                          || test ! -s conftest.err'
20877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878   (eval $ac_try) 2>&5
20879   ac_status=$?
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); }; } &&
20882          { ac_try='test -s conftest.$ac_objext'
20883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884   (eval $ac_try) 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; }; then
20888   ac_cv_c_const=yes
20889 else
20890   echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20892
20893 ac_cv_c_const=no
20894 fi
20895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20896 fi
20897 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20898 echo "${ECHO_T}$ac_cv_c_const" >&6
20899 if test $ac_cv_c_const = no; then
20900
20901 cat >>confdefs.h <<\_ACEOF
20902 #define const
20903 _ACEOF
20904
20905 fi
20906
20907
20908
20909 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20910 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
20911 fstype=no
20912 # The order of these tests is important.
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h.  */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h.  */
20919 #include <sys/statvfs.h>
20920 #include <sys/fstyp.h>
20921 _ACEOF
20922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20924   ac_status=$?
20925   grep -v '^ *+' conftest.er1 >conftest.err
20926   rm -f conftest.er1
20927   cat conftest.err >&5
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); } >/dev/null; then
20930   if test -s conftest.err; then
20931     ac_cpp_err=$ac_c_preproc_warn_flag
20932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20933   else
20934     ac_cpp_err=
20935   fi
20936 else
20937   ac_cpp_err=yes
20938 fi
20939 if test -z "$ac_cpp_err"; then
20940   cat >>confdefs.h <<\_ACEOF
20941 #define FSTYPE_STATVFS 1
20942 _ACEOF
20943  fstype=SVR4
20944 else
20945   echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20947
20948
20949 fi
20950 rm -f conftest.err conftest.$ac_ext
20951 if test $fstype = no; then
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h.  */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h.  */
20958 #include <sys/statfs.h>
20959 #include <sys/fstyp.h>
20960 _ACEOF
20961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20963   ac_status=$?
20964   grep -v '^ *+' conftest.er1 >conftest.err
20965   rm -f conftest.er1
20966   cat conftest.err >&5
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); } >/dev/null; then
20969   if test -s conftest.err; then
20970     ac_cpp_err=$ac_c_preproc_warn_flag
20971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20972   else
20973     ac_cpp_err=
20974   fi
20975 else
20976   ac_cpp_err=yes
20977 fi
20978 if test -z "$ac_cpp_err"; then
20979   cat >>confdefs.h <<\_ACEOF
20980 #define FSTYPE_USG_STATFS 1
20981 _ACEOF
20982  fstype=SVR3
20983 else
20984   echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20986
20987
20988 fi
20989 rm -f conftest.err conftest.$ac_ext
20990 fi
20991 if test $fstype = no; then
20992 cat >conftest.$ac_ext <<_ACEOF
20993 /* confdefs.h.  */
20994 _ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h.  */
20998 #include <sys/statfs.h>
20999 #include <sys/vmount.h>
21000 _ACEOF
21001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21002   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21003   ac_status=$?
21004   grep -v '^ *+' conftest.er1 >conftest.err
21005   rm -f conftest.er1
21006   cat conftest.err >&5
21007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008   (exit $ac_status); } >/dev/null; then
21009   if test -s conftest.err; then
21010     ac_cpp_err=$ac_c_preproc_warn_flag
21011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21012   else
21013     ac_cpp_err=
21014   fi
21015 else
21016   ac_cpp_err=yes
21017 fi
21018 if test -z "$ac_cpp_err"; then
21019   cat >>confdefs.h <<\_ACEOF
21020 #define FSTYPE_AIX_STATFS 1
21021 _ACEOF
21022  fstype=AIX
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027
21028 fi
21029 rm -f conftest.err conftest.$ac_ext
21030 fi
21031 if test $fstype = no; then
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038 #include <mntent.h>
21039 _ACEOF
21040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21042   ac_status=$?
21043   grep -v '^ *+' conftest.er1 >conftest.err
21044   rm -f conftest.er1
21045   cat conftest.err >&5
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); } >/dev/null; then
21048   if test -s conftest.err; then
21049     ac_cpp_err=$ac_c_preproc_warn_flag
21050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21051   else
21052     ac_cpp_err=
21053   fi
21054 else
21055   ac_cpp_err=yes
21056 fi
21057 if test -z "$ac_cpp_err"; then
21058   cat >>confdefs.h <<\_ACEOF
21059 #define FSTYPE_MNTENT 1
21060 _ACEOF
21061  fstype=4.3BSD
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066
21067 fi
21068 rm -f conftest.err conftest.$ac_ext
21069 fi
21070 if test $fstype = no; then
21071 cat >conftest.$ac_ext <<_ACEOF
21072 /* confdefs.h.  */
21073 _ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h.  */
21077 #include <sys/mount.h>
21078
21079 _ACEOF
21080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21081   $EGREP "f_type;" >/dev/null 2>&1; then
21082   cat >>confdefs.h <<\_ACEOF
21083 #define FSTYPE_STATFS 1
21084 _ACEOF
21085  fstype=4.4BSD/OSF1
21086 fi
21087 rm -f conftest*
21088
21089 fi
21090 if test $fstype = no; then
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 #include <sys/mount.h>
21098 #include <sys/fs_types.h>
21099 _ACEOF
21100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } >/dev/null; then
21108   if test -s conftest.err; then
21109     ac_cpp_err=$ac_c_preproc_warn_flag
21110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21111   else
21112     ac_cpp_err=
21113   fi
21114 else
21115   ac_cpp_err=yes
21116 fi
21117 if test -z "$ac_cpp_err"; then
21118   cat >>confdefs.h <<\_ACEOF
21119 #define FSTYPE_GETMNT 1
21120 _ACEOF
21121  fstype=Ultrix
21122 else
21123   echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126
21127 fi
21128 rm -f conftest.err conftest.$ac_ext
21129 fi
21130 echo "$as_me:$LINENO: result: $fstype" >&5
21131 echo "${ECHO_T}$fstype" >&6
21132
21133 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21134   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21135 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21136 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21137   echo $ECHO_N "(cached) $ECHO_C" >&6
21138 fi
21139 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21140 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21141 else
21142   # Is the header compilable?
21143 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21144 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21145 cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h.  */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h.  */
21151 $ac_includes_default
21152 #include <sys/statvfs.h>
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21156   (eval $ac_compile) 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } &&
21163          { ac_try='test -z "$ac_c_werror_flag"
21164                          || test ! -s conftest.err'
21165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166   (eval $ac_try) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); }; } &&
21170          { ac_try='test -s conftest.$ac_objext'
21171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172   (eval $ac_try) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); }; }; then
21176   ac_header_compiler=yes
21177 else
21178   echo "$as_me: failed program was:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21180
21181 ac_header_compiler=no
21182 fi
21183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21185 echo "${ECHO_T}$ac_header_compiler" >&6
21186
21187 # Is the header present?
21188 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21189 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21190 cat >conftest.$ac_ext <<_ACEOF
21191 /* confdefs.h.  */
21192 _ACEOF
21193 cat confdefs.h >>conftest.$ac_ext
21194 cat >>conftest.$ac_ext <<_ACEOF
21195 /* end confdefs.h.  */
21196 #include <sys/statvfs.h>
21197 _ACEOF
21198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21200   ac_status=$?
21201   grep -v '^ *+' conftest.er1 >conftest.err
21202   rm -f conftest.er1
21203   cat conftest.err >&5
21204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205   (exit $ac_status); } >/dev/null; then
21206   if test -s conftest.err; then
21207     ac_cpp_err=$ac_c_preproc_warn_flag
21208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21209   else
21210     ac_cpp_err=
21211   fi
21212 else
21213   ac_cpp_err=yes
21214 fi
21215 if test -z "$ac_cpp_err"; then
21216   ac_header_preproc=yes
21217 else
21218   echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221   ac_header_preproc=no
21222 fi
21223 rm -f conftest.err conftest.$ac_ext
21224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6
21226
21227 # So?  What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21229   yes:no: )
21230     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21231 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21232     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21233 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21234     ac_header_preproc=yes
21235     ;;
21236   no:yes:* )
21237     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21238 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21239     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21240 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21241     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21242 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21243     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21244 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21245     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21246 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21247     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21248 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21249     (
21250       cat <<\_ASBOX
21251 ## ------------------------------------------ ##
21252 ## Report this to the AC_PACKAGE_NAME lists.  ##
21253 ## ------------------------------------------ ##
21254 _ASBOX
21255     ) |
21256       sed "s/^/$as_me: WARNING:     /" >&2
21257     ;;
21258 esac
21259 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21260 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21261 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21265 fi
21266 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21267 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21268
21269 fi
21270 if test $ac_cv_header_sys_statvfs_h = yes; then
21271
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_SYS_STATVFS_H 1
21274 _ACEOF
21275
21276 fi
21277
21278
21279
21280 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21281 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21282 if test "${ac_cv_type_signal+set}" = set; then
21283   echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285   cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h.  */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h.  */
21291 #include <sys/types.h>
21292 #include <signal.h>
21293 #ifdef signal
21294 # undef signal
21295 #endif
21296 #ifdef __cplusplus
21297 extern "C" void (*signal (int, void (*)(int)))(int);
21298 #else
21299 void (*signal ()) ();
21300 #endif
21301
21302 int
21303 main ()
21304 {
21305 int i;
21306   ;
21307   return 0;
21308 }
21309 _ACEOF
21310 rm -f conftest.$ac_objext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21312   (eval $ac_compile) 2>conftest.er1
21313   ac_status=$?
21314   grep -v '^ *+' conftest.er1 >conftest.err
21315   rm -f conftest.er1
21316   cat conftest.err >&5
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } &&
21319          { ac_try='test -z "$ac_c_werror_flag"
21320                          || test ! -s conftest.err'
21321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322   (eval $ac_try) 2>&5
21323   ac_status=$?
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); }; } &&
21326          { ac_try='test -s conftest.$ac_objext'
21327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328   (eval $ac_try) 2>&5
21329   ac_status=$?
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); }; }; then
21332   ac_cv_type_signal=void
21333 else
21334   echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 ac_cv_type_signal=int
21338 fi
21339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21340 fi
21341 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21342 echo "${ECHO_T}$ac_cv_type_signal" >&6
21343
21344 cat >>confdefs.h <<_ACEOF
21345 #define RETSIGTYPE $ac_cv_type_signal
21346 _ACEOF
21347
21348
21349
21350   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21351 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21352   if test "${bash_cv_signal_vintage+set}" = set; then
21353   echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355
21356     cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 #include <signal.h>
21363 int
21364 main ()
21365 {
21366
21367       sigset_t ss;
21368       struct sigaction sa;
21369       sigemptyset(&ss); sigsuspend(&ss);
21370       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21371       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21372
21373   ;
21374   return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext conftest$ac_exeext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379   (eval $ac_link) 2>conftest.er1
21380   ac_status=$?
21381   grep -v '^ *+' conftest.er1 >conftest.err
21382   rm -f conftest.er1
21383   cat conftest.err >&5
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } &&
21386          { ac_try='test -z "$ac_c_werror_flag"
21387                          || test ! -s conftest.err'
21388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389   (eval $ac_try) 2>&5
21390   ac_status=$?
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); }; } &&
21393          { ac_try='test -s conftest$ac_exeext'
21394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395   (eval $ac_try) 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; }; then
21399   bash_cv_signal_vintage="posix"
21400 else
21401   echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21403
21404
21405       cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h.  */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h.  */
21411 #include <signal.h>
21412 int
21413 main ()
21414 {
21415
21416           int mask = sigmask(SIGINT);
21417           sigsetmask(mask); sigblock(mask); sigpause(mask);
21418
21419   ;
21420   return 0;
21421 }
21422 _ACEOF
21423 rm -f conftest.$ac_objext conftest$ac_exeext
21424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21425   (eval $ac_link) 2>conftest.er1
21426   ac_status=$?
21427   grep -v '^ *+' conftest.er1 >conftest.err
21428   rm -f conftest.er1
21429   cat conftest.err >&5
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); } &&
21432          { ac_try='test -z "$ac_c_werror_flag"
21433                          || test ! -s conftest.err'
21434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435   (eval $ac_try) 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; } &&
21439          { ac_try='test -s conftest$ac_exeext'
21440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441   (eval $ac_try) 2>&5
21442   ac_status=$?
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); }; }; then
21445   bash_cv_signal_vintage="4.2bsd"
21446 else
21447   echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450
21451         cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h.  */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h.  */
21457
21458           #include <signal.h>
21459           RETSIGTYPE foo() { }
21460 int
21461 main ()
21462 {
21463
21464                   int mask = sigmask(SIGINT);
21465                   sigset(SIGINT, foo); sigrelse(SIGINT);
21466                   sighold(SIGINT); sigpause(SIGINT);
21467
21468   ;
21469   return 0;
21470 }
21471 _ACEOF
21472 rm -f conftest.$ac_objext conftest$ac_exeext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21474   (eval $ac_link) 2>conftest.er1
21475   ac_status=$?
21476   grep -v '^ *+' conftest.er1 >conftest.err
21477   rm -f conftest.er1
21478   cat conftest.err >&5
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); } &&
21481          { ac_try='test -z "$ac_c_werror_flag"
21482                          || test ! -s conftest.err'
21483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484   (eval $ac_try) 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); }; } &&
21488          { ac_try='test -s conftest$ac_exeext'
21489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490   (eval $ac_try) 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); }; }; then
21494   bash_cv_signal_vintage="svr3"
21495 else
21496   echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 bash_cv_signal_vintage="v7"
21500
21501 fi
21502 rm -f conftest.err conftest.$ac_objext \
21503       conftest$ac_exeext conftest.$ac_ext
21504
21505 fi
21506 rm -f conftest.err conftest.$ac_objext \
21507       conftest$ac_exeext conftest.$ac_ext
21508
21509 fi
21510 rm -f conftest.err conftest.$ac_objext \
21511       conftest$ac_exeext conftest.$ac_ext
21512
21513 fi
21514
21515   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21516 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21517   if test "$bash_cv_signal_vintage" = "posix"; then
21518     cat >>confdefs.h <<\_ACEOF
21519 #define HAVE_POSIX_SIGNALS 1
21520 _ACEOF
21521
21522   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21523     cat >>confdefs.h <<\_ACEOF
21524 #define HAVE_BSD_SIGNALS 1
21525 _ACEOF
21526
21527   elif test "$bash_cv_signal_vintage" = "svr3"; then
21528     cat >>confdefs.h <<\_ACEOF
21529 #define HAVE_USG_SIGHOLD 1
21530 _ACEOF
21531
21532   fi
21533
21534 echo "$as_me:$LINENO: checking for mode_t" >&5
21535 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21536 if test "${ac_cv_type_mode_t+set}" = set; then
21537   echo $ECHO_N "(cached) $ECHO_C" >&6
21538 else
21539   cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h.  */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h.  */
21545 $ac_includes_default
21546 int
21547 main ()
21548 {
21549 if ((mode_t *) 0)
21550   return 0;
21551 if (sizeof (mode_t))
21552   return 0;
21553   ;
21554   return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559   (eval $ac_compile) 2>conftest.er1
21560   ac_status=$?
21561   grep -v '^ *+' conftest.er1 >conftest.err
21562   rm -f conftest.er1
21563   cat conftest.err >&5
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); } &&
21566          { ac_try='test -z "$ac_c_werror_flag"
21567                          || test ! -s conftest.err'
21568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569   (eval $ac_try) 2>&5
21570   ac_status=$?
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); }; } &&
21573          { ac_try='test -s conftest.$ac_objext'
21574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575   (eval $ac_try) 2>&5
21576   ac_status=$?
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); }; }; then
21579   ac_cv_type_mode_t=yes
21580 else
21581   echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 ac_cv_type_mode_t=no
21585 fi
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21587 fi
21588 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21589 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21590 if test $ac_cv_type_mode_t = yes; then
21591   :
21592 else
21593
21594 cat >>confdefs.h <<_ACEOF
21595 #define mode_t int
21596 _ACEOF
21597
21598 fi
21599
21600 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21601 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21602 if test "${ac_cv_type_uid_t+set}" = set; then
21603   echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605   cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h.  */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h.  */
21611 #include <sys/types.h>
21612
21613 _ACEOF
21614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21615   $EGREP "uid_t" >/dev/null 2>&1; then
21616   ac_cv_type_uid_t=yes
21617 else
21618   ac_cv_type_uid_t=no
21619 fi
21620 rm -f conftest*
21621
21622 fi
21623 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21624 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21625 if test $ac_cv_type_uid_t = no; then
21626
21627 cat >>confdefs.h <<\_ACEOF
21628 #define uid_t int
21629 _ACEOF
21630
21631
21632 cat >>confdefs.h <<\_ACEOF
21633 #define gid_t int
21634 _ACEOF
21635
21636 fi
21637
21638 echo "$as_me:$LINENO: checking for size_t" >&5
21639 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21640 if test "${ac_cv_type_size_t+set}" = set; then
21641   echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643   cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h.  */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h.  */
21649 $ac_includes_default
21650 int
21651 main ()
21652 {
21653 if ((size_t *) 0)
21654   return 0;
21655 if (sizeof (size_t))
21656   return 0;
21657   ;
21658   return 0;
21659 }
21660 _ACEOF
21661 rm -f conftest.$ac_objext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21663   (eval $ac_compile) 2>conftest.er1
21664   ac_status=$?
21665   grep -v '^ *+' conftest.er1 >conftest.err
21666   rm -f conftest.er1
21667   cat conftest.err >&5
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } &&
21670          { ac_try='test -z "$ac_c_werror_flag"
21671                          || test ! -s conftest.err'
21672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673   (eval $ac_try) 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); }; } &&
21677          { ac_try='test -s conftest.$ac_objext'
21678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679   (eval $ac_try) 2>&5
21680   ac_status=$?
21681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); }; }; then
21683   ac_cv_type_size_t=yes
21684 else
21685   echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21687
21688 ac_cv_type_size_t=no
21689 fi
21690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21691 fi
21692 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21693 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21694 if test $ac_cv_type_size_t = yes; then
21695   :
21696 else
21697
21698 cat >>confdefs.h <<_ACEOF
21699 #define size_t unsigned
21700 _ACEOF
21701
21702 fi
21703
21704 echo "$as_me:$LINENO: checking for pid_t" >&5
21705 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21706 if test "${ac_cv_type_pid_t+set}" = set; then
21707   echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709   cat >conftest.$ac_ext <<_ACEOF
21710 /* confdefs.h.  */
21711 _ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h.  */
21715 $ac_includes_default
21716 int
21717 main ()
21718 {
21719 if ((pid_t *) 0)
21720   return 0;
21721 if (sizeof (pid_t))
21722   return 0;
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729   (eval $ac_compile) 2>conftest.er1
21730   ac_status=$?
21731   grep -v '^ *+' conftest.er1 >conftest.err
21732   rm -f conftest.er1
21733   cat conftest.err >&5
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } &&
21736          { ac_try='test -z "$ac_c_werror_flag"
21737                          || test ! -s conftest.err'
21738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739   (eval $ac_try) 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; } &&
21743          { ac_try='test -s conftest.$ac_objext'
21744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745   (eval $ac_try) 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; }; then
21749   ac_cv_type_pid_t=yes
21750 else
21751   echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 ac_cv_type_pid_t=no
21755 fi
21756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21757 fi
21758 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21759 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21760 if test $ac_cv_type_pid_t = yes; then
21761   :
21762 else
21763
21764 cat >>confdefs.h <<_ACEOF
21765 #define pid_t int
21766 _ACEOF
21767
21768 fi
21769
21770 echo "$as_me:$LINENO: checking for off_t" >&5
21771 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21772 if test "${ac_cv_type_off_t+set}" = set; then
21773   echo $ECHO_N "(cached) $ECHO_C" >&6
21774 else
21775   cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 $ac_includes_default
21782 int
21783 main ()
21784 {
21785 if ((off_t *) 0)
21786   return 0;
21787 if (sizeof (off_t))
21788   return 0;
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21795   (eval $ac_compile) 2>conftest.er1
21796   ac_status=$?
21797   grep -v '^ *+' conftest.er1 >conftest.err
21798   rm -f conftest.er1
21799   cat conftest.err >&5
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } &&
21802          { ac_try='test -z "$ac_c_werror_flag"
21803                          || test ! -s conftest.err'
21804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805   (eval $ac_try) 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); }; } &&
21809          { ac_try='test -s conftest.$ac_objext'
21810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21811   (eval $ac_try) 2>&5
21812   ac_status=$?
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); }; }; then
21815   ac_cv_type_off_t=yes
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820 ac_cv_type_off_t=no
21821 fi
21822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21823 fi
21824 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21825 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21826 if test $ac_cv_type_off_t = yes; then
21827   :
21828 else
21829
21830 cat >>confdefs.h <<_ACEOF
21831 #define off_t long
21832 _ACEOF
21833
21834 fi
21835
21836 echo "$as_me:$LINENO: checking for ino_t" >&5
21837 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21838 if test "${ac_cv_type_ino_t+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h.  */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h.  */
21847 $ac_includes_default
21848 int
21849 main ()
21850 {
21851 if ((ino_t *) 0)
21852   return 0;
21853 if (sizeof (ino_t))
21854   return 0;
21855   ;
21856   return 0;
21857 }
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861   (eval $ac_compile) 2>conftest.er1
21862   ac_status=$?
21863   grep -v '^ *+' conftest.er1 >conftest.err
21864   rm -f conftest.er1
21865   cat conftest.err >&5
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); } &&
21868          { ac_try='test -z "$ac_c_werror_flag"
21869                          || test ! -s conftest.err'
21870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871   (eval $ac_try) 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); }; } &&
21875          { ac_try='test -s conftest.$ac_objext'
21876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877   (eval $ac_try) 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; }; then
21881   ac_cv_type_ino_t=yes
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_cv_type_ino_t=no
21887 fi
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21889 fi
21890 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21891 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
21892 if test $ac_cv_type_ino_t = yes; then
21893   :
21894 else
21895
21896 cat >>confdefs.h <<_ACEOF
21897 #define ino_t unsigned long
21898 _ACEOF
21899
21900 fi
21901
21902 echo "$as_me:$LINENO: checking for dev_t" >&5
21903 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
21904 if test "${ac_cv_type_dev_t+set}" = set; then
21905   echo $ECHO_N "(cached) $ECHO_C" >&6
21906 else
21907   cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913 $ac_includes_default
21914 int
21915 main ()
21916 {
21917 if ((dev_t *) 0)
21918   return 0;
21919 if (sizeof (dev_t))
21920   return 0;
21921   ;
21922   return 0;
21923 }
21924 _ACEOF
21925 rm -f conftest.$ac_objext
21926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21927   (eval $ac_compile) 2>conftest.er1
21928   ac_status=$?
21929   grep -v '^ *+' conftest.er1 >conftest.err
21930   rm -f conftest.er1
21931   cat conftest.err >&5
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } &&
21934          { ac_try='test -z "$ac_c_werror_flag"
21935                          || test ! -s conftest.err'
21936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21937   (eval $ac_try) 2>&5
21938   ac_status=$?
21939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); }; } &&
21941          { ac_try='test -s conftest.$ac_objext'
21942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943   (eval $ac_try) 2>&5
21944   ac_status=$?
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); }; }; then
21947   ac_cv_type_dev_t=yes
21948 else
21949   echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952 ac_cv_type_dev_t=no
21953 fi
21954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21955 fi
21956 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21957 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
21958 if test $ac_cv_type_dev_t = yes; then
21959   :
21960 else
21961
21962 cat >>confdefs.h <<_ACEOF
21963 #define dev_t unsigned long
21964 _ACEOF
21965
21966 fi
21967
21968 echo "$as_me:$LINENO: checking for daddr_t" >&5
21969 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
21970 if test "${ac_cv_type_daddr_t+set}" = set; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 $ac_includes_default
21980 int
21981 main ()
21982 {
21983 if ((daddr_t *) 0)
21984   return 0;
21985 if (sizeof (daddr_t))
21986   return 0;
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993   (eval $ac_compile) 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -z "$ac_c_werror_flag"
22001                          || test ! -s conftest.err'
22002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003   (eval $ac_try) 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; } &&
22007          { ac_try='test -s conftest.$ac_objext'
22008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009   (eval $ac_try) 2>&5
22010   ac_status=$?
22011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); }; }; then
22013   ac_cv_type_daddr_t=yes
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018 ac_cv_type_daddr_t=no
22019 fi
22020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22021 fi
22022 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22023 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22024 if test $ac_cv_type_daddr_t = yes; then
22025   :
22026 else
22027
22028 cat >>confdefs.h <<_ACEOF
22029 #define daddr_t long
22030 _ACEOF
22031
22032 fi
22033
22034 echo "$as_me:$LINENO: checking for major_t" >&5
22035 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22036 if test "${ac_cv_type_major_t+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039   cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 $ac_includes_default
22046 int
22047 main ()
22048 {
22049 if ((major_t *) 0)
22050   return 0;
22051 if (sizeof (major_t))
22052   return 0;
22053   ;
22054   return 0;
22055 }
22056 _ACEOF
22057 rm -f conftest.$ac_objext
22058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22059   (eval $ac_compile) 2>conftest.er1
22060   ac_status=$?
22061   grep -v '^ *+' conftest.er1 >conftest.err
22062   rm -f conftest.er1
22063   cat conftest.err >&5
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); } &&
22066          { ac_try='test -z "$ac_c_werror_flag"
22067                          || test ! -s conftest.err'
22068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069   (eval $ac_try) 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); }; } &&
22073          { ac_try='test -s conftest.$ac_objext'
22074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22075   (eval $ac_try) 2>&5
22076   ac_status=$?
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); }; }; then
22079   ac_cv_type_major_t=yes
22080 else
22081   echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22083
22084 ac_cv_type_major_t=no
22085 fi
22086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22087 fi
22088 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22089 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22090 if test $ac_cv_type_major_t = yes; then
22091   :
22092 else
22093
22094 cat >>confdefs.h <<_ACEOF
22095 #define major_t int
22096 _ACEOF
22097
22098 fi
22099
22100 echo "$as_me:$LINENO: checking for minor_t" >&5
22101 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22102 if test "${ac_cv_type_minor_t+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h.  */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h.  */
22111 $ac_includes_default
22112 int
22113 main ()
22114 {
22115 if ((minor_t *) 0)
22116   return 0;
22117 if (sizeof (minor_t))
22118   return 0;
22119   ;
22120   return 0;
22121 }
22122 _ACEOF
22123 rm -f conftest.$ac_objext
22124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22125   (eval $ac_compile) 2>conftest.er1
22126   ac_status=$?
22127   grep -v '^ *+' conftest.er1 >conftest.err
22128   rm -f conftest.er1
22129   cat conftest.err >&5
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); } &&
22132          { ac_try='test -z "$ac_c_werror_flag"
22133                          || test ! -s conftest.err'
22134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22135   (eval $ac_try) 2>&5
22136   ac_status=$?
22137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138   (exit $ac_status); }; } &&
22139          { ac_try='test -s conftest.$ac_objext'
22140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22141   (eval $ac_try) 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }; }; then
22145   ac_cv_type_minor_t=yes
22146 else
22147   echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22149
22150 ac_cv_type_minor_t=no
22151 fi
22152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22153 fi
22154 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22155 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22156 if test $ac_cv_type_minor_t = yes; then
22157   :
22158 else
22159
22160 cat >>confdefs.h <<_ACEOF
22161 #define minor_t int
22162 _ACEOF
22163
22164 fi
22165
22166 echo "$as_me:$LINENO: checking for ssize_t" >&5
22167 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22168 if test "${ac_cv_type_ssize_t+set}" = set; then
22169   echo $ECHO_N "(cached) $ECHO_C" >&6
22170 else
22171   cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177 $ac_includes_default
22178 int
22179 main ()
22180 {
22181 if ((ssize_t *) 0)
22182   return 0;
22183 if (sizeof (ssize_t))
22184   return 0;
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext
22190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191   (eval $ac_compile) 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } &&
22198          { ac_try='test -z "$ac_c_werror_flag"
22199                          || test ! -s conftest.err'
22200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201   (eval $ac_try) 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); }; } &&
22205          { ac_try='test -s conftest.$ac_objext'
22206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207   (eval $ac_try) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); }; }; then
22211   ac_cv_type_ssize_t=yes
22212 else
22213   echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22215
22216 ac_cv_type_ssize_t=no
22217 fi
22218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22219 fi
22220 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22221 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22222 if test $ac_cv_type_ssize_t = yes; then
22223   :
22224 else
22225
22226 cat >>confdefs.h <<_ACEOF
22227 #define ssize_t int
22228 _ACEOF
22229
22230 fi
22231
22232 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22233 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22234 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22235   echo $ECHO_N "(cached) $ECHO_C" >&6
22236 else
22237   cat >conftest.$ac_ext <<_ACEOF
22238 /* confdefs.h.  */
22239 _ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h.  */
22243 $ac_includes_default
22244 int
22245 main ()
22246 {
22247 static struct stat ac_aggr;
22248 if (ac_aggr.st_blocks)
22249 return 0;
22250   ;
22251   return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22256   (eval $ac_compile) 2>conftest.er1
22257   ac_status=$?
22258   grep -v '^ *+' conftest.er1 >conftest.err
22259   rm -f conftest.er1
22260   cat conftest.err >&5
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); } &&
22263          { ac_try='test -z "$ac_c_werror_flag"
22264                          || test ! -s conftest.err'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; } &&
22270          { ac_try='test -s conftest.$ac_objext'
22271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272   (eval $ac_try) 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; }; then
22276   ac_cv_member_struct_stat_st_blocks=yes
22277 else
22278   echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281 cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h.  */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h.  */
22287 $ac_includes_default
22288 int
22289 main ()
22290 {
22291 static struct stat ac_aggr;
22292 if (sizeof ac_aggr.st_blocks)
22293 return 0;
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 rm -f conftest.$ac_objext
22299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22300   (eval $ac_compile) 2>conftest.er1
22301   ac_status=$?
22302   grep -v '^ *+' conftest.er1 >conftest.err
22303   rm -f conftest.er1
22304   cat conftest.err >&5
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); } &&
22307          { ac_try='test -z "$ac_c_werror_flag"
22308                          || test ! -s conftest.err'
22309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310   (eval $ac_try) 2>&5
22311   ac_status=$?
22312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313   (exit $ac_status); }; } &&
22314          { ac_try='test -s conftest.$ac_objext'
22315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316   (eval $ac_try) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); }; }; then
22320   ac_cv_member_struct_stat_st_blocks=yes
22321 else
22322   echo "$as_me: failed program was:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22324
22325 ac_cv_member_struct_stat_st_blocks=no
22326 fi
22327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22328 fi
22329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22330 fi
22331 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22332 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22333 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22334
22335 cat >>confdefs.h <<_ACEOF
22336 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22337 _ACEOF
22338
22339
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_ST_BLOCKS 1
22342 _ACEOF
22343
22344 else
22345   case $LIBOBJS in
22346     "fileblocks.$ac_objext"   | \
22347   *" fileblocks.$ac_objext"   | \
22348     "fileblocks.$ac_objext "* | \
22349   *" fileblocks.$ac_objext "* ) ;;
22350   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22351 esac
22352
22353 fi
22354
22355
22356
22357 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22358 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22359 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22360   echo $ECHO_N "(cached) $ECHO_C" >&6
22361 else
22362   cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h.  */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h.  */
22368 $ac_includes_default
22369 int
22370 main ()
22371 {
22372 static struct stat ac_aggr;
22373 if (ac_aggr.st_rdev)
22374 return 0;
22375   ;
22376   return 0;
22377 }
22378 _ACEOF
22379 rm -f conftest.$ac_objext
22380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22381   (eval $ac_compile) 2>conftest.er1
22382   ac_status=$?
22383   grep -v '^ *+' conftest.er1 >conftest.err
22384   rm -f conftest.er1
22385   cat conftest.err >&5
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); } &&
22388          { ac_try='test -z "$ac_c_werror_flag"
22389                          || test ! -s conftest.err'
22390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391   (eval $ac_try) 2>&5
22392   ac_status=$?
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); }; } &&
22395          { ac_try='test -s conftest.$ac_objext'
22396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397   (eval $ac_try) 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); }; }; then
22401   ac_cv_member_struct_stat_st_rdev=yes
22402 else
22403   echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
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 $ac_includes_default
22413 int
22414 main ()
22415 {
22416 static struct stat ac_aggr;
22417 if (sizeof ac_aggr.st_rdev)
22418 return 0;
22419   ;
22420   return 0;
22421 }
22422 _ACEOF
22423 rm -f conftest.$ac_objext
22424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22425   (eval $ac_compile) 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } &&
22432          { ac_try='test -z "$ac_c_werror_flag"
22433                          || test ! -s conftest.err'
22434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435   (eval $ac_try) 2>&5
22436   ac_status=$?
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); }; } &&
22439          { ac_try='test -s conftest.$ac_objext'
22440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441   (eval $ac_try) 2>&5
22442   ac_status=$?
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); }; }; then
22445   ac_cv_member_struct_stat_st_rdev=yes
22446 else
22447   echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 ac_cv_member_struct_stat_st_rdev=no
22451 fi
22452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22453 fi
22454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22455 fi
22456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22458 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22459
22460 cat >>confdefs.h <<_ACEOF
22461 #define HAVE_STRUCT_STAT_ST_RDEV 1
22462 _ACEOF
22463
22464
22465 cat >>confdefs.h <<\_ACEOF
22466 #define HAVE_ST_RDEV 1
22467 _ACEOF
22468
22469 fi
22470
22471
22472 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22473 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22474 if test "${ac_cv_struct_tm+set}" = set; then
22475   echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477   cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483 #include <sys/types.h>
22484 #include <time.h>
22485
22486 int
22487 main ()
22488 {
22489 struct tm *tp; tp->tm_sec;
22490   ;
22491   return 0;
22492 }
22493 _ACEOF
22494 rm -f conftest.$ac_objext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22496   (eval $ac_compile) 2>conftest.er1
22497   ac_status=$?
22498   grep -v '^ *+' conftest.er1 >conftest.err
22499   rm -f conftest.er1
22500   cat conftest.err >&5
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); } &&
22503          { ac_try='test -z "$ac_c_werror_flag"
22504                          || test ! -s conftest.err'
22505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506   (eval $ac_try) 2>&5
22507   ac_status=$?
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); }; } &&
22510          { ac_try='test -s conftest.$ac_objext'
22511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512   (eval $ac_try) 2>&5
22513   ac_status=$?
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); }; }; then
22516   ac_cv_struct_tm=time.h
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521 ac_cv_struct_tm=sys/time.h
22522 fi
22523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22524 fi
22525 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22526 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22527 if test $ac_cv_struct_tm = sys/time.h; then
22528
22529 cat >>confdefs.h <<\_ACEOF
22530 #define TM_IN_SYS_TIME 1
22531 _ACEOF
22532
22533 fi
22534
22535 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22536 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22537 if test "${ac_cv_c_const+set}" = set; then
22538   echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540   cat >conftest.$ac_ext <<_ACEOF
22541 /* confdefs.h.  */
22542 _ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h.  */
22546
22547 int
22548 main ()
22549 {
22550 /* FIXME: Include the comments suggested by Paul. */
22551 #ifndef __cplusplus
22552   /* Ultrix mips cc rejects this.  */
22553   typedef int charset[2];
22554   const charset x;
22555   /* SunOS 4.1.1 cc rejects this.  */
22556   char const *const *ccp;
22557   char **p;
22558   /* NEC SVR4.0.2 mips cc rejects this.  */
22559   struct point {int x, y;};
22560   static struct point const zero = {0,0};
22561   /* AIX XL C 1.02.0.0 rejects this.
22562      It does not let you subtract one const X* pointer from another in
22563      an arm of an if-expression whose if-part is not a constant
22564      expression */
22565   const char *g = "string";
22566   ccp = &g + (g ? g-g : 0);
22567   /* HPUX 7.0 cc rejects these. */
22568   ++ccp;
22569   p = (char**) ccp;
22570   ccp = (char const *const *) p;
22571   { /* SCO 3.2v4 cc rejects this.  */
22572     char *t;
22573     char const *s = 0 ? (char *) 0 : (char const *) 0;
22574
22575     *t++ = 0;
22576   }
22577   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22578     int x[] = {25, 17};
22579     const int *foo = &x[0];
22580     ++foo;
22581   }
22582   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22583     typedef const int *iptr;
22584     iptr p = 0;
22585     ++p;
22586   }
22587   { /* AIX XL C 1.02.0.0 rejects this saying
22588        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22589     struct s { int j; const int *ap[3]; };
22590     struct s *b; b->j = 5;
22591   }
22592   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22593     const int foo = 10;
22594   }
22595 #endif
22596
22597   ;
22598   return 0;
22599 }
22600 _ACEOF
22601 rm -f conftest.$ac_objext
22602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22603   (eval $ac_compile) 2>conftest.er1
22604   ac_status=$?
22605   grep -v '^ *+' conftest.er1 >conftest.err
22606   rm -f conftest.er1
22607   cat conftest.err >&5
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } &&
22610          { ac_try='test -z "$ac_c_werror_flag"
22611                          || test ! -s conftest.err'
22612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613   (eval $ac_try) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; } &&
22617          { ac_try='test -s conftest.$ac_objext'
22618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619   (eval $ac_try) 2>&5
22620   ac_status=$?
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); }; }; then
22623   ac_cv_c_const=yes
22624 else
22625   echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22627
22628 ac_cv_c_const=no
22629 fi
22630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22631 fi
22632 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22633 echo "${ECHO_T}$ac_cv_c_const" >&6
22634 if test $ac_cv_c_const = no; then
22635
22636 cat >>confdefs.h <<\_ACEOF
22637 #define const
22638 _ACEOF
22639
22640 fi
22641
22642
22643
22644 echo "$as_me:$LINENO: checking for char" >&5
22645 echo $ECHO_N "checking for char... $ECHO_C" >&6
22646 if test "${ac_cv_type_char+set}" = set; then
22647   echo $ECHO_N "(cached) $ECHO_C" >&6
22648 else
22649   cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655 $ac_includes_default
22656 int
22657 main ()
22658 {
22659 if ((char *) 0)
22660   return 0;
22661 if (sizeof (char))
22662   return 0;
22663   ;
22664   return 0;
22665 }
22666 _ACEOF
22667 rm -f conftest.$ac_objext
22668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22669   (eval $ac_compile) 2>conftest.er1
22670   ac_status=$?
22671   grep -v '^ *+' conftest.er1 >conftest.err
22672   rm -f conftest.er1
22673   cat conftest.err >&5
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); } &&
22676          { ac_try='test -z "$ac_c_werror_flag"
22677                          || test ! -s conftest.err'
22678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679   (eval $ac_try) 2>&5
22680   ac_status=$?
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); }; } &&
22683          { ac_try='test -s conftest.$ac_objext'
22684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; }; then
22689   ac_cv_type_char=yes
22690 else
22691   echo "$as_me: failed program was:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22693
22694 ac_cv_type_char=no
22695 fi
22696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22697 fi
22698 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22699 echo "${ECHO_T}$ac_cv_type_char" >&6
22700
22701 echo "$as_me:$LINENO: checking size of char" >&5
22702 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22703 if test "${ac_cv_sizeof_char+set}" = set; then
22704   echo $ECHO_N "(cached) $ECHO_C" >&6
22705 else
22706   if test "$ac_cv_type_char" = yes; then
22707   # The cast to unsigned long works around a bug in the HP C Compiler
22708   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22709   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22710   # This bug is HP SR number 8606223364.
22711   if test "$cross_compiling" = yes; then
22712   # Depending upon the size, compute the lo and hi bounds.
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 $ac_includes_default
22720 int
22721 main ()
22722 {
22723 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22724 test_array [0] = 0
22725
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732   (eval $ac_compile) 2>conftest.er1
22733   ac_status=$?
22734   grep -v '^ *+' conftest.er1 >conftest.err
22735   rm -f conftest.er1
22736   cat conftest.err >&5
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); } &&
22739          { ac_try='test -z "$ac_c_werror_flag"
22740                          || test ! -s conftest.err'
22741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742   (eval $ac_try) 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); }; } &&
22746          { ac_try='test -s conftest.$ac_objext'
22747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748   (eval $ac_try) 2>&5
22749   ac_status=$?
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); }; }; then
22752   ac_lo=0 ac_mid=0
22753   while :; do
22754     cat >conftest.$ac_ext <<_ACEOF
22755 /* confdefs.h.  */
22756 _ACEOF
22757 cat confdefs.h >>conftest.$ac_ext
22758 cat >>conftest.$ac_ext <<_ACEOF
22759 /* end confdefs.h.  */
22760 $ac_includes_default
22761 int
22762 main ()
22763 {
22764 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22765 test_array [0] = 0
22766
22767   ;
22768   return 0;
22769 }
22770 _ACEOF
22771 rm -f conftest.$ac_objext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22773   (eval $ac_compile) 2>conftest.er1
22774   ac_status=$?
22775   grep -v '^ *+' conftest.er1 >conftest.err
22776   rm -f conftest.er1
22777   cat conftest.err >&5
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); } &&
22780          { ac_try='test -z "$ac_c_werror_flag"
22781                          || test ! -s conftest.err'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; } &&
22787          { ac_try='test -s conftest.$ac_objext'
22788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789   (eval $ac_try) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; }; then
22793   ac_hi=$ac_mid; break
22794 else
22795   echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798 ac_lo=`expr $ac_mid + 1`
22799                     if test $ac_lo -le $ac_mid; then
22800                       ac_lo= ac_hi=
22801                       break
22802                     fi
22803                     ac_mid=`expr 2 '*' $ac_mid + 1`
22804 fi
22805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22806   done
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h.  */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h.  */
22817 $ac_includes_default
22818 int
22819 main ()
22820 {
22821 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22822 test_array [0] = 0
22823
22824   ;
22825   return 0;
22826 }
22827 _ACEOF
22828 rm -f conftest.$ac_objext
22829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22830   (eval $ac_compile) 2>conftest.er1
22831   ac_status=$?
22832   grep -v '^ *+' conftest.er1 >conftest.err
22833   rm -f conftest.er1
22834   cat conftest.err >&5
22835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836   (exit $ac_status); } &&
22837          { ac_try='test -z "$ac_c_werror_flag"
22838                          || test ! -s conftest.err'
22839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840   (eval $ac_try) 2>&5
22841   ac_status=$?
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); }; } &&
22844          { ac_try='test -s conftest.$ac_objext'
22845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846   (eval $ac_try) 2>&5
22847   ac_status=$?
22848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849   (exit $ac_status); }; }; then
22850   ac_hi=-1 ac_mid=-1
22851   while :; do
22852     cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858 $ac_includes_default
22859 int
22860 main ()
22861 {
22862 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22863 test_array [0] = 0
22864
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22871   (eval $ac_compile) 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } &&
22878          { ac_try='test -z "$ac_c_werror_flag"
22879                          || test ! -s conftest.err'
22880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881   (eval $ac_try) 2>&5
22882   ac_status=$?
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); }; } &&
22885          { ac_try='test -s conftest.$ac_objext'
22886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22887   (eval $ac_try) 2>&5
22888   ac_status=$?
22889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); }; }; then
22891   ac_lo=$ac_mid; break
22892 else
22893   echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22895
22896 ac_hi=`expr '(' $ac_mid ')' - 1`
22897                        if test $ac_mid -le $ac_hi; then
22898                          ac_lo= ac_hi=
22899                          break
22900                        fi
22901                        ac_mid=`expr 2 '*' $ac_mid`
22902 fi
22903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22904   done
22905 else
22906   echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22908
22909 ac_lo= ac_hi=
22910 fi
22911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22912 fi
22913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22914 # Binary search between lo and hi bounds.
22915 while test "x$ac_lo" != "x$ac_hi"; do
22916   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22917   cat >conftest.$ac_ext <<_ACEOF
22918 /* confdefs.h.  */
22919 _ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h.  */
22923 $ac_includes_default
22924 int
22925 main ()
22926 {
22927 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22928 test_array [0] = 0
22929
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest.$ac_objext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22936   (eval $ac_compile) 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } &&
22943          { ac_try='test -z "$ac_c_werror_flag"
22944                          || test ! -s conftest.err'
22945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946   (eval $ac_try) 2>&5
22947   ac_status=$?
22948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); }; } &&
22950          { ac_try='test -s conftest.$ac_objext'
22951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952   (eval $ac_try) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); }; }; then
22956   ac_hi=$ac_mid
22957 else
22958   echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961 ac_lo=`expr '(' $ac_mid ')' + 1`
22962 fi
22963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22964 done
22965 case $ac_lo in
22966 ?*) ac_cv_sizeof_char=$ac_lo;;
22967 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
22968 See \`config.log' for more details." >&5
22969 echo "$as_me: error: cannot compute sizeof (char), 77
22970 See \`config.log' for more details." >&2;}
22971    { (exit 1); exit 1; }; } ;;
22972 esac
22973 else
22974   if test "$cross_compiling" = yes; then
22975   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22976 See \`config.log' for more details." >&5
22977 echo "$as_me: error: cannot run test program while cross compiling
22978 See \`config.log' for more details." >&2;}
22979    { (exit 1); exit 1; }; }
22980 else
22981   cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h.  */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h.  */
22987 $ac_includes_default
22988 long longval () { return (long) (sizeof (char)); }
22989 unsigned long ulongval () { return (long) (sizeof (char)); }
22990 #include <stdio.h>
22991 #include <stdlib.h>
22992 int
22993 main ()
22994 {
22995
22996   FILE *f = fopen ("conftest.val", "w");
22997   if (! f)
22998     exit (1);
22999   if (((long) (sizeof (char))) < 0)
23000     {
23001       long i = longval ();
23002       if (i != ((long) (sizeof (char))))
23003         exit (1);
23004       fprintf (f, "%ld\n", i);
23005     }
23006   else
23007     {
23008       unsigned long i = ulongval ();
23009       if (i != ((long) (sizeof (char))))
23010         exit (1);
23011       fprintf (f, "%lu\n", i);
23012     }
23013   exit (ferror (f) || fclose (f) != 0);
23014
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021   (eval $ac_link) 2>&5
23022   ac_status=$?
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23026   (eval $ac_try) 2>&5
23027   ac_status=$?
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); }; }; then
23030   ac_cv_sizeof_char=`cat conftest.val`
23031 else
23032   echo "$as_me: program exited with status $ac_status" >&5
23033 echo "$as_me: failed program was:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23035
23036 ( exit $ac_status )
23037 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23038 See \`config.log' for more details." >&5
23039 echo "$as_me: error: cannot compute sizeof (char), 77
23040 See \`config.log' for more details." >&2;}
23041    { (exit 1); exit 1; }; }
23042 fi
23043 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23044 fi
23045 fi
23046 rm -f conftest.val
23047 else
23048   ac_cv_sizeof_char=0
23049 fi
23050 fi
23051 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23052 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23053 cat >>confdefs.h <<_ACEOF
23054 #define SIZEOF_CHAR $ac_cv_sizeof_char
23055 _ACEOF
23056
23057
23058 echo "$as_me:$LINENO: checking for short int" >&5
23059 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23060 if test "${ac_cv_type_short_int+set}" = set; then
23061   echo $ECHO_N "(cached) $ECHO_C" >&6
23062 else
23063   cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h.  */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h.  */
23069 $ac_includes_default
23070 int
23071 main ()
23072 {
23073 if ((short int *) 0)
23074   return 0;
23075 if (sizeof (short int))
23076   return 0;
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 rm -f conftest.$ac_objext
23082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23083   (eval $ac_compile) 2>conftest.er1
23084   ac_status=$?
23085   grep -v '^ *+' conftest.er1 >conftest.err
23086   rm -f conftest.er1
23087   cat conftest.err >&5
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } &&
23090          { ac_try='test -z "$ac_c_werror_flag"
23091                          || test ! -s conftest.err'
23092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093   (eval $ac_try) 2>&5
23094   ac_status=$?
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); }; } &&
23097          { ac_try='test -s conftest.$ac_objext'
23098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099   (eval $ac_try) 2>&5
23100   ac_status=$?
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); }; }; then
23103   ac_cv_type_short_int=yes
23104 else
23105   echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108 ac_cv_type_short_int=no
23109 fi
23110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23111 fi
23112 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23113 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23114
23115 echo "$as_me:$LINENO: checking size of short int" >&5
23116 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23117 if test "${ac_cv_sizeof_short_int+set}" = set; then
23118   echo $ECHO_N "(cached) $ECHO_C" >&6
23119 else
23120   if test "$ac_cv_type_short_int" = yes; then
23121   # The cast to unsigned long works around a bug in the HP C Compiler
23122   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23123   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23124   # This bug is HP SR number 8606223364.
23125   if test "$cross_compiling" = yes; then
23126   # Depending upon the size, compute the lo and hi bounds.
23127 cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133 $ac_includes_default
23134 int
23135 main ()
23136 {
23137 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23138 test_array [0] = 0
23139
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest.$ac_objext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23146   (eval $ac_compile) 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } &&
23153          { ac_try='test -z "$ac_c_werror_flag"
23154                          || test ! -s conftest.err'
23155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156   (eval $ac_try) 2>&5
23157   ac_status=$?
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); }; } &&
23160          { ac_try='test -s conftest.$ac_objext'
23161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162   (eval $ac_try) 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; }; then
23166   ac_lo=0 ac_mid=0
23167   while :; do
23168     cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h.  */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h.  */
23174 $ac_includes_default
23175 int
23176 main ()
23177 {
23178 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23179 test_array [0] = 0
23180
23181   ;
23182   return 0;
23183 }
23184 _ACEOF
23185 rm -f conftest.$ac_objext
23186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23187   (eval $ac_compile) 2>conftest.er1
23188   ac_status=$?
23189   grep -v '^ *+' conftest.er1 >conftest.err
23190   rm -f conftest.er1
23191   cat conftest.err >&5
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); } &&
23194          { ac_try='test -z "$ac_c_werror_flag"
23195                          || test ! -s conftest.err'
23196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197   (eval $ac_try) 2>&5
23198   ac_status=$?
23199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200   (exit $ac_status); }; } &&
23201          { ac_try='test -s conftest.$ac_objext'
23202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23203   (eval $ac_try) 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); }; }; then
23207   ac_hi=$ac_mid; break
23208 else
23209   echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23211
23212 ac_lo=`expr $ac_mid + 1`
23213                     if test $ac_lo -le $ac_mid; then
23214                       ac_lo= ac_hi=
23215                       break
23216                     fi
23217                     ac_mid=`expr 2 '*' $ac_mid + 1`
23218 fi
23219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23220   done
23221 else
23222   echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225 cat >conftest.$ac_ext <<_ACEOF
23226 /* confdefs.h.  */
23227 _ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h.  */
23231 $ac_includes_default
23232 int
23233 main ()
23234 {
23235 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23236 test_array [0] = 0
23237
23238   ;
23239   return 0;
23240 }
23241 _ACEOF
23242 rm -f conftest.$ac_objext
23243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23244   (eval $ac_compile) 2>conftest.er1
23245   ac_status=$?
23246   grep -v '^ *+' conftest.er1 >conftest.err
23247   rm -f conftest.er1
23248   cat conftest.err >&5
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); } &&
23251          { ac_try='test -z "$ac_c_werror_flag"
23252                          || test ! -s conftest.err'
23253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23254   (eval $ac_try) 2>&5
23255   ac_status=$?
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); }; } &&
23258          { ac_try='test -s conftest.$ac_objext'
23259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260   (eval $ac_try) 2>&5
23261   ac_status=$?
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); }; }; then
23264   ac_hi=-1 ac_mid=-1
23265   while :; do
23266     cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 $ac_includes_default
23273 int
23274 main ()
23275 {
23276 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23277 test_array [0] = 0
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285   (eval $ac_compile) 2>conftest.er1
23286   ac_status=$?
23287   grep -v '^ *+' conftest.er1 >conftest.err
23288   rm -f conftest.er1
23289   cat conftest.err >&5
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); } &&
23292          { ac_try='test -z "$ac_c_werror_flag"
23293                          || test ! -s conftest.err'
23294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295   (eval $ac_try) 2>&5
23296   ac_status=$?
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); }; } &&
23299          { ac_try='test -s conftest.$ac_objext'
23300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301   (eval $ac_try) 2>&5
23302   ac_status=$?
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); }; }; then
23305   ac_lo=$ac_mid; break
23306 else
23307   echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_hi=`expr '(' $ac_mid ')' - 1`
23311                        if test $ac_mid -le $ac_hi; then
23312                          ac_lo= ac_hi=
23313                          break
23314                        fi
23315                        ac_mid=`expr 2 '*' $ac_mid`
23316 fi
23317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23318   done
23319 else
23320   echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 ac_lo= ac_hi=
23324 fi
23325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23326 fi
23327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23328 # Binary search between lo and hi bounds.
23329 while test "x$ac_lo" != "x$ac_hi"; do
23330   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23331   cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 $ac_includes_default
23338 int
23339 main ()
23340 {
23341 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23342 test_array [0] = 0
23343
23344   ;
23345   return 0;
23346 }
23347 _ACEOF
23348 rm -f conftest.$ac_objext
23349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23350   (eval $ac_compile) 2>conftest.er1
23351   ac_status=$?
23352   grep -v '^ *+' conftest.er1 >conftest.err
23353   rm -f conftest.er1
23354   cat conftest.err >&5
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); } &&
23357          { ac_try='test -z "$ac_c_werror_flag"
23358                          || test ! -s conftest.err'
23359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360   (eval $ac_try) 2>&5
23361   ac_status=$?
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); }; } &&
23364          { ac_try='test -s conftest.$ac_objext'
23365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23366   (eval $ac_try) 2>&5
23367   ac_status=$?
23368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369   (exit $ac_status); }; }; then
23370   ac_hi=$ac_mid
23371 else
23372   echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375 ac_lo=`expr '(' $ac_mid ')' + 1`
23376 fi
23377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23378 done
23379 case $ac_lo in
23380 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23382 See \`config.log' for more details." >&5
23383 echo "$as_me: error: cannot compute sizeof (short int), 77
23384 See \`config.log' for more details." >&2;}
23385    { (exit 1); exit 1; }; } ;;
23386 esac
23387 else
23388   if test "$cross_compiling" = yes; then
23389   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23390 See \`config.log' for more details." >&5
23391 echo "$as_me: error: cannot run test program while cross compiling
23392 See \`config.log' for more details." >&2;}
23393    { (exit 1); exit 1; }; }
23394 else
23395   cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401 $ac_includes_default
23402 long longval () { return (long) (sizeof (short int)); }
23403 unsigned long ulongval () { return (long) (sizeof (short int)); }
23404 #include <stdio.h>
23405 #include <stdlib.h>
23406 int
23407 main ()
23408 {
23409
23410   FILE *f = fopen ("conftest.val", "w");
23411   if (! f)
23412     exit (1);
23413   if (((long) (sizeof (short int))) < 0)
23414     {
23415       long i = longval ();
23416       if (i != ((long) (sizeof (short int))))
23417         exit (1);
23418       fprintf (f, "%ld\n", i);
23419     }
23420   else
23421     {
23422       unsigned long i = ulongval ();
23423       if (i != ((long) (sizeof (short int))))
23424         exit (1);
23425       fprintf (f, "%lu\n", i);
23426     }
23427   exit (ferror (f) || fclose (f) != 0);
23428
23429   ;
23430   return 0;
23431 }
23432 _ACEOF
23433 rm -f conftest$ac_exeext
23434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23435   (eval $ac_link) 2>&5
23436   ac_status=$?
23437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; }; then
23444   ac_cv_sizeof_short_int=`cat conftest.val`
23445 else
23446   echo "$as_me: program exited with status $ac_status" >&5
23447 echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23449
23450 ( exit $ac_status )
23451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23452 See \`config.log' for more details." >&5
23453 echo "$as_me: error: cannot compute sizeof (short int), 77
23454 See \`config.log' for more details." >&2;}
23455    { (exit 1); exit 1; }; }
23456 fi
23457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23458 fi
23459 fi
23460 rm -f conftest.val
23461 else
23462   ac_cv_sizeof_short_int=0
23463 fi
23464 fi
23465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23466 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23467 cat >>confdefs.h <<_ACEOF
23468 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23469 _ACEOF
23470
23471
23472 echo "$as_me:$LINENO: checking for int" >&5
23473 echo $ECHO_N "checking for int... $ECHO_C" >&6
23474 if test "${ac_cv_type_int+set}" = set; then
23475   echo $ECHO_N "(cached) $ECHO_C" >&6
23476 else
23477   cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483 $ac_includes_default
23484 int
23485 main ()
23486 {
23487 if ((int *) 0)
23488   return 0;
23489 if (sizeof (int))
23490   return 0;
23491   ;
23492   return 0;
23493 }
23494 _ACEOF
23495 rm -f conftest.$ac_objext
23496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23497   (eval $ac_compile) 2>conftest.er1
23498   ac_status=$?
23499   grep -v '^ *+' conftest.er1 >conftest.err
23500   rm -f conftest.er1
23501   cat conftest.err >&5
23502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); } &&
23504          { ac_try='test -z "$ac_c_werror_flag"
23505                          || test ! -s conftest.err'
23506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507   (eval $ac_try) 2>&5
23508   ac_status=$?
23509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510   (exit $ac_status); }; } &&
23511          { ac_try='test -s conftest.$ac_objext'
23512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23513   (eval $ac_try) 2>&5
23514   ac_status=$?
23515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516   (exit $ac_status); }; }; then
23517   ac_cv_type_int=yes
23518 else
23519   echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23521
23522 ac_cv_type_int=no
23523 fi
23524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23525 fi
23526 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23527 echo "${ECHO_T}$ac_cv_type_int" >&6
23528
23529 echo "$as_me:$LINENO: checking size of int" >&5
23530 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23531 if test "${ac_cv_sizeof_int+set}" = set; then
23532   echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534   if test "$ac_cv_type_int" = yes; then
23535   # The cast to unsigned long works around a bug in the HP C Compiler
23536   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23537   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23538   # This bug is HP SR number 8606223364.
23539   if test "$cross_compiling" = yes; then
23540   # Depending upon the size, compute the lo and hi bounds.
23541 cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h.  */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h.  */
23547 $ac_includes_default
23548 int
23549 main ()
23550 {
23551 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23552 test_array [0] = 0
23553
23554   ;
23555   return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23560   (eval $ac_compile) 2>conftest.er1
23561   ac_status=$?
23562   grep -v '^ *+' conftest.er1 >conftest.err
23563   rm -f conftest.er1
23564   cat conftest.err >&5
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); } &&
23567          { ac_try='test -z "$ac_c_werror_flag"
23568                          || test ! -s conftest.err'
23569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570   (eval $ac_try) 2>&5
23571   ac_status=$?
23572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573   (exit $ac_status); }; } &&
23574          { ac_try='test -s conftest.$ac_objext'
23575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576   (eval $ac_try) 2>&5
23577   ac_status=$?
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; }; then
23580   ac_lo=0 ac_mid=0
23581   while :; do
23582     cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h.  */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h.  */
23588 $ac_includes_default
23589 int
23590 main ()
23591 {
23592 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23593 test_array [0] = 0
23594
23595   ;
23596   return 0;
23597 }
23598 _ACEOF
23599 rm -f conftest.$ac_objext
23600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23601   (eval $ac_compile) 2>conftest.er1
23602   ac_status=$?
23603   grep -v '^ *+' conftest.er1 >conftest.err
23604   rm -f conftest.er1
23605   cat conftest.err >&5
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); } &&
23608          { ac_try='test -z "$ac_c_werror_flag"
23609                          || test ! -s conftest.err'
23610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23611   (eval $ac_try) 2>&5
23612   ac_status=$?
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); }; } &&
23615          { ac_try='test -s conftest.$ac_objext'
23616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; }; then
23621   ac_hi=$ac_mid; break
23622 else
23623   echo "$as_me: failed program was:" >&5
23624 sed 's/^/| /' conftest.$ac_ext >&5
23625
23626 ac_lo=`expr $ac_mid + 1`
23627                     if test $ac_lo -le $ac_mid; then
23628                       ac_lo= ac_hi=
23629                       break
23630                     fi
23631                     ac_mid=`expr 2 '*' $ac_mid + 1`
23632 fi
23633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23634   done
23635 else
23636   echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23638
23639 cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645 $ac_includes_default
23646 int
23647 main ()
23648 {
23649 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23650 test_array [0] = 0
23651
23652   ;
23653   return 0;
23654 }
23655 _ACEOF
23656 rm -f conftest.$ac_objext
23657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23658   (eval $ac_compile) 2>conftest.er1
23659   ac_status=$?
23660   grep -v '^ *+' conftest.er1 >conftest.err
23661   rm -f conftest.er1
23662   cat conftest.err >&5
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); } &&
23665          { ac_try='test -z "$ac_c_werror_flag"
23666                          || test ! -s conftest.err'
23667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; } &&
23672          { ac_try='test -s conftest.$ac_objext'
23673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23674   (eval $ac_try) 2>&5
23675   ac_status=$?
23676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677   (exit $ac_status); }; }; then
23678   ac_hi=-1 ac_mid=-1
23679   while :; do
23680     cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h.  */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h.  */
23686 $ac_includes_default
23687 int
23688 main ()
23689 {
23690 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23691 test_array [0] = 0
23692
23693   ;
23694   return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext
23698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23699   (eval $ac_compile) 2>conftest.er1
23700   ac_status=$?
23701   grep -v '^ *+' conftest.er1 >conftest.err
23702   rm -f conftest.er1
23703   cat conftest.err >&5
23704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705   (exit $ac_status); } &&
23706          { ac_try='test -z "$ac_c_werror_flag"
23707                          || test ! -s conftest.err'
23708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709   (eval $ac_try) 2>&5
23710   ac_status=$?
23711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712   (exit $ac_status); }; } &&
23713          { ac_try='test -s conftest.$ac_objext'
23714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715   (eval $ac_try) 2>&5
23716   ac_status=$?
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); }; }; then
23719   ac_lo=$ac_mid; break
23720 else
23721   echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23723
23724 ac_hi=`expr '(' $ac_mid ')' - 1`
23725                        if test $ac_mid -le $ac_hi; then
23726                          ac_lo= ac_hi=
23727                          break
23728                        fi
23729                        ac_mid=`expr 2 '*' $ac_mid`
23730 fi
23731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23732   done
23733 else
23734   echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737 ac_lo= ac_hi=
23738 fi
23739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23740 fi
23741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23742 # Binary search between lo and hi bounds.
23743 while test "x$ac_lo" != "x$ac_hi"; do
23744   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23745   cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751 $ac_includes_default
23752 int
23753 main ()
23754 {
23755 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23756 test_array [0] = 0
23757
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 rm -f conftest.$ac_objext
23763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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          { ac_try='test -z "$ac_c_werror_flag"
23772                          || test ! -s conftest.err'
23773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23774   (eval $ac_try) 2>&5
23775   ac_status=$?
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); }; } &&
23778          { ac_try='test -s conftest.$ac_objext'
23779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780   (eval $ac_try) 2>&5
23781   ac_status=$?
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); }; }; then
23784   ac_hi=$ac_mid
23785 else
23786   echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23788
23789 ac_lo=`expr '(' $ac_mid ')' + 1`
23790 fi
23791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23792 done
23793 case $ac_lo in
23794 ?*) ac_cv_sizeof_int=$ac_lo;;
23795 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23796 See \`config.log' for more details." >&5
23797 echo "$as_me: error: cannot compute sizeof (int), 77
23798 See \`config.log' for more details." >&2;}
23799    { (exit 1); exit 1; }; } ;;
23800 esac
23801 else
23802   if test "$cross_compiling" = yes; then
23803   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23804 See \`config.log' for more details." >&5
23805 echo "$as_me: error: cannot run test program while cross compiling
23806 See \`config.log' for more details." >&2;}
23807    { (exit 1); exit 1; }; }
23808 else
23809   cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 $ac_includes_default
23816 long longval () { return (long) (sizeof (int)); }
23817 unsigned long ulongval () { return (long) (sizeof (int)); }
23818 #include <stdio.h>
23819 #include <stdlib.h>
23820 int
23821 main ()
23822 {
23823
23824   FILE *f = fopen ("conftest.val", "w");
23825   if (! f)
23826     exit (1);
23827   if (((long) (sizeof (int))) < 0)
23828     {
23829       long i = longval ();
23830       if (i != ((long) (sizeof (int))))
23831         exit (1);
23832       fprintf (f, "%ld\n", i);
23833     }
23834   else
23835     {
23836       unsigned long i = ulongval ();
23837       if (i != ((long) (sizeof (int))))
23838         exit (1);
23839       fprintf (f, "%lu\n", i);
23840     }
23841   exit (ferror (f) || fclose (f) != 0);
23842
23843   ;
23844   return 0;
23845 }
23846 _ACEOF
23847 rm -f conftest$ac_exeext
23848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23849   (eval $ac_link) 2>&5
23850   ac_status=$?
23851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854   (eval $ac_try) 2>&5
23855   ac_status=$?
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); }; }; then
23858   ac_cv_sizeof_int=`cat conftest.val`
23859 else
23860   echo "$as_me: program exited with status $ac_status" >&5
23861 echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23863
23864 ( exit $ac_status )
23865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23866 See \`config.log' for more details." >&5
23867 echo "$as_me: error: cannot compute sizeof (int), 77
23868 See \`config.log' for more details." >&2;}
23869    { (exit 1); exit 1; }; }
23870 fi
23871 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23872 fi
23873 fi
23874 rm -f conftest.val
23875 else
23876   ac_cv_sizeof_int=0
23877 fi
23878 fi
23879 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23880 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23881 cat >>confdefs.h <<_ACEOF
23882 #define SIZEOF_INT $ac_cv_sizeof_int
23883 _ACEOF
23884
23885
23886 echo "$as_me:$LINENO: checking for long int" >&5
23887 echo $ECHO_N "checking for long int... $ECHO_C" >&6
23888 if test "${ac_cv_type_long_int+set}" = set; then
23889   echo $ECHO_N "(cached) $ECHO_C" >&6
23890 else
23891   cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h.  */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h.  */
23897 $ac_includes_default
23898 int
23899 main ()
23900 {
23901 if ((long int *) 0)
23902   return 0;
23903 if (sizeof (long int))
23904   return 0;
23905   ;
23906   return 0;
23907 }
23908 _ACEOF
23909 rm -f conftest.$ac_objext
23910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23911   (eval $ac_compile) 2>conftest.er1
23912   ac_status=$?
23913   grep -v '^ *+' conftest.er1 >conftest.err
23914   rm -f conftest.er1
23915   cat conftest.err >&5
23916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917   (exit $ac_status); } &&
23918          { ac_try='test -z "$ac_c_werror_flag"
23919                          || test ! -s conftest.err'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; } &&
23925          { ac_try='test -s conftest.$ac_objext'
23926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23927   (eval $ac_try) 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); }; }; then
23931   ac_cv_type_long_int=yes
23932 else
23933   echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.$ac_ext >&5
23935
23936 ac_cv_type_long_int=no
23937 fi
23938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23939 fi
23940 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23941 echo "${ECHO_T}$ac_cv_type_long_int" >&6
23942
23943 echo "$as_me:$LINENO: checking size of long int" >&5
23944 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
23945 if test "${ac_cv_sizeof_long_int+set}" = set; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948   if test "$ac_cv_type_long_int" = yes; then
23949   # The cast to unsigned long works around a bug in the HP C Compiler
23950   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23951   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23952   # This bug is HP SR number 8606223364.
23953   if test "$cross_compiling" = yes; then
23954   # Depending upon the size, compute the lo and hi bounds.
23955 cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961 $ac_includes_default
23962 int
23963 main ()
23964 {
23965 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
23966 test_array [0] = 0
23967
23968   ;
23969   return 0;
23970 }
23971 _ACEOF
23972 rm -f conftest.$ac_objext
23973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23974   (eval $ac_compile) 2>conftest.er1
23975   ac_status=$?
23976   grep -v '^ *+' conftest.er1 >conftest.err
23977   rm -f conftest.er1
23978   cat conftest.err >&5
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); } &&
23981          { ac_try='test -z "$ac_c_werror_flag"
23982                          || test ! -s conftest.err'
23983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23984   (eval $ac_try) 2>&5
23985   ac_status=$?
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); }; } &&
23988          { ac_try='test -s conftest.$ac_objext'
23989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23990   (eval $ac_try) 2>&5
23991   ac_status=$?
23992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993   (exit $ac_status); }; }; then
23994   ac_lo=0 ac_mid=0
23995   while :; do
23996     cat >conftest.$ac_ext <<_ACEOF
23997 /* confdefs.h.  */
23998 _ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h.  */
24002 $ac_includes_default
24003 int
24004 main ()
24005 {
24006 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24007 test_array [0] = 0
24008
24009   ;
24010   return 0;
24011 }
24012 _ACEOF
24013 rm -f conftest.$ac_objext
24014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24015   (eval $ac_compile) 2>conftest.er1
24016   ac_status=$?
24017   grep -v '^ *+' conftest.er1 >conftest.err
24018   rm -f conftest.er1
24019   cat conftest.err >&5
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } &&
24022          { ac_try='test -z "$ac_c_werror_flag"
24023                          || test ! -s conftest.err'
24024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025   (eval $ac_try) 2>&5
24026   ac_status=$?
24027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028   (exit $ac_status); }; } &&
24029          { ac_try='test -s conftest.$ac_objext'
24030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031   (eval $ac_try) 2>&5
24032   ac_status=$?
24033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034   (exit $ac_status); }; }; then
24035   ac_hi=$ac_mid; break
24036 else
24037   echo "$as_me: failed program was:" >&5
24038 sed 's/^/| /' conftest.$ac_ext >&5
24039
24040 ac_lo=`expr $ac_mid + 1`
24041                     if test $ac_lo -le $ac_mid; then
24042                       ac_lo= ac_hi=
24043                       break
24044                     fi
24045                     ac_mid=`expr 2 '*' $ac_mid + 1`
24046 fi
24047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24048   done
24049 else
24050   echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
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 int
24061 main ()
24062 {
24063 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24064 test_array [0] = 0
24065
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 rm -f conftest.$ac_objext
24071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24072   (eval $ac_compile) 2>conftest.er1
24073   ac_status=$?
24074   grep -v '^ *+' conftest.er1 >conftest.err
24075   rm -f conftest.er1
24076   cat conftest.err >&5
24077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078   (exit $ac_status); } &&
24079          { ac_try='test -z "$ac_c_werror_flag"
24080                          || test ! -s conftest.err'
24081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24082   (eval $ac_try) 2>&5
24083   ac_status=$?
24084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085   (exit $ac_status); }; } &&
24086          { ac_try='test -s conftest.$ac_objext'
24087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24088   (eval $ac_try) 2>&5
24089   ac_status=$?
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); }; }; then
24092   ac_hi=-1 ac_mid=-1
24093   while :; do
24094     cat >conftest.$ac_ext <<_ACEOF
24095 /* confdefs.h.  */
24096 _ACEOF
24097 cat confdefs.h >>conftest.$ac_ext
24098 cat >>conftest.$ac_ext <<_ACEOF
24099 /* end confdefs.h.  */
24100 $ac_includes_default
24101 int
24102 main ()
24103 {
24104 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24105 test_array [0] = 0
24106
24107   ;
24108   return 0;
24109 }
24110 _ACEOF
24111 rm -f conftest.$ac_objext
24112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24113   (eval $ac_compile) 2>conftest.er1
24114   ac_status=$?
24115   grep -v '^ *+' conftest.er1 >conftest.err
24116   rm -f conftest.er1
24117   cat conftest.err >&5
24118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119   (exit $ac_status); } &&
24120          { ac_try='test -z "$ac_c_werror_flag"
24121                          || test ! -s conftest.err'
24122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123   (eval $ac_try) 2>&5
24124   ac_status=$?
24125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126   (exit $ac_status); }; } &&
24127          { ac_try='test -s conftest.$ac_objext'
24128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129   (eval $ac_try) 2>&5
24130   ac_status=$?
24131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132   (exit $ac_status); }; }; then
24133   ac_lo=$ac_mid; break
24134 else
24135   echo "$as_me: failed program was:" >&5
24136 sed 's/^/| /' conftest.$ac_ext >&5
24137
24138 ac_hi=`expr '(' $ac_mid ')' - 1`
24139                        if test $ac_mid -le $ac_hi; then
24140                          ac_lo= ac_hi=
24141                          break
24142                        fi
24143                        ac_mid=`expr 2 '*' $ac_mid`
24144 fi
24145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24146   done
24147 else
24148   echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151 ac_lo= ac_hi=
24152 fi
24153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24154 fi
24155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24156 # Binary search between lo and hi bounds.
24157 while test "x$ac_lo" != "x$ac_hi"; do
24158   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24159   cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h.  */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h.  */
24165 $ac_includes_default
24166 int
24167 main ()
24168 {
24169 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24170 test_array [0] = 0
24171
24172   ;
24173   return 0;
24174 }
24175 _ACEOF
24176 rm -f conftest.$ac_objext
24177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24178   (eval $ac_compile) 2>conftest.er1
24179   ac_status=$?
24180   grep -v '^ *+' conftest.er1 >conftest.err
24181   rm -f conftest.er1
24182   cat conftest.err >&5
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } &&
24185          { ac_try='test -z "$ac_c_werror_flag"
24186                          || test ! -s conftest.err'
24187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188   (eval $ac_try) 2>&5
24189   ac_status=$?
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); }; } &&
24192          { ac_try='test -s conftest.$ac_objext'
24193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194   (eval $ac_try) 2>&5
24195   ac_status=$?
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); }; }; then
24198   ac_hi=$ac_mid
24199 else
24200   echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24202
24203 ac_lo=`expr '(' $ac_mid ')' + 1`
24204 fi
24205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24206 done
24207 case $ac_lo in
24208 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24209 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24210 See \`config.log' for more details." >&5
24211 echo "$as_me: error: cannot compute sizeof (long int), 77
24212 See \`config.log' for more details." >&2;}
24213    { (exit 1); exit 1; }; } ;;
24214 esac
24215 else
24216   if test "$cross_compiling" = yes; then
24217   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24218 See \`config.log' for more details." >&5
24219 echo "$as_me: error: cannot run test program while cross compiling
24220 See \`config.log' for more details." >&2;}
24221    { (exit 1); exit 1; }; }
24222 else
24223   cat >conftest.$ac_ext <<_ACEOF
24224 /* confdefs.h.  */
24225 _ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h.  */
24229 $ac_includes_default
24230 long longval () { return (long) (sizeof (long int)); }
24231 unsigned long ulongval () { return (long) (sizeof (long int)); }
24232 #include <stdio.h>
24233 #include <stdlib.h>
24234 int
24235 main ()
24236 {
24237
24238   FILE *f = fopen ("conftest.val", "w");
24239   if (! f)
24240     exit (1);
24241   if (((long) (sizeof (long int))) < 0)
24242     {
24243       long i = longval ();
24244       if (i != ((long) (sizeof (long int))))
24245         exit (1);
24246       fprintf (f, "%ld\n", i);
24247     }
24248   else
24249     {
24250       unsigned long i = ulongval ();
24251       if (i != ((long) (sizeof (long int))))
24252         exit (1);
24253       fprintf (f, "%lu\n", i);
24254     }
24255   exit (ferror (f) || fclose (f) != 0);
24256
24257   ;
24258   return 0;
24259 }
24260 _ACEOF
24261 rm -f conftest$ac_exeext
24262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24263   (eval $ac_link) 2>&5
24264   ac_status=$?
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); }; }; then
24272   ac_cv_sizeof_long_int=`cat conftest.val`
24273 else
24274   echo "$as_me: program exited with status $ac_status" >&5
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24277
24278 ( exit $ac_status )
24279 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24280 See \`config.log' for more details." >&5
24281 echo "$as_me: error: cannot compute sizeof (long int), 77
24282 See \`config.log' for more details." >&2;}
24283    { (exit 1); exit 1; }; }
24284 fi
24285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24286 fi
24287 fi
24288 rm -f conftest.val
24289 else
24290   ac_cv_sizeof_long_int=0
24291 fi
24292 fi
24293 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24294 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24295 cat >>confdefs.h <<_ACEOF
24296 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24297 _ACEOF
24298
24299
24300 echo "$as_me:$LINENO: checking for long long int" >&5
24301 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24302 if test "${ac_cv_type_long_long_int+set}" = set; then
24303   echo $ECHO_N "(cached) $ECHO_C" >&6
24304 else
24305   cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 $ac_includes_default
24312 int
24313 main ()
24314 {
24315 if ((long long int *) 0)
24316   return 0;
24317 if (sizeof (long long int))
24318   return 0;
24319   ;
24320   return 0;
24321 }
24322 _ACEOF
24323 rm -f conftest.$ac_objext
24324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24325   (eval $ac_compile) 2>conftest.er1
24326   ac_status=$?
24327   grep -v '^ *+' conftest.er1 >conftest.err
24328   rm -f conftest.er1
24329   cat conftest.err >&5
24330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331   (exit $ac_status); } &&
24332          { ac_try='test -z "$ac_c_werror_flag"
24333                          || test ! -s conftest.err'
24334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335   (eval $ac_try) 2>&5
24336   ac_status=$?
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); }; } &&
24339          { ac_try='test -s conftest.$ac_objext'
24340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341   (eval $ac_try) 2>&5
24342   ac_status=$?
24343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344   (exit $ac_status); }; }; then
24345   ac_cv_type_long_long_int=yes
24346 else
24347   echo "$as_me: failed program was:" >&5
24348 sed 's/^/| /' conftest.$ac_ext >&5
24349
24350 ac_cv_type_long_long_int=no
24351 fi
24352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24353 fi
24354 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24355 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24356
24357 echo "$as_me:$LINENO: checking size of long long int" >&5
24358 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24359 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24360   echo $ECHO_N "(cached) $ECHO_C" >&6
24361 else
24362   if test "$ac_cv_type_long_long_int" = yes; then
24363   # The cast to unsigned long works around a bug in the HP C Compiler
24364   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24365   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24366   # This bug is HP SR number 8606223364.
24367   if test "$cross_compiling" = yes; then
24368   # Depending upon the size, compute the lo and hi bounds.
24369 cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375 $ac_includes_default
24376 int
24377 main ()
24378 {
24379 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24380 test_array [0] = 0
24381
24382   ;
24383   return 0;
24384 }
24385 _ACEOF
24386 rm -f conftest.$ac_objext
24387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24388   (eval $ac_compile) 2>conftest.er1
24389   ac_status=$?
24390   grep -v '^ *+' conftest.er1 >conftest.err
24391   rm -f conftest.er1
24392   cat conftest.err >&5
24393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394   (exit $ac_status); } &&
24395          { ac_try='test -z "$ac_c_werror_flag"
24396                          || test ! -s conftest.err'
24397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398   (eval $ac_try) 2>&5
24399   ac_status=$?
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); }; } &&
24402          { ac_try='test -s conftest.$ac_objext'
24403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404   (eval $ac_try) 2>&5
24405   ac_status=$?
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); }; }; then
24408   ac_lo=0 ac_mid=0
24409   while :; do
24410     cat >conftest.$ac_ext <<_ACEOF
24411 /* confdefs.h.  */
24412 _ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h.  */
24416 $ac_includes_default
24417 int
24418 main ()
24419 {
24420 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24421 test_array [0] = 0
24422
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext
24428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24429   (eval $ac_compile) 2>conftest.er1
24430   ac_status=$?
24431   grep -v '^ *+' conftest.er1 >conftest.err
24432   rm -f conftest.er1
24433   cat conftest.err >&5
24434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435   (exit $ac_status); } &&
24436          { ac_try='test -z "$ac_c_werror_flag"
24437                          || test ! -s conftest.err'
24438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439   (eval $ac_try) 2>&5
24440   ac_status=$?
24441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442   (exit $ac_status); }; } &&
24443          { ac_try='test -s conftest.$ac_objext'
24444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445   (eval $ac_try) 2>&5
24446   ac_status=$?
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); }; }; then
24449   ac_hi=$ac_mid; break
24450 else
24451   echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24453
24454 ac_lo=`expr $ac_mid + 1`
24455                     if test $ac_lo -le $ac_mid; then
24456                       ac_lo= ac_hi=
24457                       break
24458                     fi
24459                     ac_mid=`expr 2 '*' $ac_mid + 1`
24460 fi
24461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24462   done
24463 else
24464   echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.$ac_ext >&5
24466
24467 cat >conftest.$ac_ext <<_ACEOF
24468 /* confdefs.h.  */
24469 _ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h.  */
24473 $ac_includes_default
24474 int
24475 main ()
24476 {
24477 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24478 test_array [0] = 0
24479
24480   ;
24481   return 0;
24482 }
24483 _ACEOF
24484 rm -f conftest.$ac_objext
24485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24486   (eval $ac_compile) 2>conftest.er1
24487   ac_status=$?
24488   grep -v '^ *+' conftest.er1 >conftest.err
24489   rm -f conftest.er1
24490   cat conftest.err >&5
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); } &&
24493          { ac_try='test -z "$ac_c_werror_flag"
24494                          || test ! -s conftest.err'
24495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496   (eval $ac_try) 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; } &&
24500          { ac_try='test -s conftest.$ac_objext'
24501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502   (eval $ac_try) 2>&5
24503   ac_status=$?
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); }; }; then
24506   ac_hi=-1 ac_mid=-1
24507   while :; do
24508     cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514 $ac_includes_default
24515 int
24516 main ()
24517 {
24518 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24519 test_array [0] = 0
24520
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 rm -f conftest.$ac_objext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24527   (eval $ac_compile) 2>conftest.er1
24528   ac_status=$?
24529   grep -v '^ *+' conftest.er1 >conftest.err
24530   rm -f conftest.er1
24531   cat conftest.err >&5
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); } &&
24534          { ac_try='test -z "$ac_c_werror_flag"
24535                          || test ! -s conftest.err'
24536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537   (eval $ac_try) 2>&5
24538   ac_status=$?
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); }; } &&
24541          { ac_try='test -s conftest.$ac_objext'
24542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); }; }; then
24547   ac_lo=$ac_mid; break
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_hi=`expr '(' $ac_mid ')' - 1`
24553                        if test $ac_mid -le $ac_hi; then
24554                          ac_lo= ac_hi=
24555                          break
24556                        fi
24557                        ac_mid=`expr 2 '*' $ac_mid`
24558 fi
24559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24560   done
24561 else
24562   echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24564
24565 ac_lo= ac_hi=
24566 fi
24567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24568 fi
24569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24570 # Binary search between lo and hi bounds.
24571 while test "x$ac_lo" != "x$ac_hi"; do
24572   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24573   cat >conftest.$ac_ext <<_ACEOF
24574 /* confdefs.h.  */
24575 _ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h.  */
24579 $ac_includes_default
24580 int
24581 main ()
24582 {
24583 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24584 test_array [0] = 0
24585
24586   ;
24587   return 0;
24588 }
24589 _ACEOF
24590 rm -f conftest.$ac_objext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24592   (eval $ac_compile) 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } &&
24599          { ac_try='test -z "$ac_c_werror_flag"
24600                          || test ! -s conftest.err'
24601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602   (eval $ac_try) 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); }; } &&
24606          { ac_try='test -s conftest.$ac_objext'
24607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); }; }; then
24612   ac_hi=$ac_mid
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ac_lo=`expr '(' $ac_mid ')' + 1`
24618 fi
24619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24620 done
24621 case $ac_lo in
24622 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24623 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24624 See \`config.log' for more details." >&5
24625 echo "$as_me: error: cannot compute sizeof (long long int), 77
24626 See \`config.log' for more details." >&2;}
24627    { (exit 1); exit 1; }; } ;;
24628 esac
24629 else
24630   if test "$cross_compiling" = yes; then
24631   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24632 See \`config.log' for more details." >&5
24633 echo "$as_me: error: cannot run test program while cross compiling
24634 See \`config.log' for more details." >&2;}
24635    { (exit 1); exit 1; }; }
24636 else
24637   cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h.  */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h.  */
24643 $ac_includes_default
24644 long longval () { return (long) (sizeof (long long int)); }
24645 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24646 #include <stdio.h>
24647 #include <stdlib.h>
24648 int
24649 main ()
24650 {
24651
24652   FILE *f = fopen ("conftest.val", "w");
24653   if (! f)
24654     exit (1);
24655   if (((long) (sizeof (long long int))) < 0)
24656     {
24657       long i = longval ();
24658       if (i != ((long) (sizeof (long long int))))
24659         exit (1);
24660       fprintf (f, "%ld\n", i);
24661     }
24662   else
24663     {
24664       unsigned long i = ulongval ();
24665       if (i != ((long) (sizeof (long long int))))
24666         exit (1);
24667       fprintf (f, "%lu\n", i);
24668     }
24669   exit (ferror (f) || fclose (f) != 0);
24670
24671   ;
24672   return 0;
24673 }
24674 _ACEOF
24675 rm -f conftest$ac_exeext
24676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24677   (eval $ac_link) 2>&5
24678   ac_status=$?
24679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24682   (eval $ac_try) 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; }; then
24686   ac_cv_sizeof_long_long_int=`cat conftest.val`
24687 else
24688   echo "$as_me: program exited with status $ac_status" >&5
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692 ( exit $ac_status )
24693 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24694 See \`config.log' for more details." >&5
24695 echo "$as_me: error: cannot compute sizeof (long long int), 77
24696 See \`config.log' for more details." >&2;}
24697    { (exit 1); exit 1; }; }
24698 fi
24699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24700 fi
24701 fi
24702 rm -f conftest.val
24703 else
24704   ac_cv_sizeof_long_long_int=0
24705 fi
24706 fi
24707 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24708 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24709 cat >>confdefs.h <<_ACEOF
24710 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24711 _ACEOF
24712
24713
24714 echo "$as_me:$LINENO: checking for int *" >&5
24715 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24716 if test "${ac_cv_type_int_p+set}" = set; then
24717   echo $ECHO_N "(cached) $ECHO_C" >&6
24718 else
24719   cat >conftest.$ac_ext <<_ACEOF
24720 /* confdefs.h.  */
24721 _ACEOF
24722 cat confdefs.h >>conftest.$ac_ext
24723 cat >>conftest.$ac_ext <<_ACEOF
24724 /* end confdefs.h.  */
24725 $ac_includes_default
24726 int
24727 main ()
24728 {
24729 if ((int * *) 0)
24730   return 0;
24731 if (sizeof (int *))
24732   return 0;
24733   ;
24734   return 0;
24735 }
24736 _ACEOF
24737 rm -f conftest.$ac_objext
24738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24739   (eval $ac_compile) 2>conftest.er1
24740   ac_status=$?
24741   grep -v '^ *+' conftest.er1 >conftest.err
24742   rm -f conftest.er1
24743   cat conftest.err >&5
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); } &&
24746          { ac_try='test -z "$ac_c_werror_flag"
24747                          || test ! -s conftest.err'
24748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24749   (eval $ac_try) 2>&5
24750   ac_status=$?
24751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752   (exit $ac_status); }; } &&
24753          { ac_try='test -s conftest.$ac_objext'
24754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755   (eval $ac_try) 2>&5
24756   ac_status=$?
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); }; }; then
24759   ac_cv_type_int_p=yes
24760 else
24761   echo "$as_me: failed program was:" >&5
24762 sed 's/^/| /' conftest.$ac_ext >&5
24763
24764 ac_cv_type_int_p=no
24765 fi
24766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24767 fi
24768 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24769 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24770
24771 echo "$as_me:$LINENO: checking size of int *" >&5
24772 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24773 if test "${ac_cv_sizeof_int_p+set}" = set; then
24774   echo $ECHO_N "(cached) $ECHO_C" >&6
24775 else
24776   if test "$ac_cv_type_int_p" = yes; then
24777   # The cast to unsigned long works around a bug in the HP C Compiler
24778   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24779   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24780   # This bug is HP SR number 8606223364.
24781   if test "$cross_compiling" = yes; then
24782   # Depending upon the size, compute the lo and hi bounds.
24783 cat >conftest.$ac_ext <<_ACEOF
24784 /* confdefs.h.  */
24785 _ACEOF
24786 cat confdefs.h >>conftest.$ac_ext
24787 cat >>conftest.$ac_ext <<_ACEOF
24788 /* end confdefs.h.  */
24789 $ac_includes_default
24790 int
24791 main ()
24792 {
24793 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24794 test_array [0] = 0
24795
24796   ;
24797   return 0;
24798 }
24799 _ACEOF
24800 rm -f conftest.$ac_objext
24801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24802   (eval $ac_compile) 2>conftest.er1
24803   ac_status=$?
24804   grep -v '^ *+' conftest.er1 >conftest.err
24805   rm -f conftest.er1
24806   cat conftest.err >&5
24807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808   (exit $ac_status); } &&
24809          { ac_try='test -z "$ac_c_werror_flag"
24810                          || test ! -s conftest.err'
24811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812   (eval $ac_try) 2>&5
24813   ac_status=$?
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); }; } &&
24816          { ac_try='test -s conftest.$ac_objext'
24817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818   (eval $ac_try) 2>&5
24819   ac_status=$?
24820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); }; }; then
24822   ac_lo=0 ac_mid=0
24823   while :; do
24824     cat >conftest.$ac_ext <<_ACEOF
24825 /* confdefs.h.  */
24826 _ACEOF
24827 cat confdefs.h >>conftest.$ac_ext
24828 cat >>conftest.$ac_ext <<_ACEOF
24829 /* end confdefs.h.  */
24830 $ac_includes_default
24831 int
24832 main ()
24833 {
24834 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24835 test_array [0] = 0
24836
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24843   (eval $ac_compile) 2>conftest.er1
24844   ac_status=$?
24845   grep -v '^ *+' conftest.er1 >conftest.err
24846   rm -f conftest.er1
24847   cat conftest.err >&5
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); } &&
24850          { ac_try='test -z "$ac_c_werror_flag"
24851                          || test ! -s conftest.err'
24852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); }; } &&
24857          { ac_try='test -s conftest.$ac_objext'
24858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859   (eval $ac_try) 2>&5
24860   ac_status=$?
24861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862   (exit $ac_status); }; }; then
24863   ac_hi=$ac_mid; break
24864 else
24865   echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868 ac_lo=`expr $ac_mid + 1`
24869                     if test $ac_lo -le $ac_mid; then
24870                       ac_lo= ac_hi=
24871                       break
24872                     fi
24873                     ac_mid=`expr 2 '*' $ac_mid + 1`
24874 fi
24875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24876   done
24877 else
24878   echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881 cat >conftest.$ac_ext <<_ACEOF
24882 /* confdefs.h.  */
24883 _ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h.  */
24887 $ac_includes_default
24888 int
24889 main ()
24890 {
24891 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
24892 test_array [0] = 0
24893
24894   ;
24895   return 0;
24896 }
24897 _ACEOF
24898 rm -f conftest.$ac_objext
24899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24900   (eval $ac_compile) 2>conftest.er1
24901   ac_status=$?
24902   grep -v '^ *+' conftest.er1 >conftest.err
24903   rm -f conftest.er1
24904   cat conftest.err >&5
24905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906   (exit $ac_status); } &&
24907          { ac_try='test -z "$ac_c_werror_flag"
24908                          || test ! -s conftest.err'
24909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910   (eval $ac_try) 2>&5
24911   ac_status=$?
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); }; } &&
24914          { ac_try='test -s conftest.$ac_objext'
24915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916   (eval $ac_try) 2>&5
24917   ac_status=$?
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); }; }; then
24920   ac_hi=-1 ac_mid=-1
24921   while :; do
24922     cat >conftest.$ac_ext <<_ACEOF
24923 /* confdefs.h.  */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h.  */
24928 $ac_includes_default
24929 int
24930 main ()
24931 {
24932 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
24933 test_array [0] = 0
24934
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24941   (eval $ac_compile) 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } &&
24948          { ac_try='test -z "$ac_c_werror_flag"
24949                          || test ! -s conftest.err'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; } &&
24955          { ac_try='test -s conftest.$ac_objext'
24956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); }; }; then
24961   ac_lo=$ac_mid; break
24962 else
24963   echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24965
24966 ac_hi=`expr '(' $ac_mid ')' - 1`
24967                        if test $ac_mid -le $ac_hi; then
24968                          ac_lo= ac_hi=
24969                          break
24970                        fi
24971                        ac_mid=`expr 2 '*' $ac_mid`
24972 fi
24973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24974   done
24975 else
24976   echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24978
24979 ac_lo= ac_hi=
24980 fi
24981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24982 fi
24983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24984 # Binary search between lo and hi bounds.
24985 while test "x$ac_lo" != "x$ac_hi"; do
24986   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24987   cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993 $ac_includes_default
24994 int
24995 main ()
24996 {
24997 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24998 test_array [0] = 0
24999
25000   ;
25001   return 0;
25002 }
25003 _ACEOF
25004 rm -f conftest.$ac_objext
25005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25006   (eval $ac_compile) 2>conftest.er1
25007   ac_status=$?
25008   grep -v '^ *+' conftest.er1 >conftest.err
25009   rm -f conftest.er1
25010   cat conftest.err >&5
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); } &&
25013          { ac_try='test -z "$ac_c_werror_flag"
25014                          || test ! -s conftest.err'
25015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016   (eval $ac_try) 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; } &&
25020          { ac_try='test -s conftest.$ac_objext'
25021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022   (eval $ac_try) 2>&5
25023   ac_status=$?
25024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025   (exit $ac_status); }; }; then
25026   ac_hi=$ac_mid
25027 else
25028   echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031 ac_lo=`expr '(' $ac_mid ')' + 1`
25032 fi
25033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25034 done
25035 case $ac_lo in
25036 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25037 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25038 See \`config.log' for more details." >&5
25039 echo "$as_me: error: cannot compute sizeof (int *), 77
25040 See \`config.log' for more details." >&2;}
25041    { (exit 1); exit 1; }; } ;;
25042 esac
25043 else
25044   if test "$cross_compiling" = yes; then
25045   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25046 See \`config.log' for more details." >&5
25047 echo "$as_me: error: cannot run test program while cross compiling
25048 See \`config.log' for more details." >&2;}
25049    { (exit 1); exit 1; }; }
25050 else
25051   cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 $ac_includes_default
25058 long longval () { return (long) (sizeof (int *)); }
25059 unsigned long ulongval () { return (long) (sizeof (int *)); }
25060 #include <stdio.h>
25061 #include <stdlib.h>
25062 int
25063 main ()
25064 {
25065
25066   FILE *f = fopen ("conftest.val", "w");
25067   if (! f)
25068     exit (1);
25069   if (((long) (sizeof (int *))) < 0)
25070     {
25071       long i = longval ();
25072       if (i != ((long) (sizeof (int *))))
25073         exit (1);
25074       fprintf (f, "%ld\n", i);
25075     }
25076   else
25077     {
25078       unsigned long i = ulongval ();
25079       if (i != ((long) (sizeof (int *))))
25080         exit (1);
25081       fprintf (f, "%lu\n", i);
25082     }
25083   exit (ferror (f) || fclose (f) != 0);
25084
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest$ac_exeext
25090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25091   (eval $ac_link) 2>&5
25092   ac_status=$?
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096   (eval $ac_try) 2>&5
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); }; }; then
25100   ac_cv_sizeof_int_p=`cat conftest.val`
25101 else
25102   echo "$as_me: program exited with status $ac_status" >&5
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106 ( exit $ac_status )
25107 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25108 See \`config.log' for more details." >&5
25109 echo "$as_me: error: cannot compute sizeof (int *), 77
25110 See \`config.log' for more details." >&2;}
25111    { (exit 1); exit 1; }; }
25112 fi
25113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25114 fi
25115 fi
25116 rm -f conftest.val
25117 else
25118   ac_cv_sizeof_int_p=0
25119 fi
25120 fi
25121 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25122 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25123 cat >>confdefs.h <<_ACEOF
25124 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25125 _ACEOF
25126
25127
25128
25129 # Check for sys/types.h types
25130 echo "$as_me:$LINENO: checking for u_int type" >&5
25131 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25132 if test "${ac_cv_have_u_int+set}" = set; then
25133   echo $ECHO_N "(cached) $ECHO_C" >&6
25134 else
25135
25136     cat >conftest.$ac_ext <<_ACEOF
25137 /* confdefs.h.  */
25138 _ACEOF
25139 cat confdefs.h >>conftest.$ac_ext
25140 cat >>conftest.$ac_ext <<_ACEOF
25141 /* end confdefs.h.  */
25142  #include <sys/types.h>
25143 int
25144 main ()
25145 {
25146  u_int a; a = 1;
25147   ;
25148   return 0;
25149 }
25150 _ACEOF
25151 rm -f conftest.$ac_objext
25152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25153   (eval $ac_compile) 2>conftest.er1
25154   ac_status=$?
25155   grep -v '^ *+' conftest.er1 >conftest.err
25156   rm -f conftest.er1
25157   cat conftest.err >&5
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); } &&
25160          { ac_try='test -z "$ac_c_werror_flag"
25161                          || test ! -s conftest.err'
25162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163   (eval $ac_try) 2>&5
25164   ac_status=$?
25165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166   (exit $ac_status); }; } &&
25167          { ac_try='test -s conftest.$ac_objext'
25168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169   (eval $ac_try) 2>&5
25170   ac_status=$?
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); }; }; then
25173    ac_cv_have_u_int="yes"
25174 else
25175   echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25177
25178  ac_cv_have_u_int="no"
25179
25180 fi
25181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25182
25183 fi
25184 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25185 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25186 if test "x$ac_cv_have_u_int" = "xyes" ; then
25187    cat >>confdefs.h <<\_ACEOF
25188 #define HAVE_U_INT 1
25189 _ACEOF
25190
25191    have_u_int=1
25192 fi
25193
25194 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25195 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25196 if test "${ac_cv_have_intmax_t+set}" = set; then
25197   echo $ECHO_N "(cached) $ECHO_C" >&6
25198 else
25199
25200    cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h.  */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h.  */
25206  #include <sys/types.h>
25207 int
25208 main ()
25209 {
25210  intmax_t a; a = 1;
25211   ;
25212   return 0;
25213 }
25214 _ACEOF
25215 rm -f conftest.$ac_objext
25216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25217   (eval $ac_compile) 2>conftest.er1
25218   ac_status=$?
25219   grep -v '^ *+' conftest.er1 >conftest.err
25220   rm -f conftest.er1
25221   cat conftest.err >&5
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } &&
25224          { ac_try='test -z "$ac_c_werror_flag"
25225                          || test ! -s conftest.err'
25226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227   (eval $ac_try) 2>&5
25228   ac_status=$?
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); }; } &&
25231          { ac_try='test -s conftest.$ac_objext'
25232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233   (eval $ac_try) 2>&5
25234   ac_status=$?
25235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236   (exit $ac_status); }; }; then
25237    ac_cv_have_intmax_t="yes"
25238 else
25239   echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242
25243          cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249  #include <stdint.h>
25250 int
25251 main ()
25252 {
25253  intmax_t a; a = 1;
25254   ;
25255   return 0;
25256 }
25257 _ACEOF
25258 rm -f conftest.$ac_objext
25259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25260   (eval $ac_compile) 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } &&
25267          { ac_try='test -z "$ac_c_werror_flag"
25268                          || test ! -s conftest.err'
25269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270   (eval $ac_try) 2>&5
25271   ac_status=$?
25272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273   (exit $ac_status); }; } &&
25274          { ac_try='test -s conftest.$ac_objext'
25275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276   (eval $ac_try) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); }; }; then
25280    ac_cv_have_intmax_t="yes"
25281 else
25282   echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25284
25285  ac_cv_have_intmax_t="no"
25286
25287 fi
25288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25289
25290
25291 fi
25292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25293
25294
25295 fi
25296 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25297 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25298 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25299    cat >>confdefs.h <<\_ACEOF
25300 #define HAVE_INTMAX_T 1
25301 _ACEOF
25302
25303    have_intmax_t=1
25304 fi
25305
25306
25307 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25308 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25309 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25310   echo $ECHO_N "(cached) $ECHO_C" >&6
25311 else
25312
25313    cat >conftest.$ac_ext <<_ACEOF
25314 /* confdefs.h.  */
25315 _ACEOF
25316 cat confdefs.h >>conftest.$ac_ext
25317 cat >>conftest.$ac_ext <<_ACEOF
25318 /* end confdefs.h.  */
25319  #include <sys/types.h>
25320 int
25321 main ()
25322 {
25323  u_intmax_t a; a = 1;
25324   ;
25325   return 0;
25326 }
25327 _ACEOF
25328 rm -f conftest.$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330   (eval $ac_compile) 2>conftest.er1
25331   ac_status=$?
25332   grep -v '^ *+' conftest.er1 >conftest.err
25333   rm -f conftest.er1
25334   cat conftest.err >&5
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); } &&
25337          { ac_try='test -z "$ac_c_werror_flag"
25338                          || test ! -s conftest.err'
25339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340   (eval $ac_try) 2>&5
25341   ac_status=$?
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); }; } &&
25344          { ac_try='test -s conftest.$ac_objext'
25345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346   (eval $ac_try) 2>&5
25347   ac_status=$?
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); }; }; then
25350    ac_cv_have_u_intmax_t="yes"
25351 else
25352   echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25354
25355
25356          cat >conftest.$ac_ext <<_ACEOF
25357 /* confdefs.h.  */
25358 _ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h.  */
25362  #include <stdint.h>
25363 int
25364 main ()
25365 {
25366  u_intmax_t a; a = 1;
25367   ;
25368   return 0;
25369 }
25370 _ACEOF
25371 rm -f conftest.$ac_objext
25372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25373   (eval $ac_compile) 2>conftest.er1
25374   ac_status=$?
25375   grep -v '^ *+' conftest.er1 >conftest.err
25376   rm -f conftest.er1
25377   cat conftest.err >&5
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); } &&
25380          { ac_try='test -z "$ac_c_werror_flag"
25381                          || test ! -s conftest.err'
25382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383   (eval $ac_try) 2>&5
25384   ac_status=$?
25385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386   (exit $ac_status); }; } &&
25387          { ac_try='test -s conftest.$ac_objext'
25388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389   (eval $ac_try) 2>&5
25390   ac_status=$?
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); }; }; then
25393    ac_cv_have_u_intmax_t="yes"
25394 else
25395   echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25397
25398  ac_cv_have_u_intmax_t="no"
25399
25400 fi
25401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25402
25403
25404 fi
25405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25406
25407 fi
25408 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25409 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25410 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25411    cat >>confdefs.h <<\_ACEOF
25412 #define HAVE_U_INTMAX_T 1
25413 _ACEOF
25414
25415    have_u_intmax_t=1
25416 fi
25417
25418
25419 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25420 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25421 if test "${ac_cv_have_intxx_t+set}" = set; then
25422   echo $ECHO_N "(cached) $ECHO_C" >&6
25423 else
25424
25425    cat >conftest.$ac_ext <<_ACEOF
25426 /* confdefs.h.  */
25427 _ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h.  */
25431  #include <sys/types.h>
25432 int
25433 main ()
25434 {
25435  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25436   ;
25437   return 0;
25438 }
25439 _ACEOF
25440 rm -f conftest.$ac_objext
25441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25442   (eval $ac_compile) 2>conftest.er1
25443   ac_status=$?
25444   grep -v '^ *+' conftest.er1 >conftest.err
25445   rm -f conftest.er1
25446   cat conftest.err >&5
25447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448   (exit $ac_status); } &&
25449          { ac_try='test -z "$ac_c_werror_flag"
25450                          || test ! -s conftest.err'
25451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25452   (eval $ac_try) 2>&5
25453   ac_status=$?
25454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); }; } &&
25456          { ac_try='test -s conftest.$ac_objext'
25457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458   (eval $ac_try) 2>&5
25459   ac_status=$?
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); }; }; then
25462    ac_cv_have_intxx_t="yes"
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467  ac_cv_have_intxx_t="no"
25468
25469 fi
25470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25471
25472 fi
25473 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25474 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25475 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25476    cat >>confdefs.h <<\_ACEOF
25477 #define HAVE_INTXX_T 1
25478 _ACEOF
25479
25480    have_intxx_t=1
25481 fi
25482
25483 echo "$as_me:$LINENO: checking for int64_t type" >&5
25484 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25485 if test "${ac_cv_have_int64_t+set}" = set; then
25486   echo $ECHO_N "(cached) $ECHO_C" >&6
25487 else
25488
25489    cat >conftest.$ac_ext <<_ACEOF
25490 /* confdefs.h.  */
25491 _ACEOF
25492 cat confdefs.h >>conftest.$ac_ext
25493 cat >>conftest.$ac_ext <<_ACEOF
25494 /* end confdefs.h.  */
25495  #include <sys/types.h>
25496 int
25497 main ()
25498 {
25499  int64_t a; a = 1;
25500   ;
25501   return 0;
25502 }
25503 _ACEOF
25504 rm -f conftest.$ac_objext
25505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25506   (eval $ac_compile) 2>conftest.er1
25507   ac_status=$?
25508   grep -v '^ *+' conftest.er1 >conftest.err
25509   rm -f conftest.er1
25510   cat conftest.err >&5
25511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512   (exit $ac_status); } &&
25513          { ac_try='test -z "$ac_c_werror_flag"
25514                          || test ! -s conftest.err'
25515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516   (eval $ac_try) 2>&5
25517   ac_status=$?
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); }; } &&
25520          { ac_try='test -s conftest.$ac_objext'
25521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522   (eval $ac_try) 2>&5
25523   ac_status=$?
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); }; }; then
25526    ac_cv_have_int64_t="yes"
25527 else
25528   echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25530
25531  ac_cv_have_int64_t="no"
25532
25533 fi
25534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25535
25536 fi
25537 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25538 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25539 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25540    cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_INT64_T 1
25542 _ACEOF
25543
25544    have_int64_t=1
25545 fi
25546
25547 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25548 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25549 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25550   echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552
25553    cat >conftest.$ac_ext <<_ACEOF
25554 /* confdefs.h.  */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h.  */
25559  #include <sys/types.h>
25560 int
25561 main ()
25562 {
25563  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25564   ;
25565   return 0;
25566 }
25567 _ACEOF
25568 rm -f conftest.$ac_objext
25569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25570   (eval $ac_compile) 2>conftest.er1
25571   ac_status=$?
25572   grep -v '^ *+' conftest.er1 >conftest.err
25573   rm -f conftest.er1
25574   cat conftest.err >&5
25575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); } &&
25577          { ac_try='test -z "$ac_c_werror_flag"
25578                          || test ! -s conftest.err'
25579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580   (eval $ac_try) 2>&5
25581   ac_status=$?
25582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583   (exit $ac_status); }; } &&
25584          { ac_try='test -s conftest.$ac_objext'
25585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586   (eval $ac_try) 2>&5
25587   ac_status=$?
25588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589   (exit $ac_status); }; }; then
25590    ac_cv_have_u_intxx_t="yes"
25591 else
25592   echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25594
25595  ac_cv_have_u_intxx_t="no"
25596
25597 fi
25598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25599
25600 fi
25601 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25602 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25603 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25604    cat >>confdefs.h <<\_ACEOF
25605 #define HAVE_U_INTXX_T 1
25606 _ACEOF
25607
25608    have_u_intxx_t=1
25609 fi
25610
25611 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25612 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25613 if test "${ac_cv_have_u_int64_t+set}" = set; then
25614   echo $ECHO_N "(cached) $ECHO_C" >&6
25615 else
25616
25617    cat >conftest.$ac_ext <<_ACEOF
25618 /* confdefs.h.  */
25619 _ACEOF
25620 cat confdefs.h >>conftest.$ac_ext
25621 cat >>conftest.$ac_ext <<_ACEOF
25622 /* end confdefs.h.  */
25623  #include <sys/types.h>
25624 int
25625 main ()
25626 {
25627  u_int64_t a; a = 1;
25628   ;
25629   return 0;
25630 }
25631 _ACEOF
25632 rm -f conftest.$ac_objext
25633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25634   (eval $ac_compile) 2>conftest.er1
25635   ac_status=$?
25636   grep -v '^ *+' conftest.er1 >conftest.err
25637   rm -f conftest.er1
25638   cat conftest.err >&5
25639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640   (exit $ac_status); } &&
25641          { ac_try='test -z "$ac_c_werror_flag"
25642                          || test ! -s conftest.err'
25643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644   (eval $ac_try) 2>&5
25645   ac_status=$?
25646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647   (exit $ac_status); }; } &&
25648          { ac_try='test -s conftest.$ac_objext'
25649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650   (eval $ac_try) 2>&5
25651   ac_status=$?
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); }; }; then
25654    ac_cv_have_u_int64_t="yes"
25655 else
25656   echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25658
25659  ac_cv_have_u_int64_t="no"
25660
25661 fi
25662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25663
25664 fi
25665 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25666 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25667 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25668    cat >>confdefs.h <<\_ACEOF
25669 #define HAVE_U_INT64_T 1
25670 _ACEOF
25671
25672    have_u_int64_t=1
25673 fi
25674
25675 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25676            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25677 then
25678    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25679 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25680    cat >conftest.$ac_ext <<_ACEOF
25681 /* confdefs.h.  */
25682 _ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h.  */
25686  #include <sys/bitypes.h>
25687 int
25688 main ()
25689 {
25690  int8_t a; int16_t b; int32_t c;
25691         u_int8_t e; u_int16_t f; u_int32_t g;
25692         a = b = c = e = f = g = 1;
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699   (eval $ac_compile) 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } &&
25706          { ac_try='test -z "$ac_c_werror_flag"
25707                          || test ! -s conftest.err'
25708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709   (eval $ac_try) 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; } &&
25713          { ac_try='test -s conftest.$ac_objext'
25714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715   (eval $ac_try) 2>&5
25716   ac_status=$?
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); }; }; then
25719    cat >>confdefs.h <<\_ACEOF
25720 #define HAVE_U_INTXX_T 1
25721 _ACEOF
25722
25723         cat >>confdefs.h <<\_ACEOF
25724 #define HAVE_INTXX_T 1
25725 _ACEOF
25726
25727         cat >>confdefs.h <<\_ACEOF
25728 #define HAVE_SYS_BITYPES_H 1
25729 _ACEOF
25730
25731         echo "$as_me:$LINENO: result: yes" >&5
25732 echo "${ECHO_T}yes" >&6
25733 else
25734   echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737  echo "$as_me:$LINENO: result: no" >&5
25738 echo "${ECHO_T}no" >&6
25739
25740 fi
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25742 fi
25743
25744 if test -z "$have_u_intxx_t" ; then
25745    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25746 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25747 if test "${ac_cv_have_uintxx_t+set}" = set; then
25748   echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750
25751       cat >conftest.$ac_ext <<_ACEOF
25752 /* confdefs.h.  */
25753 _ACEOF
25754 cat confdefs.h >>conftest.$ac_ext
25755 cat >>conftest.$ac_ext <<_ACEOF
25756 /* end confdefs.h.  */
25757  #include <sys/types.h>
25758 int
25759 main ()
25760 {
25761  uint8_t a; uint16_t b;
25762            uint32_t c; a = b = c = 1;
25763   ;
25764   return 0;
25765 }
25766 _ACEOF
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769   (eval $ac_compile) 2>conftest.er1
25770   ac_status=$?
25771   grep -v '^ *+' conftest.er1 >conftest.err
25772   rm -f conftest.er1
25773   cat conftest.err >&5
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); } &&
25776          { ac_try='test -z "$ac_c_werror_flag"
25777                          || test ! -s conftest.err'
25778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779   (eval $ac_try) 2>&5
25780   ac_status=$?
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); }; } &&
25783          { ac_try='test -s conftest.$ac_objext'
25784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785   (eval $ac_try) 2>&5
25786   ac_status=$?
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); }; }; then
25789    ac_cv_have_uintxx_t="yes"
25790 else
25791   echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25793
25794  ac_cv_have_uintxx_t="no"
25795
25796 fi
25797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25798
25799 fi
25800 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25801 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25802    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25803       cat >>confdefs.h <<\_ACEOF
25804 #define HAVE_UINTXX_T 1
25805 _ACEOF
25806
25807    fi
25808 fi
25809
25810 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25811           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25812 then
25813    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25814 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25815    cat >conftest.$ac_ext <<_ACEOF
25816 /* confdefs.h.  */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h.  */
25821  #include <sys/bitypes.h>
25822 int
25823 main ()
25824 {
25825  int64_t a; u_int64_t b;
25826        a = b = 1;
25827   ;
25828   return 0;
25829 }
25830 _ACEOF
25831 rm -f conftest.$ac_objext
25832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25833   (eval $ac_compile) 2>conftest.er1
25834   ac_status=$?
25835   grep -v '^ *+' conftest.er1 >conftest.err
25836   rm -f conftest.er1
25837   cat conftest.err >&5
25838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839   (exit $ac_status); } &&
25840          { ac_try='test -z "$ac_c_werror_flag"
25841                          || test ! -s conftest.err'
25842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843   (eval $ac_try) 2>&5
25844   ac_status=$?
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); }; } &&
25847          { ac_try='test -s conftest.$ac_objext'
25848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849   (eval $ac_try) 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); }; }; then
25853    cat >>confdefs.h <<\_ACEOF
25854 #define HAVE_U_INT64_T 1
25855 _ACEOF
25856
25857        cat >>confdefs.h <<\_ACEOF
25858 #define HAVE_INT64_T 1
25859 _ACEOF
25860
25861        echo "$as_me:$LINENO: result: yes" >&5
25862 echo "${ECHO_T}yes" >&6
25863 else
25864   echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25866
25867  echo "$as_me:$LINENO: result: no" >&5
25868 echo "${ECHO_T}no" >&6
25869
25870 fi
25871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25872 fi
25873
25874 if (test -z "$have_uintxx_t" && \
25875           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25876 then
25877    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25878 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
25879    cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885  #include <sys/bitypes.h>
25886 int
25887 main ()
25888 {
25889  uint8_t a; uint16_t b;
25890           uint32_t c; a = b = c = 1;
25891   ;
25892   return 0;
25893 }
25894 _ACEOF
25895 rm -f conftest.$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897   (eval $ac_compile) 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } &&
25904          { ac_try='test -z "$ac_c_werror_flag"
25905                          || test ! -s conftest.err'
25906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907   (eval $ac_try) 2>&5
25908   ac_status=$?
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); }; } &&
25911          { ac_try='test -s conftest.$ac_objext'
25912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913   (eval $ac_try) 2>&5
25914   ac_status=$?
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); }; }; then
25917    cat >>confdefs.h <<\_ACEOF
25918 #define HAVE_UINTXX_T 1
25919 _ACEOF
25920
25921        echo "$as_me:$LINENO: result: yes" >&5
25922 echo "${ECHO_T}yes" >&6
25923 else
25924   echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25926
25927  echo "$as_me:$LINENO: result: no" >&5
25928 echo "${ECHO_T}no" >&6
25929
25930 fi
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932
25933 fi
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951 for ac_func in \
25952         fork \
25953         getcwd \
25954         gethostname \
25955         getpid \
25956         gettimeofday \
25957         setpgid \
25958         setpgrp \
25959         setsid \
25960         signal \
25961         strerror \
25962         strncmp \
25963         strncpy \
25964         vfprintf \
25965
25966 do
25967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25968 echo "$as_me:$LINENO: checking for $ac_func" >&5
25969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25970 if eval "test \"\${$as_ac_var+set}\" = set"; then
25971   echo $ECHO_N "(cached) $ECHO_C" >&6
25972 else
25973   cat >conftest.$ac_ext <<_ACEOF
25974 /* confdefs.h.  */
25975 _ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h.  */
25979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25981 #define $ac_func innocuous_$ac_func
25982
25983 /* System header to define __stub macros and hopefully few prototypes,
25984     which can conflict with char $ac_func (); below.
25985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25986     <limits.h> exists even on freestanding compilers.  */
25987
25988 #ifdef __STDC__
25989 # include <limits.h>
25990 #else
25991 # include <assert.h>
25992 #endif
25993
25994 #undef $ac_func
25995
25996 /* Override any gcc2 internal prototype to avoid an error.  */
25997 #ifdef __cplusplus
25998 extern "C"
25999 {
26000 #endif
26001 /* We use char because int might match the return type of a gcc2
26002    builtin and then its argument prototype would still apply.  */
26003 char $ac_func ();
26004 /* The GNU C library defines this for functions which it implements
26005     to always fail with ENOSYS.  Some functions are actually named
26006     something starting with __ and the normal name is an alias.  */
26007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26008 choke me
26009 #else
26010 char (*f) () = $ac_func;
26011 #endif
26012 #ifdef __cplusplus
26013 }
26014 #endif
26015
26016 int
26017 main ()
26018 {
26019 return f != $ac_func;
26020   ;
26021   return 0;
26022 }
26023 _ACEOF
26024 rm -f conftest.$ac_objext conftest$ac_exeext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26026   (eval $ac_link) 2>conftest.er1
26027   ac_status=$?
26028   grep -v '^ *+' conftest.er1 >conftest.err
26029   rm -f conftest.er1
26030   cat conftest.err >&5
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); } &&
26033          { ac_try='test -z "$ac_c_werror_flag"
26034                          || test ! -s conftest.err'
26035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036   (eval $ac_try) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); }; } &&
26040          { ac_try='test -s conftest$ac_exeext'
26041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042   (eval $ac_try) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; }; then
26046   eval "$as_ac_var=yes"
26047 else
26048   echo "$as_me: failed program was:" >&5
26049 sed 's/^/| /' conftest.$ac_ext >&5
26050
26051 eval "$as_ac_var=no"
26052 fi
26053 rm -f conftest.err conftest.$ac_objext \
26054       conftest$ac_exeext conftest.$ac_ext
26055 fi
26056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26058 if test `eval echo '${'$as_ac_var'}'` = yes; then
26059   cat >>confdefs.h <<_ACEOF
26060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26061 _ACEOF
26062
26063 else
26064   echo 'configure: cannot find needed function.'; exit 1
26065
26066 fi
26067 done
26068
26069
26070
26071 for ac_func in fchdir
26072 do
26073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26074 echo "$as_me:$LINENO: checking for $ac_func" >&5
26075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26076 if eval "test \"\${$as_ac_var+set}\" = set"; then
26077   echo $ECHO_N "(cached) $ECHO_C" >&6
26078 else
26079   cat >conftest.$ac_ext <<_ACEOF
26080 /* confdefs.h.  */
26081 _ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h.  */
26085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26087 #define $ac_func innocuous_$ac_func
26088
26089 /* System header to define __stub macros and hopefully few prototypes,
26090     which can conflict with char $ac_func (); below.
26091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26092     <limits.h> exists even on freestanding compilers.  */
26093
26094 #ifdef __STDC__
26095 # include <limits.h>
26096 #else
26097 # include <assert.h>
26098 #endif
26099
26100 #undef $ac_func
26101
26102 /* Override any gcc2 internal prototype to avoid an error.  */
26103 #ifdef __cplusplus
26104 extern "C"
26105 {
26106 #endif
26107 /* We use char because int might match the return type of a gcc2
26108    builtin and then its argument prototype would still apply.  */
26109 char $ac_func ();
26110 /* The GNU C library defines this for functions which it implements
26111     to always fail with ENOSYS.  Some functions are actually named
26112     something starting with __ and the normal name is an alias.  */
26113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26114 choke me
26115 #else
26116 char (*f) () = $ac_func;
26117 #endif
26118 #ifdef __cplusplus
26119 }
26120 #endif
26121
26122 int
26123 main ()
26124 {
26125 return f != $ac_func;
26126   ;
26127   return 0;
26128 }
26129 _ACEOF
26130 rm -f conftest.$ac_objext conftest$ac_exeext
26131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26132   (eval $ac_link) 2>conftest.er1
26133   ac_status=$?
26134   grep -v '^ *+' conftest.er1 >conftest.err
26135   rm -f conftest.er1
26136   cat conftest.err >&5
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); } &&
26139          { ac_try='test -z "$ac_c_werror_flag"
26140                          || test ! -s conftest.err'
26141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142   (eval $ac_try) 2>&5
26143   ac_status=$?
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); }; } &&
26146          { ac_try='test -s conftest$ac_exeext'
26147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148   (eval $ac_try) 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; }; then
26152   eval "$as_ac_var=yes"
26153 else
26154   echo "$as_me: failed program was:" >&5
26155 sed 's/^/| /' conftest.$ac_ext >&5
26156
26157 eval "$as_ac_var=no"
26158 fi
26159 rm -f conftest.err conftest.$ac_objext \
26160       conftest$ac_exeext conftest.$ac_ext
26161 fi
26162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26164 if test `eval echo '${'$as_ac_var'}'` = yes; then
26165   cat >>confdefs.h <<_ACEOF
26166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26167 _ACEOF
26168  cat >>confdefs.h <<\_ACEOF
26169 #define HAVE_FCHDIR 1
26170 _ACEOF
26171
26172 fi
26173 done
26174
26175
26176 for ac_func in strtoll
26177 do
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26181 if eval "test \"\${$as_ac_var+set}\" = set"; then
26182   echo $ECHO_N "(cached) $ECHO_C" >&6
26183 else
26184   cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26192 #define $ac_func innocuous_$ac_func
26193
26194 /* System header to define __stub macros and hopefully few prototypes,
26195     which can conflict with char $ac_func (); below.
26196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197     <limits.h> exists even on freestanding compilers.  */
26198
26199 #ifdef __STDC__
26200 # include <limits.h>
26201 #else
26202 # include <assert.h>
26203 #endif
26204
26205 #undef $ac_func
26206
26207 /* Override any gcc2 internal prototype to avoid an error.  */
26208 #ifdef __cplusplus
26209 extern "C"
26210 {
26211 #endif
26212 /* We use char because int might match the return type of a gcc2
26213    builtin and then its argument prototype would still apply.  */
26214 char $ac_func ();
26215 /* The GNU C library defines this for functions which it implements
26216     to always fail with ENOSYS.  Some functions are actually named
26217     something starting with __ and the normal name is an alias.  */
26218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26219 choke me
26220 #else
26221 char (*f) () = $ac_func;
26222 #endif
26223 #ifdef __cplusplus
26224 }
26225 #endif
26226
26227 int
26228 main ()
26229 {
26230 return f != $ac_func;
26231   ;
26232   return 0;
26233 }
26234 _ACEOF
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237   (eval $ac_link) 2>conftest.er1
26238   ac_status=$?
26239   grep -v '^ *+' conftest.er1 >conftest.err
26240   rm -f conftest.er1
26241   cat conftest.err >&5
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); } &&
26244          { ac_try='test -z "$ac_c_werror_flag"
26245                          || test ! -s conftest.err'
26246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247   (eval $ac_try) 2>&5
26248   ac_status=$?
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); }; } &&
26251          { ac_try='test -s conftest$ac_exeext'
26252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253   (eval $ac_try) 2>&5
26254   ac_status=$?
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); }; }; then
26257   eval "$as_ac_var=yes"
26258 else
26259   echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26261
26262 eval "$as_ac_var=no"
26263 fi
26264 rm -f conftest.err conftest.$ac_objext \
26265       conftest$ac_exeext conftest.$ac_ext
26266 fi
26267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26269 if test `eval echo '${'$as_ac_var'}'` = yes; then
26270   cat >>confdefs.h <<_ACEOF
26271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26272 _ACEOF
26273  cat >>confdefs.h <<\_ACEOF
26274 #define HAVE_STRTOLL 1
26275 _ACEOF
26276
26277 fi
26278 done
26279
26280
26281
26282 for ac_func in chflags
26283 do
26284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26285 echo "$as_me:$LINENO: checking for $ac_func" >&5
26286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26287 if eval "test \"\${$as_ac_var+set}\" = set"; then
26288   echo $ECHO_N "(cached) $ECHO_C" >&6
26289 else
26290   cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h.  */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h.  */
26296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26298 #define $ac_func innocuous_$ac_func
26299
26300 /* System header to define __stub macros and hopefully few prototypes,
26301     which can conflict with char $ac_func (); below.
26302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26303     <limits.h> exists even on freestanding compilers.  */
26304
26305 #ifdef __STDC__
26306 # include <limits.h>
26307 #else
26308 # include <assert.h>
26309 #endif
26310
26311 #undef $ac_func
26312
26313 /* Override any gcc2 internal prototype to avoid an error.  */
26314 #ifdef __cplusplus
26315 extern "C"
26316 {
26317 #endif
26318 /* We use char because int might match the return type of a gcc2
26319    builtin and then its argument prototype would still apply.  */
26320 char $ac_func ();
26321 /* The GNU C library defines this for functions which it implements
26322     to always fail with ENOSYS.  Some functions are actually named
26323     something starting with __ and the normal name is an alias.  */
26324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26325 choke me
26326 #else
26327 char (*f) () = $ac_func;
26328 #endif
26329 #ifdef __cplusplus
26330 }
26331 #endif
26332
26333 int
26334 main ()
26335 {
26336 return f != $ac_func;
26337   ;
26338   return 0;
26339 }
26340 _ACEOF
26341 rm -f conftest.$ac_objext conftest$ac_exeext
26342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26343   (eval $ac_link) 2>conftest.er1
26344   ac_status=$?
26345   grep -v '^ *+' conftest.er1 >conftest.err
26346   rm -f conftest.er1
26347   cat conftest.err >&5
26348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349   (exit $ac_status); } &&
26350          { ac_try='test -z "$ac_c_werror_flag"
26351                          || test ! -s conftest.err'
26352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353   (eval $ac_try) 2>&5
26354   ac_status=$?
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); }; } &&
26357          { ac_try='test -s conftest$ac_exeext'
26358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359   (eval $ac_try) 2>&5
26360   ac_status=$?
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); }; }; then
26363   eval "$as_ac_var=yes"
26364 else
26365   echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26367
26368 eval "$as_ac_var=no"
26369 fi
26370 rm -f conftest.err conftest.$ac_objext \
26371       conftest$ac_exeext conftest.$ac_ext
26372 fi
26373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26375 if test `eval echo '${'$as_ac_var'}'` = yes; then
26376   cat >>confdefs.h <<_ACEOF
26377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26378 _ACEOF
26379
26380 fi
26381 done
26382
26383
26384
26385
26386
26387
26388 for ac_func in snprintf vsnprintf gethostid fseeko
26389 do
26390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26391 echo "$as_me:$LINENO: checking for $ac_func" >&5
26392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26393 if eval "test \"\${$as_ac_var+set}\" = set"; then
26394   echo $ECHO_N "(cached) $ECHO_C" >&6
26395 else
26396   cat >conftest.$ac_ext <<_ACEOF
26397 /* confdefs.h.  */
26398 _ACEOF
26399 cat confdefs.h >>conftest.$ac_ext
26400 cat >>conftest.$ac_ext <<_ACEOF
26401 /* end confdefs.h.  */
26402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26404 #define $ac_func innocuous_$ac_func
26405
26406 /* System header to define __stub macros and hopefully few prototypes,
26407     which can conflict with char $ac_func (); below.
26408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26409     <limits.h> exists even on freestanding compilers.  */
26410
26411 #ifdef __STDC__
26412 # include <limits.h>
26413 #else
26414 # include <assert.h>
26415 #endif
26416
26417 #undef $ac_func
26418
26419 /* Override any gcc2 internal prototype to avoid an error.  */
26420 #ifdef __cplusplus
26421 extern "C"
26422 {
26423 #endif
26424 /* We use char because int might match the return type of a gcc2
26425    builtin and then its argument prototype would still apply.  */
26426 char $ac_func ();
26427 /* The GNU C library defines this for functions which it implements
26428     to always fail with ENOSYS.  Some functions are actually named
26429     something starting with __ and the normal name is an alias.  */
26430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26431 choke me
26432 #else
26433 char (*f) () = $ac_func;
26434 #endif
26435 #ifdef __cplusplus
26436 }
26437 #endif
26438
26439 int
26440 main ()
26441 {
26442 return f != $ac_func;
26443   ;
26444   return 0;
26445 }
26446 _ACEOF
26447 rm -f conftest.$ac_objext conftest$ac_exeext
26448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26449   (eval $ac_link) 2>conftest.er1
26450   ac_status=$?
26451   grep -v '^ *+' conftest.er1 >conftest.err
26452   rm -f conftest.er1
26453   cat conftest.err >&5
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); } &&
26456          { ac_try='test -z "$ac_c_werror_flag"
26457                          || test ! -s conftest.err'
26458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26459   (eval $ac_try) 2>&5
26460   ac_status=$?
26461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462   (exit $ac_status); }; } &&
26463          { ac_try='test -s conftest$ac_exeext'
26464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465   (eval $ac_try) 2>&5
26466   ac_status=$?
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); }; }; then
26469   eval "$as_ac_var=yes"
26470 else
26471   echo "$as_me: failed program was:" >&5
26472 sed 's/^/| /' conftest.$ac_ext >&5
26473
26474 eval "$as_ac_var=no"
26475 fi
26476 rm -f conftest.err conftest.$ac_objext \
26477       conftest$ac_exeext conftest.$ac_ext
26478 fi
26479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26481 if test `eval echo '${'$as_ac_var'}'` = yes; then
26482   cat >>confdefs.h <<_ACEOF
26483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26484 _ACEOF
26485
26486 fi
26487 done
26488
26489
26490
26491
26492
26493
26494 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26495 do
26496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26497 echo "$as_me:$LINENO: checking for $ac_func" >&5
26498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26499 if eval "test \"\${$as_ac_var+set}\" = set"; then
26500   echo $ECHO_N "(cached) $ECHO_C" >&6
26501 else
26502   cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26510 #define $ac_func innocuous_$ac_func
26511
26512 /* System header to define __stub macros and hopefully few prototypes,
26513     which can conflict with char $ac_func (); below.
26514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26515     <limits.h> exists even on freestanding compilers.  */
26516
26517 #ifdef __STDC__
26518 # include <limits.h>
26519 #else
26520 # include <assert.h>
26521 #endif
26522
26523 #undef $ac_func
26524
26525 /* Override any gcc2 internal prototype to avoid an error.  */
26526 #ifdef __cplusplus
26527 extern "C"
26528 {
26529 #endif
26530 /* We use char because int might match the return type of a gcc2
26531    builtin and then its argument prototype would still apply.  */
26532 char $ac_func ();
26533 /* The GNU C library defines this for functions which it implements
26534     to always fail with ENOSYS.  Some functions are actually named
26535     something starting with __ and the normal name is an alias.  */
26536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26537 choke me
26538 #else
26539 char (*f) () = $ac_func;
26540 #endif
26541 #ifdef __cplusplus
26542 }
26543 #endif
26544
26545 int
26546 main ()
26547 {
26548 return f != $ac_func;
26549   ;
26550   return 0;
26551 }
26552 _ACEOF
26553 rm -f conftest.$ac_objext conftest$ac_exeext
26554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26555   (eval $ac_link) 2>conftest.er1
26556   ac_status=$?
26557   grep -v '^ *+' conftest.er1 >conftest.err
26558   rm -f conftest.er1
26559   cat conftest.err >&5
26560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561   (exit $ac_status); } &&
26562          { ac_try='test -z "$ac_c_werror_flag"
26563                          || test ! -s conftest.err'
26564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565   (eval $ac_try) 2>&5
26566   ac_status=$?
26567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568   (exit $ac_status); }; } &&
26569          { ac_try='test -s conftest$ac_exeext'
26570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26571   (eval $ac_try) 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); }; }; then
26575   eval "$as_ac_var=yes"
26576 else
26577   echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26579
26580 eval "$as_ac_var=no"
26581 fi
26582 rm -f conftest.err conftest.$ac_objext \
26583       conftest$ac_exeext conftest.$ac_ext
26584 fi
26585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26587 if test `eval echo '${'$as_ac_var'}'` = yes; then
26588   cat >>confdefs.h <<_ACEOF
26589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26590 _ACEOF
26591
26592 fi
26593 done
26594
26595
26596 # If resolver functions are not in libc check for -lnsl or -lresolv.
26597 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26598 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26599 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26600   echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602   cat >conftest.$ac_ext <<_ACEOF
26603 /* confdefs.h.  */
26604 _ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h.  */
26608 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26610 #define gethostbyname_r innocuous_gethostbyname_r
26611
26612 /* System header to define __stub macros and hopefully few prototypes,
26613     which can conflict with char gethostbyname_r (); below.
26614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26615     <limits.h> exists even on freestanding compilers.  */
26616
26617 #ifdef __STDC__
26618 # include <limits.h>
26619 #else
26620 # include <assert.h>
26621 #endif
26622
26623 #undef gethostbyname_r
26624
26625 /* Override any gcc2 internal prototype to avoid an error.  */
26626 #ifdef __cplusplus
26627 extern "C"
26628 {
26629 #endif
26630 /* We use char because int might match the return type of a gcc2
26631    builtin and then its argument prototype would still apply.  */
26632 char gethostbyname_r ();
26633 /* The GNU C library defines this for functions which it implements
26634     to always fail with ENOSYS.  Some functions are actually named
26635     something starting with __ and the normal name is an alias.  */
26636 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26637 choke me
26638 #else
26639 char (*f) () = gethostbyname_r;
26640 #endif
26641 #ifdef __cplusplus
26642 }
26643 #endif
26644
26645 int
26646 main ()
26647 {
26648 return f != gethostbyname_r;
26649   ;
26650   return 0;
26651 }
26652 _ACEOF
26653 rm -f conftest.$ac_objext conftest$ac_exeext
26654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26655   (eval $ac_link) 2>conftest.er1
26656   ac_status=$?
26657   grep -v '^ *+' conftest.er1 >conftest.err
26658   rm -f conftest.er1
26659   cat conftest.err >&5
26660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); } &&
26662          { ac_try='test -z "$ac_c_werror_flag"
26663                          || test ! -s conftest.err'
26664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665   (eval $ac_try) 2>&5
26666   ac_status=$?
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); }; } &&
26669          { ac_try='test -s conftest$ac_exeext'
26670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671   (eval $ac_try) 2>&5
26672   ac_status=$?
26673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674   (exit $ac_status); }; }; then
26675   ac_cv_func_gethostbyname_r=yes
26676 else
26677   echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26679
26680 ac_cv_func_gethostbyname_r=no
26681 fi
26682 rm -f conftest.err conftest.$ac_objext \
26683       conftest$ac_exeext conftest.$ac_ext
26684 fi
26685 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26686 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26687 if test $ac_cv_func_gethostbyname_r = yes; then
26688   echo "$as_me:$LINENO: result: using libc's resolver" >&5
26689 echo "${ECHO_T}using libc's resolver" >&6
26690 else
26691
26692 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26693 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26694 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26695   echo $ECHO_N "(cached) $ECHO_C" >&6
26696 else
26697   ac_check_lib_save_LIBS=$LIBS
26698 LIBS="-lnsl  $LIBS"
26699 cat >conftest.$ac_ext <<_ACEOF
26700 /* confdefs.h.  */
26701 _ACEOF
26702 cat confdefs.h >>conftest.$ac_ext
26703 cat >>conftest.$ac_ext <<_ACEOF
26704 /* end confdefs.h.  */
26705
26706 /* Override any gcc2 internal prototype to avoid an error.  */
26707 #ifdef __cplusplus
26708 extern "C"
26709 #endif
26710 /* We use char because int might match the return type of a gcc2
26711    builtin and then its argument prototype would still apply.  */
26712 char gethostbyname_r ();
26713 int
26714 main ()
26715 {
26716 gethostbyname_r ();
26717   ;
26718   return 0;
26719 }
26720 _ACEOF
26721 rm -f conftest.$ac_objext conftest$ac_exeext
26722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26723   (eval $ac_link) 2>conftest.er1
26724   ac_status=$?
26725   grep -v '^ *+' conftest.er1 >conftest.err
26726   rm -f conftest.er1
26727   cat conftest.err >&5
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); } &&
26730          { ac_try='test -z "$ac_c_werror_flag"
26731                          || test ! -s conftest.err'
26732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733   (eval $ac_try) 2>&5
26734   ac_status=$?
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); }; } &&
26737          { ac_try='test -s conftest$ac_exeext'
26738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739   (eval $ac_try) 2>&5
26740   ac_status=$?
26741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742   (exit $ac_status); }; }; then
26743   ac_cv_lib_nsl_gethostbyname_r=yes
26744 else
26745   echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26747
26748 ac_cv_lib_nsl_gethostbyname_r=no
26749 fi
26750 rm -f conftest.err conftest.$ac_objext \
26751       conftest$ac_exeext conftest.$ac_ext
26752 LIBS=$ac_check_lib_save_LIBS
26753 fi
26754 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26755 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26756 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26757   cat >>confdefs.h <<_ACEOF
26758 #define HAVE_LIBNSL 1
26759 _ACEOF
26760
26761   LIBS="-lnsl $LIBS"
26762
26763 fi
26764
26765
26766 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26767 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26768 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26769   echo $ECHO_N "(cached) $ECHO_C" >&6
26770 else
26771   ac_check_lib_save_LIBS=$LIBS
26772 LIBS="-lresolv  $LIBS"
26773 cat >conftest.$ac_ext <<_ACEOF
26774 /* confdefs.h.  */
26775 _ACEOF
26776 cat confdefs.h >>conftest.$ac_ext
26777 cat >>conftest.$ac_ext <<_ACEOF
26778 /* end confdefs.h.  */
26779
26780 /* Override any gcc2 internal prototype to avoid an error.  */
26781 #ifdef __cplusplus
26782 extern "C"
26783 #endif
26784 /* We use char because int might match the return type of a gcc2
26785    builtin and then its argument prototype would still apply.  */
26786 char gethostbyname_r ();
26787 int
26788 main ()
26789 {
26790 gethostbyname_r ();
26791   ;
26792   return 0;
26793 }
26794 _ACEOF
26795 rm -f conftest.$ac_objext conftest$ac_exeext
26796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26797   (eval $ac_link) 2>conftest.er1
26798   ac_status=$?
26799   grep -v '^ *+' conftest.er1 >conftest.err
26800   rm -f conftest.er1
26801   cat conftest.err >&5
26802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803   (exit $ac_status); } &&
26804          { ac_try='test -z "$ac_c_werror_flag"
26805                          || test ! -s conftest.err'
26806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807   (eval $ac_try) 2>&5
26808   ac_status=$?
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); }; } &&
26811          { ac_try='test -s conftest$ac_exeext'
26812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813   (eval $ac_try) 2>&5
26814   ac_status=$?
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); }; }; then
26817   ac_cv_lib_resolv_gethostbyname_r=yes
26818 else
26819   echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26821
26822 ac_cv_lib_resolv_gethostbyname_r=no
26823 fi
26824 rm -f conftest.err conftest.$ac_objext \
26825       conftest$ac_exeext conftest.$ac_ext
26826 LIBS=$ac_check_lib_save_LIBS
26827 fi
26828 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26829 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26830 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26831   cat >>confdefs.h <<_ACEOF
26832 #define HAVE_LIBRESOLV 1
26833 _ACEOF
26834
26835   LIBS="-lresolv $LIBS"
26836
26837 fi
26838
26839 fi
26840
26841
26842
26843
26844
26845 for ac_func in inet_pton
26846 do
26847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26848 echo "$as_me:$LINENO: checking for $ac_func" >&5
26849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26850 if eval "test \"\${$as_ac_var+set}\" = set"; then
26851   echo $ECHO_N "(cached) $ECHO_C" >&6
26852 else
26853   cat >conftest.$ac_ext <<_ACEOF
26854 /* confdefs.h.  */
26855 _ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h.  */
26859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26861 #define $ac_func innocuous_$ac_func
26862
26863 /* System header to define __stub macros and hopefully few prototypes,
26864     which can conflict with char $ac_func (); below.
26865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26866     <limits.h> exists even on freestanding compilers.  */
26867
26868 #ifdef __STDC__
26869 # include <limits.h>
26870 #else
26871 # include <assert.h>
26872 #endif
26873
26874 #undef $ac_func
26875
26876 /* Override any gcc2 internal prototype to avoid an error.  */
26877 #ifdef __cplusplus
26878 extern "C"
26879 {
26880 #endif
26881 /* We use char because int might match the return type of a gcc2
26882    builtin and then its argument prototype would still apply.  */
26883 char $ac_func ();
26884 /* The GNU C library defines this for functions which it implements
26885     to always fail with ENOSYS.  Some functions are actually named
26886     something starting with __ and the normal name is an alias.  */
26887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26888 choke me
26889 #else
26890 char (*f) () = $ac_func;
26891 #endif
26892 #ifdef __cplusplus
26893 }
26894 #endif
26895
26896 int
26897 main ()
26898 {
26899 return f != $ac_func;
26900   ;
26901   return 0;
26902 }
26903 _ACEOF
26904 rm -f conftest.$ac_objext conftest$ac_exeext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26906   (eval $ac_link) 2>conftest.er1
26907   ac_status=$?
26908   grep -v '^ *+' conftest.er1 >conftest.err
26909   rm -f conftest.er1
26910   cat conftest.err >&5
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); } &&
26913          { ac_try='test -z "$ac_c_werror_flag"
26914                          || test ! -s conftest.err'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; } &&
26920          { ac_try='test -s conftest$ac_exeext'
26921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922   (eval $ac_try) 2>&5
26923   ac_status=$?
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); }; }; then
26926   eval "$as_ac_var=yes"
26927 else
26928   echo "$as_me: failed program was:" >&5
26929 sed 's/^/| /' conftest.$ac_ext >&5
26930
26931 eval "$as_ac_var=no"
26932 fi
26933 rm -f conftest.err conftest.$ac_objext \
26934       conftest$ac_exeext conftest.$ac_ext
26935 fi
26936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26938 if test `eval echo '${'$as_ac_var'}'` = yes; then
26939   cat >>confdefs.h <<_ACEOF
26940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26941 _ACEOF
26942  cat >>confdefs.h <<\_ACEOF
26943 #define HAVE_INET_PTON 1
26944 _ACEOF
26945
26946 fi
26947 done
26948
26949
26950 for ac_func in inet_ntop
26951 do
26952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26953 echo "$as_me:$LINENO: checking for $ac_func" >&5
26954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26955 if eval "test \"\${$as_ac_var+set}\" = set"; then
26956   echo $ECHO_N "(cached) $ECHO_C" >&6
26957 else
26958   cat >conftest.$ac_ext <<_ACEOF
26959 /* confdefs.h.  */
26960 _ACEOF
26961 cat confdefs.h >>conftest.$ac_ext
26962 cat >>conftest.$ac_ext <<_ACEOF
26963 /* end confdefs.h.  */
26964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26966 #define $ac_func innocuous_$ac_func
26967
26968 /* System header to define __stub macros and hopefully few prototypes,
26969     which can conflict with char $ac_func (); below.
26970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26971     <limits.h> exists even on freestanding compilers.  */
26972
26973 #ifdef __STDC__
26974 # include <limits.h>
26975 #else
26976 # include <assert.h>
26977 #endif
26978
26979 #undef $ac_func
26980
26981 /* Override any gcc2 internal prototype to avoid an error.  */
26982 #ifdef __cplusplus
26983 extern "C"
26984 {
26985 #endif
26986 /* We use char because int might match the return type of a gcc2
26987    builtin and then its argument prototype would still apply.  */
26988 char $ac_func ();
26989 /* The GNU C library defines this for functions which it implements
26990     to always fail with ENOSYS.  Some functions are actually named
26991     something starting with __ and the normal name is an alias.  */
26992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26993 choke me
26994 #else
26995 char (*f) () = $ac_func;
26996 #endif
26997 #ifdef __cplusplus
26998 }
26999 #endif
27000
27001 int
27002 main ()
27003 {
27004 return f != $ac_func;
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 rm -f conftest.$ac_objext conftest$ac_exeext
27010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27011   (eval $ac_link) 2>conftest.er1
27012   ac_status=$?
27013   grep -v '^ *+' conftest.er1 >conftest.err
27014   rm -f conftest.er1
27015   cat conftest.err >&5
27016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017   (exit $ac_status); } &&
27018          { ac_try='test -z "$ac_c_werror_flag"
27019                          || test ! -s conftest.err'
27020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021   (eval $ac_try) 2>&5
27022   ac_status=$?
27023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024   (exit $ac_status); }; } &&
27025          { ac_try='test -s conftest$ac_exeext'
27026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027   (eval $ac_try) 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); }; }; then
27031   eval "$as_ac_var=yes"
27032 else
27033   echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27035
27036 eval "$as_ac_var=no"
27037 fi
27038 rm -f conftest.err conftest.$ac_objext \
27039       conftest$ac_exeext conftest.$ac_ext
27040 fi
27041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27043 if test `eval echo '${'$as_ac_var'}'` = yes; then
27044   cat >>confdefs.h <<_ACEOF
27045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27046 _ACEOF
27047  cat >>confdefs.h <<\_ACEOF
27048 #define HAVE_INET_NTOP 1
27049 _ACEOF
27050
27051 fi
27052 done
27053
27054
27055 for ac_func in gethostbyname2
27056 do
27057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27058 echo "$as_me:$LINENO: checking for $ac_func" >&5
27059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27060 if eval "test \"\${$as_ac_var+set}\" = set"; then
27061   echo $ECHO_N "(cached) $ECHO_C" >&6
27062 else
27063   cat >conftest.$ac_ext <<_ACEOF
27064 /* confdefs.h.  */
27065 _ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h.  */
27069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27071 #define $ac_func innocuous_$ac_func
27072
27073 /* System header to define __stub macros and hopefully few prototypes,
27074     which can conflict with char $ac_func (); below.
27075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27076     <limits.h> exists even on freestanding compilers.  */
27077
27078 #ifdef __STDC__
27079 # include <limits.h>
27080 #else
27081 # include <assert.h>
27082 #endif
27083
27084 #undef $ac_func
27085
27086 /* Override any gcc2 internal prototype to avoid an error.  */
27087 #ifdef __cplusplus
27088 extern "C"
27089 {
27090 #endif
27091 /* We use char because int might match the return type of a gcc2
27092    builtin and then its argument prototype would still apply.  */
27093 char $ac_func ();
27094 /* The GNU C library defines this for functions which it implements
27095     to always fail with ENOSYS.  Some functions are actually named
27096     something starting with __ and the normal name is an alias.  */
27097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27098 choke me
27099 #else
27100 char (*f) () = $ac_func;
27101 #endif
27102 #ifdef __cplusplus
27103 }
27104 #endif
27105
27106 int
27107 main ()
27108 {
27109 return f != $ac_func;
27110   ;
27111   return 0;
27112 }
27113 _ACEOF
27114 rm -f conftest.$ac_objext conftest$ac_exeext
27115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27116   (eval $ac_link) 2>conftest.er1
27117   ac_status=$?
27118   grep -v '^ *+' conftest.er1 >conftest.err
27119   rm -f conftest.er1
27120   cat conftest.err >&5
27121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122   (exit $ac_status); } &&
27123          { ac_try='test -z "$ac_c_werror_flag"
27124                          || test ! -s conftest.err'
27125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126   (eval $ac_try) 2>&5
27127   ac_status=$?
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); }; } &&
27130          { ac_try='test -s conftest$ac_exeext'
27131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132   (eval $ac_try) 2>&5
27133   ac_status=$?
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); }; }; then
27136   eval "$as_ac_var=yes"
27137 else
27138   echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27140
27141 eval "$as_ac_var=no"
27142 fi
27143 rm -f conftest.err conftest.$ac_objext \
27144       conftest$ac_exeext conftest.$ac_ext
27145 fi
27146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27148 if test `eval echo '${'$as_ac_var'}'` = yes; then
27149   cat >>confdefs.h <<_ACEOF
27150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27151 _ACEOF
27152  cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_GETHOSTBYNAME2 1
27154 _ACEOF
27155
27156 fi
27157 done
27158
27159
27160 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27161 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27162 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27163   echo $ECHO_N "(cached) $ECHO_C" >&6
27164 else
27165   cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171 #include <sys/socket.h>
27172 int
27173 main ()
27174 {
27175 struct sockaddr s; s.sa_len;
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext
27181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182   (eval $ac_compile) 2>conftest.er1
27183   ac_status=$?
27184   grep -v '^ *+' conftest.er1 >conftest.err
27185   rm -f conftest.er1
27186   cat conftest.err >&5
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); } &&
27189          { ac_try='test -z "$ac_c_werror_flag"
27190                          || test ! -s conftest.err'
27191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192   (eval $ac_try) 2>&5
27193   ac_status=$?
27194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195   (exit $ac_status); }; } &&
27196          { ac_try='test -s conftest.$ac_objext'
27197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198   (eval $ac_try) 2>&5
27199   ac_status=$?
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); }; }; then
27202   ac_cv_struct_sockaddr_sa_len=yes
27203 else
27204   echo "$as_me: failed program was:" >&5
27205 sed 's/^/| /' conftest.$ac_ext >&5
27206
27207 ac_cv_struct_sockaddr_sa_len=no
27208 fi
27209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27210 fi
27211 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27212 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27213
27214  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27215
27216 cat >>confdefs.h <<\_ACEOF
27217 #define HAVE_SA_LEN 1
27218 _ACEOF
27219
27220  fi
27221
27222
27223 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27224 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27225 if test "${ac_cv_ipv6_support+set}" = set; then
27226   echo $ECHO_N "(cached) $ECHO_C" >&6
27227 else
27228   cat >conftest.$ac_ext <<_ACEOF
27229 /* confdefs.h.  */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h.  */
27234  #include <sys/types.h>
27235 #include <sys/socket.h>
27236 #include <netinet/in.h>
27237 int
27238 main ()
27239 {
27240 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27241  0;
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248   (eval $ac_link) 2>conftest.er1
27249   ac_status=$?
27250   grep -v '^ *+' conftest.er1 >conftest.err
27251   rm -f conftest.er1
27252   cat conftest.err >&5
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); } &&
27255          { ac_try='test -z "$ac_c_werror_flag"
27256                          || test ! -s conftest.err'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; } &&
27262          { ac_try='test -s conftest$ac_exeext'
27263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264   (eval $ac_try) 2>&5
27265   ac_status=$?
27266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267   (exit $ac_status); }; }; then
27268   ac_cv_ipv6_support=yes
27269 else
27270   echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273 ac_cv_ipv6_support=no
27274 fi
27275 rm -f conftest.err conftest.$ac_objext \
27276       conftest$ac_exeext conftest.$ac_ext
27277 fi
27278 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27279 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27280
27281 if test "$ac_cv_ipv6_support" = yes; then
27282
27283 cat >>confdefs.h <<\_ACEOF
27284 #define HAVE_IPV6 1
27285 _ACEOF
27286
27287 fi
27288
27289
27290
27291
27292 for ac_func in strftime
27293 do
27294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27295 echo "$as_me:$LINENO: checking for $ac_func" >&5
27296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27297 if eval "test \"\${$as_ac_var+set}\" = set"; then
27298   echo $ECHO_N "(cached) $ECHO_C" >&6
27299 else
27300   cat >conftest.$ac_ext <<_ACEOF
27301 /* confdefs.h.  */
27302 _ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h.  */
27306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27308 #define $ac_func innocuous_$ac_func
27309
27310 /* System header to define __stub macros and hopefully few prototypes,
27311     which can conflict with char $ac_func (); below.
27312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27313     <limits.h> exists even on freestanding compilers.  */
27314
27315 #ifdef __STDC__
27316 # include <limits.h>
27317 #else
27318 # include <assert.h>
27319 #endif
27320
27321 #undef $ac_func
27322
27323 /* Override any gcc2 internal prototype to avoid an error.  */
27324 #ifdef __cplusplus
27325 extern "C"
27326 {
27327 #endif
27328 /* We use char because int might match the return type of a gcc2
27329    builtin and then its argument prototype would still apply.  */
27330 char $ac_func ();
27331 /* The GNU C library defines this for functions which it implements
27332     to always fail with ENOSYS.  Some functions are actually named
27333     something starting with __ and the normal name is an alias.  */
27334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27335 choke me
27336 #else
27337 char (*f) () = $ac_func;
27338 #endif
27339 #ifdef __cplusplus
27340 }
27341 #endif
27342
27343 int
27344 main ()
27345 {
27346 return f != $ac_func;
27347   ;
27348   return 0;
27349 }
27350 _ACEOF
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27353   (eval $ac_link) 2>conftest.er1
27354   ac_status=$?
27355   grep -v '^ *+' conftest.er1 >conftest.err
27356   rm -f conftest.er1
27357   cat conftest.err >&5
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } &&
27360          { ac_try='test -z "$ac_c_werror_flag"
27361                          || test ! -s conftest.err'
27362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363   (eval $ac_try) 2>&5
27364   ac_status=$?
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); }; } &&
27367          { ac_try='test -s conftest$ac_exeext'
27368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369   (eval $ac_try) 2>&5
27370   ac_status=$?
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); }; }; then
27373   eval "$as_ac_var=yes"
27374 else
27375   echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27377
27378 eval "$as_ac_var=no"
27379 fi
27380 rm -f conftest.err conftest.$ac_objext \
27381       conftest$ac_exeext conftest.$ac_ext
27382 fi
27383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27385 if test `eval echo '${'$as_ac_var'}'` = yes; then
27386   cat >>confdefs.h <<_ACEOF
27387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27388 _ACEOF
27389
27390 else
27391   # strftime is in -lintl on SCO UNIX.
27392 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27393 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27394 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27395   echo $ECHO_N "(cached) $ECHO_C" >&6
27396 else
27397   ac_check_lib_save_LIBS=$LIBS
27398 LIBS="-lintl  $LIBS"
27399 cat >conftest.$ac_ext <<_ACEOF
27400 /* confdefs.h.  */
27401 _ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h.  */
27405
27406 /* Override any gcc2 internal prototype to avoid an error.  */
27407 #ifdef __cplusplus
27408 extern "C"
27409 #endif
27410 /* We use char because int might match the return type of a gcc2
27411    builtin and then its argument prototype would still apply.  */
27412 char strftime ();
27413 int
27414 main ()
27415 {
27416 strftime ();
27417   ;
27418   return 0;
27419 }
27420 _ACEOF
27421 rm -f conftest.$ac_objext conftest$ac_exeext
27422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27423   (eval $ac_link) 2>conftest.er1
27424   ac_status=$?
27425   grep -v '^ *+' conftest.er1 >conftest.err
27426   rm -f conftest.er1
27427   cat conftest.err >&5
27428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429   (exit $ac_status); } &&
27430          { ac_try='test -z "$ac_c_werror_flag"
27431                          || test ! -s conftest.err'
27432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433   (eval $ac_try) 2>&5
27434   ac_status=$?
27435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436   (exit $ac_status); }; } &&
27437          { ac_try='test -s conftest$ac_exeext'
27438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27439   (eval $ac_try) 2>&5
27440   ac_status=$?
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); }; }; then
27443   ac_cv_lib_intl_strftime=yes
27444 else
27445   echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27447
27448 ac_cv_lib_intl_strftime=no
27449 fi
27450 rm -f conftest.err conftest.$ac_objext \
27451       conftest$ac_exeext conftest.$ac_ext
27452 LIBS=$ac_check_lib_save_LIBS
27453 fi
27454 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27455 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27456 if test $ac_cv_lib_intl_strftime = yes; then
27457   cat >>confdefs.h <<\_ACEOF
27458 #define HAVE_STRFTIME 1
27459 _ACEOF
27460
27461 LIBS="-lintl $LIBS"
27462 fi
27463
27464 fi
27465 done
27466
27467
27468 for ac_func in vprintf
27469 do
27470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27471 echo "$as_me:$LINENO: checking for $ac_func" >&5
27472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27473 if eval "test \"\${$as_ac_var+set}\" = set"; then
27474   echo $ECHO_N "(cached) $ECHO_C" >&6
27475 else
27476   cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h.  */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h.  */
27482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27484 #define $ac_func innocuous_$ac_func
27485
27486 /* System header to define __stub macros and hopefully few prototypes,
27487     which can conflict with char $ac_func (); below.
27488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27489     <limits.h> exists even on freestanding compilers.  */
27490
27491 #ifdef __STDC__
27492 # include <limits.h>
27493 #else
27494 # include <assert.h>
27495 #endif
27496
27497 #undef $ac_func
27498
27499 /* Override any gcc2 internal prototype to avoid an error.  */
27500 #ifdef __cplusplus
27501 extern "C"
27502 {
27503 #endif
27504 /* We use char because int might match the return type of a gcc2
27505    builtin and then its argument prototype would still apply.  */
27506 char $ac_func ();
27507 /* The GNU C library defines this for functions which it implements
27508     to always fail with ENOSYS.  Some functions are actually named
27509     something starting with __ and the normal name is an alias.  */
27510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27511 choke me
27512 #else
27513 char (*f) () = $ac_func;
27514 #endif
27515 #ifdef __cplusplus
27516 }
27517 #endif
27518
27519 int
27520 main ()
27521 {
27522 return f != $ac_func;
27523   ;
27524   return 0;
27525 }
27526 _ACEOF
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27529   (eval $ac_link) 2>conftest.er1
27530   ac_status=$?
27531   grep -v '^ *+' conftest.er1 >conftest.err
27532   rm -f conftest.er1
27533   cat conftest.err >&5
27534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535   (exit $ac_status); } &&
27536          { ac_try='test -z "$ac_c_werror_flag"
27537                          || test ! -s conftest.err'
27538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539   (eval $ac_try) 2>&5
27540   ac_status=$?
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); }; } &&
27543          { ac_try='test -s conftest$ac_exeext'
27544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545   (eval $ac_try) 2>&5
27546   ac_status=$?
27547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548   (exit $ac_status); }; }; then
27549   eval "$as_ac_var=yes"
27550 else
27551   echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27553
27554 eval "$as_ac_var=no"
27555 fi
27556 rm -f conftest.err conftest.$ac_objext \
27557       conftest$ac_exeext conftest.$ac_ext
27558 fi
27559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27561 if test `eval echo '${'$as_ac_var'}'` = yes; then
27562   cat >>confdefs.h <<_ACEOF
27563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27564 _ACEOF
27565
27566 echo "$as_me:$LINENO: checking for _doprnt" >&5
27567 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27568 if test "${ac_cv_func__doprnt+set}" = set; then
27569   echo $ECHO_N "(cached) $ECHO_C" >&6
27570 else
27571   cat >conftest.$ac_ext <<_ACEOF
27572 /* confdefs.h.  */
27573 _ACEOF
27574 cat confdefs.h >>conftest.$ac_ext
27575 cat >>conftest.$ac_ext <<_ACEOF
27576 /* end confdefs.h.  */
27577 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27579 #define _doprnt innocuous__doprnt
27580
27581 /* System header to define __stub macros and hopefully few prototypes,
27582     which can conflict with char _doprnt (); below.
27583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27584     <limits.h> exists even on freestanding compilers.  */
27585
27586 #ifdef __STDC__
27587 # include <limits.h>
27588 #else
27589 # include <assert.h>
27590 #endif
27591
27592 #undef _doprnt
27593
27594 /* Override any gcc2 internal prototype to avoid an error.  */
27595 #ifdef __cplusplus
27596 extern "C"
27597 {
27598 #endif
27599 /* We use char because int might match the return type of a gcc2
27600    builtin and then its argument prototype would still apply.  */
27601 char _doprnt ();
27602 /* The GNU C library defines this for functions which it implements
27603     to always fail with ENOSYS.  Some functions are actually named
27604     something starting with __ and the normal name is an alias.  */
27605 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27606 choke me
27607 #else
27608 char (*f) () = _doprnt;
27609 #endif
27610 #ifdef __cplusplus
27611 }
27612 #endif
27613
27614 int
27615 main ()
27616 {
27617 return f != _doprnt;
27618   ;
27619   return 0;
27620 }
27621 _ACEOF
27622 rm -f conftest.$ac_objext conftest$ac_exeext
27623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27624   (eval $ac_link) 2>conftest.er1
27625   ac_status=$?
27626   grep -v '^ *+' conftest.er1 >conftest.err
27627   rm -f conftest.er1
27628   cat conftest.err >&5
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); } &&
27631          { ac_try='test -z "$ac_c_werror_flag"
27632                          || test ! -s conftest.err'
27633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634   (eval $ac_try) 2>&5
27635   ac_status=$?
27636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637   (exit $ac_status); }; } &&
27638          { ac_try='test -s conftest$ac_exeext'
27639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27640   (eval $ac_try) 2>&5
27641   ac_status=$?
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); }; }; then
27644   ac_cv_func__doprnt=yes
27645 else
27646   echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27648
27649 ac_cv_func__doprnt=no
27650 fi
27651 rm -f conftest.err conftest.$ac_objext \
27652       conftest$ac_exeext conftest.$ac_ext
27653 fi
27654 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27655 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27656 if test $ac_cv_func__doprnt = yes; then
27657
27658 cat >>confdefs.h <<\_ACEOF
27659 #define HAVE_DOPRNT 1
27660 _ACEOF
27661
27662 fi
27663
27664 fi
27665 done
27666
27667
27668 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27669 # for constant arguments.  Useless!
27670 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27671 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27672 if test "${ac_cv_working_alloca_h+set}" = set; then
27673   echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675   cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681 #include <alloca.h>
27682 int
27683 main ()
27684 {
27685 char *p = (char *) alloca (2 * sizeof (int));
27686   ;
27687   return 0;
27688 }
27689 _ACEOF
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692   (eval $ac_link) 2>conftest.er1
27693   ac_status=$?
27694   grep -v '^ *+' conftest.er1 >conftest.err
27695   rm -f conftest.er1
27696   cat conftest.err >&5
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); } &&
27699          { ac_try='test -z "$ac_c_werror_flag"
27700                          || test ! -s conftest.err'
27701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702   (eval $ac_try) 2>&5
27703   ac_status=$?
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); }; } &&
27706          { ac_try='test -s conftest$ac_exeext'
27707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708   (eval $ac_try) 2>&5
27709   ac_status=$?
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); }; }; then
27712   ac_cv_working_alloca_h=yes
27713 else
27714   echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.$ac_ext >&5
27716
27717 ac_cv_working_alloca_h=no
27718 fi
27719 rm -f conftest.err conftest.$ac_objext \
27720       conftest$ac_exeext conftest.$ac_ext
27721 fi
27722 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27723 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27724 if test $ac_cv_working_alloca_h = yes; then
27725
27726 cat >>confdefs.h <<\_ACEOF
27727 #define HAVE_ALLOCA_H 1
27728 _ACEOF
27729
27730 fi
27731
27732 echo "$as_me:$LINENO: checking for alloca" >&5
27733 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27734 if test "${ac_cv_func_alloca_works+set}" = set; then
27735   echo $ECHO_N "(cached) $ECHO_C" >&6
27736 else
27737   cat >conftest.$ac_ext <<_ACEOF
27738 /* confdefs.h.  */
27739 _ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h.  */
27743 #ifdef __GNUC__
27744 # define alloca __builtin_alloca
27745 #else
27746 # ifdef _MSC_VER
27747 #  include <malloc.h>
27748 #  define alloca _alloca
27749 # else
27750 #  if HAVE_ALLOCA_H
27751 #   include <alloca.h>
27752 #  else
27753 #   ifdef _AIX
27754  #pragma alloca
27755 #   else
27756 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27757 char *alloca ();
27758 #    endif
27759 #   endif
27760 #  endif
27761 # endif
27762 #endif
27763
27764 int
27765 main ()
27766 {
27767 char *p = (char *) alloca (1);
27768   ;
27769   return 0;
27770 }
27771 _ACEOF
27772 rm -f conftest.$ac_objext conftest$ac_exeext
27773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27774   (eval $ac_link) 2>conftest.er1
27775   ac_status=$?
27776   grep -v '^ *+' conftest.er1 >conftest.err
27777   rm -f conftest.er1
27778   cat conftest.err >&5
27779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); } &&
27781          { ac_try='test -z "$ac_c_werror_flag"
27782                          || test ! -s conftest.err'
27783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784   (eval $ac_try) 2>&5
27785   ac_status=$?
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); }; } &&
27788          { ac_try='test -s conftest$ac_exeext'
27789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790   (eval $ac_try) 2>&5
27791   ac_status=$?
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); }; }; then
27794   ac_cv_func_alloca_works=yes
27795 else
27796   echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27798
27799 ac_cv_func_alloca_works=no
27800 fi
27801 rm -f conftest.err conftest.$ac_objext \
27802       conftest$ac_exeext conftest.$ac_ext
27803 fi
27804 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27805 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27806
27807 if test $ac_cv_func_alloca_works = yes; then
27808
27809 cat >>confdefs.h <<\_ACEOF
27810 #define HAVE_ALLOCA 1
27811 _ACEOF
27812
27813 else
27814   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27815 # that cause trouble.  Some versions do not even contain alloca or
27816 # contain a buggy version.  If you still want to use their alloca,
27817 # use ar to extract alloca.o from them instead of compiling alloca.c.
27818
27819 ALLOCA=alloca.$ac_objext
27820
27821 cat >>confdefs.h <<\_ACEOF
27822 #define C_ALLOCA 1
27823 _ACEOF
27824
27825
27826 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27827 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27828 if test "${ac_cv_os_cray+set}" = set; then
27829   echo $ECHO_N "(cached) $ECHO_C" >&6
27830 else
27831   cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h.  */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h.  */
27837 #if defined(CRAY) && ! defined(CRAY2)
27838 webecray
27839 #else
27840 wenotbecray
27841 #endif
27842
27843 _ACEOF
27844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27845   $EGREP "webecray" >/dev/null 2>&1; then
27846   ac_cv_os_cray=yes
27847 else
27848   ac_cv_os_cray=no
27849 fi
27850 rm -f conftest*
27851
27852 fi
27853 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27854 echo "${ECHO_T}$ac_cv_os_cray" >&6
27855 if test $ac_cv_os_cray = yes; then
27856   for ac_func in _getb67 GETB67 getb67; do
27857     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27858 echo "$as_me:$LINENO: checking for $ac_func" >&5
27859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27860 if eval "test \"\${$as_ac_var+set}\" = set"; then
27861   echo $ECHO_N "(cached) $ECHO_C" >&6
27862 else
27863   cat >conftest.$ac_ext <<_ACEOF
27864 /* confdefs.h.  */
27865 _ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h.  */
27869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27871 #define $ac_func innocuous_$ac_func
27872
27873 /* System header to define __stub macros and hopefully few prototypes,
27874     which can conflict with char $ac_func (); below.
27875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27876     <limits.h> exists even on freestanding compilers.  */
27877
27878 #ifdef __STDC__
27879 # include <limits.h>
27880 #else
27881 # include <assert.h>
27882 #endif
27883
27884 #undef $ac_func
27885
27886 /* Override any gcc2 internal prototype to avoid an error.  */
27887 #ifdef __cplusplus
27888 extern "C"
27889 {
27890 #endif
27891 /* We use char because int might match the return type of a gcc2
27892    builtin and then its argument prototype would still apply.  */
27893 char $ac_func ();
27894 /* The GNU C library defines this for functions which it implements
27895     to always fail with ENOSYS.  Some functions are actually named
27896     something starting with __ and the normal name is an alias.  */
27897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27898 choke me
27899 #else
27900 char (*f) () = $ac_func;
27901 #endif
27902 #ifdef __cplusplus
27903 }
27904 #endif
27905
27906 int
27907 main ()
27908 {
27909 return f != $ac_func;
27910   ;
27911   return 0;
27912 }
27913 _ACEOF
27914 rm -f conftest.$ac_objext conftest$ac_exeext
27915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27916   (eval $ac_link) 2>conftest.er1
27917   ac_status=$?
27918   grep -v '^ *+' conftest.er1 >conftest.err
27919   rm -f conftest.er1
27920   cat conftest.err >&5
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); } &&
27923          { ac_try='test -z "$ac_c_werror_flag"
27924                          || test ! -s conftest.err'
27925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27926   (eval $ac_try) 2>&5
27927   ac_status=$?
27928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27929   (exit $ac_status); }; } &&
27930          { ac_try='test -s conftest$ac_exeext'
27931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27932   (eval $ac_try) 2>&5
27933   ac_status=$?
27934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935   (exit $ac_status); }; }; then
27936   eval "$as_ac_var=yes"
27937 else
27938   echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.$ac_ext >&5
27940
27941 eval "$as_ac_var=no"
27942 fi
27943 rm -f conftest.err conftest.$ac_objext \
27944       conftest$ac_exeext conftest.$ac_ext
27945 fi
27946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27948 if test `eval echo '${'$as_ac_var'}'` = yes; then
27949
27950 cat >>confdefs.h <<_ACEOF
27951 #define CRAY_STACKSEG_END $ac_func
27952 _ACEOF
27953
27954     break
27955 fi
27956
27957   done
27958 fi
27959
27960 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27961 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27962 if test "${ac_cv_c_stack_direction+set}" = set; then
27963   echo $ECHO_N "(cached) $ECHO_C" >&6
27964 else
27965   if test "$cross_compiling" = yes; then
27966   ac_cv_c_stack_direction=0
27967 else
27968   cat >conftest.$ac_ext <<_ACEOF
27969 /* confdefs.h.  */
27970 _ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h.  */
27974 int
27975 find_stack_direction ()
27976 {
27977   static char *addr = 0;
27978   auto char dummy;
27979   if (addr == 0)
27980     {
27981       addr = &dummy;
27982       return find_stack_direction ();
27983     }
27984   else
27985     return (&dummy > addr) ? 1 : -1;
27986 }
27987
27988 int
27989 main ()
27990 {
27991   exit (find_stack_direction () < 0);
27992 }
27993 _ACEOF
27994 rm -f conftest$ac_exeext
27995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27996   (eval $ac_link) 2>&5
27997   ac_status=$?
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001   (eval $ac_try) 2>&5
28002   ac_status=$?
28003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004   (exit $ac_status); }; }; then
28005   ac_cv_c_stack_direction=1
28006 else
28007   echo "$as_me: program exited with status $ac_status" >&5
28008 echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28010
28011 ( exit $ac_status )
28012 ac_cv_c_stack_direction=-1
28013 fi
28014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28015 fi
28016 fi
28017 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28018 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28019
28020 cat >>confdefs.h <<_ACEOF
28021 #define STACK_DIRECTION $ac_cv_c_stack_direction
28022 _ACEOF
28023
28024
28025 fi
28026
28027 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28028 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28029 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28030 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28031   echo $ECHO_N "(cached) $ECHO_C" >&6
28032 else
28033   ac_check_lib_save_LIBS=$LIBS
28034 LIBS="-lsun  $LIBS"
28035 cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h.  */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h.  */
28041
28042 /* Override any gcc2 internal prototype to avoid an error.  */
28043 #ifdef __cplusplus
28044 extern "C"
28045 #endif
28046 /* We use char because int might match the return type of a gcc2
28047    builtin and then its argument prototype would still apply.  */
28048 char getmntent ();
28049 int
28050 main ()
28051 {
28052 getmntent ();
28053   ;
28054   return 0;
28055 }
28056 _ACEOF
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059   (eval $ac_link) 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag"
28067                          || test ! -s conftest.err'
28068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069   (eval $ac_try) 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; } &&
28073          { ac_try='test -s conftest$ac_exeext'
28074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075   (eval $ac_try) 2>&5
28076   ac_status=$?
28077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078   (exit $ac_status); }; }; then
28079   ac_cv_lib_sun_getmntent=yes
28080 else
28081   echo "$as_me: failed program was:" >&5
28082 sed 's/^/| /' conftest.$ac_ext >&5
28083
28084 ac_cv_lib_sun_getmntent=no
28085 fi
28086 rm -f conftest.err conftest.$ac_objext \
28087       conftest$ac_exeext conftest.$ac_ext
28088 LIBS=$ac_check_lib_save_LIBS
28089 fi
28090 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28091 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28092 if test $ac_cv_lib_sun_getmntent = yes; then
28093   LIBS="-lsun $LIBS"
28094 else
28095   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28096 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28097 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28098   echo $ECHO_N "(cached) $ECHO_C" >&6
28099 else
28100   ac_check_lib_save_LIBS=$LIBS
28101 LIBS="-lseq  $LIBS"
28102 cat >conftest.$ac_ext <<_ACEOF
28103 /* confdefs.h.  */
28104 _ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h.  */
28108
28109 /* Override any gcc2 internal prototype to avoid an error.  */
28110 #ifdef __cplusplus
28111 extern "C"
28112 #endif
28113 /* We use char because int might match the return type of a gcc2
28114    builtin and then its argument prototype would still apply.  */
28115 char getmntent ();
28116 int
28117 main ()
28118 {
28119 getmntent ();
28120   ;
28121   return 0;
28122 }
28123 _ACEOF
28124 rm -f conftest.$ac_objext conftest$ac_exeext
28125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28126   (eval $ac_link) 2>conftest.er1
28127   ac_status=$?
28128   grep -v '^ *+' conftest.er1 >conftest.err
28129   rm -f conftest.er1
28130   cat conftest.err >&5
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); } &&
28133          { ac_try='test -z "$ac_c_werror_flag"
28134                          || test ! -s conftest.err'
28135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136   (eval $ac_try) 2>&5
28137   ac_status=$?
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); }; } &&
28140          { ac_try='test -s conftest$ac_exeext'
28141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142   (eval $ac_try) 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); }; }; then
28146   ac_cv_lib_seq_getmntent=yes
28147 else
28148   echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28150
28151 ac_cv_lib_seq_getmntent=no
28152 fi
28153 rm -f conftest.err conftest.$ac_objext \
28154       conftest$ac_exeext conftest.$ac_ext
28155 LIBS=$ac_check_lib_save_LIBS
28156 fi
28157 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28158 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28159 if test $ac_cv_lib_seq_getmntent = yes; then
28160   LIBS="-lseq $LIBS"
28161 else
28162   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28163 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28164 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28165   echo $ECHO_N "(cached) $ECHO_C" >&6
28166 else
28167   ac_check_lib_save_LIBS=$LIBS
28168 LIBS="-lgen  $LIBS"
28169 cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175
28176 /* Override any gcc2 internal prototype to avoid an error.  */
28177 #ifdef __cplusplus
28178 extern "C"
28179 #endif
28180 /* We use char because int might match the return type of a gcc2
28181    builtin and then its argument prototype would still apply.  */
28182 char getmntent ();
28183 int
28184 main ()
28185 {
28186 getmntent ();
28187   ;
28188   return 0;
28189 }
28190 _ACEOF
28191 rm -f conftest.$ac_objext conftest$ac_exeext
28192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28193   (eval $ac_link) 2>conftest.er1
28194   ac_status=$?
28195   grep -v '^ *+' conftest.er1 >conftest.err
28196   rm -f conftest.er1
28197   cat conftest.err >&5
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } &&
28200          { ac_try='test -z "$ac_c_werror_flag"
28201                          || test ! -s conftest.err'
28202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203   (eval $ac_try) 2>&5
28204   ac_status=$?
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); }; } &&
28207          { ac_try='test -s conftest$ac_exeext'
28208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209   (eval $ac_try) 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; }; then
28213   ac_cv_lib_gen_getmntent=yes
28214 else
28215   echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28217
28218 ac_cv_lib_gen_getmntent=no
28219 fi
28220 rm -f conftest.err conftest.$ac_objext \
28221       conftest$ac_exeext conftest.$ac_ext
28222 LIBS=$ac_check_lib_save_LIBS
28223 fi
28224 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28225 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28226 if test $ac_cv_lib_gen_getmntent = yes; then
28227   LIBS="-lgen $LIBS"
28228 fi
28229
28230 fi
28231
28232 fi
28233
28234
28235 for ac_func in getmntent
28236 do
28237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28238 echo "$as_me:$LINENO: checking for $ac_func" >&5
28239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28240 if eval "test \"\${$as_ac_var+set}\" = set"; then
28241   echo $ECHO_N "(cached) $ECHO_C" >&6
28242 else
28243   cat >conftest.$ac_ext <<_ACEOF
28244 /* confdefs.h.  */
28245 _ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h.  */
28249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28251 #define $ac_func innocuous_$ac_func
28252
28253 /* System header to define __stub macros and hopefully few prototypes,
28254     which can conflict with char $ac_func (); below.
28255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28256     <limits.h> exists even on freestanding compilers.  */
28257
28258 #ifdef __STDC__
28259 # include <limits.h>
28260 #else
28261 # include <assert.h>
28262 #endif
28263
28264 #undef $ac_func
28265
28266 /* Override any gcc2 internal prototype to avoid an error.  */
28267 #ifdef __cplusplus
28268 extern "C"
28269 {
28270 #endif
28271 /* We use char because int might match the return type of a gcc2
28272    builtin and then its argument prototype would still apply.  */
28273 char $ac_func ();
28274 /* The GNU C library defines this for functions which it implements
28275     to always fail with ENOSYS.  Some functions are actually named
28276     something starting with __ and the normal name is an alias.  */
28277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28278 choke me
28279 #else
28280 char (*f) () = $ac_func;
28281 #endif
28282 #ifdef __cplusplus
28283 }
28284 #endif
28285
28286 int
28287 main ()
28288 {
28289 return f != $ac_func;
28290   ;
28291   return 0;
28292 }
28293 _ACEOF
28294 rm -f conftest.$ac_objext conftest$ac_exeext
28295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28296   (eval $ac_link) 2>conftest.er1
28297   ac_status=$?
28298   grep -v '^ *+' conftest.er1 >conftest.err
28299   rm -f conftest.er1
28300   cat conftest.err >&5
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); } &&
28303          { ac_try='test -z "$ac_c_werror_flag"
28304                          || test ! -s conftest.err'
28305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28306   (eval $ac_try) 2>&5
28307   ac_status=$?
28308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); }; } &&
28310          { ac_try='test -s conftest$ac_exeext'
28311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28312   (eval $ac_try) 2>&5
28313   ac_status=$?
28314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28315   (exit $ac_status); }; }; then
28316   eval "$as_ac_var=yes"
28317 else
28318   echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28320
28321 eval "$as_ac_var=no"
28322 fi
28323 rm -f conftest.err conftest.$ac_objext \
28324       conftest$ac_exeext conftest.$ac_ext
28325 fi
28326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28328 if test `eval echo '${'$as_ac_var'}'` = yes; then
28329   cat >>confdefs.h <<_ACEOF
28330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28331 _ACEOF
28332
28333 fi
28334 done
28335
28336
28337 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28338 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28339 if test "${ac_cv_func_closedir_void+set}" = set; then
28340   echo $ECHO_N "(cached) $ECHO_C" >&6
28341 else
28342   if test "$cross_compiling" = yes; then
28343   ac_cv_func_closedir_void=yes
28344 else
28345   cat >conftest.$ac_ext <<_ACEOF
28346 /* confdefs.h.  */
28347 _ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h.  */
28351 $ac_includes_default
28352 #include <$ac_header_dirent>
28353 #ifndef __cplusplus
28354 int closedir ();
28355 #endif
28356
28357 int
28358 main ()
28359 {
28360 exit (closedir (opendir (".")) != 0);
28361   ;
28362   return 0;
28363 }
28364 _ACEOF
28365 rm -f conftest$ac_exeext
28366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28367   (eval $ac_link) 2>&5
28368   ac_status=$?
28369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372   (eval $ac_try) 2>&5
28373   ac_status=$?
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); }; }; then
28376   ac_cv_func_closedir_void=no
28377 else
28378   echo "$as_me: program exited with status $ac_status" >&5
28379 echo "$as_me: failed program was:" >&5
28380 sed 's/^/| /' conftest.$ac_ext >&5
28381
28382 ( exit $ac_status )
28383 ac_cv_func_closedir_void=yes
28384 fi
28385 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28386 fi
28387 fi
28388 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28389 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28390 if test $ac_cv_func_closedir_void = yes; then
28391
28392 cat >>confdefs.h <<\_ACEOF
28393 #define CLOSEDIR_VOID 1
28394 _ACEOF
28395
28396 fi
28397
28398 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28399 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28400 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28401   echo $ECHO_N "(cached) $ECHO_C" >&6
28402 else
28403   if test "$cross_compiling" = yes; then
28404   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28405 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28406    { (exit 1); exit 1; }; }
28407 else
28408   cat >conftest.$ac_ext <<_ACEOF
28409 /* confdefs.h.  */
28410 _ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h.  */
28414 #if HAVE_UNISTD_H
28415 # include <unistd.h>
28416 #endif
28417
28418 int
28419 main ()
28420 {
28421 /* If this system has a BSD-style setpgrp which takes arguments,
28422   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28423   exit successfully. */
28424   exit (setpgrp (1,1) == -1 ? 0 : 1);
28425   ;
28426   return 0;
28427 }
28428 _ACEOF
28429 rm -f conftest$ac_exeext
28430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28431   (eval $ac_link) 2>&5
28432   ac_status=$?
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436   (eval $ac_try) 2>&5
28437   ac_status=$?
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); }; }; then
28440   ac_cv_func_setpgrp_void=no
28441 else
28442   echo "$as_me: program exited with status $ac_status" >&5
28443 echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28445
28446 ( exit $ac_status )
28447 ac_cv_func_setpgrp_void=yes
28448 fi
28449 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28450 fi
28451 fi
28452 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28453 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28454 if test $ac_cv_func_setpgrp_void = yes; then
28455
28456 cat >>confdefs.h <<\_ACEOF
28457 #define SETPGRP_VOID 1
28458 _ACEOF
28459
28460 fi
28461                       # AC_FUNC_FNMATCH    dnl use local version
28462
28463
28464 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28465 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28466 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28467   echo $ECHO_N "(cached) $ECHO_C" >&6
28468 else
28469   ac_check_lib_save_LIBS=$LIBS
28470 LIBS="-lintl  $LIBS"
28471 cat >conftest.$ac_ext <<_ACEOF
28472 /* confdefs.h.  */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h.  */
28477
28478 /* Override any gcc2 internal prototype to avoid an error.  */
28479 #ifdef __cplusplus
28480 extern "C"
28481 #endif
28482 /* We use char because int might match the return type of a gcc2
28483    builtin and then its argument prototype would still apply.  */
28484 char gettext ();
28485 int
28486 main ()
28487 {
28488 gettext ();
28489   ;
28490   return 0;
28491 }
28492 _ACEOF
28493 rm -f conftest.$ac_objext conftest$ac_exeext
28494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28495   (eval $ac_link) 2>conftest.er1
28496   ac_status=$?
28497   grep -v '^ *+' conftest.er1 >conftest.err
28498   rm -f conftest.er1
28499   cat conftest.err >&5
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); } &&
28502          { ac_try='test -z "$ac_c_werror_flag"
28503                          || test ! -s conftest.err'
28504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505   (eval $ac_try) 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; } &&
28509          { ac_try='test -s conftest$ac_exeext'
28510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511   (eval $ac_try) 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); }; }; then
28515   ac_cv_lib_intl_gettext=yes
28516 else
28517   echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28519
28520 ac_cv_lib_intl_gettext=no
28521 fi
28522 rm -f conftest.err conftest.$ac_objext \
28523       conftest$ac_exeext conftest.$ac_ext
28524 LIBS=$ac_check_lib_save_LIBS
28525 fi
28526 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28527 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28528 if test $ac_cv_lib_intl_gettext = yes; then
28529   LIBS="$LIBS -lintl"
28530 fi
28531
28532
28533
28534
28535 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28536 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28537 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28538   echo $ECHO_N "(cached) $ECHO_C" >&6
28539 else
28540   ac_check_lib_save_LIBS=$LIBS
28541 LIBS="-lsun  $LIBS"
28542 cat >conftest.$ac_ext <<_ACEOF
28543 /* confdefs.h.  */
28544 _ACEOF
28545 cat confdefs.h >>conftest.$ac_ext
28546 cat >>conftest.$ac_ext <<_ACEOF
28547 /* end confdefs.h.  */
28548
28549 /* Override any gcc2 internal prototype to avoid an error.  */
28550 #ifdef __cplusplus
28551 extern "C"
28552 #endif
28553 /* We use char because int might match the return type of a gcc2
28554    builtin and then its argument prototype would still apply.  */
28555 char getpwnam ();
28556 int
28557 main ()
28558 {
28559 getpwnam ();
28560   ;
28561   return 0;
28562 }
28563 _ACEOF
28564 rm -f conftest.$ac_objext conftest$ac_exeext
28565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28566   (eval $ac_link) 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } &&
28573          { ac_try='test -z "$ac_c_werror_flag"
28574                          || test ! -s conftest.err'
28575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28576   (eval $ac_try) 2>&5
28577   ac_status=$?
28578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); }; } &&
28580          { ac_try='test -s conftest$ac_exeext'
28581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582   (eval $ac_try) 2>&5
28583   ac_status=$?
28584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585   (exit $ac_status); }; }; then
28586   ac_cv_lib_sun_getpwnam=yes
28587 else
28588   echo "$as_me: failed program was:" >&5
28589 sed 's/^/| /' conftest.$ac_ext >&5
28590
28591 ac_cv_lib_sun_getpwnam=no
28592 fi
28593 rm -f conftest.err conftest.$ac_objext \
28594       conftest$ac_exeext conftest.$ac_ext
28595 LIBS=$ac_check_lib_save_LIBS
28596 fi
28597 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28598 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28599 if test $ac_cv_lib_sun_getpwnam = yes; then
28600   cat >>confdefs.h <<_ACEOF
28601 #define HAVE_LIBSUN 1
28602 _ACEOF
28603
28604   LIBS="-lsun $LIBS"
28605
28606 fi
28607
28608
28609
28610 for ac_header in zlib.h
28611 do
28612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28614   echo "$as_me:$LINENO: checking for $ac_header" >&5
28615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28617   echo $ECHO_N "(cached) $ECHO_C" >&6
28618 fi
28619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28621 else
28622   # Is the header compilable?
28623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28625 cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631 $ac_includes_default
28632 #include <$ac_header>
28633 _ACEOF
28634 rm -f conftest.$ac_objext
28635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28636   (eval $ac_compile) 2>conftest.er1
28637   ac_status=$?
28638   grep -v '^ *+' conftest.er1 >conftest.err
28639   rm -f conftest.er1
28640   cat conftest.err >&5
28641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642   (exit $ac_status); } &&
28643          { ac_try='test -z "$ac_c_werror_flag"
28644                          || test ! -s conftest.err'
28645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646   (eval $ac_try) 2>&5
28647   ac_status=$?
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); }; } &&
28650          { ac_try='test -s conftest.$ac_objext'
28651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28652   (eval $ac_try) 2>&5
28653   ac_status=$?
28654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655   (exit $ac_status); }; }; then
28656   ac_header_compiler=yes
28657 else
28658   echo "$as_me: failed program was:" >&5
28659 sed 's/^/| /' conftest.$ac_ext >&5
28660
28661 ac_header_compiler=no
28662 fi
28663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28665 echo "${ECHO_T}$ac_header_compiler" >&6
28666
28667 # Is the header present?
28668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28670 cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h.  */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h.  */
28676 #include <$ac_header>
28677 _ACEOF
28678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28680   ac_status=$?
28681   grep -v '^ *+' conftest.er1 >conftest.err
28682   rm -f conftest.er1
28683   cat conftest.err >&5
28684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685   (exit $ac_status); } >/dev/null; then
28686   if test -s conftest.err; then
28687     ac_cpp_err=$ac_c_preproc_warn_flag
28688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28689   else
28690     ac_cpp_err=
28691   fi
28692 else
28693   ac_cpp_err=yes
28694 fi
28695 if test -z "$ac_cpp_err"; then
28696   ac_header_preproc=yes
28697 else
28698   echo "$as_me: failed program was:" >&5
28699 sed 's/^/| /' conftest.$ac_ext >&5
28700
28701   ac_header_preproc=no
28702 fi
28703 rm -f conftest.err conftest.$ac_ext
28704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28705 echo "${ECHO_T}$ac_header_preproc" >&6
28706
28707 # So?  What about this header?
28708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28709   yes:no: )
28710     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28714     ac_header_preproc=yes
28715     ;;
28716   no:yes:* )
28717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28719     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28720 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28721     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28723     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28724 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28727     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28729     (
28730       cat <<\_ASBOX
28731 ## ------------------------------------------ ##
28732 ## Report this to the AC_PACKAGE_NAME lists.  ##
28733 ## ------------------------------------------ ##
28734 _ASBOX
28735     ) |
28736       sed "s/^/$as_me: WARNING:     /" >&2
28737     ;;
28738 esac
28739 echo "$as_me:$LINENO: checking for $ac_header" >&5
28740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28742   echo $ECHO_N "(cached) $ECHO_C" >&6
28743 else
28744   eval "$as_ac_Header=\$ac_header_preproc"
28745 fi
28746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28748
28749 fi
28750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28751   cat >>confdefs.h <<_ACEOF
28752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28753 _ACEOF
28754
28755 fi
28756
28757 done
28758
28759 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28760 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28761 if test "${ac_cv_lib_z_deflate+set}" = set; then
28762   echo $ECHO_N "(cached) $ECHO_C" >&6
28763 else
28764   ac_check_lib_save_LIBS=$LIBS
28765 LIBS="-lz  $LIBS"
28766 cat >conftest.$ac_ext <<_ACEOF
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772
28773 /* Override any gcc2 internal prototype to avoid an error.  */
28774 #ifdef __cplusplus
28775 extern "C"
28776 #endif
28777 /* We use char because int might match the return type of a gcc2
28778    builtin and then its argument prototype would still apply.  */
28779 char deflate ();
28780 int
28781 main ()
28782 {
28783 deflate ();
28784   ;
28785   return 0;
28786 }
28787 _ACEOF
28788 rm -f conftest.$ac_objext conftest$ac_exeext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28790   (eval $ac_link) 2>conftest.er1
28791   ac_status=$?
28792   grep -v '^ *+' conftest.er1 >conftest.err
28793   rm -f conftest.er1
28794   cat conftest.err >&5
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); } &&
28797          { ac_try='test -z "$ac_c_werror_flag"
28798                          || test ! -s conftest.err'
28799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800   (eval $ac_try) 2>&5
28801   ac_status=$?
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); }; } &&
28804          { ac_try='test -s conftest$ac_exeext'
28805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806   (eval $ac_try) 2>&5
28807   ac_status=$?
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); }; }; then
28810   ac_cv_lib_z_deflate=yes
28811 else
28812   echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28814
28815 ac_cv_lib_z_deflate=no
28816 fi
28817 rm -f conftest.err conftest.$ac_objext \
28818       conftest$ac_exeext conftest.$ac_ext
28819 LIBS=$ac_check_lib_save_LIBS
28820 fi
28821 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28822 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28823 if test $ac_cv_lib_z_deflate = yes; then
28824   FDLIBS="-lz"
28825 fi
28826
28827 have_zlib=no
28828 if test x$FDLIBS = x-lz; then
28829   cat >>confdefs.h <<\_ACEOF
28830 #define HAVE_LIBZ 1
28831 _ACEOF
28832
28833   have_zlib=yes
28834 fi
28835
28836 #
28837 # Check for ACL libraries
28838 #
28839 have_acl=no
28840 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28841   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28842 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28843 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28844   echo $ECHO_N "(cached) $ECHO_C" >&6
28845 fi
28846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28847 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28848 else
28849   # Is the header compilable?
28850 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28851 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28852 cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h.  */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h.  */
28858 $ac_includes_default
28859 #include <sys/acl.h>
28860 _ACEOF
28861 rm -f conftest.$ac_objext
28862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28863   (eval $ac_compile) 2>conftest.er1
28864   ac_status=$?
28865   grep -v '^ *+' conftest.er1 >conftest.err
28866   rm -f conftest.er1
28867   cat conftest.err >&5
28868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869   (exit $ac_status); } &&
28870          { ac_try='test -z "$ac_c_werror_flag"
28871                          || test ! -s conftest.err'
28872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873   (eval $ac_try) 2>&5
28874   ac_status=$?
28875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876   (exit $ac_status); }; } &&
28877          { ac_try='test -s conftest.$ac_objext'
28878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879   (eval $ac_try) 2>&5
28880   ac_status=$?
28881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882   (exit $ac_status); }; }; then
28883   ac_header_compiler=yes
28884 else
28885   echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28887
28888 ac_header_compiler=no
28889 fi
28890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28892 echo "${ECHO_T}$ac_header_compiler" >&6
28893
28894 # Is the header present?
28895 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28896 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
28897 cat >conftest.$ac_ext <<_ACEOF
28898 /* confdefs.h.  */
28899 _ACEOF
28900 cat confdefs.h >>conftest.$ac_ext
28901 cat >>conftest.$ac_ext <<_ACEOF
28902 /* end confdefs.h.  */
28903 #include <sys/acl.h>
28904 _ACEOF
28905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28907   ac_status=$?
28908   grep -v '^ *+' conftest.er1 >conftest.err
28909   rm -f conftest.er1
28910   cat conftest.err >&5
28911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); } >/dev/null; then
28913   if test -s conftest.err; then
28914     ac_cpp_err=$ac_c_preproc_warn_flag
28915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28916   else
28917     ac_cpp_err=
28918   fi
28919 else
28920   ac_cpp_err=yes
28921 fi
28922 if test -z "$ac_cpp_err"; then
28923   ac_header_preproc=yes
28924 else
28925   echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928   ac_header_preproc=no
28929 fi
28930 rm -f conftest.err conftest.$ac_ext
28931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28932 echo "${ECHO_T}$ac_header_preproc" >&6
28933
28934 # So?  What about this header?
28935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28936   yes:no: )
28937     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28938 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28939     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28940 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28941     ac_header_preproc=yes
28942     ;;
28943   no:yes:* )
28944     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28945 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28946     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
28947 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
28948     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28949 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28950     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
28951 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28952     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28953 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28954     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28955 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28956     (
28957       cat <<\_ASBOX
28958 ## ------------------------------------------ ##
28959 ## Report this to the AC_PACKAGE_NAME lists.  ##
28960 ## ------------------------------------------ ##
28961 _ASBOX
28962     ) |
28963       sed "s/^/$as_me: WARNING:     /" >&2
28964     ;;
28965 esac
28966 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28967 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28968 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28969   echo $ECHO_N "(cached) $ECHO_C" >&6
28970 else
28971   ac_cv_header_sys_acl_h=$ac_header_preproc
28972 fi
28973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28974 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28975
28976 fi
28977
28978
28979 echo "$as_me:$LINENO: checking for acl_get_file" >&5
28980 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
28981 if test "${ac_cv_func_acl_get_file+set}" = set; then
28982   echo $ECHO_N "(cached) $ECHO_C" >&6
28983 else
28984   cat >conftest.$ac_ext <<_ACEOF
28985 /* confdefs.h.  */
28986 _ACEOF
28987 cat confdefs.h >>conftest.$ac_ext
28988 cat >>conftest.$ac_ext <<_ACEOF
28989 /* end confdefs.h.  */
28990 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28992 #define acl_get_file innocuous_acl_get_file
28993
28994 /* System header to define __stub macros and hopefully few prototypes,
28995     which can conflict with char acl_get_file (); below.
28996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28997     <limits.h> exists even on freestanding compilers.  */
28998
28999 #ifdef __STDC__
29000 # include <limits.h>
29001 #else
29002 # include <assert.h>
29003 #endif
29004
29005 #undef acl_get_file
29006
29007 /* Override any gcc2 internal prototype to avoid an error.  */
29008 #ifdef __cplusplus
29009 extern "C"
29010 {
29011 #endif
29012 /* We use char because int might match the return type of a gcc2
29013    builtin and then its argument prototype would still apply.  */
29014 char acl_get_file ();
29015 /* The GNU C library defines this for functions which it implements
29016     to always fail with ENOSYS.  Some functions are actually named
29017     something starting with __ and the normal name is an alias.  */
29018 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29019 choke me
29020 #else
29021 char (*f) () = acl_get_file;
29022 #endif
29023 #ifdef __cplusplus
29024 }
29025 #endif
29026
29027 int
29028 main ()
29029 {
29030 return f != acl_get_file;
29031   ;
29032   return 0;
29033 }
29034 _ACEOF
29035 rm -f conftest.$ac_objext conftest$ac_exeext
29036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29037   (eval $ac_link) 2>conftest.er1
29038   ac_status=$?
29039   grep -v '^ *+' conftest.er1 >conftest.err
29040   rm -f conftest.er1
29041   cat conftest.err >&5
29042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043   (exit $ac_status); } &&
29044          { ac_try='test -z "$ac_c_werror_flag"
29045                          || test ! -s conftest.err'
29046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29047   (eval $ac_try) 2>&5
29048   ac_status=$?
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); }; } &&
29051          { ac_try='test -s conftest$ac_exeext'
29052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053   (eval $ac_try) 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; }; then
29057   ac_cv_func_acl_get_file=yes
29058 else
29059   echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29061
29062 ac_cv_func_acl_get_file=no
29063 fi
29064 rm -f conftest.err conftest.$ac_objext \
29065       conftest$ac_exeext conftest.$ac_ext
29066 fi
29067 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29068 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29069 if test $ac_cv_func_acl_get_file = yes; then
29070   have_acl=yes
29071 else
29072   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29073 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29074 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29075   echo $ECHO_N "(cached) $ECHO_C" >&6
29076 else
29077   ac_check_lib_save_LIBS=$LIBS
29078 LIBS="-lacl  $LIBS"
29079 cat >conftest.$ac_ext <<_ACEOF
29080 /* confdefs.h.  */
29081 _ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h.  */
29085
29086 /* Override any gcc2 internal prototype to avoid an error.  */
29087 #ifdef __cplusplus
29088 extern "C"
29089 #endif
29090 /* We use char because int might match the return type of a gcc2
29091    builtin and then its argument prototype would still apply.  */
29092 char acl_get_file ();
29093 int
29094 main ()
29095 {
29096 acl_get_file ();
29097   ;
29098   return 0;
29099 }
29100 _ACEOF
29101 rm -f conftest.$ac_objext conftest$ac_exeext
29102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29103   (eval $ac_link) 2>conftest.er1
29104   ac_status=$?
29105   grep -v '^ *+' conftest.er1 >conftest.err
29106   rm -f conftest.er1
29107   cat conftest.err >&5
29108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109   (exit $ac_status); } &&
29110          { ac_try='test -z "$ac_c_werror_flag"
29111                          || test ! -s conftest.err'
29112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29113   (eval $ac_try) 2>&5
29114   ac_status=$?
29115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116   (exit $ac_status); }; } &&
29117          { ac_try='test -s conftest$ac_exeext'
29118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119   (eval $ac_try) 2>&5
29120   ac_status=$?
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); }; }; then
29123   ac_cv_lib_acl_acl_get_file=yes
29124 else
29125   echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29127
29128 ac_cv_lib_acl_acl_get_file=no
29129 fi
29130 rm -f conftest.err conftest.$ac_objext \
29131       conftest$ac_exeext conftest.$ac_ext
29132 LIBS=$ac_check_lib_save_LIBS
29133 fi
29134 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29135 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29136 if test $ac_cv_lib_acl_acl_get_file = yes; then
29137   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29138 else
29139   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29140 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29141 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29142   echo $ECHO_N "(cached) $ECHO_C" >&6
29143 else
29144   ac_check_lib_save_LIBS=$LIBS
29145 LIBS="-lsec  $LIBS"
29146 cat >conftest.$ac_ext <<_ACEOF
29147 /* confdefs.h.  */
29148 _ACEOF
29149 cat confdefs.h >>conftest.$ac_ext
29150 cat >>conftest.$ac_ext <<_ACEOF
29151 /* end confdefs.h.  */
29152
29153 /* Override any gcc2 internal prototype to avoid an error.  */
29154 #ifdef __cplusplus
29155 extern "C"
29156 #endif
29157 /* We use char because int might match the return type of a gcc2
29158    builtin and then its argument prototype would still apply.  */
29159 char acltotext ();
29160 int
29161 main ()
29162 {
29163 acltotext ();
29164   ;
29165   return 0;
29166 }
29167 _ACEOF
29168 rm -f conftest.$ac_objext conftest$ac_exeext
29169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29170   (eval $ac_link) 2>conftest.er1
29171   ac_status=$?
29172   grep -v '^ *+' conftest.er1 >conftest.err
29173   rm -f conftest.er1
29174   cat conftest.err >&5
29175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176   (exit $ac_status); } &&
29177          { ac_try='test -z "$ac_c_werror_flag"
29178                          || test ! -s conftest.err'
29179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180   (eval $ac_try) 2>&5
29181   ac_status=$?
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); }; } &&
29184          { ac_try='test -s conftest$ac_exeext'
29185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186   (eval $ac_try) 2>&5
29187   ac_status=$?
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); }; }; then
29190   ac_cv_lib_sec_acltotext=yes
29191 else
29192   echo "$as_me: failed program was:" >&5
29193 sed 's/^/| /' conftest.$ac_ext >&5
29194
29195 ac_cv_lib_sec_acltotext=no
29196 fi
29197 rm -f conftest.err conftest.$ac_objext \
29198       conftest$ac_exeext conftest.$ac_ext
29199 LIBS=$ac_check_lib_save_LIBS
29200 fi
29201 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29202 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29203 if test $ac_cv_lib_sec_acltotext = yes; then
29204   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29205 fi
29206
29207
29208 fi
29209
29210
29211 fi
29212
29213 if test $have_acl = yes; then
29214    cat >>confdefs.h <<\_ACEOF
29215 #define HAVE_ACL 1
29216 _ACEOF
29217
29218 fi
29219
29220 PTHREAD_LIB=""
29221 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29222 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29223 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29224   echo $ECHO_N "(cached) $ECHO_C" >&6
29225 else
29226   ac_check_lib_save_LIBS=$LIBS
29227 LIBS="-lpthread  $LIBS"
29228 cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234
29235 /* Override any gcc2 internal prototype to avoid an error.  */
29236 #ifdef __cplusplus
29237 extern "C"
29238 #endif
29239 /* We use char because int might match the return type of a gcc2
29240    builtin and then its argument prototype would still apply.  */
29241 char pthread_create ();
29242 int
29243 main ()
29244 {
29245 pthread_create ();
29246   ;
29247   return 0;
29248 }
29249 _ACEOF
29250 rm -f conftest.$ac_objext conftest$ac_exeext
29251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29252   (eval $ac_link) 2>conftest.er1
29253   ac_status=$?
29254   grep -v '^ *+' conftest.er1 >conftest.err
29255   rm -f conftest.er1
29256   cat conftest.err >&5
29257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258   (exit $ac_status); } &&
29259          { ac_try='test -z "$ac_c_werror_flag"
29260                          || test ! -s conftest.err'
29261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262   (eval $ac_try) 2>&5
29263   ac_status=$?
29264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265   (exit $ac_status); }; } &&
29266          { ac_try='test -s conftest$ac_exeext'
29267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29268   (eval $ac_try) 2>&5
29269   ac_status=$?
29270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271   (exit $ac_status); }; }; then
29272   ac_cv_lib_pthread_pthread_create=yes
29273 else
29274   echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29276
29277 ac_cv_lib_pthread_pthread_create=no
29278 fi
29279 rm -f conftest.err conftest.$ac_objext \
29280       conftest$ac_exeext conftest.$ac_ext
29281 LIBS=$ac_check_lib_save_LIBS
29282 fi
29283 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29284 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29285 if test $ac_cv_lib_pthread_pthread_create = yes; then
29286   PTHREAD_LIB="-lpthread"
29287 else
29288   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29289 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29290 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29291   echo $ECHO_N "(cached) $ECHO_C" >&6
29292 else
29293   ac_check_lib_save_LIBS=$LIBS
29294 LIBS="-lpthreads  $LIBS"
29295 cat >conftest.$ac_ext <<_ACEOF
29296 /* confdefs.h.  */
29297 _ACEOF
29298 cat confdefs.h >>conftest.$ac_ext
29299 cat >>conftest.$ac_ext <<_ACEOF
29300 /* end confdefs.h.  */
29301
29302 /* Override any gcc2 internal prototype to avoid an error.  */
29303 #ifdef __cplusplus
29304 extern "C"
29305 #endif
29306 /* We use char because int might match the return type of a gcc2
29307    builtin and then its argument prototype would still apply.  */
29308 char pthread_create ();
29309 int
29310 main ()
29311 {
29312 pthread_create ();
29313   ;
29314   return 0;
29315 }
29316 _ACEOF
29317 rm -f conftest.$ac_objext conftest$ac_exeext
29318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29319   (eval $ac_link) 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } &&
29326          { ac_try='test -z "$ac_c_werror_flag"
29327                          || test ! -s conftest.err'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; } &&
29333          { ac_try='test -s conftest$ac_exeext'
29334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29335   (eval $ac_try) 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; }; then
29339   ac_cv_lib_pthreads_pthread_create=yes
29340 else
29341   echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29343
29344 ac_cv_lib_pthreads_pthread_create=no
29345 fi
29346 rm -f conftest.err conftest.$ac_objext \
29347       conftest$ac_exeext conftest.$ac_ext
29348 LIBS=$ac_check_lib_save_LIBS
29349 fi
29350 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29351 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29352 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29353   PTHREAD_LIB="-lpthreads"
29354 else
29355   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29356 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29357 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29358   echo $ECHO_N "(cached) $ECHO_C" >&6
29359 else
29360   ac_check_lib_save_LIBS=$LIBS
29361 LIBS="-lc_r  $LIBS"
29362 cat >conftest.$ac_ext <<_ACEOF
29363 /* confdefs.h.  */
29364 _ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h.  */
29368
29369 /* Override any gcc2 internal prototype to avoid an error.  */
29370 #ifdef __cplusplus
29371 extern "C"
29372 #endif
29373 /* We use char because int might match the return type of a gcc2
29374    builtin and then its argument prototype would still apply.  */
29375 char pthread_create ();
29376 int
29377 main ()
29378 {
29379 pthread_create ();
29380   ;
29381   return 0;
29382 }
29383 _ACEOF
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29386   (eval $ac_link) 2>conftest.er1
29387   ac_status=$?
29388   grep -v '^ *+' conftest.er1 >conftest.err
29389   rm -f conftest.er1
29390   cat conftest.err >&5
29391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392   (exit $ac_status); } &&
29393          { ac_try='test -z "$ac_c_werror_flag"
29394                          || test ! -s conftest.err'
29395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396   (eval $ac_try) 2>&5
29397   ac_status=$?
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); }; } &&
29400          { ac_try='test -s conftest$ac_exeext'
29401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402   (eval $ac_try) 2>&5
29403   ac_status=$?
29404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405   (exit $ac_status); }; }; then
29406   ac_cv_lib_c_r_pthread_create=yes
29407 else
29408   echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29410
29411 ac_cv_lib_c_r_pthread_create=no
29412 fi
29413 rm -f conftest.err conftest.$ac_objext \
29414       conftest$ac_exeext conftest.$ac_ext
29415 LIBS=$ac_check_lib_save_LIBS
29416 fi
29417 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29418 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29419 if test $ac_cv_lib_c_r_pthread_create = yes; then
29420   PTHREAD_LIB="-lc_r"
29421 else
29422   echo "$as_me:$LINENO: checking for pthread_create" >&5
29423 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29424 if test "${ac_cv_func_pthread_create+set}" = set; then
29425   echo $ECHO_N "(cached) $ECHO_C" >&6
29426 else
29427   cat >conftest.$ac_ext <<_ACEOF
29428 /* confdefs.h.  */
29429 _ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h.  */
29433 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29435 #define pthread_create innocuous_pthread_create
29436
29437 /* System header to define __stub macros and hopefully few prototypes,
29438     which can conflict with char pthread_create (); below.
29439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29440     <limits.h> exists even on freestanding compilers.  */
29441
29442 #ifdef __STDC__
29443 # include <limits.h>
29444 #else
29445 # include <assert.h>
29446 #endif
29447
29448 #undef pthread_create
29449
29450 /* Override any gcc2 internal prototype to avoid an error.  */
29451 #ifdef __cplusplus
29452 extern "C"
29453 {
29454 #endif
29455 /* We use char because int might match the return type of a gcc2
29456    builtin and then its argument prototype would still apply.  */
29457 char pthread_create ();
29458 /* The GNU C library defines this for functions which it implements
29459     to always fail with ENOSYS.  Some functions are actually named
29460     something starting with __ and the normal name is an alias.  */
29461 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29462 choke me
29463 #else
29464 char (*f) () = pthread_create;
29465 #endif
29466 #ifdef __cplusplus
29467 }
29468 #endif
29469
29470 int
29471 main ()
29472 {
29473 return f != pthread_create;
29474   ;
29475   return 0;
29476 }
29477 _ACEOF
29478 rm -f conftest.$ac_objext conftest$ac_exeext
29479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29480   (eval $ac_link) 2>conftest.er1
29481   ac_status=$?
29482   grep -v '^ *+' conftest.er1 >conftest.err
29483   rm -f conftest.er1
29484   cat conftest.err >&5
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); } &&
29487          { ac_try='test -z "$ac_c_werror_flag"
29488                          || test ! -s conftest.err'
29489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490   (eval $ac_try) 2>&5
29491   ac_status=$?
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); }; } &&
29494          { ac_try='test -s conftest$ac_exeext'
29495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496   (eval $ac_try) 2>&5
29497   ac_status=$?
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); }; }; then
29500   ac_cv_func_pthread_create=yes
29501 else
29502   echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505 ac_cv_func_pthread_create=no
29506 fi
29507 rm -f conftest.err conftest.$ac_objext \
29508       conftest$ac_exeext conftest.$ac_ext
29509 fi
29510 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29511 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29512
29513
29514 fi
29515
29516
29517 fi
29518
29519
29520 fi
29521
29522
29523
29524 cat >>confdefs.h <<\_ACEOF
29525 #define FDLIBS 1
29526 _ACEOF
29527
29528
29529
29530 CFLAGS=${CFLAGS--O}
29531 LDFLAGS=${LDFLAGS--O}
29532 DB_LIBS="${SQL_LFLAGS}"
29533
29534 CPPFLAGS="$CPPFLAGS"
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551 OBJLIST=
29552
29553
29554 lld="lld"
29555 llu="llu"
29556
29557 WCFLAGS=
29558 WLDFLAGS=
29559
29560 #
29561 # Finally we set appropriate distribution specific
29562 #  variables and defaults
29563 #
29564 # PFILES are platform specific files
29565 PFILES="platforms/Makefile"
29566 PSCMD="ps -e"
29567 WIN32=
29568 MACOSX=
29569 hostname=`uname -n | cut -d '.' -f 1`
29570 if test x${hostname} = x ; then
29571   hostname="localhost"
29572 fi
29573 case "$DISTNAME" in
29574 aix)
29575         DISTVER=`uname -r`
29576         PSCMD="ps -e -o pid,comm"
29577         PFILES="${PFILES} \
29578            platforms/aix/Makefile"
29579         TAPEDRIVE="/dev/rmt0.1"
29580   ;;
29581 alpha)
29582         DISTVER=`uname -r`
29583         PTHREAD_LIB="-lpthread -lexc"
29584         if test "${CC}" = "gcc" ; then
29585            lld="lld"
29586            llu="llu"
29587         else
29588            lld="ld"
29589            llu="lu"
29590         fi
29591         TAPEDRIVE="/dev/nrmt0"
29592   ;;
29593 bsdi)
29594         DISTVER=`uname -a |awk '{print $3}'`
29595         TAPEDRIVE="/dev/nrmt0"
29596         PTHREAD_LIB="-pthread"
29597         CFLAGS="${CFLAGS} -pthread"
29598         PSCMD="ps -ax -o pid,command"
29599         lld="qd"
29600         llu="qu"
29601         PFILES="${PFILES} \
29602             platforms/bsdi/Makefile \
29603             platforms/bsdi/bacula-fd \
29604             platforms/bsdi/bacula-sd \
29605             platforms/bsdi/bacula-dir"
29606         largefile_support="yes"
29607   ;;
29608 cygwin)
29609         DISTVER=`uname -a |awk '{print $3}'`
29610         TAPEDRIVE="/dev/nrst0"
29611         WIN32=win32
29612         WCFLAGS="-mwindows"
29613         WLDFLAGS="-mwindows"
29614   ;;
29615 darwin)
29616         DISTVER=`uname -r`
29617         TAPEDRIVE="/dev/nst0"
29618         PSCMD="ps -e -o pid,command"
29619         MACOSX=macosx
29620         PFILES="${PFILES} \
29621            platforms/darwin/Makefile"
29622   ;;
29623 debian)
29624         DISTVER=`cat /etc/debian_version`
29625         TAPEDRIVE="/dev/nrst0"
29626         PSCMD="ps -e -o pid,command"
29627   ;;
29628 freebsd)
29629         DISTVER=`uname -a |awk '{print $3}'`
29630         VER=`echo $DISTVER | cut -c 1`
29631         if test x$VER = x4 ; then
29632            PTHREAD_LIB="-pthread"
29633            CFLAGS="${CFLAGS} -pthread"
29634         fi
29635         lld="qd"
29636         llu="qu"
29637         TAPEDRIVE="/dev/nrsa0"
29638         PSCMD="ps -ax -o pid,command"
29639         PFILES="${PFILES} \
29640             platforms/freebsd/Makefile \
29641             platforms/freebsd/bacula-fd \
29642             platforms/freebsd/bacula-sd \
29643             platforms/freebsd/bacula-dir"
29644         largefile_support="yes"
29645   ;;
29646 hpux)
29647         PSCMD="UNIX95=1 ps -e -o pid,comm"
29648         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
29649         DISTVER=`uname -r`
29650         TAPEDRIVE="/dev/rmt/0hnb"
29651         PTHREAD_LIB="-lpthread"
29652         cat >>confdefs.h <<\_ACEOF
29653 #define _INCLUDE_LONGLONG 1
29654 _ACEOF
29655
29656   ;;
29657 irix)
29658         DISTVER=`uname -r`
29659         TAPEDRIVE="/dev/rmt/0cbn"
29660         PSCMD="ps -e -o pid,comm"
29661         PFILES="${PFILES} \
29662             platforms/irix/Makefile \
29663             platforms/irix/bacula-fd \
29664             platforms/irix/bacula-sd \
29665             platforms/irix/bacula-dir"
29666   ;;
29667 netbsd)
29668         DISTVER=`uname -a |awk '{print $3}'`
29669         lld="qd"
29670         llu="qu"
29671         TAPEDRIVE="/dev/nrst0"
29672         PSCMD="ps -ax -o pid,command"
29673         PTHREAD_LIB="-pthread"
29674         CFLAGS="${CFLAGS} -pthread"
29675   ;;
29676 openbsd)
29677         DISTVER=`uname -a |awk '{print $3}'`
29678         lld="qd"
29679         llu="qu"
29680         TAPEDRIVE="/dev/nrst0"
29681         PSCMD="ps -ax -o pid,command"
29682         PTHREAD_LIB="-pthread"
29683         CFLAGS="${CFLAGS} -pthread"
29684         PFILES="${PFILES} \
29685             platforms/openbsd/Makefile \
29686             platforms/openbsd/bacula-fd \
29687             platforms/openbsd/bacula-sd \
29688             platforms/openbsd/bacula-dir"
29689   ;;
29690 redhat)
29691         if test -f /etc/whitebox-release ; then
29692            f=/etc/whitebox-release
29693         else
29694            f=/etc/redhat-release
29695         fi
29696         if test `cat $f | grep release |\
29697                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29698            DISTVER="Enterprise "`cat $f | grep release |\
29699                     cut -f 6 -d ' '`
29700         else
29701             DISTVER=`cat /etc/redhat-release | grep release |\
29702                      cut -f 5 -d ' '`
29703         fi
29704         TAPEDRIVE="/dev/nst0"
29705         PSCMD="ps -e -o pid,command"
29706         PFILES="${PFILES} \
29707             platforms/redhat/Makefile \
29708             platforms/redhat/bacula-fd \
29709             platforms/redhat/bacula-sd \
29710             platforms/redhat/bacula-dir \
29711             platforms/redhat/bacula.spec \
29712             "
29713   ;;
29714 mandrake)
29715         DISTVER=`cat /etc/mandrake-release | grep release |\
29716            cut -f 5 -d ' '`
29717         TAPEDRIVE="/dev/nst0"
29718         PSCMD="ps -e -o pid,command"
29719         PFILES="${PFILES} \
29720             platforms/mandrake/Makefile \
29721             platforms/mandrake/bacula-fd \
29722             platforms/mandrake/bacula-sd \
29723             platforms/mandrake/bacula-dir \
29724             platforms/mandrake/bacula.spec \
29725             "
29726   ;;
29727 gentoo)
29728         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29729         TAPEDRIVE="/dev/nst0"
29730         PSCMD="ps -e -o pid,command"
29731         PFILES="${PFILES} \
29732             platforms/gentoo/Makefile \
29733          platforms/gentoo/bacula-init \
29734             platforms/gentoo/bacula-fd \
29735             platforms/gentoo/bacula-sd \
29736             platforms/gentoo/bacula-dir"
29737   ;;
29738 slackware)
29739         DISTVER=`cat /etc/slackware-version`
29740         TAPEDRIVE="/dev/nst0"
29741         PSCMD="ps -e -o pid,command"
29742         PFILES="${PFILES} \
29743             platforms/slackware/Makefile \
29744             platforms/slackware/rc.bacula-fd \
29745             platforms/slackware/rc.bacula-sd \
29746             platforms/slackware/rc.bacula-dir\
29747             platforms/slackware/functions.bacula"
29748   ;;
29749 solaris)
29750         DISTVER=`uname -r`
29751         TAPEDRIVE="/dev/rmt/0cbn"
29752         PSCMD="ps -e -o pid,comm"
29753         PFILES="${PFILES} \
29754             platforms/solaris/Makefile \
29755             platforms/solaris/bacula-fd \
29756             platforms/solaris/bacula-sd \
29757             platforms/solaris/bacula-dir"
29758         if test x$DISTVER = x5.6 ; then
29759             cat >>confdefs.h <<\_ACEOF
29760 #define HAVE_OLD_SOCKOPT 1
29761 _ACEOF
29762
29763         fi
29764         LIBS="$LIBS -lresolv"
29765   ;;
29766 suse)
29767         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29768             cut -f 3 -d ' '`
29769         TAPEDRIVE="/dev/nst0"
29770         PSCMD="ps -e -o pid,command"
29771         PFILES="${PFILES} \
29772             platforms/suse/Makefile \
29773             platforms/suse/bacula-fd \
29774             platforms/suse/bacula-sd \
29775             platforms/suse/bacula-dir \
29776             platforms/suse/bacula \
29777             platforms/suse/bacula.spec"
29778   ;;
29779 suse5)
29780         DISTNAME=suse
29781         DISTVER=5.x
29782         TAPEDRIVE="/dev/nst0"
29783         PSCMD="ps -e -o pid,command"
29784         PFILES="${PFILES} \
29785             platforms/suse/Makefile \
29786             platforms/suse/bacula-fd \
29787             platforms/suse/bacula-sd \
29788             platforms/suse/bacula-dir"
29789   ;;
29790 unknown)
29791         DISTVER=unknown
29792         TAPEDRIVE="/dev/nst0"
29793   ;;
29794 *)
29795   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29796   ;;
29797 esac
29798
29799
29800
29801 LIBS="$PTHREAD_LIB $LIBS"
29802
29803 cat >>confdefs.h <<_ACEOF
29804 #define lld "$lld"
29805 _ACEOF
29806
29807 cat >>confdefs.h <<_ACEOF
29808 #define llu "$llu"
29809 _ACEOF
29810
29811
29812
29813
29814
29815
29816
29817
29818 MCOMMON=./autoconf/Make.common
29819
29820
29821 if test "x${subsysdir}" = "x${sbindir}" ; then
29822    echo " "
29823    echo " "
29824    echo "You have set both --sbindir and --with-subsys-dir"
29825    echo "  equal to: ${subsysdir} "
29826    echo "This is not permitted. Please reconfigure."
29827    echo " "
29828    echo "Aborting configuration ..."
29829    echo " "
29830    echo " "
29831    exit 1
29832 fi
29833
29834                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 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/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler 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 src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-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/filed/win32/Makefile 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/pygtk-console/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/Makefile.vcpp src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
29835           ac_config_commands="$ac_config_commands default"
29836 cat >confcache <<\_ACEOF
29837 # This file is a shell script that caches the results of configure
29838 # tests run on this system so they can be shared between configure
29839 # scripts and configure runs, see configure's option --config-cache.
29840 # It is not useful on other systems.  If it contains results you don't
29841 # want to keep, you may remove or edit it.
29842 #
29843 # config.status only pays attention to the cache file if you give it
29844 # the --recheck option to rerun configure.
29845 #
29846 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29847 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29848 # following values.
29849
29850 _ACEOF
29851
29852 # The following way of writing the cache mishandles newlines in values,
29853 # but we know of no workaround that is simple, portable, and efficient.
29854 # So, don't put newlines in cache variables' values.
29855 # Ultrix sh set writes to stderr and can't be redirected directly,
29856 # and sets the high bit in the cache file unless we assign to the vars.
29857 {
29858   (set) 2>&1 |
29859     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29860     *ac_space=\ *)
29861       # `set' does not quote correctly, so add quotes (double-quote
29862       # substitution turns \\\\ into \\, and sed turns \\ into \).
29863       sed -n \
29864         "s/'/'\\\\''/g;
29865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29866       ;;
29867     *)
29868       # `set' quotes correctly as required by POSIX, so do not add quotes.
29869       sed -n \
29870         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29871       ;;
29872     esac;
29873 } |
29874   sed '
29875      t clear
29876      : clear
29877      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29878      t end
29879      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29880      : end' >>confcache
29881 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29882   if test -w $cache_file; then
29883     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29884     cat confcache >$cache_file
29885   else
29886     echo "not updating unwritable cache $cache_file"
29887   fi
29888 fi
29889 rm -f confcache
29890
29891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29892 # Let make expand exec_prefix.
29893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29894
29895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29897 # trailing colons and then remove the whole line if VPATH becomes empty
29898 # (actually we leave an empty line to preserve line numbers).
29899 if test "x$srcdir" = x.; then
29900   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29901 s/:*\$(srcdir):*/:/;
29902 s/:*\${srcdir}:*/:/;
29903 s/:*@srcdir@:*/:/;
29904 s/^\([^=]*=[     ]*\):*/\1/;
29905 s/:*$//;
29906 s/^[^=]*=[       ]*$//;
29907 }'
29908 fi
29909
29910 DEFS=-DHAVE_CONFIG_H
29911
29912 ac_libobjs=
29913 ac_ltlibobjs=
29914 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29915   # 1. Remove the extension, and $U if already installed.
29916   ac_i=`echo "$ac_i" |
29917          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29918   # 2. Add them.
29919   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29920   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29921 done
29922 LIBOBJS=$ac_libobjs
29923
29924 LTLIBOBJS=$ac_ltlibobjs
29925
29926
29927
29928 : ${CONFIG_STATUS=./config.status}
29929 ac_clean_files_save=$ac_clean_files
29930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29933 cat >$CONFIG_STATUS <<_ACEOF
29934 #! $SHELL
29935 # Generated by $as_me.
29936 # Run this file to recreate the current configuration.
29937 # Compiler output produced by configure, useful for debugging
29938 # configure, is in config.log if it exists.
29939
29940 debug=false
29941 ac_cs_recheck=false
29942 ac_cs_silent=false
29943 SHELL=\${CONFIG_SHELL-$SHELL}
29944 _ACEOF
29945
29946 cat >>$CONFIG_STATUS <<\_ACEOF
29947 ## --------------------- ##
29948 ## M4sh Initialization.  ##
29949 ## --------------------- ##
29950
29951 # Be Bourne compatible
29952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29953   emulate sh
29954   NULLCMD=:
29955   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29956   # is contrary to our usage.  Disable this feature.
29957   alias -g '${1+"$@"}'='"$@"'
29958 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29959   set -o posix
29960 fi
29961 DUALCASE=1; export DUALCASE # for MKS sh
29962
29963 # Support unset when possible.
29964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29965   as_unset=unset
29966 else
29967   as_unset=false
29968 fi
29969
29970
29971 # Work around bugs in pre-3.0 UWIN ksh.
29972 $as_unset ENV MAIL MAILPATH
29973 PS1='$ '
29974 PS2='> '
29975 PS4='+ '
29976
29977 # NLS nuisances.
29978 for as_var in \
29979   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29980   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29981   LC_TELEPHONE LC_TIME
29982 do
29983   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29984     eval $as_var=C; export $as_var
29985   else
29986     $as_unset $as_var
29987   fi
29988 done
29989
29990 # Required to use basename.
29991 if expr a : '\(a\)' >/dev/null 2>&1; then
29992   as_expr=expr
29993 else
29994   as_expr=false
29995 fi
29996
29997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29998   as_basename=basename
29999 else
30000   as_basename=false
30001 fi
30002
30003
30004 # Name of the executable.
30005 as_me=`$as_basename "$0" ||
30006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30007          X"$0" : 'X\(//\)$' \| \
30008          X"$0" : 'X\(/\)$' \| \
30009          .     : '\(.\)' 2>/dev/null ||
30010 echo X/"$0" |
30011     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30012           /^X\/\(\/\/\)$/{ s//\1/; q; }
30013           /^X\/\(\/\).*/{ s//\1/; q; }
30014           s/.*/./; q'`
30015
30016
30017 # PATH needs CR, and LINENO needs CR and PATH.
30018 # Avoid depending upon Character Ranges.
30019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30022 as_cr_digits='0123456789'
30023 as_cr_alnum=$as_cr_Letters$as_cr_digits
30024
30025 # The user is always right.
30026 if test "${PATH_SEPARATOR+set}" != set; then
30027   echo "#! /bin/sh" >conf$$.sh
30028   echo  "exit 0"   >>conf$$.sh
30029   chmod +x conf$$.sh
30030   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30031     PATH_SEPARATOR=';'
30032   else
30033     PATH_SEPARATOR=:
30034   fi
30035   rm -f conf$$.sh
30036 fi
30037
30038
30039   as_lineno_1=$LINENO
30040   as_lineno_2=$LINENO
30041   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30042   test "x$as_lineno_1" != "x$as_lineno_2" &&
30043   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30044   # Find who we are.  Look in the path if we contain no path at all
30045   # relative or not.
30046   case $0 in
30047     *[\\/]* ) as_myself=$0 ;;
30048     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30049 for as_dir in $PATH
30050 do
30051   IFS=$as_save_IFS
30052   test -z "$as_dir" && as_dir=.
30053   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30054 done
30055
30056        ;;
30057   esac
30058   # We did not find ourselves, most probably we were run as `sh COMMAND'
30059   # in which case we are not to be found in the path.
30060   if test "x$as_myself" = x; then
30061     as_myself=$0
30062   fi
30063   if test ! -f "$as_myself"; then
30064     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30066    { (exit 1); exit 1; }; }
30067   fi
30068   case $CONFIG_SHELL in
30069   '')
30070     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30072 do
30073   IFS=$as_save_IFS
30074   test -z "$as_dir" && as_dir=.
30075   for as_base in sh bash ksh sh5; do
30076          case $as_dir in
30077          /*)
30078            if ("$as_dir/$as_base" -c '
30079   as_lineno_1=$LINENO
30080   as_lineno_2=$LINENO
30081   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30082   test "x$as_lineno_1" != "x$as_lineno_2" &&
30083   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30084              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30085              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30086              CONFIG_SHELL=$as_dir/$as_base
30087              export CONFIG_SHELL
30088              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30089            fi;;
30090          esac
30091        done
30092 done
30093 ;;
30094   esac
30095
30096   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30097   # uniformly replaced by the line number.  The first 'sed' inserts a
30098   # line-number line before each line; the second 'sed' does the real
30099   # work.  The second script uses 'N' to pair each line-number line
30100   # with the numbered line, and appends trailing '-' during
30101   # substitution so that $LINENO is not a special case at line end.
30102   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30103   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30104   sed '=' <$as_myself |
30105     sed '
30106       N
30107       s,$,-,
30108       : loop
30109       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30110       t loop
30111       s,-$,,
30112       s,^['$as_cr_digits']*\n,,
30113     ' >$as_me.lineno &&
30114   chmod +x $as_me.lineno ||
30115     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30117    { (exit 1); exit 1; }; }
30118
30119   # Don't try to exec as it changes $[0], causing all sort of problems
30120   # (the dirname of $[0] is not the place where we might find the
30121   # original and so on.  Autoconf is especially sensible to this).
30122   . ./$as_me.lineno
30123   # Exit status is that of the last command.
30124   exit
30125 }
30126
30127
30128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30129   *c*,-n*) ECHO_N= ECHO_C='
30130 ' ECHO_T='      ' ;;
30131   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30132   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30133 esac
30134
30135 if expr a : '\(a\)' >/dev/null 2>&1; then
30136   as_expr=expr
30137 else
30138   as_expr=false
30139 fi
30140
30141 rm -f conf$$ conf$$.exe conf$$.file
30142 echo >conf$$.file
30143 if ln -s conf$$.file conf$$ 2>/dev/null; then
30144   # We could just check for DJGPP; but this test a) works b) is more generic
30145   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30146   if test -f conf$$.exe; then
30147     # Don't use ln at all; we don't have any links
30148     as_ln_s='cp -p'
30149   else
30150     as_ln_s='ln -s'
30151   fi
30152 elif ln conf$$.file conf$$ 2>/dev/null; then
30153   as_ln_s=ln
30154 else
30155   as_ln_s='cp -p'
30156 fi
30157 rm -f conf$$ conf$$.exe conf$$.file
30158
30159 if mkdir -p . 2>/dev/null; then
30160   as_mkdir_p=:
30161 else
30162   test -d ./-p && rmdir ./-p
30163   as_mkdir_p=false
30164 fi
30165
30166 as_executable_p="test -f"
30167
30168 # Sed expression to map a string onto a valid CPP name.
30169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30170
30171 # Sed expression to map a string onto a valid variable name.
30172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30173
30174
30175 # IFS
30176 # We need space, tab and new line, in precisely that order.
30177 as_nl='
30178 '
30179 IFS="   $as_nl"
30180
30181 # CDPATH.
30182 $as_unset CDPATH
30183
30184 exec 6>&1
30185
30186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30187 # report actual input values of CONFIG_FILES etc. instead of their
30188 # values after options handling.  Logging --version etc. is OK.
30189 exec 5>>config.log
30190 {
30191   echo
30192   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30193 ## Running $as_me. ##
30194 _ASBOX
30195 } >&5
30196 cat >&5 <<_CSEOF
30197
30198 This file was extended by $as_me, which was
30199 generated by GNU Autoconf 2.59.  Invocation command line was
30200
30201   CONFIG_FILES    = $CONFIG_FILES
30202   CONFIG_HEADERS  = $CONFIG_HEADERS
30203   CONFIG_LINKS    = $CONFIG_LINKS
30204   CONFIG_COMMANDS = $CONFIG_COMMANDS
30205   $ $0 $@
30206
30207 _CSEOF
30208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30209 echo >&5
30210 _ACEOF
30211
30212 # Files that config.status was made for.
30213 if test -n "$ac_config_files"; then
30214   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30215 fi
30216
30217 if test -n "$ac_config_headers"; then
30218   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30219 fi
30220
30221 if test -n "$ac_config_links"; then
30222   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30223 fi
30224
30225 if test -n "$ac_config_commands"; then
30226   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30227 fi
30228
30229 cat >>$CONFIG_STATUS <<\_ACEOF
30230
30231 ac_cs_usage="\
30232 \`$as_me' instantiates files from templates according to the
30233 current configuration.
30234
30235 Usage: $0 [OPTIONS] [FILE]...
30236
30237   -h, --help       print this help, then exit
30238   -V, --version    print version number, then exit
30239   -q, --quiet      do not print progress messages
30240   -d, --debug      don't remove temporary files
30241       --recheck    update $as_me by reconfiguring in the same conditions
30242   --file=FILE[:TEMPLATE]
30243                    instantiate the configuration file FILE
30244   --header=FILE[:TEMPLATE]
30245                    instantiate the configuration header FILE
30246
30247 Configuration files:
30248 $config_files
30249
30250 Configuration headers:
30251 $config_headers
30252
30253 Configuration commands:
30254 $config_commands
30255
30256 Report bugs to <bug-autoconf@gnu.org>."
30257 _ACEOF
30258
30259 cat >>$CONFIG_STATUS <<_ACEOF
30260 ac_cs_version="\\
30261 config.status
30262 configured by $0, generated by GNU Autoconf 2.59,
30263   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30264
30265 Copyright (C) 2003 Free Software Foundation, Inc.
30266 This config.status script is free software; the Free Software Foundation
30267 gives unlimited permission to copy, distribute and modify it."
30268 srcdir=$srcdir
30269 INSTALL="$INSTALL"
30270 _ACEOF
30271
30272 cat >>$CONFIG_STATUS <<\_ACEOF
30273 # If no file are specified by the user, then we need to provide default
30274 # value.  By we need to know if files were specified by the user.
30275 ac_need_defaults=:
30276 while test $# != 0
30277 do
30278   case $1 in
30279   --*=*)
30280     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30281     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30282     ac_shift=:
30283     ;;
30284   -*)
30285     ac_option=$1
30286     ac_optarg=$2
30287     ac_shift=shift
30288     ;;
30289   *) # This is not an option, so the user has probably given explicit
30290      # arguments.
30291      ac_option=$1
30292      ac_need_defaults=false;;
30293   esac
30294
30295   case $ac_option in
30296   # Handling of the options.
30297 _ACEOF
30298 cat >>$CONFIG_STATUS <<\_ACEOF
30299   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30300     ac_cs_recheck=: ;;
30301   --version | --vers* | -V )
30302     echo "$ac_cs_version"; exit 0 ;;
30303   --he | --h)
30304     # Conflict between --help and --header
30305     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30306 Try \`$0 --help' for more information." >&5
30307 echo "$as_me: error: ambiguous option: $1
30308 Try \`$0 --help' for more information." >&2;}
30309    { (exit 1); exit 1; }; };;
30310   --help | --hel | -h )
30311     echo "$ac_cs_usage"; exit 0 ;;
30312   --debug | --d* | -d )
30313     debug=: ;;
30314   --file | --fil | --fi | --f )
30315     $ac_shift
30316     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30317     ac_need_defaults=false;;
30318   --header | --heade | --head | --hea )
30319     $ac_shift
30320     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30321     ac_need_defaults=false;;
30322   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30323   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30324     ac_cs_silent=: ;;
30325
30326   # This is an error.
30327   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30328 Try \`$0 --help' for more information." >&5
30329 echo "$as_me: error: unrecognized option: $1
30330 Try \`$0 --help' for more information." >&2;}
30331    { (exit 1); exit 1; }; } ;;
30332
30333   *) ac_config_targets="$ac_config_targets $1" ;;
30334
30335   esac
30336   shift
30337 done
30338
30339 ac_configure_extra_args=
30340
30341 if $ac_cs_silent; then
30342   exec 6>/dev/null
30343   ac_configure_extra_args="$ac_configure_extra_args --silent"
30344 fi
30345
30346 _ACEOF
30347 cat >>$CONFIG_STATUS <<_ACEOF
30348 if \$ac_cs_recheck; then
30349   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30350   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30351 fi
30352
30353 _ACEOF
30354
30355 cat >>$CONFIG_STATUS <<_ACEOF
30356 #
30357 # INIT-COMMANDS section.
30358 #
30359
30360 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30361     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30362     # from automake.
30363     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30364     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30365     LINGUAS="${LINGUAS-%UNSET%}"
30366
30367
30368 _ACEOF
30369
30370
30371
30372 cat >>$CONFIG_STATUS <<\_ACEOF
30373 for ac_config_target in $ac_config_targets
30374 do
30375   case "$ac_config_target" in
30376   # Handling of arguments.
30377   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30378   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30379   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30380   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30381   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30382   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30383   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30384   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30385   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30386   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30387   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30388   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30389   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30390   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30391   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30392   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30393   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30394   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30395   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30396   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30397   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30398   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30399   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30400   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30401   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30402   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30403   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30404   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30405   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30406   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30407   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30408   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30409   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30410   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30411   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30412   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30413   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30414   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30415   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30416   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30417   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30418   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30419   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30420   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30421   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30422   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30423   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30424   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30425   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30426   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30427   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
30428   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30429   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30430   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30431   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30432   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30433   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30434   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30435   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30436   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30437   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30438   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30439   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30440   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30441   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30442   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30443   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30444   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30445   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30446   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30447   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30448   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30449   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30450   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30451   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30452   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30453   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30454   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30455   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30456   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30457   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30458   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30459   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30460   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30461   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30462   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30463   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30464   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30465   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30466   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30467   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30468   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30469   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30470   "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30471   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30472   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
30473   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
30474   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
30475   "src/win32/Makefile.vcpp" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.vcpp" ;;
30476   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
30477   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
30478   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
30479   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30480   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30481   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30482   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30483   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30484   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30485 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30486    { (exit 1); exit 1; }; };;
30487   esac
30488 done
30489
30490 # If the user did not use the arguments to specify the items to instantiate,
30491 # then the envvar interface is used.  Set only those that are not.
30492 # We use the long form for the default assignment because of an extremely
30493 # bizarre bug on SunOS 4.1.3.
30494 if $ac_need_defaults; then
30495   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30496   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30497   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30498 fi
30499
30500 # Have a temporary directory for convenience.  Make it in the build tree
30501 # simply because there is no reason to put it here, and in addition,
30502 # creating and moving files from /tmp can sometimes cause problems.
30503 # Create a temporary directory, and hook for its removal unless debugging.
30504 $debug ||
30505 {
30506   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30507   trap '{ (exit 1); exit 1; }' 1 2 13 15
30508 }
30509
30510 # Create a (secure) tmp directory for tmp files.
30511
30512 {
30513   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30514   test -n "$tmp" && test -d "$tmp"
30515 }  ||
30516 {
30517   tmp=./confstat$$-$RANDOM
30518   (umask 077 && mkdir $tmp)
30519 } ||
30520 {
30521    echo "$me: cannot create a temporary directory in ." >&2
30522    { (exit 1); exit 1; }
30523 }
30524
30525 _ACEOF
30526
30527 cat >>$CONFIG_STATUS <<_ACEOF
30528
30529 #
30530 # CONFIG_FILES section.
30531 #
30532
30533 # No need to generate the scripts if there are no CONFIG_FILES.
30534 # This happens for instance when ./config.status config.h
30535 if test -n "\$CONFIG_FILES"; then
30536   # Protect against being on the right side of a sed subst in config.status.
30537   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30538    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30539 s,@SHELL@,$SHELL,;t t
30540 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30541 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30542 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30543 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30544 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30545 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30546 s,@exec_prefix@,$exec_prefix,;t t
30547 s,@prefix@,$prefix,;t t
30548 s,@program_transform_name@,$program_transform_name,;t t
30549 s,@bindir@,$bindir,;t t
30550 s,@sbindir@,$sbindir,;t t
30551 s,@libexecdir@,$libexecdir,;t t
30552 s,@datadir@,$datadir,;t t
30553 s,@sysconfdir@,$sysconfdir,;t t
30554 s,@sharedstatedir@,$sharedstatedir,;t t
30555 s,@localstatedir@,$localstatedir,;t t
30556 s,@libdir@,$libdir,;t t
30557 s,@includedir@,$includedir,;t t
30558 s,@oldincludedir@,$oldincludedir,;t t
30559 s,@infodir@,$infodir,;t t
30560 s,@mandir@,$mandir,;t t
30561 s,@build_alias@,$build_alias,;t t
30562 s,@host_alias@,$host_alias,;t t
30563 s,@target_alias@,$target_alias,;t t
30564 s,@DEFS@,$DEFS,;t t
30565 s,@ECHO_C@,$ECHO_C,;t t
30566 s,@ECHO_N@,$ECHO_N,;t t
30567 s,@ECHO_T@,$ECHO_T,;t t
30568 s,@LIBS@,$LIBS,;t t
30569 s,@BUILD_DIR@,$BUILD_DIR,;t t
30570 s,@TOP_DIR@,$TOP_DIR,;t t
30571 s,@TRUEPRG@,$TRUEPRG,;t t
30572 s,@FALSEPRG@,$FALSEPRG,;t t
30573 s,@VERSION@,$VERSION,;t t
30574 s,@DATE@,$DATE,;t t
30575 s,@LSMDATE@,$LSMDATE,;t t
30576 s,@CC@,$CC,;t t
30577 s,@CFLAGS@,$CFLAGS,;t t
30578 s,@LDFLAGS@,$LDFLAGS,;t t
30579 s,@CPPFLAGS@,$CPPFLAGS,;t t
30580 s,@ac_ct_CC@,$ac_ct_CC,;t t
30581 s,@EXEEXT@,$EXEEXT,;t t
30582 s,@OBJEXT@,$OBJEXT,;t t
30583 s,@CXX@,$CXX,;t t
30584 s,@CXXFLAGS@,$CXXFLAGS,;t t
30585 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30586 s,@CPP@,$CPP,;t t
30587 s,@EGREP@,$EGREP,;t t
30588 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30589 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30590 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30591 s,@RANLIB@,$RANLIB,;t t
30592 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30593 s,@MV@,$MV,;t t
30594 s,@RM@,$RM,;t t
30595 s,@CP@,$CP,;t t
30596 s,@SED@,$SED,;t t
30597 s,@ECHO@,$ECHO,;t t
30598 s,@CMP@,$CMP,;t t
30599 s,@TBL@,$TBL,;t t
30600 s,@AR@,$AR,;t t
30601 s,@OPENSSL@,$OPENSSL,;t t
30602 s,@MTX@,$MTX,;t t
30603 s,@DD@,$DD,;t t
30604 s,@MKISOFS@,$MKISOFS,;t t
30605 s,@PYTHON@,$PYTHON,;t t
30606 s,@GROWISOFS@,$GROWISOFS,;t t
30607 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30608 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30609 s,@PKGCONFIG@,$PKGCONFIG,;t t
30610 s,@WXCONFIG@,$WXCONFIG,;t t
30611 s,@WXFLAGS@,$WXFLAGS,;t t
30612 s,@CDRECORD@,$CDRECORD,;t t
30613 s,@PIDOF@,$PIDOF,;t t
30614 s,@AWK@,$AWK,;t t
30615 s,@ARFLAGS@,$ARFLAGS,;t t
30616 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30617 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30618 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30619 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30620 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30621 s,@build@,$build,;t t
30622 s,@build_cpu@,$build_cpu,;t t
30623 s,@build_vendor@,$build_vendor,;t t
30624 s,@build_os@,$build_os,;t t
30625 s,@host@,$host,;t t
30626 s,@host_cpu@,$host_cpu,;t t
30627 s,@host_vendor@,$host_vendor,;t t
30628 s,@host_os@,$host_os,;t t
30629 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30630 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30631 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30632 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30633 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30634 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30635 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30636 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30637 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30638 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30639 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30640 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30641 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30642 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30643 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30644 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30645 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30646 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30647 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30648 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30649 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30650 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30651 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30652 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30653 s,@SET_MAKE@,$SET_MAKE,;t t
30654 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30655 s,@USE_NLS@,$USE_NLS,;t t
30656 s,@MSGFMT@,$MSGFMT,;t t
30657 s,@GMSGFMT@,$GMSGFMT,;t t
30658 s,@XGETTEXT@,$XGETTEXT,;t t
30659 s,@MSGMERGE@,$MSGMERGE,;t t
30660 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30661 s,@LIBICONV@,$LIBICONV,;t t
30662 s,@LTLIBICONV@,$LTLIBICONV,;t t
30663 s,@INTLLIBS@,$INTLLIBS,;t t
30664 s,@LIBINTL@,$LIBINTL,;t t
30665 s,@LTLIBINTL@,$LTLIBINTL,;t t
30666 s,@POSUB@,$POSUB,;t t
30667 s,@GLIBC2@,$GLIBC2,;t t
30668 s,@ALLOCA@,$ALLOCA,;t t
30669 s,@GLIBC21@,$GLIBC21,;t t
30670 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30671 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30672 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30673 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30674 s,@INTLBISON@,$INTLBISON,;t t
30675 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30676 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30677 s,@CATOBJEXT@,$CATOBJEXT,;t t
30678 s,@DATADIRNAME@,$DATADIRNAME,;t t
30679 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30680 s,@GENCAT@,$GENCAT,;t t
30681 s,@INTLOBJS@,$INTLOBJS,;t t
30682 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30683 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30684 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30685 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30686 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30687 s,@GNOME_DIR@,$GNOME_DIR,;t t
30688 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30689 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30690 s,@WX_DIR@,$WX_DIR,;t t
30691 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30692 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30693 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30694 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30695 s,@STATIC_FD@,$STATIC_FD,;t t
30696 s,@STATIC_SD@,$STATIC_SD,;t t
30697 s,@STATIC_DIR@,$STATIC_DIR,;t t
30698 s,@STATIC_CONS@,$STATIC_CONS,;t t
30699 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30700 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30701 s,@ALL_DIRS@,$ALL_DIRS,;t t
30702 s,@DIRD_DIR@,$DIRD_DIR,;t t
30703 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30704 s,@STORED_DIR@,$STORED_DIR,;t t
30705 s,@CONS_INC@,$CONS_INC,;t t
30706 s,@CONS_OBJ@,$CONS_OBJ,;t t
30707 s,@CONS_SRC@,$CONS_SRC,;t t
30708 s,@CONS_LIBS@,$CONS_LIBS,;t t
30709 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30710 s,@READLINE_SRC@,$READLINE_SRC,;t t
30711 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30712 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30713 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30714 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30715 s,@working_dir@,$working_dir,;t t
30716 s,@scriptdir@,$scriptdir,;t t
30717 s,@dump_email@,$dump_email,;t t
30718 s,@job_email@,$job_email,;t t
30719 s,@smtp_host@,$smtp_host,;t t
30720 s,@piddir@,$piddir,;t t
30721 s,@subsysdir@,$subsysdir,;t t
30722 s,@baseport@,$baseport,;t t
30723 s,@dir_port@,$dir_port,;t t
30724 s,@fd_port@,$fd_port,;t t
30725 s,@sd_port@,$sd_port,;t t
30726 s,@dir_password@,$dir_password,;t t
30727 s,@fd_password@,$fd_password,;t t
30728 s,@sd_password@,$sd_password,;t t
30729 s,@mon_dir_password@,$mon_dir_password,;t t
30730 s,@mon_fd_password@,$mon_fd_password,;t t
30731 s,@mon_sd_password@,$mon_sd_password,;t t
30732 s,@dir_user@,$dir_user,;t t
30733 s,@dir_group@,$dir_group,;t t
30734 s,@sd_user@,$sd_user,;t t
30735 s,@sd_group@,$sd_group,;t t
30736 s,@fd_user@,$fd_user,;t t
30737 s,@fd_group@,$fd_group,;t t
30738 s,@SBINPERM@,$SBINPERM,;t t
30739 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30740 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30741 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30742 s,@cats@,$cats,;t t
30743 s,@DB_NAME@,$DB_NAME,;t t
30744 s,@GETCONF@,$GETCONF,;t t
30745 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30746 s,@X_CFLAGS@,$X_CFLAGS,;t t
30747 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30748 s,@X_LIBS@,$X_LIBS,;t t
30749 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30750 s,@LIBOBJS@,$LIBOBJS,;t t
30751 s,@FDLIBS@,$FDLIBS,;t t
30752 s,@DEBUG@,$DEBUG,;t t
30753 s,@DINCLUDE@,$DINCLUDE,;t t
30754 s,@DLIB@,$DLIB,;t t
30755 s,@DB_LIBS@,$DB_LIBS,;t t
30756 s,@WCFLAGS@,$WCFLAGS,;t t
30757 s,@WLDFLAGS@,$WLDFLAGS,;t t
30758 s,@WRAPLIBS@,$WRAPLIBS,;t t
30759 s,@OBJLIST@,$OBJLIST,;t t
30760 s,@hostname@,$hostname,;t t
30761 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30762 s,@PSCMD@,$PSCMD,;t t
30763 s,@WIN32@,$WIN32,;t t
30764 s,@MACOSX@,$MACOSX,;t t
30765 s,@DISTNAME@,$DISTNAME,;t t
30766 s,@DISTVER@,$DISTVER,;t t
30767 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30768 /@MCOMMON@/r $MCOMMON
30769 s,@MCOMMON@,,;t t
30770 CEOF
30771
30772 _ACEOF
30773
30774   cat >>$CONFIG_STATUS <<\_ACEOF
30775   # Split the substitutions into bite-sized pieces for seds with
30776   # small command number limits, like on Digital OSF/1 and HP-UX.
30777   ac_max_sed_lines=48
30778   ac_sed_frag=1 # Number of current file.
30779   ac_beg=1 # First line for current file.
30780   ac_end=$ac_max_sed_lines # Line after last line for current file.
30781   ac_more_lines=:
30782   ac_sed_cmds=
30783   while $ac_more_lines; do
30784     if test $ac_beg -gt 1; then
30785       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30786     else
30787       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30788     fi
30789     if test ! -s $tmp/subs.frag; then
30790       ac_more_lines=false
30791     else
30792       # The purpose of the label and of the branching condition is to
30793       # speed up the sed processing (if there are no `@' at all, there
30794       # is no need to browse any of the substitutions).
30795       # These are the two extra sed commands mentioned above.
30796       (echo ':t
30797   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30798       if test -z "$ac_sed_cmds"; then
30799         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30800       else
30801         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30802       fi
30803       ac_sed_frag=`expr $ac_sed_frag + 1`
30804       ac_beg=$ac_end
30805       ac_end=`expr $ac_end + $ac_max_sed_lines`
30806     fi
30807   done
30808   if test -z "$ac_sed_cmds"; then
30809     ac_sed_cmds=cat
30810   fi
30811 fi # test -n "$CONFIG_FILES"
30812
30813 _ACEOF
30814 cat >>$CONFIG_STATUS <<\_ACEOF
30815 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30816   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30817   case $ac_file in
30818   - | *:- | *:-:* ) # input from stdin
30819         cat >$tmp/stdin
30820         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30821         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30822   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30823         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30824   * )   ac_file_in=$ac_file.in ;;
30825   esac
30826
30827   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30828   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30830          X"$ac_file" : 'X\(//\)[^/]' \| \
30831          X"$ac_file" : 'X\(//\)$' \| \
30832          X"$ac_file" : 'X\(/\)' \| \
30833          .     : '\(.\)' 2>/dev/null ||
30834 echo X"$ac_file" |
30835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30836           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30837           /^X\(\/\/\)$/{ s//\1/; q; }
30838           /^X\(\/\).*/{ s//\1/; q; }
30839           s/.*/./; q'`
30840   { if $as_mkdir_p; then
30841     mkdir -p "$ac_dir"
30842   else
30843     as_dir="$ac_dir"
30844     as_dirs=
30845     while test ! -d "$as_dir"; do
30846       as_dirs="$as_dir $as_dirs"
30847       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30849          X"$as_dir" : 'X\(//\)[^/]' \| \
30850          X"$as_dir" : 'X\(//\)$' \| \
30851          X"$as_dir" : 'X\(/\)' \| \
30852          .     : '\(.\)' 2>/dev/null ||
30853 echo X"$as_dir" |
30854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30855           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30856           /^X\(\/\/\)$/{ s//\1/; q; }
30857           /^X\(\/\).*/{ s//\1/; q; }
30858           s/.*/./; q'`
30859     done
30860     test ! -n "$as_dirs" || mkdir $as_dirs
30861   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30863    { (exit 1); exit 1; }; }; }
30864
30865   ac_builddir=.
30866
30867 if test "$ac_dir" != .; then
30868   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30869   # A "../" for each directory in $ac_dir_suffix.
30870   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30871 else
30872   ac_dir_suffix= ac_top_builddir=
30873 fi
30874
30875 case $srcdir in
30876   .)  # No --srcdir option.  We are building in place.
30877     ac_srcdir=.
30878     if test -z "$ac_top_builddir"; then
30879        ac_top_srcdir=.
30880     else
30881        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30882     fi ;;
30883   [\\/]* | ?:[\\/]* )  # Absolute path.
30884     ac_srcdir=$srcdir$ac_dir_suffix;
30885     ac_top_srcdir=$srcdir ;;
30886   *) # Relative path.
30887     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30888     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30889 esac
30890
30891 # Do not use `cd foo && pwd` to compute absolute paths, because
30892 # the directories may not exist.
30893 case `pwd` in
30894 .) ac_abs_builddir="$ac_dir";;
30895 *)
30896   case "$ac_dir" in
30897   .) ac_abs_builddir=`pwd`;;
30898   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30899   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30900   esac;;
30901 esac
30902 case $ac_abs_builddir in
30903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30904 *)
30905   case ${ac_top_builddir}. in
30906   .) ac_abs_top_builddir=$ac_abs_builddir;;
30907   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30908   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30909   esac;;
30910 esac
30911 case $ac_abs_builddir in
30912 .) ac_abs_srcdir=$ac_srcdir;;
30913 *)
30914   case $ac_srcdir in
30915   .) ac_abs_srcdir=$ac_abs_builddir;;
30916   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30917   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30918   esac;;
30919 esac
30920 case $ac_abs_builddir in
30921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30922 *)
30923   case $ac_top_srcdir in
30924   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30925   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30926   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30927   esac;;
30928 esac
30929
30930
30931   case $INSTALL in
30932   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30933   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30934   esac
30935
30936   if test x"$ac_file" != x-; then
30937     { echo "$as_me:$LINENO: creating $ac_file" >&5
30938 echo "$as_me: creating $ac_file" >&6;}
30939     rm -f "$ac_file"
30940   fi
30941   # Let's still pretend it is `configure' which instantiates (i.e., don't
30942   # use $as_me), people would be surprised to read:
30943   #    /* config.h.  Generated by config.status.  */
30944   if test x"$ac_file" = x-; then
30945     configure_input=
30946   else
30947     configure_input="$ac_file.  "
30948   fi
30949   configure_input=$configure_input"Generated from `echo $ac_file_in |
30950                                      sed 's,.*/,,'` by configure."
30951
30952   # First look for the input files in the build tree, otherwise in the
30953   # src tree.
30954   ac_file_inputs=`IFS=:
30955     for f in $ac_file_in; do
30956       case $f in
30957       -) echo $tmp/stdin ;;
30958       [\\/$]*)
30959          # Absolute (can't be DOS-style, as IFS=:)
30960          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30961 echo "$as_me: error: cannot find input file: $f" >&2;}
30962    { (exit 1); exit 1; }; }
30963          echo "$f";;
30964       *) # Relative
30965          if test -f "$f"; then
30966            # Build tree
30967            echo "$f"
30968          elif test -f "$srcdir/$f"; then
30969            # Source tree
30970            echo "$srcdir/$f"
30971          else
30972            # /dev/null tree
30973            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30974 echo "$as_me: error: cannot find input file: $f" >&2;}
30975    { (exit 1); exit 1; }; }
30976          fi;;
30977       esac
30978     done` || { (exit 1); exit 1; }
30979 _ACEOF
30980 cat >>$CONFIG_STATUS <<_ACEOF
30981   sed "$ac_vpsub
30982 $extrasub
30983 _ACEOF
30984 cat >>$CONFIG_STATUS <<\_ACEOF
30985 :t
30986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30987 s,@configure_input@,$configure_input,;t t
30988 s,@srcdir@,$ac_srcdir,;t t
30989 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30990 s,@top_srcdir@,$ac_top_srcdir,;t t
30991 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30992 s,@builddir@,$ac_builddir,;t t
30993 s,@abs_builddir@,$ac_abs_builddir,;t t
30994 s,@top_builddir@,$ac_top_builddir,;t t
30995 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30996 s,@INSTALL@,$ac_INSTALL,;t t
30997 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30998   rm -f $tmp/stdin
30999   if test x"$ac_file" != x-; then
31000     mv $tmp/out $ac_file
31001   else
31002     cat $tmp/out
31003     rm -f $tmp/out
31004   fi
31005
31006 done
31007 _ACEOF
31008 cat >>$CONFIG_STATUS <<\_ACEOF
31009
31010 #
31011 # CONFIG_HEADER section.
31012 #
31013
31014 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31015 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31016 #
31017 # ac_d sets the value in "#define NAME VALUE" lines.
31018 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31019 ac_dB='[         ].*$,\1#\2'
31020 ac_dC=' '
31021 ac_dD=',;t'
31022 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31023 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31024 ac_uB='$,\1#\2define\3'
31025 ac_uC=' '
31026 ac_uD=',;t'
31027
31028 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31029   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31030   case $ac_file in
31031   - | *:- | *:-:* ) # input from stdin
31032         cat >$tmp/stdin
31033         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31034         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31035   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31036         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31037   * )   ac_file_in=$ac_file.in ;;
31038   esac
31039
31040   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31041 echo "$as_me: creating $ac_file" >&6;}
31042
31043   # First look for the input files in the build tree, otherwise in the
31044   # src tree.
31045   ac_file_inputs=`IFS=:
31046     for f in $ac_file_in; do
31047       case $f in
31048       -) echo $tmp/stdin ;;
31049       [\\/$]*)
31050          # Absolute (can't be DOS-style, as IFS=:)
31051          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31052 echo "$as_me: error: cannot find input file: $f" >&2;}
31053    { (exit 1); exit 1; }; }
31054          # Do quote $f, to prevent DOS paths from being IFS'd.
31055          echo "$f";;
31056       *) # Relative
31057          if test -f "$f"; then
31058            # Build tree
31059            echo "$f"
31060          elif test -f "$srcdir/$f"; then
31061            # Source tree
31062            echo "$srcdir/$f"
31063          else
31064            # /dev/null tree
31065            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31066 echo "$as_me: error: cannot find input file: $f" >&2;}
31067    { (exit 1); exit 1; }; }
31068          fi;;
31069       esac
31070     done` || { (exit 1); exit 1; }
31071   # Remove the trailing spaces.
31072   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31073
31074 _ACEOF
31075
31076 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31077 # `conftest.undefs', that substitutes the proper values into
31078 # config.h.in to produce config.h.  The first handles `#define'
31079 # templates, and the second `#undef' templates.
31080 # And first: Protect against being on the right side of a sed subst in
31081 # config.status.  Protect against being in an unquoted here document
31082 # in config.status.
31083 rm -f conftest.defines conftest.undefs
31084 # Using a here document instead of a string reduces the quoting nightmare.
31085 # Putting comments in sed scripts is not portable.
31086 #
31087 # `end' is used to avoid that the second main sed command (meant for
31088 # 0-ary CPP macros) applies to n-ary macro definitions.
31089 # See the Autoconf documentation for `clear'.
31090 cat >confdef2sed.sed <<\_ACEOF
31091 s/[\\&,]/\\&/g
31092 s,[\\$`],\\&,g
31093 t clear
31094 : clear
31095 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31096 t end
31097 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31098 : end
31099 _ACEOF
31100 # If some macros were called several times there might be several times
31101 # the same #defines, which is useless.  Nevertheless, we may not want to
31102 # sort them, since we want the *last* AC-DEFINE to be honored.
31103 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31104 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31105 rm -f confdef2sed.sed
31106
31107 # This sed command replaces #undef with comments.  This is necessary, for
31108 # example, in the case of _POSIX_SOURCE, which is predefined and required
31109 # on some systems where configure will not decide to define it.
31110 cat >>conftest.undefs <<\_ACEOF
31111 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31112 _ACEOF
31113
31114 # Break up conftest.defines because some shells have a limit on the size
31115 # of here documents, and old seds have small limits too (100 cmds).
31116 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31117 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31118 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31119 echo '  :' >>$CONFIG_STATUS
31120 rm -f conftest.tail
31121 while grep . conftest.defines >/dev/null
31122 do
31123   # Write a limited-size here document to $tmp/defines.sed.
31124   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31125   # Speed up: don't consider the non `#define' lines.
31126   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31127   # Work around the forget-to-reset-the-flag bug.
31128   echo 't clr' >>$CONFIG_STATUS
31129   echo ': clr' >>$CONFIG_STATUS
31130   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31131   echo 'CEOF
31132   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31133   rm -f $tmp/in
31134   mv $tmp/out $tmp/in
31135 ' >>$CONFIG_STATUS
31136   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31137   rm -f conftest.defines
31138   mv conftest.tail conftest.defines
31139 done
31140 rm -f conftest.defines
31141 echo '  fi # grep' >>$CONFIG_STATUS
31142 echo >>$CONFIG_STATUS
31143
31144 # Break up conftest.undefs because some shells have a limit on the size
31145 # of here documents, and old seds have small limits too (100 cmds).
31146 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31147 rm -f conftest.tail
31148 while grep . conftest.undefs >/dev/null
31149 do
31150   # Write a limited-size here document to $tmp/undefs.sed.
31151   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31152   # Speed up: don't consider the non `#undef'
31153   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31154   # Work around the forget-to-reset-the-flag bug.
31155   echo 't clr' >>$CONFIG_STATUS
31156   echo ': clr' >>$CONFIG_STATUS
31157   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31158   echo 'CEOF
31159   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31160   rm -f $tmp/in
31161   mv $tmp/out $tmp/in
31162 ' >>$CONFIG_STATUS
31163   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31164   rm -f conftest.undefs
31165   mv conftest.tail conftest.undefs
31166 done
31167 rm -f conftest.undefs
31168
31169 cat >>$CONFIG_STATUS <<\_ACEOF
31170   # Let's still pretend it is `configure' which instantiates (i.e., don't
31171   # use $as_me), people would be surprised to read:
31172   #    /* config.h.  Generated by config.status.  */
31173   if test x"$ac_file" = x-; then
31174     echo "/* Generated by configure.  */" >$tmp/config.h
31175   else
31176     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31177   fi
31178   cat $tmp/in >>$tmp/config.h
31179   rm -f $tmp/in
31180   if test x"$ac_file" != x-; then
31181     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31182       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31183 echo "$as_me: $ac_file is unchanged" >&6;}
31184     else
31185       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31187          X"$ac_file" : 'X\(//\)[^/]' \| \
31188          X"$ac_file" : 'X\(//\)$' \| \
31189          X"$ac_file" : 'X\(/\)' \| \
31190          .     : '\(.\)' 2>/dev/null ||
31191 echo X"$ac_file" |
31192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31193           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31194           /^X\(\/\/\)$/{ s//\1/; q; }
31195           /^X\(\/\).*/{ s//\1/; q; }
31196           s/.*/./; q'`
31197       { if $as_mkdir_p; then
31198     mkdir -p "$ac_dir"
31199   else
31200     as_dir="$ac_dir"
31201     as_dirs=
31202     while test ! -d "$as_dir"; do
31203       as_dirs="$as_dir $as_dirs"
31204       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31206          X"$as_dir" : 'X\(//\)[^/]' \| \
31207          X"$as_dir" : 'X\(//\)$' \| \
31208          X"$as_dir" : 'X\(/\)' \| \
31209          .     : '\(.\)' 2>/dev/null ||
31210 echo X"$as_dir" |
31211     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31212           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31213           /^X\(\/\/\)$/{ s//\1/; q; }
31214           /^X\(\/\).*/{ s//\1/; q; }
31215           s/.*/./; q'`
31216     done
31217     test ! -n "$as_dirs" || mkdir $as_dirs
31218   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31219 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31220    { (exit 1); exit 1; }; }; }
31221
31222       rm -f $ac_file
31223       mv $tmp/config.h $ac_file
31224     fi
31225   else
31226     cat $tmp/config.h
31227     rm -f $tmp/config.h
31228   fi
31229 done
31230 _ACEOF
31231 cat >>$CONFIG_STATUS <<\_ACEOF
31232
31233 #
31234 # CONFIG_COMMANDS section.
31235 #
31236 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31237   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31238   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31239   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31240 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31241          X"$ac_dest" : 'X\(//\)[^/]' \| \
31242          X"$ac_dest" : 'X\(//\)$' \| \
31243          X"$ac_dest" : 'X\(/\)' \| \
31244          .     : '\(.\)' 2>/dev/null ||
31245 echo X"$ac_dest" |
31246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31247           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31248           /^X\(\/\/\)$/{ s//\1/; q; }
31249           /^X\(\/\).*/{ s//\1/; q; }
31250           s/.*/./; q'`
31251   { if $as_mkdir_p; then
31252     mkdir -p "$ac_dir"
31253   else
31254     as_dir="$ac_dir"
31255     as_dirs=
31256     while test ! -d "$as_dir"; do
31257       as_dirs="$as_dir $as_dirs"
31258       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31260          X"$as_dir" : 'X\(//\)[^/]' \| \
31261          X"$as_dir" : 'X\(//\)$' \| \
31262          X"$as_dir" : 'X\(/\)' \| \
31263          .     : '\(.\)' 2>/dev/null ||
31264 echo X"$as_dir" |
31265     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31266           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31267           /^X\(\/\/\)$/{ s//\1/; q; }
31268           /^X\(\/\).*/{ s//\1/; q; }
31269           s/.*/./; q'`
31270     done
31271     test ! -n "$as_dirs" || mkdir $as_dirs
31272   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31273 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31274    { (exit 1); exit 1; }; }; }
31275
31276   ac_builddir=.
31277
31278 if test "$ac_dir" != .; then
31279   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31280   # A "../" for each directory in $ac_dir_suffix.
31281   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31282 else
31283   ac_dir_suffix= ac_top_builddir=
31284 fi
31285
31286 case $srcdir in
31287   .)  # No --srcdir option.  We are building in place.
31288     ac_srcdir=.
31289     if test -z "$ac_top_builddir"; then
31290        ac_top_srcdir=.
31291     else
31292        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31293     fi ;;
31294   [\\/]* | ?:[\\/]* )  # Absolute path.
31295     ac_srcdir=$srcdir$ac_dir_suffix;
31296     ac_top_srcdir=$srcdir ;;
31297   *) # Relative path.
31298     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31299     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31300 esac
31301
31302 # Do not use `cd foo && pwd` to compute absolute paths, because
31303 # the directories may not exist.
31304 case `pwd` in
31305 .) ac_abs_builddir="$ac_dir";;
31306 *)
31307   case "$ac_dir" in
31308   .) ac_abs_builddir=`pwd`;;
31309   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31310   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31311   esac;;
31312 esac
31313 case $ac_abs_builddir in
31314 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31315 *)
31316   case ${ac_top_builddir}. in
31317   .) ac_abs_top_builddir=$ac_abs_builddir;;
31318   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31319   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31320   esac;;
31321 esac
31322 case $ac_abs_builddir in
31323 .) ac_abs_srcdir=$ac_srcdir;;
31324 *)
31325   case $ac_srcdir in
31326   .) ac_abs_srcdir=$ac_abs_builddir;;
31327   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31328   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31329   esac;;
31330 esac
31331 case $ac_abs_builddir in
31332 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31333 *)
31334   case $ac_top_srcdir in
31335   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31336   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31337   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31338   esac;;
31339 esac
31340
31341
31342   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31343 echo "$as_me: executing $ac_dest commands" >&6;}
31344   case $ac_dest in
31345     default-1 )
31346     for ac_file in $CONFIG_FILES; do
31347       # Support "outfile[:infile[:infile...]]"
31348       case "$ac_file" in
31349         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31350       esac
31351       # PO directories have a Makefile.in generated from Makefile.in.in.
31352       case "$ac_file" in */Makefile.in)
31353         # Adjust a relative srcdir.
31354         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31355         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31356         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31357         # In autoconf-2.13 it is called $ac_given_srcdir.
31358         # In autoconf-2.50 it is called $srcdir.
31359         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31360         case "$ac_given_srcdir" in
31361           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31362           /*) top_srcdir="$ac_given_srcdir" ;;
31363           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31364         esac
31365         # Treat a directory as a PO directory if and only if it has a
31366         # POTFILES.in file. This allows packages to have multiple PO
31367         # directories under different names or in different locations.
31368         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31369           rm -f "$ac_dir/POTFILES"
31370           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31371           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31372           POMAKEFILEDEPS="POTFILES.in"
31373           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31374           # on $ac_dir but don't depend on user-specified configuration
31375           # parameters.
31376           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31377             # The LINGUAS file contains the set of available languages.
31378             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31379               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31380             fi
31381             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31382             # Hide the ALL_LINGUAS assigment from automake.
31383             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31384             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31385           else
31386             # The set of available languages was given in configure.in.
31387             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31388           fi
31389           # Compute POFILES
31390           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31391           # Compute UPDATEPOFILES
31392           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31393           # Compute DUMMYPOFILES
31394           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31395           # Compute GMOFILES
31396           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31397           case "$ac_given_srcdir" in
31398             .) srcdirpre= ;;
31399             *) srcdirpre='$(srcdir)/' ;;
31400           esac
31401           POFILES=
31402           UPDATEPOFILES=
31403           DUMMYPOFILES=
31404           GMOFILES=
31405           for lang in $ALL_LINGUAS; do
31406             POFILES="$POFILES $srcdirpre$lang.po"
31407             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31408             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31409             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31410           done
31411           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31412           # environment variable.
31413           INST_LINGUAS=
31414           if test -n "$ALL_LINGUAS"; then
31415             for presentlang in $ALL_LINGUAS; do
31416               useit=no
31417               if test "%UNSET%" != "$LINGUAS"; then
31418                 desiredlanguages="$LINGUAS"
31419               else
31420                 desiredlanguages="$ALL_LINGUAS"
31421               fi
31422               for desiredlang in $desiredlanguages; do
31423                 # Use the presentlang catalog if desiredlang is
31424                 #   a. equal to presentlang, or
31425                 #   b. a variant of presentlang (because in this case,
31426                 #      presentlang can be used as a fallback for messages
31427                 #      which are not translated in the desiredlang catalog).
31428                 case "$desiredlang" in
31429                   "$presentlang"*) useit=yes;;
31430                 esac
31431               done
31432               if test $useit = yes; then
31433                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31434               fi
31435             done
31436           fi
31437           CATALOGS=
31438           if test -n "$INST_LINGUAS"; then
31439             for lang in $INST_LINGUAS; do
31440               CATALOGS="$CATALOGS $lang.gmo"
31441             done
31442           fi
31443           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31444           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"
31445           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31446             if test -f "$f"; then
31447               case "$f" in
31448                 *.orig | *.bak | *~) ;;
31449                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31450               esac
31451             fi
31452           done
31453         fi
31454         ;;
31455       esac
31456     done ;;
31457     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31458  ;;
31459   esac
31460 done
31461 _ACEOF
31462
31463 cat >>$CONFIG_STATUS <<\_ACEOF
31464
31465 { (exit 0); exit 0; }
31466 _ACEOF
31467 chmod +x $CONFIG_STATUS
31468 ac_clean_files=$ac_clean_files_save
31469
31470
31471 # configure is writing to config.log, and then calls config.status.
31472 # config.status does its own redirection, appending to config.log.
31473 # Unfortunately, on DOS this fails, as config.log is still kept open
31474 # by configure, so config.status won't be able to write to it; its
31475 # output is simply discarded.  So we exec the FD to /dev/null,
31476 # effectively closing config.log, so it can be properly (re)opened and
31477 # appended to by config.status.  When coming back to configure, we
31478 # need to make the FD available again.
31479 if test "$no_create" != yes; then
31480   ac_cs_success=:
31481   ac_config_status_args=
31482   test "$silent" = yes &&
31483     ac_config_status_args="$ac_config_status_args --quiet"
31484   exec 5>/dev/null
31485   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31486   exec 5>>config.log
31487   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31488   # would make configure fail if this is the last instruction.
31489   $ac_cs_success || { (exit 1); exit 1; }
31490 fi
31491
31492
31493 cd scripts
31494 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31495 chmod 755 dvd-handler
31496 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31497 cd ..
31498
31499 c=src/cats
31500
31501 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31502 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31503
31504 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31505 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31506
31507 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31508 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31509
31510 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31511 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31512
31513 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31514 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31515
31516 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31517 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31518
31519 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31520 chmod 755 $c/sqlite
31521 chmod 755 $c/mysql
31522
31523 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31524    largefile_support="yes"
31525 fi
31526
31527 #
31528 # A whole lot of hand springs to get the compiler version.
31529 #  This is because gcc changed the output in version 3.0
31530 #
31531 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31532 if test "x${CCVERSION}" = "x" ; then
31533   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31534 fi
31535 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31536 if test x"${CXXVERSION}" = x ; then
31537   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31538 fi
31539
31540 if test "x${subsysdir}" = "x${sbindir}" ; then
31541    echo " "
31542    echo " "
31543    echo "You have set --sbindir and --with-subsys-dir"
31544    echo "  both equal to: ${subsysdir} "
31545    echo "  This is not permitted. Please reconfigure."
31546    echo " "
31547    echo "Aborting configuration ..."
31548    echo " "
31549    echo " "
31550    exit 1
31551 fi
31552
31553 if test "x${db_name}" = "xInternal" ; then
31554    echo " "
31555    echo " "
31556    echo "You have not specified either --enable-client-only or one of the"
31557    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31558    echo "  This is not permitted. Please reconfigure."
31559    echo " "
31560    echo "Aborting the configuration ..."
31561    echo " "
31562    echo " "
31563    exit 1
31564 fi
31565
31566 echo "
31567 Configuration on `date`:
31568
31569   Host:                       $host -- ${DISTNAME} ${DISTVER}
31570   Bacula version:             ${VERSION} (${DATE})
31571   Source code location:       ${srcdir}
31572   Install binaries:           ${sbindir}
31573   Install config files:       ${sysconfdir}
31574   Scripts directory:          ${scriptdir}
31575   Working directory:          ${working_dir}
31576   PID directory:              ${piddir}
31577   Subsys directory:           ${subsysdir}
31578   Man directory:              ${mandir}
31579   Data directory:             ${datadir}
31580   C Compiler:                 ${CC} ${CCVERSION}
31581   C++ Compiler:               ${CXX} ${CXXVERSION}
31582   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31583   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31584   Libraries:                  ${LIBS}
31585   Statically Linked Tools:    ${support_static_tools}
31586   Statically Linked FD:       ${support_static_fd}
31587   Statically Linked SD:       ${support_static_sd}
31588   Statically Linked DIR:      ${support_static_dir}
31589   Statically Linked CONS:     ${support_static_cons}
31590   Database type:              ${db_name}
31591   Database lib:               ${DB_LIBS}
31592
31593   Job Output Email:           ${job_email}
31594   Traceback Email:            ${dump_email}
31595   SMTP Host Address:          ${smtp_host}
31596
31597   Director Port:              ${dir_port}
31598   File daemon Port:           ${fd_port}
31599   Storage daemon Port:        ${sd_port}
31600
31601   Director User:              ${dir_user}
31602   Director Group:             ${dir_group}
31603   Storage Daemon User:        ${sd_user}
31604   Storage DaemonGroup:        ${sd_group}
31605   File Daemon User:           ${fd_user}
31606   File Daemon Group:          ${fd_group}
31607
31608   SQL binaries Directory      ${SQL_BINDIR}
31609
31610   Large file support:         $largefile_support
31611   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31612   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31613   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31614   TLS support:                ${support_tls}
31615   Encryption support:         ${support_crypto}
31616   ZLIB support:               ${have_zlib}
31617   enable-smartalloc:          ${support_smartalloc}
31618   enable-gnome:               ${support_gnome} ${gnome_version}
31619   enable-wx-console:          ${support_wx_console} ${wx_version}
31620   enable-tray-monitor:        ${support_tray_monitor}
31621   client-only:                ${build_client_only}
31622   build-dird:                 ${build_dird}
31623   build-stored:               ${build_stored}
31624   ACL support:                ${have_acl}
31625   Python support:             ${support_python} ${PYTHON_LIBS}
31626
31627   " > config.out
31628
31629 cat config.out