]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Apply patch from Martin Simmons that adds a test for va_copy to
[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 BAT_DIR QWT_INC QWT_LDFLAGS 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 db_name db_user dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_TYPE 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 bgnome-console GUI disabled
870   --enable-bat  enable build of bat Qt4 GUI disabled
871   --enable-bwx-console     enable build of wxWidgets console disabled
872   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
873   --enable-smartalloc     enable smartalloc debugging support disabled
874   --enable-static-tools   enable static tape tools disabled
875   --enable-static-fd      enable static File daemon disabled
876   --enable-static-sd      enable static Storage daemon disabled
877   --enable-static-dir     enable static Director disabled
878   --enable-static-cons    enable static Console disabled
879   --enable-client-only    build client (File daemon) only disabled
880   --enable-build-dird     enable building of dird (Director) enabled
881   --enable-build-stored   enable building of stored (Storage daemon) enabled
882  --disable-conio disable conio support enabled
883
884   --enable-ipv6             enable ipv6 support enabled
885
886   --disable-readline      disable readline support disable
887
888         --enable-batch-insert       enable the DB batch insert code disabled
889   --disable-largefile     omit support for large files
890
891 Optional Packages:
892   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
893   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
894   --with-gnu-ld           assume the C compiler uses GNU ld default=no
895   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
896   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
897   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
898   --without-libintl-prefix     don't search for libintl in includedir and libdir
899   --with-included-gettext use the GNU gettext library included here
900  --with-qwt[=DIR]                 specify qwt library directory
901  --with-readline[=DIR]         specify readline library directory
902
903   --with-python[=DIR]   Include Python support.  DIR is the Python base
904                           install directory, default is to search through
905                           a number of common places for the Python files.
906   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
907   --with-openssl[=DIR]
908                           Include OpenSSL support. DIR is the OpenSSL base
909   --with-working-dir=PATH        specify path of Bacula working directory
910   --with-scriptdir=PATH    specify path of Bacula scripts directory
911   --with-dump-email=EMAIL        dump email address
912   --with-job-email=EMAIL         job output email address
913   --with-smtp-host=HOST          SMTP mail host address
914   --with-pid-dir=PATH            specify location of Bacula pid files
915   --with-subsys-dir=PATH         specify location of Bacula subsys file
916   --with-baseport=PORT           specify base port address for daemons
917   --with-dir-password=PASSWORD   specify Director's password
918   --with-fd-password=PASSWORD    specify Client's password
919   --with-sd-password=PASSWORD    specify Storage daemon's password
920   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
921   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
922   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
923   --with-db-name=DBNAME        specify database name (default bacula)
924   --with-db-user=UNAME         specify database user (default bacula)
925   --with-dir-user=USER           specify user for Director daemon
926   --with-dir-group=GROUP                 specify group for Director daemon
927   --with-sd-user=USER            specify user for Storage daemon
928   --with-sd-group=GROUP          specify group for Storage daemon
929   --with-fd-user=USER            specify user for File daemon
930   --with-fd-group=GROUP          specify group for File daemon
931   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
932   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
933                           base install directory, defaults to /usr/local/pgsql
934
935   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
936                           install directory, default is to search through
937                           a number of common places for the MySQL files.
938
939   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
940                           install directory, default is to search through
941                           a number of common places for the MySQL files.
942
943   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
944                           install directory, default is to search through
945                           a number of common places for the SQLite3 files.
946
947   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
948                           install directory, default is to search through
949                           a number of common places for the SQLite files.
950   --with-x                use the X Window System
951
952 Some influential environment variables:
953   CC          C compiler command
954   CFLAGS      C compiler flags
955   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
956               nonstandard directory <lib dir>
957   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
958               headers in a nonstandard directory <include dir>
959   CXX         C++ compiler command
960   CXXFLAGS    C++ compiler flags
961   CPP         C preprocessor
962   WXCONFIG    wx-config command. On some systems, you must set it to
963               wx-config-2.6 to use wxWidgets 2.6.
964   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
965
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
968
969 _ACEOF
970 fi
971
972 if test "$ac_init_help" = "recursive"; then
973   # If there are subdirs, report their specific --help.
974   ac_popdir=`pwd`
975   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
976     test -d $ac_dir || continue
977     ac_builddir=.
978
979 if test "$ac_dir" != .; then
980   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
981   # A "../" for each directory in $ac_dir_suffix.
982   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
983 else
984   ac_dir_suffix= ac_top_builddir=
985 fi
986
987 case $srcdir in
988   .)  # No --srcdir option.  We are building in place.
989     ac_srcdir=.
990     if test -z "$ac_top_builddir"; then
991        ac_top_srcdir=.
992     else
993        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
994     fi ;;
995   [\\/]* | ?:[\\/]* )  # Absolute path.
996     ac_srcdir=$srcdir$ac_dir_suffix;
997     ac_top_srcdir=$srcdir ;;
998   *) # Relative path.
999     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1000     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1001 esac
1002
1003 # Do not use `cd foo && pwd` to compute absolute paths, because
1004 # the directories may not exist.
1005 case `pwd` in
1006 .) ac_abs_builddir="$ac_dir";;
1007 *)
1008   case "$ac_dir" in
1009   .) ac_abs_builddir=`pwd`;;
1010   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1011   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1012   esac;;
1013 esac
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1016 *)
1017   case ${ac_top_builddir}. in
1018   .) ac_abs_top_builddir=$ac_abs_builddir;;
1019   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1020   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1021   esac;;
1022 esac
1023 case $ac_abs_builddir in
1024 .) ac_abs_srcdir=$ac_srcdir;;
1025 *)
1026   case $ac_srcdir in
1027   .) ac_abs_srcdir=$ac_abs_builddir;;
1028   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1029   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1030   esac;;
1031 esac
1032 case $ac_abs_builddir in
1033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1034 *)
1035   case $ac_top_srcdir in
1036   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1037   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1038   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1039   esac;;
1040 esac
1041
1042     cd $ac_dir
1043     # Check for guested configure; otherwise get Cygnus style configure.
1044     if test -f $ac_srcdir/configure.gnu; then
1045       echo
1046       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1047     elif test -f $ac_srcdir/configure; then
1048       echo
1049       $SHELL $ac_srcdir/configure  --help=recursive
1050     elif test -f $ac_srcdir/configure.ac ||
1051            test -f $ac_srcdir/configure.in; then
1052       echo
1053       $ac_configure --help
1054     else
1055       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1056     fi
1057     cd $ac_popdir
1058   done
1059 fi
1060
1061 test -n "$ac_init_help" && exit 0
1062 if $ac_init_version; then
1063   cat <<\_ACEOF
1064
1065 Copyright (C) 2003 Free Software Foundation, Inc.
1066 This configure script is free software; the Free Software Foundation
1067 gives unlimited permission to copy, distribute and modify it.
1068 _ACEOF
1069   exit 0
1070 fi
1071 exec 5>config.log
1072 cat >&5 <<_ACEOF
1073 This file contains any messages produced by compilers while
1074 running configure, to aid debugging if configure makes a mistake.
1075
1076 It was created by $as_me, which was
1077 generated by GNU Autoconf 2.59.  Invocation command line was
1078
1079   $ $0 $@
1080
1081 _ACEOF
1082 {
1083 cat <<_ASUNAME
1084 ## --------- ##
1085 ## Platform. ##
1086 ## --------- ##
1087
1088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1093
1094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1095 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1096
1097 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1098 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1100 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1101 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1102 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1103 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1104
1105 _ASUNAME
1106
1107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1108 for as_dir in $PATH
1109 do
1110   IFS=$as_save_IFS
1111   test -z "$as_dir" && as_dir=.
1112   echo "PATH: $as_dir"
1113 done
1114
1115 } >&5
1116
1117 cat >&5 <<_ACEOF
1118
1119
1120 ## ----------- ##
1121 ## Core tests. ##
1122 ## ----------- ##
1123
1124 _ACEOF
1125
1126
1127 # Keep a trace of the command line.
1128 # Strip out --no-create and --no-recursion so they do not pile up.
1129 # Strip out --silent because we don't want to record it for future runs.
1130 # Also quote any args containing shell meta-characters.
1131 # Make two passes to allow for proper duplicate-argument suppression.
1132 ac_configure_args=
1133 ac_configure_args0=
1134 ac_configure_args1=
1135 ac_sep=
1136 ac_must_keep_next=false
1137 for ac_pass in 1 2
1138 do
1139   for ac_arg
1140   do
1141     case $ac_arg in
1142     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1143     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144     | -silent | --silent | --silen | --sile | --sil)
1145       continue ;;
1146     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1147       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1148     esac
1149     case $ac_pass in
1150     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1151     2)
1152       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1153       if test $ac_must_keep_next = true; then
1154         ac_must_keep_next=false # Got value, back to normal.
1155       else
1156         case $ac_arg in
1157           *=* | --config-cache | -C | -disable-* | --disable-* \
1158           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1159           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1160           | -with-* | --with-* | -without-* | --without-* | --x)
1161             case "$ac_configure_args0 " in
1162               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1163             esac
1164             ;;
1165           -* ) ac_must_keep_next=true ;;
1166         esac
1167       fi
1168       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1169       # Get rid of the leading space.
1170       ac_sep=" "
1171       ;;
1172     esac
1173   done
1174 done
1175 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1176 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1177
1178 # When interrupted or exit'd, cleanup temporary files, and complete
1179 # config.log.  We remove comments because anyway the quotes in there
1180 # would cause problems or look ugly.
1181 # WARNING: Be sure not to use single quotes in there, as some shells,
1182 # such as our DU 5.0 friend, will then `close' the trap.
1183 trap 'exit_status=$?
1184   # Save into config.log some information that might help in debugging.
1185   {
1186     echo
1187
1188     cat <<\_ASBOX
1189 ## ---------------- ##
1190 ## Cache variables. ##
1191 ## ---------------- ##
1192 _ASBOX
1193     echo
1194     # The following way of writing the cache mishandles newlines in values,
1195 {
1196   (set) 2>&1 |
1197     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1198     *ac_space=\ *)
1199       sed -n \
1200         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1202       ;;
1203     *)
1204       sed -n \
1205         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1206       ;;
1207     esac;
1208 }
1209     echo
1210
1211     cat <<\_ASBOX
1212 ## ----------------- ##
1213 ## Output variables. ##
1214 ## ----------------- ##
1215 _ASBOX
1216     echo
1217     for ac_var in $ac_subst_vars
1218     do
1219       eval ac_val=$`echo $ac_var`
1220       echo "$ac_var='"'"'$ac_val'"'"'"
1221     done | sort
1222     echo
1223
1224     if test -n "$ac_subst_files"; then
1225       cat <<\_ASBOX
1226 ## ------------- ##
1227 ## Output files. ##
1228 ## ------------- ##
1229 _ASBOX
1230       echo
1231       for ac_var in $ac_subst_files
1232       do
1233         eval ac_val=$`echo $ac_var`
1234         echo "$ac_var='"'"'$ac_val'"'"'"
1235       done | sort
1236       echo
1237     fi
1238
1239     if test -s confdefs.h; then
1240       cat <<\_ASBOX
1241 ## ----------- ##
1242 ## confdefs.h. ##
1243 ## ----------- ##
1244 _ASBOX
1245       echo
1246       sed "/^$/d" confdefs.h | sort
1247       echo
1248     fi
1249     test "$ac_signal" != 0 &&
1250       echo "$as_me: caught signal $ac_signal"
1251     echo "$as_me: exit $exit_status"
1252   } >&5
1253   rm -f core *.core &&
1254   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1255     exit $exit_status
1256      ' 0
1257 for ac_signal in 1 2 13 15; do
1258   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1259 done
1260 ac_signal=0
1261
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1265 echo >confdefs.h
1266
1267 # Predefined preprocessor variables.
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1286 _ACEOF
1287
1288
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1291 _ACEOF
1292
1293
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297   if test "x$prefix" != xNONE; then
1298     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1299   else
1300     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1301   fi
1302 fi
1303 for ac_site_file in $CONFIG_SITE; do
1304   if test -r "$ac_site_file"; then
1305     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307     sed 's/^/| /' "$ac_site_file" >&5
1308     . "$ac_site_file"
1309   fi
1310 done
1311
1312 if test -r "$cache_file"; then
1313   # Some versions of bash will fail to source /dev/null (special
1314   # files actually), so we avoid doing that.
1315   if test -f "$cache_file"; then
1316     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1318     case $cache_file in
1319       [\\/]* | ?:[\\/]* ) . $cache_file;;
1320       *)                      . ./$cache_file;;
1321     esac
1322   fi
1323 else
1324   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1326   >$cache_file
1327 fi
1328
1329 # Check that the precious variables saved in the cache have kept the same
1330 # value.
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335   eval ac_new_set=\$ac_env_${ac_var}_set
1336   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337   eval ac_new_val="\$ac_env_${ac_var}_value"
1338   case $ac_old_set,$ac_new_set in
1339     set,)
1340       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342       ac_cache_corrupted=: ;;
1343     ,set)
1344       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346       ac_cache_corrupted=: ;;
1347     ,);;
1348     *)
1349       if test "x$ac_old_val" != "x$ac_new_val"; then
1350         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1353 echo "$as_me:   former value:  $ac_old_val" >&2;}
1354         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1355 echo "$as_me:   current value: $ac_new_val" >&2;}
1356         ac_cache_corrupted=:
1357       fi;;
1358   esac
1359   # Pass precious variables to config.status.
1360   if test "$ac_new_set" = set; then
1361     case $ac_new_val in
1362     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364     *) ac_arg=$ac_var=$ac_new_val ;;
1365     esac
1366     case " $ac_configure_args " in
1367       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1368       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1369     esac
1370   fi
1371 done
1372 if $ac_cache_corrupted; then
1373   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377    { (exit 1); exit 1; }; }
1378 fi
1379
1380 ac_ext=c
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404 BUILD_DIR=`pwd`
1405 cd ..
1406 TOP_DIR=`pwd`
1407 cd ${BUILD_DIR}
1408
1409
1410 ac_aux_dir=
1411 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1412   if test -f $ac_dir/install-sh; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/install-sh -c"
1415     break
1416   elif test -f $ac_dir/install.sh; then
1417     ac_aux_dir=$ac_dir
1418     ac_install_sh="$ac_aux_dir/install.sh -c"
1419     break
1420   elif test -f $ac_dir/shtool; then
1421     ac_aux_dir=$ac_dir
1422     ac_install_sh="$ac_aux_dir/shtool install -c"
1423     break
1424   fi
1425 done
1426 if test -z "$ac_aux_dir"; then
1427   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1434
1435           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1436
1437
1438
1439
1440
1441 for ac_prog in true
1442 do
1443   # Extract the first word of "$ac_prog", so it can be a program name with args.
1444 set dummy $ac_prog; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1448   echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450   case $TRUEPRG in
1451   [\\/]* | ?:[\\/]*)
1452   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1453   ;;
1454   *)
1455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458   IFS=$as_save_IFS
1459   test -z "$as_dir" && as_dir=.
1460   for ac_exec_ext in '' $ac_executable_extensions; do
1461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464     break 2
1465   fi
1466 done
1467 done
1468
1469   ;;
1470 esac
1471 fi
1472 TRUEPRG=$ac_cv_path_TRUEPRG
1473
1474 if test -n "$TRUEPRG"; then
1475   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1476 echo "${ECHO_T}$TRUEPRG" >&6
1477 else
1478   echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1480 fi
1481
1482   test -n "$TRUEPRG" && break
1483 done
1484 test -n "$TRUEPRG" || TRUEPRG=":"
1485
1486 for ac_prog in false
1487 do
1488   # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   case $FALSEPRG in
1496   [\\/]* | ?:[\\/]*)
1497   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1498   ;;
1499   *)
1500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514   ;;
1515 esac
1516 fi
1517 FALSEPRG=$ac_cv_path_FALSEPRG
1518
1519 if test -n "$FALSEPRG"; then
1520   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1521 echo "${ECHO_T}$FALSEPRG" >&6
1522 else
1523   echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527   test -n "$FALSEPRG" && break
1528 done
1529 test -n "$FALSEPRG" || FALSEPRG=":"
1530
1531
1532 #AC_CANONICAL_HOST
1533
1534 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1537 echo "configuring for bacula $VERSION ($DATE)"
1538
1539
1540
1541 ac_ext=c
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546 if test -n "$ac_tool_prefix"; then
1547   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   if test -n "$CC"; then
1555   ac_cv_prog_CC="$CC" # Let the user override the test.
1556 else
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560   IFS=$as_save_IFS
1561   test -z "$as_dir" && as_dir=.
1562   for ac_exec_ext in '' $ac_executable_extensions; do
1563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566     break 2
1567   fi
1568 done
1569 done
1570
1571 fi
1572 fi
1573 CC=$ac_cv_prog_CC
1574 if test -n "$CC"; then
1575   echo "$as_me:$LINENO: result: $CC" >&5
1576 echo "${ECHO_T}$CC" >&6
1577 else
1578   echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 fi
1581
1582 fi
1583 if test -z "$ac_cv_prog_CC"; then
1584   ac_ct_CC=$CC
1585   # Extract the first word of "gcc", so it can be a program name with args.
1586 set dummy gcc; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   if test -n "$ac_ct_CC"; then
1593   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1594 else
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598   IFS=$as_save_IFS
1599   test -z "$as_dir" && as_dir=.
1600   for ac_exec_ext in '' $ac_executable_extensions; do
1601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602     ac_cv_prog_ac_ct_CC="gcc"
1603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604     break 2
1605   fi
1606 done
1607 done
1608
1609 fi
1610 fi
1611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612 if test -n "$ac_ct_CC"; then
1613   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614 echo "${ECHO_T}$ac_ct_CC" >&6
1615 else
1616   echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1618 fi
1619
1620   CC=$ac_ct_CC
1621 else
1622   CC="$ac_cv_prog_CC"
1623 fi
1624
1625 if test -z "$CC"; then
1626   if test -n "$ac_tool_prefix"; then
1627   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}cc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_CC+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   if test -n "$CC"; then
1635   ac_cv_prog_CC="$CC" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   for ac_exec_ext in '' $ac_executable_extensions; do
1643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644     ac_cv_prog_CC="${ac_tool_prefix}cc"
1645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646     break 2
1647   fi
1648 done
1649 done
1650
1651 fi
1652 fi
1653 CC=$ac_cv_prog_CC
1654 if test -n "$CC"; then
1655   echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1657 else
1658   echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662 fi
1663 if test -z "$ac_cv_prog_CC"; then
1664   ac_ct_CC=$CC
1665   # Extract the first word of "cc", so it can be a program name with args.
1666 set dummy cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   if test -n "$ac_ct_CC"; then
1673   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_prog_ac_ct_CC="cc"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689 fi
1690 fi
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700   CC=$ac_ct_CC
1701 else
1702   CC="$ac_cv_prog_CC"
1703 fi
1704
1705 fi
1706 if test -z "$CC"; then
1707   # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$CC"; then
1715   ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717   ac_prog_rejected=no
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1726        ac_prog_rejected=yes
1727        continue
1728      fi
1729     ac_cv_prog_CC="cc"
1730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731     break 2
1732   fi
1733 done
1734 done
1735
1736 if test $ac_prog_rejected = yes; then
1737   # We found a bogon in the path, so make sure we never use it.
1738   set dummy $ac_cv_prog_CC
1739   shift
1740   if test $# != 0; then
1741     # We chose a different compiler from the bogus one.
1742     # However, it has the same basename, so the bogon will be chosen
1743     # first if we set CC to just the basename; use the full file name.
1744     shift
1745     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1746   fi
1747 fi
1748 fi
1749 fi
1750 CC=$ac_cv_prog_CC
1751 if test -n "$CC"; then
1752   echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1754 else
1755   echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759 fi
1760 if test -z "$CC"; then
1761   if test -n "$ac_tool_prefix"; then
1762   for ac_prog in cl
1763   do
1764     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792   echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799     test -n "$CC" && break
1800   done
1801 fi
1802 if test -z "$CC"; then
1803   ac_ct_CC=$CC
1804   for ac_prog in cl
1805 do
1806   # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$ac_ct_CC"; then
1814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_ac_ct_CC="$ac_prog"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841   test -n "$ac_ct_CC" && break
1842 done
1843
1844   CC=$ac_ct_CC
1845 fi
1846
1847 fi
1848
1849
1850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854    { (exit 1); exit 1; }; }
1855
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858      "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861   (eval $ac_compiler --version </dev/null >&5) 2>&5
1862   ac_status=$?
1863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864   (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866   (eval $ac_compiler -v </dev/null >&5) 2>&5
1867   ac_status=$?
1868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869   (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871   (eval $ac_compiler -V </dev/null >&5) 2>&5
1872   ac_status=$?
1873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874   (exit $ac_status); }
1875
1876 cat >conftest.$ac_ext <<_ACEOF
1877 /* confdefs.h.  */
1878 _ACEOF
1879 cat confdefs.h >>conftest.$ac_ext
1880 cat >>conftest.$ac_ext <<_ACEOF
1881 /* end confdefs.h.  */
1882
1883 int
1884 main ()
1885 {
1886
1887   ;
1888   return 0;
1889 }
1890 _ACEOF
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1895 # of exeext.
1896 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900   (eval $ac_link_default) 2>&5
1901   ac_status=$?
1902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903   (exit $ac_status); }; then
1904   # Find the output, starting from the most likely.  This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906 # resort.
1907
1908 # Be careful to initialize this variable, since it used to be cached.
1909 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910 ac_cv_exeext=
1911 # b.out is created by i960 compilers.
1912 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913 do
1914   test -f "$ac_file" || continue
1915   case $ac_file in
1916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1917         ;;
1918     conftest.$ac_ext )
1919         # This is the source file.
1920         ;;
1921     [ab].out )
1922         # We found the default executable, but exeext='' is most
1923         # certainly right.
1924         break;;
1925     *.* )
1926         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927         # FIXME: I believe we export ac_cv_exeext for Libtool,
1928         # but it would be cool to find out if it's true.  Does anybody
1929         # maintain Libtool? --akim.
1930         export ac_cv_exeext
1931         break;;
1932     * )
1933         break;;
1934   esac
1935 done
1936 else
1937   echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&2;}
1944    { (exit 77); exit 77; }; }
1945 fi
1946
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1950
1951 # Check the compiler produces executables we can run.  If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958   if { ac_try='./$ac_file'
1959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960   (eval $ac_try) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }; }; then
1964     cross_compiling=no
1965   else
1966     if test "$cross_compiling" = maybe; then
1967         cross_compiling=yes
1968     else
1969         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'.
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot run C compiled programs.
1973 If you meant to cross compile, use \`--host'.
1974 See \`config.log' for more details." >&2;}
1975    { (exit 1); exit 1; }; }
1976     fi
1977   fi
1978 fi
1979 echo "$as_me:$LINENO: result: yes" >&5
1980 echo "${ECHO_T}yes" >&6
1981
1982 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983 ac_clean_files=$ac_clean_files_save
1984 # Check the compiler produces executables we can run.  If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989 echo "${ECHO_T}$cross_compiling" >&6
1990
1991 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994   (eval $ac_link) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); }; then
1998   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2000 # work properly (i.e., refer to `conftest.exe'), while it won't with
2001 # `rm'.
2002 for ac_file in conftest.exe conftest conftest.*; do
2003   test -f "$ac_file" || continue
2004   case $ac_file in
2005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007           export ac_cv_exeext
2008           break;;
2009     * ) break;;
2010   esac
2011 done
2012 else
2013   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&2;}
2017    { (exit 1); exit 1; }; }
2018 fi
2019
2020 rm -f conftest$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022 echo "${ECHO_T}$ac_cv_exeext" >&6
2023
2024 rm -f conftest.$ac_ext
2025 EXEEXT=$ac_cv_exeext
2026 ac_exeext=$EXEEXT
2027 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029 if test "${ac_cv_objext+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h.  */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h.  */
2038
2039 int
2040 main ()
2041 {
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.o conftest.obj
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049   (eval $ac_compile) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; then
2053   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2054   case $ac_file in
2055     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2057        break;;
2058   esac
2059 done
2060 else
2061   echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2063
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074 echo "${ECHO_T}$ac_cv_objext" >&6
2075 OBJEXT=$ac_cv_objext
2076 ac_objext=$OBJEXT
2077 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   cat >conftest.$ac_ext <<_ACEOF
2083 /* confdefs.h.  */
2084 _ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h.  */
2088
2089 int
2090 main ()
2091 {
2092 #ifndef __GNUC__
2093        choke me
2094 #endif
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102   (eval $ac_compile) 2>conftest.er1
2103   ac_status=$?
2104   grep -v '^ *+' conftest.er1 >conftest.err
2105   rm -f conftest.er1
2106   cat conftest.err >&5
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); } &&
2109          { ac_try='test -z "$ac_c_werror_flag"
2110                          || test ! -s conftest.err'
2111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112   (eval $ac_try) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; } &&
2116          { ac_try='test -s conftest.$ac_objext'
2117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118   (eval $ac_try) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; }; then
2122   ac_compiler_gnu=yes
2123 else
2124   echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_compiler_gnu=no
2128 fi
2129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2131
2132 fi
2133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135 GCC=`test $ac_compiler_gnu = yes && echo yes`
2136 ac_test_CFLAGS=${CFLAGS+set}
2137 ac_save_CFLAGS=$CFLAGS
2138 CFLAGS="-g"
2139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141 if test "${ac_cv_prog_cc_g+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161   (eval $ac_compile) 2>conftest.er1
2162   ac_status=$?
2163   grep -v '^ *+' conftest.er1 >conftest.err
2164   rm -f conftest.er1
2165   cat conftest.err >&5
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -z "$ac_c_werror_flag"
2169                          || test ! -s conftest.err'
2170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171   (eval $ac_try) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; } &&
2175          { ac_try='test -s conftest.$ac_objext'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181   ac_cv_prog_cc_g=yes
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 ac_cv_prog_cc_g=no
2187 fi
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 fi
2190 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2191 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192 if test "$ac_test_CFLAGS" = set; then
2193   CFLAGS=$ac_save_CFLAGS
2194 elif test $ac_cv_prog_cc_g = yes; then
2195   if test "$GCC" = yes; then
2196     CFLAGS="-g -O2"
2197   else
2198     CFLAGS="-g"
2199   fi
2200 else
2201   if test "$GCC" = yes; then
2202     CFLAGS="-O2"
2203   else
2204     CFLAGS=
2205   fi
2206 fi
2207 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2208 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   ac_cv_prog_cc_stdc=no
2213 ac_save_CC=$CC
2214 cat >conftest.$ac_ext <<_ACEOF
2215 /* confdefs.h.  */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h.  */
2220 #include <stdarg.h>
2221 #include <stdio.h>
2222 #include <sys/types.h>
2223 #include <sys/stat.h>
2224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2225 struct buf { int x; };
2226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227 static char *e (p, i)
2228      char **p;
2229      int i;
2230 {
2231   return p[i];
2232 }
2233 static char *f (char * (*g) (char **, int), char **p, ...)
2234 {
2235   char *s;
2236   va_list v;
2237   va_start (v,p);
2238   s = g (p, va_arg (v,int));
2239   va_end (v);
2240   return s;
2241 }
2242
2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2244    function prototypes and stuff, but not '\xHH' hex character constants.
2245    These don't provoke an error unfortunately, instead are silently treated
2246    as 'x'.  The following induces an error, until -std1 is added to get
2247    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2248    array size at least.  It's necessary to write '\x00'==0 to get something
2249    that's true only with -std1.  */
2250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251
2252 int test (int i, double x);
2253 struct s1 {int (*f) (int a);};
2254 struct s2 {int (*f) (double a);};
2255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2256 int argc;
2257 char **argv;
2258 int
2259 main ()
2260 {
2261 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 # Don't try gcc -ansi; that turns off useful extensions and
2267 # breaks some systems' header files.
2268 # AIX                   -qlanglvl=ansi
2269 # Ultrix and OSF/1      -std1
2270 # HP-UX 10.20 and later -Ae
2271 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2272 # SVR4                  -Xc -D__EXTENSIONS__
2273 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2274 do
2275   CC="$ac_save_CC $ac_arg"
2276   rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278   (eval $ac_compile) 2>conftest.er1
2279   ac_status=$?
2280   grep -v '^ *+' conftest.er1 >conftest.err
2281   rm -f conftest.er1
2282   cat conftest.err >&5
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); } &&
2285          { ac_try='test -z "$ac_c_werror_flag"
2286                          || test ! -s conftest.err'
2287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288   (eval $ac_try) 2>&5
2289   ac_status=$?
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); }; } &&
2292          { ac_try='test -s conftest.$ac_objext'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298   ac_cv_prog_cc_stdc=$ac_arg
2299 break
2300 else
2301   echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 fi
2305 rm -f conftest.err conftest.$ac_objext
2306 done
2307 rm -f conftest.$ac_ext conftest.$ac_objext
2308 CC=$ac_save_CC
2309
2310 fi
2311
2312 case "x$ac_cv_prog_cc_stdc" in
2313   x|xno)
2314     echo "$as_me:$LINENO: result: none needed" >&5
2315 echo "${ECHO_T}none needed" >&6 ;;
2316   *)
2317     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2319     CC="$CC $ac_cv_prog_cc_stdc" ;;
2320 esac
2321
2322 # Some people use a C++ compiler to compile C.  Since we use `exit',
2323 # in C++ we need to declare it.  In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #ifndef __cplusplus
2328   choke me
2329 #endif
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>conftest.er1
2334   ac_status=$?
2335   grep -v '^ *+' conftest.er1 >conftest.err
2336   rm -f conftest.er1
2337   cat conftest.err >&5
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); } &&
2340          { ac_try='test -z "$ac_c_werror_flag"
2341                          || test ! -s conftest.err'
2342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343   (eval $ac_try) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   for ac_declaration in \
2354    '' \
2355    'extern "C" void std::exit (int) throw (); using std::exit;' \
2356    'extern "C" void std::exit (int); using std::exit;' \
2357    'extern "C" void exit (int) throw ();' \
2358    'extern "C" void exit (int);' \
2359    'void exit (int);'
2360 do
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367 $ac_declaration
2368 #include <stdlib.h>
2369 int
2370 main ()
2371 {
2372 exit (42);
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } &&
2386          { ac_try='test -z "$ac_c_werror_flag"
2387                          || test ! -s conftest.err'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399   :
2400 else
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 continue
2405 fi
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413 $ac_declaration
2414 int
2415 main ()
2416 {
2417 exit (42);
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"
2432                          || test ! -s conftest.err'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   break
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 done
2452 rm -f conftest*
2453 if test -n "$ac_declaration"; then
2454   echo '#ifdef __cplusplus' >>confdefs.h
2455   echo $ac_declaration      >>confdefs.h
2456   echo '#endif'             >>confdefs.h
2457 fi
2458
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471 ac_ext=cc
2472 ac_cpp='$CXXCPP $CPPFLAGS'
2473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2478   do
2479     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CXX+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   if test -n "$CXX"; then
2487   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502
2503 fi
2504 fi
2505 CXX=$ac_cv_prog_CXX
2506 if test -n "$CXX"; then
2507   echo "$as_me:$LINENO: result: $CXX" >&5
2508 echo "${ECHO_T}$CXX" >&6
2509 else
2510   echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2512 fi
2513
2514     test -n "$CXX" && break
2515   done
2516 fi
2517 if test -z "$CXX"; then
2518   ac_ct_CXX=$CXX
2519   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2520 do
2521   # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   if test -n "$ac_ct_CXX"; then
2529   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536   for ac_exec_ext in '' $ac_executable_extensions; do
2537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538     ac_cv_prog_ac_ct_CXX="$ac_prog"
2539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543 done
2544
2545 fi
2546 fi
2547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2548 if test -n "$ac_ct_CXX"; then
2549   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2550 echo "${ECHO_T}$ac_ct_CXX" >&6
2551 else
2552   echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2554 fi
2555
2556   test -n "$ac_ct_CXX" && break
2557 done
2558 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2559
2560   CXX=$ac_ct_CXX
2561 fi
2562
2563
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566      "checking for C++ compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569   (eval $ac_compiler --version </dev/null >&5) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574   (eval $ac_compiler -v </dev/null >&5) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579   (eval $ac_compiler -V </dev/null >&5) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }
2583
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2586 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595
2596 int
2597 main ()
2598 {
2599 #ifndef __GNUC__
2600        choke me
2601 #endif
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609   (eval $ac_compile) 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -z "$ac_cxx_werror_flag"
2617                          || test ! -s conftest.err'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   ac_compiler_gnu=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 ac_compiler_gnu=no
2635 fi
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2638
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2642 GXX=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CXXFLAGS=${CXXFLAGS+set}
2644 ac_save_CXXFLAGS=$CXXFLAGS
2645 CXXFLAGS="-g"
2646 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2647 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cxx_g+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_cxx_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   ac_cv_prog_cxx_g=yes
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 ac_cv_prog_cxx_g=no
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 fi
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2699 if test "$ac_test_CXXFLAGS" = set; then
2700   CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702   if test "$GXX" = yes; then
2703     CXXFLAGS="-g -O2"
2704   else
2705     CXXFLAGS="-g"
2706   fi
2707 else
2708   if test "$GXX" = yes; then
2709     CXXFLAGS="-O2"
2710   else
2711     CXXFLAGS=
2712   fi
2713 fi
2714 for ac_declaration in \
2715    '' \
2716    'extern "C" void std::exit (int) throw (); using std::exit;' \
2717    'extern "C" void std::exit (int); using std::exit;' \
2718    'extern "C" void exit (int) throw ();' \
2719    'extern "C" void exit (int);' \
2720    'void exit (int);'
2721 do
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728 $ac_declaration
2729 #include <stdlib.h>
2730 int
2731 main ()
2732 {
2733 exit (42);
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_cxx_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   :
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 continue
2766 fi
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774 $ac_declaration
2775 int
2776 main ()
2777 {
2778 exit (42);
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_cxx_werror_flag"
2793                          || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   break
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 done
2813 rm -f conftest*
2814 if test -n "$ac_declaration"; then
2815   echo '#ifdef __cplusplus' >>confdefs.h
2816   echo $ac_declaration      >>confdefs.h
2817   echo '#endif'             >>confdefs.h
2818 fi
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826 if test "x$CC" != xcc; then
2827   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2828 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2829 else
2830   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2831 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2832 fi
2833 set dummy $CC; ac_cc=`echo $2 |
2834                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2835 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h.  */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h.  */
2844
2845 int
2846 main ()
2847 {
2848
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 # Make sure it works both with $CC and with simple cc.
2854 # We do the test twice because some compilers refuse to overwrite an
2855 # existing .o file with -o, though they will create one.
2856 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); };
2867 then
2868   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2869   if test "x$CC" != xcc; then
2870     # Test first that cc exists at all.
2871     if { ac_try='cc -c conftest.$ac_ext >&5'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2878       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); };
2888       then
2889         # cc works too.
2890         :
2891       else
2892         # cc exists but doesn't like -o.
2893         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2894       fi
2895     fi
2896   fi
2897 else
2898   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2899 fi
2900 rm -f conftest*
2901
2902 fi
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2904   echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2906 else
2907   echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909
2910 cat >>confdefs.h <<\_ACEOF
2911 #define NO_MINUS_C_MINUS_O 1
2912 _ACEOF
2913
2914 fi
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2923 # On Suns, sometimes $CPP names a directory.
2924 if test -n "$CPP" && test -d "$CPP"; then
2925   CPP=
2926 fi
2927 if test -z "$CPP"; then
2928   if test "${ac_cv_prog_CPP+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931       # Double quotes because CPP needs to be expanded
2932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2933     do
2934       ac_preproc_ok=false
2935 for ac_c_preproc_warn_flag in '' yes
2936 do
2937   # Use a header file that comes with gcc, so configuring glibc
2938   # with a fresh cross-compiler works.
2939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940   # <limits.h> exists even on freestanding compilers.
2941   # On the NeXT, cc -E runs the code through the compiler's parser,
2942   # not just through cpp. "Syntax error" is here to catch this case.
2943   cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949 #ifdef __STDC__
2950 # include <limits.h>
2951 #else
2952 # include <assert.h>
2953 #endif
2954                      Syntax error
2955 _ACEOF
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } >/dev/null; then
2964   if test -s conftest.err; then
2965     ac_cpp_err=$ac_c_preproc_warn_flag
2966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2967   else
2968     ac_cpp_err=
2969   fi
2970 else
2971   ac_cpp_err=yes
2972 fi
2973 if test -z "$ac_cpp_err"; then
2974   :
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979   # Broken: fails on valid input.
2980 continue
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983
2984   # OK, works on sane cases.  Now check whether non-existent headers
2985   # can be detected and how.
2986   cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992 #include <ac_nonexistent.h>
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } >/dev/null; then
3002   if test -s conftest.err; then
3003     ac_cpp_err=$ac_c_preproc_warn_flag
3004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005   else
3006     ac_cpp_err=
3007   fi
3008 else
3009   ac_cpp_err=yes
3010 fi
3011 if test -z "$ac_cpp_err"; then
3012   # Broken: success on invalid input.
3013 continue
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018   # Passes both tests.
3019 ac_preproc_ok=:
3020 break
3021 fi
3022 rm -f conftest.err conftest.$ac_ext
3023
3024 done
3025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026 rm -f conftest.err conftest.$ac_ext
3027 if $ac_preproc_ok; then
3028   break
3029 fi
3030
3031     done
3032     ac_cv_prog_CPP=$CPP
3033
3034 fi
3035   CPP=$ac_cv_prog_CPP
3036 else
3037   ac_cv_prog_CPP=$CPP
3038 fi
3039 echo "$as_me:$LINENO: result: $CPP" >&5
3040 echo "${ECHO_T}$CPP" >&6
3041 ac_preproc_ok=false
3042 for ac_c_preproc_warn_flag in '' yes
3043 do
3044   # Use a header file that comes with gcc, so configuring glibc
3045   # with a fresh cross-compiler works.
3046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047   # <limits.h> exists even on freestanding compilers.
3048   # On the NeXT, cc -E runs the code through the compiler's parser,
3049   # not just through cpp. "Syntax error" is here to catch this case.
3050   cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056 #ifdef __STDC__
3057 # include <limits.h>
3058 #else
3059 # include <assert.h>
3060 #endif
3061                      Syntax error
3062 _ACEOF
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } >/dev/null; then
3071   if test -s conftest.err; then
3072     ac_cpp_err=$ac_c_preproc_warn_flag
3073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3074   else
3075     ac_cpp_err=
3076   fi
3077 else
3078   ac_cpp_err=yes
3079 fi
3080 if test -z "$ac_cpp_err"; then
3081   :
3082 else
3083   echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086   # Broken: fails on valid input.
3087 continue
3088 fi
3089 rm -f conftest.err conftest.$ac_ext
3090
3091   # OK, works on sane cases.  Now check whether non-existent headers
3092   # can be detected and how.
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099 #include <ac_nonexistent.h>
3100 _ACEOF
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } >/dev/null; then
3109   if test -s conftest.err; then
3110     ac_cpp_err=$ac_c_preproc_warn_flag
3111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112   else
3113     ac_cpp_err=
3114   fi
3115 else
3116   ac_cpp_err=yes
3117 fi
3118 if test -z "$ac_cpp_err"; then
3119   # Broken: success on invalid input.
3120 continue
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125   # Passes both tests.
3126 ac_preproc_ok=:
3127 break
3128 fi
3129 rm -f conftest.err conftest.$ac_ext
3130
3131 done
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.$ac_ext
3134 if $ac_preproc_ok; then
3135   :
3136 else
3137   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3140 See \`config.log' for more details." >&2;}
3141    { (exit 1); exit 1; }; }
3142 fi
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150
3151 echo "$as_me:$LINENO: checking for egrep" >&5
3152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3153 if test "${ac_cv_prog_egrep+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3157     then ac_cv_prog_egrep='grep -E'
3158     else ac_cv_prog_egrep='egrep'
3159     fi
3160 fi
3161 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3162 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3163  EGREP=$ac_cv_prog_egrep
3164
3165
3166 if test $ac_cv_c_compiler_gnu = yes; then
3167     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3168 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3169 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172     ac_pattern="Autoconf.*'x'"
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #include <sgtty.h>
3180 Autoconf TIOCGETP
3181 _ACEOF
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3184   ac_cv_prog_gcc_traditional=yes
3185 else
3186   ac_cv_prog_gcc_traditional=no
3187 fi
3188 rm -f conftest*
3189
3190
3191   if test $ac_cv_prog_gcc_traditional = no; then
3192     cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 #include <termio.h>
3199 Autoconf TCGETA
3200 _ACEOF
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3203   ac_cv_prog_gcc_traditional=yes
3204 fi
3205 rm -f conftest*
3206
3207   fi
3208 fi
3209 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3210 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3211   if test $ac_cv_prog_gcc_traditional = yes; then
3212     CC="$CC -traditional"
3213   fi
3214 fi
3215
3216 BASECC=`basename $CC`
3217 have_gcc=no
3218 if test "x$BASECC" = xgcc; then
3219    cat >>confdefs.h <<\_ACEOF
3220 #define HAVE_GCC 1
3221 _ACEOF
3222
3223    have_gcc=yes
3224 fi
3225 # Extract the first word of "$CXX", so it can be a program name with args.
3226 set dummy $CXX; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   case $CXX in
3233   [\\/]* | ?:[\\/]*)
3234   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3235   ;;
3236   *)
3237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242   for ac_exec_ext in '' $ac_executable_extensions; do
3243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249 done
3250
3251   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3252   ;;
3253 esac
3254 fi
3255 CXX=$ac_cv_path_CXX
3256
3257 if test -n "$CXX"; then
3258   echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6
3260 else
3261   echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3263 fi
3264
3265 if test ! -e $CXX; then
3266    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3267 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3268    { (exit 1); exit 1; }; }
3269 fi
3270
3271 # Find a good install program.  We prefer a C program (faster),
3272 # so one script is as good as another.  But avoid the broken or
3273 # incompatible versions:
3274 # SysV /etc/install, /usr/sbin/install
3275 # SunOS /usr/etc/install
3276 # IRIX /sbin/install
3277 # AIX /bin/install
3278 # AmigaOS /C/install, which installs bootblocks on floppy discs
3279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282 # OS/2's system install, which has a completely different semantic
3283 # ./install, which can be erroneously created by make from ./install.sh.
3284 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3286 if test -z "$INSTALL"; then
3287 if test "${ac_cv_path_install+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295   # Account for people who put trailing slashes in PATH elements.
3296 case $as_dir/ in
3297   ./ | .// | /cC/* | \
3298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3300   /usr/ucb/* ) ;;
3301   *)
3302     # OSF1 and SCO ODT 3.0 have their own names for install.
3303     # Don't use installbsd from OSF since it installs stuff as root
3304     # by default.
3305     for ac_prog in ginstall scoinst install; do
3306       for ac_exec_ext in '' $ac_executable_extensions; do
3307         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3308           if test $ac_prog = install &&
3309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3310             # AIX install.  It has an incompatible calling convention.
3311             :
3312           elif test $ac_prog = install &&
3313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314             # program-specific install script used by HP pwplus--don't use.
3315             :
3316           else
3317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3318             break 3
3319           fi
3320         fi
3321       done
3322     done
3323     ;;
3324 esac
3325 done
3326
3327
3328 fi
3329   if test "${ac_cv_path_install+set}" = set; then
3330     INSTALL=$ac_cv_path_install
3331   else
3332     # As a last resort, use the slow shell script.  We don't cache a
3333     # path for INSTALL within a source directory, because that will
3334     # break other packages using the cache if that directory is
3335     # removed, or if the path is relative.
3336     INSTALL=$ac_install_sh
3337   fi
3338 fi
3339 echo "$as_me:$LINENO: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3341
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349
3350 if test -n "$ac_tool_prefix"; then
3351   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_RANLIB+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   if test -n "$RANLIB"; then
3359   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366   for ac_exec_ext in '' $ac_executable_extensions; do
3367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373 done
3374
3375 fi
3376 fi
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379   echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6
3381 else
3382   echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 fi
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388   ac_ct_RANLIB=$RANLIB
3389   # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   if test -n "$ac_ct_RANLIB"; then
3397   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404   for ac_exec_ext in '' $ac_executable_extensions; do
3405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406     ac_cv_prog_ac_ct_RANLIB="ranlib"
3407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411 done
3412
3413   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3414 fi
3415 fi
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3420 else
3421   echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3423 fi
3424
3425   RANLIB=$ac_ct_RANLIB
3426 else
3427   RANLIB="$ac_cv_prog_RANLIB"
3428 fi
3429
3430 # Extract the first word of "mv", so it can be a program name with args.
3431 set dummy mv; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_path_MV+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   case $MV in
3438   [\\/]* | ?:[\\/]*)
3439   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3440   ;;
3441   *)
3442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447   for ac_exec_ext in '' $ac_executable_extensions; do
3448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451     break 2
3452   fi
3453 done
3454 done
3455
3456   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3457   ;;
3458 esac
3459 fi
3460 MV=$ac_cv_path_MV
3461
3462 if test -n "$MV"; then
3463   echo "$as_me:$LINENO: result: $MV" >&5
3464 echo "${ECHO_T}$MV" >&6
3465 else
3466   echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3468 fi
3469
3470 # Extract the first word of "rm", so it can be a program name with args.
3471 set dummy rm; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_path_RM+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   case $RM in
3478   [\\/]* | ?:[\\/]*)
3479   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3480   ;;
3481   *)
3482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487   for ac_exec_ext in '' $ac_executable_extensions; do
3488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494 done
3495
3496   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3497   ;;
3498 esac
3499 fi
3500 RM=$ac_cv_path_RM
3501
3502 if test -n "$RM"; then
3503   echo "$as_me:$LINENO: result: $RM" >&5
3504 echo "${ECHO_T}$RM" >&6
3505 else
3506   echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3508 fi
3509
3510 # Extract the first word of "cp", so it can be a program name with args.
3511 set dummy cp; ac_word=$2
3512 echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3514 if test "${ac_cv_path_CP+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   case $CP in
3518   [\\/]* | ?:[\\/]*)
3519   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3520   ;;
3521   *)
3522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_exec_ext in '' $ac_executable_extensions; do
3528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534 done
3535
3536   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3537   ;;
3538 esac
3539 fi
3540 CP=$ac_cv_path_CP
3541
3542 if test -n "$CP"; then
3543   echo "$as_me:$LINENO: result: $CP" >&5
3544 echo "${ECHO_T}$CP" >&6
3545 else
3546   echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3548 fi
3549
3550 # Extract the first word of "sed", so it can be a program name with args.
3551 set dummy sed; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_path_SED+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   case $SED in
3558   [\\/]* | ?:[\\/]*)
3559   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3560   ;;
3561   *)
3562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567   for ac_exec_ext in '' $ac_executable_extensions; do
3568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571     break 2
3572   fi
3573 done
3574 done
3575
3576   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3577   ;;
3578 esac
3579 fi
3580 SED=$ac_cv_path_SED
3581
3582 if test -n "$SED"; then
3583   echo "$as_me:$LINENO: result: $SED" >&5
3584 echo "${ECHO_T}$SED" >&6
3585 else
3586   echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3588 fi
3589
3590 # Extract the first word of "echo", so it can be a program name with args.
3591 set dummy echo; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_path_ECHO+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   case $ECHO in
3598   [\\/]* | ?:[\\/]*)
3599   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3600   ;;
3601   *)
3602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607   for ac_exec_ext in '' $ac_executable_extensions; do
3608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614 done
3615
3616   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3617   ;;
3618 esac
3619 fi
3620 ECHO=$ac_cv_path_ECHO
3621
3622 if test -n "$ECHO"; then
3623   echo "$as_me:$LINENO: result: $ECHO" >&5
3624 echo "${ECHO_T}$ECHO" >&6
3625 else
3626   echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 fi
3629
3630 # Extract the first word of "cmp", so it can be a program name with args.
3631 set dummy cmp; ac_word=$2
3632 echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_path_CMP+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   case $CMP in
3638   [\\/]* | ?:[\\/]*)
3639   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3640   ;;
3641   *)
3642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647   for ac_exec_ext in '' $ac_executable_extensions; do
3648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654 done
3655
3656   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3657   ;;
3658 esac
3659 fi
3660 CMP=$ac_cv_path_CMP
3661
3662 if test -n "$CMP"; then
3663   echo "$as_me:$LINENO: result: $CMP" >&5
3664 echo "${ECHO_T}$CMP" >&6
3665 else
3666   echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3668 fi
3669
3670 # Extract the first word of "tbl", so it can be a program name with args.
3671 set dummy tbl; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_TBL+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   case $TBL in
3678   [\\/]* | ?:[\\/]*)
3679   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3680   ;;
3681   *)
3682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687   for ac_exec_ext in '' $ac_executable_extensions; do
3688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691     break 2
3692   fi
3693 done
3694 done
3695
3696   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3697   ;;
3698 esac
3699 fi
3700 TBL=$ac_cv_path_TBL
3701
3702 if test -n "$TBL"; then
3703   echo "$as_me:$LINENO: result: $TBL" >&5
3704 echo "${ECHO_T}$TBL" >&6
3705 else
3706   echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710 # Extract the first word of "ar", so it can be a program name with args.
3711 set dummy ar; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_AR+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   case $AR in
3718   [\\/]* | ?:[\\/]*)
3719   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3720   ;;
3721   *)
3722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727   for ac_exec_ext in '' $ac_executable_extensions; do
3728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734 done
3735
3736   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3737   ;;
3738 esac
3739 fi
3740 AR=$ac_cv_path_AR
3741
3742 if test -n "$AR"; then
3743   echo "$as_me:$LINENO: result: $AR" >&5
3744 echo "${ECHO_T}$AR" >&6
3745 else
3746   echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 fi
3749
3750 # Extract the first word of "openssl", so it can be a program name with args.
3751 set dummy openssl; ac_word=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_path_OPENSSL+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   case $OPENSSL in
3758   [\\/]* | ?:[\\/]*)
3759   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3760   ;;
3761   *)
3762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774 done
3775
3776   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3777   ;;
3778 esac
3779 fi
3780 OPENSSL=$ac_cv_path_OPENSSL
3781
3782 if test -n "$OPENSSL"; then
3783   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3784 echo "${ECHO_T}$OPENSSL" >&6
3785 else
3786   echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789
3790 # Extract the first word of "mtx", so it can be a program name with args.
3791 set dummy mtx; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_path_MTX+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   case $MTX in
3798   [\\/]* | ?:[\\/]*)
3799   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3800   ;;
3801   *)
3802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807   for ac_exec_ext in '' $ac_executable_extensions; do
3808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811     break 2
3812   fi
3813 done
3814 done
3815
3816   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3817   ;;
3818 esac
3819 fi
3820 MTX=$ac_cv_path_MTX
3821
3822 if test -n "$MTX"; then
3823   echo "$as_me:$LINENO: result: $MTX" >&5
3824 echo "${ECHO_T}$MTX" >&6
3825 else
3826   echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3828 fi
3829
3830 # Extract the first word of "dd", so it can be a program name with args.
3831 set dummy dd; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_path_DD+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   case $DD in
3838   [\\/]* | ?:[\\/]*)
3839   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3840   ;;
3841   *)
3842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855
3856   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3857   ;;
3858 esac
3859 fi
3860 DD=$ac_cv_path_DD
3861
3862 if test -n "$DD"; then
3863   echo "$as_me:$LINENO: result: $DD" >&5
3864 echo "${ECHO_T}$DD" >&6
3865 else
3866   echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3868 fi
3869
3870 # Extract the first word of "mkisofs", so it can be a program name with args.
3871 set dummy mkisofs; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_path_MKISOFS+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   case $MKISOFS in
3878   [\\/]* | ?:[\\/]*)
3879   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3880   ;;
3881   *)
3882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   for ac_exec_ext in '' $ac_executable_extensions; do
3888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894 done
3895
3896   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3897   ;;
3898 esac
3899 fi
3900 MKISOFS=$ac_cv_path_MKISOFS
3901
3902 if test -n "$MKISOFS"; then
3903   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3904 echo "${ECHO_T}$MKISOFS" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910 # Extract the first word of "python", so it can be a program name with args.
3911 set dummy python; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_PYTHON+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $PYTHON in
3918   [\\/]* | ?:[\\/]*)
3919   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3920   ;;
3921   *)
3922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934 done
3935
3936   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3937   ;;
3938 esac
3939 fi
3940 PYTHON=$ac_cv_path_PYTHON
3941
3942 if test -n "$PYTHON"; then
3943   echo "$as_me:$LINENO: result: $PYTHON" >&5
3944 echo "${ECHO_T}$PYTHON" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950 # Extract the first word of "growisofs", so it can be a program name with args.
3951 set dummy growisofs; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   case $GROWISOFS in
3958   [\\/]* | ?:[\\/]*)
3959   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3960   ;;
3961   *)
3962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967   for ac_exec_ext in '' $ac_executable_extensions; do
3968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971     break 2
3972   fi
3973 done
3974 done
3975
3976   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3977   ;;
3978 esac
3979 fi
3980 GROWISOFS=$ac_cv_path_GROWISOFS
3981
3982 if test -n "$GROWISOFS"; then
3983   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3984 echo "${ECHO_T}$GROWISOFS" >&6
3985 else
3986   echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3988 fi
3989
3990 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3991 set dummy dvd+rw-mediainfo; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   case $DVDRWMEDIAINFO in
3998   [\\/]* | ?:[\\/]*)
3999   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4000   ;;
4001   *)
4002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_exec_ext in '' $ac_executable_extensions; do
4008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014 done
4015
4016   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4017   ;;
4018 esac
4019 fi
4020 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4021
4022 if test -n "$DVDRWMEDIAINFO"; then
4023   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4024 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4025 else
4026   echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4028 fi
4029
4030 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4031 set dummy dvd+rw-format; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   case $DVDRWFORMAT in
4038   [\\/]* | ?:[\\/]*)
4039   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4040   ;;
4041   *)
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054 done
4055
4056   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4057   ;;
4058 esac
4059 fi
4060 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4061
4062 if test -n "$DVDRWFORMAT"; then
4063   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4064 echo "${ECHO_T}$DVDRWFORMAT" >&6
4065 else
4066   echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 fi
4069
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   case $PKGCONFIG in
4078   [\\/]* | ?:[\\/]*)
4079   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4080   ;;
4081   *)
4082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094 done
4095
4096   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4097   ;;
4098 esac
4099 fi
4100 PKGCONFIG=$ac_cv_path_PKGCONFIG
4101
4102 if test -n "$PKGCONFIG"; then
4103   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4104 echo "${ECHO_T}$PKGCONFIG" >&6
4105 else
4106   echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110
4111 if test "x$WXCONFIG" = x; then
4112   WXCONFIG=wx-config
4113 fi
4114 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4115 set dummy ${WXCONFIG}; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   case $WXCONFIG in
4122   [\\/]* | ?:[\\/]*)
4123   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4124   ;;
4125   *)
4126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4141   ;;
4142 esac
4143 fi
4144 WXCONFIG=$ac_cv_path_WXCONFIG
4145
4146 if test -n "$WXCONFIG"; then
4147   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4148 echo "${ECHO_T}$WXCONFIG" >&6
4149 else
4150   echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154
4155 # Extract the first word of "cdrecord", so it can be a program name with args.
4156 set dummy cdrecord; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_path_CDRECORD+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   case $CDRECORD in
4163   [\\/]* | ?:[\\/]*)
4164   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4165   ;;
4166   *)
4167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_exec_ext in '' $ac_executable_extensions; do
4173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179 done
4180
4181   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4182   ;;
4183 esac
4184 fi
4185 CDRECORD=$ac_cv_path_CDRECORD
4186
4187 if test -n "$CDRECORD"; then
4188   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4189 echo "${ECHO_T}$CDRECORD" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194
4195 # Extract the first word of "pidof", so it can be a program name with args.
4196 set dummy pidof; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_path_PIDOF+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   case $PIDOF in
4203   [\\/]* | ?:[\\/]*)
4204   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4205   ;;
4206   *)
4207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220
4221   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4222   ;;
4223 esac
4224 fi
4225 PIDOF=$ac_cv_path_PIDOF
4226
4227 if test -n "$PIDOF"; then
4228   echo "$as_me:$LINENO: result: $PIDOF" >&5
4229 echo "${ECHO_T}$PIDOF" >&6
4230 else
4231   echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4233 fi
4234
4235 for ac_prog in gawk mawk nawk awk
4236 do
4237   # Extract the first word of "$ac_prog", so it can be a program name with args.
4238 set dummy $ac_prog; ac_word=$2
4239 echo "$as_me:$LINENO: checking for $ac_word" >&5
4240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4241 if test "${ac_cv_prog_AWK+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   if test -n "$AWK"; then
4245   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252   for ac_exec_ext in '' $ac_executable_extensions; do
4253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254     ac_cv_prog_AWK="$ac_prog"
4255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259 done
4260
4261 fi
4262 fi
4263 AWK=$ac_cv_prog_AWK
4264 if test -n "$AWK"; then
4265   echo "$as_me:$LINENO: result: $AWK" >&5
4266 echo "${ECHO_T}$AWK" >&6
4267 else
4268   echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4270 fi
4271
4272   test -n "$AWK" && break
4273 done
4274
4275 # Some AWK programs fail, so test it and warn the user
4276 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4277       { if ((prog == $2) || (("(" prog ")") == $2) ||
4278            (("" prog "") == $2) ||
4279            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4280 else
4281   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4282    The regex engine of $AWK is too broken to be used you
4283    might want to install GNU AWK.
4284    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4285 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4286    The regex engine of $AWK is too broken to be used you
4287    might want to install GNU AWK.
4288    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4289    { (exit 1); exit 1; }; }
4290 fi
4291 THE_AWK=$AWK
4292 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4293 set dummy $THE_AWK; ac_word=$2
4294 echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296 if test "${ac_cv_path_AWK+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   case $AWK in
4300   [\\/]* | ?:[\\/]*)
4301   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4302   ;;
4303   *)
4304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4319   ;;
4320 esac
4321 fi
4322 AWK=$ac_cv_path_AWK
4323
4324 if test -n "$AWK"; then
4325   echo "$as_me:$LINENO: result: $AWK" >&5
4326 echo "${ECHO_T}$AWK" >&6
4327 else
4328   echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6
4330 fi
4331
4332
4333 test -n "$ARFLAG" || ARFLAGS="cr"
4334
4335
4336 MAKE_SHELL=/bin/sh
4337
4338
4339
4340
4341
4342
4343
4344 # Make sure we can run config.sub.
4345 $ac_config_sub sun4 >/dev/null 2>&1 ||
4346   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4348    { (exit 1); exit 1; }; }
4349
4350 echo "$as_me:$LINENO: checking build system type" >&5
4351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4352 if test "${ac_cv_build+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   ac_cv_build_alias=$build_alias
4356 test -z "$ac_cv_build_alias" &&
4357   ac_cv_build_alias=`$ac_config_guess`
4358 test -z "$ac_cv_build_alias" &&
4359   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4361    { (exit 1); exit 1; }; }
4362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4363   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4365    { (exit 1); exit 1; }; }
4366
4367 fi
4368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4369 echo "${ECHO_T}$ac_cv_build" >&6
4370 build=$ac_cv_build
4371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4374
4375
4376
4377 echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4379 if test "${ac_cv_host+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_cv_host_alias=$host_alias
4383 test -z "$ac_cv_host_alias" &&
4384   ac_cv_host_alias=$ac_cv_build_alias
4385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4386   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4388    { (exit 1); exit 1; }; }
4389
4390 fi
4391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6
4393 host=$ac_cv_host
4394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4397
4398
4399 case $host_os in
4400   *cygwin* ) CYGWIN=yes;;
4401          * ) CYGWIN=no;;
4402 esac
4403
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4405 then
4406
4407
4408 if $TRUEPRG; then
4409   HAVE_SUN_OS_TRUE=
4410   HAVE_SUN_OS_FALSE='#'
4411 else
4412   HAVE_SUN_OS_TRUE='#'
4413   HAVE_SUN_OS_FALSE=
4414 fi
4415         cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_SUN_OS 1
4417 _ACEOF
4418
4419 else
4420
4421
4422 if $FALSEPRG; then
4423   HAVE_SUN_OS_TRUE=
4424   HAVE_SUN_OS_FALSE='#'
4425 else
4426   HAVE_SUN_OS_TRUE='#'
4427   HAVE_SUN_OS_FALSE=
4428 fi
4429 fi
4430
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4432 then
4433
4434
4435 if $TRUEPRG; then
4436   HAVE_OSF1_OS_TRUE=
4437   HAVE_OSF1_OS_FALSE='#'
4438 else
4439   HAVE_OSF1_OS_TRUE='#'
4440   HAVE_OSF1_OS_FALSE=
4441 fi
4442         cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_OSF1_OS 1
4444 _ACEOF
4445
4446 else
4447
4448
4449 if $FALSEPRG; then
4450   HAVE_OSF1_OS_TRUE=
4451   HAVE_OSF1_OS_FALSE='#'
4452 else
4453   HAVE_OSF1_OS_TRUE='#'
4454   HAVE_OSF1_OS_FALSE=
4455 fi
4456 fi
4457
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4459 then
4460
4461
4462 if $TRUEPRG; then
4463   HAVE_AIX_OS_TRUE=
4464   HAVE_AIX_OS_FALSE='#'
4465 else
4466   HAVE_AIX_OS_TRUE='#'
4467   HAVE_AIX_OS_FALSE=
4468 fi
4469         cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_AIX_OS 1
4471 _ACEOF
4472
4473 else
4474
4475
4476 if $FALSEPRG; then
4477   HAVE_AIX_OS_TRUE=
4478   HAVE_AIX_OS_FALSE='#'
4479 else
4480   HAVE_AIX_OS_TRUE='#'
4481   HAVE_AIX_OS_FALSE=
4482 fi
4483 fi
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_HPUX_OS_TRUE=
4491   HAVE_HPUX_OS_FALSE='#'
4492 else
4493   HAVE_HPUX_OS_TRUE='#'
4494   HAVE_HPUX_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_HPUX_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_HPUX_OS_TRUE=
4505   HAVE_HPUX_OS_FALSE='#'
4506 else
4507   HAVE_HPUX_OS_TRUE='#'
4508   HAVE_HPUX_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_LINUX_OS_TRUE=
4518   HAVE_LINUX_OS_FALSE='#'
4519 else
4520   HAVE_LINUX_OS_TRUE='#'
4521   HAVE_LINUX_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_LINUX_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_LINUX_OS_TRUE=
4532   HAVE_LINUX_OS_FALSE='#'
4533 else
4534   HAVE_LINUX_OS_TRUE='#'
4535   HAVE_LINUX_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_FREEBSD_OS_TRUE=
4545   HAVE_FREEBSD_OS_FALSE='#'
4546 else
4547   HAVE_FREEBSD_OS_TRUE='#'
4548   HAVE_FREEBSD_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_FREEBSD_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_FREEBSD_OS_TRUE=
4559   HAVE_FREEBSD_OS_FALSE='#'
4560 else
4561   HAVE_FREEBSD_OS_TRUE='#'
4562   HAVE_FREEBSD_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_NETBSD_OS_TRUE=
4572   HAVE_NETBSD_OS_FALSE='#'
4573 else
4574   HAVE_NETBSD_OS_TRUE='#'
4575   HAVE_NETBSD_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_NETBSD_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_NETBSD_OS_TRUE=
4586   HAVE_NETBSD_OS_FALSE='#'
4587 else
4588   HAVE_NETBSD_OS_TRUE='#'
4589   HAVE_NETBSD_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_OPENBSD_OS_TRUE=
4599   HAVE_OPENBSD_OS_FALSE='#'
4600 else
4601   HAVE_OPENBSD_OS_TRUE='#'
4602   HAVE_OPENBSD_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_OPENBSD_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_OPENBSD_OS_TRUE=
4613   HAVE_OPENBSD_OS_FALSE='#'
4614 else
4615   HAVE_OPENBSD_OS_TRUE='#'
4616   HAVE_OPENBSD_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_BSDI_OS_TRUE=
4626   HAVE_BSDI_OS_FALSE='#'
4627 else
4628   HAVE_BSDI_OS_TRUE='#'
4629   HAVE_BSDI_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_BSDI_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_BSDI_OS_TRUE=
4640   HAVE_BSDI_OS_FALSE='#'
4641 else
4642   HAVE_BSDI_OS_TRUE='#'
4643   HAVE_BSDI_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_SGI_OS_TRUE=
4653   HAVE_SGI_OS_FALSE='#'
4654 else
4655   HAVE_SGI_OS_TRUE='#'
4656   HAVE_SGI_OS_FALSE=
4657 fi
4658         cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_SGI_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_SGI_OS_TRUE=
4667   HAVE_SGI_OS_FALSE='#'
4668 else
4669   HAVE_SGI_OS_TRUE='#'
4670   HAVE_SGI_OS_FALSE=
4671 fi
4672 fi
4673
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4675 then
4676
4677
4678 if $TRUEPRG; then
4679   HAVE_IRIX_OS_TRUE=
4680   HAVE_IRIX_OS_FALSE='#'
4681 else
4682   HAVE_IRIX_OS_TRUE='#'
4683   HAVE_IRIX_OS_FALSE=
4684 fi
4685         cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_IRIX_OS 1
4687 _ACEOF
4688
4689 else
4690
4691
4692 if $FALSEPRG; then
4693   HAVE_IRIX_OS_TRUE=
4694   HAVE_IRIX_OS_FALSE='#'
4695 else
4696   HAVE_IRIX_OS_TRUE='#'
4697   HAVE_IRIX_OS_FALSE=
4698 fi
4699 fi
4700
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4702 then
4703
4704
4705 if $TRUEPRG; then
4706   HAVE_DARWIN_OS_TRUE=
4707   HAVE_DARWIN_OS_FALSE='#'
4708 else
4709   HAVE_DARWIN_OS_TRUE='#'
4710   HAVE_DARWIN_OS_FALSE=
4711 fi
4712     cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_DARWIN_OS 1
4714 _ACEOF
4715
4716 else
4717
4718
4719 if $FALSEPRG; then
4720   HAVE_DARWIN_OS_TRUE=
4721   HAVE_DARWIN_OS_FALSE='#'
4722 else
4723   HAVE_DARWIN_OS_TRUE='#'
4724   HAVE_DARWIN_OS_FALSE=
4725 fi
4726 fi
4727
4728
4729 # -----------------------------------------------------------
4730 # ----------------------------------------------------------
4731 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4732 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4733 if test "x$DISTNAME" != "x"
4734 then
4735         echo "distname set to $DISTNAME"
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4737 then
4738         DISTNAME=alpha
4739 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4740 then
4741         DISTNAME=aix
4742 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4743 then
4744         DISTNAME=hpux
4745 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4746 then
4747         DISTNAME=solaris
4748 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4749 then
4750         DISTNAME=freebsd
4751 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4752 then
4753         DISTNAME=netbsd
4754 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4755 then
4756         DISTNAME=openbsd
4757 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4758 then
4759         DISTNAME=irix
4760 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4761 then
4762         DISTNAME=bsdi
4763 elif test -f /etc/SuSE-release
4764 then
4765         DISTNAME=suse
4766 elif test -d /etc/SuSEconfig
4767 then
4768         DISTNAME=suse5
4769 elif test -f /etc/mandrake-release
4770 then
4771         DISTNAME=mandrake
4772 elif test -f /etc/whitebox-release
4773 then
4774        DISTNAME=redhat
4775 elif test -f /etc/redhat-release
4776 then
4777         DISTNAME=redhat
4778 elif test -f /etc/gentoo-release
4779 then
4780         DISTNAME=gentoo
4781 elif test -f /etc/debian_version
4782 then
4783         DISTNAME=debian
4784 elif test -f /etc/slackware-version
4785 then
4786         DISTNAME=slackware
4787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4788 then
4789     DISTNAME=darwin
4790 elif test -f /etc/engarde-version
4791 then
4792         DISTNAME=engarde
4793 elif test "$CYGWIN" = yes
4794 then
4795         DISTNAME=cygwin
4796         cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_CYGWIN 1
4798 _ACEOF
4799
4800 else
4801         DISTNAME=unknown
4802 fi
4803 echo "$as_me:$LINENO: result: done" >&5
4804 echo "${ECHO_T}done" >&6
4805
4806
4807 # --------------------------------------------------
4808 # Suppport for gettext (translations)
4809 # By default, $datadir is ${prefix}/share
4810 # --------------------------------------------------
4811 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4813 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   cat >conftest.make <<\_ACEOF
4818 all:
4819         @echo 'ac_maketemp="$(MAKE)"'
4820 _ACEOF
4821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4822 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4823 if test -n "$ac_maketemp"; then
4824   eval ac_cv_prog_make_${ac_make}_set=yes
4825 else
4826   eval ac_cv_prog_make_${ac_make}_set=no
4827 fi
4828 rm -f conftest.make
4829 fi
4830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4831   echo "$as_me:$LINENO: result: yes" >&5
4832 echo "${ECHO_T}yes" >&6
4833   SET_MAKE=
4834 else
4835   echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837   SET_MAKE="MAKE=${MAKE-make}"
4838 fi
4839
4840
4841
4842         MKINSTALLDIRS=
4843   if test -n "$ac_aux_dir"; then
4844     case "$ac_aux_dir" in
4845       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4846       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4847     esac
4848   fi
4849   if test -z "$MKINSTALLDIRS"; then
4850     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4851   fi
4852
4853
4854
4855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4857     # Check whether --enable-nls or --disable-nls was given.
4858 if test "${enable_nls+set}" = set; then
4859   enableval="$enable_nls"
4860   USE_NLS=$enableval
4861 else
4862   USE_NLS=yes
4863 fi;
4864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4865 echo "${ECHO_T}$USE_NLS" >&6
4866
4867
4868
4869
4870
4871
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875   echo "#! /bin/sh" >conf$$.sh
4876   echo  "exit 0"   >>conf$$.sh
4877   chmod +x conf$$.sh
4878   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879     PATH_SEPARATOR=';'
4880   else
4881     PATH_SEPARATOR=:
4882   fi
4883   rm -f conf$$.sh
4884 fi
4885
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4889 #! /bin/sh
4890 exit 0
4891 _ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894   ac_executable_p="test -x"
4895 else
4896   ac_executable_p="test -f"
4897 fi
4898 rm -f conf$$.file
4899
4900 # Extract the first word of "msgfmt", so it can be a program name with args.
4901 set dummy msgfmt; ac_word=$2
4902 echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904 if test "${ac_cv_path_MSGFMT+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   case "$MSGFMT" in
4908   [\\/]* | ?:[\\/]*)
4909     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4910     ;;
4911   *)
4912     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913     for ac_dir in $PATH; do
4914       IFS="$ac_save_IFS"
4915       test -z "$ac_dir" && ac_dir=.
4916       for ac_exec_ext in '' $ac_executable_extensions; do
4917         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4919           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4920      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4921             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4922             break 2
4923           fi
4924         fi
4925       done
4926     done
4927     IFS="$ac_save_IFS"
4928   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4929     ;;
4930 esac
4931 fi
4932 MSGFMT="$ac_cv_path_MSGFMT"
4933 if test "$MSGFMT" != ":"; then
4934   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4935 echo "${ECHO_T}$MSGFMT" >&6
4936 else
4937   echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4939 fi
4940
4941   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4942 set dummy gmsgfmt; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   case $GMSGFMT in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4951   ;;
4952   *)
4953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966
4967   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4968   ;;
4969 esac
4970 fi
4971 GMSGFMT=$ac_cv_path_GMSGFMT
4972
4973 if test -n "$GMSGFMT"; then
4974   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4975 echo "${ECHO_T}$GMSGFMT" >&6
4976 else
4977   echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986   echo "#! /bin/sh" >conf$$.sh
4987   echo  "exit 0"   >>conf$$.sh
4988   chmod +x conf$$.sh
4989   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4990     PATH_SEPARATOR=';'
4991   else
4992     PATH_SEPARATOR=:
4993   fi
4994   rm -f conf$$.sh
4995 fi
4996
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.file <<_ASEOF
5000 #! /bin/sh
5001 exit 0
5002 _ASEOF
5003 chmod +x conf$$.file
5004 if test -x conf$$.file >/dev/null 2>&1; then
5005   ac_executable_p="test -x"
5006 else
5007   ac_executable_p="test -f"
5008 fi
5009 rm -f conf$$.file
5010
5011 # Extract the first word of "xgettext", so it can be a program name with args.
5012 set dummy xgettext; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   case "$XGETTEXT" in
5019   [\\/]* | ?:[\\/]*)
5020     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5021     ;;
5022   *)
5023     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5024     for ac_dir in $PATH; do
5025       IFS="$ac_save_IFS"
5026       test -z "$ac_dir" && ac_dir=.
5027       for ac_exec_ext in '' $ac_executable_extensions; do
5028         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5031      (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
5032             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5033             break 2
5034           fi
5035         fi
5036       done
5037     done
5038     IFS="$ac_save_IFS"
5039   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5040     ;;
5041 esac
5042 fi
5043 XGETTEXT="$ac_cv_path_XGETTEXT"
5044 if test "$XGETTEXT" != ":"; then
5045   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5046 echo "${ECHO_T}$XGETTEXT" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052     rm -f messages.po
5053
5054
5055 # Prepare PATH_SEPARATOR.
5056 # The user is always right.
5057 if test "${PATH_SEPARATOR+set}" != set; then
5058   echo "#! /bin/sh" >conf$$.sh
5059   echo  "exit 0"   >>conf$$.sh
5060   chmod +x conf$$.sh
5061   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5062     PATH_SEPARATOR=';'
5063   else
5064     PATH_SEPARATOR=:
5065   fi
5066   rm -f conf$$.sh
5067 fi
5068
5069 # Find out how to test for executable files. Don't use a zero-byte file,
5070 # as systems may use methods other than mode bits to determine executability.
5071 cat >conf$$.file <<_ASEOF
5072 #! /bin/sh
5073 exit 0
5074 _ASEOF
5075 chmod +x conf$$.file
5076 if test -x conf$$.file >/dev/null 2>&1; then
5077   ac_executable_p="test -x"
5078 else
5079   ac_executable_p="test -f"
5080 fi
5081 rm -f conf$$.file
5082
5083 # Extract the first word of "msgmerge", so it can be a program name with args.
5084 set dummy msgmerge; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   case "$MSGMERGE" in
5091   [\\/]* | ?:[\\/]*)
5092     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5093     ;;
5094   *)
5095     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5096     for ac_dir in $PATH; do
5097       IFS="$ac_save_IFS"
5098       test -z "$ac_dir" && ac_dir=.
5099       for ac_exec_ext in '' $ac_executable_extensions; do
5100         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5101           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5102           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5103             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5104             break 2
5105           fi
5106         fi
5107       done
5108     done
5109     IFS="$ac_save_IFS"
5110   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5111     ;;
5112 esac
5113 fi
5114 MSGMERGE="$ac_cv_path_MSGMERGE"
5115 if test "$MSGMERGE" != ":"; then
5116   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5117 echo "${ECHO_T}$MSGMERGE" >&6
5118 else
5119   echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5121 fi
5122
5123
5124       if test "$GMSGFMT" != ":"; then
5125             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5126        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5127       : ;
5128     else
5129       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5130       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5131 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5132       GMSGFMT=":"
5133     fi
5134   fi
5135
5136       if test "$XGETTEXT" != ":"; then
5137             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5138        (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
5139       : ;
5140     else
5141       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5142 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5143       XGETTEXT=":"
5144     fi
5145         rm -f messages.po
5146   fi
5147
5148             ac_config_commands="$ac_config_commands default-1"
5149
5150
5151
5152       if test "X$prefix" = "XNONE"; then
5153     acl_final_prefix="$ac_default_prefix"
5154   else
5155     acl_final_prefix="$prefix"
5156   fi
5157   if test "X$exec_prefix" = "XNONE"; then
5158     acl_final_exec_prefix='${prefix}'
5159   else
5160     acl_final_exec_prefix="$exec_prefix"
5161   fi
5162   acl_save_prefix="$prefix"
5163   prefix="$acl_final_prefix"
5164   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5165   prefix="$acl_save_prefix"
5166
5167
5168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5169 if test "${with_gnu_ld+set}" = set; then
5170   withval="$with_gnu_ld"
5171   test "$withval" = no || with_gnu_ld=yes
5172 else
5173   with_gnu_ld=no
5174 fi;
5175 # Prepare PATH_SEPARATOR.
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178   echo "#! /bin/sh" >conf$$.sh
5179   echo  "exit 0"   >>conf$$.sh
5180   chmod +x conf$$.sh
5181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182     PATH_SEPARATOR=';'
5183   else
5184     PATH_SEPARATOR=:
5185   fi
5186   rm -f conf$$.sh
5187 fi
5188 ac_prog=ld
5189 if test "$GCC" = yes; then
5190   # Check if gcc -print-prog-name=ld gives a path.
5191   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5192 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5193   case $host in
5194   *-*-mingw*)
5195     # gcc leaves a trailing carriage return which upsets mingw
5196     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5197   *)
5198     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5199   esac
5200   case $ac_prog in
5201     # Accept absolute paths.
5202     [\\/]* | [A-Za-z]:[\\/]*)
5203       re_direlt='/[^/][^/]*/\.\./'
5204       # Canonicalize the path of ld
5205       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5206       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5207         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5208       done
5209       test -z "$LD" && LD="$ac_prog"
5210       ;;
5211   "")
5212     # If it fails, then pretend we aren't using GCC.
5213     ac_prog=ld
5214     ;;
5215   *)
5216     # If it is relative, then search for the first ld in PATH.
5217     with_gnu_ld=unknown
5218     ;;
5219   esac
5220 elif test "$with_gnu_ld" = yes; then
5221   echo "$as_me:$LINENO: checking for GNU ld" >&5
5222 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5223 else
5224   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5225 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5226 fi
5227 if test "${acl_cv_path_LD+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test -z "$LD"; then
5231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5232   for ac_dir in $PATH; do
5233     test -z "$ac_dir" && ac_dir=.
5234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235       acl_cv_path_LD="$ac_dir/$ac_prog"
5236       # Check to see if the program is GNU ld.  I'd rather use --version,
5237       # but apparently some GNU ld's only accept -v.
5238       # Break only if it was the GNU/non-GNU ld that we prefer.
5239       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5240       *GNU* | *'with BFD'*)
5241         test "$with_gnu_ld" != no && break ;;
5242       *)
5243         test "$with_gnu_ld" != yes && break ;;
5244       esac
5245     fi
5246   done
5247   IFS="$ac_save_ifs"
5248 else
5249   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5250 fi
5251 fi
5252
5253 LD="$acl_cv_path_LD"
5254 if test -n "$LD"; then
5255   echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5257 else
5258   echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5260 fi
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263    { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272   acl_cv_prog_gnu_ld=yes ;;
5273 *)
5274   acl_cv_prog_gnu_ld=no ;;
5275 esac
5276 fi
5277 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5279 with_gnu_ld=$acl_cv_prog_gnu_ld
5280
5281
5282
5283
5284                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5285 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5286 if test "${acl_cv_rpath+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289
5290     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5291     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5292     . ./conftest.sh
5293     rm -f ./conftest.sh
5294     acl_cv_rpath=done
5295
5296 fi
5297 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5298 echo "${ECHO_T}$acl_cv_rpath" >&6
5299   wl="$acl_cv_wl"
5300   libext="$acl_cv_libext"
5301   shlibext="$acl_cv_shlibext"
5302   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5303   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5304   hardcode_direct="$acl_cv_hardcode_direct"
5305   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5306     # Check whether --enable-rpath or --disable-rpath was given.
5307 if test "${enable_rpath+set}" = set; then
5308   enableval="$enable_rpath"
5309   :
5310 else
5311   enable_rpath=yes
5312 fi;
5313
5314
5315
5316
5317
5318
5319
5320     use_additional=yes
5321
5322   acl_save_prefix="$prefix"
5323   prefix="$acl_final_prefix"
5324   acl_save_exec_prefix="$exec_prefix"
5325   exec_prefix="$acl_final_exec_prefix"
5326
5327     eval additional_includedir=\"$includedir\"
5328     eval additional_libdir=\"$libdir\"
5329
5330   exec_prefix="$acl_save_exec_prefix"
5331   prefix="$acl_save_prefix"
5332
5333
5334 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5335 if test "${with_libiconv_prefix+set}" = set; then
5336   withval="$with_libiconv_prefix"
5337
5338     if test "X$withval" = "Xno"; then
5339       use_additional=no
5340     else
5341       if test "X$withval" = "X"; then
5342
5343   acl_save_prefix="$prefix"
5344   prefix="$acl_final_prefix"
5345   acl_save_exec_prefix="$exec_prefix"
5346   exec_prefix="$acl_final_exec_prefix"
5347
5348           eval additional_includedir=\"$includedir\"
5349           eval additional_libdir=\"$libdir\"
5350
5351   exec_prefix="$acl_save_exec_prefix"
5352   prefix="$acl_save_prefix"
5353
5354       else
5355         additional_includedir="$withval/include"
5356         additional_libdir="$withval/lib"
5357       fi
5358     fi
5359
5360 fi;
5361       LIBICONV=
5362   LTLIBICONV=
5363   INCICONV=
5364   rpathdirs=
5365   ltrpathdirs=
5366   names_already_handled=
5367   names_next_round='iconv '
5368   while test -n "$names_next_round"; do
5369     names_this_round="$names_next_round"
5370     names_next_round=
5371     for name in $names_this_round; do
5372       already_handled=
5373       for n in $names_already_handled; do
5374         if test "$n" = "$name"; then
5375           already_handled=yes
5376           break
5377         fi
5378       done
5379       if test -z "$already_handled"; then
5380         names_already_handled="$names_already_handled $name"
5381                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5382         eval value=\"\$HAVE_LIB$uppername\"
5383         if test -n "$value"; then
5384           if test "$value" = yes; then
5385             eval value=\"\$LIB$uppername\"
5386             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5387             eval value=\"\$LTLIB$uppername\"
5388             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5389           else
5390                                     :
5391           fi
5392         else
5393                               found_dir=
5394           found_la=
5395           found_so=
5396           found_a=
5397           if test $use_additional = yes; then
5398             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5399               found_dir="$additional_libdir"
5400               found_so="$additional_libdir/lib$name.$shlibext"
5401               if test -f "$additional_libdir/lib$name.la"; then
5402                 found_la="$additional_libdir/lib$name.la"
5403               fi
5404             else
5405               if test -f "$additional_libdir/lib$name.$libext"; then
5406                 found_dir="$additional_libdir"
5407                 found_a="$additional_libdir/lib$name.$libext"
5408                 if test -f "$additional_libdir/lib$name.la"; then
5409                   found_la="$additional_libdir/lib$name.la"
5410                 fi
5411               fi
5412             fi
5413           fi
5414           if test "X$found_dir" = "X"; then
5415             for x in $LDFLAGS $LTLIBICONV; do
5416
5417   acl_save_prefix="$prefix"
5418   prefix="$acl_final_prefix"
5419   acl_save_exec_prefix="$exec_prefix"
5420   exec_prefix="$acl_final_exec_prefix"
5421   eval x=\"$x\"
5422   exec_prefix="$acl_save_exec_prefix"
5423   prefix="$acl_save_prefix"
5424
5425               case "$x" in
5426                 -L*)
5427                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5428                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5429                     found_dir="$dir"
5430                     found_so="$dir/lib$name.$shlibext"
5431                     if test -f "$dir/lib$name.la"; then
5432                       found_la="$dir/lib$name.la"
5433                     fi
5434                   else
5435                     if test -f "$dir/lib$name.$libext"; then
5436                       found_dir="$dir"
5437                       found_a="$dir/lib$name.$libext"
5438                       if test -f "$dir/lib$name.la"; then
5439                         found_la="$dir/lib$name.la"
5440                       fi
5441                     fi
5442                   fi
5443                   ;;
5444               esac
5445               if test "X$found_dir" != "X"; then
5446                 break
5447               fi
5448             done
5449           fi
5450           if test "X$found_dir" != "X"; then
5451                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5452             if test "X$found_so" != "X"; then
5453                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5454                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5455               else
5456                                                                                 haveit=
5457                 for x in $ltrpathdirs; do
5458                   if test "X$x" = "X$found_dir"; then
5459                     haveit=yes
5460                     break
5461                   fi
5462                 done
5463                 if test -z "$haveit"; then
5464                   ltrpathdirs="$ltrpathdirs $found_dir"
5465                 fi
5466                                 if test "$hardcode_direct" = yes; then
5467                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5468                 else
5469                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5470                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5471                                                             haveit=
5472                     for x in $rpathdirs; do
5473                       if test "X$x" = "X$found_dir"; then
5474                         haveit=yes
5475                         break
5476                       fi
5477                     done
5478                     if test -z "$haveit"; then
5479                       rpathdirs="$rpathdirs $found_dir"
5480                     fi
5481                   else
5482                                                                                 haveit=
5483                     for x in $LDFLAGS $LIBICONV; do
5484
5485   acl_save_prefix="$prefix"
5486   prefix="$acl_final_prefix"
5487   acl_save_exec_prefix="$exec_prefix"
5488   exec_prefix="$acl_final_exec_prefix"
5489   eval x=\"$x\"
5490   exec_prefix="$acl_save_exec_prefix"
5491   prefix="$acl_save_prefix"
5492
5493                       if test "X$x" = "X-L$found_dir"; then
5494                         haveit=yes
5495                         break
5496                       fi
5497                     done
5498                     if test -z "$haveit"; then
5499                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5500                     fi
5501                     if test "$hardcode_minus_L" != no; then
5502                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5503                     else
5504                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5505                     fi
5506                   fi
5507                 fi
5508               fi
5509             else
5510               if test "X$found_a" != "X"; then
5511                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5512               else
5513                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5514               fi
5515             fi
5516                         additional_includedir=
5517             case "$found_dir" in
5518               */lib | */lib/)
5519                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5520                 additional_includedir="$basedir/include"
5521                 ;;
5522             esac
5523             if test "X$additional_includedir" != "X"; then
5524                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5525                 haveit=
5526                 if test "X$additional_includedir" = "X/usr/local/include"; then
5527                   if test -n "$GCC"; then
5528                     case $host_os in
5529                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5530                     esac
5531                   fi
5532                 fi
5533                 if test -z "$haveit"; then
5534                   for x in $CPPFLAGS $INCICONV; do
5535
5536   acl_save_prefix="$prefix"
5537   prefix="$acl_final_prefix"
5538   acl_save_exec_prefix="$exec_prefix"
5539   exec_prefix="$acl_final_exec_prefix"
5540   eval x=\"$x\"
5541   exec_prefix="$acl_save_exec_prefix"
5542   prefix="$acl_save_prefix"
5543
5544                     if test "X$x" = "X-I$additional_includedir"; then
5545                       haveit=yes
5546                       break
5547                     fi
5548                   done
5549                   if test -z "$haveit"; then
5550                     if test -d "$additional_includedir"; then
5551                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5552                     fi
5553                   fi
5554                 fi
5555               fi
5556             fi
5557                         if test -n "$found_la"; then
5558                                                         save_libdir="$libdir"
5559               case "$found_la" in
5560                 */* | *\\*) . "$found_la" ;;
5561                 *) . "./$found_la" ;;
5562               esac
5563               libdir="$save_libdir"
5564                             for dep in $dependency_libs; do
5565                 case "$dep" in
5566                   -L*)
5567                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5568                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5569                       haveit=
5570                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5571                         if test -n "$GCC"; then
5572                           case $host_os in
5573                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5574                           esac
5575                         fi
5576                       fi
5577                       if test -z "$haveit"; then
5578                         haveit=
5579                         for x in $LDFLAGS $LIBICONV; do
5580
5581   acl_save_prefix="$prefix"
5582   prefix="$acl_final_prefix"
5583   acl_save_exec_prefix="$exec_prefix"
5584   exec_prefix="$acl_final_exec_prefix"
5585   eval x=\"$x\"
5586   exec_prefix="$acl_save_exec_prefix"
5587   prefix="$acl_save_prefix"
5588
5589                           if test "X$x" = "X-L$additional_libdir"; then
5590                             haveit=yes
5591                             break
5592                           fi
5593                         done
5594                         if test -z "$haveit"; then
5595                           if test -d "$additional_libdir"; then
5596                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5597                           fi
5598                         fi
5599                         haveit=
5600                         for x in $LDFLAGS $LTLIBICONV; do
5601
5602   acl_save_prefix="$prefix"
5603   prefix="$acl_final_prefix"
5604   acl_save_exec_prefix="$exec_prefix"
5605   exec_prefix="$acl_final_exec_prefix"
5606   eval x=\"$x\"
5607   exec_prefix="$acl_save_exec_prefix"
5608   prefix="$acl_save_prefix"
5609
5610                           if test "X$x" = "X-L$additional_libdir"; then
5611                             haveit=yes
5612                             break
5613                           fi
5614                         done
5615                         if test -z "$haveit"; then
5616                           if test -d "$additional_libdir"; then
5617                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5618                           fi
5619                         fi
5620                       fi
5621                     fi
5622                     ;;
5623                   -R*)
5624                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5625                     if test "$enable_rpath" != no; then
5626                                                                   haveit=
5627                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
5635                       fi
5636                                                                   haveit=
5637                       for x in $ltrpathdirs; do
5638                         if test "X$x" = "X$dir"; then
5639                           haveit=yes
5640                           break
5641                         fi
5642                       done
5643                       if test -z "$haveit"; then
5644                         ltrpathdirs="$ltrpathdirs $dir"
5645                       fi
5646                     fi
5647                     ;;
5648                   -l*)
5649                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5650                     ;;
5651                   *.la)
5652                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5653                     ;;
5654                   *)
5655                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5656                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5657                     ;;
5658                 esac
5659               done
5660             fi
5661           else
5662                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5663             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5664           fi
5665         fi
5666       fi
5667     done
5668   done
5669   if test "X$rpathdirs" != "X"; then
5670     if test -n "$hardcode_libdir_separator"; then
5671                         alldirs=
5672       for found_dir in $rpathdirs; do
5673         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5674       done
5675             acl_save_libdir="$libdir"
5676       libdir="$alldirs"
5677       eval flag=\"$hardcode_libdir_flag_spec\"
5678       libdir="$acl_save_libdir"
5679       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680     else
5681             for found_dir in $rpathdirs; do
5682         acl_save_libdir="$libdir"
5683         libdir="$found_dir"
5684         eval flag=\"$hardcode_libdir_flag_spec\"
5685         libdir="$acl_save_libdir"
5686         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5687       done
5688     fi
5689   fi
5690   if test "X$ltrpathdirs" != "X"; then
5691             for found_dir in $ltrpathdirs; do
5692       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5693     done
5694   fi
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5714 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5715 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   gt_save_CPPFLAGS="$CPPFLAGS"
5719      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5720      gt_save_LIBS="$LIBS"
5721      LIBS="$LIBS -framework CoreFoundation"
5722      cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 #include <CFPreferences.h>
5729 int
5730 main ()
5731 {
5732 CFPreferencesCopyAppValue(NULL, NULL)
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739   (eval $ac_link) 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -z "$ac_c_werror_flag"
5747                          || test ! -s conftest.err'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; } &&
5753          { ac_try='test -s conftest$ac_exeext'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   gt_cv_func_CFPreferencesCopyAppValue=yes
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 gt_cv_func_CFPreferencesCopyAppValue=no
5765 fi
5766 rm -f conftest.err conftest.$ac_objext \
5767       conftest$ac_exeext conftest.$ac_ext
5768      CPPFLAGS="$gt_save_CPPFLAGS"
5769      LIBS="$gt_save_LIBS"
5770 fi
5771 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5772 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5773   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5774
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5777 _ACEOF
5778
5779   fi
5780     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5781 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5782 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   gt_save_CPPFLAGS="$CPPFLAGS"
5786      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5787      gt_save_LIBS="$LIBS"
5788      LIBS="$LIBS -framework CoreFoundation"
5789      cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #include <CFLocale.h>
5796 int
5797 main ()
5798 {
5799 CFLocaleCopyCurrent();
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   gt_cv_func_CFLocaleCopyCurrent=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 gt_cv_func_CFLocaleCopyCurrent=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835      CPPFLAGS="$gt_save_CPPFLAGS"
5836      LIBS="$gt_save_LIBS"
5837 fi
5838 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5839 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5840   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5841
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_CFLOCALECOPYCURRENT 1
5844 _ACEOF
5845
5846   fi
5847   INTL_MACOSX_LIBS=
5848   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5849     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5850   fi
5851
5852
5853
5854
5855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5857     # Check whether --enable-nls or --disable-nls was given.
5858 if test "${enable_nls+set}" = set; then
5859   enableval="$enable_nls"
5860   USE_NLS=$enableval
5861 else
5862   USE_NLS=yes
5863 fi;
5864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5865 echo "${ECHO_T}$USE_NLS" >&6
5866
5867
5868
5869
5870   LIBINTL=
5871   LTLIBINTL=
5872   POSUB=
5873
5874     if test "$USE_NLS" = "yes"; then
5875     gt_use_preinstalled_gnugettext=no
5876
5877
5878
5879
5880
5881
5882         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5883 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5884 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #include <libintl.h>
5894 extern int _nl_msg_cat_cntr;
5895 extern int *_nl_domain_bindings;
5896 int
5897 main ()
5898 {
5899 bindtextdomain ("", "");
5900 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907   (eval $ac_link) 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_c_werror_flag"
5915                          || test ! -s conftest.err'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest$ac_exeext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   gt_cv_func_gnugettext1_libc=yes
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 gt_cv_func_gnugettext1_libc=no
5933 fi
5934 rm -f conftest.err conftest.$ac_objext \
5935       conftest$ac_exeext conftest.$ac_ext
5936 fi
5937 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5938 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5939
5940         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5941
5942
5943
5944
5945
5946           am_save_CPPFLAGS="$CPPFLAGS"
5947
5948   for element in $INCICONV; do
5949     haveit=
5950     for x in $CPPFLAGS; do
5951
5952   acl_save_prefix="$prefix"
5953   prefix="$acl_final_prefix"
5954   acl_save_exec_prefix="$exec_prefix"
5955   exec_prefix="$acl_final_exec_prefix"
5956   eval x=\"$x\"
5957   exec_prefix="$acl_save_exec_prefix"
5958   prefix="$acl_save_prefix"
5959
5960       if test "X$x" = "X$element"; then
5961         haveit=yes
5962         break
5963       fi
5964     done
5965     if test -z "$haveit"; then
5966       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5967     fi
5968   done
5969
5970
5971   echo "$as_me:$LINENO: checking for iconv" >&5
5972 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5973 if test "${am_cv_func_iconv+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976
5977     am_cv_func_iconv="no, consider installing GNU libiconv"
5978     am_cv_lib_iconv=no
5979     cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986 #include <iconv.h>
5987 int
5988 main ()
5989 {
5990 iconv_t cd = iconv_open("","");
5991        iconv(cd,NULL,NULL,NULL,NULL);
5992        iconv_close(cd);
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"
6007                          || test ! -s conftest.err'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; } &&
6013          { ac_try='test -s conftest$ac_exeext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   am_cv_func_iconv=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 fi
6025 rm -f conftest.err conftest.$ac_objext \
6026       conftest$ac_exeext conftest.$ac_ext
6027     if test "$am_cv_func_iconv" != yes; then
6028       am_save_LIBS="$LIBS"
6029       LIBS="$LIBS $LIBICONV"
6030       cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <stdlib.h>
6037 #include <iconv.h>
6038 int
6039 main ()
6040 {
6041 iconv_t cd = iconv_open("","");
6042          iconv(cd,NULL,NULL,NULL,NULL);
6043          iconv_close(cd);
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050   (eval $ac_link) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -z "$ac_c_werror_flag"
6058                          || test ! -s conftest.err'
6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060   (eval $ac_try) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; } &&
6064          { ac_try='test -s conftest$ac_exeext'
6065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066   (eval $ac_try) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); }; }; then
6070   am_cv_lib_iconv=yes
6071         am_cv_func_iconv=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 fi
6077 rm -f conftest.err conftest.$ac_objext \
6078       conftest$ac_exeext conftest.$ac_ext
6079       LIBS="$am_save_LIBS"
6080     fi
6081
6082 fi
6083 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6084 echo "${ECHO_T}$am_cv_func_iconv" >&6
6085   if test "$am_cv_func_iconv" = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ICONV 1
6089 _ACEOF
6090
6091   fi
6092   if test "$am_cv_lib_iconv" = yes; then
6093     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6094 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6095     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6096 echo "${ECHO_T}$LIBICONV" >&6
6097   else
6098             CPPFLAGS="$am_save_CPPFLAGS"
6099     LIBICONV=
6100     LTLIBICONV=
6101   fi
6102
6103
6104
6105
6106
6107
6108     use_additional=yes
6109
6110   acl_save_prefix="$prefix"
6111   prefix="$acl_final_prefix"
6112   acl_save_exec_prefix="$exec_prefix"
6113   exec_prefix="$acl_final_exec_prefix"
6114
6115     eval additional_includedir=\"$includedir\"
6116     eval additional_libdir=\"$libdir\"
6117
6118   exec_prefix="$acl_save_exec_prefix"
6119   prefix="$acl_save_prefix"
6120
6121
6122 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6123 if test "${with_libintl_prefix+set}" = set; then
6124   withval="$with_libintl_prefix"
6125
6126     if test "X$withval" = "Xno"; then
6127       use_additional=no
6128     else
6129       if test "X$withval" = "X"; then
6130
6131   acl_save_prefix="$prefix"
6132   prefix="$acl_final_prefix"
6133   acl_save_exec_prefix="$exec_prefix"
6134   exec_prefix="$acl_final_exec_prefix"
6135
6136           eval additional_includedir=\"$includedir\"
6137           eval additional_libdir=\"$libdir\"
6138
6139   exec_prefix="$acl_save_exec_prefix"
6140   prefix="$acl_save_prefix"
6141
6142       else
6143         additional_includedir="$withval/include"
6144         additional_libdir="$withval/lib"
6145       fi
6146     fi
6147
6148 fi;
6149       LIBINTL=
6150   LTLIBINTL=
6151   INCINTL=
6152   rpathdirs=
6153   ltrpathdirs=
6154   names_already_handled=
6155   names_next_round='intl '
6156   while test -n "$names_next_round"; do
6157     names_this_round="$names_next_round"
6158     names_next_round=
6159     for name in $names_this_round; do
6160       already_handled=
6161       for n in $names_already_handled; do
6162         if test "$n" = "$name"; then
6163           already_handled=yes
6164           break
6165         fi
6166       done
6167       if test -z "$already_handled"; then
6168         names_already_handled="$names_already_handled $name"
6169                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6170         eval value=\"\$HAVE_LIB$uppername\"
6171         if test -n "$value"; then
6172           if test "$value" = yes; then
6173             eval value=\"\$LIB$uppername\"
6174             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6175             eval value=\"\$LTLIB$uppername\"
6176             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6177           else
6178                                     :
6179           fi
6180         else
6181                               found_dir=
6182           found_la=
6183           found_so=
6184           found_a=
6185           if test $use_additional = yes; then
6186             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6187               found_dir="$additional_libdir"
6188               found_so="$additional_libdir/lib$name.$shlibext"
6189               if test -f "$additional_libdir/lib$name.la"; then
6190                 found_la="$additional_libdir/lib$name.la"
6191               fi
6192             else
6193               if test -f "$additional_libdir/lib$name.$libext"; then
6194                 found_dir="$additional_libdir"
6195                 found_a="$additional_libdir/lib$name.$libext"
6196                 if test -f "$additional_libdir/lib$name.la"; then
6197                   found_la="$additional_libdir/lib$name.la"
6198                 fi
6199               fi
6200             fi
6201           fi
6202           if test "X$found_dir" = "X"; then
6203             for x in $LDFLAGS $LTLIBINTL; do
6204
6205   acl_save_prefix="$prefix"
6206   prefix="$acl_final_prefix"
6207   acl_save_exec_prefix="$exec_prefix"
6208   exec_prefix="$acl_final_exec_prefix"
6209   eval x=\"$x\"
6210   exec_prefix="$acl_save_exec_prefix"
6211   prefix="$acl_save_prefix"
6212
6213               case "$x" in
6214                 -L*)
6215                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6216                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6217                     found_dir="$dir"
6218                     found_so="$dir/lib$name.$shlibext"
6219                     if test -f "$dir/lib$name.la"; then
6220                       found_la="$dir/lib$name.la"
6221                     fi
6222                   else
6223                     if test -f "$dir/lib$name.$libext"; then
6224                       found_dir="$dir"
6225                       found_a="$dir/lib$name.$libext"
6226                       if test -f "$dir/lib$name.la"; then
6227                         found_la="$dir/lib$name.la"
6228                       fi
6229                     fi
6230                   fi
6231                   ;;
6232               esac
6233               if test "X$found_dir" != "X"; then
6234                 break
6235               fi
6236             done
6237           fi
6238           if test "X$found_dir" != "X"; then
6239                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6240             if test "X$found_so" != "X"; then
6241                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6242                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6243               else
6244                                                                                 haveit=
6245                 for x in $ltrpathdirs; do
6246                   if test "X$x" = "X$found_dir"; then
6247                     haveit=yes
6248                     break
6249                   fi
6250                 done
6251                 if test -z "$haveit"; then
6252                   ltrpathdirs="$ltrpathdirs $found_dir"
6253                 fi
6254                                 if test "$hardcode_direct" = yes; then
6255                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6256                 else
6257                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6258                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6259                                                             haveit=
6260                     for x in $rpathdirs; do
6261                       if test "X$x" = "X$found_dir"; then
6262                         haveit=yes
6263                         break
6264                       fi
6265                     done
6266                     if test -z "$haveit"; then
6267                       rpathdirs="$rpathdirs $found_dir"
6268                     fi
6269                   else
6270                                                                                 haveit=
6271                     for x in $LDFLAGS $LIBINTL; do
6272
6273   acl_save_prefix="$prefix"
6274   prefix="$acl_final_prefix"
6275   acl_save_exec_prefix="$exec_prefix"
6276   exec_prefix="$acl_final_exec_prefix"
6277   eval x=\"$x\"
6278   exec_prefix="$acl_save_exec_prefix"
6279   prefix="$acl_save_prefix"
6280
6281                       if test "X$x" = "X-L$found_dir"; then
6282                         haveit=yes
6283                         break
6284                       fi
6285                     done
6286                     if test -z "$haveit"; then
6287                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6288                     fi
6289                     if test "$hardcode_minus_L" != no; then
6290                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6291                     else
6292                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6293                     fi
6294                   fi
6295                 fi
6296               fi
6297             else
6298               if test "X$found_a" != "X"; then
6299                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6300               else
6301                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6302               fi
6303             fi
6304                         additional_includedir=
6305             case "$found_dir" in
6306               */lib | */lib/)
6307                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6308                 additional_includedir="$basedir/include"
6309                 ;;
6310             esac
6311             if test "X$additional_includedir" != "X"; then
6312                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6313                 haveit=
6314                 if test "X$additional_includedir" = "X/usr/local/include"; then
6315                   if test -n "$GCC"; then
6316                     case $host_os in
6317                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6318                     esac
6319                   fi
6320                 fi
6321                 if test -z "$haveit"; then
6322                   for x in $CPPFLAGS $INCINTL; do
6323
6324   acl_save_prefix="$prefix"
6325   prefix="$acl_final_prefix"
6326   acl_save_exec_prefix="$exec_prefix"
6327   exec_prefix="$acl_final_exec_prefix"
6328   eval x=\"$x\"
6329   exec_prefix="$acl_save_exec_prefix"
6330   prefix="$acl_save_prefix"
6331
6332                     if test "X$x" = "X-I$additional_includedir"; then
6333                       haveit=yes
6334                       break
6335                     fi
6336                   done
6337                   if test -z "$haveit"; then
6338                     if test -d "$additional_includedir"; then
6339                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6340                     fi
6341                   fi
6342                 fi
6343               fi
6344             fi
6345                         if test -n "$found_la"; then
6346                                                         save_libdir="$libdir"
6347               case "$found_la" in
6348                 */* | *\\*) . "$found_la" ;;
6349                 *) . "./$found_la" ;;
6350               esac
6351               libdir="$save_libdir"
6352                             for dep in $dependency_libs; do
6353                 case "$dep" in
6354                   -L*)
6355                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6356                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6357                       haveit=
6358                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6359                         if test -n "$GCC"; then
6360                           case $host_os in
6361                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6362                           esac
6363                         fi
6364                       fi
6365                       if test -z "$haveit"; then
6366                         haveit=
6367                         for x in $LDFLAGS $LIBINTL; do
6368
6369   acl_save_prefix="$prefix"
6370   prefix="$acl_final_prefix"
6371   acl_save_exec_prefix="$exec_prefix"
6372   exec_prefix="$acl_final_exec_prefix"
6373   eval x=\"$x\"
6374   exec_prefix="$acl_save_exec_prefix"
6375   prefix="$acl_save_prefix"
6376
6377                           if test "X$x" = "X-L$additional_libdir"; then
6378                             haveit=yes
6379                             break
6380                           fi
6381                         done
6382                         if test -z "$haveit"; then
6383                           if test -d "$additional_libdir"; then
6384                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6385                           fi
6386                         fi
6387                         haveit=
6388                         for x in $LDFLAGS $LTLIBINTL; do
6389
6390   acl_save_prefix="$prefix"
6391   prefix="$acl_final_prefix"
6392   acl_save_exec_prefix="$exec_prefix"
6393   exec_prefix="$acl_final_exec_prefix"
6394   eval x=\"$x\"
6395   exec_prefix="$acl_save_exec_prefix"
6396   prefix="$acl_save_prefix"
6397
6398                           if test "X$x" = "X-L$additional_libdir"; then
6399                             haveit=yes
6400                             break
6401                           fi
6402                         done
6403                         if test -z "$haveit"; then
6404                           if test -d "$additional_libdir"; then
6405                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6406                           fi
6407                         fi
6408                       fi
6409                     fi
6410                     ;;
6411                   -R*)
6412                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6413                     if test "$enable_rpath" != no; then
6414                                                                   haveit=
6415                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
6423                       fi
6424                                                                   haveit=
6425                       for x in $ltrpathdirs; do
6426                         if test "X$x" = "X$dir"; then
6427                           haveit=yes
6428                           break
6429                         fi
6430                       done
6431                       if test -z "$haveit"; then
6432                         ltrpathdirs="$ltrpathdirs $dir"
6433                       fi
6434                     fi
6435                     ;;
6436                   -l*)
6437                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6438                     ;;
6439                   *.la)
6440                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6441                     ;;
6442                   *)
6443                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6444                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6445                     ;;
6446                 esac
6447               done
6448             fi
6449           else
6450                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6451             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6452           fi
6453         fi
6454       fi
6455     done
6456   done
6457   if test "X$rpathdirs" != "X"; then
6458     if test -n "$hardcode_libdir_separator"; then
6459                         alldirs=
6460       for found_dir in $rpathdirs; do
6461         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6462       done
6463             acl_save_libdir="$libdir"
6464       libdir="$alldirs"
6465       eval flag=\"$hardcode_libdir_flag_spec\"
6466       libdir="$acl_save_libdir"
6467       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468     else
6469             for found_dir in $rpathdirs; do
6470         acl_save_libdir="$libdir"
6471         libdir="$found_dir"
6472         eval flag=\"$hardcode_libdir_flag_spec\"
6473         libdir="$acl_save_libdir"
6474         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6475       done
6476     fi
6477   fi
6478   if test "X$ltrpathdirs" != "X"; then
6479             for found_dir in $ltrpathdirs; do
6480       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6481     done
6482   fi
6483
6484           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6485 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6486 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   gt_save_CPPFLAGS="$CPPFLAGS"
6490             CPPFLAGS="$CPPFLAGS $INCINTL"
6491             gt_save_LIBS="$LIBS"
6492             LIBS="$LIBS $LIBINTL"
6493                         cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <libintl.h>
6500 extern int _nl_msg_cat_cntr;
6501 extern
6502 #ifdef __cplusplus
6503 "C"
6504 #endif
6505 const char *_nl_expand_alias (const char *);
6506 int
6507 main ()
6508 {
6509 bindtextdomain ("", "");
6510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517   (eval $ac_link) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_c_werror_flag"
6525                          || test ! -s conftest.err'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; } &&
6531          { ac_try='test -s conftest$ac_exeext'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; }; then
6537   gt_cv_func_gnugettext1_libintl=yes
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 gt_cv_func_gnugettext1_libintl=no
6543 fi
6544 rm -f conftest.err conftest.$ac_objext \
6545       conftest$ac_exeext conftest.$ac_ext
6546                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6547               LIBS="$LIBS $LIBICONV"
6548               cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #include <libintl.h>
6555 extern int _nl_msg_cat_cntr;
6556 extern
6557 #ifdef __cplusplus
6558 "C"
6559 #endif
6560 const char *_nl_expand_alias (const char *);
6561 int
6562 main ()
6563 {
6564 bindtextdomain ("", "");
6565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -z "$ac_c_werror_flag"
6580                          || test ! -s conftest.err'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; } &&
6586          { ac_try='test -s conftest$ac_exeext'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   LIBINTL="$LIBINTL $LIBICONV"
6593                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6594                 gt_cv_func_gnugettext1_libintl=yes
6595
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 fi
6601 rm -f conftest.err conftest.$ac_objext \
6602       conftest$ac_exeext conftest.$ac_ext
6603             fi
6604             CPPFLAGS="$gt_save_CPPFLAGS"
6605             LIBS="$gt_save_LIBS"
6606 fi
6607 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6608 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6609         fi
6610
6611                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6612            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6613                 && test "$PACKAGE" != gettext-runtime \
6614                 && test "$PACKAGE" != gettext-tools; }; then
6615           gt_use_preinstalled_gnugettext=yes
6616         else
6617                     LIBINTL=
6618           LTLIBINTL=
6619           INCINTL=
6620         fi
6621
6622
6623
6624     if test -n "$INTL_MACOSX_LIBS"; then
6625       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6628         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6629       fi
6630     fi
6631
6632     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6633        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define ENABLE_NLS 1
6637 _ACEOF
6638
6639     else
6640       USE_NLS=no
6641     fi
6642   fi
6643
6644   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6645 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6646   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6647 echo "${ECHO_T}$USE_NLS" >&6
6648   if test "$USE_NLS" = "yes"; then
6649     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6650 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6651     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6652       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6653         gt_source="external libintl"
6654       else
6655         gt_source="libc"
6656       fi
6657     else
6658       gt_source="included intl directory"
6659     fi
6660     echo "$as_me:$LINENO: result: $gt_source" >&5
6661 echo "${ECHO_T}$gt_source" >&6
6662   fi
6663
6664   if test "$USE_NLS" = "yes"; then
6665
6666     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6667       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6668         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6669 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6670         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6671 echo "${ECHO_T}$LIBINTL" >&6
6672
6673   for element in $INCINTL; do
6674     haveit=
6675     for x in $CPPFLAGS; do
6676
6677   acl_save_prefix="$prefix"
6678   prefix="$acl_final_prefix"
6679   acl_save_exec_prefix="$exec_prefix"
6680   exec_prefix="$acl_final_exec_prefix"
6681   eval x=\"$x\"
6682   exec_prefix="$acl_save_exec_prefix"
6683   prefix="$acl_save_prefix"
6684
6685       if test "X$x" = "X$element"; then
6686         haveit=yes
6687         break
6688       fi
6689     done
6690     if test -z "$haveit"; then
6691       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6692     fi
6693   done
6694
6695       fi
6696
6697
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_GETTEXT 1
6700 _ACEOF
6701
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_DCGETTEXT 1
6705 _ACEOF
6706
6707     fi
6708
6709         POSUB=po
6710   fi
6711
6712
6713
6714     INTLLIBS="$LIBINTL"
6715
6716
6717
6718
6719
6720
6721 if test x${prefix} = xNONE ; then
6722    if test `eval echo ${datadir}` = NONE/share ; then
6723       datadir=/usr/share
6724    fi
6725 fi
6726
6727 # ------------------------------------------------------------------
6728 #  If the user has not set --prefix, we set our default to nothing.
6729 #  In this case, if the user has not set --sysconfdir, we set it
6730 #  to the package default of /etc/bacula.  If either --prefix or
6731 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6732 # ------------------------------------------------------------------
6733 if test x${prefix} = xNONE ; then
6734     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6735         sysconfdir=/etc/bacula
6736     fi
6737     prefix=
6738 fi
6739 sysconfdir=`eval echo ${sysconfdir}`
6740 datadir=`eval echo ${datadir}`
6741 localedir=`eval echo ${datadir}/locale`
6742 cat >>confdefs.h <<_ACEOF
6743 #define LOCALEDIR "$localedir"
6744 _ACEOF
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define SYSCONFDIR "$sysconfdir"
6748 _ACEOF
6749
6750
6751 # -------------------------------------------------------------------------
6752 #  If the user has not set --exec-prefix, we default to ${prefix}
6753 # -------------------------------------------------------------------------
6754 if test x${exec_prefix} = xNONE ; then
6755     exec_prefix=${prefix}
6756 fi
6757
6758 # ------------------------------------------------------------------
6759 # If the user has not set --sbindir, we set our default as /sbin
6760 # ------------------------------------------------------------------
6761 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6762     sbindir=${exec_prefix}/sbin
6763 fi
6764 sbindir=`eval echo ${sbindir}`
6765
6766 # -------------------------------------------------------------------------
6767 #  If the user has not set --mandir, we default to /usr/share/man
6768 # -------------------------------------------------------------------------
6769 if test x$mandir = x'${prefix}/man' ; then
6770    mandir=/usr/share/man
6771 fi
6772
6773
6774 # ------------------------------------------------------------------
6775 # All list of languages for which a translation exist. Each
6776 #  language is separated by a space.
6777 # ------------------------------------------------------------------
6778 ALL_LINGUAS=""
6779
6780 for ac_prog in msgfmt
6781 do
6782   # Extract the first word of "$ac_prog", so it can be a program name with args.
6783 set dummy $ac_prog; ac_word=$2
6784 echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786 if test "${ac_cv_path_MSGFMT+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $MSGFMT in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807
6808   ;;
6809 esac
6810 fi
6811 MSGFMT=$ac_cv_path_MSGFMT
6812
6813 if test -n "$MSGFMT"; then
6814   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6815 echo "${ECHO_T}$MSGFMT" >&6
6816 else
6817   echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6
6819 fi
6820
6821   test -n "$MSGFMT" && break
6822 done
6823 test -n "$MSGFMT" || MSGFMT="no"
6824
6825 if test "$MSGFMT" = "no"
6826 then
6827    echo 'msgfmt program not found, disabling NLS !'
6828    USE_NLS=no
6829    USE_INCLUDED_LIBINTL=no
6830 #else
6831
6832     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6833 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6834 if test "${ac_cv_gnu_library_2+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843
6844 #include <features.h>
6845 #ifdef __GNU_LIBRARY__
6846  #if (__GLIBC__ >= 2)
6847   Lucky GNU user
6848  #endif
6849 #endif
6850
6851 _ACEOF
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6854   ac_cv_gnu_library_2=yes
6855 else
6856   ac_cv_gnu_library_2=no
6857 fi
6858 rm -f conftest*
6859
6860
6861
6862 fi
6863 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6864 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6865
6866     GLIBC2="$ac_cv_gnu_library_2"
6867
6868
6869
6870         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6871 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6872 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   ac_check_lib_save_LIBS=$LIBS
6876 LIBS="-lcposix  $LIBS"
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h.  */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h.  */
6883
6884 /* Override any gcc2 internal prototype to avoid an error.  */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889    builtin and then its argument prototype would still apply.  */
6890 char strerror ();
6891 int
6892 main ()
6893 {
6894 strerror ();
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901   (eval $ac_link) 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } &&
6908          { ac_try='test -z "$ac_c_werror_flag"
6909                          || test ! -s conftest.err'
6910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911   (eval $ac_try) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); }; } &&
6915          { ac_try='test -s conftest$ac_exeext'
6916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917   (eval $ac_try) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; }; then
6921   ac_cv_lib_cposix_strerror=yes
6922 else
6923   echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ac_cv_lib_cposix_strerror=no
6927 fi
6928 rm -f conftest.err conftest.$ac_objext \
6929       conftest$ac_exeext conftest.$ac_ext
6930 LIBS=$ac_check_lib_save_LIBS
6931 fi
6932 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6933 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6934 if test $ac_cv_lib_cposix_strerror = yes; then
6935   LIBS="$LIBS -lcposix"
6936 fi
6937
6938
6939
6940 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6942 if test "${ac_cv_header_stdc+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h.  */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h.  */
6951 #include <stdlib.h>
6952 #include <stdarg.h>
6953 #include <string.h>
6954 #include <float.h>
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966   (eval $ac_compile) 2>conftest.er1
6967   ac_status=$?
6968   grep -v '^ *+' conftest.er1 >conftest.err
6969   rm -f conftest.er1
6970   cat conftest.err >&5
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); } &&
6973          { ac_try='test -z "$ac_c_werror_flag"
6974                          || test ! -s conftest.err'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; } &&
6980          { ac_try='test -s conftest.$ac_objext'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986   ac_cv_header_stdc=yes
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991 ac_cv_header_stdc=no
6992 fi
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994
6995 if test $ac_cv_header_stdc = yes; then
6996   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997   cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 #include <string.h>
7004
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007   $EGREP "memchr" >/dev/null 2>&1; then
7008   :
7009 else
7010   ac_cv_header_stdc=no
7011 fi
7012 rm -f conftest*
7013
7014 fi
7015
7016 if test $ac_cv_header_stdc = yes; then
7017   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7018   cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024 #include <stdlib.h>
7025
7026 _ACEOF
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028   $EGREP "free" >/dev/null 2>&1; then
7029   :
7030 else
7031   ac_cv_header_stdc=no
7032 fi
7033 rm -f conftest*
7034
7035 fi
7036
7037 if test $ac_cv_header_stdc = yes; then
7038   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039   if test "$cross_compiling" = yes; then
7040   :
7041 else
7042   cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048 #include <ctype.h>
7049 #if ((' ' & 0x0FF) == 0x020)
7050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7052 #else
7053 # define ISLOWER(c) \
7054                    (('a' <= (c) && (c) <= 'i') \
7055                      || ('j' <= (c) && (c) <= 'r') \
7056                      || ('s' <= (c) && (c) <= 'z'))
7057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7058 #endif
7059
7060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7061 int
7062 main ()
7063 {
7064   int i;
7065   for (i = 0; i < 256; i++)
7066     if (XOR (islower (i), ISLOWER (i))
7067         || toupper (i) != TOUPPER (i))
7068       exit(2);
7069   exit (0);
7070 }
7071 _ACEOF
7072 rm -f conftest$ac_exeext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074   (eval $ac_link) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   :
7084 else
7085   echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ( exit $ac_status )
7090 ac_cv_header_stdc=no
7091 fi
7092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 fi
7095 fi
7096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7098 if test $ac_cv_header_stdc = yes; then
7099
7100 cat >>confdefs.h <<\_ACEOF
7101 #define STDC_HEADERS 1
7102 _ACEOF
7103
7104 fi
7105
7106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7107 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7108 if test "${ac_cv_c_const+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h.  */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h.  */
7117
7118 int
7119 main ()
7120 {
7121 /* FIXME: Include the comments suggested by Paul. */
7122 #ifndef __cplusplus
7123   /* Ultrix mips cc rejects this.  */
7124   typedef int charset[2];
7125   const charset x;
7126   /* SunOS 4.1.1 cc rejects this.  */
7127   char const *const *ccp;
7128   char **p;
7129   /* NEC SVR4.0.2 mips cc rejects this.  */
7130   struct point {int x, y;};
7131   static struct point const zero = {0,0};
7132   /* AIX XL C 1.02.0.0 rejects this.
7133      It does not let you subtract one const X* pointer from another in
7134      an arm of an if-expression whose if-part is not a constant
7135      expression */
7136   const char *g = "string";
7137   ccp = &g + (g ? g-g : 0);
7138   /* HPUX 7.0 cc rejects these. */
7139   ++ccp;
7140   p = (char**) ccp;
7141   ccp = (char const *const *) p;
7142   { /* SCO 3.2v4 cc rejects this.  */
7143     char *t;
7144     char const *s = 0 ? (char *) 0 : (char const *) 0;
7145
7146     *t++ = 0;
7147   }
7148   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7149     int x[] = {25, 17};
7150     const int *foo = &x[0];
7151     ++foo;
7152   }
7153   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7154     typedef const int *iptr;
7155     iptr p = 0;
7156     ++p;
7157   }
7158   { /* AIX XL C 1.02.0.0 rejects this saying
7159        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7160     struct s { int j; const int *ap[3]; };
7161     struct s *b; b->j = 5;
7162   }
7163   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7164     const int foo = 10;
7165   }
7166 #endif
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174   (eval $ac_compile) 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } &&
7181          { ac_try='test -z "$ac_c_werror_flag"
7182                          || test ! -s conftest.err'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; } &&
7188          { ac_try='test -s conftest.$ac_objext'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; }; then
7194   ac_cv_c_const=yes
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199 ac_cv_c_const=no
7200 fi
7201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202 fi
7203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7204 echo "${ECHO_T}$ac_cv_c_const" >&6
7205 if test $ac_cv_c_const = no; then
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define const
7209 _ACEOF
7210
7211 fi
7212
7213
7214   echo "$as_me:$LINENO: checking for signed" >&5
7215 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7216 if test "${bh_cv_c_signed+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 int
7227 main ()
7228 {
7229 signed char x;
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236   (eval $ac_compile) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_c_werror_flag"
7244                          || test ! -s conftest.err'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; } &&
7250          { ac_try='test -s conftest.$ac_objext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256   bh_cv_c_signed=yes
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 bh_cv_c_signed=no
7262 fi
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7266 echo "${ECHO_T}$bh_cv_c_signed" >&6
7267   if test $bh_cv_c_signed = no; then
7268
7269 cat >>confdefs.h <<\_ACEOF
7270 #define signed
7271 _ACEOF
7272
7273   fi
7274
7275 echo "$as_me:$LINENO: checking for inline" >&5
7276 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7277 if test "${ac_cv_c_inline+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280   ac_cv_c_inline=no
7281 for ac_kw in inline __inline__ __inline; do
7282   cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 #ifndef __cplusplus
7289 typedef int foo_t;
7290 static $ac_kw foo_t static_foo () {return 0; }
7291 $ac_kw foo_t foo () {return 0; }
7292 #endif
7293
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297   (eval $ac_compile) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_c_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest.$ac_objext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317   ac_cv_c_inline=$ac_kw; break
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 fi
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7324 done
7325
7326 fi
7327 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7328 echo "${ECHO_T}$ac_cv_c_inline" >&6
7329
7330
7331 case $ac_cv_c_inline in
7332   inline | yes) ;;
7333   *)
7334     case $ac_cv_c_inline in
7335       no) ac_val=;;
7336       *) ac_val=$ac_cv_c_inline;;
7337     esac
7338     cat >>confdefs.h <<_ACEOF
7339 #ifndef __cplusplus
7340 #define inline $ac_val
7341 #endif
7342 _ACEOF
7343     ;;
7344 esac
7345
7346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7357                   inttypes.h stdint.h unistd.h
7358 do
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 $ac_includes_default
7372
7373 #include <$ac_header>
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377   (eval $ac_compile) 2>conftest.er1
7378   ac_status=$?
7379   grep -v '^ *+' conftest.er1 >conftest.err
7380   rm -f conftest.er1
7381   cat conftest.err >&5
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); } &&
7384          { ac_try='test -z "$ac_c_werror_flag"
7385                          || test ! -s conftest.err'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; } &&
7391          { ac_try='test -s conftest.$ac_objext'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; }; then
7397   eval "$as_ac_Header=yes"
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 eval "$as_ac_Header=no"
7403 fi
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409   cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7411 _ACEOF
7412
7413 fi
7414
7415 done
7416
7417
7418 echo "$as_me:$LINENO: checking for off_t" >&5
7419 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_off_t+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 $ac_includes_default
7430 int
7431 main ()
7432 {
7433 if ((off_t *) 0)
7434   return 0;
7435 if (sizeof (off_t))
7436   return 0;
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443   (eval $ac_compile) 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag"
7451                          || test ! -s conftest.err'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; } &&
7457          { ac_try='test -s conftest.$ac_objext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   ac_cv_type_off_t=yes
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 ac_cv_type_off_t=no
7469 fi
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7473 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7474 if test $ac_cv_type_off_t = yes; then
7475   :
7476 else
7477
7478 cat >>confdefs.h <<_ACEOF
7479 #define off_t long
7480 _ACEOF
7481
7482 fi
7483
7484 echo "$as_me:$LINENO: checking for size_t" >&5
7485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7486 if test "${ac_cv_type_size_t+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h.  */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h.  */
7495 $ac_includes_default
7496 int
7497 main ()
7498 {
7499 if ((size_t *) 0)
7500   return 0;
7501 if (sizeof (size_t))
7502   return 0;
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509   (eval $ac_compile) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } &&
7516          { ac_try='test -z "$ac_c_werror_flag"
7517                          || test ! -s conftest.err'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; } &&
7523          { ac_try='test -s conftest.$ac_objext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_cv_type_size_t=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_type_size_t=no
7535 fi
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7537 fi
7538 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7540 if test $ac_cv_type_size_t = yes; then
7541   :
7542 else
7543
7544 cat >>confdefs.h <<_ACEOF
7545 #define size_t unsigned
7546 _ACEOF
7547
7548 fi
7549
7550
7551   echo "$as_me:$LINENO: checking for long long" >&5
7552 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7553 if test "${ac_cv_type_long_long+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h.  */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h.  */
7562 long long ll = 1LL; int i = 63;
7563 int
7564 main ()
7565 {
7566 long long llmax = (long long) -1;
7567      return ll << i | ll >> i | llmax / ll | llmax % ll;
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574   (eval $ac_link) 2>conftest.er1
7575   ac_status=$?
7576   grep -v '^ *+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } &&
7581          { ac_try='test -z "$ac_c_werror_flag"
7582                          || test ! -s conftest.err'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; } &&
7588          { ac_try='test -s conftest$ac_exeext'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; }; then
7594   ac_cv_type_long_long=yes
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_cv_type_long_long=no
7600 fi
7601 rm -f conftest.err conftest.$ac_objext \
7602       conftest$ac_exeext conftest.$ac_ext
7603 fi
7604 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7605 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7606   if test $ac_cv_type_long_long = yes; then
7607
7608 cat >>confdefs.h <<\_ACEOF
7609 #define HAVE_LONG_LONG 1
7610 _ACEOF
7611
7612   fi
7613
7614
7615   echo "$as_me:$LINENO: checking for long double" >&5
7616 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7617 if test "${gt_cv_c_long_double+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   if test "$GCC" = yes; then
7621        gt_cv_c_long_double=yes
7622      else
7623        cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629
7630          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7631          long double foo = 0.0;
7632          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7633          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7634
7635 int
7636 main ()
7637 {
7638
7639   ;
7640   return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645   (eval $ac_compile) 2>conftest.er1
7646   ac_status=$?
7647   grep -v '^ *+' conftest.er1 >conftest.err
7648   rm -f conftest.er1
7649   cat conftest.err >&5
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); } &&
7652          { ac_try='test -z "$ac_c_werror_flag"
7653                          || test ! -s conftest.err'
7654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655   (eval $ac_try) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; } &&
7659          { ac_try='test -s conftest.$ac_objext'
7660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661   (eval $ac_try) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); }; }; then
7665   gt_cv_c_long_double=yes
7666 else
7667   echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 gt_cv_c_long_double=no
7671 fi
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7673      fi
7674 fi
7675 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7676 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7677   if test $gt_cv_c_long_double = yes; then
7678
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_LONG_DOUBLE 1
7681 _ACEOF
7682
7683   fi
7684
7685
7686   echo "$as_me:$LINENO: checking for wchar_t" >&5
7687 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7688 if test "${gt_cv_c_wchar_t+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 #include <stddef.h>
7698        wchar_t foo = (wchar_t)'\0';
7699 int
7700 main ()
7701 {
7702
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709   (eval $ac_compile) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest.$ac_objext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   gt_cv_c_wchar_t=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 gt_cv_c_wchar_t=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7739 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7740   if test $gt_cv_c_wchar_t = yes; then
7741
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_WCHAR_T 1
7744 _ACEOF
7745
7746   fi
7747
7748
7749   echo "$as_me:$LINENO: checking for wint_t" >&5
7750 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7751 if test "${gt_cv_c_wint_t+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760 #include <wchar.h>
7761        wint_t foo = (wchar_t)'\0';
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772   (eval $ac_compile) 2>conftest.er1
7773   ac_status=$?
7774   grep -v '^ *+' conftest.er1 >conftest.err
7775   rm -f conftest.er1
7776   cat conftest.err >&5
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } &&
7779          { ac_try='test -z "$ac_c_werror_flag"
7780                          || test ! -s conftest.err'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; } &&
7786          { ac_try='test -s conftest.$ac_objext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   gt_cv_c_wint_t=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 gt_cv_c_wint_t=no
7798 fi
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 fi
7801 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7802 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7803   if test $gt_cv_c_wint_t = yes; then
7804
7805 cat >>confdefs.h <<\_ACEOF
7806 #define HAVE_WINT_T 1
7807 _ACEOF
7808
7809   fi
7810
7811
7812   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7813 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7814 if test "${gl_cv_header_inttypes_h+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h.  */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h.  */
7823 #include <sys/types.h>
7824 #include <inttypes.h>
7825 int
7826 main ()
7827 {
7828 uintmax_t i = (uintmax_t) -1;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835   (eval $ac_compile) 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -z "$ac_c_werror_flag"
7843                          || test ! -s conftest.err'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest.$ac_objext'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   gl_cv_header_inttypes_h=yes
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 gl_cv_header_inttypes_h=no
7861 fi
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7865 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7866   if test $gl_cv_header_inttypes_h = yes; then
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7870 _ACEOF
7871
7872   fi
7873
7874
7875   echo "$as_me:$LINENO: checking for stdint.h" >&5
7876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7877 if test "${gl_cv_header_stdint_h+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 #include <sys/types.h>
7887 #include <stdint.h>
7888 int
7889 main ()
7890 {
7891 uintmax_t i = (uintmax_t) -1;
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898   (eval $ac_compile) 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag"
7906                          || test ! -s conftest.err'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest.$ac_objext'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   gl_cv_header_stdint_h=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 gl_cv_header_stdint_h=no
7924 fi
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7928 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7929   if test $gl_cv_header_stdint_h = yes; then
7930
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_STDINT_H_WITH_UINTMAX 1
7933 _ACEOF
7934
7935   fi
7936
7937
7938
7939
7940   echo "$as_me:$LINENO: checking for intmax_t" >&5
7941 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7942 if test "${gt_cv_c_intmax_t+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 #include <stddef.h>
7953 #include <stdlib.h>
7954 #if HAVE_STDINT_H_WITH_UINTMAX
7955 #include <stdint.h>
7956 #endif
7957 #if HAVE_INTTYPES_H_WITH_UINTMAX
7958 #include <inttypes.h>
7959 #endif
7960
7961 int
7962 main ()
7963 {
7964 intmax_t x = -1;
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag"
7979                          || test ! -s conftest.err'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest.$ac_objext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   gt_cv_c_intmax_t=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 gt_cv_c_intmax_t=no
7997 fi
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8001 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8002   if test $gt_cv_c_intmax_t = yes; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_INTMAX_T 1
8006 _ACEOF
8007
8008   fi
8009
8010
8011
8012   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8013 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8014 if test "${gt_cv_func_printf_posix+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017
8018       if test "$cross_compiling" = yes; then
8019
8020         cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026
8027 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8028   notposix
8029 #endif
8030
8031 _ACEOF
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033   $EGREP "notposix" >/dev/null 2>&1; then
8034   gt_cv_func_printf_posix="guessing no"
8035 else
8036   gt_cv_func_printf_posix="guessing yes"
8037 fi
8038 rm -f conftest*
8039
8040
8041 else
8042   cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048
8049 #include <stdio.h>
8050 #include <string.h>
8051 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8052    dollar expansion (possibly an autoconf bug).  */
8053 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8054 static char buf[100];
8055 int main ()
8056 {
8057   sprintf (buf, format, 33, 55);
8058   return (strcmp (buf, "55 33") != 0);
8059 }
8060 _ACEOF
8061 rm -f conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063   (eval $ac_link) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; }; then
8072   gt_cv_func_printf_posix=yes
8073 else
8074   echo "$as_me: program exited with status $ac_status" >&5
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ( exit $ac_status )
8079 gt_cv_func_printf_posix=no
8080 fi
8081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8082 fi
8083
8084 fi
8085 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8086 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8087   case $gt_cv_func_printf_posix in
8088     *yes)
8089
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_POSIX_PRINTF 1
8092 _ACEOF
8093
8094       ;;
8095   esac
8096
8097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8098 # for constant arguments.  Useless!
8099 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8100 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8101 if test "${ac_cv_working_alloca_h+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <alloca.h>
8111 int
8112 main ()
8113 {
8114 char *p = (char *) alloca (2 * sizeof (int));
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag"
8129                          || test ! -s conftest.err'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest$ac_exeext'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   ac_cv_working_alloca_h=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 ac_cv_working_alloca_h=no
8147 fi
8148 rm -f conftest.err conftest.$ac_objext \
8149       conftest$ac_exeext conftest.$ac_ext
8150 fi
8151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8153 if test $ac_cv_working_alloca_h = yes; then
8154
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_ALLOCA_H 1
8157 _ACEOF
8158
8159 fi
8160
8161 echo "$as_me:$LINENO: checking for alloca" >&5
8162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8163 if test "${ac_cv_func_alloca_works+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #ifdef __GNUC__
8173 # define alloca __builtin_alloca
8174 #else
8175 # ifdef _MSC_VER
8176 #  include <malloc.h>
8177 #  define alloca _alloca
8178 # else
8179 #  if HAVE_ALLOCA_H
8180 #   include <alloca.h>
8181 #  else
8182 #   ifdef _AIX
8183  #pragma alloca
8184 #   else
8185 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8186 char *alloca ();
8187 #    endif
8188 #   endif
8189 #  endif
8190 # endif
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196 char *p = (char *) alloca (1);
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203   (eval $ac_link) 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag"
8211                          || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_func_alloca_works=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_func_alloca_works=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext \
8231       conftest$ac_exeext conftest.$ac_ext
8232 fi
8233 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8234 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8235
8236 if test $ac_cv_func_alloca_works = yes; then
8237
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_ALLOCA 1
8240 _ACEOF
8241
8242 else
8243   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8244 # that cause trouble.  Some versions do not even contain alloca or
8245 # contain a buggy version.  If you still want to use their alloca,
8246 # use ar to extract alloca.o from them instead of compiling alloca.c.
8247
8248 ALLOCA=alloca.$ac_objext
8249
8250 cat >>confdefs.h <<\_ACEOF
8251 #define C_ALLOCA 1
8252 _ACEOF
8253
8254
8255 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8256 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8257 if test "${ac_cv_os_cray+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 #if defined(CRAY) && ! defined(CRAY2)
8267 webecray
8268 #else
8269 wenotbecray
8270 #endif
8271
8272 _ACEOF
8273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8274   $EGREP "webecray" >/dev/null 2>&1; then
8275   ac_cv_os_cray=yes
8276 else
8277   ac_cv_os_cray=no
8278 fi
8279 rm -f conftest*
8280
8281 fi
8282 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8283 echo "${ECHO_T}$ac_cv_os_cray" >&6
8284 if test $ac_cv_os_cray = yes; then
8285   for ac_func in _getb67 GETB67 getb67; do
8286     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8287 echo "$as_me:$LINENO: checking for $ac_func" >&5
8288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8289 if eval "test \"\${$as_ac_var+set}\" = set"; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8300 #define $ac_func innocuous_$ac_func
8301
8302 /* System header to define __stub macros and hopefully few prototypes,
8303     which can conflict with char $ac_func (); below.
8304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305     <limits.h> exists even on freestanding compilers.  */
8306
8307 #ifdef __STDC__
8308 # include <limits.h>
8309 #else
8310 # include <assert.h>
8311 #endif
8312
8313 #undef $ac_func
8314
8315 /* Override any gcc2 internal prototype to avoid an error.  */
8316 #ifdef __cplusplus
8317 extern "C"
8318 {
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321    builtin and then its argument prototype would still apply.  */
8322 char $ac_func ();
8323 /* The GNU C library defines this for functions which it implements
8324     to always fail with ENOSYS.  Some functions are actually named
8325     something starting with __ and the normal name is an alias.  */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8327 choke me
8328 #else
8329 char (*f) () = $ac_func;
8330 #endif
8331 #ifdef __cplusplus
8332 }
8333 #endif
8334
8335 int
8336 main ()
8337 {
8338 return f != $ac_func;
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345   (eval $ac_link) 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag"
8353                          || test ! -s conftest.err'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest$ac_exeext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   eval "$as_ac_var=yes"
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 eval "$as_ac_var=no"
8371 fi
8372 rm -f conftest.err conftest.$ac_objext \
8373       conftest$ac_exeext conftest.$ac_ext
8374 fi
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8377 if test `eval echo '${'$as_ac_var'}'` = yes; then
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define CRAY_STACKSEG_END $ac_func
8381 _ACEOF
8382
8383     break
8384 fi
8385
8386   done
8387 fi
8388
8389 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8390 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8391 if test "${ac_cv_c_stack_direction+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   if test "$cross_compiling" = yes; then
8395   ac_cv_c_stack_direction=0
8396 else
8397   cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403 int
8404 find_stack_direction ()
8405 {
8406   static char *addr = 0;
8407   auto char dummy;
8408   if (addr == 0)
8409     {
8410       addr = &dummy;
8411       return find_stack_direction ();
8412     }
8413   else
8414     return (&dummy > addr) ? 1 : -1;
8415 }
8416
8417 int
8418 main ()
8419 {
8420   exit (find_stack_direction () < 0);
8421 }
8422 _ACEOF
8423 rm -f conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425   (eval $ac_link) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   ac_cv_c_stack_direction=1
8435 else
8436   echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ( exit $ac_status )
8441 ac_cv_c_stack_direction=-1
8442 fi
8443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8444 fi
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define STACK_DIRECTION $ac_cv_c_stack_direction
8451 _ACEOF
8452
8453
8454 fi
8455
8456
8457
8458 for ac_header in stdlib.h unistd.h
8459 do
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462   echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 fi
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8469 else
8470   # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479 $ac_includes_default
8480 #include <$ac_header>
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_header_compiler=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_header_compiler=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8514
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524 #include <$ac_header>
8525 _ACEOF
8526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } >/dev/null; then
8534   if test -s conftest.err; then
8535     ac_cpp_err=$ac_c_preproc_warn_flag
8536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537   else
8538     ac_cpp_err=
8539   fi
8540 else
8541   ac_cpp_err=yes
8542 fi
8543 if test -z "$ac_cpp_err"; then
8544   ac_header_preproc=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549   ac_header_preproc=no
8550 fi
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8554
8555 # So?  What about this header?
8556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8557   yes:no: )
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8562     ac_header_preproc=yes
8563     ;;
8564   no:yes:* )
8565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8577     (
8578       cat <<\_ASBOX
8579 ## ------------------------------------------ ##
8580 ## Report this to the AC_PACKAGE_NAME lists.  ##
8581 ## ------------------------------------------ ##
8582 _ASBOX
8583     ) |
8584       sed "s/^/$as_me: WARNING:     /" >&2
8585     ;;
8586 esac
8587 echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   eval "$as_ac_Header=\$ac_header_preproc"
8593 fi
8594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8596
8597 fi
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599   cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 _ACEOF
8602
8603 fi
8604
8605 done
8606
8607
8608 for ac_func in getpagesize
8609 do
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_var+set}\" = set"; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8624 #define $ac_func innocuous_$ac_func
8625
8626 /* System header to define __stub macros and hopefully few prototypes,
8627     which can conflict with char $ac_func (); below.
8628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629     <limits.h> exists even on freestanding compilers.  */
8630
8631 #ifdef __STDC__
8632 # include <limits.h>
8633 #else
8634 # include <assert.h>
8635 #endif
8636
8637 #undef $ac_func
8638
8639 /* Override any gcc2 internal prototype to avoid an error.  */
8640 #ifdef __cplusplus
8641 extern "C"
8642 {
8643 #endif
8644 /* We use char because int might match the return type of a gcc2
8645    builtin and then its argument prototype would still apply.  */
8646 char $ac_func ();
8647 /* The GNU C library defines this for functions which it implements
8648     to always fail with ENOSYS.  Some functions are actually named
8649     something starting with __ and the normal name is an alias.  */
8650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8651 choke me
8652 #else
8653 char (*f) () = $ac_func;
8654 #endif
8655 #ifdef __cplusplus
8656 }
8657 #endif
8658
8659 int
8660 main ()
8661 {
8662 return f != $ac_func;
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669   (eval $ac_link) 2>conftest.er1
8670   ac_status=$?
8671   grep -v '^ *+' conftest.er1 >conftest.err
8672   rm -f conftest.er1
8673   cat conftest.err >&5
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } &&
8676          { ac_try='test -z "$ac_c_werror_flag"
8677                          || test ! -s conftest.err'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest$ac_exeext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   eval "$as_ac_var=yes"
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 eval "$as_ac_var=no"
8695 fi
8696 rm -f conftest.err conftest.$ac_objext \
8697       conftest$ac_exeext conftest.$ac_ext
8698 fi
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8701 if test `eval echo '${'$as_ac_var'}'` = yes; then
8702   cat >>confdefs.h <<_ACEOF
8703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8704 _ACEOF
8705
8706 fi
8707 done
8708
8709 echo "$as_me:$LINENO: checking for working mmap" >&5
8710 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8711 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   if test "$cross_compiling" = yes; then
8715   ac_cv_func_mmap_fixed_mapped=no
8716 else
8717   cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 $ac_includes_default
8724 /* malloc might have been renamed as rpl_malloc. */
8725 #undef malloc
8726
8727 /* Thanks to Mike Haertel and Jim Avera for this test.
8728    Here is a matrix of mmap possibilities:
8729         mmap private not fixed
8730         mmap private fixed at somewhere currently unmapped
8731         mmap private fixed at somewhere already mapped
8732         mmap shared not fixed
8733         mmap shared fixed at somewhere currently unmapped
8734         mmap shared fixed at somewhere already mapped
8735    For private mappings, we should verify that changes cannot be read()
8736    back from the file, nor mmap's back from the file at a different
8737    address.  (There have been systems where private was not correctly
8738    implemented like the infamous i386 svr4.0, and systems where the
8739    VM page cache was not coherent with the file system buffer cache
8740    like early versions of FreeBSD and possibly contemporary NetBSD.)
8741    For shared mappings, we should conversely verify that changes get
8742    propagated back to all the places they're supposed to be.
8743
8744    Grep wants private fixed already mapped.
8745    The main things grep needs to know about mmap are:
8746    * does it exist and is it safe to write into the mmap'd area
8747    * how to use it (BSD variants)  */
8748
8749 #include <fcntl.h>
8750 #include <sys/mman.h>
8751
8752 #if !STDC_HEADERS && !HAVE_STDLIB_H
8753 char *malloc ();
8754 #endif
8755
8756 /* This mess was copied from the GNU getpagesize.h.  */
8757 #if !HAVE_GETPAGESIZE
8758 /* Assume that all systems that can run configure have sys/param.h.  */
8759 # if !HAVE_SYS_PARAM_H
8760 #  define HAVE_SYS_PARAM_H 1
8761 # endif
8762
8763 # ifdef _SC_PAGESIZE
8764 #  define getpagesize() sysconf(_SC_PAGESIZE)
8765 # else /* no _SC_PAGESIZE */
8766 #  if HAVE_SYS_PARAM_H
8767 #   include <sys/param.h>
8768 #   ifdef EXEC_PAGESIZE
8769 #    define getpagesize() EXEC_PAGESIZE
8770 #   else /* no EXEC_PAGESIZE */
8771 #    ifdef NBPG
8772 #     define getpagesize() NBPG * CLSIZE
8773 #     ifndef CLSIZE
8774 #      define CLSIZE 1
8775 #     endif /* no CLSIZE */
8776 #    else /* no NBPG */
8777 #     ifdef NBPC
8778 #      define getpagesize() NBPC
8779 #     else /* no NBPC */
8780 #      ifdef PAGESIZE
8781 #       define getpagesize() PAGESIZE
8782 #      endif /* PAGESIZE */
8783 #     endif /* no NBPC */
8784 #    endif /* no NBPG */
8785 #   endif /* no EXEC_PAGESIZE */
8786 #  else /* no HAVE_SYS_PARAM_H */
8787 #   define getpagesize() 8192   /* punt totally */
8788 #  endif /* no HAVE_SYS_PARAM_H */
8789 # endif /* no _SC_PAGESIZE */
8790
8791 #endif /* no HAVE_GETPAGESIZE */
8792
8793 int
8794 main ()
8795 {
8796   char *data, *data2, *data3;
8797   int i, pagesize;
8798   int fd;
8799
8800   pagesize = getpagesize ();
8801
8802   /* First, make a file with some known garbage in it. */
8803   data = (char *) malloc (pagesize);
8804   if (!data)
8805     exit (1);
8806   for (i = 0; i < pagesize; ++i)
8807     *(data + i) = rand ();
8808   umask (0);
8809   fd = creat ("conftest.mmap", 0600);
8810   if (fd < 0)
8811     exit (1);
8812   if (write (fd, data, pagesize) != pagesize)
8813     exit (1);
8814   close (fd);
8815
8816   /* Next, try to mmap the file at a fixed address which already has
8817      something else allocated at it.  If we can, also make sure that
8818      we see the same garbage.  */
8819   fd = open ("conftest.mmap", O_RDWR);
8820   if (fd < 0)
8821     exit (1);
8822   data2 = (char *) malloc (2 * pagesize);
8823   if (!data2)
8824     exit (1);
8825   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8826   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8827                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8828     exit (1);
8829   for (i = 0; i < pagesize; ++i)
8830     if (*(data + i) != *(data2 + i))
8831       exit (1);
8832
8833   /* Finally, make sure that changes to the mapped area do not
8834      percolate back to the file as seen by read().  (This is a bug on
8835      some variants of i386 svr4.0.)  */
8836   for (i = 0; i < pagesize; ++i)
8837     *(data2 + i) = *(data2 + i) + 1;
8838   data3 = (char *) malloc (pagesize);
8839   if (!data3)
8840     exit (1);
8841   if (read (fd, data3, pagesize) != pagesize)
8842     exit (1);
8843   for (i = 0; i < pagesize; ++i)
8844     if (*(data + i) != *(data3 + i))
8845       exit (1);
8846   close (fd);
8847   exit (0);
8848 }
8849 _ACEOF
8850 rm -f conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852   (eval $ac_link) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; }; then
8861   ac_cv_func_mmap_fixed_mapped=yes
8862 else
8863   echo "$as_me: program exited with status $ac_status" >&5
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ( exit $ac_status )
8868 ac_cv_func_mmap_fixed_mapped=no
8869 fi
8870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_MMAP 1
8879 _ACEOF
8880
8881 fi
8882 rm -f conftest.mmap
8883
8884
8885     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8886 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8887 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 #include <features.h>
8898 #ifdef __GNU_LIBRARY__
8899  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8900   Lucky GNU user
8901  #endif
8902 #endif
8903
8904 _ACEOF
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8907   ac_cv_gnu_library_2_1=yes
8908 else
8909   ac_cv_gnu_library_2_1=no
8910 fi
8911 rm -f conftest*
8912
8913
8914
8915 fi
8916 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8917 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8918
8919     GLIBC21="$ac_cv_gnu_library_2_1"
8920
8921
8922
8923
8924   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8925 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8926 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929
8930       if test "$cross_compiling" = yes; then
8931
8932           # Guess based on the CPU.
8933           case "$host_cpu" in
8934             alpha* | i3456786 | m68k | s390*)
8935               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8936             *)
8937               gt_cv_int_divbyzero_sigfpe="guessing no";;
8938           esac
8939
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947
8948 #include <stdlib.h>
8949 #include <signal.h>
8950
8951 static void
8952 #ifdef __cplusplus
8953 sigfpe_handler (int sig)
8954 #else
8955 sigfpe_handler (sig) int sig;
8956 #endif
8957 {
8958   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
8959   exit (sig != SIGFPE);
8960 }
8961
8962 int x = 1;
8963 int y = 0;
8964 int z;
8965 int nan;
8966
8967 int main ()
8968 {
8969   signal (SIGFPE, sigfpe_handler);
8970 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
8971 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8972   signal (SIGTRAP, sigfpe_handler);
8973 #endif
8974 /* Linux/SPARC yields signal SIGILL.  */
8975 #if defined (__sparc__) && defined (__linux__)
8976   signal (SIGILL, sigfpe_handler);
8977 #endif
8978
8979   z = x / y;
8980   nan = y / y;
8981   exit (1);
8982 }
8983
8984 _ACEOF
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   gt_cv_int_divbyzero_sigfpe=yes
8997 else
8998   echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ( exit $ac_status )
9003 gt_cv_int_divbyzero_sigfpe=no
9004 fi
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9006 fi
9007
9008 fi
9009 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9010 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9011   case "$gt_cv_int_divbyzero_sigfpe" in
9012     *yes) value=1;;
9013     *) value=0;;
9014   esac
9015
9016 cat >>confdefs.h <<_ACEOF
9017 #define INTDIV0_RAISES_SIGFPE $value
9018 _ACEOF
9019
9020
9021
9022   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9023 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9024 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 unsigned long long ull = 1ULL; int i = 63;
9034 int
9035 main ()
9036 {
9037 unsigned long long ullmax = (unsigned long long) -1;
9038      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9039   ;
9040   return 0;
9041 }
9042 _ACEOF
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045   (eval $ac_link) 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -z "$ac_c_werror_flag"
9053                          || test ! -s conftest.err'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; } &&
9059          { ac_try='test -s conftest$ac_exeext'
9060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061   (eval $ac_try) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); }; }; then
9065   ac_cv_type_unsigned_long_long=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ac_cv_type_unsigned_long_long=no
9071 fi
9072 rm -f conftest.err conftest.$ac_objext \
9073       conftest$ac_exeext conftest.$ac_ext
9074 fi
9075 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9076 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9077   if test $ac_cv_type_unsigned_long_long = yes; then
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNSIGNED_LONG_LONG 1
9081 _ACEOF
9082
9083   fi
9084
9085
9086
9087
9088   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9089
9090     test $ac_cv_type_unsigned_long_long = yes \
9091       && ac_type='unsigned long long' \
9092       || ac_type='unsigned long'
9093
9094 cat >>confdefs.h <<_ACEOF
9095 #define uintmax_t $ac_type
9096 _ACEOF
9097
9098   else
9099
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_UINTMAX_T 1
9102 _ACEOF
9103
9104   fi
9105
9106
9107   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9108 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9109 if test "${gt_cv_header_inttypes_h+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112
9113     cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <sys/types.h>
9120 #include <inttypes.h>
9121 int
9122 main ()
9123 {
9124
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131   (eval $ac_compile) 2>conftest.er1
9132   ac_status=$?
9133   grep -v '^ *+' conftest.er1 >conftest.err
9134   rm -f conftest.er1
9135   cat conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } &&
9138          { ac_try='test -z "$ac_c_werror_flag"
9139                          || test ! -s conftest.err'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; } &&
9145          { ac_try='test -s conftest.$ac_objext'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; }; then
9151   gt_cv_header_inttypes_h=yes
9152 else
9153   echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 gt_cv_header_inttypes_h=no
9157 fi
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159
9160 fi
9161 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9162 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9163   if test $gt_cv_header_inttypes_h = yes; then
9164
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_INTTYPES_H 1
9167 _ACEOF
9168
9169   fi
9170
9171
9172
9173   if test $gt_cv_header_inttypes_h = yes; then
9174     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9175 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9176 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179
9180         cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186 #include <inttypes.h>
9187 #ifdef PRId32
9188 char *p = PRId32;
9189 #endif
9190
9191 int
9192 main ()
9193 {
9194
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201   (eval $ac_compile) 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -z "$ac_c_werror_flag"
9209                          || test ! -s conftest.err'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; } &&
9215          { ac_try='test -s conftest.$ac_objext'
9216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217   (eval $ac_try) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); }; }; then
9221   gt_cv_inttypes_pri_broken=no
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 gt_cv_inttypes_pri_broken=yes
9227 fi
9228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9229
9230 fi
9231 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9232 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9233   fi
9234   if test "$gt_cv_inttypes_pri_broken" = yes; then
9235
9236 cat >>confdefs.h <<_ACEOF
9237 #define PRI_MACROS_BROKEN 1
9238 _ACEOF
9239
9240   fi
9241
9242
9243
9244 for ac_header in stdint.h
9245 do
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248   echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 fi
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9255 else
9256   # Is the header compilable?
9257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265 $ac_includes_default
9266 #include <$ac_header>
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270   (eval $ac_compile) 2>conftest.er1
9271   ac_status=$?
9272   grep -v '^ *+' conftest.er1 >conftest.err
9273   rm -f conftest.er1
9274   cat conftest.err >&5
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } &&
9277          { ac_try='test -z "$ac_c_werror_flag"
9278                          || test ! -s conftest.err'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; } &&
9284          { ac_try='test -s conftest.$ac_objext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_header_compiler=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_header_compiler=no
9296 fi
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9300
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310 #include <$ac_header>
9311 _ACEOF
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } >/dev/null; then
9320   if test -s conftest.err; then
9321     ac_cpp_err=$ac_c_preproc_warn_flag
9322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323   else
9324     ac_cpp_err=
9325   fi
9326 else
9327   ac_cpp_err=yes
9328 fi
9329 if test -z "$ac_cpp_err"; then
9330   ac_header_preproc=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335   ac_header_preproc=no
9336 fi
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9340
9341 # So?  What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9343   yes:no: )
9344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348     ac_header_preproc=yes
9349     ;;
9350   no:yes:* )
9351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9363     (
9364       cat <<\_ASBOX
9365 ## ------------------------------------------ ##
9366 ## Report this to the AC_PACKAGE_NAME lists.  ##
9367 ## ------------------------------------------ ##
9368 _ASBOX
9369     ) |
9370       sed "s/^/$as_me: WARNING:     /" >&2
9371     ;;
9372 esac
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   eval "$as_ac_Header=\$ac_header_preproc"
9379 fi
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9382
9383 fi
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385   cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 _ACEOF
9388
9389 fi
9390
9391 done
9392
9393     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9394 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9395   result=
9396   cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h.  */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h.  */
9402
9403 #include <limits.h>
9404 #if HAVE_STDINT_H
9405 #include <stdint.h>
9406 #endif
9407 #ifdef SIZE_MAX
9408 Found it
9409 #endif
9410
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413   $EGREP "Found it" >/dev/null 2>&1; then
9414   result=yes
9415 fi
9416 rm -f conftest*
9417
9418   if test -z "$result"; then
9419                     if test "$cross_compiling" = yes; then
9420   # Depending upon the size, compute the lo and hi bounds.
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 #include <stddef.h>
9428 int
9429 main ()
9430 {
9431 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9432 test_array [0] = 0
9433
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440   (eval $ac_compile) 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -z "$ac_c_werror_flag"
9448                          || test ! -s conftest.err'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; } &&
9454          { ac_try='test -s conftest.$ac_objext'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; }; then
9460   ac_lo=0 ac_mid=0
9461   while :; do
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) <= $ac_mid)];
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_hi=$ac_mid; break
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_lo=`expr $ac_mid + 1`
9507                     if test $ac_lo -le $ac_mid; then
9508                       ac_lo= ac_hi=
9509                       break
9510                     fi
9511                     ac_mid=`expr 2 '*' $ac_mid + 1`
9512 fi
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9514   done
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h.  */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h.  */
9525 #include <stddef.h>
9526 int
9527 main ()
9528 {
9529 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9530 test_array [0] = 0
9531
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538   (eval $ac_compile) 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -z "$ac_c_werror_flag"
9546                          || test ! -s conftest.err'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; } &&
9552          { ac_try='test -s conftest.$ac_objext'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; }; then
9558   ac_hi=-1 ac_mid=-1
9559   while :; do
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) >= $ac_mid)];
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_lo=$ac_mid; break
9600 else
9601   echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_hi=`expr '(' $ac_mid ')' - 1`
9605                        if test $ac_mid -le $ac_hi; then
9606                          ac_lo= ac_hi=
9607                          break
9608                        fi
9609                        ac_mid=`expr 2 '*' $ac_mid`
9610 fi
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612   done
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_lo= ac_hi=
9618 fi
9619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9620 fi
9621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9622 # Binary search between lo and hi bounds.
9623 while test "x$ac_lo" != "x$ac_hi"; do
9624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9625   cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631 #include <stddef.h>
9632 int
9633 main ()
9634 {
9635 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9636 test_array [0] = 0
9637
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644   (eval $ac_compile) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag"
9652                          || test ! -s conftest.err'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest.$ac_objext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_hi=$ac_mid
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_lo=`expr '(' $ac_mid ')' + 1`
9670 fi
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 done
9673 case $ac_lo in
9674 ?*) res_hi=$ac_lo;;
9675 '') result=? ;;
9676 esac
9677 else
9678   if test "$cross_compiling" = yes; then
9679   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9680 See \`config.log' for more details." >&5
9681 echo "$as_me: error: cannot run test program while cross compiling
9682 See \`config.log' for more details." >&2;}
9683    { (exit 1); exit 1; }; }
9684 else
9685   cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691 #include <stddef.h>
9692 long longval () { return ~(size_t)0 / 10; }
9693 unsigned long ulongval () { return ~(size_t)0 / 10; }
9694 #include <stdio.h>
9695 #include <stdlib.h>
9696 int
9697 main ()
9698 {
9699
9700   FILE *f = fopen ("conftest.val", "w");
9701   if (! f)
9702     exit (1);
9703   if ((~(size_t)0 / 10) < 0)
9704     {
9705       long i = longval ();
9706       if (i != (~(size_t)0 / 10))
9707         exit (1);
9708       fprintf (f, "%ld\n", i);
9709     }
9710   else
9711     {
9712       unsigned long i = ulongval ();
9713       if (i != (~(size_t)0 / 10))
9714         exit (1);
9715       fprintf (f, "%lu\n", i);
9716     }
9717   exit (ferror (f) || fclose (f) != 0);
9718
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   res_hi=`cat conftest.val`
9735 else
9736   echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ( exit $ac_status )
9741 result=?
9742 fi
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 fi
9746 rm -f conftest.val
9747     if test "$cross_compiling" = yes; then
9748   # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755 #include <stddef.h>
9756 int
9757 main ()
9758 {
9759 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9760 test_array [0] = 0
9761
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768   (eval $ac_compile) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"
9776                          || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest.$ac_objext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   ac_lo=0 ac_mid=0
9789   while :; do
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) <= $ac_mid)];
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_hi=$ac_mid; break
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_lo=`expr $ac_mid + 1`
9835                     if test $ac_lo -le $ac_mid; then
9836                       ac_lo= ac_hi=
9837                       break
9838                     fi
9839                     ac_mid=`expr 2 '*' $ac_mid + 1`
9840 fi
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9842   done
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h.  */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h.  */
9853 #include <stddef.h>
9854 int
9855 main ()
9856 {
9857 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9858 test_array [0] = 0
9859
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866   (eval $ac_compile) 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag"
9874                          || test ! -s conftest.err'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; } &&
9880          { ac_try='test -s conftest.$ac_objext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_hi=-1 ac_mid=-1
9887   while :; do
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) >= $ac_mid)];
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_lo=$ac_mid; break
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_hi=`expr '(' $ac_mid ')' - 1`
9933                        if test $ac_mid -le $ac_hi; then
9934                          ac_lo= ac_hi=
9935                          break
9936                        fi
9937                        ac_mid=`expr 2 '*' $ac_mid`
9938 fi
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9940   done
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 ac_lo= ac_hi=
9946 fi
9947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9948 fi
9949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953   cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 #include <stddef.h>
9960 int
9961 main ()
9962 {
9963 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9964 test_array [0] = 0
9965
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972   (eval $ac_compile) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"
9980                          || test ! -s conftest.err'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest.$ac_objext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_hi=$ac_mid
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_lo=`expr '(' $ac_mid ')' + 1`
9998 fi
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 done
10001 case $ac_lo in
10002 ?*) res_lo=$ac_lo;;
10003 '') result=? ;;
10004 esac
10005 else
10006   if test "$cross_compiling" = yes; then
10007   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10008 See \`config.log' for more details." >&5
10009 echo "$as_me: error: cannot run test program while cross compiling
10010 See \`config.log' for more details." >&2;}
10011    { (exit 1); exit 1; }; }
10012 else
10013   cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019 #include <stddef.h>
10020 long longval () { return ~(size_t)0 % 10; }
10021 unsigned long ulongval () { return ~(size_t)0 % 10; }
10022 #include <stdio.h>
10023 #include <stdlib.h>
10024 int
10025 main ()
10026 {
10027
10028   FILE *f = fopen ("conftest.val", "w");
10029   if (! f)
10030     exit (1);
10031   if ((~(size_t)0 % 10) < 0)
10032     {
10033       long i = longval ();
10034       if (i != (~(size_t)0 % 10))
10035         exit (1);
10036       fprintf (f, "%ld\n", i);
10037     }
10038   else
10039     {
10040       unsigned long i = ulongval ();
10041       if (i != (~(size_t)0 % 10))
10042         exit (1);
10043       fprintf (f, "%lu\n", i);
10044     }
10045   exit (ferror (f) || fclose (f) != 0);
10046
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053   (eval $ac_link) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   res_lo=`cat conftest.val`
10063 else
10064   echo "$as_me: program exited with status $ac_status" >&5
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ( exit $ac_status )
10069 result=?
10070 fi
10071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 fi
10074 rm -f conftest.val
10075     if test "$cross_compiling" = yes; then
10076   # Depending upon the size, compute the lo and hi bounds.
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 #include <stddef.h>
10084 int
10085 main ()
10086 {
10087 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10088 test_array [0] = 0
10089
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096   (eval $ac_compile) 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -z "$ac_c_werror_flag"
10104                          || test ! -s conftest.err'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; } &&
10110          { ac_try='test -s conftest.$ac_objext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_lo=0 ac_mid=0
10117   while :; do
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)) <= $ac_mid)];
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_hi=$ac_mid; break
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_lo=`expr $ac_mid + 1`
10163                     if test $ac_lo -le $ac_mid; then
10164                       ac_lo= ac_hi=
10165                       break
10166                     fi
10167                     ac_mid=`expr 2 '*' $ac_mid + 1`
10168 fi
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170   done
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181 #include <stddef.h>
10182 int
10183 main ()
10184 {
10185 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10186 test_array [0] = 0
10187
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194   (eval $ac_compile) 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -z "$ac_c_werror_flag"
10202                          || test ! -s conftest.err'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest.$ac_objext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_hi=-1 ac_mid=-1
10215   while :; do
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)) >= $ac_mid)];
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_lo=$ac_mid; break
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_hi=`expr '(' $ac_mid ')' - 1`
10261                        if test $ac_mid -le $ac_hi; then
10262                          ac_lo= ac_hi=
10263                          break
10264                        fi
10265                        ac_mid=`expr 2 '*' $ac_mid`
10266 fi
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10268   done
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 ac_lo= ac_hi=
10274 fi
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10276 fi
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 # Binary search between lo and hi bounds.
10279 while test "x$ac_lo" != "x$ac_hi"; do
10280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10281   cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h.  */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h.  */
10287 #include <stddef.h>
10288 int
10289 main ()
10290 {
10291 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10292 test_array [0] = 0
10293
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300   (eval $ac_compile) 2>conftest.er1
10301   ac_status=$?
10302   grep -v '^ *+' conftest.er1 >conftest.err
10303   rm -f conftest.er1
10304   cat conftest.err >&5
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } &&
10307          { ac_try='test -z "$ac_c_werror_flag"
10308                          || test ! -s conftest.err'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; } &&
10314          { ac_try='test -s conftest.$ac_objext'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_hi=$ac_mid
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10326 fi
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10328 done
10329 case $ac_lo in
10330 ?*) fits_in_uint=$ac_lo;;
10331 '') result=? ;;
10332 esac
10333 else
10334   if test "$cross_compiling" = yes; then
10335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10336 See \`config.log' for more details." >&5
10337 echo "$as_me: error: cannot run test program while cross compiling
10338 See \`config.log' for more details." >&2;}
10339    { (exit 1); exit 1; }; }
10340 else
10341   cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347 #include <stddef.h>
10348 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10350 #include <stdio.h>
10351 #include <stdlib.h>
10352 int
10353 main ()
10354 {
10355
10356   FILE *f = fopen ("conftest.val", "w");
10357   if (! f)
10358     exit (1);
10359   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10360     {
10361       long i = longval ();
10362       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10363         exit (1);
10364       fprintf (f, "%ld\n", i);
10365     }
10366   else
10367     {
10368       unsigned long i = ulongval ();
10369       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10370         exit (1);
10371       fprintf (f, "%lu\n", i);
10372     }
10373   exit (ferror (f) || fclose (f) != 0);
10374
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381   (eval $ac_link) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386   (eval $ac_try) 2>&5
10387   ac_status=$?
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); }; }; then
10390   fits_in_uint=`cat conftest.val`
10391 else
10392   echo "$as_me: program exited with status $ac_status" >&5
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 ( exit $ac_status )
10397 result=?
10398 fi
10399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10400 fi
10401 fi
10402 rm -f conftest.val
10403     if test "$fits_in_uint" = 1; then
10404                   cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 #include <stddef.h>
10411         extern size_t foo;
10412         extern unsigned long foo;
10413
10414 int
10415 main ()
10416 {
10417
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424   (eval $ac_compile) 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } &&
10431          { ac_try='test -z "$ac_c_werror_flag"
10432                          || test ! -s conftest.err'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; } &&
10438          { ac_try='test -s conftest.$ac_objext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   fits_in_uint=0
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 fi
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451     fi
10452     if test -z "$result"; then
10453       if test "$fits_in_uint" = 1; then
10454         result="$res_hi$res_lo"U
10455       else
10456         result="$res_hi$res_lo"UL
10457       fi
10458     else
10459             result='~(size_t)0'
10460     fi
10461   fi
10462   echo "$as_me:$LINENO: result: $result" >&5
10463 echo "${ECHO_T}$result" >&6
10464   if test "$result" != yes; then
10465
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZE_MAX $result
10468 _ACEOF
10469
10470   fi
10471
10472
10473
10474
10475
10476 for ac_header in stdint.h
10477 do
10478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10480   echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 fi
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10487 else
10488   # Is the header compilable?
10489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 $ac_includes_default
10498 #include <$ac_header>
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502   (eval $ac_compile) 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag"
10510                          || test ! -s conftest.err'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; } &&
10516          { ac_try='test -s conftest.$ac_objext'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; }; then
10522   ac_header_compiler=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_header_compiler=no
10528 fi
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6
10532
10533 # Is the header present?
10534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 #include <$ac_header>
10543 _ACEOF
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10546   ac_status=$?
10547   grep -v '^ *+' conftest.er1 >conftest.err
10548   rm -f conftest.er1
10549   cat conftest.err >&5
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } >/dev/null; then
10552   if test -s conftest.err; then
10553     ac_cpp_err=$ac_c_preproc_warn_flag
10554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10555   else
10556     ac_cpp_err=
10557   fi
10558 else
10559   ac_cpp_err=yes
10560 fi
10561 if test -z "$ac_cpp_err"; then
10562   ac_header_preproc=yes
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567   ac_header_preproc=no
10568 fi
10569 rm -f conftest.err conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10571 echo "${ECHO_T}$ac_header_preproc" >&6
10572
10573 # So?  What about this header?
10574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10575   yes:no: )
10576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10580     ac_header_preproc=yes
10581     ;;
10582   no:yes:* )
10583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10595     (
10596       cat <<\_ASBOX
10597 ## ------------------------------------------ ##
10598 ## Report this to the AC_PACKAGE_NAME lists.  ##
10599 ## ------------------------------------------ ##
10600 _ASBOX
10601     ) |
10602       sed "s/^/$as_me: WARNING:     /" >&2
10603     ;;
10604 esac
10605 echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   eval "$as_ac_Header=\$ac_header_preproc"
10611 fi
10612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10614
10615 fi
10616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617   cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10619 _ACEOF
10620
10621 fi
10622
10623 done
10624
10625
10626
10627
10628
10629
10630
10631
10632   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10633 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10634 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 $ac_includes_default
10644 int
10645 main ()
10646 {
10647 if ((ptrdiff_t *) 0)
10648   return 0;
10649 if (sizeof (ptrdiff_t))
10650   return 0;
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657   (eval $ac_compile) 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -z "$ac_c_werror_flag"
10665                          || test ! -s conftest.err'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_type_ptrdiff_t=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_cv_type_ptrdiff_t=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10688 if test $ac_cv_type_ptrdiff_t = yes; then
10689   :
10690 else
10691
10692 cat >>confdefs.h <<\_ACEOF
10693 #define ptrdiff_t long
10694 _ACEOF
10695
10696
10697 fi
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10710 stdlib.h string.h unistd.h sys/param.h
10711 do
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714   echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 fi
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10721 else
10722   # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731 $ac_includes_default
10732 #include <$ac_header>
10733 _ACEOF
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736   (eval $ac_compile) 2>conftest.er1
10737   ac_status=$?
10738   grep -v '^ *+' conftest.er1 >conftest.err
10739   rm -f conftest.er1
10740   cat conftest.err >&5
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } &&
10743          { ac_try='test -z "$ac_c_werror_flag"
10744                          || test ! -s conftest.err'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; } &&
10750          { ac_try='test -s conftest.$ac_objext'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; }; then
10756   ac_header_compiler=yes
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761 ac_header_compiler=no
10762 fi
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10766
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <$ac_header>
10777 _ACEOF
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } >/dev/null; then
10786   if test -s conftest.err; then
10787     ac_cpp_err=$ac_c_preproc_warn_flag
10788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789   else
10790     ac_cpp_err=
10791   fi
10792 else
10793   ac_cpp_err=yes
10794 fi
10795 if test -z "$ac_cpp_err"; then
10796   ac_header_preproc=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801   ac_header_preproc=no
10802 fi
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10806
10807 # So?  What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809   yes:no: )
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814     ac_header_preproc=yes
10815     ;;
10816   no:yes:* )
10817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829     (
10830       cat <<\_ASBOX
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists.  ##
10833 ## ------------------------------------------ ##
10834 _ASBOX
10835     ) |
10836       sed "s/^/$as_me: WARNING:     /" >&2
10837     ;;
10838 esac
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   eval "$as_ac_Header=\$ac_header_preproc"
10845 fi
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10848
10849 fi
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851   cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853 _ACEOF
10854
10855 fi
10856
10857 done
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10883 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10884 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10885 __fsetlocking
10886 do
10887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 echo "$as_me:$LINENO: checking for $ac_func" >&5
10889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10890 if eval "test \"\${$as_ac_var+set}\" = set"; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10901 #define $ac_func innocuous_$ac_func
10902
10903 /* System header to define __stub macros and hopefully few prototypes,
10904     which can conflict with char $ac_func (); below.
10905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906     <limits.h> exists even on freestanding compilers.  */
10907
10908 #ifdef __STDC__
10909 # include <limits.h>
10910 #else
10911 # include <assert.h>
10912 #endif
10913
10914 #undef $ac_func
10915
10916 /* Override any gcc2 internal prototype to avoid an error.  */
10917 #ifdef __cplusplus
10918 extern "C"
10919 {
10920 #endif
10921 /* We use char because int might match the return type of a gcc2
10922    builtin and then its argument prototype would still apply.  */
10923 char $ac_func ();
10924 /* The GNU C library defines this for functions which it implements
10925     to always fail with ENOSYS.  Some functions are actually named
10926     something starting with __ and the normal name is an alias.  */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10928 choke me
10929 #else
10930 char (*f) () = $ac_func;
10931 #endif
10932 #ifdef __cplusplus
10933 }
10934 #endif
10935
10936 int
10937 main ()
10938 {
10939 return f != $ac_func;
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946   (eval $ac_link) 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } &&
10953          { ac_try='test -z "$ac_c_werror_flag"
10954                          || test ! -s conftest.err'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest$ac_exeext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   eval "$as_ac_var=yes"
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 eval "$as_ac_var=no"
10972 fi
10973 rm -f conftest.err conftest.$ac_objext \
10974       conftest$ac_exeext conftest.$ac_ext
10975 fi
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979   cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10981 _ACEOF
10982
10983 fi
10984 done
10985
10986
10987
10988   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10989 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10990 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 #include <stdio.h>
11000 int
11001 main ()
11002 {
11003
11004 #ifndef _snprintf
11005   char *p = (char *) _snprintf;
11006 #endif
11007
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014   (eval $ac_compile) 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } &&
11021          { ac_try='test -z "$ac_c_werror_flag"
11022                          || test ! -s conftest.err'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; } &&
11028          { ac_try='test -s conftest.$ac_objext'
11029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030   (eval $ac_try) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; }; then
11034   ac_cv_have_decl__snprintf=yes
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 ac_cv_have_decl__snprintf=no
11040 fi
11041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11044 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11045   if test $ac_cv_have_decl__snprintf = yes; then
11046     gt_value=1
11047   else
11048     gt_value=0
11049   fi
11050
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_DECL__SNPRINTF $gt_value
11053 _ACEOF
11054
11055
11056
11057   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11058 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11059 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 #include <stdio.h>
11069 int
11070 main ()
11071 {
11072
11073 #ifndef _snwprintf
11074   char *p = (char *) _snwprintf;
11075 #endif
11076
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083   (eval $ac_compile) 2>conftest.er1
11084   ac_status=$?
11085   grep -v '^ *+' conftest.er1 >conftest.err
11086   rm -f conftest.er1
11087   cat conftest.err >&5
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } &&
11090          { ac_try='test -z "$ac_c_werror_flag"
11091                          || test ! -s conftest.err'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; } &&
11097          { ac_try='test -s conftest.$ac_objext'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; }; then
11103   ac_cv_have_decl__snwprintf=yes
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ac_cv_have_decl__snwprintf=no
11109 fi
11110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11111 fi
11112 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11113 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11114   if test $ac_cv_have_decl__snwprintf = yes; then
11115     gt_value=1
11116   else
11117     gt_value=0
11118   fi
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_DECL__SNWPRINTF $gt_value
11122 _ACEOF
11123
11124
11125
11126
11127   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11128 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11129 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <stdio.h>
11139 int
11140 main ()
11141 {
11142
11143 #ifndef feof_unlocked
11144   char *p = (char *) feof_unlocked;
11145 #endif
11146
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag"
11161                          || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   ac_cv_have_decl_feof_unlocked=yes
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_cv_have_decl_feof_unlocked=no
11179 fi
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181 fi
11182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11183 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11184   if test $ac_cv_have_decl_feof_unlocked = yes; then
11185     gt_value=1
11186   else
11187     gt_value=0
11188   fi
11189
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11192 _ACEOF
11193
11194
11195
11196   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11197 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11198 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11199   echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201   cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h.  */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h.  */
11207 #include <stdio.h>
11208 int
11209 main ()
11210 {
11211
11212 #ifndef fgets_unlocked
11213   char *p = (char *) fgets_unlocked;
11214 #endif
11215
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222   (eval $ac_compile) 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } &&
11229          { ac_try='test -z "$ac_c_werror_flag"
11230                          || test ! -s conftest.err'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; } &&
11236          { ac_try='test -s conftest.$ac_objext'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; }; then
11242   ac_cv_have_decl_fgets_unlocked=yes
11243 else
11244   echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 ac_cv_have_decl_fgets_unlocked=no
11248 fi
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11250 fi
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11253   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11254     gt_value=1
11255   else
11256     gt_value=0
11257   fi
11258
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11261 _ACEOF
11262
11263
11264
11265   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11266 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h.  */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h.  */
11276 #include <stdio.h>
11277 int
11278 main ()
11279 {
11280
11281 #ifndef getc_unlocked
11282   char *p = (char *) getc_unlocked;
11283 #endif
11284
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291   (eval $ac_compile) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"
11299                          || test ! -s conftest.err'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; } &&
11305          { ac_try='test -s conftest.$ac_objext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   ac_cv_have_decl_getc_unlocked=yes
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 ac_cv_have_decl_getc_unlocked=no
11317 fi
11318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11319 fi
11320 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11321 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11322   if test $ac_cv_have_decl_getc_unlocked = yes; then
11323     gt_value=1
11324   else
11325     gt_value=0
11326   fi
11327
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11330 _ACEOF
11331
11332
11333
11334   case $gt_cv_func_printf_posix in
11335     *yes) HAVE_POSIX_PRINTF=1 ;;
11336     *) HAVE_POSIX_PRINTF=0 ;;
11337   esac
11338
11339   if test "$ac_cv_func_asprintf" = yes; then
11340     HAVE_ASPRINTF=1
11341   else
11342     HAVE_ASPRINTF=0
11343   fi
11344
11345   if test "$ac_cv_func_snprintf" = yes; then
11346     HAVE_SNPRINTF=1
11347   else
11348     HAVE_SNPRINTF=0
11349   fi
11350
11351   if test "$ac_cv_func_wprintf" = yes; then
11352     HAVE_WPRINTF=1
11353   else
11354     HAVE_WPRINTF=0
11355   fi
11356
11357
11358
11359
11360
11361
11362
11363           am_save_CPPFLAGS="$CPPFLAGS"
11364
11365   for element in $INCICONV; do
11366     haveit=
11367     for x in $CPPFLAGS; do
11368
11369   acl_save_prefix="$prefix"
11370   prefix="$acl_final_prefix"
11371   acl_save_exec_prefix="$exec_prefix"
11372   exec_prefix="$acl_final_exec_prefix"
11373   eval x=\"$x\"
11374   exec_prefix="$acl_save_exec_prefix"
11375   prefix="$acl_save_prefix"
11376
11377       if test "X$x" = "X$element"; then
11378         haveit=yes
11379         break
11380       fi
11381     done
11382     if test -z "$haveit"; then
11383       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11384     fi
11385   done
11386
11387
11388   echo "$as_me:$LINENO: checking for iconv" >&5
11389 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11390 if test "${am_cv_func_iconv+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393
11394     am_cv_func_iconv="no, consider installing GNU libiconv"
11395     am_cv_lib_iconv=no
11396     cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 #include <stdlib.h>
11403 #include <iconv.h>
11404 int
11405 main ()
11406 {
11407 iconv_t cd = iconv_open("","");
11408        iconv(cd,NULL,NULL,NULL,NULL);
11409        iconv_close(cd);
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416   (eval $ac_link) 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag"
11424                          || test ! -s conftest.err'
11425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426   (eval $ac_try) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   am_cv_func_iconv=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 fi
11442 rm -f conftest.err conftest.$ac_objext \
11443       conftest$ac_exeext conftest.$ac_ext
11444     if test "$am_cv_func_iconv" != yes; then
11445       am_save_LIBS="$LIBS"
11446       LIBS="$LIBS $LIBICONV"
11447       cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 #include <stdlib.h>
11454 #include <iconv.h>
11455 int
11456 main ()
11457 {
11458 iconv_t cd = iconv_open("","");
11459          iconv(cd,NULL,NULL,NULL,NULL);
11460          iconv_close(cd);
11461   ;
11462   return 0;
11463 }
11464 _ACEOF
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467   (eval $ac_link) 2>conftest.er1
11468   ac_status=$?
11469   grep -v '^ *+' conftest.er1 >conftest.err
11470   rm -f conftest.er1
11471   cat conftest.err >&5
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } &&
11474          { ac_try='test -z "$ac_c_werror_flag"
11475                          || test ! -s conftest.err'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; } &&
11481          { ac_try='test -s conftest$ac_exeext'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; }; then
11487   am_cv_lib_iconv=yes
11488         am_cv_func_iconv=yes
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 fi
11494 rm -f conftest.err conftest.$ac_objext \
11495       conftest$ac_exeext conftest.$ac_ext
11496       LIBS="$am_save_LIBS"
11497     fi
11498
11499 fi
11500 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11501 echo "${ECHO_T}$am_cv_func_iconv" >&6
11502   if test "$am_cv_func_iconv" = yes; then
11503
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_ICONV 1
11506 _ACEOF
11507
11508   fi
11509   if test "$am_cv_lib_iconv" = yes; then
11510     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11511 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11512     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11513 echo "${ECHO_T}$LIBICONV" >&6
11514   else
11515             CPPFLAGS="$am_save_CPPFLAGS"
11516     LIBICONV=
11517     LTLIBICONV=
11518   fi
11519
11520
11521
11522   if test "$am_cv_func_iconv" = yes; then
11523     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11524 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11525     if test "${am_cv_proto_iconv+set}" = set; then
11526   echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528
11529       cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535
11536 #include <stdlib.h>
11537 #include <iconv.h>
11538 extern
11539 #ifdef __cplusplus
11540 "C"
11541 #endif
11542 #if defined(__STDC__) || defined(__cplusplus)
11543 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11544 #else
11545 size_t iconv();
11546 #endif
11547
11548 int
11549 main ()
11550 {
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558   (eval $ac_compile) 2>conftest.er1
11559   ac_status=$?
11560   grep -v '^ *+' conftest.er1 >conftest.err
11561   rm -f conftest.er1
11562   cat conftest.err >&5
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); } &&
11565          { ac_try='test -z "$ac_c_werror_flag"
11566                          || test ! -s conftest.err'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; } &&
11572          { ac_try='test -s conftest.$ac_objext'
11573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574   (eval $ac_try) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); }; }; then
11578   am_cv_proto_iconv_arg1=""
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 am_cv_proto_iconv_arg1="const"
11584 fi
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586       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);"
11587 fi
11588
11589     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11590     echo "$as_me:$LINENO: result: ${ac_t:-
11591          }$am_cv_proto_iconv" >&5
11592 echo "${ECHO_T}${ac_t:-
11593          }$am_cv_proto_iconv" >&6
11594
11595 cat >>confdefs.h <<_ACEOF
11596 #define ICONV_CONST $am_cv_proto_iconv_arg1
11597 _ACEOF
11598
11599   fi
11600
11601
11602   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11603 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11604 if test "${am_cv_langinfo_codeset+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613 #include <langinfo.h>
11614 int
11615 main ()
11616 {
11617 char* cs = nl_langinfo(CODESET);
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624   (eval $ac_link) 2>conftest.er1
11625   ac_status=$?
11626   grep -v '^ *+' conftest.er1 >conftest.err
11627   rm -f conftest.er1
11628   cat conftest.err >&5
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -z "$ac_c_werror_flag"
11632                          || test ! -s conftest.err'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; } &&
11638          { ac_try='test -s conftest$ac_exeext'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   am_cv_langinfo_codeset=yes
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 am_cv_langinfo_codeset=no
11650 fi
11651 rm -f conftest.err conftest.$ac_objext \
11652       conftest$ac_exeext conftest.$ac_ext
11653
11654 fi
11655 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11656 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11657   if test $am_cv_langinfo_codeset = yes; then
11658
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_LANGINFO_CODESET 1
11661 _ACEOF
11662
11663   fi
11664
11665   if test $ac_cv_header_locale_h = yes; then
11666
11667   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11668 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11669 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 #include <locale.h>
11679 int
11680 main ()
11681 {
11682 return LC_MESSAGES
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689   (eval $ac_link) 2>conftest.er1
11690   ac_status=$?
11691   grep -v '^ *+' conftest.er1 >conftest.err
11692   rm -f conftest.er1
11693   cat conftest.err >&5
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -z "$ac_c_werror_flag"
11697                          || test ! -s conftest.err'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; } &&
11703          { ac_try='test -s conftest$ac_exeext'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; }; then
11709   gt_cv_val_LC_MESSAGES=yes
11710 else
11711   echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 gt_cv_val_LC_MESSAGES=no
11715 fi
11716 rm -f conftest.err conftest.$ac_objext \
11717       conftest$ac_exeext conftest.$ac_ext
11718 fi
11719 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11720 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11721   if test $gt_cv_val_LC_MESSAGES = yes; then
11722
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_LC_MESSAGES 1
11725 _ACEOF
11726
11727   fi
11728
11729   fi
11730
11731   if test -n "$INTL_MACOSX_LIBS"; then
11732     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11733   fi
11734
11735                       for ac_prog in bison
11736 do
11737   # Extract the first word of "$ac_prog", so it can be a program name with args.
11738 set dummy $ac_prog; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   if test -n "$INTLBISON"; then
11745   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11746 else
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752   for ac_exec_ext in '' $ac_executable_extensions; do
11753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     ac_cv_prog_INTLBISON="$ac_prog"
11755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759 done
11760
11761 fi
11762 fi
11763 INTLBISON=$ac_cv_prog_INTLBISON
11764 if test -n "$INTLBISON"; then
11765   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11766 echo "${ECHO_T}$INTLBISON" >&6
11767 else
11768   echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11770 fi
11771
11772   test -n "$INTLBISON" && break
11773 done
11774
11775   if test -z "$INTLBISON"; then
11776     ac_verc_fail=yes
11777   else
11778         echo "$as_me:$LINENO: checking version of bison" >&5
11779 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11780     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11781     case $ac_prog_version in
11782       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11783       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11784          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11785       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11786     esac
11787     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11788 echo "${ECHO_T}$ac_prog_version" >&6
11789   fi
11790   if test $ac_verc_fail = yes; then
11791     INTLBISON=:
11792   fi
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11810 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11811 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   gt_save_CPPFLAGS="$CPPFLAGS"
11815      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11816      gt_save_LIBS="$LIBS"
11817      LIBS="$LIBS -framework CoreFoundation"
11818      cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <CFPreferences.h>
11825 int
11826 main ()
11827 {
11828 CFPreferencesCopyAppValue(NULL, NULL)
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835   (eval $ac_link) 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_c_werror_flag"
11843                          || test ! -s conftest.err'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; } &&
11849          { ac_try='test -s conftest$ac_exeext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   gt_cv_func_CFPreferencesCopyAppValue=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 gt_cv_func_CFPreferencesCopyAppValue=no
11861 fi
11862 rm -f conftest.err conftest.$ac_objext \
11863       conftest$ac_exeext conftest.$ac_ext
11864      CPPFLAGS="$gt_save_CPPFLAGS"
11865      LIBS="$gt_save_LIBS"
11866 fi
11867 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11868 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11869   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11870
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11873 _ACEOF
11874
11875   fi
11876     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11877 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11878 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   gt_save_CPPFLAGS="$CPPFLAGS"
11882      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11883      gt_save_LIBS="$LIBS"
11884      LIBS="$LIBS -framework CoreFoundation"
11885      cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 #include <CFLocale.h>
11892 int
11893 main ()
11894 {
11895 CFLocaleCopyCurrent();
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902   (eval $ac_link) 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -z "$ac_c_werror_flag"
11910                          || test ! -s conftest.err'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest$ac_exeext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   gt_cv_func_CFLocaleCopyCurrent=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 gt_cv_func_CFLocaleCopyCurrent=no
11928 fi
11929 rm -f conftest.err conftest.$ac_objext \
11930       conftest$ac_exeext conftest.$ac_ext
11931      CPPFLAGS="$gt_save_CPPFLAGS"
11932      LIBS="$gt_save_LIBS"
11933 fi
11934 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11935 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11936   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11937
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_CFLOCALECOPYCURRENT 1
11940 _ACEOF
11941
11942   fi
11943   INTL_MACOSX_LIBS=
11944   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11945     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11946   fi
11947
11948
11949
11950
11951   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11952 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11953     # Check whether --enable-nls or --disable-nls was given.
11954 if test "${enable_nls+set}" = set; then
11955   enableval="$enable_nls"
11956   USE_NLS=$enableval
11957 else
11958   USE_NLS=yes
11959 fi;
11960   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11961 echo "${ECHO_T}$USE_NLS" >&6
11962
11963
11964
11965
11966     BUILD_INCLUDED_LIBINTL=no
11967     USE_INCLUDED_LIBINTL=no
11968
11969   LIBINTL=
11970   LTLIBINTL=
11971   POSUB=
11972
11973     if test "$USE_NLS" = "yes"; then
11974     gt_use_preinstalled_gnugettext=no
11975
11976       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11977 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11978
11979 # Check whether --with-included-gettext or --without-included-gettext was given.
11980 if test "${with_included_gettext+set}" = set; then
11981   withval="$with_included_gettext"
11982   nls_cv_force_use_gnu_gettext=$withval
11983 else
11984   nls_cv_force_use_gnu_gettext=no
11985 fi;
11986       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11987 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11988
11989       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11990       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11991
11992
11993
11994
11995
11996
11997         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11998 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11999 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 #include <libintl.h>
12009 extern int _nl_msg_cat_cntr;
12010 extern int *_nl_domain_bindings;
12011 int
12012 main ()
12013 {
12014 bindtextdomain ("", "");
12015 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022   (eval $ac_link) 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -z "$ac_c_werror_flag"
12030                          || test ! -s conftest.err'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest$ac_exeext'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   gt_cv_func_gnugettext1_libc=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 gt_cv_func_gnugettext1_libc=no
12048 fi
12049 rm -f conftest.err conftest.$ac_objext \
12050       conftest$ac_exeext conftest.$ac_ext
12051 fi
12052 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12053 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12054
12055         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12056
12057
12058
12059     use_additional=yes
12060
12061   acl_save_prefix="$prefix"
12062   prefix="$acl_final_prefix"
12063   acl_save_exec_prefix="$exec_prefix"
12064   exec_prefix="$acl_final_exec_prefix"
12065
12066     eval additional_includedir=\"$includedir\"
12067     eval additional_libdir=\"$libdir\"
12068
12069   exec_prefix="$acl_save_exec_prefix"
12070   prefix="$acl_save_prefix"
12071
12072
12073 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12074 if test "${with_libintl_prefix+set}" = set; then
12075   withval="$with_libintl_prefix"
12076
12077     if test "X$withval" = "Xno"; then
12078       use_additional=no
12079     else
12080       if test "X$withval" = "X"; then
12081
12082   acl_save_prefix="$prefix"
12083   prefix="$acl_final_prefix"
12084   acl_save_exec_prefix="$exec_prefix"
12085   exec_prefix="$acl_final_exec_prefix"
12086
12087           eval additional_includedir=\"$includedir\"
12088           eval additional_libdir=\"$libdir\"
12089
12090   exec_prefix="$acl_save_exec_prefix"
12091   prefix="$acl_save_prefix"
12092
12093       else
12094         additional_includedir="$withval/include"
12095         additional_libdir="$withval/lib"
12096       fi
12097     fi
12098
12099 fi;
12100       LIBINTL=
12101   LTLIBINTL=
12102   INCINTL=
12103   rpathdirs=
12104   ltrpathdirs=
12105   names_already_handled=
12106   names_next_round='intl '
12107   while test -n "$names_next_round"; do
12108     names_this_round="$names_next_round"
12109     names_next_round=
12110     for name in $names_this_round; do
12111       already_handled=
12112       for n in $names_already_handled; do
12113         if test "$n" = "$name"; then
12114           already_handled=yes
12115           break
12116         fi
12117       done
12118       if test -z "$already_handled"; then
12119         names_already_handled="$names_already_handled $name"
12120                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12121         eval value=\"\$HAVE_LIB$uppername\"
12122         if test -n "$value"; then
12123           if test "$value" = yes; then
12124             eval value=\"\$LIB$uppername\"
12125             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12126             eval value=\"\$LTLIB$uppername\"
12127             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12128           else
12129                                     :
12130           fi
12131         else
12132                               found_dir=
12133           found_la=
12134           found_so=
12135           found_a=
12136           if test $use_additional = yes; then
12137             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12138               found_dir="$additional_libdir"
12139               found_so="$additional_libdir/lib$name.$shlibext"
12140               if test -f "$additional_libdir/lib$name.la"; then
12141                 found_la="$additional_libdir/lib$name.la"
12142               fi
12143             else
12144               if test -f "$additional_libdir/lib$name.$libext"; then
12145                 found_dir="$additional_libdir"
12146                 found_a="$additional_libdir/lib$name.$libext"
12147                 if test -f "$additional_libdir/lib$name.la"; then
12148                   found_la="$additional_libdir/lib$name.la"
12149                 fi
12150               fi
12151             fi
12152           fi
12153           if test "X$found_dir" = "X"; then
12154             for x in $LDFLAGS $LTLIBINTL; do
12155
12156   acl_save_prefix="$prefix"
12157   prefix="$acl_final_prefix"
12158   acl_save_exec_prefix="$exec_prefix"
12159   exec_prefix="$acl_final_exec_prefix"
12160   eval x=\"$x\"
12161   exec_prefix="$acl_save_exec_prefix"
12162   prefix="$acl_save_prefix"
12163
12164               case "$x" in
12165                 -L*)
12166                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12167                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12168                     found_dir="$dir"
12169                     found_so="$dir/lib$name.$shlibext"
12170                     if test -f "$dir/lib$name.la"; then
12171                       found_la="$dir/lib$name.la"
12172                     fi
12173                   else
12174                     if test -f "$dir/lib$name.$libext"; then
12175                       found_dir="$dir"
12176                       found_a="$dir/lib$name.$libext"
12177                       if test -f "$dir/lib$name.la"; then
12178                         found_la="$dir/lib$name.la"
12179                       fi
12180                     fi
12181                   fi
12182                   ;;
12183               esac
12184               if test "X$found_dir" != "X"; then
12185                 break
12186               fi
12187             done
12188           fi
12189           if test "X$found_dir" != "X"; then
12190                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12191             if test "X$found_so" != "X"; then
12192                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12193                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12194               else
12195                                                                                 haveit=
12196                 for x in $ltrpathdirs; do
12197                   if test "X$x" = "X$found_dir"; then
12198                     haveit=yes
12199                     break
12200                   fi
12201                 done
12202                 if test -z "$haveit"; then
12203                   ltrpathdirs="$ltrpathdirs $found_dir"
12204                 fi
12205                                 if test "$hardcode_direct" = yes; then
12206                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12207                 else
12208                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12209                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12210                                                             haveit=
12211                     for x in $rpathdirs; do
12212                       if test "X$x" = "X$found_dir"; then
12213                         haveit=yes
12214                         break
12215                       fi
12216                     done
12217                     if test -z "$haveit"; then
12218                       rpathdirs="$rpathdirs $found_dir"
12219                     fi
12220                   else
12221                                                                                 haveit=
12222                     for x in $LDFLAGS $LIBINTL; do
12223
12224   acl_save_prefix="$prefix"
12225   prefix="$acl_final_prefix"
12226   acl_save_exec_prefix="$exec_prefix"
12227   exec_prefix="$acl_final_exec_prefix"
12228   eval x=\"$x\"
12229   exec_prefix="$acl_save_exec_prefix"
12230   prefix="$acl_save_prefix"
12231
12232                       if test "X$x" = "X-L$found_dir"; then
12233                         haveit=yes
12234                         break
12235                       fi
12236                     done
12237                     if test -z "$haveit"; then
12238                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12239                     fi
12240                     if test "$hardcode_minus_L" != no; then
12241                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12242                     else
12243                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12244                     fi
12245                   fi
12246                 fi
12247               fi
12248             else
12249               if test "X$found_a" != "X"; then
12250                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12251               else
12252                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12253               fi
12254             fi
12255                         additional_includedir=
12256             case "$found_dir" in
12257               */lib | */lib/)
12258                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12259                 additional_includedir="$basedir/include"
12260                 ;;
12261             esac
12262             if test "X$additional_includedir" != "X"; then
12263                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12264                 haveit=
12265                 if test "X$additional_includedir" = "X/usr/local/include"; then
12266                   if test -n "$GCC"; then
12267                     case $host_os in
12268                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12269                     esac
12270                   fi
12271                 fi
12272                 if test -z "$haveit"; then
12273                   for x in $CPPFLAGS $INCINTL; do
12274
12275   acl_save_prefix="$prefix"
12276   prefix="$acl_final_prefix"
12277   acl_save_exec_prefix="$exec_prefix"
12278   exec_prefix="$acl_final_exec_prefix"
12279   eval x=\"$x\"
12280   exec_prefix="$acl_save_exec_prefix"
12281   prefix="$acl_save_prefix"
12282
12283                     if test "X$x" = "X-I$additional_includedir"; then
12284                       haveit=yes
12285                       break
12286                     fi
12287                   done
12288                   if test -z "$haveit"; then
12289                     if test -d "$additional_includedir"; then
12290                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12291                     fi
12292                   fi
12293                 fi
12294               fi
12295             fi
12296                         if test -n "$found_la"; then
12297                                                         save_libdir="$libdir"
12298               case "$found_la" in
12299                 */* | *\\*) . "$found_la" ;;
12300                 *) . "./$found_la" ;;
12301               esac
12302               libdir="$save_libdir"
12303                             for dep in $dependency_libs; do
12304                 case "$dep" in
12305                   -L*)
12306                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12307                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12308                       haveit=
12309                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12310                         if test -n "$GCC"; then
12311                           case $host_os in
12312                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12313                           esac
12314                         fi
12315                       fi
12316                       if test -z "$haveit"; then
12317                         haveit=
12318                         for x in $LDFLAGS $LIBINTL; do
12319
12320   acl_save_prefix="$prefix"
12321   prefix="$acl_final_prefix"
12322   acl_save_exec_prefix="$exec_prefix"
12323   exec_prefix="$acl_final_exec_prefix"
12324   eval x=\"$x\"
12325   exec_prefix="$acl_save_exec_prefix"
12326   prefix="$acl_save_prefix"
12327
12328                           if test "X$x" = "X-L$additional_libdir"; then
12329                             haveit=yes
12330                             break
12331                           fi
12332                         done
12333                         if test -z "$haveit"; then
12334                           if test -d "$additional_libdir"; then
12335                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12336                           fi
12337                         fi
12338                         haveit=
12339                         for x in $LDFLAGS $LTLIBINTL; do
12340
12341   acl_save_prefix="$prefix"
12342   prefix="$acl_final_prefix"
12343   acl_save_exec_prefix="$exec_prefix"
12344   exec_prefix="$acl_final_exec_prefix"
12345   eval x=\"$x\"
12346   exec_prefix="$acl_save_exec_prefix"
12347   prefix="$acl_save_prefix"
12348
12349                           if test "X$x" = "X-L$additional_libdir"; then
12350                             haveit=yes
12351                             break
12352                           fi
12353                         done
12354                         if test -z "$haveit"; then
12355                           if test -d "$additional_libdir"; then
12356                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12357                           fi
12358                         fi
12359                       fi
12360                     fi
12361                     ;;
12362                   -R*)
12363                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12364                     if test "$enable_rpath" != no; then
12365                                                                   haveit=
12366                       for x in $rpathdirs; do
12367                         if test "X$x" = "X$dir"; then
12368                           haveit=yes
12369                           break
12370                         fi
12371                       done
12372                       if test -z "$haveit"; then
12373                         rpathdirs="$rpathdirs $dir"
12374                       fi
12375                                                                   haveit=
12376                       for x in $ltrpathdirs; do
12377                         if test "X$x" = "X$dir"; then
12378                           haveit=yes
12379                           break
12380                         fi
12381                       done
12382                       if test -z "$haveit"; then
12383                         ltrpathdirs="$ltrpathdirs $dir"
12384                       fi
12385                     fi
12386                     ;;
12387                   -l*)
12388                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12389                     ;;
12390                   *.la)
12391                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12392                     ;;
12393                   *)
12394                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12395                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12396                     ;;
12397                 esac
12398               done
12399             fi
12400           else
12401                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12402             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12403           fi
12404         fi
12405       fi
12406     done
12407   done
12408   if test "X$rpathdirs" != "X"; then
12409     if test -n "$hardcode_libdir_separator"; then
12410                         alldirs=
12411       for found_dir in $rpathdirs; do
12412         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12413       done
12414             acl_save_libdir="$libdir"
12415       libdir="$alldirs"
12416       eval flag=\"$hardcode_libdir_flag_spec\"
12417       libdir="$acl_save_libdir"
12418       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12419     else
12420             for found_dir in $rpathdirs; do
12421         acl_save_libdir="$libdir"
12422         libdir="$found_dir"
12423         eval flag=\"$hardcode_libdir_flag_spec\"
12424         libdir="$acl_save_libdir"
12425         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12426       done
12427     fi
12428   fi
12429   if test "X$ltrpathdirs" != "X"; then
12430             for found_dir in $ltrpathdirs; do
12431       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12432     done
12433   fi
12434
12435           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12436 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12437 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   gt_save_CPPFLAGS="$CPPFLAGS"
12441             CPPFLAGS="$CPPFLAGS $INCINTL"
12442             gt_save_LIBS="$LIBS"
12443             LIBS="$LIBS $LIBINTL"
12444                         cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 #include <libintl.h>
12451 extern int _nl_msg_cat_cntr;
12452 extern
12453 #ifdef __cplusplus
12454 "C"
12455 #endif
12456 const char *_nl_expand_alias (const char *);
12457 int
12458 main ()
12459 {
12460 bindtextdomain ("", "");
12461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468   (eval $ac_link) 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } &&
12475          { ac_try='test -z "$ac_c_werror_flag"
12476                          || test ! -s conftest.err'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; } &&
12482          { ac_try='test -s conftest$ac_exeext'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; }; then
12488   gt_cv_func_gnugettext1_libintl=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493 gt_cv_func_gnugettext1_libintl=no
12494 fi
12495 rm -f conftest.err conftest.$ac_objext \
12496       conftest$ac_exeext conftest.$ac_ext
12497                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12498               LIBS="$LIBS $LIBICONV"
12499               cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 #include <libintl.h>
12506 extern int _nl_msg_cat_cntr;
12507 extern
12508 #ifdef __cplusplus
12509 "C"
12510 #endif
12511 const char *_nl_expand_alias (const char *);
12512 int
12513 main ()
12514 {
12515 bindtextdomain ("", "");
12516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag"
12531                          || test ! -s conftest.err'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   LIBINTL="$LIBINTL $LIBICONV"
12544                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12545                 gt_cv_func_gnugettext1_libintl=yes
12546
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554             fi
12555             CPPFLAGS="$gt_save_CPPFLAGS"
12556             LIBS="$gt_save_LIBS"
12557 fi
12558 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12559 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12560         fi
12561
12562                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12563            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12564                 && test "$PACKAGE" != gettext-runtime \
12565                 && test "$PACKAGE" != gettext-tools; }; then
12566           gt_use_preinstalled_gnugettext=yes
12567         else
12568                     LIBINTL=
12569           LTLIBINTL=
12570           INCINTL=
12571         fi
12572
12573
12574         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12575                               nls_cv_use_gnu_gettext=yes
12576         fi
12577       fi
12578
12579       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12580                 BUILD_INCLUDED_LIBINTL=yes
12581         USE_INCLUDED_LIBINTL=yes
12582         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12583         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12584         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12585       fi
12586
12587       CATOBJEXT=
12588       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12589          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12590                 CATOBJEXT=.gmo
12591       fi
12592
12593
12594     if test -n "$INTL_MACOSX_LIBS"; then
12595       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12596          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12597                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12598         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12599       fi
12600     fi
12601
12602     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12603        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12604
12605 cat >>confdefs.h <<\_ACEOF
12606 #define ENABLE_NLS 1
12607 _ACEOF
12608
12609     else
12610       USE_NLS=no
12611     fi
12612   fi
12613
12614   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12616   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12617 echo "${ECHO_T}$USE_NLS" >&6
12618   if test "$USE_NLS" = "yes"; then
12619     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12621     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12622       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12623         gt_source="external libintl"
12624       else
12625         gt_source="libc"
12626       fi
12627     else
12628       gt_source="included intl directory"
12629     fi
12630     echo "$as_me:$LINENO: result: $gt_source" >&5
12631 echo "${ECHO_T}$gt_source" >&6
12632   fi
12633
12634   if test "$USE_NLS" = "yes"; then
12635
12636     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12637       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12638         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12640         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12641 echo "${ECHO_T}$LIBINTL" >&6
12642
12643   for element in $INCINTL; do
12644     haveit=
12645     for x in $CPPFLAGS; do
12646
12647   acl_save_prefix="$prefix"
12648   prefix="$acl_final_prefix"
12649   acl_save_exec_prefix="$exec_prefix"
12650   exec_prefix="$acl_final_exec_prefix"
12651   eval x=\"$x\"
12652   exec_prefix="$acl_save_exec_prefix"
12653   prefix="$acl_save_prefix"
12654
12655       if test "X$x" = "X$element"; then
12656         haveit=yes
12657         break
12658       fi
12659     done
12660     if test -z "$haveit"; then
12661       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12662     fi
12663   done
12664
12665       fi
12666
12667
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_GETTEXT 1
12670 _ACEOF
12671
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_DCGETTEXT 1
12675 _ACEOF
12676
12677     fi
12678
12679         POSUB=po
12680   fi
12681
12682
12683             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12684       BUILD_INCLUDED_LIBINTL=yes
12685     fi
12686
12687
12688
12689
12690
12691         nls_cv_header_intl=
12692     nls_cv_header_libgt=
12693
12694         DATADIRNAME=share
12695
12696
12697         INSTOBJEXT=.mo
12698
12699
12700         GENCAT=gencat
12701
12702
12703         INTLOBJS=
12704     if test "$USE_INCLUDED_LIBINTL" = yes; then
12705       INTLOBJS="\$(GETTOBJS)"
12706     fi
12707
12708
12709         INTL_LIBTOOL_SUFFIX_PREFIX=
12710
12711
12712
12713     INTLLIBS="$LIBINTL"
12714
12715
12716
12717
12718
12719
12720 fi
12721
12722
12723 support_mysql=no
12724 support_sqlite=no
12725 support_sqlite3=no
12726 support_postgresql=no
12727 support_smartalloc=yes
12728 support_readline=yes
12729 support_conio=yes
12730 support_gnome=no
12731 support_bat=no
12732 support_wx_console=no
12733 support_tls=no
12734 support_crypto=no
12735 gnome_version=
12736 wx_version=
12737 support_static_tools=no
12738 support_static_fd=no
12739 support_static_sd=no
12740 support_static_dir=no
12741 support_static_cons=no
12742 support_python=no
12743 build_client_only=no
12744 build_dird=yes
12745 build_stored=yes
12746 cats=
12747 db_type=Internal
12748 DB_TYPE=bdb
12749
12750
12751 # -------------------------------------------
12752 # gnome (default off)
12753 # -------------------------------------------
12754 # Check whether --enable-gnome or --disable-gnome was given.
12755 if test "${enable_gnome+set}" = set; then
12756   enableval="$enable_gnome"
12757   if test x$enableval = xyes; then
12758     support_gnome=yes
12759   fi
12760 fi;
12761
12762 GNOME_DIR=
12763 if test x$support_gnome = xyes; then
12764   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12765   pkg=$?
12766   if test $pkg = 0; then
12767      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12768      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12769      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12770      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12771
12772
12773
12774
12775      GNOME_DIR=src/gnome2-console
12776      gnome_version="Version 2.x"
12777   else
12778      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12779 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12780    { (exit 1); exit 1; }; }
12781   fi
12782 fi
12783
12784
12785 # -------------------------------------------
12786 # bat (default off)
12787 # -------------------------------------------
12788 # Check whether --enable-bat or --disable-bat was given.
12789 if test "${enable_bat+set}" = set; then
12790   enableval="$enable_bat"
12791   if test x$enableval = xyes; then
12792
12793 cat >>confdefs.h <<\_ACEOF
12794 #define HAVE_BAT 1
12795 _ACEOF
12796
12797     support_bat=yes
12798   fi
12799 fi;
12800
12801 BAT_DIR=
12802 if test x$support_bat = xyes; then
12803   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12804   pkg=$?
12805   if test $pkg = 0; then
12806      BAT_DIR=src/qt-console
12807   else
12808      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12809 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12810    { (exit 1); exit 1; }; }
12811   fi
12812 fi
12813
12814 #
12815 #  If bat is enabled, we need the qwt library
12816 got_qwt=no
12817 QWT_INC=
12818 QWT_LDFLAGS=
12819 if test x$support_bat = xyes; then
12820    echo "$as_me:$LINENO: checking for qwt support" >&5
12821 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12822
12823 # Check whether --with-qwt or --without-qwt was given.
12824 if test "${with_qwt+set}" = set; then
12825   withval="$with_qwt"
12826
12827         case "$with_qwt" in
12828         no)
12829           ;;
12830         yes|*)
12831           if test -f ${with_qwt}/include/qwt.h; then
12832              QWT_INC="${with_qwt}/include"
12833              QWT_LDFLAGS="-L${with_qwt}/lib"
12834           fi
12835           ;;
12836         esac
12837
12838
12839 fi;
12840 #
12841 # Search in standard places, or --with-qwt not specified
12842 #
12843    if test x$QWT_INC = x; then
12844       for root in /usr /usr/local; do
12845          for ver in qwt qwt5; do
12846             if test -f ${root}/include/${ver}/qwt.h; then
12847                QWT_INC="${root}/include/${ver}"
12848                if test -d ${root}/lib64/; then
12849                   QWT_LDFLAGS="-L${root}/lib64"
12850                else
12851                   QWT_LDFLAGS="-L${root}/lib"
12852                fi
12853                got_qwt=yes
12854                break;
12855             fi
12856          done
12857       done
12858    fi
12859    if test x$QWT_INC = x; then
12860       echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6
12862       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12863 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12864    { (exit 1); exit 1; }; }
12865       BAT_DIR=
12866       support_bat=no
12867    else
12868       echo "$as_me:$LINENO: result: yes" >&5
12869 echo "${ECHO_T}yes" >&6
12870    fi
12871 fi
12872
12873
12874
12875
12876
12877
12878 # -------------------------------------------
12879 # bwx-console (default off)
12880 # -------------------------------------------
12881 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12882 if test "${enable_bwx_console+set}" = set; then
12883   enableval="$enable_bwx_console"
12884   if test x$enableval = xyes; then
12885     support_wx_console=yes
12886   fi
12887 fi;
12888
12889 WX_DIR=
12890 if test x$support_wx_console = xyes; then
12891   abc=`$WXCONFIG $WXFLAGS --cppflags`
12892   pkg=$?
12893   if test $pkg = 0; then
12894      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12895      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12896      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12897
12898
12899
12900      WX_DIR=src/wx-console
12901   else
12902      echo " "
12903      echo "wx-config program not found. bwx-console disabled."
12904      echo " "
12905      support_wx_console=no
12906   fi
12907 fi
12908
12909
12910
12911 # -------------------------------------------
12912 # tray-monitor (default off)
12913 # -------------------------------------------
12914 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12915 if test "${enable_tray_monitor+set}" = set; then
12916   enableval="$enable_tray_monitor"
12917   if test x$enableval = xyes; then
12918     support_tray_monitor=yes
12919   fi
12920 fi;
12921
12922 TRAY_MONITOR_DIR=
12923 if test x$support_tray_monitor = xyes; then
12924   abc=`$PKGCONFIG --exists gtk+-2.0`
12925   pkg=$?
12926   if test $pkg = 0; then
12927      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12928      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12929
12930
12931      TRAY_MONITOR_DIR=src/tray-monitor
12932      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12933      pkg=$?
12934      if test $pkg = 0; then
12935
12936 cat >>confdefs.h <<\_ACEOF
12937 #define HAVE_GTK_2_4 1
12938 _ACEOF
12939
12940      fi
12941   fi
12942 fi
12943
12944
12945 # -------------------------------------------
12946 # smartalloc (default off)
12947 # -------------------------------------------
12948 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12949 if test "${enable_smartalloc+set}" = set; then
12950   enableval="$enable_smartalloc"
12951   if test x$enableval = xno; then
12952     support_smartalloc=no
12953   fi
12954 fi;
12955
12956 if test x$support_smartalloc = xyes; then
12957
12958 cat >>confdefs.h <<\_ACEOF
12959 #define SMARTALLOC 1
12960 _ACEOF
12961
12962 fi
12963
12964 # -------------------------------------------
12965 # static-tools (default off)
12966 # -------------------------------------------
12967 # Check whether --enable-static-tools or --disable-static-tools was given.
12968 if test "${enable_static_tools+set}" = set; then
12969   enableval="$enable_static_tools"
12970   if test x$enableval = xyes; then
12971      support_static_tools=yes
12972    fi
12973 fi;
12974
12975 TTOOL_LDFLAGS=
12976 if test x$support_static_tools = xyes; then
12977    TTOOL_LDFLAGS="-static"
12978 fi
12979
12980
12981 # -------------------------------------------
12982 # static-fd    (default off)
12983 # -------------------------------------------
12984 # Check whether --enable-static-fd or --disable-static-fd was given.
12985 if test "${enable_static_fd+set}" = set; then
12986   enableval="$enable_static_fd"
12987   if test x$enableval = xyes; then
12988      support_static_fd=yes
12989    fi
12990 fi;
12991
12992 STATIC_FD=
12993 if test x$support_static_fd = xyes; then
12994    STATIC_FD="static-bacula-fd"
12995 fi
12996
12997
12998 # -------------------------------------------
12999 # static-sd    (default off)
13000 # -------------------------------------------
13001 # Check whether --enable-static-sd or --disable-static-sd was given.
13002 if test "${enable_static_sd+set}" = set; then
13003   enableval="$enable_static_sd"
13004   if test x$enableval = xyes; then
13005      support_static_sd=yes
13006    fi
13007 fi;
13008
13009 STATIC_SD=
13010 if test x$support_static_sd = xyes; then
13011    STATIC_SD="static-bacula-sd"
13012 fi
13013
13014
13015 # -------------------------------------------
13016 # static-dir   (default off)
13017 # -------------------------------------------
13018 # Check whether --enable-static-dir or --disable-static-dir was given.
13019 if test "${enable_static_dir+set}" = set; then
13020   enableval="$enable_static_dir"
13021   if test x$enableval = xyes; then
13022      support_static_dir=yes
13023    fi
13024 fi;
13025
13026 STATIC_DIR=
13027 if test x$support_static_dir = xyes; then
13028    STATIC_DIR="static-bacula-dir"
13029 fi
13030
13031
13032 # -------------------------------------------
13033 # static-cons  (default off)
13034 # -------------------------------------------
13035 # Check whether --enable-static-cons or --disable-static-cons was given.
13036 if test "${enable_static_cons+set}" = set; then
13037   enableval="$enable_static_cons"
13038   if test x$enableval = xyes; then
13039      support_static_cons=yes
13040    fi
13041 fi;
13042
13043 STATIC_CONS=
13044 STATIC_GNOME_CONS=
13045 STATIC_WX_CONS=
13046 if test x$support_static_cons = xyes; then
13047    STATIC_CONS="static-bconsole"
13048    STATIC_GNOME_CONS="static-bgnome-console"
13049    STATIC_WX_CONS="static-bwx-console"
13050 fi
13051
13052
13053
13054
13055 # -------------------------------------------
13056 # client_only  (default off)
13057 # -------------------------------------------
13058 # Check whether --enable-client-only or --disable-client-only was given.
13059 if test "${enable_client_only+set}" = set; then
13060   enableval="$enable_client_only"
13061   if test x$enableval = xyes; then
13062       build_client_only=yes
13063       db_type=None
13064       DB_TYPE=none
13065    fi
13066 fi;
13067 if test x$build_client_only = xno; then
13068    ALL_DIRS="subdirs"
13069 else
13070    ALL_DIRS=""
13071 fi
13072
13073
13074 # -------------------------------------------
13075 # director  (default on)
13076 # -------------------------------------------
13077 # Check whether --enable-build-dird or --disable-build-dird was given.
13078 if test "${enable_build_dird+set}" = set; then
13079   enableval="$enable_build_dird"
13080   if test x$enableval = xno; then
13081       build_dird=no
13082    fi
13083 fi;
13084 if test x$build_dird = xyes; then
13085    DIRD_DIR="src/dird"
13086    DIR_TOOLS="DIRTOOLS"
13087 else
13088    DIRD_DIR=""
13089    DIR_TOOLS="NODIRTOOLS"
13090 fi
13091
13092
13093
13094 # -------------------------------------------
13095 # stored  (default on)
13096 # -------------------------------------------
13097 # Check whether --enable-build-stored or --disable-build-stored was given.
13098 if test "${enable_build_stored+set}" = set; then
13099   enableval="$enable_build_stored"
13100   if test x$enableval = xno; then
13101       build_stored=no
13102    fi
13103 fi;
13104 if test x$build_stored = xyes; then
13105    STORED_DIR="src/stored"
13106 else
13107    STORED_DIR=""
13108 fi
13109
13110
13111 # ---------------------------------------------------
13112 # Check for conio (Bacula readline substitute)(
13113 # ---------------------------------------------------
13114 # this allows you to turn it completely off
13115 # Check whether --enable-conio or --disable-conio was given.
13116 if test "${enable_conio+set}" = set; then
13117   enableval="$enable_conio"
13118   if test x$enableval = xno; then
13119      support_conio=no
13120   fi
13121
13122 fi;
13123
13124
13125 # ---------------------------------------------------
13126 # Check for IPv6 support
13127 # ---------------------------------------------------
13128 # this allows you to turn it completely off
13129 support_ipv6=yes
13130 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13131 if test "${enable_ipv6+set}" = set; then
13132   enableval="$enable_ipv6"
13133   if test x$enableval = xno; then
13134      support_ipv6=no
13135   fi
13136
13137 fi;
13138
13139 if test x$support_ipv6 = xyes; then
13140     cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h.  */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h.  */
13146  #include <sys/types.h>
13147 #include <sys/socket.h>
13148 #include <netinet/in.h>
13149 int
13150 main ()
13151 {
13152 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13153   ;
13154   return 0;
13155 }
13156 _ACEOF
13157 rm -f conftest.$ac_objext conftest$ac_exeext
13158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13159   (eval $ac_link) 2>conftest.er1
13160   ac_status=$?
13161   grep -v '^ *+' conftest.er1 >conftest.err
13162   rm -f conftest.er1
13163   cat conftest.err >&5
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } &&
13166          { ac_try='test -z "$ac_c_werror_flag"
13167                          || test ! -s conftest.err'
13168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169   (eval $ac_try) 2>&5
13170   ac_status=$?
13171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); }; } &&
13173          { ac_try='test -s conftest$ac_exeext'
13174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175   (eval $ac_try) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; }; then
13179   support_ipv6=yes
13180 else
13181   echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13183
13184 support_ipv6=no
13185 fi
13186 rm -f conftest.err conftest.$ac_objext \
13187       conftest$ac_exeext conftest.$ac_ext
13188 fi
13189
13190 if test x$support_ipv6 = xyes; then
13191
13192 cat >>confdefs.h <<\_ACEOF
13193 #define HAVE_IPV6 1
13194 _ACEOF
13195
13196 fi
13197
13198
13199
13200 got_conio="no"
13201 if test x$support_conio = xyes; then
13202    if test "${ac_cv_header_termcap_h+set}" = set; then
13203   echo "$as_me:$LINENO: checking for termcap.h" >&5
13204 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13205 if test "${ac_cv_header_termcap_h+set}" = set; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 fi
13208 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13209 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13210 else
13211   # Is the header compilable?
13212 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13213 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220 $ac_includes_default
13221 #include <termcap.h>
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225   (eval $ac_compile) 2>conftest.er1
13226   ac_status=$?
13227   grep -v '^ *+' conftest.er1 >conftest.err
13228   rm -f conftest.er1
13229   cat conftest.err >&5
13230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231   (exit $ac_status); } &&
13232          { ac_try='test -z "$ac_c_werror_flag"
13233                          || test ! -s conftest.err'
13234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235   (eval $ac_try) 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; } &&
13239          { ac_try='test -s conftest.$ac_objext'
13240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241   (eval $ac_try) 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); }; }; then
13245   ac_header_compiler=yes
13246 else
13247   echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250 ac_header_compiler=no
13251 fi
13252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13254 echo "${ECHO_T}$ac_header_compiler" >&6
13255
13256 # Is the header present?
13257 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13258 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13259 cat >conftest.$ac_ext <<_ACEOF
13260 /* confdefs.h.  */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h.  */
13265 #include <termcap.h>
13266 _ACEOF
13267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13269   ac_status=$?
13270   grep -v '^ *+' conftest.er1 >conftest.err
13271   rm -f conftest.er1
13272   cat conftest.err >&5
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } >/dev/null; then
13275   if test -s conftest.err; then
13276     ac_cpp_err=$ac_c_preproc_warn_flag
13277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13278   else
13279     ac_cpp_err=
13280   fi
13281 else
13282   ac_cpp_err=yes
13283 fi
13284 if test -z "$ac_cpp_err"; then
13285   ac_header_preproc=yes
13286 else
13287   echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290   ac_header_preproc=no
13291 fi
13292 rm -f conftest.err conftest.$ac_ext
13293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13294 echo "${ECHO_T}$ac_header_preproc" >&6
13295
13296 # So?  What about this header?
13297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13298   yes:no: )
13299     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13300 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13301     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13302 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13303     ac_header_preproc=yes
13304     ;;
13305   no:yes:* )
13306     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13307 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13308     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13309 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13310     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13311 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13312     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13313 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13314     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13315 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13316     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13317 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13318     (
13319       cat <<\_ASBOX
13320 ## ------------------------------------------ ##
13321 ## Report this to the AC_PACKAGE_NAME lists.  ##
13322 ## ------------------------------------------ ##
13323 _ASBOX
13324     ) |
13325       sed "s/^/$as_me: WARNING:     /" >&2
13326     ;;
13327 esac
13328 echo "$as_me:$LINENO: checking for termcap.h" >&5
13329 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13330 if test "${ac_cv_header_termcap_h+set}" = set; then
13331   echo $ECHO_N "(cached) $ECHO_C" >&6
13332 else
13333   ac_cv_header_termcap_h=$ac_header_preproc
13334 fi
13335 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13336 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13337
13338 fi
13339 if test $ac_cv_header_termcap_h = yes; then
13340    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13341 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13342 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-ltermcap  $LIBS"
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h.  */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h.  */
13353
13354 /* Override any gcc2 internal prototype to avoid an error.  */
13355 #ifdef __cplusplus
13356 extern "C"
13357 #endif
13358 /* We use char because int might match the return type of a gcc2
13359    builtin and then its argument prototype would still apply.  */
13360 char tgetent ();
13361 int
13362 main ()
13363 {
13364 tgetent ();
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371   (eval $ac_link) 2>conftest.er1
13372   ac_status=$?
13373   grep -v '^ *+' conftest.er1 >conftest.err
13374   rm -f conftest.er1
13375   cat conftest.err >&5
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -z "$ac_c_werror_flag"
13379                          || test ! -s conftest.err'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; } &&
13385          { ac_try='test -s conftest$ac_exeext'
13386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387   (eval $ac_try) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; }; then
13391   ac_cv_lib_termcap_tgetent=yes
13392 else
13393   echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ac_cv_lib_termcap_tgetent=no
13397 fi
13398 rm -f conftest.err conftest.$ac_objext \
13399       conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13401 fi
13402 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13403 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13404 if test $ac_cv_lib_termcap_tgetent = yes; then
13405    CONS_LIBS="-ltermcap"
13406          CONS_OBJ="conio.o"
13407          CONS_SRC="conio.c"
13408          got_conio="yes"
13409          support_readline=no
13410
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_CONIO 1
13413 _ACEOF
13414
13415
13416 else
13417    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13418 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13419 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   ac_check_lib_save_LIBS=$LIBS
13423 LIBS="-lncurses  $LIBS"
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h.  */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h.  */
13430
13431 /* Override any gcc2 internal prototype to avoid an error.  */
13432 #ifdef __cplusplus
13433 extern "C"
13434 #endif
13435 /* We use char because int might match the return type of a gcc2
13436    builtin and then its argument prototype would still apply.  */
13437 char tgetent ();
13438 int
13439 main ()
13440 {
13441 tgetent ();
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext conftest$ac_exeext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448   (eval $ac_link) 2>conftest.er1
13449   ac_status=$?
13450   grep -v '^ *+' conftest.er1 >conftest.err
13451   rm -f conftest.er1
13452   cat conftest.err >&5
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); } &&
13455          { ac_try='test -z "$ac_c_werror_flag"
13456                          || test ! -s conftest.err'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; } &&
13462          { ac_try='test -s conftest$ac_exeext'
13463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464   (eval $ac_try) 2>&5
13465   ac_status=$?
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); }; }; then
13468   ac_cv_lib_ncurses_tgetent=yes
13469 else
13470   echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13472
13473 ac_cv_lib_ncurses_tgetent=no
13474 fi
13475 rm -f conftest.err conftest.$ac_objext \
13476       conftest$ac_exeext conftest.$ac_ext
13477 LIBS=$ac_check_lib_save_LIBS
13478 fi
13479 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13480 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13481 if test $ac_cv_lib_ncurses_tgetent = yes; then
13482    CONS_LIBS="-lncurses"
13483            CONS_OBJ="conio.o"
13484            CONS_SRC="conio.c"
13485            got_conio="yes"
13486            support_readline=no
13487
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_CONIO 1
13490 _ACEOF
13491
13492
13493 fi
13494
13495
13496 fi
13497
13498
13499 else
13500
13501
13502 for ac_header in curses.h
13503 do
13504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13506   echo "$as_me:$LINENO: checking for $ac_header" >&5
13507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13509   echo $ECHO_N "(cached) $ECHO_C" >&6
13510 fi
13511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13513 else
13514   # Is the header compilable?
13515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h.  */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h.  */
13523 $ac_includes_default
13524 #include <$ac_header>
13525 _ACEOF
13526 rm -f conftest.$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528   (eval $ac_compile) 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } &&
13535          { ac_try='test -z "$ac_c_werror_flag"
13536                          || test ! -s conftest.err'
13537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538   (eval $ac_try) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }; } &&
13542          { ac_try='test -s conftest.$ac_objext'
13543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544   (eval $ac_try) 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; }; then
13548   ac_header_compiler=yes
13549 else
13550   echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_header_compiler=no
13554 fi
13555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13557 echo "${ECHO_T}$ac_header_compiler" >&6
13558
13559 # Is the header present?
13560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13562 cat >conftest.$ac_ext <<_ACEOF
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568 #include <$ac_header>
13569 _ACEOF
13570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } >/dev/null; then
13578   if test -s conftest.err; then
13579     ac_cpp_err=$ac_c_preproc_warn_flag
13580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13581   else
13582     ac_cpp_err=
13583   fi
13584 else
13585   ac_cpp_err=yes
13586 fi
13587 if test -z "$ac_cpp_err"; then
13588   ac_header_preproc=yes
13589 else
13590   echo "$as_me: failed program was:" >&5
13591 sed 's/^/| /' conftest.$ac_ext >&5
13592
13593   ac_header_preproc=no
13594 fi
13595 rm -f conftest.err conftest.$ac_ext
13596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13597 echo "${ECHO_T}$ac_header_preproc" >&6
13598
13599 # So?  What about this header?
13600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13601   yes:no: )
13602     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13606     ac_header_preproc=yes
13607     ;;
13608   no:yes:* )
13609     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13612 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13615     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13616 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13619     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13621     (
13622       cat <<\_ASBOX
13623 ## ------------------------------------------ ##
13624 ## Report this to the AC_PACKAGE_NAME lists.  ##
13625 ## ------------------------------------------ ##
13626 _ASBOX
13627     ) |
13628       sed "s/^/$as_me: WARNING:     /" >&2
13629     ;;
13630 esac
13631 echo "$as_me:$LINENO: checking for $ac_header" >&5
13632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13634   echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636   eval "$as_ac_Header=\$ac_header_preproc"
13637 fi
13638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13640
13641 fi
13642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13643   cat >>confdefs.h <<_ACEOF
13644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13645 _ACEOF
13646
13647 fi
13648
13649 done
13650
13651          echo "$as_me:$LINENO: checking for term.h" >&5
13652 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13653 if test "${ac_cv_header_term_h+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h.  */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h.  */
13662 #if HAVE_CURSES_H
13663 #include <curses.h>
13664 #endif
13665
13666
13667 #include <term.h>
13668 _ACEOF
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671   (eval $ac_compile) 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -z "$ac_c_werror_flag"
13679                          || test ! -s conftest.err'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; } &&
13685          { ac_try='test -s conftest.$ac_objext'
13686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687   (eval $ac_try) 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   ac_cv_header_term_h=yes
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 ac_cv_header_term_h=no
13697 fi
13698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13699 fi
13700 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13701 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13702 if test $ac_cv_header_term_h = yes; then
13703    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13704 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13705 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-lcurses  $LIBS"
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716
13717 /* Override any gcc2 internal prototype to avoid an error.  */
13718 #ifdef __cplusplus
13719 extern "C"
13720 #endif
13721 /* We use char because int might match the return type of a gcc2
13722    builtin and then its argument prototype would still apply.  */
13723 char tgetent ();
13724 int
13725 main ()
13726 {
13727 tgetent ();
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734   (eval $ac_link) 2>conftest.er1
13735   ac_status=$?
13736   grep -v '^ *+' conftest.er1 >conftest.err
13737   rm -f conftest.er1
13738   cat conftest.err >&5
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); } &&
13741          { ac_try='test -z "$ac_c_werror_flag"
13742                          || test ! -s conftest.err'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; } &&
13748          { ac_try='test -s conftest$ac_exeext'
13749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750   (eval $ac_try) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; }; then
13754   ac_cv_lib_curses_tgetent=yes
13755 else
13756   echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759 ac_cv_lib_curses_tgetent=no
13760 fi
13761 rm -f conftest.err conftest.$ac_objext \
13762       conftest$ac_exeext conftest.$ac_ext
13763 LIBS=$ac_check_lib_save_LIBS
13764 fi
13765 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13766 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13767 if test $ac_cv_lib_curses_tgetent = yes; then
13768    CONS_LIBS="-lcurses"
13769                    CONS_OBJ="conio.o"
13770                    CONS_SRC="conio.c"
13771                    got_conio="yes"
13772                    support_readline=no
13773
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_CONIO 1
13776 _ACEOF
13777
13778
13779 fi
13780
13781
13782 else
13783    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13784 fi
13785
13786
13787
13788 fi
13789
13790
13791 fi
13792
13793
13794 # ---------------------------------------------------
13795 # Check for readline support/directory (default off)
13796 # ---------------------------------------------------
13797 # this allows you to turn it completely off
13798 # Check whether --enable-readline or --disable-readline was given.
13799 if test "${enable_readline+set}" = set; then
13800   enableval="$enable_readline"
13801   if test x$enableval = xno; then
13802     support_readline=no
13803   fi
13804 fi;
13805
13806 got_readline="no"
13807 READLINE_SRC=
13808 if test x$support_readline = xyes; then
13809
13810 # Check whether --with-readline or --without-readline was given.
13811 if test "${with_readline+set}" = set; then
13812   withval="$with_readline"
13813
13814         case "$with_readline" in
13815         no) : ;;
13816         yes|*)
13817           if test -f ${with_readline}/readline.h; then
13818              CONS_INC="-I${with_readline}"
13819              CONS_LDFLAGS="-L$with_readline"
13820           elif test -f ${with_readline}/include/readline/readline.h; then
13821              CONS_INC="-I${with_readline}/include/readline"
13822              CONS_LDFLAGS="-L${with_readline}/lib"
13823              with_readline="${with_readline}/include/readline"
13824           else
13825              with_readline="/usr/include/readline"
13826           fi
13827           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13829   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13830 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13832   echo $ECHO_N "(cached) $ECHO_C" >&6
13833 fi
13834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13836 else
13837   # Is the header compilable?
13838 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13839 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847 #include <${with_readline}/readline.h>
13848 _ACEOF
13849 rm -f conftest.$ac_objext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13851   (eval $ac_compile) 2>conftest.er1
13852   ac_status=$?
13853   grep -v '^ *+' conftest.er1 >conftest.err
13854   rm -f conftest.er1
13855   cat conftest.err >&5
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); } &&
13858          { ac_try='test -z "$ac_c_werror_flag"
13859                          || test ! -s conftest.err'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; } &&
13865          { ac_try='test -s conftest.$ac_objext'
13866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867   (eval $ac_try) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; }; then
13871   ac_header_compiler=yes
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 ac_header_compiler=no
13877 fi
13878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13879 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13880 echo "${ECHO_T}$ac_header_compiler" >&6
13881
13882 # Is the header present?
13883 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13884 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h.  */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h.  */
13891 #include <${with_readline}/readline.h>
13892 _ACEOF
13893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13894   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13895   ac_status=$?
13896   grep -v '^ *+' conftest.er1 >conftest.err
13897   rm -f conftest.er1
13898   cat conftest.err >&5
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); } >/dev/null; then
13901   if test -s conftest.err; then
13902     ac_cpp_err=$ac_c_preproc_warn_flag
13903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13904   else
13905     ac_cpp_err=
13906   fi
13907 else
13908   ac_cpp_err=yes
13909 fi
13910 if test -z "$ac_cpp_err"; then
13911   ac_header_preproc=yes
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916   ac_header_preproc=no
13917 fi
13918 rm -f conftest.err conftest.$ac_ext
13919 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13920 echo "${ECHO_T}$ac_header_preproc" >&6
13921
13922 # So?  What about this header?
13923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13924   yes:no: )
13925     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13926 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13927     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13928 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13929     ac_header_preproc=yes
13930     ;;
13931   no:yes:* )
13932     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13934     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13938     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13939 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13940     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13941 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13942     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13943 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13944     (
13945       cat <<\_ASBOX
13946 ## ------------------------------------------ ##
13947 ## Report this to the AC_PACKAGE_NAME lists.  ##
13948 ## ------------------------------------------ ##
13949 _ASBOX
13950     ) |
13951       sed "s/^/$as_me: WARNING:     /" >&2
13952     ;;
13953 esac
13954 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13955 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13957   echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959   eval "$as_ac_Header=\$ac_header_preproc"
13960 fi
13961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13963
13964 fi
13965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13966
13967 cat >>confdefs.h <<\_ACEOF
13968 #define HAVE_READLINE 1
13969 _ACEOF
13970
13971                CONS_LIBS="-lreadline -lhistory -ltermcap"
13972                got_readline="yes"
13973
13974 else
13975    echo " "
13976                echo "readline.h not found. readline turned off ..."
13977                echo " "
13978
13979
13980 fi
13981
13982
13983           ;;
13984         esac
13985
13986 else
13987
13988        # check for standard readline library
13989        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13990   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13991 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13992 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 fi
13995 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13996 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13997 else
13998   # Is the header compilable?
13999 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14000 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14001 cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h.  */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h.  */
14007 $ac_includes_default
14008 #include </usr/include/readline/readline.h>
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012   (eval $ac_compile) 2>conftest.er1
14013   ac_status=$?
14014   grep -v '^ *+' conftest.er1 >conftest.err
14015   rm -f conftest.er1
14016   cat conftest.err >&5
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); } &&
14019          { ac_try='test -z "$ac_c_werror_flag"
14020                          || test ! -s conftest.err'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; } &&
14026          { ac_try='test -s conftest.$ac_objext'
14027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028   (eval $ac_try) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; }; then
14032   ac_header_compiler=yes
14033 else
14034   echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 ac_header_compiler=no
14038 fi
14039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 echo "${ECHO_T}$ac_header_compiler" >&6
14042
14043 # Is the header present?
14044 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14045 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h.  */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h.  */
14052 #include </usr/include/readline/readline.h>
14053 _ACEOF
14054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14056   ac_status=$?
14057   grep -v '^ *+' conftest.er1 >conftest.err
14058   rm -f conftest.er1
14059   cat conftest.err >&5
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); } >/dev/null; then
14062   if test -s conftest.err; then
14063     ac_cpp_err=$ac_c_preproc_warn_flag
14064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14065   else
14066     ac_cpp_err=
14067   fi
14068 else
14069   ac_cpp_err=yes
14070 fi
14071 if test -z "$ac_cpp_err"; then
14072   ac_header_preproc=yes
14073 else
14074   echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077   ac_header_preproc=no
14078 fi
14079 rm -f conftest.err conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14081 echo "${ECHO_T}$ac_header_preproc" >&6
14082
14083 # So?  What about this header?
14084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14085   yes:no: )
14086     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14087 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14088     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14089 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14090     ac_header_preproc=yes
14091     ;;
14092   no:yes:* )
14093     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14094 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14096 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14098 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14099     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14100 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14101     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14102 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14103     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14104 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14105     (
14106       cat <<\_ASBOX
14107 ## ------------------------------------------ ##
14108 ## Report this to the AC_PACKAGE_NAME lists.  ##
14109 ## ------------------------------------------ ##
14110 _ASBOX
14111     ) |
14112       sed "s/^/$as_me: WARNING:     /" >&2
14113     ;;
14114 esac
14115 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14116 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14117 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14121 fi
14122 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14123 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14124
14125 fi
14126 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14127
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_READLINE 1
14130 _ACEOF
14131
14132            got_readline="yes"
14133            CONS_INC="-I/usr/include/readline"
14134            CONS_LIBS="-lreadline -ltermcap"
14135
14136 else
14137
14138            # Did not find standard library, so try Bacula's default
14139             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14141   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14142 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14144   echo $ECHO_N "(cached) $ECHO_C" >&6
14145 fi
14146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14148 else
14149   # Is the header compilable?
14150 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14151 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14152 cat >conftest.$ac_ext <<_ACEOF
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158 $ac_includes_default
14159 #include <${TOP_DIR}/depkgs/readline/readline.h>
14160 _ACEOF
14161 rm -f conftest.$ac_objext
14162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163   (eval $ac_compile) 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } &&
14170          { ac_try='test -z "$ac_c_werror_flag"
14171                          || test ! -s conftest.err'
14172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173   (eval $ac_try) 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest.$ac_objext'
14178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179   (eval $ac_try) 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   ac_header_compiler=yes
14184 else
14185   echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188 ac_header_compiler=no
14189 fi
14190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14192 echo "${ECHO_T}$ac_header_compiler" >&6
14193
14194 # Is the header present?
14195 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14196 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h.  */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h.  */
14203 #include <${TOP_DIR}/depkgs/readline/readline.h>
14204 _ACEOF
14205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14207   ac_status=$?
14208   grep -v '^ *+' conftest.er1 >conftest.err
14209   rm -f conftest.er1
14210   cat conftest.err >&5
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } >/dev/null; then
14213   if test -s conftest.err; then
14214     ac_cpp_err=$ac_c_preproc_warn_flag
14215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14216   else
14217     ac_cpp_err=
14218   fi
14219 else
14220   ac_cpp_err=yes
14221 fi
14222 if test -z "$ac_cpp_err"; then
14223   ac_header_preproc=yes
14224 else
14225   echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228   ac_header_preproc=no
14229 fi
14230 rm -f conftest.err conftest.$ac_ext
14231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14232 echo "${ECHO_T}$ac_header_preproc" >&6
14233
14234 # So?  What about this header?
14235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14236   yes:no: )
14237     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14238 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14239     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14240 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14241     ac_header_preproc=yes
14242     ;;
14243   no:yes:* )
14244     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14246     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14248     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14250     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14251 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14252     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14253 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14254     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14255 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14256     (
14257       cat <<\_ASBOX
14258 ## ------------------------------------------ ##
14259 ## Report this to the AC_PACKAGE_NAME lists.  ##
14260 ## ------------------------------------------ ##
14261 _ASBOX
14262     ) |
14263       sed "s/^/$as_me: WARNING:     /" >&2
14264     ;;
14265 esac
14266 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14267 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271   eval "$as_ac_Header=\$ac_header_preproc"
14272 fi
14273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14275
14276 fi
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278
14279 cat >>confdefs.h <<\_ACEOF
14280 #define HAVE_READLINE 1
14281 _ACEOF
14282
14283                  got_readline="yes"
14284                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14285                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14286                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14287                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14288
14289 else
14290    echo " "
14291                 echo "readline.h not found. readline turned off ..."
14292                 echo " "
14293
14294
14295 fi
14296
14297
14298
14299
14300 fi
14301
14302
14303
14304
14305 fi;
14306 fi
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317 # Minimal stuff for readline Makefile configuration
14318 MAKE_SHELL=/bin/sh
14319
14320 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14321 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14322 if test "${ac_cv_header_stat_broken+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331 #include <sys/types.h>
14332 #include <sys/stat.h>
14333
14334 #if defined(S_ISBLK) && defined(S_IFDIR)
14335 # if S_ISBLK (S_IFDIR)
14336 You lose.
14337 # endif
14338 #endif
14339
14340 #if defined(S_ISBLK) && defined(S_IFCHR)
14341 # if S_ISBLK (S_IFCHR)
14342 You lose.
14343 # endif
14344 #endif
14345
14346 #if defined(S_ISLNK) && defined(S_IFREG)
14347 # if S_ISLNK (S_IFREG)
14348 You lose.
14349 # endif
14350 #endif
14351
14352 #if defined(S_ISSOCK) && defined(S_IFREG)
14353 # if S_ISSOCK (S_IFREG)
14354 You lose.
14355 # endif
14356 #endif
14357
14358 _ACEOF
14359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14360   $EGREP "You lose" >/dev/null 2>&1; then
14361   ac_cv_header_stat_broken=yes
14362 else
14363   ac_cv_header_stat_broken=no
14364 fi
14365 rm -f conftest*
14366
14367 fi
14368 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14369 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14370 if test $ac_cv_header_stat_broken = yes; then
14371
14372 cat >>confdefs.h <<\_ACEOF
14373 #define STAT_MACROS_BROKEN 1
14374 _ACEOF
14375
14376 fi
14377
14378
14379
14380
14381
14382
14383 ac_header_dirent=no
14384 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14385   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14386 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14387 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391   cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h.  */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h.  */
14397 #include <sys/types.h>
14398 #include <$ac_hdr>
14399
14400 int
14401 main ()
14402 {
14403 if ((DIR *) 0)
14404 return 0;
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411   (eval $ac_compile) 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -z "$ac_c_werror_flag"
14419                          || test ! -s conftest.err'
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); }; } &&
14425          { ac_try='test -s conftest.$ac_objext'
14426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427   (eval $ac_try) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431   eval "$as_ac_Header=yes"
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 eval "$as_ac_Header=no"
14437 fi
14438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14439 fi
14440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14443   cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14445 _ACEOF
14446
14447 ac_header_dirent=$ac_hdr; break
14448 fi
14449
14450 done
14451 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14452 if test $ac_header_dirent = dirent.h; then
14453   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14454 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14455 if test "${ac_cv_search_opendir+set}" = set; then
14456   echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14458   ac_func_search_save_LIBS=$LIBS
14459 ac_cv_search_opendir=no
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466
14467 /* Override any gcc2 internal prototype to avoid an error.  */
14468 #ifdef __cplusplus
14469 extern "C"
14470 #endif
14471 /* We use char because int might match the return type of a gcc2
14472    builtin and then its argument prototype would still apply.  */
14473 char opendir ();
14474 int
14475 main ()
14476 {
14477 opendir ();
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484   (eval $ac_link) 2>conftest.er1
14485   ac_status=$?
14486   grep -v '^ *+' conftest.er1 >conftest.err
14487   rm -f conftest.er1
14488   cat conftest.err >&5
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } &&
14491          { ac_try='test -z "$ac_c_werror_flag"
14492                          || test ! -s conftest.err'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; } &&
14498          { ac_try='test -s conftest$ac_exeext'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; }; then
14504   ac_cv_search_opendir="none required"
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 fi
14510 rm -f conftest.err conftest.$ac_objext \
14511       conftest$ac_exeext conftest.$ac_ext
14512 if test "$ac_cv_search_opendir" = no; then
14513   for ac_lib in dir; do
14514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14515     cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521
14522 /* Override any gcc2 internal prototype to avoid an error.  */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 /* We use char because int might match the return type of a gcc2
14527    builtin and then its argument prototype would still apply.  */
14528 char opendir ();
14529 int
14530 main ()
14531 {
14532 opendir ();
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539   (eval $ac_link) 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag"
14547                          || test ! -s conftest.err'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; } &&
14553          { ac_try='test -s conftest$ac_exeext'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   ac_cv_search_opendir="-l$ac_lib"
14560 break
14561 else
14562   echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 fi
14566 rm -f conftest.err conftest.$ac_objext \
14567       conftest$ac_exeext conftest.$ac_ext
14568   done
14569 fi
14570 LIBS=$ac_func_search_save_LIBS
14571 fi
14572 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14573 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14574 if test "$ac_cv_search_opendir" != no; then
14575   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14576
14577 fi
14578
14579 else
14580   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14581 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14582 if test "${ac_cv_search_opendir+set}" = set; then
14583   echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585   ac_func_search_save_LIBS=$LIBS
14586 ac_cv_search_opendir=no
14587 cat >conftest.$ac_ext <<_ACEOF
14588 /* confdefs.h.  */
14589 _ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h.  */
14593
14594 /* Override any gcc2 internal prototype to avoid an error.  */
14595 #ifdef __cplusplus
14596 extern "C"
14597 #endif
14598 /* We use char because int might match the return type of a gcc2
14599    builtin and then its argument prototype would still apply.  */
14600 char opendir ();
14601 int
14602 main ()
14603 {
14604 opendir ();
14605   ;
14606   return 0;
14607 }
14608 _ACEOF
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611   (eval $ac_link) 2>conftest.er1
14612   ac_status=$?
14613   grep -v '^ *+' conftest.er1 >conftest.err
14614   rm -f conftest.er1
14615   cat conftest.err >&5
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); } &&
14618          { ac_try='test -z "$ac_c_werror_flag"
14619                          || test ! -s conftest.err'
14620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621   (eval $ac_try) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; } &&
14625          { ac_try='test -s conftest$ac_exeext'
14626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627   (eval $ac_try) 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; }; then
14631   ac_cv_search_opendir="none required"
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636 fi
14637 rm -f conftest.err conftest.$ac_objext \
14638       conftest$ac_exeext conftest.$ac_ext
14639 if test "$ac_cv_search_opendir" = no; then
14640   for ac_lib in x; do
14641     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14642     cat >conftest.$ac_ext <<_ACEOF
14643 /* confdefs.h.  */
14644 _ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h.  */
14648
14649 /* Override any gcc2 internal prototype to avoid an error.  */
14650 #ifdef __cplusplus
14651 extern "C"
14652 #endif
14653 /* We use char because int might match the return type of a gcc2
14654    builtin and then its argument prototype would still apply.  */
14655 char opendir ();
14656 int
14657 main ()
14658 {
14659 opendir ();
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14666   (eval $ac_link) 2>conftest.er1
14667   ac_status=$?
14668   grep -v '^ *+' conftest.er1 >conftest.err
14669   rm -f conftest.er1
14670   cat conftest.err >&5
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); } &&
14673          { ac_try='test -z "$ac_c_werror_flag"
14674                          || test ! -s conftest.err'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; } &&
14680          { ac_try='test -s conftest$ac_exeext'
14681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682   (eval $ac_try) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; }; then
14686   ac_cv_search_opendir="-l$ac_lib"
14687 break
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 fi
14693 rm -f conftest.err conftest.$ac_objext \
14694       conftest$ac_exeext conftest.$ac_ext
14695   done
14696 fi
14697 LIBS=$ac_func_search_save_LIBS
14698 fi
14699 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14700 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14701 if test "$ac_cv_search_opendir" != no; then
14702   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14703
14704 fi
14705
14706 fi
14707
14708
14709
14710
14711
14712
14713
14714
14715 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14716 do
14717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14718 echo "$as_me:$LINENO: checking for $ac_func" >&5
14719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14720 if eval "test \"\${$as_ac_var+set}\" = set"; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h.  */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h.  */
14729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14731 #define $ac_func innocuous_$ac_func
14732
14733 /* System header to define __stub macros and hopefully few prototypes,
14734     which can conflict with char $ac_func (); below.
14735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14736     <limits.h> exists even on freestanding compilers.  */
14737
14738 #ifdef __STDC__
14739 # include <limits.h>
14740 #else
14741 # include <assert.h>
14742 #endif
14743
14744 #undef $ac_func
14745
14746 /* Override any gcc2 internal prototype to avoid an error.  */
14747 #ifdef __cplusplus
14748 extern "C"
14749 {
14750 #endif
14751 /* We use char because int might match the return type of a gcc2
14752    builtin and then its argument prototype would still apply.  */
14753 char $ac_func ();
14754 /* The GNU C library defines this for functions which it implements
14755     to always fail with ENOSYS.  Some functions are actually named
14756     something starting with __ and the normal name is an alias.  */
14757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14758 choke me
14759 #else
14760 char (*f) () = $ac_func;
14761 #endif
14762 #ifdef __cplusplus
14763 }
14764 #endif
14765
14766 int
14767 main ()
14768 {
14769 return f != $ac_func;
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776   (eval $ac_link) 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -z "$ac_c_werror_flag"
14784                          || test ! -s conftest.err'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; } &&
14790          { ac_try='test -s conftest$ac_exeext'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; }; then
14796   eval "$as_ac_var=yes"
14797 else
14798   echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 eval "$as_ac_var=no"
14802 fi
14803 rm -f conftest.err conftest.$ac_objext \
14804       conftest$ac_exeext conftest.$ac_ext
14805 fi
14806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14807 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14808 if test `eval echo '${'$as_ac_var'}'` = yes; then
14809   cat >>confdefs.h <<_ACEOF
14810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14811 _ACEOF
14812
14813 fi
14814 done
14815
14816
14817
14818 for ac_func in nanosleep nl_langinfo
14819 do
14820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14823 if eval "test \"\${$as_ac_var+set}\" = set"; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h.  */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h.  */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14834 #define $ac_func innocuous_$ac_func
14835
14836 /* System header to define __stub macros and hopefully few prototypes,
14837     which can conflict with char $ac_func (); below.
14838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839     <limits.h> exists even on freestanding compilers.  */
14840
14841 #ifdef __STDC__
14842 # include <limits.h>
14843 #else
14844 # include <assert.h>
14845 #endif
14846
14847 #undef $ac_func
14848
14849 /* Override any gcc2 internal prototype to avoid an error.  */
14850 #ifdef __cplusplus
14851 extern "C"
14852 {
14853 #endif
14854 /* We use char because int might match the return type of a gcc2
14855    builtin and then its argument prototype would still apply.  */
14856 char $ac_func ();
14857 /* The GNU C library defines this for functions which it implements
14858     to always fail with ENOSYS.  Some functions are actually named
14859     something starting with __ and the normal name is an alias.  */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14861 choke me
14862 #else
14863 char (*f) () = $ac_func;
14864 #endif
14865 #ifdef __cplusplus
14866 }
14867 #endif
14868
14869 int
14870 main ()
14871 {
14872 return f != $ac_func;
14873   ;
14874   return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879   (eval $ac_link) 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } &&
14886          { ac_try='test -z "$ac_c_werror_flag"
14887                          || test ! -s conftest.err'
14888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889   (eval $ac_try) 2>&5
14890   ac_status=$?
14891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892   (exit $ac_status); }; } &&
14893          { ac_try='test -s conftest$ac_exeext'
14894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895   (eval $ac_try) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); }; }; then
14899   eval "$as_ac_var=yes"
14900 else
14901   echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 eval "$as_ac_var=no"
14905 fi
14906 rm -f conftest.err conftest.$ac_objext \
14907       conftest$ac_exeext conftest.$ac_ext
14908 fi
14909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14911 if test `eval echo '${'$as_ac_var'}'` = yes; then
14912   cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14914 _ACEOF
14915
14916 fi
14917 done
14918
14919
14920 for ac_header in varargs.h
14921 do
14922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14924   echo "$as_me:$LINENO: checking for $ac_header" >&5
14925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 fi
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14931 else
14932   # Is the header compilable?
14933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941 $ac_includes_default
14942 #include <$ac_header>
14943 _ACEOF
14944 rm -f conftest.$ac_objext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14946   (eval $ac_compile) 2>conftest.er1
14947   ac_status=$?
14948   grep -v '^ *+' conftest.er1 >conftest.err
14949   rm -f conftest.er1
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); } &&
14953          { ac_try='test -z "$ac_c_werror_flag"
14954                          || test ! -s conftest.err'
14955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956   (eval $ac_try) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; } &&
14960          { ac_try='test -s conftest.$ac_objext'
14961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962   (eval $ac_try) 2>&5
14963   ac_status=$?
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); }; }; then
14966   ac_header_compiler=yes
14967 else
14968   echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971 ac_header_compiler=no
14972 fi
14973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14975 echo "${ECHO_T}$ac_header_compiler" >&6
14976
14977 # Is the header present?
14978 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986 #include <$ac_header>
14987 _ACEOF
14988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14990   ac_status=$?
14991   grep -v '^ *+' conftest.er1 >conftest.err
14992   rm -f conftest.er1
14993   cat conftest.err >&5
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } >/dev/null; then
14996   if test -s conftest.err; then
14997     ac_cpp_err=$ac_c_preproc_warn_flag
14998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14999   else
15000     ac_cpp_err=
15001   fi
15002 else
15003   ac_cpp_err=yes
15004 fi
15005 if test -z "$ac_cpp_err"; then
15006   ac_header_preproc=yes
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011   ac_header_preproc=no
15012 fi
15013 rm -f conftest.err conftest.$ac_ext
15014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 echo "${ECHO_T}$ac_header_preproc" >&6
15016
15017 # So?  What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15019   yes:no: )
15020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15024     ac_header_preproc=yes
15025     ;;
15026   no:yes:* )
15027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15039     (
15040       cat <<\_ASBOX
15041 ## ------------------------------------------ ##
15042 ## Report this to the AC_PACKAGE_NAME lists.  ##
15043 ## ------------------------------------------ ##
15044 _ASBOX
15045     ) |
15046       sed "s/^/$as_me: WARNING:     /" >&2
15047     ;;
15048 esac
15049 echo "$as_me:$LINENO: checking for $ac_header" >&5
15050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15052   echo $ECHO_N "(cached) $ECHO_C" >&6
15053 else
15054   eval "$as_ac_Header=\$ac_header_preproc"
15055 fi
15056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15058
15059 fi
15060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15061   cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15063 _ACEOF
15064
15065 fi
15066
15067 done
15068
15069
15070 # End of readline/conio stuff
15071 # -----------------------------------------------------------------------
15072
15073 # -----------------------------------------------------------------------
15074 #  Check for Python support
15075 #
15076 echo "$as_me:$LINENO: checking for Python support" >&5
15077 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15078
15079 # Check whether --with-python or --without-python was given.
15080 if test "${with_python+set}" = set; then
15081   withval="$with_python"
15082
15083   PYTHON_INCDIR=
15084   PYTHON_LIBS=
15085   if test "$withval" != "no"; then
15086      if test "$withval" = "yes"; then
15087         for python_root in /usr /usr/local /usr/sfw; do
15088           for ver in python2.2 python2.3 python2.4 python2.5; do
15089              if test -f $python_root/include/${ver}/Python.h; then
15090                 PYTHON_INCDIR=-I$python_root/include/${ver}
15091                 if test -d $python_root/lib64/${ver}/config; then
15092                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15093                 else
15094                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15095                 fi
15096                 break
15097              fi
15098           done
15099         done
15100         if test x$PYTHON_INCDIR = x; then
15101           if test -f $prefix/include/Python.h; then
15102              PYTHON_INCDIR=-I$prefix/include
15103              if test -d $prefix/lib64/config; then
15104                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15105              else
15106                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15107              fi
15108           else
15109            echo "$as_me:$LINENO: result: no" >&5
15110 echo "${ECHO_T}no" >&6
15111            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15112 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15113    { (exit 1); exit 1; }; }
15114           fi
15115         fi
15116      else
15117         if test -f $withval/Python.h; then
15118            PYTHON_INCDIR=-I$withval
15119            PYTHON_LIBS="-L$withval/config -lpython"
15120         elif test -f $withval/include/Python.h; then
15121            PYTHON_INCDIR=-I$withval/include
15122            if test -d $withval/lib64/config; then
15123               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15124            else
15125               PYTHON_LIBS="-L$withval/lib/config -lpython"
15126            fi
15127         elif test -f $withval/include/python/Python.h; then
15128            PYTHON_INCDIR=-I$withval/include/python
15129            if test -d $withval/lib64/python/config; then
15130               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15131            else
15132               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15133            fi
15134         else
15135            echo "$as_me:$LINENO: result: no" >&5
15136 echo "${ECHO_T}no" >&6
15137            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15138 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15139    { (exit 1); exit 1; }; }
15140         fi
15141      fi
15142      cat >>confdefs.h <<\_ACEOF
15143 #define HAVE_PYTHON 1
15144 _ACEOF
15145
15146      echo "$as_me:$LINENO: result: yes" >&5
15147 echo "${ECHO_T}yes" >&6
15148      support_python=yes
15149      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15150 echo "$as_me: checking for more Python libs" >&6;}
15151      saved_LIBS="$LIBS"; LIBS=
15152      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15153 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15154 if test "${ac_cv_search_shm_open+set}" = set; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   ac_func_search_save_LIBS=$LIBS
15158 ac_cv_search_shm_open=no
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165
15166 /* Override any gcc2 internal prototype to avoid an error.  */
15167 #ifdef __cplusplus
15168 extern "C"
15169 #endif
15170 /* We use char because int might match the return type of a gcc2
15171    builtin and then its argument prototype would still apply.  */
15172 char shm_open ();
15173 int
15174 main ()
15175 {
15176 shm_open ();
15177   ;
15178   return 0;
15179 }
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183   (eval $ac_link) 2>conftest.er1
15184   ac_status=$?
15185   grep -v '^ *+' conftest.er1 >conftest.err
15186   rm -f conftest.er1
15187   cat conftest.err >&5
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } &&
15190          { ac_try='test -z "$ac_c_werror_flag"
15191                          || test ! -s conftest.err'
15192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193   (eval $ac_try) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; } &&
15197          { ac_try='test -s conftest$ac_exeext'
15198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199   (eval $ac_try) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); }; }; then
15203   ac_cv_search_shm_open="none required"
15204 else
15205   echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 fi
15209 rm -f conftest.err conftest.$ac_objext \
15210       conftest$ac_exeext conftest.$ac_ext
15211 if test "$ac_cv_search_shm_open" = no; then
15212   for ac_lib in rt; do
15213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15214     cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220
15221 /* Override any gcc2 internal prototype to avoid an error.  */
15222 #ifdef __cplusplus
15223 extern "C"
15224 #endif
15225 /* We use char because int might match the return type of a gcc2
15226    builtin and then its argument prototype would still apply.  */
15227 char shm_open ();
15228 int
15229 main ()
15230 {
15231 shm_open ();
15232   ;
15233   return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238   (eval $ac_link) 2>conftest.er1
15239   ac_status=$?
15240   grep -v '^ *+' conftest.er1 >conftest.err
15241   rm -f conftest.er1
15242   cat conftest.err >&5
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } &&
15245          { ac_try='test -z "$ac_c_werror_flag"
15246                          || test ! -s conftest.err'
15247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248   (eval $ac_try) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; } &&
15252          { ac_try='test -s conftest$ac_exeext'
15253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254   (eval $ac_try) 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   ac_cv_search_shm_open="-l$ac_lib"
15259 break
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264 fi
15265 rm -f conftest.err conftest.$ac_objext \
15266       conftest$ac_exeext conftest.$ac_ext
15267   done
15268 fi
15269 LIBS=$ac_func_search_save_LIBS
15270 fi
15271 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15272 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15273 if test "$ac_cv_search_shm_open" != no; then
15274   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15275
15276 fi
15277
15278
15279 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15280 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15281 if test "${ac_cv_lib_util_openpty+set}" = set; then
15282   echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284   ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-lutil  $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292
15293 /* Override any gcc2 internal prototype to avoid an error.  */
15294 #ifdef __cplusplus
15295 extern "C"
15296 #endif
15297 /* We use char because int might match the return type of a gcc2
15298    builtin and then its argument prototype would still apply.  */
15299 char openpty ();
15300 int
15301 main ()
15302 {
15303 openpty ();
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15310   (eval $ac_link) 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } &&
15317          { ac_try='test -z "$ac_c_werror_flag"
15318                          || test ! -s conftest.err'
15319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320   (eval $ac_try) 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; } &&
15324          { ac_try='test -s conftest$ac_exeext'
15325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326   (eval $ac_try) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; }; then
15330   ac_cv_lib_util_openpty=yes
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 ac_cv_lib_util_openpty=no
15336 fi
15337 rm -f conftest.err conftest.$ac_objext \
15338       conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15340 fi
15341 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15342 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15343 if test $ac_cv_lib_util_openpty = yes; then
15344   cat >>confdefs.h <<_ACEOF
15345 #define HAVE_LIBUTIL 1
15346 _ACEOF
15347
15348   LIBS="-lutil $LIBS"
15349
15350 fi
15351
15352      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15353      LIBS="$saved_LIBS"
15354   else
15355      echo "$as_me:$LINENO: result: no" >&5
15356 echo "${ECHO_T}no" >&6
15357   fi
15358
15359 else
15360
15361   echo "$as_me:$LINENO: result: no" >&5
15362 echo "${ECHO_T}no" >&6
15363
15364 fi;
15365
15366
15367
15368 #
15369 # Find where sockets are (especially for Solaris)
15370 # Do this before the TCP Wrappers test since tcp wrappers
15371 # uses the socket library and some linkers are stupid.
15372 #
15373 echo "$as_me:$LINENO: checking for socket" >&5
15374 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15375 if test "${ac_cv_func_socket+set}" = set; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378   cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h.  */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h.  */
15384 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15386 #define socket innocuous_socket
15387
15388 /* System header to define __stub macros and hopefully few prototypes,
15389     which can conflict with char socket (); below.
15390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15391     <limits.h> exists even on freestanding compilers.  */
15392
15393 #ifdef __STDC__
15394 # include <limits.h>
15395 #else
15396 # include <assert.h>
15397 #endif
15398
15399 #undef socket
15400
15401 /* Override any gcc2 internal prototype to avoid an error.  */
15402 #ifdef __cplusplus
15403 extern "C"
15404 {
15405 #endif
15406 /* We use char because int might match the return type of a gcc2
15407    builtin and then its argument prototype would still apply.  */
15408 char socket ();
15409 /* The GNU C library defines this for functions which it implements
15410     to always fail with ENOSYS.  Some functions are actually named
15411     something starting with __ and the normal name is an alias.  */
15412 #if defined (__stub_socket) || defined (__stub___socket)
15413 choke me
15414 #else
15415 char (*f) () = socket;
15416 #endif
15417 #ifdef __cplusplus
15418 }
15419 #endif
15420
15421 int
15422 main ()
15423 {
15424 return f != socket;
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431   (eval $ac_link) 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_c_werror_flag"
15439                          || test ! -s conftest.err'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; } &&
15445          { ac_try='test -s conftest$ac_exeext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   ac_cv_func_socket=yes
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_cv_func_socket=no
15457 fi
15458 rm -f conftest.err conftest.$ac_objext \
15459       conftest$ac_exeext conftest.$ac_ext
15460 fi
15461 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15462 echo "${ECHO_T}$ac_cv_func_socket" >&6
15463 if test $ac_cv_func_socket = yes; then
15464   echo "$as_me:$LINENO: result: using libc's socket" >&5
15465 echo "${ECHO_T}using libc's socket" >&6
15466 else
15467
15468 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15469 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15470 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15471   echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473   ac_check_lib_save_LIBS=$LIBS
15474 LIBS="-lxnet  $LIBS"
15475 cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h.  */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h.  */
15481
15482 /* Override any gcc2 internal prototype to avoid an error.  */
15483 #ifdef __cplusplus
15484 extern "C"
15485 #endif
15486 /* We use char because int might match the return type of a gcc2
15487    builtin and then its argument prototype would still apply.  */
15488 char socket ();
15489 int
15490 main ()
15491 {
15492 socket ();
15493   ;
15494   return 0;
15495 }
15496 _ACEOF
15497 rm -f conftest.$ac_objext conftest$ac_exeext
15498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15499   (eval $ac_link) 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } &&
15506          { ac_try='test -z "$ac_c_werror_flag"
15507                          || test ! -s conftest.err'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; } &&
15513          { ac_try='test -s conftest$ac_exeext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   ac_cv_lib_xnet_socket=yes
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 ac_cv_lib_xnet_socket=no
15525 fi
15526 rm -f conftest.err conftest.$ac_objext \
15527       conftest$ac_exeext conftest.$ac_ext
15528 LIBS=$ac_check_lib_save_LIBS
15529 fi
15530 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15531 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15532 if test $ac_cv_lib_xnet_socket = yes; then
15533   cat >>confdefs.h <<_ACEOF
15534 #define HAVE_LIBXNET 1
15535 _ACEOF
15536
15537   LIBS="-lxnet $LIBS"
15538
15539 fi
15540
15541
15542 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15543 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15544 if test "${ac_cv_lib_socket_socket+set}" = set; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-lsocket  $LIBS"
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555
15556 /* Override any gcc2 internal prototype to avoid an error.  */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 /* We use char because int might match the return type of a gcc2
15561    builtin and then its argument prototype would still apply.  */
15562 char socket ();
15563 int
15564 main ()
15565 {
15566 socket ();
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15573   (eval $ac_link) 2>conftest.er1
15574   ac_status=$?
15575   grep -v '^ *+' conftest.er1 >conftest.err
15576   rm -f conftest.er1
15577   cat conftest.err >&5
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); } &&
15580          { ac_try='test -z "$ac_c_werror_flag"
15581                          || test ! -s conftest.err'
15582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583   (eval $ac_try) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); }; } &&
15587          { ac_try='test -s conftest$ac_exeext'
15588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589   (eval $ac_try) 2>&5
15590   ac_status=$?
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); }; }; then
15593   ac_cv_lib_socket_socket=yes
15594 else
15595   echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598 ac_cv_lib_socket_socket=no
15599 fi
15600 rm -f conftest.err conftest.$ac_objext \
15601       conftest$ac_exeext conftest.$ac_ext
15602 LIBS=$ac_check_lib_save_LIBS
15603 fi
15604 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15605 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15606 if test $ac_cv_lib_socket_socket = yes; then
15607   cat >>confdefs.h <<_ACEOF
15608 #define HAVE_LIBSOCKET 1
15609 _ACEOF
15610
15611   LIBS="-lsocket $LIBS"
15612
15613 fi
15614
15615
15616 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15617 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15618 if test "${ac_cv_lib_inet_socket+set}" = set; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   ac_check_lib_save_LIBS=$LIBS
15622 LIBS="-linet  $LIBS"
15623 cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629
15630 /* Override any gcc2 internal prototype to avoid an error.  */
15631 #ifdef __cplusplus
15632 extern "C"
15633 #endif
15634 /* We use char because int might match the return type of a gcc2
15635    builtin and then its argument prototype would still apply.  */
15636 char socket ();
15637 int
15638 main ()
15639 {
15640 socket ();
15641   ;
15642   return 0;
15643 }
15644 _ACEOF
15645 rm -f conftest.$ac_objext conftest$ac_exeext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15647   (eval $ac_link) 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag"
15655                          || test ! -s conftest.err'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; } &&
15661          { ac_try='test -s conftest$ac_exeext'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667   ac_cv_lib_inet_socket=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 ac_cv_lib_inet_socket=no
15673 fi
15674 rm -f conftest.err conftest.$ac_objext \
15675       conftest$ac_exeext conftest.$ac_ext
15676 LIBS=$ac_check_lib_save_LIBS
15677 fi
15678 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15679 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15680 if test $ac_cv_lib_inet_socket = yes; then
15681   cat >>confdefs.h <<_ACEOF
15682 #define HAVE_LIBINET 1
15683 _ACEOF
15684
15685   LIBS="-linet $LIBS"
15686
15687 fi
15688
15689 fi
15690
15691
15692
15693 # -----------------------------------------------------------
15694 # Check whether user wants TCP wrappers support (default off)
15695 # -----------------------------------------------------------
15696 TCPW_MSG="no"
15697 WRAPLIBS=""
15698
15699 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15700 if test "${with_tcp_wrappers+set}" = set; then
15701   withval="$with_tcp_wrappers"
15702
15703     if test "x$withval" != "xno" ; then
15704        saved_LIBS="$LIBS"
15705        LIBS="$saved_LIBS -lwrap"
15706        echo "$as_me:$LINENO: checking for libwrap" >&5
15707 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15708        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15709 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15710 if test "${ac_cv_search_nanosleep+set}" = set; then
15711   echo $ECHO_N "(cached) $ECHO_C" >&6
15712 else
15713   ac_func_search_save_LIBS=$LIBS
15714 ac_cv_search_nanosleep=no
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721
15722 /* Override any gcc2 internal prototype to avoid an error.  */
15723 #ifdef __cplusplus
15724 extern "C"
15725 #endif
15726 /* We use char because int might match the return type of a gcc2
15727    builtin and then its argument prototype would still apply.  */
15728 char nanosleep ();
15729 int
15730 main ()
15731 {
15732 nanosleep ();
15733   ;
15734   return 0;
15735 }
15736 _ACEOF
15737 rm -f conftest.$ac_objext conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739   (eval $ac_link) 2>conftest.er1
15740   ac_status=$?
15741   grep -v '^ *+' conftest.er1 >conftest.err
15742   rm -f conftest.er1
15743   cat conftest.err >&5
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); } &&
15746          { ac_try='test -z "$ac_c_werror_flag"
15747                          || test ! -s conftest.err'
15748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749   (eval $ac_try) 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; } &&
15753          { ac_try='test -s conftest$ac_exeext'
15754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755   (eval $ac_try) 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; }; then
15759   ac_cv_search_nanosleep="none required"
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 fi
15765 rm -f conftest.err conftest.$ac_objext \
15766       conftest$ac_exeext conftest.$ac_ext
15767 if test "$ac_cv_search_nanosleep" = no; then
15768   for ac_lib in rt; do
15769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15770     cat >conftest.$ac_ext <<_ACEOF
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776
15777 /* Override any gcc2 internal prototype to avoid an error.  */
15778 #ifdef __cplusplus
15779 extern "C"
15780 #endif
15781 /* We use char because int might match the return type of a gcc2
15782    builtin and then its argument prototype would still apply.  */
15783 char nanosleep ();
15784 int
15785 main ()
15786 {
15787 nanosleep ();
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794   (eval $ac_link) 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } &&
15801          { ac_try='test -z "$ac_c_werror_flag"
15802                          || test ! -s conftest.err'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; } &&
15808          { ac_try='test -s conftest$ac_exeext'
15809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810   (eval $ac_try) 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; }; then
15814   ac_cv_search_nanosleep="-l$ac_lib"
15815 break
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 fi
15821 rm -f conftest.err conftest.$ac_objext \
15822       conftest$ac_exeext conftest.$ac_ext
15823   done
15824 fi
15825 LIBS=$ac_func_search_save_LIBS
15826 fi
15827 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15828 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15829 if test "$ac_cv_search_nanosleep" != no; then
15830   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15831
15832 fi
15833
15834        cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h.  */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h.  */
15840  #include <sys/types.h>
15841             #include <tcpd.h>
15842              int deny_severity = 0;
15843              int allow_severity = 0;
15844              struct request_info *req;
15845 int
15846 main ()
15847 {
15848  hosts_access(req);
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855   (eval $ac_link) 2>conftest.er1
15856   ac_status=$?
15857   grep -v '^ *+' conftest.er1 >conftest.err
15858   rm -f conftest.er1
15859   cat conftest.err >&5
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); } &&
15862          { ac_try='test -z "$ac_c_werror_flag"
15863                          || test ! -s conftest.err'
15864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865   (eval $ac_try) 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; } &&
15869          { ac_try='test -s conftest$ac_exeext'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875
15876             echo "$as_me:$LINENO: result: yes" >&5
15877 echo "${ECHO_T}yes" >&6
15878
15879 cat >>confdefs.h <<\_ACEOF
15880 #define HAVE_LIBWRAP 1
15881 _ACEOF
15882
15883             TCPW_MSG="yes"
15884             LIBS="$saved_LIBS"
15885             WRAPLIBS="-lwrap"
15886
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891
15892             LIBS="$saved_LIBS -lwrap -lnsl"
15893             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15894             cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900  #include <sys/types.h>
15901                  #include <tcpd.h>
15902                  int deny_severity = 0;
15903                  int allow_severity = 0;
15904                  struct request_info *req;
15905 int
15906 main ()
15907 {
15908  hosts_access(req);
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915   (eval $ac_link) 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } &&
15922          { ac_try='test -z "$ac_c_werror_flag"
15923                          || test ! -s conftest.err'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; } &&
15929          { ac_try='test -s conftest$ac_exeext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935
15936                  echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6
15938
15939 cat >>confdefs.h <<\_ACEOF
15940 #define HAVE_LIBWRAP 1
15941 _ACEOF
15942
15943                  TCPW_MSG="yes"
15944                  LIBS="$saved_LIBS"
15945                  WRAPLIBS="-lwrap"
15946
15947 else
15948   echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15952 echo "$as_me: error: *** libwrap missing" >&2;}
15953    { (exit 1); exit 1; }; }
15954
15955 fi
15956 rm -f conftest.err conftest.$ac_objext \
15957       conftest$ac_exeext conftest.$ac_ext
15958
15959 fi
15960 rm -f conftest.err conftest.$ac_objext \
15961       conftest$ac_exeext conftest.$ac_ext
15962     fi
15963
15964
15965 fi;
15966
15967 # -----------------------------------------------------------
15968 # Check whether OpenSSL is available
15969 # -----------------------------------------------------------
15970 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15971 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15972
15973 # Check whether --with-openssl or --without-openssl was given.
15974 if test "${with_openssl+set}" = set; then
15975   withval="$with_openssl"
15976   with_openssl_directory=${withval}
15977 fi;
15978
15979 if test "x$with_openssl_directory" != "x"; then
15980         OPENSSL_LIBS="-lssl -lcrypto"
15981         OPENSSL_INC=""
15982
15983         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15984                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15985                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15986         fi
15987
15988         saved_LIBS="${LIBS}"
15989         saved_CFLAGS="${CFLAGS}"
15990         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15991         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15992
15993         cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h.  */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h.  */
15999  #include <openssl/ssl.h>
16000 int
16001 main ()
16002 {
16003  CRYPTO_set_id_callback(NULL);
16004   ;
16005   return 0;
16006 }
16007 _ACEOF
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010   (eval $ac_link) 2>conftest.er1
16011   ac_status=$?
16012   grep -v '^ *+' conftest.er1 >conftest.err
16013   rm -f conftest.er1
16014   cat conftest.err >&5
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); } &&
16017          { ac_try='test -z "$ac_c_werror_flag"
16018                          || test ! -s conftest.err'
16019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020   (eval $ac_try) 2>&5
16021   ac_status=$?
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); }; } &&
16024          { ac_try='test -s conftest$ac_exeext'
16025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026   (eval $ac_try) 2>&5
16027   ac_status=$?
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); }; }; then
16030
16031                         support_tls="yes"
16032                         support_crypto="yes"
16033
16034 else
16035   echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038  support_tls="no"
16039
16040 fi
16041 rm -f conftest.err conftest.$ac_objext \
16042       conftest$ac_exeext conftest.$ac_ext
16043
16044         cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h.  */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h.  */
16050  #include <openssl/evp.h>
16051 int
16052 main ()
16053 {
16054  EVP_sha512();
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16061   (eval $ac_link) 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } &&
16068          { ac_try='test -z "$ac_c_werror_flag"
16069                          || test ! -s conftest.err'
16070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071   (eval $ac_try) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); }; } &&
16075          { ac_try='test -s conftest$ac_exeext'
16076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077   (eval $ac_try) 2>&5
16078   ac_status=$?
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); }; }; then
16081    ac_cv_openssl_sha2="yes"
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086  ac_cv_openssl_sha2="no"
16087
16088 fi
16089 rm -f conftest.err conftest.$ac_objext \
16090       conftest$ac_exeext conftest.$ac_ext
16091
16092         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16093         # implementation, presumably for export reasons. If 192bit AES
16094         # is available, we assume that we're running with a 'non-export'
16095         # openssl library.
16096         cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h.  */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h.  */
16102  #include <openssl/evp.h>
16103 int
16104 main ()
16105 {
16106  EVP_aes_192_cbc();
16107   ;
16108   return 0;
16109 }
16110 _ACEOF
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16113   (eval $ac_link) 2>conftest.er1
16114   ac_status=$?
16115   grep -v '^ *+' conftest.er1 >conftest.err
16116   rm -f conftest.er1
16117   cat conftest.err >&5
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); } &&
16120          { ac_try='test -z "$ac_c_werror_flag"
16121                          || test ! -s conftest.err'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; } &&
16127          { ac_try='test -s conftest$ac_exeext'
16128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129   (eval $ac_try) 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; }; then
16133    ac_cv_openssl_export="no"
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138  ac_cv_openssl_export="yes"
16139
16140 fi
16141 rm -f conftest.err conftest.$ac_objext \
16142       conftest$ac_exeext conftest.$ac_ext
16143
16144         LIBS="${saved_LIBS}"
16145         CFLAGS="${saved_CFLAGS}"
16146
16147         if test "$support_tls" = "yes"; then
16148
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_OPENSSL 1
16151 _ACEOF
16152
16153
16154 cat >>confdefs.h <<\_ACEOF
16155 #define HAVE_TLS 1
16156 _ACEOF
16157
16158
16159 cat >>confdefs.h <<\_ACEOF
16160 #define HAVE_CRYPTO 1
16161 _ACEOF
16162
16163         fi
16164
16165         if test "$ac_cv_openssl_sha2" = "yes"; then
16166
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE_SHA2 1
16169 _ACEOF
16170
16171         fi
16172
16173         if test "$ac_cv_openssl_export" = "yes"; then
16174
16175 cat >>confdefs.h <<\_ACEOF
16176 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16177 _ACEOF
16178
16179         fi
16180 else
16181         support_tls="no"
16182         support_crypto="no"
16183         OPENSSL_LIBS=""
16184         OPENSSL_INC=""
16185 fi
16186
16187 echo "$as_me:$LINENO: result: $support_tls" >&5
16188 echo "${ECHO_T}$support_tls" >&6
16189
16190
16191
16192
16193 # -----------------------------------------------------------
16194 # Python and OpenSSL are using dlopen
16195 # -----------------------------------------------------------
16196
16197 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16198    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16199 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16200 if test "${ac_cv_search_dlopen+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   ac_func_search_save_LIBS=$LIBS
16204 ac_cv_search_dlopen=no
16205 cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h.  */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h.  */
16211
16212 /* Override any gcc2 internal prototype to avoid an error.  */
16213 #ifdef __cplusplus
16214 extern "C"
16215 #endif
16216 /* We use char because int might match the return type of a gcc2
16217    builtin and then its argument prototype would still apply.  */
16218 char dlopen ();
16219 int
16220 main ()
16221 {
16222 dlopen ();
16223   ;
16224   return 0;
16225 }
16226 _ACEOF
16227 rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16229   (eval $ac_link) 2>conftest.er1
16230   ac_status=$?
16231   grep -v '^ *+' conftest.er1 >conftest.err
16232   rm -f conftest.er1
16233   cat conftest.err >&5
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); } &&
16236          { ac_try='test -z "$ac_c_werror_flag"
16237                          || test ! -s conftest.err'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; } &&
16243          { ac_try='test -s conftest$ac_exeext'
16244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245   (eval $ac_try) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   ac_cv_search_dlopen="none required"
16250 else
16251   echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 fi
16255 rm -f conftest.err conftest.$ac_objext \
16256       conftest$ac_exeext conftest.$ac_ext
16257 if test "$ac_cv_search_dlopen" = no; then
16258   for ac_lib in dl; do
16259     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16260     cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266
16267 /* Override any gcc2 internal prototype to avoid an error.  */
16268 #ifdef __cplusplus
16269 extern "C"
16270 #endif
16271 /* We use char because int might match the return type of a gcc2
16272    builtin and then its argument prototype would still apply.  */
16273 char dlopen ();
16274 int
16275 main ()
16276 {
16277 dlopen ();
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284   (eval $ac_link) 2>conftest.er1
16285   ac_status=$?
16286   grep -v '^ *+' conftest.er1 >conftest.err
16287   rm -f conftest.er1
16288   cat conftest.err >&5
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); } &&
16291          { ac_try='test -z "$ac_c_werror_flag"
16292                          || test ! -s conftest.err'
16293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294   (eval $ac_try) 2>&5
16295   ac_status=$?
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); }; } &&
16298          { ac_try='test -s conftest$ac_exeext'
16299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300   (eval $ac_try) 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; }; then
16304   ac_cv_search_dlopen="-l$ac_lib"
16305 break
16306 else
16307   echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310 fi
16311 rm -f conftest.err conftest.$ac_objext \
16312       conftest$ac_exeext conftest.$ac_ext
16313   done
16314 fi
16315 LIBS=$ac_func_search_save_LIBS
16316 fi
16317 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16318 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16319 if test "$ac_cv_search_dlopen" != no; then
16320   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16321
16322 fi
16323
16324 fi
16325
16326 # ------------------------------------------
16327 # Where to place working dir
16328 # ------------------------------------------
16329 working_dir=`eval echo ${prefix}/var/bacula/working`
16330
16331 # Check whether --with-working-dir or --without-working-dir was given.
16332 if test "${with_working_dir+set}" = set; then
16333   withval="$with_working_dir"
16334
16335        if test "x$withval" != "xno" ; then
16336               working_dir=$withval
16337        fi
16338
16339
16340 fi;
16341
16342
16343
16344
16345 # ------------------------------------------
16346 # Where to place scriptdir (script files)
16347 # ------------------------------------------
16348 scriptdir=`eval echo ${sysconfdir}`
16349
16350 # Check whether --with-scriptdir or --without-scriptdir was given.
16351 if test "${with_scriptdir+set}" = set; then
16352   withval="$with_scriptdir"
16353
16354        if test "x$withval" != "xno" ; then
16355               scriptdir=$withval
16356        fi
16357
16358
16359 fi;
16360
16361
16362
16363
16364 # ------------------------------------------
16365 # Where to send dump email
16366 # ------------------------------------------
16367 dump_email=root@localhost
16368
16369 # Check whether --with-dump-email or --without-dump-email was given.
16370 if test "${with_dump_email+set}" = set; then
16371   withval="$with_dump_email"
16372
16373        if test "x$withval" != "xno" ; then
16374               dump_email=$withval
16375        fi
16376
16377
16378 fi;
16379
16380
16381
16382 # ------------------------------------------
16383 # Where to send job email
16384 # ------------------------------------------
16385 job_email=root@localhost
16386
16387 # Check whether --with-job-email or --without-job-email was given.
16388 if test "${with_job_email+set}" = set; then
16389   withval="$with_job_email"
16390
16391        if test "x$withval" != "xno" ; then
16392               job_email=$withval
16393        fi
16394
16395
16396 fi;
16397
16398
16399
16400 # ------------------------------------------
16401 # Where to find smtp host
16402 # ------------------------------------------
16403 smtp_host=localhost
16404
16405 # Check whether --with-smtp_host or --without-smtp_host was given.
16406 if test "${with_smtp_host+set}" = set; then
16407   withval="$with_smtp_host"
16408
16409        if test "x$withval" != "xno" ; then
16410               smtp_host=$withval
16411        fi
16412
16413
16414 fi;
16415
16416
16417
16418
16419 # ------------------------------------
16420 # Where to place pid files
16421 # ------------------------------------
16422 piddir=/var/run
16423
16424 # Check whether --with-pid-dir or --without-pid-dir was given.
16425 if test "${with_pid_dir+set}" = set; then
16426   withval="$with_pid_dir"
16427
16428         if test "x$withval" != "xno" ; then
16429             piddir=$withval
16430         fi
16431
16432
16433 fi;
16434
16435 cat >>confdefs.h <<_ACEOF
16436 #define _PATH_BACULA_PIDDIR "$piddir"
16437 _ACEOF
16438
16439
16440
16441
16442 # ------------------------------------
16443 # Where to place subsys "lock file"
16444 # ------------------------------------
16445 subsysdir=/var/run/subsys
16446 if test -d /var/run/subsys; then
16447    subsysdir=/var/run/subsys
16448 elif test -d /var/lock/subsys; then
16449    subsysdir=/var/lock/subsys
16450 else
16451    subsysdir=/var/run/subsys
16452 fi
16453
16454 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16455 if test "${with_subsys_dir+set}" = set; then
16456   withval="$with_subsys_dir"
16457
16458         if test "x$withval" != "xno" ; then
16459             subsysdir=$withval
16460         fi
16461
16462
16463 fi;
16464
16465
16466
16467
16468
16469 # ------------------------------------
16470 # Where to start assigning ports
16471 # ------------------------------------
16472 baseport=9101
16473
16474 # Check whether --with-baseport or --without-baseport was given.
16475 if test "${with_baseport+set}" = set; then
16476   withval="$with_baseport"
16477
16478         if test "x$withval" != "xno" ; then
16479              baseport=$withval
16480         fi
16481
16482
16483 fi;
16484
16485
16486 dir_port=`expr $baseport`
16487 fd_port=`expr $baseport + 1`
16488 sd_port=`expr $fd_port + 1`
16489
16490
16491
16492
16493
16494
16495 # ------------------------------------------
16496 # Generate passwords
16497 # ------------------------------------------
16498 dir_password=
16499
16500 # Check whether --with-dir-password or --without-dir-password was given.
16501 if test "${with_dir_password+set}" = set; then
16502   withval="$with_dir_password"
16503
16504        if test "x$withval" != "xno" ; then
16505            dir_password=$withval
16506        fi
16507
16508
16509 fi;
16510
16511 if test "x$dir_password" = "x" ; then
16512    if test "x$OPENSSL" = "xnone" ; then
16513       key=`autoconf/randpass 33`
16514    else
16515       key=`openssl rand -base64 33`
16516    fi
16517    dir_password=$key
16518 fi
16519
16520 fd_password=
16521
16522 # Check whether --with-fd-password or --without-fd-password was given.
16523 if test "${with_fd_password+set}" = set; then
16524   withval="$with_fd_password"
16525
16526        if test "x$withval" != "xno" ; then
16527            fd_password=$withval
16528        fi
16529
16530
16531 fi;
16532
16533 if test "x$fd_password" = "x" ; then
16534    if test "x$OPENSSL" = "xnone" ; then
16535       key=`autoconf/randpass 37`
16536    else
16537       key=`openssl rand -base64 33`
16538    fi
16539    fd_password=$key
16540 fi
16541
16542 sd_password=
16543
16544 # Check whether --with-sd-password or --without-sd-password was given.
16545 if test "${with_sd_password+set}" = set; then
16546   withval="$with_sd_password"
16547
16548        if test "x$withval" != "xno" ; then
16549            sd_password=$withval
16550        fi
16551
16552
16553 fi;
16554
16555 if test "x$sd_password" = "x" ; then
16556    if test "x$OPENSSL" = "xnone" ; then
16557       key=`autoconf/randpass 41`
16558    else
16559       key=`openssl rand -base64 33`
16560    fi
16561    sd_password=$key
16562 fi
16563
16564 mon_dir_password=
16565
16566 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16567 if test "${with_mon_dir_password+set}" = set; then
16568   withval="$with_mon_dir_password"
16569
16570        if test "x$withval" != "xno" ; then
16571            mon_dir_password=$withval
16572        fi
16573
16574
16575 fi;
16576
16577 if test "x$mon_dir_password" = "x" ; then
16578    if test "x$OPENSSL" = "xnone" ; then
16579       key=`autoconf/randpass 33`
16580    else
16581       key=`openssl rand -base64 33`
16582    fi
16583    mon_dir_password=$key
16584 fi
16585
16586 mon_fd_password=
16587
16588 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16589 if test "${with_mon_fd_password+set}" = set; then
16590   withval="$with_mon_fd_password"
16591
16592        if test "x$withval" != "xno" ; then
16593            mon_fd_password=$withval
16594        fi
16595
16596
16597 fi;
16598
16599 if test "x$mon_fd_password" = "x" ; then
16600    if test "x$OPENSSL" = "xnone" ; then
16601       key=`autoconf/randpass 37`
16602    else
16603       key=`openssl rand -base64 33`
16604    fi
16605    mon_fd_password=$key
16606 fi
16607
16608 mon_sd_password=
16609
16610 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16611 if test "${with_mon_sd_password+set}" = set; then
16612   withval="$with_mon_sd_password"
16613
16614        if test "x$withval" != "xno" ; then
16615            mon_sd_password=$withval
16616        fi
16617
16618
16619 fi;
16620
16621 if test "x$mon_sd_password" = "x" ; then
16622    if test "x$OPENSSL" = "xnone" ; then
16623       key=`autoconf/randpass 41`
16624    else
16625       key=`openssl rand -base64 33`
16626    fi
16627    mon_sd_password=$key
16628 fi
16629
16630
16631
16632
16633
16634
16635
16636
16637 #
16638 # Pickup any database name
16639 #
16640 db_name=bacula
16641
16642 # Check whether --with-db_name or --without-db_name was given.
16643 if test "${with_db_name+set}" = set; then
16644   withval="$with_db_name"
16645
16646         if test "x$withval" != "x" ; then
16647              db_name=$withval
16648         fi
16649
16650
16651 fi;
16652
16653
16654 db_user=bacula
16655
16656 # Check whether --with-db_user or --without-db_user was given.
16657 if test "${with_db_user+set}" = set; then
16658   withval="$with_db_user"
16659
16660         if test "x$withval" != "x" ; then
16661              db_user=$withval
16662         fi
16663
16664
16665 fi;
16666
16667
16668
16669 #
16670 # Handle users and groups for each daemon
16671 #
16672 dir_user=
16673
16674 # Check whether --with-dir_user or --without-dir_user was given.
16675 if test "${with_dir_user+set}" = set; then
16676   withval="$with_dir_user"
16677
16678         if test "x$withval" != "x" ; then
16679              dir_user=$withval
16680         fi
16681
16682
16683 fi;
16684
16685 dir_group=
16686
16687 # Check whether --with-dir_group or --without-dir_group was given.
16688 if test "${with_dir_group+set}" = set; then
16689   withval="$with_dir_group"
16690
16691         if test "x$withval" != "x" ; then
16692              dir_group=$withval
16693         fi
16694
16695
16696 fi;
16697
16698 sd_user=
16699
16700 # Check whether --with-sd_user or --without-sd_user was given.
16701 if test "${with_sd_user+set}" = set; then
16702   withval="$with_sd_user"
16703
16704         if test "x$withval" != "x" ; then
16705              sd_user=$withval
16706         fi
16707
16708
16709 fi;
16710
16711 sd_group=
16712
16713 # Check whether --with-sd_group or --without-sd_group was given.
16714 if test "${with_sd_group+set}" = set; then
16715   withval="$with_sd_group"
16716
16717         if test "x$withval" != "x" ; then
16718              sd_group=$withval
16719         fi
16720
16721
16722 fi;
16723
16724 fd_user=
16725
16726 # Check whether --with-fd_user or --without-fd_user was given.
16727 if test "${with_fd_user+set}" = set; then
16728   withval="$with_fd_user"
16729
16730         if test "x$withval" != "x" ; then
16731              fd_user=$withval
16732         fi
16733
16734
16735 fi;
16736
16737 fd_group=
16738
16739 # Check whether --with-fd_group or --without-fd_group was given.
16740 if test "${with_fd_group+set}" = set; then
16741   withval="$with_fd_group"
16742
16743         if test "x$withval" != "x" ; then
16744              fd_group=$withval
16745         fi
16746
16747
16748 fi;
16749
16750
16751
16752
16753
16754
16755
16756
16757 #
16758 # allow setting default executable permissions
16759 #
16760 SBINPERM=0754
16761
16762 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16763 if test "${with_sbin_perm+set}" = set; then
16764   withval="$with_sbin_perm"
16765
16766         if test "x$withval" != "x" ; then
16767             SBINPERM=$withval
16768         fi
16769
16770
16771 fi;
16772
16773
16774
16775 # ------------------------------------------------
16776 # Bacula check for various SQL database engines
16777 # ------------------------------------------------
16778 SQL_LIB=
16779
16780 db_found=no
16781 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16782 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16783
16784 # Check whether --with-postgresql or --without-postgresql was given.
16785 if test "${with_postgresql+set}" = set; then
16786   withval="$with_postgresql"
16787
16788   if test "$withval" != "no"; then
16789       if test "$db_found" = "yes"; then
16790           echo "$as_me:$LINENO: result: error" >&5
16791 echo "${ECHO_T}error" >&6
16792           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16793 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16794    { (exit 1); exit 1; }; };
16795       fi
16796       if test "$withval" = "yes"; then
16797           PG_CONFIG=`which pg_config`
16798           if test -n "$PG_CONFIG";then
16799               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16800               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16801               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16802           elif test -f /usr/local/include/libpq-fe.h; then
16803               POSTGRESQL_INCDIR=/usr/local/include
16804               if test -d /usr/local/lib64; then
16805                  POSTGRESQL_LIBDIR=/usr/local/lib64
16806               else
16807                  POSTGRESQL_LIBDIR=/usr/local/lib
16808               fi
16809               POSTGRESQL_BINDIR=/usr/local/bin
16810           elif test -f /usr/include/libpq-fe.h; then
16811               POSTGRESQL_INCDIR=/usr/include
16812               if test -d /usr/lib64; then
16813                  POSTGRESQL_LIBDIR=/usr/lib64
16814               else
16815                  POSTGRESQL_LIBDIR=/usr/lib
16816               fi
16817               POSTGRESQL_BINDIR=/usr/bin
16818           elif test -f /usr/include/pgsql/libpq-fe.h; then
16819               POSTGRESQL_INCDIR=/usr/include/pgsql
16820               if test -d /usr/lib64/pgsql; then
16821                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16822               else
16823                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16824               fi
16825               POSTGRESQL_BINDIR=/usr/bin
16826           elif test -f /usr/include/postgresql/libpq-fe.h; then
16827               POSTGRESQL_INCDIR=/usr/include/postgresql
16828               if test -d /usr/lib64/postgresql; then
16829                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16830               else
16831                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16832               fi
16833               POSTGRESQL_BINDIR=/usr/bin
16834           else
16835               echo "$as_me:$LINENO: result: no" >&5
16836 echo "${ECHO_T}no" >&6
16837               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16838 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16839    { (exit 1); exit 1; }; }
16840           fi
16841       elif test -f $withval/include/libpq-fe.h; then
16842           POSTGRESQL_INCDIR=$withval/include
16843           POSTGRESQL_LIBDIR=$withval/lib
16844           POSTGRESQL_BINDIR=$withval/bin
16845       elif test -f $withval/include/postgresql/libpq-fe.h; then
16846           POSTGRESQL_INCDIR=$withval/include/postgresql
16847      if test -d $withval/lib64; then
16848          POSTGRESQL_LIBDIR=$withval/lib64
16849      else
16850          POSTGRESQL_LIBDIR=$withval/lib
16851      fi
16852           POSTGRESQL_BINDIR=$withval/bin
16853       else
16854           echo "$as_me:$LINENO: result: no" >&5
16855 echo "${ECHO_T}no" >&6
16856           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16857 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16858    { (exit 1); exit 1; }; }
16859       fi
16860       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16861       echo "$as_me:$LINENO: checking for crypt" >&5
16862 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16863 if test "${ac_cv_func_crypt+set}" = set; then
16864   echo $ECHO_N "(cached) $ECHO_C" >&6
16865 else
16866   cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16874 #define crypt innocuous_crypt
16875
16876 /* System header to define __stub macros and hopefully few prototypes,
16877     which can conflict with char crypt (); below.
16878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16879     <limits.h> exists even on freestanding compilers.  */
16880
16881 #ifdef __STDC__
16882 # include <limits.h>
16883 #else
16884 # include <assert.h>
16885 #endif
16886
16887 #undef crypt
16888
16889 /* Override any gcc2 internal prototype to avoid an error.  */
16890 #ifdef __cplusplus
16891 extern "C"
16892 {
16893 #endif
16894 /* We use char because int might match the return type of a gcc2
16895    builtin and then its argument prototype would still apply.  */
16896 char crypt ();
16897 /* The GNU C library defines this for functions which it implements
16898     to always fail with ENOSYS.  Some functions are actually named
16899     something starting with __ and the normal name is an alias.  */
16900 #if defined (__stub_crypt) || defined (__stub___crypt)
16901 choke me
16902 #else
16903 char (*f) () = crypt;
16904 #endif
16905 #ifdef __cplusplus
16906 }
16907 #endif
16908
16909 int
16910 main ()
16911 {
16912 return f != crypt;
16913   ;
16914   return 0;
16915 }
16916 _ACEOF
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16919   (eval $ac_link) 2>conftest.er1
16920   ac_status=$?
16921   grep -v '^ *+' conftest.er1 >conftest.err
16922   rm -f conftest.er1
16923   cat conftest.err >&5
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } &&
16926          { ac_try='test -z "$ac_c_werror_flag"
16927                          || test ! -s conftest.err'
16928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929   (eval $ac_try) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; } &&
16933          { ac_try='test -s conftest$ac_exeext'
16934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935   (eval $ac_try) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939   ac_cv_func_crypt=yes
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944 ac_cv_func_crypt=no
16945 fi
16946 rm -f conftest.err conftest.$ac_objext \
16947       conftest$ac_exeext conftest.$ac_ext
16948 fi
16949 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16950 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16951 if test $ac_cv_func_crypt = yes; then
16952   :
16953 else
16954   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16955 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16956 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16957   echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959   ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-lcrypt  $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967
16968 /* Override any gcc2 internal prototype to avoid an error.  */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 /* We use char because int might match the return type of a gcc2
16973    builtin and then its argument prototype would still apply.  */
16974 char crypt ();
16975 int
16976 main ()
16977 {
16978 crypt ();
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985   (eval $ac_link) 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } &&
16992          { ac_try='test -z "$ac_c_werror_flag"
16993                          || test ! -s conftest.err'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; } &&
16999          { ac_try='test -s conftest$ac_exeext'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; }; then
17005   ac_cv_lib_crypt_crypt=yes
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010 ac_cv_lib_crypt_crypt=no
17011 fi
17012 rm -f conftest.err conftest.$ac_objext \
17013       conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17015 fi
17016 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17017 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17018 if test $ac_cv_lib_crypt_crypt = yes; then
17019   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17020 fi
17021
17022 fi
17023
17024       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17025       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17026       SQL_BINDIR=$POSTGRESQL_BINDIR
17027       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17028
17029       cat >>confdefs.h <<\_ACEOF
17030 #define HAVE_POSTGRESQL 1
17031 _ACEOF
17032
17033       echo "$as_me:$LINENO: result: yes" >&5
17034 echo "${ECHO_T}yes" >&6
17035       db_found=yes
17036       support_postgresql=yes
17037       db_type=PostgreSQL
17038       DB_TYPE=postgresql
17039   else
17040       echo "$as_me:$LINENO: result: no" >&5
17041 echo "${ECHO_T}no" >&6
17042   fi
17043
17044 else
17045
17046   echo "$as_me:$LINENO: result: no" >&5
17047 echo "${ECHO_T}no" >&6
17048
17049 fi;
17050
17051
17052
17053
17054
17055
17056
17057 db_found=no
17058 echo "$as_me:$LINENO: checking for MySQL support" >&5
17059 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17060
17061 # Check whether --with-mysql or --without-mysql was given.
17062 if test "${with_mysql+set}" = set; then
17063   withval="$with_mysql"
17064
17065   if test "$withval" != "no"; then
17066         if test "$withval" = "yes"; then
17067            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17068                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17069                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17070                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17071                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17072                    else
17073                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17074                    fi
17075                    MYSQL_BINDIR=/usr/local/mysql/bin
17076            elif test -f /usr/include/mysql/mysql.h; then
17077                    MYSQL_INCDIR=/usr/include/mysql
17078                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17079                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17080                            MYSQL_LIBDIR=/usr/lib64/mysql
17081                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17082                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17083                            MYSQL_LIBDIR=/usr/lib/mysql
17084                    else
17085                            MYSQL_LIBDIR=/usr/lib
17086                    fi
17087                    MYSQL_BINDIR=/usr/bin
17088            elif test -f /usr/include/mysql.h; then
17089                    MYSQL_INCDIR=/usr/include
17090                    if test -f /usr/lib64/libmysqlclient_r.a \
17091                         -o -f /usr/lib64/libmysqlclient_r.so; then
17092                            MYSQL_LIBDIR=/usr/lib64
17093                    else
17094                            MYSQL_LIBDIR=/usr/lib
17095                    fi
17096                    MYSQL_BINDIR=/usr/bin
17097            elif test -f /usr/local/include/mysql/mysql.h; then
17098                    MYSQL_INCDIR=/usr/local/include/mysql
17099                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17100                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17101                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17102                    else
17103                            MYSQL_LIBDIR=/usr/local/lib/mysql
17104                    fi
17105                    MYSQL_BINDIR=/usr/local/bin
17106            elif test -f /usr/local/include/mysql.h; then
17107                    MYSQL_INCDIR=/usr/local/include
17108                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17109                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17110                            MYSQL_LIBDIR=/usr/local/lib64
17111                    else
17112                            MYSQL_LIBDIR=/usr/local/lib
17113                    fi
17114                    MYSQL_BINDIR=/usr/local/bin
17115            else
17116               echo "$as_me:$LINENO: result: no" >&5
17117 echo "${ECHO_T}no" >&6
17118               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17119 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17120    { (exit 1); exit 1; }; }
17121            fi
17122         else
17123            if test -f $withval/include/mysql/mysql.h; then
17124               MYSQL_INCDIR=$withval/include/mysql
17125               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17126                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17127                  MYSQL_LIBDIR=$withval/lib64/mysql
17128               else
17129                  MYSQL_LIBDIR=$withval/lib/mysql
17130                  # Solaris ...
17131                  if test -f $withval/lib/libmysqlclient_r.so; then
17132                     MYSQL_LIBDIR=$withval/lib
17133                  fi
17134               fi
17135               MYSQL_BINDIR=$withval/bin
17136            elif test -f $withval/include/mysql.h; then
17137               MYSQL_INCDIR=$withval/include
17138               if test -f $withval/lib64/libmysqlclient_r.a \
17139                    -o -f $withval/lib64/libmysqlclient_r.so; then
17140                  MYSQL_LIBDIR=$withval/lib64
17141               else
17142                  MYSQL_LIBDIR=$withval/lib
17143               fi
17144               MYSQL_BINDIR=$withval/bin
17145            else
17146               echo "$as_me:$LINENO: result: no" >&5
17147 echo "${ECHO_T}no" >&6
17148               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17149 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17150    { (exit 1); exit 1; }; }
17151            fi
17152         fi
17153     SQL_INCLUDE=-I$MYSQL_INCDIR
17154     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17155          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17156        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17157        cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_THREAD_SAFE_MYSQL 1
17159 _ACEOF
17160
17161     fi
17162     SQL_BINDIR=$MYSQL_BINDIR
17163     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17164
17165     cat >>confdefs.h <<\_ACEOF
17166 #define HAVE_MYSQL 1
17167 _ACEOF
17168
17169     echo "$as_me:$LINENO: result: yes" >&5
17170 echo "${ECHO_T}yes" >&6
17171     db_found=yes
17172     support_mysql=yes
17173     db_type=MySQL
17174     DB_TYPE=mysql
17175
17176   else
17177         echo "$as_me:$LINENO: result: no" >&5
17178 echo "${ECHO_T}no" >&6
17179   fi
17180
17181
17182 fi;
17183
17184
17185 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17186 if test "${with_embedded_mysql+set}" = set; then
17187   withval="$with_embedded_mysql"
17188
17189   if test "$withval" != "no"; then
17190         if test "$withval" = "yes"; then
17191                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17192                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17193                         if test -d /usr/local/mysql/lib64/mysql; then
17194                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17195                         else
17196                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17197                         fi
17198                         MYSQL_BINDIR=/usr/local/mysql/bin
17199                 elif test -f /usr/include/mysql/mysql.h; then
17200                         MYSQL_INCDIR=/usr/include/mysql
17201                         if test -d /usr/lib64/mysql; then
17202                                 MYSQL_LIBDIR=/usr/lib64/mysql
17203                         else
17204                                 MYSQL_LIBDIR=/usr/lib/mysql
17205                         fi
17206                         MYSQL_BINDIR=/usr/bin
17207                 elif test -f /usr/include/mysql.h; then
17208                         MYSQL_INCDIR=/usr/include
17209                         if test -d /usr/lib64; then
17210                                 MYSQL_LIBDIR=/usr/lib64
17211                         else
17212                                 MYSQL_LIBDIR=/usr/lib
17213                         fi
17214                         MYSQL_BINDIR=/usr/bin
17215                 elif test -f /usr/local/include/mysql/mysql.h; then
17216                         MYSQL_INCDIR=/usr/local/include/mysql
17217                         if test -d /usr/local/lib64/mysql; then
17218                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17219                         else
17220                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17221                         fi
17222                         MYSQL_BINDIR=/usr/local/bin
17223                 elif test -f /usr/local/include/mysql.h; then
17224                         MYSQL_INCDIR=/usr/local/include
17225                         if test -d /usr/local/lib64; then
17226                                 MYSQL_LIBDIR=/usr/local/lib64
17227                         else
17228                                 MYSQL_LIBDIR=/usr/local/lib
17229                         fi
17230                         MYSQL_BINDIR=/usr/local/bin
17231                 else
17232                    echo "$as_me:$LINENO: result: no" >&5
17233 echo "${ECHO_T}no" >&6
17234                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17235 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17236    { (exit 1); exit 1; }; }
17237                 fi
17238         else
17239                 if test -f $withval/include/mysql/mysql.h; then
17240                         MYSQL_INCDIR=$withval/include/mysql
17241                         if test -d $withval/lib64/mysql; then
17242                                 MYSQL_LIBDIR=$withval/lib64/mysql
17243                         else
17244                                 MYSQL_LIBDIR=$withval/lib/mysql
17245                         fi
17246                         MYSQL_BINDIR=$withval/bin
17247                 elif test -f $withval/include/mysql.h; then
17248                         MYSQL_INCDIR=$withval/include
17249                         if test -d $withval/lib64; then
17250                                 MYSQL_LIBDIR=$withval/lib64
17251                         else
17252                                 MYSQL_LIBDIR=$withval/lib
17253                         fi
17254                         MYSQL_BINDIR=$withval/bin
17255                 else
17256                    echo "$as_me:$LINENO: result: no" >&5
17257 echo "${ECHO_T}no" >&6
17258                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17259 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17260    { (exit 1); exit 1; }; }
17261                 fi
17262         fi
17263     SQL_INCLUDE=-I$MYSQL_INCDIR
17264     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17265     SQL_BINDIR=$MYSQL_BINDIR
17266     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17267
17268     cat >>confdefs.h <<\_ACEOF
17269 #define HAVE_MYSQL 1
17270 _ACEOF
17271
17272     cat >>confdefs.h <<\_ACEOF
17273 #define HAVE_EMBEDDED_MYSQL 1
17274 _ACEOF
17275
17276     echo "$as_me:$LINENO: result: yes" >&5
17277 echo "${ECHO_T}yes" >&6
17278     db_found=yes
17279     support_mysql=yes
17280     db_type=MySQL
17281     DB_TYPE=mysql
17282
17283   else
17284         echo "$as_me:$LINENO: result: no" >&5
17285 echo "${ECHO_T}no" >&6
17286   fi
17287
17288
17289 fi;
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299 db_found=no
17300 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17301 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17302
17303 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17304 if test "${with_sqlite3+set}" = set; then
17305   withval="$with_sqlite3"
17306
17307   if test "$withval" != "no"; then
17308      if test "$withval" = "yes"; then
17309         if test -f /usr/local/include/sqlite3.h; then
17310            SQLITE_INCDIR=/usr/local/include
17311            if test -d /usr/local/lib64; then
17312               SQLITE_LIBDIR=/usr/local/lib64
17313            else
17314               SQLITE_LIBDIR=/usr/local/lib
17315            fi
17316            SQLITE_BINDIR=/usr/local/bin
17317         elif test -f /usr/include/sqlite3.h; then
17318            SQLITE_INCDIR=/usr/include
17319            if test -d /usr/lib64; then
17320               SQLITE_LIBDIR=/usr/lib64
17321            else
17322               SQLITE_LIBDIR=/usr/lib
17323            fi
17324            SQLITE_BINDIR=/usr/bin
17325         elif test -f $prefix/include/sqlite3.h; then
17326            SQLITE_INCDIR=$prefix/include
17327            if test -d $prefix/lib64; then
17328               SQLITE_LIBDIR=$prefix/lib64
17329            else
17330               SQLITE_LIBDIR=$prefix/lib
17331            fi
17332            SQLITE_BINDIR=$prefix/bin
17333         else
17334            echo "$as_me:$LINENO: result: no" >&5
17335 echo "${ECHO_T}no" >&6
17336            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17337 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17338    { (exit 1); exit 1; }; }
17339         fi
17340      else
17341         if test -f $withval/sqlite3.h; then
17342            SQLITE_INCDIR=$withval
17343            SQLITE_LIBDIR=$withval
17344            SQLITE_BINDIR=$withval
17345         elif test -f $withval/include/sqlite3.h; then
17346            SQLITE_INCDIR=$withval/include
17347            if test -d $withval/lib64; then
17348               SQLITE_LIBDIR=$withval/lib64
17349            else
17350               SQLITE_LIBDIR=$withval/lib
17351            fi
17352            SQLITE_BINDIR=$withval/bin
17353         else
17354            echo "$as_me:$LINENO: result: no" >&5
17355 echo "${ECHO_T}no" >&6
17356            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17357 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17358    { (exit 1); exit 1; }; }
17359         fi
17360      fi
17361      SQL_INCLUDE=-I$SQLITE_INCDIR
17362      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17363      SQL_BINDIR=$SQLITE_BINDIR
17364      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17365
17366      cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_SQLITE3 1
17368 _ACEOF
17369
17370      echo "$as_me:$LINENO: result: yes" >&5
17371 echo "${ECHO_T}yes" >&6
17372      db_found=yes
17373      support_sqlite3=yes
17374      db_type=SQLite3
17375      DB_TYPE=sqlite3
17376
17377   else
17378      echo "$as_me:$LINENO: result: no" >&5
17379 echo "${ECHO_T}no" >&6
17380   fi
17381
17382 else
17383
17384   echo "$as_me:$LINENO: result: no" >&5
17385 echo "${ECHO_T}no" >&6
17386
17387 fi;
17388
17389
17390
17391
17392
17393
17394
17395 db_found=no
17396 echo "$as_me:$LINENO: checking for SQLite support" >&5
17397 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17398
17399 # Check whether --with-sqlite or --without-sqlite was given.
17400 if test "${with_sqlite+set}" = set; then
17401   withval="$with_sqlite"
17402
17403   if test "$withval" != "no"; then
17404      if test "$withval" = "yes"; then
17405         if test -f /usr/local/include/sqlite.h; then
17406            SQLITE_INCDIR=/usr/local/include
17407            if test -d /usr/local/lib64; then
17408               SQLITE_LIBDIR=/usr/local/lib64
17409            else
17410               SQLITE_LIBDIR=/usr/local/lib
17411            fi
17412            SQLITE_BINDIR=/usr/local/bin
17413         elif test -f /usr/include/sqlite.h; then
17414            SQLITE_INCDIR=/usr/include
17415            if test -d /usr/lib64; then
17416               SQLITE_LIBDIR=/usr/lib64
17417            else
17418               SQLITE_LIBDIR=/usr/lib
17419            fi
17420            SQLITE_BINDIR=/usr/bin
17421         elif test -f $prefix/include/sqlite.h; then
17422            SQLITE_INCDIR=$prefix/include
17423            if test -d $prefix/lib64; then
17424               SQLITE_LIBDIR=$prefix/lib64
17425            else
17426               SQLITE_LIBDIR=$prefix/lib
17427            fi
17428            SQLITE_BINDIR=$prefix/bin
17429         else
17430            echo "$as_me:$LINENO: result: no" >&5
17431 echo "${ECHO_T}no" >&6
17432            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17433 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17434    { (exit 1); exit 1; }; }
17435         fi
17436      else
17437         if test -f $withval/sqlite.h; then
17438            SQLITE_INCDIR=$withval
17439            SQLITE_LIBDIR=$withval
17440            SQLITE_BINDIR=$withval
17441         elif test -f $withval/include/sqlite.h; then
17442            SQLITE_INCDIR=$withval/include
17443            if test -d $withval/lib64; then
17444               SQLITE_LIBDIR=$withval/lib64
17445            else
17446               SQLITE_LIBDIR=$withval/lib
17447            fi
17448            SQLITE_BINDIR=$withval/bin
17449         else
17450            echo "$as_me:$LINENO: result: no" >&5
17451 echo "${ECHO_T}no" >&6
17452            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17453 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17454    { (exit 1); exit 1; }; }
17455         fi
17456      fi
17457      SQL_INCLUDE=-I$SQLITE_INCDIR
17458      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17459      SQL_BINDIR=$SQLITE_BINDIR
17460      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17461
17462      cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_SQLITE 1
17464 _ACEOF
17465
17466      echo "$as_me:$LINENO: result: yes" >&5
17467 echo "${ECHO_T}yes" >&6
17468      db_found=yes
17469      support_sqlite=yes
17470      db_type=SQLite
17471      DB_TYPE=sqlite
17472
17473   else
17474      echo "$as_me:$LINENO: result: no" >&5
17475 echo "${ECHO_T}no" >&6
17476   fi
17477
17478 else
17479
17480   echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6
17482
17483 fi;
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493 # -------------------------------------------
17494 # enable batch attribute DB insert (default on)
17495 # -------------------------------------------
17496 support_batch_insert=no
17497 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17498 pkg=$?
17499 if test $pkg = 0; then
17500    support_batch_insert=yes
17501    # Check whether --enable-batch-insert or --disable-batch-insert was given.
17502 if test "${enable_batch_insert+set}" = set; then
17503   enableval="$enable_batch_insert"
17504   if test x$enableval = xno; then
17505        support_batch_insert=no
17506       else
17507        support_batch_insert=yes
17508      fi
17509 fi;
17510 fi
17511
17512 if test $support_batch_insert = yes ; then
17513
17514 cat >>confdefs.h <<\_ACEOF
17515 #define HAVE_BATCH_FILE_INSERT 1
17516 _ACEOF
17517
17518 fi
17519
17520
17521 cat >>confdefs.h <<\_ACEOF
17522 #define PROTOTYPES 1
17523 _ACEOF
17524
17525
17526 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17527     if test -z "$CCOPTS"; then
17528         CCOPTS='-g -O2 -Wall'
17529     fi
17530     CFLAGS="$CCOPTS"
17531 fi
17532
17533
17534
17535
17536 largefile_support="no"
17537
17538    # Check whether --enable-largefile or --disable-largefile was given.
17539 if test "${enable_largefile+set}" = set; then
17540   enableval="$enable_largefile"
17541
17542 fi;
17543    if test "$enable_largefile" != no; then
17544      if test -n "$ac_tool_prefix"; then
17545   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17546 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17547 echo "$as_me:$LINENO: checking for $ac_word" >&5
17548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17549 if test "${ac_cv_prog_GETCONF+set}" = set; then
17550   echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552   if test -n "$GETCONF"; then
17553   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17554 else
17555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17556 for as_dir in $PATH
17557 do
17558   IFS=$as_save_IFS
17559   test -z "$as_dir" && as_dir=.
17560   for ac_exec_ext in '' $ac_executable_extensions; do
17561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17562     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17564     break 2
17565   fi
17566 done
17567 done
17568
17569 fi
17570 fi
17571 GETCONF=$ac_cv_prog_GETCONF
17572 if test -n "$GETCONF"; then
17573   echo "$as_me:$LINENO: result: $GETCONF" >&5
17574 echo "${ECHO_T}$GETCONF" >&6
17575 else
17576   echo "$as_me:$LINENO: result: no" >&5
17577 echo "${ECHO_T}no" >&6
17578 fi
17579
17580 fi
17581 if test -z "$ac_cv_prog_GETCONF"; then
17582   ac_ct_GETCONF=$GETCONF
17583   # Extract the first word of "getconf", so it can be a program name with args.
17584 set dummy getconf; ac_word=$2
17585 echo "$as_me:$LINENO: checking for $ac_word" >&5
17586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17587 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590   if test -n "$ac_ct_GETCONF"; then
17591   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17592 else
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $PATH
17595 do
17596   IFS=$as_save_IFS
17597   test -z "$as_dir" && as_dir=.
17598   for ac_exec_ext in '' $ac_executable_extensions; do
17599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17600     ac_cv_prog_ac_ct_GETCONF="getconf"
17601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17602     break 2
17603   fi
17604 done
17605 done
17606
17607 fi
17608 fi
17609 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17610 if test -n "$ac_ct_GETCONF"; then
17611   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17612 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17613 else
17614   echo "$as_me:$LINENO: result: no" >&5
17615 echo "${ECHO_T}no" >&6
17616 fi
17617
17618   GETCONF=$ac_ct_GETCONF
17619 else
17620   GETCONF="$ac_cv_prog_GETCONF"
17621 fi
17622
17623      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17624 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17625 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17629         ac_cv_sys_largefile_CFLAGS=no
17630         case "$host_os" in
17631            # IRIX 6.2 and later require cc -n32.
17632            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17633              if test "$GCC" != yes; then
17634                ac_cv_sys_largefile_CFLAGS=-n32
17635              fi
17636              ac_save_CC="$CC"
17637              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17638              cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644
17645 int
17646 main ()
17647 {
17648
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext conftest$ac_exeext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17655   (eval $ac_link) 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag"
17663                          || test ! -s conftest.err'
17664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665   (eval $ac_try) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; } &&
17669          { ac_try='test -s conftest$ac_exeext'
17670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671   (eval $ac_try) 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675   :
17676 else
17677   echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680 ac_cv_sys_largefile_CFLAGS=no
17681 fi
17682 rm -f conftest.err conftest.$ac_objext \
17683       conftest$ac_exeext conftest.$ac_ext
17684              CC="$ac_save_CC"
17685            esac
17686       }
17687 fi
17688 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17689 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17690      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17691 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17692 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17693   echo $ECHO_N "(cached) $ECHO_C" >&6
17694 else
17695   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17696         ac_cv_sys_largefile_LDFLAGS=no
17697
17698       }
17699 fi
17700 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17701 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17702      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17703 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17704 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17708         ac_cv_sys_largefile_LIBS=no
17709
17710       }
17711 fi
17712 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17713 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17714
17715      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17716        case "$ac_flag" in
17717        no) ;;
17718        -D_FILE_OFFSET_BITS=*) ;;
17719        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17720        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17721        -D?* | -I?*)
17722          case "$ac_flag" in
17723    no) ;;
17724    ?*)
17725      case "$CPPFLAGS" in
17726      '') CPPFLAGS="$ac_flag" ;;
17727      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17728      esac ;;
17729    esac ;;
17730        *)
17731          case "$ac_flag" in
17732    no) ;;
17733    ?*)
17734      case "$CFLAGS" in
17735      '') CFLAGS="$ac_flag" ;;
17736      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17737      esac ;;
17738    esac ;;
17739        esac
17740      done
17741      case "$ac_cv_sys_largefile_LDFLAGS" in
17742    no) ;;
17743    ?*)
17744      case "$LDFLAGS" in
17745      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17746      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17747      esac ;;
17748    esac
17749      case "$ac_cv_sys_largefile_LIBS" in
17750    no) ;;
17751    ?*)
17752      case "$LIBS" in
17753      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17754      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17755      esac ;;
17756    esac
17757      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17758 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17759 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   ac_cv_sys_file_offset_bits=no
17763       ac_cv_sys_file_offset_bits=64
17764       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17765         case "$ac_flag" in
17766         -D_FILE_OFFSET_BITS)
17767           ac_cv_sys_file_offset_bits=1 ;;
17768         -D_FILE_OFFSET_BITS=*)
17769           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17770         esac
17771       done
17772
17773 fi
17774 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17775 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17776    if test "$ac_cv_sys_file_offset_bits" != no; then
17777
17778 cat >>confdefs.h <<_ACEOF
17779 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17780 _ACEOF
17781
17782    fi
17783      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17784 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17785 if test "${ac_cv_sys_largefile_source+set}" = set; then
17786   echo $ECHO_N "(cached) $ECHO_C" >&6
17787 else
17788   ac_cv_sys_largefile_source=no
17789       ac_cv_sys_largefile_source=1
17790       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17791         case "$ac_flag" in
17792         -D_LARGEFILE_SOURCE)
17793           ac_cv_sys_largefile_source=1 ;;
17794         -D_LARGEFILE_SOURCE=*)
17795           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17796         esac
17797       done
17798
17799 fi
17800 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17801 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17802    if test "$ac_cv_sys_largefile_source" != no; then
17803
17804 cat >>confdefs.h <<_ACEOF
17805 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17806 _ACEOF
17807
17808    fi
17809      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17810 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17811 if test "${ac_cv_sys_large_files+set}" = set; then
17812   echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814   ac_cv_sys_large_files=no
17815       ac_cv_sys_large_files=1
17816       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17817         case "$ac_flag" in
17818         -D_LARGE_FILES)
17819           ac_cv_sys_large_files=1 ;;
17820         -D_LARGE_FILES=*)
17821           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17822         esac
17823       done
17824
17825 fi
17826 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17827 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17828    if test "$ac_cv_sys_large_files" != no; then
17829
17830 cat >>confdefs.h <<_ACEOF
17831 #define _LARGE_FILES $ac_cv_sys_large_files
17832 _ACEOF
17833
17834    fi
17835    fi
17836
17837
17838
17839 echo "$as_me:$LINENO: checking for X" >&5
17840 echo $ECHO_N "checking for X... $ECHO_C" >&6
17841
17842
17843 # Check whether --with-x or --without-x was given.
17844 if test "${with_x+set}" = set; then
17845   withval="$with_x"
17846
17847 fi;
17848 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17849 if test "x$with_x" = xno; then
17850   # The user explicitly disabled X.
17851   have_x=disabled
17852 else
17853   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17854     # Both variables are already set.
17855     have_x=yes
17856   else
17857     if test "${ac_cv_have_x+set}" = set; then
17858   echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860   # One or both of the vars are not set, and there is no cached value.
17861 ac_x_includes=no ac_x_libraries=no
17862 rm -fr conftest.dir
17863 if mkdir conftest.dir; then
17864   cd conftest.dir
17865   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17866   cat >Imakefile <<'_ACEOF'
17867 acfindx:
17868         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17869 _ACEOF
17870   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17871     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17872     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17873     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17874     for ac_extension in a so sl; do
17875       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17876          test -f $ac_im_libdir/libX11.$ac_extension; then
17877         ac_im_usrlibdir=$ac_im_libdir; break
17878       fi
17879     done
17880     # Screen out bogus values from the imake configuration.  They are
17881     # bogus both because they are the default anyway, and because
17882     # using them would break gcc on systems where it needs fixed includes.
17883     case $ac_im_incroot in
17884         /usr/include) ;;
17885         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17886     esac
17887     case $ac_im_usrlibdir in
17888         /usr/lib | /lib) ;;
17889         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17890     esac
17891   fi
17892   cd ..
17893   rm -fr conftest.dir
17894 fi
17895
17896 # Standard set of common directories for X headers.
17897 # Check X11 before X11Rn because it is often a symlink to the current release.
17898 ac_x_header_dirs='
17899 /usr/X11/include
17900 /usr/X11R6/include
17901 /usr/X11R5/include
17902 /usr/X11R4/include
17903
17904 /usr/include/X11
17905 /usr/include/X11R6
17906 /usr/include/X11R5
17907 /usr/include/X11R4
17908
17909 /usr/local/X11/include
17910 /usr/local/X11R6/include
17911 /usr/local/X11R5/include
17912 /usr/local/X11R4/include
17913
17914 /usr/local/include/X11
17915 /usr/local/include/X11R6
17916 /usr/local/include/X11R5
17917 /usr/local/include/X11R4
17918
17919 /usr/X386/include
17920 /usr/x386/include
17921 /usr/XFree86/include/X11
17922
17923 /usr/include
17924 /usr/local/include
17925 /usr/unsupported/include
17926 /usr/athena/include
17927 /usr/local/x11r5/include
17928 /usr/lpp/Xamples/include
17929
17930 /usr/openwin/include
17931 /usr/openwin/share/include'
17932
17933 if test "$ac_x_includes" = no; then
17934   # Guess where to find include files, by looking for Xlib.h.
17935   # First, try using that file with no special directory specified.
17936   cat >conftest.$ac_ext <<_ACEOF
17937 /* confdefs.h.  */
17938 _ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h.  */
17942 #include <X11/Xlib.h>
17943 _ACEOF
17944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17946   ac_status=$?
17947   grep -v '^ *+' conftest.er1 >conftest.err
17948   rm -f conftest.er1
17949   cat conftest.err >&5
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } >/dev/null; then
17952   if test -s conftest.err; then
17953     ac_cpp_err=$ac_c_preproc_warn_flag
17954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17955   else
17956     ac_cpp_err=
17957   fi
17958 else
17959   ac_cpp_err=yes
17960 fi
17961 if test -z "$ac_cpp_err"; then
17962   # We can compile using X headers with no special include directory.
17963 ac_x_includes=
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968   for ac_dir in $ac_x_header_dirs; do
17969   if test -r "$ac_dir/X11/Xlib.h"; then
17970     ac_x_includes=$ac_dir
17971     break
17972   fi
17973 done
17974 fi
17975 rm -f conftest.err conftest.$ac_ext
17976 fi # $ac_x_includes = no
17977
17978 if test "$ac_x_libraries" = no; then
17979   # Check for the libraries.
17980   # See if we find them without any special options.
17981   # Don't add to $LIBS permanently.
17982   ac_save_LIBS=$LIBS
17983   LIBS="-lX11 $LIBS"
17984   cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990 #include <X11/Xlib.h>
17991 int
17992 main ()
17993 {
17994 XrmInitialize ()
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18001   (eval $ac_link) 2>conftest.er1
18002   ac_status=$?
18003   grep -v '^ *+' conftest.er1 >conftest.err
18004   rm -f conftest.er1
18005   cat conftest.err >&5
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); } &&
18008          { ac_try='test -z "$ac_c_werror_flag"
18009                          || test ! -s conftest.err'
18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18011   (eval $ac_try) 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; } &&
18015          { ac_try='test -s conftest$ac_exeext'
18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017   (eval $ac_try) 2>&5
18018   ac_status=$?
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); }; }; then
18021   LIBS=$ac_save_LIBS
18022 # We can link X programs with no special library path.
18023 ac_x_libraries=
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 LIBS=$ac_save_LIBS
18029 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18030 do
18031   # Don't even attempt the hair of trying to link an X program!
18032   for ac_extension in a so sl; do
18033     if test -r $ac_dir/libXt.$ac_extension; then
18034       ac_x_libraries=$ac_dir
18035       break 2
18036     fi
18037   done
18038 done
18039 fi
18040 rm -f conftest.err conftest.$ac_objext \
18041       conftest$ac_exeext conftest.$ac_ext
18042 fi # $ac_x_libraries = no
18043
18044 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18045   # Didn't find X anywhere.  Cache the known absence of X.
18046   ac_cv_have_x="have_x=no"
18047 else
18048   # Record where we found X for the cache.
18049   ac_cv_have_x="have_x=yes \
18050                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18051 fi
18052 fi
18053
18054   fi
18055   eval "$ac_cv_have_x"
18056 fi # $with_x != no
18057
18058 if test "$have_x" != yes; then
18059   echo "$as_me:$LINENO: result: $have_x" >&5
18060 echo "${ECHO_T}$have_x" >&6
18061   no_x=yes
18062 else
18063   # If each of the values was on the command line, it overrides each guess.
18064   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18065   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18066   # Update the cache value to reflect the command line values.
18067   ac_cv_have_x="have_x=yes \
18068                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18069   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18070 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18071 fi
18072
18073 if test "$no_x" = yes; then
18074   # Not all programs may use this symbol, but it does not hurt to define it.
18075
18076 cat >>confdefs.h <<\_ACEOF
18077 #define X_DISPLAY_MISSING 1
18078 _ACEOF
18079
18080   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18081 else
18082   if test -n "$x_includes"; then
18083     X_CFLAGS="$X_CFLAGS -I$x_includes"
18084   fi
18085
18086   # It would also be nice to do this for all -L options, not just this one.
18087   if test -n "$x_libraries"; then
18088     X_LIBS="$X_LIBS -L$x_libraries"
18089     # For Solaris; some versions of Sun CC require a space after -R and
18090     # others require no space.  Words are not sufficient . . . .
18091     case `(uname -sr) 2>/dev/null` in
18092     "SunOS 5"*)
18093       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18094 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18095       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18096       cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h.  */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h.  */
18102
18103 int
18104 main ()
18105 {
18106
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113   (eval $ac_link) 2>conftest.er1
18114   ac_status=$?
18115   grep -v '^ *+' conftest.er1 >conftest.err
18116   rm -f conftest.er1
18117   cat conftest.err >&5
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); } &&
18120          { ac_try='test -z "$ac_c_werror_flag"
18121                          || test ! -s conftest.err'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; } &&
18127          { ac_try='test -s conftest$ac_exeext'
18128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129   (eval $ac_try) 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; }; then
18133   ac_R_nospace=yes
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 ac_R_nospace=no
18139 fi
18140 rm -f conftest.err conftest.$ac_objext \
18141       conftest$ac_exeext conftest.$ac_ext
18142       if test $ac_R_nospace = yes; then
18143         echo "$as_me:$LINENO: result: no" >&5
18144 echo "${ECHO_T}no" >&6
18145         X_LIBS="$X_LIBS -R$x_libraries"
18146       else
18147         LIBS="$ac_xsave_LIBS -R $x_libraries"
18148         cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154
18155 int
18156 main ()
18157 {
18158
18159   ;
18160   return 0;
18161 }
18162 _ACEOF
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18165   (eval $ac_link) 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } &&
18172          { ac_try='test -z "$ac_c_werror_flag"
18173                          || test ! -s conftest.err'
18174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175   (eval $ac_try) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); }; } &&
18179          { ac_try='test -s conftest$ac_exeext'
18180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181   (eval $ac_try) 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   ac_R_space=yes
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 ac_R_space=no
18191 fi
18192 rm -f conftest.err conftest.$ac_objext \
18193       conftest$ac_exeext conftest.$ac_ext
18194         if test $ac_R_space = yes; then
18195           echo "$as_me:$LINENO: result: yes" >&5
18196 echo "${ECHO_T}yes" >&6
18197           X_LIBS="$X_LIBS -R $x_libraries"
18198         else
18199           echo "$as_me:$LINENO: result: neither works" >&5
18200 echo "${ECHO_T}neither works" >&6
18201         fi
18202       fi
18203       LIBS=$ac_xsave_LIBS
18204     esac
18205   fi
18206
18207   # Check for system-dependent libraries X programs must link with.
18208   # Do this before checking for the system-independent R6 libraries
18209   # (-lICE), since we may need -lsocket or whatever for X linking.
18210
18211   if test "$ISC" = yes; then
18212     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18213   else
18214     # Martyn Johnson says this is needed for Ultrix, if the X
18215     # libraries were built with DECnet support.  And Karl Berry says
18216     # the Alpha needs dnet_stub (dnet does not exist).
18217     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18218     cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224
18225 /* Override any gcc2 internal prototype to avoid an error.  */
18226 #ifdef __cplusplus
18227 extern "C"
18228 #endif
18229 /* We use char because int might match the return type of a gcc2
18230    builtin and then its argument prototype would still apply.  */
18231 char XOpenDisplay ();
18232 int
18233 main ()
18234 {
18235 XOpenDisplay ();
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242   (eval $ac_link) 2>conftest.er1
18243   ac_status=$?
18244   grep -v '^ *+' conftest.er1 >conftest.err
18245   rm -f conftest.er1
18246   cat conftest.err >&5
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); } &&
18249          { ac_try='test -z "$ac_c_werror_flag"
18250                          || test ! -s conftest.err'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; } &&
18256          { ac_try='test -s conftest$ac_exeext'
18257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258   (eval $ac_try) 2>&5
18259   ac_status=$?
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); }; }; then
18262   :
18263 else
18264   echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18268 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18269 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272   ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-ldnet  $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h.  */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h.  */
18280
18281 /* Override any gcc2 internal prototype to avoid an error.  */
18282 #ifdef __cplusplus
18283 extern "C"
18284 #endif
18285 /* We use char because int might match the return type of a gcc2
18286    builtin and then its argument prototype would still apply.  */
18287 char dnet_ntoa ();
18288 int
18289 main ()
18290 {
18291 dnet_ntoa ();
18292   ;
18293   return 0;
18294 }
18295 _ACEOF
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18298   (eval $ac_link) 2>conftest.er1
18299   ac_status=$?
18300   grep -v '^ *+' conftest.er1 >conftest.err
18301   rm -f conftest.er1
18302   cat conftest.err >&5
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); } &&
18305          { ac_try='test -z "$ac_c_werror_flag"
18306                          || test ! -s conftest.err'
18307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308   (eval $ac_try) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; } &&
18312          { ac_try='test -s conftest$ac_exeext'
18313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314   (eval $ac_try) 2>&5
18315   ac_status=$?
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); }; }; then
18318   ac_cv_lib_dnet_dnet_ntoa=yes
18319 else
18320   echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18322
18323 ac_cv_lib_dnet_dnet_ntoa=no
18324 fi
18325 rm -f conftest.err conftest.$ac_objext \
18326       conftest$ac_exeext conftest.$ac_ext
18327 LIBS=$ac_check_lib_save_LIBS
18328 fi
18329 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18330 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18331 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18332   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18333 fi
18334
18335     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18336       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18337 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18338 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18339   echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341   ac_check_lib_save_LIBS=$LIBS
18342 LIBS="-ldnet_stub  $LIBS"
18343 cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349
18350 /* Override any gcc2 internal prototype to avoid an error.  */
18351 #ifdef __cplusplus
18352 extern "C"
18353 #endif
18354 /* We use char because int might match the return type of a gcc2
18355    builtin and then its argument prototype would still apply.  */
18356 char dnet_ntoa ();
18357 int
18358 main ()
18359 {
18360 dnet_ntoa ();
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367   (eval $ac_link) 2>conftest.er1
18368   ac_status=$?
18369   grep -v '^ *+' conftest.er1 >conftest.err
18370   rm -f conftest.er1
18371   cat conftest.err >&5
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } &&
18374          { ac_try='test -z "$ac_c_werror_flag"
18375                          || test ! -s conftest.err'
18376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377   (eval $ac_try) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; } &&
18381          { ac_try='test -s conftest$ac_exeext'
18382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383   (eval $ac_try) 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; }; then
18387   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18388 else
18389   echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392 ac_cv_lib_dnet_stub_dnet_ntoa=no
18393 fi
18394 rm -f conftest.err conftest.$ac_objext \
18395       conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18397 fi
18398 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18399 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18400 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18401   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18402 fi
18403
18404     fi
18405 fi
18406 rm -f conftest.err conftest.$ac_objext \
18407       conftest$ac_exeext conftest.$ac_ext
18408     LIBS="$ac_xsave_LIBS"
18409
18410     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18411     # to get the SysV transport functions.
18412     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18413     # needs -lnsl.
18414     # The nsl library prevents programs from opening the X display
18415     # on Irix 5.2, according to T.E. Dickey.
18416     # The functions gethostbyname, getservbyname, and inet_addr are
18417     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18418     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18419 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18420 if test "${ac_cv_func_gethostbyname+set}" = set; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   cat >conftest.$ac_ext <<_ACEOF
18424 /* confdefs.h.  */
18425 _ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h.  */
18429 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18431 #define gethostbyname innocuous_gethostbyname
18432
18433 /* System header to define __stub macros and hopefully few prototypes,
18434     which can conflict with char gethostbyname (); below.
18435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18436     <limits.h> exists even on freestanding compilers.  */
18437
18438 #ifdef __STDC__
18439 # include <limits.h>
18440 #else
18441 # include <assert.h>
18442 #endif
18443
18444 #undef gethostbyname
18445
18446 /* Override any gcc2 internal prototype to avoid an error.  */
18447 #ifdef __cplusplus
18448 extern "C"
18449 {
18450 #endif
18451 /* We use char because int might match the return type of a gcc2
18452    builtin and then its argument prototype would still apply.  */
18453 char gethostbyname ();
18454 /* The GNU C library defines this for functions which it implements
18455     to always fail with ENOSYS.  Some functions are actually named
18456     something starting with __ and the normal name is an alias.  */
18457 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18458 choke me
18459 #else
18460 char (*f) () = gethostbyname;
18461 #endif
18462 #ifdef __cplusplus
18463 }
18464 #endif
18465
18466 int
18467 main ()
18468 {
18469 return f != gethostbyname;
18470   ;
18471   return 0;
18472 }
18473 _ACEOF
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476   (eval $ac_link) 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } &&
18483          { ac_try='test -z "$ac_c_werror_flag"
18484                          || test ! -s conftest.err'
18485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; } &&
18490          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18496   ac_cv_func_gethostbyname=yes
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501 ac_cv_func_gethostbyname=no
18502 fi
18503 rm -f conftest.err conftest.$ac_objext \
18504       conftest$ac_exeext conftest.$ac_ext
18505 fi
18506 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18507 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18508
18509     if test $ac_cv_func_gethostbyname = no; then
18510       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18511 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18512 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18513   echo $ECHO_N "(cached) $ECHO_C" >&6
18514 else
18515   ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lnsl  $LIBS"
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523
18524 /* Override any gcc2 internal prototype to avoid an error.  */
18525 #ifdef __cplusplus
18526 extern "C"
18527 #endif
18528 /* We use char because int might match the return type of a gcc2
18529    builtin and then its argument prototype would still apply.  */
18530 char gethostbyname ();
18531 int
18532 main ()
18533 {
18534 gethostbyname ();
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541   (eval $ac_link) 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -z "$ac_c_werror_flag"
18549                          || test ! -s conftest.err'
18550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551   (eval $ac_try) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; } &&
18555          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18561   ac_cv_lib_nsl_gethostbyname=yes
18562 else
18563   echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18565
18566 ac_cv_lib_nsl_gethostbyname=no
18567 fi
18568 rm -f conftest.err conftest.$ac_objext \
18569       conftest$ac_exeext conftest.$ac_ext
18570 LIBS=$ac_check_lib_save_LIBS
18571 fi
18572 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18573 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18574 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18575   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18576 fi
18577
18578       if test $ac_cv_lib_nsl_gethostbyname = no; then
18579         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18580 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18581 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lbsd  $LIBS"
18586 cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h.  */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h.  */
18592
18593 /* Override any gcc2 internal prototype to avoid an error.  */
18594 #ifdef __cplusplus
18595 extern "C"
18596 #endif
18597 /* We use char because int might match the return type of a gcc2
18598    builtin and then its argument prototype would still apply.  */
18599 char gethostbyname ();
18600 int
18601 main ()
18602 {
18603 gethostbyname ();
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18610   (eval $ac_link) 2>conftest.er1
18611   ac_status=$?
18612   grep -v '^ *+' conftest.er1 >conftest.err
18613   rm -f conftest.er1
18614   cat conftest.err >&5
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); } &&
18617          { ac_try='test -z "$ac_c_werror_flag"
18618                          || test ! -s conftest.err'
18619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620   (eval $ac_try) 2>&5
18621   ac_status=$?
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); }; } &&
18624          { ac_try='test -s conftest$ac_exeext'
18625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626   (eval $ac_try) 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); }; }; then
18630   ac_cv_lib_bsd_gethostbyname=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 ac_cv_lib_bsd_gethostbyname=no
18636 fi
18637 rm -f conftest.err conftest.$ac_objext \
18638       conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18640 fi
18641 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18642 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18643 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18644   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18645 fi
18646
18647       fi
18648     fi
18649
18650     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18651     # socket/setsockopt and other routines are undefined under SCO ODT
18652     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18653     # on later versions), says Simon Leinen: it contains gethostby*
18654     # variants that don't use the name server (or something).  -lsocket
18655     # must be given before -lnsl if both are needed.  We assume that
18656     # if connect needs -lnsl, so does gethostbyname.
18657     echo "$as_me:$LINENO: checking for connect" >&5
18658 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18659 if test "${ac_cv_func_connect+set}" = set; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18670 #define connect innocuous_connect
18671
18672 /* System header to define __stub macros and hopefully few prototypes,
18673     which can conflict with char connect (); below.
18674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675     <limits.h> exists even on freestanding compilers.  */
18676
18677 #ifdef __STDC__
18678 # include <limits.h>
18679 #else
18680 # include <assert.h>
18681 #endif
18682
18683 #undef connect
18684
18685 /* Override any gcc2 internal prototype to avoid an error.  */
18686 #ifdef __cplusplus
18687 extern "C"
18688 {
18689 #endif
18690 /* We use char because int might match the return type of a gcc2
18691    builtin and then its argument prototype would still apply.  */
18692 char connect ();
18693 /* The GNU C library defines this for functions which it implements
18694     to always fail with ENOSYS.  Some functions are actually named
18695     something starting with __ and the normal name is an alias.  */
18696 #if defined (__stub_connect) || defined (__stub___connect)
18697 choke me
18698 #else
18699 char (*f) () = connect;
18700 #endif
18701 #ifdef __cplusplus
18702 }
18703 #endif
18704
18705 int
18706 main ()
18707 {
18708 return f != connect;
18709   ;
18710   return 0;
18711 }
18712 _ACEOF
18713 rm -f conftest.$ac_objext conftest$ac_exeext
18714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18715   (eval $ac_link) 2>conftest.er1
18716   ac_status=$?
18717   grep -v '^ *+' conftest.er1 >conftest.err
18718   rm -f conftest.er1
18719   cat conftest.err >&5
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); } &&
18722          { ac_try='test -z "$ac_c_werror_flag"
18723                          || test ! -s conftest.err'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; } &&
18729          { ac_try='test -s conftest$ac_exeext'
18730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18731   (eval $ac_try) 2>&5
18732   ac_status=$?
18733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734   (exit $ac_status); }; }; then
18735   ac_cv_func_connect=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740 ac_cv_func_connect=no
18741 fi
18742 rm -f conftest.err conftest.$ac_objext \
18743       conftest$ac_exeext conftest.$ac_ext
18744 fi
18745 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18746 echo "${ECHO_T}$ac_cv_func_connect" >&6
18747
18748     if test $ac_cv_func_connect = no; then
18749       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18750 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18751 if test "${ac_cv_lib_socket_connect+set}" = set; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   ac_check_lib_save_LIBS=$LIBS
18755 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762
18763 /* Override any gcc2 internal prototype to avoid an error.  */
18764 #ifdef __cplusplus
18765 extern "C"
18766 #endif
18767 /* We use char because int might match the return type of a gcc2
18768    builtin and then its argument prototype would still apply.  */
18769 char connect ();
18770 int
18771 main ()
18772 {
18773 connect ();
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18780   (eval $ac_link) 2>conftest.er1
18781   ac_status=$?
18782   grep -v '^ *+' conftest.er1 >conftest.err
18783   rm -f conftest.er1
18784   cat conftest.err >&5
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); } &&
18787          { ac_try='test -z "$ac_c_werror_flag"
18788                          || test ! -s conftest.err'
18789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790   (eval $ac_try) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; } &&
18794          { ac_try='test -s conftest$ac_exeext'
18795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796   (eval $ac_try) 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; }; then
18800   ac_cv_lib_socket_connect=yes
18801 else
18802   echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 ac_cv_lib_socket_connect=no
18806 fi
18807 rm -f conftest.err conftest.$ac_objext \
18808       conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18810 fi
18811 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18812 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18813 if test $ac_cv_lib_socket_connect = yes; then
18814   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18815 fi
18816
18817     fi
18818
18819     # Guillermo Gomez says -lposix is necessary on A/UX.
18820     echo "$as_me:$LINENO: checking for remove" >&5
18821 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18822 if test "${ac_cv_func_remove+set}" = set; then
18823   echo $ECHO_N "(cached) $ECHO_C" >&6
18824 else
18825   cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18833 #define remove innocuous_remove
18834
18835 /* System header to define __stub macros and hopefully few prototypes,
18836     which can conflict with char remove (); below.
18837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838     <limits.h> exists even on freestanding compilers.  */
18839
18840 #ifdef __STDC__
18841 # include <limits.h>
18842 #else
18843 # include <assert.h>
18844 #endif
18845
18846 #undef remove
18847
18848 /* Override any gcc2 internal prototype to avoid an error.  */
18849 #ifdef __cplusplus
18850 extern "C"
18851 {
18852 #endif
18853 /* We use char because int might match the return type of a gcc2
18854    builtin and then its argument prototype would still apply.  */
18855 char remove ();
18856 /* The GNU C library defines this for functions which it implements
18857     to always fail with ENOSYS.  Some functions are actually named
18858     something starting with __ and the normal name is an alias.  */
18859 #if defined (__stub_remove) || defined (__stub___remove)
18860 choke me
18861 #else
18862 char (*f) () = remove;
18863 #endif
18864 #ifdef __cplusplus
18865 }
18866 #endif
18867
18868 int
18869 main ()
18870 {
18871 return f != remove;
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878   (eval $ac_link) 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag"
18886                          || test ! -s conftest.err'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest$ac_exeext'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   ac_cv_func_remove=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ac_cv_func_remove=no
18904 fi
18905 rm -f conftest.err conftest.$ac_objext \
18906       conftest$ac_exeext conftest.$ac_ext
18907 fi
18908 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18909 echo "${ECHO_T}$ac_cv_func_remove" >&6
18910
18911     if test $ac_cv_func_remove = no; then
18912       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18913 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18914 if test "${ac_cv_lib_posix_remove+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   ac_check_lib_save_LIBS=$LIBS
18918 LIBS="-lposix  $LIBS"
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h.  */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h.  */
18925
18926 /* Override any gcc2 internal prototype to avoid an error.  */
18927 #ifdef __cplusplus
18928 extern "C"
18929 #endif
18930 /* We use char because int might match the return type of a gcc2
18931    builtin and then its argument prototype would still apply.  */
18932 char remove ();
18933 int
18934 main ()
18935 {
18936 remove ();
18937   ;
18938   return 0;
18939 }
18940 _ACEOF
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18943   (eval $ac_link) 2>conftest.er1
18944   ac_status=$?
18945   grep -v '^ *+' conftest.er1 >conftest.err
18946   rm -f conftest.er1
18947   cat conftest.err >&5
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); } &&
18950          { ac_try='test -z "$ac_c_werror_flag"
18951                          || test ! -s conftest.err'
18952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953   (eval $ac_try) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; } &&
18957          { ac_try='test -s conftest$ac_exeext'
18958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959   (eval $ac_try) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); }; }; then
18963   ac_cv_lib_posix_remove=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968 ac_cv_lib_posix_remove=no
18969 fi
18970 rm -f conftest.err conftest.$ac_objext \
18971       conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18973 fi
18974 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18975 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18976 if test $ac_cv_lib_posix_remove = yes; then
18977   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18978 fi
18979
18980     fi
18981
18982     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18983     echo "$as_me:$LINENO: checking for shmat" >&5
18984 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18985 if test "${ac_cv_func_shmat+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988   cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h.  */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h.  */
18994 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18996 #define shmat innocuous_shmat
18997
18998 /* System header to define __stub macros and hopefully few prototypes,
18999     which can conflict with char shmat (); below.
19000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19001     <limits.h> exists even on freestanding compilers.  */
19002
19003 #ifdef __STDC__
19004 # include <limits.h>
19005 #else
19006 # include <assert.h>
19007 #endif
19008
19009 #undef shmat
19010
19011 /* Override any gcc2 internal prototype to avoid an error.  */
19012 #ifdef __cplusplus
19013 extern "C"
19014 {
19015 #endif
19016 /* We use char because int might match the return type of a gcc2
19017    builtin and then its argument prototype would still apply.  */
19018 char shmat ();
19019 /* The GNU C library defines this for functions which it implements
19020     to always fail with ENOSYS.  Some functions are actually named
19021     something starting with __ and the normal name is an alias.  */
19022 #if defined (__stub_shmat) || defined (__stub___shmat)
19023 choke me
19024 #else
19025 char (*f) () = shmat;
19026 #endif
19027 #ifdef __cplusplus
19028 }
19029 #endif
19030
19031 int
19032 main ()
19033 {
19034 return f != shmat;
19035   ;
19036   return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19041   (eval $ac_link) 2>conftest.er1
19042   ac_status=$?
19043   grep -v '^ *+' conftest.er1 >conftest.err
19044   rm -f conftest.er1
19045   cat conftest.err >&5
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); } &&
19048          { ac_try='test -z "$ac_c_werror_flag"
19049                          || test ! -s conftest.err'
19050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051   (eval $ac_try) 2>&5
19052   ac_status=$?
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); }; } &&
19055          { ac_try='test -s conftest$ac_exeext'
19056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057   (eval $ac_try) 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; }; then
19061   ac_cv_func_shmat=yes
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 ac_cv_func_shmat=no
19067 fi
19068 rm -f conftest.err conftest.$ac_objext \
19069       conftest$ac_exeext conftest.$ac_ext
19070 fi
19071 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19072 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19073
19074     if test $ac_cv_func_shmat = no; then
19075       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19076 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19077 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19078   echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080   ac_check_lib_save_LIBS=$LIBS
19081 LIBS="-lipc  $LIBS"
19082 cat >conftest.$ac_ext <<_ACEOF
19083 /* confdefs.h.  */
19084 _ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h.  */
19088
19089 /* Override any gcc2 internal prototype to avoid an error.  */
19090 #ifdef __cplusplus
19091 extern "C"
19092 #endif
19093 /* We use char because int might match the return type of a gcc2
19094    builtin and then its argument prototype would still apply.  */
19095 char shmat ();
19096 int
19097 main ()
19098 {
19099 shmat ();
19100   ;
19101   return 0;
19102 }
19103 _ACEOF
19104 rm -f conftest.$ac_objext conftest$ac_exeext
19105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19106   (eval $ac_link) 2>conftest.er1
19107   ac_status=$?
19108   grep -v '^ *+' conftest.er1 >conftest.err
19109   rm -f conftest.er1
19110   cat conftest.err >&5
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } &&
19113          { ac_try='test -z "$ac_c_werror_flag"
19114                          || test ! -s conftest.err'
19115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116   (eval $ac_try) 2>&5
19117   ac_status=$?
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); }; } &&
19120          { ac_try='test -s conftest$ac_exeext'
19121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122   (eval $ac_try) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; }; then
19126   ac_cv_lib_ipc_shmat=yes
19127 else
19128   echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131 ac_cv_lib_ipc_shmat=no
19132 fi
19133 rm -f conftest.err conftest.$ac_objext \
19134       conftest$ac_exeext conftest.$ac_ext
19135 LIBS=$ac_check_lib_save_LIBS
19136 fi
19137 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19138 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19139 if test $ac_cv_lib_ipc_shmat = yes; then
19140   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19141 fi
19142
19143     fi
19144   fi
19145
19146   # Check for libraries that X11R6 Xt/Xaw programs need.
19147   ac_save_LDFLAGS=$LDFLAGS
19148   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19149   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19150   # check for ICE first), but we must link in the order -lSM -lICE or
19151   # we get undefined symbols.  So assume we have SM if we have ICE.
19152   # These have to be linked with before -lX11, unlike the other
19153   # libraries we check for below, so use a different variable.
19154   # John Interrante, Karl Berry
19155   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19156 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19157 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160   ac_check_lib_save_LIBS=$LIBS
19161 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168
19169 /* Override any gcc2 internal prototype to avoid an error.  */
19170 #ifdef __cplusplus
19171 extern "C"
19172 #endif
19173 /* We use char because int might match the return type of a gcc2
19174    builtin and then its argument prototype would still apply.  */
19175 char IceConnectionNumber ();
19176 int
19177 main ()
19178 {
19179 IceConnectionNumber ();
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19186   (eval $ac_link) 2>conftest.er1
19187   ac_status=$?
19188   grep -v '^ *+' conftest.er1 >conftest.err
19189   rm -f conftest.er1
19190   cat conftest.err >&5
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); } &&
19193          { ac_try='test -z "$ac_c_werror_flag"
19194                          || test ! -s conftest.err'
19195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196   (eval $ac_try) 2>&5
19197   ac_status=$?
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); }; } &&
19200          { ac_try='test -s conftest$ac_exeext'
19201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202   (eval $ac_try) 2>&5
19203   ac_status=$?
19204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205   (exit $ac_status); }; }; then
19206   ac_cv_lib_ICE_IceConnectionNumber=yes
19207 else
19208   echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 ac_cv_lib_ICE_IceConnectionNumber=no
19212 fi
19213 rm -f conftest.err conftest.$ac_objext \
19214       conftest$ac_exeext conftest.$ac_ext
19215 LIBS=$ac_check_lib_save_LIBS
19216 fi
19217 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19218 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19219 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19220   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19221 fi
19222
19223   LDFLAGS=$ac_save_LDFLAGS
19224
19225 fi
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255 for ac_header in \
19256         assert.h \
19257         fcntl.h \
19258         grp.h \
19259         pwd.h \
19260         libc.h \
19261         limits.h \
19262         stdarg.h \
19263         stdlib.h \
19264         stdint.h \
19265         string.h \
19266         termios.h \
19267         termcap.h \
19268         term.h \
19269         unistd.h \
19270         sys/bitypes.h \
19271         sys/byteorder.h \
19272         sys/ioctl.h \
19273         sys/select.h \
19274         sys/sockio.h \
19275         sys/time.h \
19276         sys/socket.h \
19277         arpa/nameser.h \
19278         resolv.h \
19279         mtio.h \
19280         sys/mtio.h \
19281         sys/tape.h \
19282         regex.h \
19283
19284 do
19285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19287   echo "$as_me:$LINENO: checking for $ac_header" >&5
19288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 fi
19292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19294 else
19295   # Is the header compilable?
19296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304 $ac_includes_default
19305 #include <$ac_header>
19306 _ACEOF
19307 rm -f conftest.$ac_objext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19309   (eval $ac_compile) 2>conftest.er1
19310   ac_status=$?
19311   grep -v '^ *+' conftest.er1 >conftest.err
19312   rm -f conftest.er1
19313   cat conftest.err >&5
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); } &&
19316          { ac_try='test -z "$ac_c_werror_flag"
19317                          || test ! -s conftest.err'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; } &&
19323          { ac_try='test -s conftest.$ac_objext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_header_compiler=yes
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ac_header_compiler=no
19335 fi
19336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19338 echo "${ECHO_T}$ac_header_compiler" >&6
19339
19340 # Is the header present?
19341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 #include <$ac_header>
19350 _ACEOF
19351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } >/dev/null; then
19359   if test -s conftest.err; then
19360     ac_cpp_err=$ac_c_preproc_warn_flag
19361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19362   else
19363     ac_cpp_err=
19364   fi
19365 else
19366   ac_cpp_err=yes
19367 fi
19368 if test -z "$ac_cpp_err"; then
19369   ac_header_preproc=yes
19370 else
19371   echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374   ac_header_preproc=no
19375 fi
19376 rm -f conftest.err conftest.$ac_ext
19377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19378 echo "${ECHO_T}$ac_header_preproc" >&6
19379
19380 # So?  What about this header?
19381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19382   yes:no: )
19383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19387     ac_header_preproc=yes
19388     ;;
19389   no:yes:* )
19390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19402     (
19403       cat <<\_ASBOX
19404 ## ------------------------------------------ ##
19405 ## Report this to the AC_PACKAGE_NAME lists.  ##
19406 ## ------------------------------------------ ##
19407 _ASBOX
19408     ) |
19409       sed "s/^/$as_me: WARNING:     /" >&2
19410     ;;
19411 esac
19412 echo "$as_me:$LINENO: checking for $ac_header" >&5
19413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19415   echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417   eval "$as_ac_Header=\$ac_header_preproc"
19418 fi
19419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19421
19422 fi
19423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19424   cat >>confdefs.h <<_ACEOF
19425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19426 _ACEOF
19427
19428 fi
19429
19430 done
19431
19432 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19434 if test "${ac_cv_header_stdc+set}" = set; then
19435   echo $ECHO_N "(cached) $ECHO_C" >&6
19436 else
19437   cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h.  */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h.  */
19443 #include <stdlib.h>
19444 #include <stdarg.h>
19445 #include <string.h>
19446 #include <float.h>
19447
19448 int
19449 main ()
19450 {
19451
19452   ;
19453   return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19458   (eval $ac_compile) 2>conftest.er1
19459   ac_status=$?
19460   grep -v '^ *+' conftest.er1 >conftest.err
19461   rm -f conftest.er1
19462   cat conftest.err >&5
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); } &&
19465          { ac_try='test -z "$ac_c_werror_flag"
19466                          || test ! -s conftest.err'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; } &&
19472          { ac_try='test -s conftest.$ac_objext'
19473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474   (eval $ac_try) 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_header_stdc=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483 ac_cv_header_stdc=no
19484 fi
19485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19486
19487 if test $ac_cv_header_stdc = yes; then
19488   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19489   cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495 #include <string.h>
19496
19497 _ACEOF
19498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19499   $EGREP "memchr" >/dev/null 2>&1; then
19500   :
19501 else
19502   ac_cv_header_stdc=no
19503 fi
19504 rm -f conftest*
19505
19506 fi
19507
19508 if test $ac_cv_header_stdc = yes; then
19509   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19510   cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h.  */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h.  */
19516 #include <stdlib.h>
19517
19518 _ACEOF
19519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19520   $EGREP "free" >/dev/null 2>&1; then
19521   :
19522 else
19523   ac_cv_header_stdc=no
19524 fi
19525 rm -f conftest*
19526
19527 fi
19528
19529 if test $ac_cv_header_stdc = yes; then
19530   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19531   if test "$cross_compiling" = yes; then
19532   :
19533 else
19534   cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 #include <ctype.h>
19541 #if ((' ' & 0x0FF) == 0x020)
19542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19544 #else
19545 # define ISLOWER(c) \
19546                    (('a' <= (c) && (c) <= 'i') \
19547                      || ('j' <= (c) && (c) <= 'r') \
19548                      || ('s' <= (c) && (c) <= 'z'))
19549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19550 #endif
19551
19552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19553 int
19554 main ()
19555 {
19556   int i;
19557   for (i = 0; i < 256; i++)
19558     if (XOR (islower (i), ISLOWER (i))
19559         || toupper (i) != TOUPPER (i))
19560       exit(2);
19561   exit (0);
19562 }
19563 _ACEOF
19564 rm -f conftest$ac_exeext
19565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19566   (eval $ac_link) 2>&5
19567   ac_status=$?
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571   (eval $ac_try) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; }; then
19575   :
19576 else
19577   echo "$as_me: program exited with status $ac_status" >&5
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19580
19581 ( exit $ac_status )
19582 ac_cv_header_stdc=no
19583 fi
19584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19585 fi
19586 fi
19587 fi
19588 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19589 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19590 if test $ac_cv_header_stdc = yes; then
19591
19592 cat >>confdefs.h <<\_ACEOF
19593 #define STDC_HEADERS 1
19594 _ACEOF
19595
19596 fi
19597
19598 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19599 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19600 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19601   echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603   cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h.  */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h.  */
19609 #include <sys/types.h>
19610 int
19611 main ()
19612 {
19613 return makedev(0, 0);
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19620   (eval $ac_link) 2>conftest.er1
19621   ac_status=$?
19622   grep -v '^ *+' conftest.er1 >conftest.err
19623   rm -f conftest.er1
19624   cat conftest.err >&5
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); } &&
19627          { ac_try='test -z "$ac_c_werror_flag"
19628                          || test ! -s conftest.err'
19629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630   (eval $ac_try) 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); }; } &&
19634          { ac_try='test -s conftest$ac_exeext'
19635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636   (eval $ac_try) 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; }; then
19640   ac_cv_header_sys_types_h_makedev=yes
19641 else
19642   echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645 ac_cv_header_sys_types_h_makedev=no
19646 fi
19647 rm -f conftest.err conftest.$ac_objext \
19648       conftest$ac_exeext conftest.$ac_ext
19649
19650 fi
19651 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19652 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19653
19654 if test $ac_cv_header_sys_types_h_makedev = no; then
19655 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19656   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19657 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19658 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19659   echo $ECHO_N "(cached) $ECHO_C" >&6
19660 fi
19661 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19662 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19663 else
19664   # Is the header compilable?
19665 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19666 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h.  */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h.  */
19673 $ac_includes_default
19674 #include <sys/mkdev.h>
19675 _ACEOF
19676 rm -f conftest.$ac_objext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19678   (eval $ac_compile) 2>conftest.er1
19679   ac_status=$?
19680   grep -v '^ *+' conftest.er1 >conftest.err
19681   rm -f conftest.er1
19682   cat conftest.err >&5
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } &&
19685          { ac_try='test -z "$ac_c_werror_flag"
19686                          || test ! -s conftest.err'
19687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688   (eval $ac_try) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; } &&
19692          { ac_try='test -s conftest.$ac_objext'
19693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694   (eval $ac_try) 2>&5
19695   ac_status=$?
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; }; then
19698   ac_header_compiler=yes
19699 else
19700   echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703 ac_header_compiler=no
19704 fi
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19707 echo "${ECHO_T}$ac_header_compiler" >&6
19708
19709 # Is the header present?
19710 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19711 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19712 cat >conftest.$ac_ext <<_ACEOF
19713 /* confdefs.h.  */
19714 _ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h.  */
19718 #include <sys/mkdev.h>
19719 _ACEOF
19720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19722   ac_status=$?
19723   grep -v '^ *+' conftest.er1 >conftest.err
19724   rm -f conftest.er1
19725   cat conftest.err >&5
19726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727   (exit $ac_status); } >/dev/null; then
19728   if test -s conftest.err; then
19729     ac_cpp_err=$ac_c_preproc_warn_flag
19730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19731   else
19732     ac_cpp_err=
19733   fi
19734 else
19735   ac_cpp_err=yes
19736 fi
19737 if test -z "$ac_cpp_err"; then
19738   ac_header_preproc=yes
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743   ac_header_preproc=no
19744 fi
19745 rm -f conftest.err conftest.$ac_ext
19746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19747 echo "${ECHO_T}$ac_header_preproc" >&6
19748
19749 # So?  What about this header?
19750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19751   yes:no: )
19752     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19753 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19754     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19755 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19756     ac_header_preproc=yes
19757     ;;
19758   no:yes:* )
19759     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19760 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19761     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19762 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19763     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19764 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19765     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19766 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19767     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19768 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19769     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19770 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19771     (
19772       cat <<\_ASBOX
19773 ## ------------------------------------------ ##
19774 ## Report this to the AC_PACKAGE_NAME lists.  ##
19775 ## ------------------------------------------ ##
19776 _ASBOX
19777     ) |
19778       sed "s/^/$as_me: WARNING:     /" >&2
19779     ;;
19780 esac
19781 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19782 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19783 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19787 fi
19788 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19789 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19790
19791 fi
19792 if test $ac_cv_header_sys_mkdev_h = yes; then
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define MAJOR_IN_MKDEV 1
19796 _ACEOF
19797
19798 fi
19799
19800
19801
19802   if test $ac_cv_header_sys_mkdev_h = no; then
19803     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19804   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19805 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19806 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19807   echo $ECHO_N "(cached) $ECHO_C" >&6
19808 fi
19809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19810 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19811 else
19812   # Is the header compilable?
19813 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19814 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19815 cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h.  */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h.  */
19821 $ac_includes_default
19822 #include <sys/sysmacros.h>
19823 _ACEOF
19824 rm -f conftest.$ac_objext
19825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19826   (eval $ac_compile) 2>conftest.er1
19827   ac_status=$?
19828   grep -v '^ *+' conftest.er1 >conftest.err
19829   rm -f conftest.er1
19830   cat conftest.err >&5
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); } &&
19833          { ac_try='test -z "$ac_c_werror_flag"
19834                          || test ! -s conftest.err'
19835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836   (eval $ac_try) 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; } &&
19840          { ac_try='test -s conftest.$ac_objext'
19841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842   (eval $ac_try) 2>&5
19843   ac_status=$?
19844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845   (exit $ac_status); }; }; then
19846   ac_header_compiler=yes
19847 else
19848   echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851 ac_header_compiler=no
19852 fi
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19855 echo "${ECHO_T}$ac_header_compiler" >&6
19856
19857 # Is the header present?
19858 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19859 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h.  */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h.  */
19866 #include <sys/sysmacros.h>
19867 _ACEOF
19868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } >/dev/null; then
19876   if test -s conftest.err; then
19877     ac_cpp_err=$ac_c_preproc_warn_flag
19878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19879   else
19880     ac_cpp_err=
19881   fi
19882 else
19883   ac_cpp_err=yes
19884 fi
19885 if test -z "$ac_cpp_err"; then
19886   ac_header_preproc=yes
19887 else
19888   echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891   ac_header_preproc=no
19892 fi
19893 rm -f conftest.err conftest.$ac_ext
19894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19895 echo "${ECHO_T}$ac_header_preproc" >&6
19896
19897 # So?  What about this header?
19898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19899   yes:no: )
19900     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19901 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19902     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19903 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19904     ac_header_preproc=yes
19905     ;;
19906   no:yes:* )
19907     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19908 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19909     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19910 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19911     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19912 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19913     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19914 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19915     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19916 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19917     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19918 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19919     (
19920       cat <<\_ASBOX
19921 ## ------------------------------------------ ##
19922 ## Report this to the AC_PACKAGE_NAME lists.  ##
19923 ## ------------------------------------------ ##
19924 _ASBOX
19925     ) |
19926       sed "s/^/$as_me: WARNING:     /" >&2
19927     ;;
19928 esac
19929 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19930 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19931 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19932   echo $ECHO_N "(cached) $ECHO_C" >&6
19933 else
19934   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19935 fi
19936 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19937 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19938
19939 fi
19940 if test $ac_cv_header_sys_sysmacros_h = yes; then
19941
19942 cat >>confdefs.h <<\_ACEOF
19943 #define MAJOR_IN_SYSMACROS 1
19944 _ACEOF
19945
19946 fi
19947
19948
19949   fi
19950 fi
19951
19952
19953
19954
19955
19956
19957 ac_header_dirent=no
19958 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19959   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19960 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19961 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19963   echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965   cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h.  */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h.  */
19971 #include <sys/types.h>
19972 #include <$ac_hdr>
19973
19974 int
19975 main ()
19976 {
19977 if ((DIR *) 0)
19978 return 0;
19979   ;
19980   return 0;
19981 }
19982 _ACEOF
19983 rm -f conftest.$ac_objext
19984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19985   (eval $ac_compile) 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } &&
19992          { ac_try='test -z "$ac_c_werror_flag"
19993                          || test ! -s conftest.err'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; } &&
19999          { ac_try='test -s conftest.$ac_objext'
20000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001   (eval $ac_try) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   eval "$as_ac_Header=yes"
20006 else
20007   echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 eval "$as_ac_Header=no"
20011 fi
20012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 fi
20014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20017   cat >>confdefs.h <<_ACEOF
20018 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20019 _ACEOF
20020
20021 ac_header_dirent=$ac_hdr; break
20022 fi
20023
20024 done
20025 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20026 if test $ac_header_dirent = dirent.h; then
20027   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20028 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20029 if test "${ac_cv_search_opendir+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   ac_func_search_save_LIBS=$LIBS
20033 ac_cv_search_opendir=no
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040
20041 /* Override any gcc2 internal prototype to avoid an error.  */
20042 #ifdef __cplusplus
20043 extern "C"
20044 #endif
20045 /* We use char because int might match the return type of a gcc2
20046    builtin and then its argument prototype would still apply.  */
20047 char opendir ();
20048 int
20049 main ()
20050 {
20051 opendir ();
20052   ;
20053   return 0;
20054 }
20055 _ACEOF
20056 rm -f conftest.$ac_objext conftest$ac_exeext
20057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20058   (eval $ac_link) 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } &&
20065          { ac_try='test -z "$ac_c_werror_flag"
20066                          || test ! -s conftest.err'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; } &&
20072          { ac_try='test -s conftest$ac_exeext'
20073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074   (eval $ac_try) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; }; then
20078   ac_cv_search_opendir="none required"
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 fi
20084 rm -f conftest.err conftest.$ac_objext \
20085       conftest$ac_exeext conftest.$ac_ext
20086 if test "$ac_cv_search_opendir" = no; then
20087   for ac_lib in dir; do
20088     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20089     cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h.  */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h.  */
20095
20096 /* Override any gcc2 internal prototype to avoid an error.  */
20097 #ifdef __cplusplus
20098 extern "C"
20099 #endif
20100 /* We use char because int might match the return type of a gcc2
20101    builtin and then its argument prototype would still apply.  */
20102 char opendir ();
20103 int
20104 main ()
20105 {
20106 opendir ();
20107   ;
20108   return 0;
20109 }
20110 _ACEOF
20111 rm -f conftest.$ac_objext conftest$ac_exeext
20112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20113   (eval $ac_link) 2>conftest.er1
20114   ac_status=$?
20115   grep -v '^ *+' conftest.er1 >conftest.err
20116   rm -f conftest.er1
20117   cat conftest.err >&5
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } &&
20120          { ac_try='test -z "$ac_c_werror_flag"
20121                          || test ! -s conftest.err'
20122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20123   (eval $ac_try) 2>&5
20124   ac_status=$?
20125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126   (exit $ac_status); }; } &&
20127          { ac_try='test -s conftest$ac_exeext'
20128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129   (eval $ac_try) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); }; }; then
20133   ac_cv_search_opendir="-l$ac_lib"
20134 break
20135 else
20136   echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 fi
20140 rm -f conftest.err conftest.$ac_objext \
20141       conftest$ac_exeext conftest.$ac_ext
20142   done
20143 fi
20144 LIBS=$ac_func_search_save_LIBS
20145 fi
20146 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20147 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20148 if test "$ac_cv_search_opendir" != no; then
20149   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20150
20151 fi
20152
20153 else
20154   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20156 if test "${ac_cv_search_opendir+set}" = set; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   ac_func_search_save_LIBS=$LIBS
20160 ac_cv_search_opendir=no
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h.  */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h.  */
20167
20168 /* Override any gcc2 internal prototype to avoid an error.  */
20169 #ifdef __cplusplus
20170 extern "C"
20171 #endif
20172 /* We use char because int might match the return type of a gcc2
20173    builtin and then its argument prototype would still apply.  */
20174 char opendir ();
20175 int
20176 main ()
20177 {
20178 opendir ();
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185   (eval $ac_link) 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag"
20193                          || test ! -s conftest.err'
20194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195   (eval $ac_try) 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest$ac_exeext'
20200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201   (eval $ac_try) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; }; then
20205   ac_cv_search_opendir="none required"
20206 else
20207   echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210 fi
20211 rm -f conftest.err conftest.$ac_objext \
20212       conftest$ac_exeext conftest.$ac_ext
20213 if test "$ac_cv_search_opendir" = no; then
20214   for ac_lib in x; do
20215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20216     cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222
20223 /* Override any gcc2 internal prototype to avoid an error.  */
20224 #ifdef __cplusplus
20225 extern "C"
20226 #endif
20227 /* We use char because int might match the return type of a gcc2
20228    builtin and then its argument prototype would still apply.  */
20229 char opendir ();
20230 int
20231 main ()
20232 {
20233 opendir ();
20234   ;
20235   return 0;
20236 }
20237 _ACEOF
20238 rm -f conftest.$ac_objext conftest$ac_exeext
20239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20240   (eval $ac_link) 2>conftest.er1
20241   ac_status=$?
20242   grep -v '^ *+' conftest.er1 >conftest.err
20243   rm -f conftest.er1
20244   cat conftest.err >&5
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } &&
20247          { ac_try='test -z "$ac_c_werror_flag"
20248                          || test ! -s conftest.err'
20249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250   (eval $ac_try) 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; } &&
20254          { ac_try='test -s conftest$ac_exeext'
20255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20256   (eval $ac_try) 2>&5
20257   ac_status=$?
20258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); }; }; then
20260   ac_cv_search_opendir="-l$ac_lib"
20261 break
20262 else
20263   echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20265
20266 fi
20267 rm -f conftest.err conftest.$ac_objext \
20268       conftest$ac_exeext conftest.$ac_ext
20269   done
20270 fi
20271 LIBS=$ac_func_search_save_LIBS
20272 fi
20273 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20274 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20275 if test "$ac_cv_search_opendir" != no; then
20276   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20277
20278 fi
20279
20280 fi
20281
20282 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20283 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20284 if test "${ac_cv_header_stat_broken+set}" = set; then
20285   echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287   cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 #include <sys/types.h>
20294 #include <sys/stat.h>
20295
20296 #if defined(S_ISBLK) && defined(S_IFDIR)
20297 # if S_ISBLK (S_IFDIR)
20298 You lose.
20299 # endif
20300 #endif
20301
20302 #if defined(S_ISBLK) && defined(S_IFCHR)
20303 # if S_ISBLK (S_IFCHR)
20304 You lose.
20305 # endif
20306 #endif
20307
20308 #if defined(S_ISLNK) && defined(S_IFREG)
20309 # if S_ISLNK (S_IFREG)
20310 You lose.
20311 # endif
20312 #endif
20313
20314 #if defined(S_ISSOCK) && defined(S_IFREG)
20315 # if S_ISSOCK (S_IFREG)
20316 You lose.
20317 # endif
20318 #endif
20319
20320 _ACEOF
20321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20322   $EGREP "You lose" >/dev/null 2>&1; then
20323   ac_cv_header_stat_broken=yes
20324 else
20325   ac_cv_header_stat_broken=no
20326 fi
20327 rm -f conftest*
20328
20329 fi
20330 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20331 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20332 if test $ac_cv_header_stat_broken = yes; then
20333
20334 cat >>confdefs.h <<\_ACEOF
20335 #define STAT_MACROS_BROKEN 1
20336 _ACEOF
20337
20338 fi
20339
20340 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20341 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20342 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345   cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351 #include <sys/types.h>
20352 #include <sys/wait.h>
20353 #ifndef WEXITSTATUS
20354 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20355 #endif
20356 #ifndef WIFEXITED
20357 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20358 #endif
20359
20360 int
20361 main ()
20362 {
20363   int s;
20364   wait (&s);
20365   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372   (eval $ac_compile) 2>conftest.er1
20373   ac_status=$?
20374   grep -v '^ *+' conftest.er1 >conftest.err
20375   rm -f conftest.er1
20376   cat conftest.err >&5
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); } &&
20379          { ac_try='test -z "$ac_c_werror_flag"
20380                          || test ! -s conftest.err'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; } &&
20386          { ac_try='test -s conftest.$ac_objext'
20387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388   (eval $ac_try) 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; }; then
20392   ac_cv_header_sys_wait_h=yes
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 ac_cv_header_sys_wait_h=no
20398 fi
20399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400 fi
20401 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20402 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20403 if test $ac_cv_header_sys_wait_h = yes; then
20404
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_SYS_WAIT_H 1
20407 _ACEOF
20408
20409 fi
20410
20411 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20412 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20413 if test "${ac_cv_header_time+set}" = set; then
20414   echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416   cat >conftest.$ac_ext <<_ACEOF
20417 /* confdefs.h.  */
20418 _ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h.  */
20422 #include <sys/types.h>
20423 #include <sys/time.h>
20424 #include <time.h>
20425
20426 int
20427 main ()
20428 {
20429 if ((struct tm *) 0)
20430 return 0;
20431   ;
20432   return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437   (eval $ac_compile) 2>conftest.er1
20438   ac_status=$?
20439   grep -v '^ *+' conftest.er1 >conftest.err
20440   rm -f conftest.er1
20441   cat conftest.err >&5
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); } &&
20444          { ac_try='test -z "$ac_c_werror_flag"
20445                          || test ! -s conftest.err'
20446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447   (eval $ac_try) 2>&5
20448   ac_status=$?
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); }; } &&
20451          { ac_try='test -s conftest.$ac_objext'
20452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453   (eval $ac_try) 2>&5
20454   ac_status=$?
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); }; }; then
20457   ac_cv_header_time=yes
20458 else
20459   echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462 ac_cv_header_time=no
20463 fi
20464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20465 fi
20466 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20467 echo "${ECHO_T}$ac_cv_header_time" >&6
20468 if test $ac_cv_header_time = yes; then
20469
20470 cat >>confdefs.h <<\_ACEOF
20471 #define TIME_WITH_SYS_TIME 1
20472 _ACEOF
20473
20474 fi
20475
20476
20477 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20478 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20479 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20480   echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482   cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488 $ac_includes_default
20489 int
20490 main ()
20491 {
20492 static struct stat ac_aggr;
20493 if (ac_aggr.st_blksize)
20494 return 0;
20495   ;
20496   return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501   (eval $ac_compile) 2>conftest.er1
20502   ac_status=$?
20503   grep -v '^ *+' conftest.er1 >conftest.err
20504   rm -f conftest.er1
20505   cat conftest.err >&5
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); } &&
20508          { ac_try='test -z "$ac_c_werror_flag"
20509                          || test ! -s conftest.err'
20510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511   (eval $ac_try) 2>&5
20512   ac_status=$?
20513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514   (exit $ac_status); }; } &&
20515          { ac_try='test -s conftest.$ac_objext'
20516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517   (eval $ac_try) 2>&5
20518   ac_status=$?
20519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520   (exit $ac_status); }; }; then
20521   ac_cv_member_struct_stat_st_blksize=yes
20522 else
20523   echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532 $ac_includes_default
20533 int
20534 main ()
20535 {
20536 static struct stat ac_aggr;
20537 if (sizeof ac_aggr.st_blksize)
20538 return 0;
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20545   (eval $ac_compile) 2>conftest.er1
20546   ac_status=$?
20547   grep -v '^ *+' conftest.er1 >conftest.err
20548   rm -f conftest.er1
20549   cat conftest.err >&5
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } &&
20552          { ac_try='test -z "$ac_c_werror_flag"
20553                          || test ! -s conftest.err'
20554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555   (eval $ac_try) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; } &&
20559          { ac_try='test -s conftest.$ac_objext'
20560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20561   (eval $ac_try) 2>&5
20562   ac_status=$?
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); }; }; then
20565   ac_cv_member_struct_stat_st_blksize=yes
20566 else
20567   echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20569
20570 ac_cv_member_struct_stat_st_blksize=no
20571 fi
20572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20573 fi
20574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20575 fi
20576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20578 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20579
20580 cat >>confdefs.h <<_ACEOF
20581 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20582 _ACEOF
20583
20584
20585 cat >>confdefs.h <<\_ACEOF
20586 #define HAVE_ST_BLKSIZE 1
20587 _ACEOF
20588
20589 fi
20590
20591
20592 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20593 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20594 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20595   echo $ECHO_N "(cached) $ECHO_C" >&6
20596 else
20597   cat >conftest.$ac_ext <<_ACEOF
20598 /* confdefs.h.  */
20599 _ACEOF
20600 cat confdefs.h >>conftest.$ac_ext
20601 cat >>conftest.$ac_ext <<_ACEOF
20602 /* end confdefs.h.  */
20603 $ac_includes_default
20604 int
20605 main ()
20606 {
20607 static struct stat ac_aggr;
20608 if (ac_aggr.st_blocks)
20609 return 0;
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 rm -f conftest.$ac_objext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20616   (eval $ac_compile) 2>conftest.er1
20617   ac_status=$?
20618   grep -v '^ *+' conftest.er1 >conftest.err
20619   rm -f conftest.er1
20620   cat conftest.err >&5
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } &&
20623          { ac_try='test -z "$ac_c_werror_flag"
20624                          || test ! -s conftest.err'
20625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626   (eval $ac_try) 2>&5
20627   ac_status=$?
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); }; } &&
20630          { ac_try='test -s conftest.$ac_objext'
20631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632   (eval $ac_try) 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; }; then
20636   ac_cv_member_struct_stat_st_blocks=yes
20637 else
20638   echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20640
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647 $ac_includes_default
20648 int
20649 main ()
20650 {
20651 static struct stat ac_aggr;
20652 if (sizeof ac_aggr.st_blocks)
20653 return 0;
20654   ;
20655   return 0;
20656 }
20657 _ACEOF
20658 rm -f conftest.$ac_objext
20659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20660   (eval $ac_compile) 2>conftest.er1
20661   ac_status=$?
20662   grep -v '^ *+' conftest.er1 >conftest.err
20663   rm -f conftest.er1
20664   cat conftest.err >&5
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); } &&
20667          { ac_try='test -z "$ac_c_werror_flag"
20668                          || test ! -s conftest.err'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; } &&
20674          { ac_try='test -s conftest.$ac_objext'
20675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676   (eval $ac_try) 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; }; then
20680   ac_cv_member_struct_stat_st_blocks=yes
20681 else
20682   echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685 ac_cv_member_struct_stat_st_blocks=no
20686 fi
20687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20688 fi
20689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20690 fi
20691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20692 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20693 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20694
20695 cat >>confdefs.h <<_ACEOF
20696 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20697 _ACEOF
20698
20699
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_ST_BLOCKS 1
20702 _ACEOF
20703
20704 else
20705   case $LIBOBJS in
20706     "fileblocks.$ac_objext"   | \
20707   *" fileblocks.$ac_objext"   | \
20708     "fileblocks.$ac_objext "* | \
20709   *" fileblocks.$ac_objext "* ) ;;
20710   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20711 esac
20712
20713 fi
20714
20715
20716 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20717 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20718 if test "${ac_cv_struct_tm+set}" = set; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 #include <sys/types.h>
20728 #include <time.h>
20729
20730 int
20731 main ()
20732 {
20733 struct tm *tp; tp->tm_sec;
20734   ;
20735   return 0;
20736 }
20737 _ACEOF
20738 rm -f conftest.$ac_objext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740   (eval $ac_compile) 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } &&
20747          { ac_try='test -z "$ac_c_werror_flag"
20748                          || test ! -s conftest.err'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; } &&
20754          { ac_try='test -s conftest.$ac_objext'
20755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756   (eval $ac_try) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; }; then
20760   ac_cv_struct_tm=time.h
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 ac_cv_struct_tm=sys/time.h
20766 fi
20767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20768 fi
20769 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20770 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20771 if test $ac_cv_struct_tm = sys/time.h; then
20772
20773 cat >>confdefs.h <<\_ACEOF
20774 #define TM_IN_SYS_TIME 1
20775 _ACEOF
20776
20777 fi
20778
20779 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20780 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20781 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20782   echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784   cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 #include <sys/types.h>
20791 #include <$ac_cv_struct_tm>
20792
20793
20794 int
20795 main ()
20796 {
20797 static struct tm ac_aggr;
20798 if (ac_aggr.tm_zone)
20799 return 0;
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 rm -f conftest.$ac_objext
20805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20806   (eval $ac_compile) 2>conftest.er1
20807   ac_status=$?
20808   grep -v '^ *+' conftest.er1 >conftest.err
20809   rm -f conftest.er1
20810   cat conftest.err >&5
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); } &&
20813          { ac_try='test -z "$ac_c_werror_flag"
20814                          || test ! -s conftest.err'
20815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816   (eval $ac_try) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; } &&
20820          { ac_try='test -s conftest.$ac_objext'
20821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822   (eval $ac_try) 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; }; then
20826   ac_cv_member_struct_tm_tm_zone=yes
20827 else
20828   echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20830
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 #include <sys/types.h>
20838 #include <$ac_cv_struct_tm>
20839
20840
20841 int
20842 main ()
20843 {
20844 static struct tm ac_aggr;
20845 if (sizeof ac_aggr.tm_zone)
20846 return 0;
20847   ;
20848   return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20853   (eval $ac_compile) 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } &&
20860          { ac_try='test -z "$ac_c_werror_flag"
20861                          || test ! -s conftest.err'
20862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863   (eval $ac_try) 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; } &&
20867          { ac_try='test -s conftest.$ac_objext'
20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869   (eval $ac_try) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; }; then
20873   ac_cv_member_struct_tm_tm_zone=yes
20874 else
20875   echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20877
20878 ac_cv_member_struct_tm_tm_zone=no
20879 fi
20880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20881 fi
20882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20883 fi
20884 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20885 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20886 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define HAVE_STRUCT_TM_TM_ZONE 1
20890 _ACEOF
20891
20892
20893 fi
20894
20895 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20896
20897 cat >>confdefs.h <<\_ACEOF
20898 #define HAVE_TM_ZONE 1
20899 _ACEOF
20900
20901 else
20902   echo "$as_me:$LINENO: checking for tzname" >&5
20903 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20904 if test "${ac_cv_var_tzname+set}" = set; then
20905   echo $ECHO_N "(cached) $ECHO_C" >&6
20906 else
20907   cat >conftest.$ac_ext <<_ACEOF
20908 /* confdefs.h.  */
20909 _ACEOF
20910 cat confdefs.h >>conftest.$ac_ext
20911 cat >>conftest.$ac_ext <<_ACEOF
20912 /* end confdefs.h.  */
20913 #include <time.h>
20914 #ifndef tzname /* For SGI.  */
20915 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20916 #endif
20917
20918 int
20919 main ()
20920 {
20921 atoi(*tzname);
20922   ;
20923   return 0;
20924 }
20925 _ACEOF
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20928   (eval $ac_link) 2>conftest.er1
20929   ac_status=$?
20930   grep -v '^ *+' conftest.er1 >conftest.err
20931   rm -f conftest.er1
20932   cat conftest.err >&5
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); } &&
20935          { ac_try='test -z "$ac_c_werror_flag"
20936                          || test ! -s conftest.err'
20937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20938   (eval $ac_try) 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; } &&
20942          { ac_try='test -s conftest$ac_exeext'
20943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944   (eval $ac_try) 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; }; then
20948   ac_cv_var_tzname=yes
20949 else
20950   echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20952
20953 ac_cv_var_tzname=no
20954 fi
20955 rm -f conftest.err conftest.$ac_objext \
20956       conftest$ac_exeext conftest.$ac_ext
20957 fi
20958 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20959 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20960   if test $ac_cv_var_tzname = yes; then
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_TZNAME 1
20964 _ACEOF
20965
20966   fi
20967 fi
20968
20969
20970 echo "$as_me:$LINENO: checking for utime.h" >&5
20971 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20972 if test "${ba_cv_header_utime_h+set}" = set; then
20973   echo $ECHO_N "(cached) $ECHO_C" >&6
20974 else
20975   cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h.  */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h.  */
20981
20982 #include <sys/types.h>
20983 #include <utime.h>
20984 int
20985 main ()
20986 {
20987 struct utimbuf foo
20988   ;
20989   return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext
20993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20994   (eval $ac_compile) 2>conftest.er1
20995   ac_status=$?
20996   grep -v '^ *+' conftest.er1 >conftest.err
20997   rm -f conftest.er1
20998   cat conftest.err >&5
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); } &&
21001          { ac_try='test -z "$ac_c_werror_flag"
21002                          || test ! -s conftest.err'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; } &&
21008          { ac_try='test -s conftest.$ac_objext'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; }; then
21014   ba_cv_header_utime_h=yes
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019 ba_cv_header_utime_h=no
21020 fi
21021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21022 fi
21023 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21024 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21025 test $ba_cv_header_utime_h = yes &&
21026 cat >>confdefs.h <<\_ACEOF
21027 #define HAVE_UTIME_H 1
21028 _ACEOF
21029
21030
21031 echo "$as_me:$LINENO: checking for socklen_t" >&5
21032 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21033 if test "${ba_cv_header_socklen_t+set}" = set; then
21034   echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036   cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042
21043 #include <sys/types.h>
21044 #include <sys/socket.h>
21045 int
21046 main ()
21047 {
21048 socklen_t x
21049   ;
21050   return 0;
21051 }
21052 _ACEOF
21053 rm -f conftest.$ac_objext
21054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21055   (eval $ac_compile) 2>conftest.er1
21056   ac_status=$?
21057   grep -v '^ *+' conftest.er1 >conftest.err
21058   rm -f conftest.er1
21059   cat conftest.err >&5
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } &&
21062          { ac_try='test -z "$ac_c_werror_flag"
21063                          || test ! -s conftest.err'
21064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065   (eval $ac_try) 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; } &&
21069          { ac_try='test -s conftest.$ac_objext'
21070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071   (eval $ac_try) 2>&5
21072   ac_status=$?
21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074   (exit $ac_status); }; }; then
21075   ba_cv_header_socklen_t=yes
21076 else
21077   echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21079
21080 ba_cv_header_socklen_t=no
21081 fi
21082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21083 fi
21084 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21085 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21086 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21087 #define HAVE_SOCKLEN_T 1
21088 _ACEOF
21089
21090
21091 echo "$as_me:$LINENO: checking for bigendian" >&5
21092 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21093 if test "${ba_cv_bigendian+set}" = set; then
21094   echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096   if test "$cross_compiling" = yes; then
21097   ba_cv_bigendian=no
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21106 _ACEOF
21107 rm -f conftest$ac_exeext
21108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21109   (eval $ac_link) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; }; then
21118   ba_cv_bigendian=yes
21119 else
21120   echo "$as_me: program exited with status $ac_status" >&5
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 ( exit $ac_status )
21125 ba_cv_bigendian=no
21126 fi
21127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21128 fi
21129 fi
21130 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21131 echo "${ECHO_T}$ba_cv_bigendian" >&6
21132 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21133 #define HAVE_BIGENDIAN 1
21134 _ACEOF
21135
21136
21137 ac_ext=cc
21138 ac_cpp='$CXXCPP $CPPFLAGS'
21139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21142
21143
21144 echo "$as_me:$LINENO: checking for typeof" >&5
21145 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21146 if test "${ba_cv_have_typeof+set}" = set; then
21147   echo $ECHO_N "(cached) $ECHO_C" >&6
21148 else
21149   if test "$cross_compiling" = yes; then
21150   ba_cv_have_typeof=no
21151 else
21152   cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h.  */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h.  */
21158 main(){char *a = 0; a = (typeof a)a;}
21159 _ACEOF
21160 rm -f conftest$ac_exeext
21161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21162   (eval $ac_link) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; }; then
21171   ba_cv_have_typeof=yes
21172 else
21173   echo "$as_me: program exited with status $ac_status" >&5
21174 echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ( exit $ac_status )
21178 ba_cv_have_typeof=no
21179 fi
21180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21181 fi
21182 fi
21183 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21184 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21185 test $ba_cv_have_typeof = yes &&
21186 cat >>confdefs.h <<\_ACEOF
21187 #define HAVE_TYPEOF 1
21188 _ACEOF
21189
21190 ac_ext=c
21191 ac_cpp='$CPP $CPPFLAGS'
21192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21195
21196
21197 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21199 if test "${ac_cv_c_const+set}" = set; then
21200   echo $ECHO_N "(cached) $ECHO_C" >&6
21201 else
21202   cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h.  */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h.  */
21208
21209 int
21210 main ()
21211 {
21212 /* FIXME: Include the comments suggested by Paul. */
21213 #ifndef __cplusplus
21214   /* Ultrix mips cc rejects this.  */
21215   typedef int charset[2];
21216   const charset x;
21217   /* SunOS 4.1.1 cc rejects this.  */
21218   char const *const *ccp;
21219   char **p;
21220   /* NEC SVR4.0.2 mips cc rejects this.  */
21221   struct point {int x, y;};
21222   static struct point const zero = {0,0};
21223   /* AIX XL C 1.02.0.0 rejects this.
21224      It does not let you subtract one const X* pointer from another in
21225      an arm of an if-expression whose if-part is not a constant
21226      expression */
21227   const char *g = "string";
21228   ccp = &g + (g ? g-g : 0);
21229   /* HPUX 7.0 cc rejects these. */
21230   ++ccp;
21231   p = (char**) ccp;
21232   ccp = (char const *const *) p;
21233   { /* SCO 3.2v4 cc rejects this.  */
21234     char *t;
21235     char const *s = 0 ? (char *) 0 : (char const *) 0;
21236
21237     *t++ = 0;
21238   }
21239   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21240     int x[] = {25, 17};
21241     const int *foo = &x[0];
21242     ++foo;
21243   }
21244   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21245     typedef const int *iptr;
21246     iptr p = 0;
21247     ++p;
21248   }
21249   { /* AIX XL C 1.02.0.0 rejects this saying
21250        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21251     struct s { int j; const int *ap[3]; };
21252     struct s *b; b->j = 5;
21253   }
21254   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21255     const int foo = 10;
21256   }
21257 #endif
21258
21259   ;
21260   return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265   (eval $ac_compile) 2>conftest.er1
21266   ac_status=$?
21267   grep -v '^ *+' conftest.er1 >conftest.err
21268   rm -f conftest.er1
21269   cat conftest.err >&5
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } &&
21272          { ac_try='test -z "$ac_c_werror_flag"
21273                          || test ! -s conftest.err'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; } &&
21279          { ac_try='test -s conftest.$ac_objext'
21280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281   (eval $ac_try) 2>&5
21282   ac_status=$?
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); }; }; then
21285   ac_cv_c_const=yes
21286 else
21287   echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_cv_c_const=no
21291 fi
21292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21293 fi
21294 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21295 echo "${ECHO_T}$ac_cv_c_const" >&6
21296 if test $ac_cv_c_const = no; then
21297
21298 cat >>confdefs.h <<\_ACEOF
21299 #define const
21300 _ACEOF
21301
21302 fi
21303
21304
21305
21306 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21307 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21308 fstype=no
21309 # The order of these tests is important.
21310 cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316 #include <sys/statvfs.h>
21317 #include <sys/fstyp.h>
21318 _ACEOF
21319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } >/dev/null; then
21327   if test -s conftest.err; then
21328     ac_cpp_err=$ac_c_preproc_warn_flag
21329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21330   else
21331     ac_cpp_err=
21332   fi
21333 else
21334   ac_cpp_err=yes
21335 fi
21336 if test -z "$ac_cpp_err"; then
21337   cat >>confdefs.h <<\_ACEOF
21338 #define FSTYPE_STATVFS 1
21339 _ACEOF
21340  fstype=SVR4
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345
21346 fi
21347 rm -f conftest.err conftest.$ac_ext
21348 if test $fstype = no; then
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h.  */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h.  */
21355 #include <sys/statfs.h>
21356 #include <sys/fstyp.h>
21357 _ACEOF
21358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21359   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21360   ac_status=$?
21361   grep -v '^ *+' conftest.er1 >conftest.err
21362   rm -f conftest.er1
21363   cat conftest.err >&5
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); } >/dev/null; then
21366   if test -s conftest.err; then
21367     ac_cpp_err=$ac_c_preproc_warn_flag
21368     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21369   else
21370     ac_cpp_err=
21371   fi
21372 else
21373   ac_cpp_err=yes
21374 fi
21375 if test -z "$ac_cpp_err"; then
21376   cat >>confdefs.h <<\_ACEOF
21377 #define FSTYPE_USG_STATFS 1
21378 _ACEOF
21379  fstype=SVR3
21380 else
21381   echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384
21385 fi
21386 rm -f conftest.err conftest.$ac_ext
21387 fi
21388 if test $fstype = no; then
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h.  */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h.  */
21395 #include <sys/statfs.h>
21396 #include <sys/vmount.h>
21397 _ACEOF
21398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21399   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } >/dev/null; then
21406   if test -s conftest.err; then
21407     ac_cpp_err=$ac_c_preproc_warn_flag
21408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21409   else
21410     ac_cpp_err=
21411   fi
21412 else
21413   ac_cpp_err=yes
21414 fi
21415 if test -z "$ac_cpp_err"; then
21416   cat >>confdefs.h <<\_ACEOF
21417 #define FSTYPE_AIX_STATFS 1
21418 _ACEOF
21419  fstype=AIX
21420 else
21421   echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423
21424
21425 fi
21426 rm -f conftest.err conftest.$ac_ext
21427 fi
21428 if test $fstype = no; then
21429 cat >conftest.$ac_ext <<_ACEOF
21430 /* confdefs.h.  */
21431 _ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h.  */
21435 #include <mntent.h>
21436 _ACEOF
21437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21439   ac_status=$?
21440   grep -v '^ *+' conftest.er1 >conftest.err
21441   rm -f conftest.er1
21442   cat conftest.err >&5
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } >/dev/null; then
21445   if test -s conftest.err; then
21446     ac_cpp_err=$ac_c_preproc_warn_flag
21447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21448   else
21449     ac_cpp_err=
21450   fi
21451 else
21452   ac_cpp_err=yes
21453 fi
21454 if test -z "$ac_cpp_err"; then
21455   cat >>confdefs.h <<\_ACEOF
21456 #define FSTYPE_MNTENT 1
21457 _ACEOF
21458  fstype=4.3BSD
21459 else
21460   echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463
21464 fi
21465 rm -f conftest.err conftest.$ac_ext
21466 fi
21467 if test $fstype = no; then
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h.  */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h.  */
21474 #include <sys/mount.h>
21475
21476 _ACEOF
21477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21478   $EGREP "f_type;" >/dev/null 2>&1; then
21479   cat >>confdefs.h <<\_ACEOF
21480 #define FSTYPE_STATFS 1
21481 _ACEOF
21482  fstype=4.4BSD/OSF1
21483 fi
21484 rm -f conftest*
21485
21486 fi
21487 if test $fstype = no; then
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h.  */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h.  */
21494 #include <sys/mount.h>
21495 #include <sys/fs_types.h>
21496 _ACEOF
21497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21499   ac_status=$?
21500   grep -v '^ *+' conftest.er1 >conftest.err
21501   rm -f conftest.er1
21502   cat conftest.err >&5
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } >/dev/null; then
21505   if test -s conftest.err; then
21506     ac_cpp_err=$ac_c_preproc_warn_flag
21507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21508   else
21509     ac_cpp_err=
21510   fi
21511 else
21512   ac_cpp_err=yes
21513 fi
21514 if test -z "$ac_cpp_err"; then
21515   cat >>confdefs.h <<\_ACEOF
21516 #define FSTYPE_GETMNT 1
21517 _ACEOF
21518  fstype=Ultrix
21519 else
21520   echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523
21524 fi
21525 rm -f conftest.err conftest.$ac_ext
21526 fi
21527 echo "$as_me:$LINENO: result: $fstype" >&5
21528 echo "${ECHO_T}$fstype" >&6
21529
21530 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21531   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21532 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21533 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21534   echo $ECHO_N "(cached) $ECHO_C" >&6
21535 fi
21536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21537 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21538 else
21539   # Is the header compilable?
21540 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21541 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21542 cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h.  */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h.  */
21548 $ac_includes_default
21549 #include <sys/statvfs.h>
21550 _ACEOF
21551 rm -f conftest.$ac_objext
21552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21553   (eval $ac_compile) 2>conftest.er1
21554   ac_status=$?
21555   grep -v '^ *+' conftest.er1 >conftest.err
21556   rm -f conftest.er1
21557   cat conftest.err >&5
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); } &&
21560          { ac_try='test -z "$ac_c_werror_flag"
21561                          || test ! -s conftest.err'
21562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563   (eval $ac_try) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; } &&
21567          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21573   ac_header_compiler=yes
21574 else
21575   echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21577
21578 ac_header_compiler=no
21579 fi
21580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21582 echo "${ECHO_T}$ac_header_compiler" >&6
21583
21584 # Is the header present?
21585 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21586 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21587 cat >conftest.$ac_ext <<_ACEOF
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593 #include <sys/statvfs.h>
21594 _ACEOF
21595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21597   ac_status=$?
21598   grep -v '^ *+' conftest.er1 >conftest.err
21599   rm -f conftest.er1
21600   cat conftest.err >&5
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); } >/dev/null; then
21603   if test -s conftest.err; then
21604     ac_cpp_err=$ac_c_preproc_warn_flag
21605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21606   else
21607     ac_cpp_err=
21608   fi
21609 else
21610   ac_cpp_err=yes
21611 fi
21612 if test -z "$ac_cpp_err"; then
21613   ac_header_preproc=yes
21614 else
21615   echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618   ac_header_preproc=no
21619 fi
21620 rm -f conftest.err conftest.$ac_ext
21621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6
21623
21624 # So?  What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21626   yes:no: )
21627     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21628 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21629     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21630 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21631     ac_header_preproc=yes
21632     ;;
21633   no:yes:* )
21634     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21635 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21636     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21637 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21638     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21639 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21640     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21641 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21642     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21643 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21644     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21645 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21646     (
21647       cat <<\_ASBOX
21648 ## ------------------------------------------ ##
21649 ## Report this to the AC_PACKAGE_NAME lists.  ##
21650 ## ------------------------------------------ ##
21651 _ASBOX
21652     ) |
21653       sed "s/^/$as_me: WARNING:     /" >&2
21654     ;;
21655 esac
21656 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21657 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21658 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21659   echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21662 fi
21663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21664 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21665
21666 fi
21667 if test $ac_cv_header_sys_statvfs_h = yes; then
21668
21669 cat >>confdefs.h <<\_ACEOF
21670 #define HAVE_SYS_STATVFS_H 1
21671 _ACEOF
21672
21673 fi
21674
21675
21676
21677 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21678 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21679 if test "${ac_cv_type_signal+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   cat >conftest.$ac_ext <<_ACEOF
21683 /* confdefs.h.  */
21684 _ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h.  */
21688 #include <sys/types.h>
21689 #include <signal.h>
21690 #ifdef signal
21691 # undef signal
21692 #endif
21693 #ifdef __cplusplus
21694 extern "C" void (*signal (int, void (*)(int)))(int);
21695 #else
21696 void (*signal ()) ();
21697 #endif
21698
21699 int
21700 main ()
21701 {
21702 int i;
21703   ;
21704   return 0;
21705 }
21706 _ACEOF
21707 rm -f conftest.$ac_objext
21708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21709   (eval $ac_compile) 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } &&
21716          { ac_try='test -z "$ac_c_werror_flag"
21717                          || test ! -s conftest.err'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; } &&
21723          { ac_try='test -s conftest.$ac_objext'
21724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725   (eval $ac_try) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); }; }; then
21729   ac_cv_type_signal=void
21730 else
21731   echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ac_cv_type_signal=int
21735 fi
21736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21737 fi
21738 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21739 echo "${ECHO_T}$ac_cv_type_signal" >&6
21740
21741 cat >>confdefs.h <<_ACEOF
21742 #define RETSIGTYPE $ac_cv_type_signal
21743 _ACEOF
21744
21745
21746
21747   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21748 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21749   if test "${bash_cv_signal_vintage+set}" = set; then
21750   echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752
21753     cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h.  */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h.  */
21759 #include <signal.h>
21760 int
21761 main ()
21762 {
21763
21764       sigset_t ss;
21765       struct sigaction sa;
21766       sigemptyset(&ss); sigsuspend(&ss);
21767       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21768       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21769
21770   ;
21771   return 0;
21772 }
21773 _ACEOF
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21776   (eval $ac_link) 2>conftest.er1
21777   ac_status=$?
21778   grep -v '^ *+' conftest.er1 >conftest.err
21779   rm -f conftest.er1
21780   cat conftest.err >&5
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); } &&
21783          { ac_try='test -z "$ac_c_werror_flag"
21784                          || test ! -s conftest.err'
21785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786   (eval $ac_try) 2>&5
21787   ac_status=$?
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); }; } &&
21790          { ac_try='test -s conftest$ac_exeext'
21791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21792   (eval $ac_try) 2>&5
21793   ac_status=$?
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); }; }; then
21796   bash_cv_signal_vintage="posix"
21797 else
21798   echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21800
21801
21802       cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808 #include <signal.h>
21809 int
21810 main ()
21811 {
21812
21813           int mask = sigmask(SIGINT);
21814           sigsetmask(mask); sigblock(mask); sigpause(mask);
21815
21816   ;
21817   return 0;
21818 }
21819 _ACEOF
21820 rm -f conftest.$ac_objext conftest$ac_exeext
21821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21822   (eval $ac_link) 2>conftest.er1
21823   ac_status=$?
21824   grep -v '^ *+' conftest.er1 >conftest.err
21825   rm -f conftest.er1
21826   cat conftest.err >&5
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); } &&
21829          { ac_try='test -z "$ac_c_werror_flag"
21830                          || test ! -s conftest.err'
21831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832   (eval $ac_try) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); }; } &&
21836          { ac_try='test -s conftest$ac_exeext'
21837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838   (eval $ac_try) 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); }; }; then
21842   bash_cv_signal_vintage="4.2bsd"
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847
21848         cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h.  */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h.  */
21854
21855           #include <signal.h>
21856           RETSIGTYPE foo() { }
21857 int
21858 main ()
21859 {
21860
21861                   int mask = sigmask(SIGINT);
21862                   sigset(SIGINT, foo); sigrelse(SIGINT);
21863                   sighold(SIGINT); sigpause(SIGINT);
21864
21865   ;
21866   return 0;
21867 }
21868 _ACEOF
21869 rm -f conftest.$ac_objext conftest$ac_exeext
21870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21871   (eval $ac_link) 2>conftest.er1
21872   ac_status=$?
21873   grep -v '^ *+' conftest.er1 >conftest.err
21874   rm -f conftest.er1
21875   cat conftest.err >&5
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); } &&
21878          { ac_try='test -z "$ac_c_werror_flag"
21879                          || test ! -s conftest.err'
21880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881   (eval $ac_try) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); }; } &&
21885          { ac_try='test -s conftest$ac_exeext'
21886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887   (eval $ac_try) 2>&5
21888   ac_status=$?
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); }; }; then
21891   bash_cv_signal_vintage="svr3"
21892 else
21893   echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896 bash_cv_signal_vintage="v7"
21897
21898 fi
21899 rm -f conftest.err conftest.$ac_objext \
21900       conftest$ac_exeext conftest.$ac_ext
21901
21902 fi
21903 rm -f conftest.err conftest.$ac_objext \
21904       conftest$ac_exeext conftest.$ac_ext
21905
21906 fi
21907 rm -f conftest.err conftest.$ac_objext \
21908       conftest$ac_exeext conftest.$ac_ext
21909
21910 fi
21911
21912   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21913 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21914   if test "$bash_cv_signal_vintage" = "posix"; then
21915     cat >>confdefs.h <<\_ACEOF
21916 #define HAVE_POSIX_SIGNALS 1
21917 _ACEOF
21918
21919   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21920     cat >>confdefs.h <<\_ACEOF
21921 #define HAVE_BSD_SIGNALS 1
21922 _ACEOF
21923
21924   elif test "$bash_cv_signal_vintage" = "svr3"; then
21925     cat >>confdefs.h <<\_ACEOF
21926 #define HAVE_USG_SIGHOLD 1
21927 _ACEOF
21928
21929   fi
21930
21931 echo "$as_me:$LINENO: checking for mode_t" >&5
21932 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21933 if test "${ac_cv_type_mode_t+set}" = set; then
21934   echo $ECHO_N "(cached) $ECHO_C" >&6
21935 else
21936   cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 $ac_includes_default
21943 int
21944 main ()
21945 {
21946 if ((mode_t *) 0)
21947   return 0;
21948 if (sizeof (mode_t))
21949   return 0;
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 rm -f conftest.$ac_objext
21955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21956   (eval $ac_compile) 2>conftest.er1
21957   ac_status=$?
21958   grep -v '^ *+' conftest.er1 >conftest.err
21959   rm -f conftest.er1
21960   cat conftest.err >&5
21961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); } &&
21963          { ac_try='test -z "$ac_c_werror_flag"
21964                          || test ! -s conftest.err'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; } &&
21970          { ac_try='test -s conftest.$ac_objext'
21971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972   (eval $ac_try) 2>&5
21973   ac_status=$?
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); }; }; then
21976   ac_cv_type_mode_t=yes
21977 else
21978   echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21980
21981 ac_cv_type_mode_t=no
21982 fi
21983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21984 fi
21985 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21986 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21987 if test $ac_cv_type_mode_t = yes; then
21988   :
21989 else
21990
21991 cat >>confdefs.h <<_ACEOF
21992 #define mode_t int
21993 _ACEOF
21994
21995 fi
21996
21997 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21998 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21999 if test "${ac_cv_type_uid_t+set}" = set; then
22000   echo $ECHO_N "(cached) $ECHO_C" >&6
22001 else
22002   cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h.  */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h.  */
22008 #include <sys/types.h>
22009
22010 _ACEOF
22011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22012   $EGREP "uid_t" >/dev/null 2>&1; then
22013   ac_cv_type_uid_t=yes
22014 else
22015   ac_cv_type_uid_t=no
22016 fi
22017 rm -f conftest*
22018
22019 fi
22020 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22021 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22022 if test $ac_cv_type_uid_t = no; then
22023
22024 cat >>confdefs.h <<\_ACEOF
22025 #define uid_t int
22026 _ACEOF
22027
22028
22029 cat >>confdefs.h <<\_ACEOF
22030 #define gid_t int
22031 _ACEOF
22032
22033 fi
22034
22035 echo "$as_me:$LINENO: checking for size_t" >&5
22036 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22037 if test "${ac_cv_type_size_t+set}" = set; then
22038   echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040   cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h.  */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h.  */
22046 $ac_includes_default
22047 int
22048 main ()
22049 {
22050 if ((size_t *) 0)
22051   return 0;
22052 if (sizeof (size_t))
22053   return 0;
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22060   (eval $ac_compile) 2>conftest.er1
22061   ac_status=$?
22062   grep -v '^ *+' conftest.er1 >conftest.err
22063   rm -f conftest.er1
22064   cat conftest.err >&5
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } &&
22067          { ac_try='test -z "$ac_c_werror_flag"
22068                          || test ! -s conftest.err'
22069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070   (eval $ac_try) 2>&5
22071   ac_status=$?
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); }; } &&
22074          { ac_try='test -s conftest.$ac_objext'
22075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076   (eval $ac_try) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; }; then
22080   ac_cv_type_size_t=yes
22081 else
22082   echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085 ac_cv_type_size_t=no
22086 fi
22087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22088 fi
22089 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22090 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22091 if test $ac_cv_type_size_t = yes; then
22092   :
22093 else
22094
22095 cat >>confdefs.h <<_ACEOF
22096 #define size_t unsigned
22097 _ACEOF
22098
22099 fi
22100
22101 echo "$as_me:$LINENO: checking for pid_t" >&5
22102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22103 if test "${ac_cv_type_pid_t+set}" = set; then
22104   echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106   cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 $ac_includes_default
22113 int
22114 main ()
22115 {
22116 if ((pid_t *) 0)
22117   return 0;
22118 if (sizeof (pid_t))
22119   return 0;
22120   ;
22121   return 0;
22122 }
22123 _ACEOF
22124 rm -f conftest.$ac_objext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22126   (eval $ac_compile) 2>conftest.er1
22127   ac_status=$?
22128   grep -v '^ *+' conftest.er1 >conftest.err
22129   rm -f conftest.er1
22130   cat conftest.err >&5
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } &&
22133          { ac_try='test -z "$ac_c_werror_flag"
22134                          || test ! -s conftest.err'
22135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136   (eval $ac_try) 2>&5
22137   ac_status=$?
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); }; } &&
22140          { ac_try='test -s conftest.$ac_objext'
22141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142   (eval $ac_try) 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); }; }; then
22146   ac_cv_type_pid_t=yes
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151 ac_cv_type_pid_t=no
22152 fi
22153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22154 fi
22155 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22156 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22157 if test $ac_cv_type_pid_t = yes; then
22158   :
22159 else
22160
22161 cat >>confdefs.h <<_ACEOF
22162 #define pid_t int
22163 _ACEOF
22164
22165 fi
22166
22167 echo "$as_me:$LINENO: checking for off_t" >&5
22168 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22169 if test "${ac_cv_type_off_t+set}" = set; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172   cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h.  */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h.  */
22178 $ac_includes_default
22179 int
22180 main ()
22181 {
22182 if ((off_t *) 0)
22183   return 0;
22184 if (sizeof (off_t))
22185   return 0;
22186   ;
22187   return 0;
22188 }
22189 _ACEOF
22190 rm -f conftest.$ac_objext
22191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22192   (eval $ac_compile) 2>conftest.er1
22193   ac_status=$?
22194   grep -v '^ *+' conftest.er1 >conftest.err
22195   rm -f conftest.er1
22196   cat conftest.err >&5
22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); } &&
22199          { ac_try='test -z "$ac_c_werror_flag"
22200                          || test ! -s conftest.err'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; } &&
22206          { ac_try='test -s conftest.$ac_objext'
22207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208   (eval $ac_try) 2>&5
22209   ac_status=$?
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); }; }; then
22212   ac_cv_type_off_t=yes
22213 else
22214   echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217 ac_cv_type_off_t=no
22218 fi
22219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22220 fi
22221 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22222 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22223 if test $ac_cv_type_off_t = yes; then
22224   :
22225 else
22226
22227 cat >>confdefs.h <<_ACEOF
22228 #define off_t long
22229 _ACEOF
22230
22231 fi
22232
22233 echo "$as_me:$LINENO: checking for ino_t" >&5
22234 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22235 if test "${ac_cv_type_ino_t+set}" = set; then
22236   echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238   cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 $ac_includes_default
22245 int
22246 main ()
22247 {
22248 if ((ino_t *) 0)
22249   return 0;
22250 if (sizeof (ino_t))
22251   return 0;
22252   ;
22253   return 0;
22254 }
22255 _ACEOF
22256 rm -f conftest.$ac_objext
22257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22258   (eval $ac_compile) 2>conftest.er1
22259   ac_status=$?
22260   grep -v '^ *+' conftest.er1 >conftest.err
22261   rm -f conftest.er1
22262   cat conftest.err >&5
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } &&
22265          { ac_try='test -z "$ac_c_werror_flag"
22266                          || test ! -s conftest.err'
22267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268   (eval $ac_try) 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); }; } &&
22272          { ac_try='test -s conftest.$ac_objext'
22273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274   (eval $ac_try) 2>&5
22275   ac_status=$?
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); }; }; then
22278   ac_cv_type_ino_t=yes
22279 else
22280   echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22282
22283 ac_cv_type_ino_t=no
22284 fi
22285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22286 fi
22287 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22288 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22289 if test $ac_cv_type_ino_t = yes; then
22290   :
22291 else
22292
22293 cat >>confdefs.h <<_ACEOF
22294 #define ino_t unsigned long
22295 _ACEOF
22296
22297 fi
22298
22299 echo "$as_me:$LINENO: checking for dev_t" >&5
22300 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22301 if test "${ac_cv_type_dev_t+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304   cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h.  */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h.  */
22310 $ac_includes_default
22311 int
22312 main ()
22313 {
22314 if ((dev_t *) 0)
22315   return 0;
22316 if (sizeof (dev_t))
22317   return 0;
22318   ;
22319   return 0;
22320 }
22321 _ACEOF
22322 rm -f conftest.$ac_objext
22323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22324   (eval $ac_compile) 2>conftest.er1
22325   ac_status=$?
22326   grep -v '^ *+' conftest.er1 >conftest.err
22327   rm -f conftest.er1
22328   cat conftest.err >&5
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); } &&
22331          { ac_try='test -z "$ac_c_werror_flag"
22332                          || test ! -s conftest.err'
22333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334   (eval $ac_try) 2>&5
22335   ac_status=$?
22336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337   (exit $ac_status); }; } &&
22338          { ac_try='test -s conftest.$ac_objext'
22339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340   (eval $ac_try) 2>&5
22341   ac_status=$?
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); }; }; then
22344   ac_cv_type_dev_t=yes
22345 else
22346   echo "$as_me: failed program was:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22348
22349 ac_cv_type_dev_t=no
22350 fi
22351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22352 fi
22353 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22354 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22355 if test $ac_cv_type_dev_t = yes; then
22356   :
22357 else
22358
22359 cat >>confdefs.h <<_ACEOF
22360 #define dev_t unsigned long
22361 _ACEOF
22362
22363 fi
22364
22365 echo "$as_me:$LINENO: checking for daddr_t" >&5
22366 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22367 if test "${ac_cv_type_daddr_t+set}" = set; then
22368   echo $ECHO_N "(cached) $ECHO_C" >&6
22369 else
22370   cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h.  */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h.  */
22376 $ac_includes_default
22377 int
22378 main ()
22379 {
22380 if ((daddr_t *) 0)
22381   return 0;
22382 if (sizeof (daddr_t))
22383   return 0;
22384   ;
22385   return 0;
22386 }
22387 _ACEOF
22388 rm -f conftest.$ac_objext
22389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22390   (eval $ac_compile) 2>conftest.er1
22391   ac_status=$?
22392   grep -v '^ *+' conftest.er1 >conftest.err
22393   rm -f conftest.er1
22394   cat conftest.err >&5
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); } &&
22397          { ac_try='test -z "$ac_c_werror_flag"
22398                          || test ! -s conftest.err'
22399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400   (eval $ac_try) 2>&5
22401   ac_status=$?
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); }; } &&
22404          { ac_try='test -s conftest.$ac_objext'
22405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22406   (eval $ac_try) 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }; }; then
22410   ac_cv_type_daddr_t=yes
22411 else
22412   echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415 ac_cv_type_daddr_t=no
22416 fi
22417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22418 fi
22419 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22420 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22421 if test $ac_cv_type_daddr_t = yes; then
22422   :
22423 else
22424
22425 cat >>confdefs.h <<_ACEOF
22426 #define daddr_t long
22427 _ACEOF
22428
22429 fi
22430
22431 echo "$as_me:$LINENO: checking for major_t" >&5
22432 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22433 if test "${ac_cv_type_major_t+set}" = set; then
22434   echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436   cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h.  */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h.  */
22442 $ac_includes_default
22443 int
22444 main ()
22445 {
22446 if ((major_t *) 0)
22447   return 0;
22448 if (sizeof (major_t))
22449   return 0;
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456   (eval $ac_compile) 2>conftest.er1
22457   ac_status=$?
22458   grep -v '^ *+' conftest.er1 >conftest.err
22459   rm -f conftest.er1
22460   cat conftest.err >&5
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } &&
22463          { ac_try='test -z "$ac_c_werror_flag"
22464                          || test ! -s conftest.err'
22465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466   (eval $ac_try) 2>&5
22467   ac_status=$?
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); }; } &&
22470          { ac_try='test -s conftest.$ac_objext'
22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472   (eval $ac_try) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; }; then
22476   ac_cv_type_major_t=yes
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481 ac_cv_type_major_t=no
22482 fi
22483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22484 fi
22485 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22486 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22487 if test $ac_cv_type_major_t = yes; then
22488   :
22489 else
22490
22491 cat >>confdefs.h <<_ACEOF
22492 #define major_t int
22493 _ACEOF
22494
22495 fi
22496
22497 echo "$as_me:$LINENO: checking for minor_t" >&5
22498 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22499 if test "${ac_cv_type_minor_t+set}" = set; then
22500   echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502   cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h.  */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h.  */
22508 $ac_includes_default
22509 int
22510 main ()
22511 {
22512 if ((minor_t *) 0)
22513   return 0;
22514 if (sizeof (minor_t))
22515   return 0;
22516   ;
22517   return 0;
22518 }
22519 _ACEOF
22520 rm -f conftest.$ac_objext
22521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22522   (eval $ac_compile) 2>conftest.er1
22523   ac_status=$?
22524   grep -v '^ *+' conftest.er1 >conftest.err
22525   rm -f conftest.er1
22526   cat conftest.err >&5
22527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); } &&
22529          { ac_try='test -z "$ac_c_werror_flag"
22530                          || test ! -s conftest.err'
22531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532   (eval $ac_try) 2>&5
22533   ac_status=$?
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); }; } &&
22536          { ac_try='test -s conftest.$ac_objext'
22537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538   (eval $ac_try) 2>&5
22539   ac_status=$?
22540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541   (exit $ac_status); }; }; then
22542   ac_cv_type_minor_t=yes
22543 else
22544   echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22546
22547 ac_cv_type_minor_t=no
22548 fi
22549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22550 fi
22551 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22552 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22553 if test $ac_cv_type_minor_t = yes; then
22554   :
22555 else
22556
22557 cat >>confdefs.h <<_ACEOF
22558 #define minor_t int
22559 _ACEOF
22560
22561 fi
22562
22563 echo "$as_me:$LINENO: checking for ssize_t" >&5
22564 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22565 if test "${ac_cv_type_ssize_t+set}" = set; then
22566   echo $ECHO_N "(cached) $ECHO_C" >&6
22567 else
22568   cat >conftest.$ac_ext <<_ACEOF
22569 /* confdefs.h.  */
22570 _ACEOF
22571 cat confdefs.h >>conftest.$ac_ext
22572 cat >>conftest.$ac_ext <<_ACEOF
22573 /* end confdefs.h.  */
22574 $ac_includes_default
22575 int
22576 main ()
22577 {
22578 if ((ssize_t *) 0)
22579   return 0;
22580 if (sizeof (ssize_t))
22581   return 0;
22582   ;
22583   return 0;
22584 }
22585 _ACEOF
22586 rm -f conftest.$ac_objext
22587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22588   (eval $ac_compile) 2>conftest.er1
22589   ac_status=$?
22590   grep -v '^ *+' conftest.er1 >conftest.err
22591   rm -f conftest.er1
22592   cat conftest.err >&5
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); } &&
22595          { ac_try='test -z "$ac_c_werror_flag"
22596                          || test ! -s conftest.err'
22597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598   (eval $ac_try) 2>&5
22599   ac_status=$?
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); }; } &&
22602          { ac_try='test -s conftest.$ac_objext'
22603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604   (eval $ac_try) 2>&5
22605   ac_status=$?
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); }; }; then
22608   ac_cv_type_ssize_t=yes
22609 else
22610   echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 ac_cv_type_ssize_t=no
22614 fi
22615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22616 fi
22617 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22618 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22619 if test $ac_cv_type_ssize_t = yes; then
22620   :
22621 else
22622
22623 cat >>confdefs.h <<_ACEOF
22624 #define ssize_t int
22625 _ACEOF
22626
22627 fi
22628
22629 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22630 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22631 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22632   echo $ECHO_N "(cached) $ECHO_C" >&6
22633 else
22634   cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640 $ac_includes_default
22641 int
22642 main ()
22643 {
22644 static struct stat ac_aggr;
22645 if (ac_aggr.st_blocks)
22646 return 0;
22647   ;
22648   return 0;
22649 }
22650 _ACEOF
22651 rm -f conftest.$ac_objext
22652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22653   (eval $ac_compile) 2>conftest.er1
22654   ac_status=$?
22655   grep -v '^ *+' conftest.er1 >conftest.err
22656   rm -f conftest.er1
22657   cat conftest.err >&5
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); } &&
22660          { ac_try='test -z "$ac_c_werror_flag"
22661                          || test ! -s conftest.err'
22662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663   (eval $ac_try) 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; } &&
22667          { ac_try='test -s conftest.$ac_objext'
22668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669   (eval $ac_try) 2>&5
22670   ac_status=$?
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); }; }; then
22673   ac_cv_member_struct_stat_st_blocks=yes
22674 else
22675   echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22677
22678 cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684 $ac_includes_default
22685 int
22686 main ()
22687 {
22688 static struct stat ac_aggr;
22689 if (sizeof ac_aggr.st_blocks)
22690 return 0;
22691   ;
22692   return 0;
22693 }
22694 _ACEOF
22695 rm -f conftest.$ac_objext
22696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22697   (eval $ac_compile) 2>conftest.er1
22698   ac_status=$?
22699   grep -v '^ *+' conftest.er1 >conftest.err
22700   rm -f conftest.er1
22701   cat conftest.err >&5
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); } &&
22704          { ac_try='test -z "$ac_c_werror_flag"
22705                          || test ! -s conftest.err'
22706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707   (eval $ac_try) 2>&5
22708   ac_status=$?
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); }; } &&
22711          { ac_try='test -s conftest.$ac_objext'
22712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713   (eval $ac_try) 2>&5
22714   ac_status=$?
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); }; }; then
22717   ac_cv_member_struct_stat_st_blocks=yes
22718 else
22719   echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722 ac_cv_member_struct_stat_st_blocks=no
22723 fi
22724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22725 fi
22726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22727 fi
22728 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22729 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22730 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22731
22732 cat >>confdefs.h <<_ACEOF
22733 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22734 _ACEOF
22735
22736
22737 cat >>confdefs.h <<\_ACEOF
22738 #define HAVE_ST_BLOCKS 1
22739 _ACEOF
22740
22741 else
22742   case $LIBOBJS in
22743     "fileblocks.$ac_objext"   | \
22744   *" fileblocks.$ac_objext"   | \
22745     "fileblocks.$ac_objext "* | \
22746   *" fileblocks.$ac_objext "* ) ;;
22747   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22748 esac
22749
22750 fi
22751
22752
22753
22754 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22755 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22756 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22757   echo $ECHO_N "(cached) $ECHO_C" >&6
22758 else
22759   cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h.  */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h.  */
22765 $ac_includes_default
22766 int
22767 main ()
22768 {
22769 static struct stat ac_aggr;
22770 if (ac_aggr.st_rdev)
22771 return 0;
22772   ;
22773   return 0;
22774 }
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22778   (eval $ac_compile) 2>conftest.er1
22779   ac_status=$?
22780   grep -v '^ *+' conftest.er1 >conftest.err
22781   rm -f conftest.er1
22782   cat conftest.err >&5
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); } &&
22785          { ac_try='test -z "$ac_c_werror_flag"
22786                          || test ! -s conftest.err'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; } &&
22792          { ac_try='test -s conftest.$ac_objext'
22793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794   (eval $ac_try) 2>&5
22795   ac_status=$?
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); }; }; then
22798   ac_cv_member_struct_stat_st_rdev=yes
22799 else
22800   echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h.  */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h.  */
22809 $ac_includes_default
22810 int
22811 main ()
22812 {
22813 static struct stat ac_aggr;
22814 if (sizeof ac_aggr.st_rdev)
22815 return 0;
22816   ;
22817   return 0;
22818 }
22819 _ACEOF
22820 rm -f conftest.$ac_objext
22821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22822   (eval $ac_compile) 2>conftest.er1
22823   ac_status=$?
22824   grep -v '^ *+' conftest.er1 >conftest.err
22825   rm -f conftest.er1
22826   cat conftest.err >&5
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } &&
22829          { ac_try='test -z "$ac_c_werror_flag"
22830                          || test ! -s conftest.err'
22831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832   (eval $ac_try) 2>&5
22833   ac_status=$?
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); }; } &&
22836          { ac_try='test -s conftest.$ac_objext'
22837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838   (eval $ac_try) 2>&5
22839   ac_status=$?
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); }; }; then
22842   ac_cv_member_struct_stat_st_rdev=yes
22843 else
22844   echo "$as_me: failed program was:" >&5
22845 sed 's/^/| /' conftest.$ac_ext >&5
22846
22847 ac_cv_member_struct_stat_st_rdev=no
22848 fi
22849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22850 fi
22851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22852 fi
22853 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22854 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22855 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22856
22857 cat >>confdefs.h <<_ACEOF
22858 #define HAVE_STRUCT_STAT_ST_RDEV 1
22859 _ACEOF
22860
22861
22862 cat >>confdefs.h <<\_ACEOF
22863 #define HAVE_ST_RDEV 1
22864 _ACEOF
22865
22866 fi
22867
22868
22869 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22870 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22871 if test "${ac_cv_struct_tm+set}" = set; then
22872   echo $ECHO_N "(cached) $ECHO_C" >&6
22873 else
22874   cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880 #include <sys/types.h>
22881 #include <time.h>
22882
22883 int
22884 main ()
22885 {
22886 struct tm *tp; tp->tm_sec;
22887   ;
22888   return 0;
22889 }
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893   (eval $ac_compile) 2>conftest.er1
22894   ac_status=$?
22895   grep -v '^ *+' conftest.er1 >conftest.err
22896   rm -f conftest.er1
22897   cat conftest.err >&5
22898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); } &&
22900          { ac_try='test -z "$ac_c_werror_flag"
22901                          || test ! -s conftest.err'
22902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903   (eval $ac_try) 2>&5
22904   ac_status=$?
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); }; } &&
22907          { ac_try='test -s conftest.$ac_objext'
22908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909   (eval $ac_try) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; }; then
22913   ac_cv_struct_tm=time.h
22914 else
22915   echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22917
22918 ac_cv_struct_tm=sys/time.h
22919 fi
22920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22921 fi
22922 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22923 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22924 if test $ac_cv_struct_tm = sys/time.h; then
22925
22926 cat >>confdefs.h <<\_ACEOF
22927 #define TM_IN_SYS_TIME 1
22928 _ACEOF
22929
22930 fi
22931
22932 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22933 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22934 if test "${ac_cv_c_const+set}" = set; then
22935   echo $ECHO_N "(cached) $ECHO_C" >&6
22936 else
22937   cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943
22944 int
22945 main ()
22946 {
22947 /* FIXME: Include the comments suggested by Paul. */
22948 #ifndef __cplusplus
22949   /* Ultrix mips cc rejects this.  */
22950   typedef int charset[2];
22951   const charset x;
22952   /* SunOS 4.1.1 cc rejects this.  */
22953   char const *const *ccp;
22954   char **p;
22955   /* NEC SVR4.0.2 mips cc rejects this.  */
22956   struct point {int x, y;};
22957   static struct point const zero = {0,0};
22958   /* AIX XL C 1.02.0.0 rejects this.
22959      It does not let you subtract one const X* pointer from another in
22960      an arm of an if-expression whose if-part is not a constant
22961      expression */
22962   const char *g = "string";
22963   ccp = &g + (g ? g-g : 0);
22964   /* HPUX 7.0 cc rejects these. */
22965   ++ccp;
22966   p = (char**) ccp;
22967   ccp = (char const *const *) p;
22968   { /* SCO 3.2v4 cc rejects this.  */
22969     char *t;
22970     char const *s = 0 ? (char *) 0 : (char const *) 0;
22971
22972     *t++ = 0;
22973   }
22974   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22975     int x[] = {25, 17};
22976     const int *foo = &x[0];
22977     ++foo;
22978   }
22979   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22980     typedef const int *iptr;
22981     iptr p = 0;
22982     ++p;
22983   }
22984   { /* AIX XL C 1.02.0.0 rejects this saying
22985        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22986     struct s { int j; const int *ap[3]; };
22987     struct s *b; b->j = 5;
22988   }
22989   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22990     const int foo = 10;
22991   }
22992 #endif
22993
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23000   (eval $ac_compile) 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } &&
23007          { ac_try='test -z "$ac_c_werror_flag"
23008                          || test ! -s conftest.err'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; } &&
23014          { ac_try='test -s conftest.$ac_objext'
23015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016   (eval $ac_try) 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); }; }; then
23020   ac_cv_c_const=yes
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 ac_cv_c_const=no
23026 fi
23027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23028 fi
23029 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23030 echo "${ECHO_T}$ac_cv_c_const" >&6
23031 if test $ac_cv_c_const = no; then
23032
23033 cat >>confdefs.h <<\_ACEOF
23034 #define const
23035 _ACEOF
23036
23037 fi
23038
23039
23040
23041 echo "$as_me:$LINENO: checking for char" >&5
23042 echo $ECHO_N "checking for char... $ECHO_C" >&6
23043 if test "${ac_cv_type_char+set}" = set; then
23044   echo $ECHO_N "(cached) $ECHO_C" >&6
23045 else
23046   cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 $ac_includes_default
23053 int
23054 main ()
23055 {
23056 if ((char *) 0)
23057   return 0;
23058 if (sizeof (char))
23059   return 0;
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23066   (eval $ac_compile) 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } &&
23073          { ac_try='test -z "$ac_c_werror_flag"
23074                          || test ! -s conftest.err'
23075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076   (eval $ac_try) 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); }; } &&
23080          { ac_try='test -s conftest.$ac_objext'
23081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23082   (eval $ac_try) 2>&5
23083   ac_status=$?
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); }; }; then
23086   ac_cv_type_char=yes
23087 else
23088   echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23090
23091 ac_cv_type_char=no
23092 fi
23093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23094 fi
23095 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23096 echo "${ECHO_T}$ac_cv_type_char" >&6
23097
23098 echo "$as_me:$LINENO: checking size of char" >&5
23099 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23100 if test "${ac_cv_sizeof_char+set}" = set; then
23101   echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103   if test "$ac_cv_type_char" = yes; then
23104   # The cast to unsigned long works around a bug in the HP C Compiler
23105   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23106   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23107   # This bug is HP SR number 8606223364.
23108   if test "$cross_compiling" = yes; then
23109   # Depending upon the size, compute the lo and hi bounds.
23110 cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 $ac_includes_default
23117 int
23118 main ()
23119 {
23120 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23121 test_array [0] = 0
23122
23123   ;
23124   return 0;
23125 }
23126 _ACEOF
23127 rm -f conftest.$ac_objext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23129   (eval $ac_compile) 2>conftest.er1
23130   ac_status=$?
23131   grep -v '^ *+' conftest.er1 >conftest.err
23132   rm -f conftest.er1
23133   cat conftest.err >&5
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } &&
23136          { ac_try='test -z "$ac_c_werror_flag"
23137                          || test ! -s conftest.err'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; } &&
23143          { ac_try='test -s conftest.$ac_objext'
23144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145   (eval $ac_try) 2>&5
23146   ac_status=$?
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); }; }; then
23149   ac_lo=0 ac_mid=0
23150   while :; do
23151     cat >conftest.$ac_ext <<_ACEOF
23152 /* confdefs.h.  */
23153 _ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h.  */
23157 $ac_includes_default
23158 int
23159 main ()
23160 {
23161 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23162 test_array [0] = 0
23163
23164   ;
23165   return 0;
23166 }
23167 _ACEOF
23168 rm -f conftest.$ac_objext
23169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23170   (eval $ac_compile) 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } &&
23177          { ac_try='test -z "$ac_c_werror_flag"
23178                          || test ! -s conftest.err'
23179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180   (eval $ac_try) 2>&5
23181   ac_status=$?
23182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183   (exit $ac_status); }; } &&
23184          { ac_try='test -s conftest.$ac_objext'
23185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186   (eval $ac_try) 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; }; then
23190   ac_hi=$ac_mid; break
23191 else
23192   echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23194
23195 ac_lo=`expr $ac_mid + 1`
23196                     if test $ac_lo -le $ac_mid; then
23197                       ac_lo= ac_hi=
23198                       break
23199                     fi
23200                     ac_mid=`expr 2 '*' $ac_mid + 1`
23201 fi
23202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23203   done
23204 else
23205   echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23207
23208 cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214 $ac_includes_default
23215 int
23216 main ()
23217 {
23218 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23219 test_array [0] = 0
23220
23221   ;
23222   return 0;
23223 }
23224 _ACEOF
23225 rm -f conftest.$ac_objext
23226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23227   (eval $ac_compile) 2>conftest.er1
23228   ac_status=$?
23229   grep -v '^ *+' conftest.er1 >conftest.err
23230   rm -f conftest.er1
23231   cat conftest.err >&5
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); } &&
23234          { ac_try='test -z "$ac_c_werror_flag"
23235                          || test ! -s conftest.err'
23236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237   (eval $ac_try) 2>&5
23238   ac_status=$?
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); }; } &&
23241          { ac_try='test -s conftest.$ac_objext'
23242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23243   (eval $ac_try) 2>&5
23244   ac_status=$?
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); }; }; then
23247   ac_hi=-1 ac_mid=-1
23248   while :; do
23249     cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255 $ac_includes_default
23256 int
23257 main ()
23258 {
23259 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23260 test_array [0] = 0
23261
23262   ;
23263   return 0;
23264 }
23265 _ACEOF
23266 rm -f conftest.$ac_objext
23267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23268   (eval $ac_compile) 2>conftest.er1
23269   ac_status=$?
23270   grep -v '^ *+' conftest.er1 >conftest.err
23271   rm -f conftest.er1
23272   cat conftest.err >&5
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); } &&
23275          { ac_try='test -z "$ac_c_werror_flag"
23276                          || test ! -s conftest.err'
23277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278   (eval $ac_try) 2>&5
23279   ac_status=$?
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); }; } &&
23282          { ac_try='test -s conftest.$ac_objext'
23283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284   (eval $ac_try) 2>&5
23285   ac_status=$?
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; }; then
23288   ac_lo=$ac_mid; break
23289 else
23290   echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23292
23293 ac_hi=`expr '(' $ac_mid ')' - 1`
23294                        if test $ac_mid -le $ac_hi; then
23295                          ac_lo= ac_hi=
23296                          break
23297                        fi
23298                        ac_mid=`expr 2 '*' $ac_mid`
23299 fi
23300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23301   done
23302 else
23303   echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23305
23306 ac_lo= ac_hi=
23307 fi
23308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23309 fi
23310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23311 # Binary search between lo and hi bounds.
23312 while test "x$ac_lo" != "x$ac_hi"; do
23313   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23314   cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320 $ac_includes_default
23321 int
23322 main ()
23323 {
23324 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23325 test_array [0] = 0
23326
23327   ;
23328   return 0;
23329 }
23330 _ACEOF
23331 rm -f conftest.$ac_objext
23332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23333   (eval $ac_compile) 2>conftest.er1
23334   ac_status=$?
23335   grep -v '^ *+' conftest.er1 >conftest.err
23336   rm -f conftest.er1
23337   cat conftest.err >&5
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); } &&
23340          { ac_try='test -z "$ac_c_werror_flag"
23341                          || test ! -s conftest.err'
23342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343   (eval $ac_try) 2>&5
23344   ac_status=$?
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); }; } &&
23347          { ac_try='test -s conftest.$ac_objext'
23348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349   (eval $ac_try) 2>&5
23350   ac_status=$?
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); }; }; then
23353   ac_hi=$ac_mid
23354 else
23355   echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23357
23358 ac_lo=`expr '(' $ac_mid ')' + 1`
23359 fi
23360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23361 done
23362 case $ac_lo in
23363 ?*) ac_cv_sizeof_char=$ac_lo;;
23364 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23365 See \`config.log' for more details." >&5
23366 echo "$as_me: error: cannot compute sizeof (char), 77
23367 See \`config.log' for more details." >&2;}
23368    { (exit 1); exit 1; }; } ;;
23369 esac
23370 else
23371   if test "$cross_compiling" = yes; then
23372   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23373 See \`config.log' for more details." >&5
23374 echo "$as_me: error: cannot run test program while cross compiling
23375 See \`config.log' for more details." >&2;}
23376    { (exit 1); exit 1; }; }
23377 else
23378   cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23384 $ac_includes_default
23385 long longval () { return (long) (sizeof (char)); }
23386 unsigned long ulongval () { return (long) (sizeof (char)); }
23387 #include <stdio.h>
23388 #include <stdlib.h>
23389 int
23390 main ()
23391 {
23392
23393   FILE *f = fopen ("conftest.val", "w");
23394   if (! f)
23395     exit (1);
23396   if (((long) (sizeof (char))) < 0)
23397     {
23398       long i = longval ();
23399       if (i != ((long) (sizeof (char))))
23400         exit (1);
23401       fprintf (f, "%ld\n", i);
23402     }
23403   else
23404     {
23405       unsigned long i = ulongval ();
23406       if (i != ((long) (sizeof (char))))
23407         exit (1);
23408       fprintf (f, "%lu\n", i);
23409     }
23410   exit (ferror (f) || fclose (f) != 0);
23411
23412   ;
23413   return 0;
23414 }
23415 _ACEOF
23416 rm -f conftest$ac_exeext
23417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418   (eval $ac_link) 2>&5
23419   ac_status=$?
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423   (eval $ac_try) 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; }; then
23427   ac_cv_sizeof_char=`cat conftest.val`
23428 else
23429   echo "$as_me: program exited with status $ac_status" >&5
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23432
23433 ( exit $ac_status )
23434 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23435 See \`config.log' for more details." >&5
23436 echo "$as_me: error: cannot compute sizeof (char), 77
23437 See \`config.log' for more details." >&2;}
23438    { (exit 1); exit 1; }; }
23439 fi
23440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23441 fi
23442 fi
23443 rm -f conftest.val
23444 else
23445   ac_cv_sizeof_char=0
23446 fi
23447 fi
23448 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23449 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23450 cat >>confdefs.h <<_ACEOF
23451 #define SIZEOF_CHAR $ac_cv_sizeof_char
23452 _ACEOF
23453
23454
23455 echo "$as_me:$LINENO: checking for short int" >&5
23456 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23457 if test "${ac_cv_type_short_int+set}" = set; then
23458   echo $ECHO_N "(cached) $ECHO_C" >&6
23459 else
23460   cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466 $ac_includes_default
23467 int
23468 main ()
23469 {
23470 if ((short int *) 0)
23471   return 0;
23472 if (sizeof (short int))
23473   return 0;
23474   ;
23475   return 0;
23476 }
23477 _ACEOF
23478 rm -f conftest.$ac_objext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23480   (eval $ac_compile) 2>conftest.er1
23481   ac_status=$?
23482   grep -v '^ *+' conftest.er1 >conftest.err
23483   rm -f conftest.er1
23484   cat conftest.err >&5
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); } &&
23487          { ac_try='test -z "$ac_c_werror_flag"
23488                          || test ! -s conftest.err'
23489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490   (eval $ac_try) 2>&5
23491   ac_status=$?
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); }; } &&
23494          { ac_try='test -s conftest.$ac_objext'
23495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496   (eval $ac_try) 2>&5
23497   ac_status=$?
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); }; }; then
23500   ac_cv_type_short_int=yes
23501 else
23502   echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505 ac_cv_type_short_int=no
23506 fi
23507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23508 fi
23509 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23510 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23511
23512 echo "$as_me:$LINENO: checking size of short int" >&5
23513 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23514 if test "${ac_cv_sizeof_short_int+set}" = set; then
23515   echo $ECHO_N "(cached) $ECHO_C" >&6
23516 else
23517   if test "$ac_cv_type_short_int" = yes; then
23518   # The cast to unsigned long works around a bug in the HP C Compiler
23519   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23520   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23521   # This bug is HP SR number 8606223364.
23522   if test "$cross_compiling" = yes; then
23523   # Depending upon the size, compute the lo and hi bounds.
23524 cat >conftest.$ac_ext <<_ACEOF
23525 /* confdefs.h.  */
23526 _ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h.  */
23530 $ac_includes_default
23531 int
23532 main ()
23533 {
23534 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23535 test_array [0] = 0
23536
23537   ;
23538   return 0;
23539 }
23540 _ACEOF
23541 rm -f conftest.$ac_objext
23542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23543   (eval $ac_compile) 2>conftest.er1
23544   ac_status=$?
23545   grep -v '^ *+' conftest.er1 >conftest.err
23546   rm -f conftest.er1
23547   cat conftest.err >&5
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); } &&
23550          { ac_try='test -z "$ac_c_werror_flag"
23551                          || test ! -s conftest.err'
23552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23553   (eval $ac_try) 2>&5
23554   ac_status=$?
23555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556   (exit $ac_status); }; } &&
23557          { ac_try='test -s conftest.$ac_objext'
23558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559   (eval $ac_try) 2>&5
23560   ac_status=$?
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); }; }; then
23563   ac_lo=0 ac_mid=0
23564   while :; do
23565     cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h.  */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h.  */
23571 $ac_includes_default
23572 int
23573 main ()
23574 {
23575 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23576 test_array [0] = 0
23577
23578   ;
23579   return 0;
23580 }
23581 _ACEOF
23582 rm -f conftest.$ac_objext
23583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23584   (eval $ac_compile) 2>conftest.er1
23585   ac_status=$?
23586   grep -v '^ *+' conftest.er1 >conftest.err
23587   rm -f conftest.er1
23588   cat conftest.err >&5
23589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590   (exit $ac_status); } &&
23591          { ac_try='test -z "$ac_c_werror_flag"
23592                          || test ! -s conftest.err'
23593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594   (eval $ac_try) 2>&5
23595   ac_status=$?
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); }; } &&
23598          { ac_try='test -s conftest.$ac_objext'
23599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600   (eval $ac_try) 2>&5
23601   ac_status=$?
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); }; }; then
23604   ac_hi=$ac_mid; break
23605 else
23606   echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609 ac_lo=`expr $ac_mid + 1`
23610                     if test $ac_lo -le $ac_mid; then
23611                       ac_lo= ac_hi=
23612                       break
23613                     fi
23614                     ac_mid=`expr 2 '*' $ac_mid + 1`
23615 fi
23616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23617   done
23618 else
23619   echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h.  */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h.  */
23628 $ac_includes_default
23629 int
23630 main ()
23631 {
23632 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23633 test_array [0] = 0
23634
23635   ;
23636   return 0;
23637 }
23638 _ACEOF
23639 rm -f conftest.$ac_objext
23640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23641   (eval $ac_compile) 2>conftest.er1
23642   ac_status=$?
23643   grep -v '^ *+' conftest.er1 >conftest.err
23644   rm -f conftest.er1
23645   cat conftest.err >&5
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } &&
23648          { ac_try='test -z "$ac_c_werror_flag"
23649                          || test ! -s conftest.err'
23650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651   (eval $ac_try) 2>&5
23652   ac_status=$?
23653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654   (exit $ac_status); }; } &&
23655          { ac_try='test -s conftest.$ac_objext'
23656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); }; }; then
23661   ac_hi=-1 ac_mid=-1
23662   while :; do
23663     cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h.  */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h.  */
23669 $ac_includes_default
23670 int
23671 main ()
23672 {
23673 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23674 test_array [0] = 0
23675
23676   ;
23677   return 0;
23678 }
23679 _ACEOF
23680 rm -f conftest.$ac_objext
23681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23682   (eval $ac_compile) 2>conftest.er1
23683   ac_status=$?
23684   grep -v '^ *+' conftest.er1 >conftest.err
23685   rm -f conftest.er1
23686   cat conftest.err >&5
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); } &&
23689          { ac_try='test -z "$ac_c_werror_flag"
23690                          || test ! -s conftest.err'
23691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692   (eval $ac_try) 2>&5
23693   ac_status=$?
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); }; } &&
23696          { ac_try='test -s conftest.$ac_objext'
23697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698   (eval $ac_try) 2>&5
23699   ac_status=$?
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; }; then
23702   ac_lo=$ac_mid; break
23703 else
23704   echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707 ac_hi=`expr '(' $ac_mid ')' - 1`
23708                        if test $ac_mid -le $ac_hi; then
23709                          ac_lo= ac_hi=
23710                          break
23711                        fi
23712                        ac_mid=`expr 2 '*' $ac_mid`
23713 fi
23714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23715   done
23716 else
23717   echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720 ac_lo= ac_hi=
23721 fi
23722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23723 fi
23724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23725 # Binary search between lo and hi bounds.
23726 while test "x$ac_lo" != "x$ac_hi"; do
23727   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23728   cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734 $ac_includes_default
23735 int
23736 main ()
23737 {
23738 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23739 test_array [0] = 0
23740
23741   ;
23742   return 0;
23743 }
23744 _ACEOF
23745 rm -f conftest.$ac_objext
23746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23747   (eval $ac_compile) 2>conftest.er1
23748   ac_status=$?
23749   grep -v '^ *+' conftest.er1 >conftest.err
23750   rm -f conftest.er1
23751   cat conftest.err >&5
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); } &&
23754          { ac_try='test -z "$ac_c_werror_flag"
23755                          || test ! -s conftest.err'
23756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757   (eval $ac_try) 2>&5
23758   ac_status=$?
23759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760   (exit $ac_status); }; } &&
23761          { ac_try='test -s conftest.$ac_objext'
23762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23763   (eval $ac_try) 2>&5
23764   ac_status=$?
23765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766   (exit $ac_status); }; }; then
23767   ac_hi=$ac_mid
23768 else
23769   echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772 ac_lo=`expr '(' $ac_mid ')' + 1`
23773 fi
23774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23775 done
23776 case $ac_lo in
23777 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23778 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23779 See \`config.log' for more details." >&5
23780 echo "$as_me: error: cannot compute sizeof (short int), 77
23781 See \`config.log' for more details." >&2;}
23782    { (exit 1); exit 1; }; } ;;
23783 esac
23784 else
23785   if test "$cross_compiling" = yes; then
23786   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23787 See \`config.log' for more details." >&5
23788 echo "$as_me: error: cannot run test program while cross compiling
23789 See \`config.log' for more details." >&2;}
23790    { (exit 1); exit 1; }; }
23791 else
23792   cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h.  */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h.  */
23798 $ac_includes_default
23799 long longval () { return (long) (sizeof (short int)); }
23800 unsigned long ulongval () { return (long) (sizeof (short int)); }
23801 #include <stdio.h>
23802 #include <stdlib.h>
23803 int
23804 main ()
23805 {
23806
23807   FILE *f = fopen ("conftest.val", "w");
23808   if (! f)
23809     exit (1);
23810   if (((long) (sizeof (short int))) < 0)
23811     {
23812       long i = longval ();
23813       if (i != ((long) (sizeof (short int))))
23814         exit (1);
23815       fprintf (f, "%ld\n", i);
23816     }
23817   else
23818     {
23819       unsigned long i = ulongval ();
23820       if (i != ((long) (sizeof (short int))))
23821         exit (1);
23822       fprintf (f, "%lu\n", i);
23823     }
23824   exit (ferror (f) || fclose (f) != 0);
23825
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest$ac_exeext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23832   (eval $ac_link) 2>&5
23833   ac_status=$?
23834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837   (eval $ac_try) 2>&5
23838   ac_status=$?
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; }; then
23841   ac_cv_sizeof_short_int=`cat conftest.val`
23842 else
23843   echo "$as_me: program exited with status $ac_status" >&5
23844 echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847 ( exit $ac_status )
23848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23849 See \`config.log' for more details." >&5
23850 echo "$as_me: error: cannot compute sizeof (short int), 77
23851 See \`config.log' for more details." >&2;}
23852    { (exit 1); exit 1; }; }
23853 fi
23854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23855 fi
23856 fi
23857 rm -f conftest.val
23858 else
23859   ac_cv_sizeof_short_int=0
23860 fi
23861 fi
23862 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23863 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23864 cat >>confdefs.h <<_ACEOF
23865 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23866 _ACEOF
23867
23868
23869 echo "$as_me:$LINENO: checking for int" >&5
23870 echo $ECHO_N "checking for int... $ECHO_C" >&6
23871 if test "${ac_cv_type_int+set}" = set; then
23872   echo $ECHO_N "(cached) $ECHO_C" >&6
23873 else
23874   cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h.  */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h.  */
23880 $ac_includes_default
23881 int
23882 main ()
23883 {
23884 if ((int *) 0)
23885   return 0;
23886 if (sizeof (int))
23887   return 0;
23888   ;
23889   return 0;
23890 }
23891 _ACEOF
23892 rm -f conftest.$ac_objext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894   (eval $ac_compile) 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } &&
23901          { ac_try='test -z "$ac_c_werror_flag"
23902                          || test ! -s conftest.err'
23903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904   (eval $ac_try) 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); }; } &&
23908          { ac_try='test -s conftest.$ac_objext'
23909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910   (eval $ac_try) 2>&5
23911   ac_status=$?
23912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); }; }; then
23914   ac_cv_type_int=yes
23915 else
23916   echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23918
23919 ac_cv_type_int=no
23920 fi
23921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23922 fi
23923 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23924 echo "${ECHO_T}$ac_cv_type_int" >&6
23925
23926 echo "$as_me:$LINENO: checking size of int" >&5
23927 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23928 if test "${ac_cv_sizeof_int+set}" = set; then
23929   echo $ECHO_N "(cached) $ECHO_C" >&6
23930 else
23931   if test "$ac_cv_type_int" = yes; then
23932   # The cast to unsigned long works around a bug in the HP C Compiler
23933   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23934   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23935   # This bug is HP SR number 8606223364.
23936   if test "$cross_compiling" = yes; then
23937   # Depending upon the size, compute the lo and hi bounds.
23938 cat >conftest.$ac_ext <<_ACEOF
23939 /* confdefs.h.  */
23940 _ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h.  */
23944 $ac_includes_default
23945 int
23946 main ()
23947 {
23948 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23949 test_array [0] = 0
23950
23951   ;
23952   return 0;
23953 }
23954 _ACEOF
23955 rm -f conftest.$ac_objext
23956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23957   (eval $ac_compile) 2>conftest.er1
23958   ac_status=$?
23959   grep -v '^ *+' conftest.er1 >conftest.err
23960   rm -f conftest.er1
23961   cat conftest.err >&5
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } &&
23964          { ac_try='test -z "$ac_c_werror_flag"
23965                          || test ! -s conftest.err'
23966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967   (eval $ac_try) 2>&5
23968   ac_status=$?
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); }; } &&
23971          { ac_try='test -s conftest.$ac_objext'
23972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973   (eval $ac_try) 2>&5
23974   ac_status=$?
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); }; }; then
23977   ac_lo=0 ac_mid=0
23978   while :; do
23979     cat >conftest.$ac_ext <<_ACEOF
23980 /* confdefs.h.  */
23981 _ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h.  */
23985 $ac_includes_default
23986 int
23987 main ()
23988 {
23989 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23990 test_array [0] = 0
23991
23992   ;
23993   return 0;
23994 }
23995 _ACEOF
23996 rm -f conftest.$ac_objext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23998   (eval $ac_compile) 2>conftest.er1
23999   ac_status=$?
24000   grep -v '^ *+' conftest.er1 >conftest.err
24001   rm -f conftest.er1
24002   cat conftest.err >&5
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); } &&
24005          { ac_try='test -z "$ac_c_werror_flag"
24006                          || test ! -s conftest.err'
24007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; } &&
24012          { ac_try='test -s conftest.$ac_objext'
24013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014   (eval $ac_try) 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); }; }; then
24018   ac_hi=$ac_mid; break
24019 else
24020   echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24022
24023 ac_lo=`expr $ac_mid + 1`
24024                     if test $ac_lo -le $ac_mid; then
24025                       ac_lo= ac_hi=
24026                       break
24027                     fi
24028                     ac_mid=`expr 2 '*' $ac_mid + 1`
24029 fi
24030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24031   done
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036 cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h.  */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h.  */
24042 $ac_includes_default
24043 int
24044 main ()
24045 {
24046 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24047 test_array [0] = 0
24048
24049   ;
24050   return 0;
24051 }
24052 _ACEOF
24053 rm -f conftest.$ac_objext
24054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24055   (eval $ac_compile) 2>conftest.er1
24056   ac_status=$?
24057   grep -v '^ *+' conftest.er1 >conftest.err
24058   rm -f conftest.er1
24059   cat conftest.err >&5
24060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061   (exit $ac_status); } &&
24062          { ac_try='test -z "$ac_c_werror_flag"
24063                          || test ! -s conftest.err'
24064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24065   (eval $ac_try) 2>&5
24066   ac_status=$?
24067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068   (exit $ac_status); }; } &&
24069          { ac_try='test -s conftest.$ac_objext'
24070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071   (eval $ac_try) 2>&5
24072   ac_status=$?
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); }; }; then
24075   ac_hi=-1 ac_mid=-1
24076   while :; do
24077     cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h.  */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h.  */
24083 $ac_includes_default
24084 int
24085 main ()
24086 {
24087 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24088 test_array [0] = 0
24089
24090   ;
24091   return 0;
24092 }
24093 _ACEOF
24094 rm -f conftest.$ac_objext
24095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24096   (eval $ac_compile) 2>conftest.er1
24097   ac_status=$?
24098   grep -v '^ *+' conftest.er1 >conftest.err
24099   rm -f conftest.er1
24100   cat conftest.err >&5
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); } &&
24103          { ac_try='test -z "$ac_c_werror_flag"
24104                          || test ! -s conftest.err'
24105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106   (eval $ac_try) 2>&5
24107   ac_status=$?
24108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109   (exit $ac_status); }; } &&
24110          { ac_try='test -s conftest.$ac_objext'
24111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112   (eval $ac_try) 2>&5
24113   ac_status=$?
24114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115   (exit $ac_status); }; }; then
24116   ac_lo=$ac_mid; break
24117 else
24118   echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121 ac_hi=`expr '(' $ac_mid ')' - 1`
24122                        if test $ac_mid -le $ac_hi; then
24123                          ac_lo= ac_hi=
24124                          break
24125                        fi
24126                        ac_mid=`expr 2 '*' $ac_mid`
24127 fi
24128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24129   done
24130 else
24131   echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24133
24134 ac_lo= ac_hi=
24135 fi
24136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24137 fi
24138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24139 # Binary search between lo and hi bounds.
24140 while test "x$ac_lo" != "x$ac_hi"; do
24141   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24142   cat >conftest.$ac_ext <<_ACEOF
24143 /* confdefs.h.  */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h.  */
24148 $ac_includes_default
24149 int
24150 main ()
24151 {
24152 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24153 test_array [0] = 0
24154
24155   ;
24156   return 0;
24157 }
24158 _ACEOF
24159 rm -f conftest.$ac_objext
24160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24161   (eval $ac_compile) 2>conftest.er1
24162   ac_status=$?
24163   grep -v '^ *+' conftest.er1 >conftest.err
24164   rm -f conftest.er1
24165   cat conftest.err >&5
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); } &&
24168          { ac_try='test -z "$ac_c_werror_flag"
24169                          || test ! -s conftest.err'
24170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171   (eval $ac_try) 2>&5
24172   ac_status=$?
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); }; } &&
24175          { ac_try='test -s conftest.$ac_objext'
24176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177   (eval $ac_try) 2>&5
24178   ac_status=$?
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); }; }; then
24181   ac_hi=$ac_mid
24182 else
24183   echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 ac_lo=`expr '(' $ac_mid ')' + 1`
24187 fi
24188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24189 done
24190 case $ac_lo in
24191 ?*) ac_cv_sizeof_int=$ac_lo;;
24192 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24193 See \`config.log' for more details." >&5
24194 echo "$as_me: error: cannot compute sizeof (int), 77
24195 See \`config.log' for more details." >&2;}
24196    { (exit 1); exit 1; }; } ;;
24197 esac
24198 else
24199   if test "$cross_compiling" = yes; then
24200   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24201 See \`config.log' for more details." >&5
24202 echo "$as_me: error: cannot run test program while cross compiling
24203 See \`config.log' for more details." >&2;}
24204    { (exit 1); exit 1; }; }
24205 else
24206   cat >conftest.$ac_ext <<_ACEOF
24207 /* confdefs.h.  */
24208 _ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h.  */
24212 $ac_includes_default
24213 long longval () { return (long) (sizeof (int)); }
24214 unsigned long ulongval () { return (long) (sizeof (int)); }
24215 #include <stdio.h>
24216 #include <stdlib.h>
24217 int
24218 main ()
24219 {
24220
24221   FILE *f = fopen ("conftest.val", "w");
24222   if (! f)
24223     exit (1);
24224   if (((long) (sizeof (int))) < 0)
24225     {
24226       long i = longval ();
24227       if (i != ((long) (sizeof (int))))
24228         exit (1);
24229       fprintf (f, "%ld\n", i);
24230     }
24231   else
24232     {
24233       unsigned long i = ulongval ();
24234       if (i != ((long) (sizeof (int))))
24235         exit (1);
24236       fprintf (f, "%lu\n", i);
24237     }
24238   exit (ferror (f) || fclose (f) != 0);
24239
24240   ;
24241   return 0;
24242 }
24243 _ACEOF
24244 rm -f conftest$ac_exeext
24245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24246   (eval $ac_link) 2>&5
24247   ac_status=$?
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251   (eval $ac_try) 2>&5
24252   ac_status=$?
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); }; }; then
24255   ac_cv_sizeof_int=`cat conftest.val`
24256 else
24257   echo "$as_me: program exited with status $ac_status" >&5
24258 echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24260
24261 ( exit $ac_status )
24262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24263 See \`config.log' for more details." >&5
24264 echo "$as_me: error: cannot compute sizeof (int), 77
24265 See \`config.log' for more details." >&2;}
24266    { (exit 1); exit 1; }; }
24267 fi
24268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24269 fi
24270 fi
24271 rm -f conftest.val
24272 else
24273   ac_cv_sizeof_int=0
24274 fi
24275 fi
24276 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24277 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24278 cat >>confdefs.h <<_ACEOF
24279 #define SIZEOF_INT $ac_cv_sizeof_int
24280 _ACEOF
24281
24282
24283 echo "$as_me:$LINENO: checking for long int" >&5
24284 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24285 if test "${ac_cv_type_long_int+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288   cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h.  */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h.  */
24294 $ac_includes_default
24295 int
24296 main ()
24297 {
24298 if ((long int *) 0)
24299   return 0;
24300 if (sizeof (long int))
24301   return 0;
24302   ;
24303   return 0;
24304 }
24305 _ACEOF
24306 rm -f conftest.$ac_objext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24308   (eval $ac_compile) 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } &&
24315          { ac_try='test -z "$ac_c_werror_flag"
24316                          || test ! -s conftest.err'
24317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318   (eval $ac_try) 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); }; } &&
24322          { ac_try='test -s conftest.$ac_objext'
24323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324   (eval $ac_try) 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328   ac_cv_type_long_int=yes
24329 else
24330   echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333 ac_cv_type_long_int=no
24334 fi
24335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24336 fi
24337 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24338 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24339
24340 echo "$as_me:$LINENO: checking size of long int" >&5
24341 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24342 if test "${ac_cv_sizeof_long_int+set}" = set; then
24343   echo $ECHO_N "(cached) $ECHO_C" >&6
24344 else
24345   if test "$ac_cv_type_long_int" = yes; then
24346   # The cast to unsigned long works around a bug in the HP C Compiler
24347   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24348   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24349   # This bug is HP SR number 8606223364.
24350   if test "$cross_compiling" = yes; then
24351   # Depending upon the size, compute the lo and hi bounds.
24352 cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358 $ac_includes_default
24359 int
24360 main ()
24361 {
24362 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24363 test_array [0] = 0
24364
24365   ;
24366   return 0;
24367 }
24368 _ACEOF
24369 rm -f conftest.$ac_objext
24370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24371   (eval $ac_compile) 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } &&
24378          { ac_try='test -z "$ac_c_werror_flag"
24379                          || test ! -s conftest.err'
24380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24381   (eval $ac_try) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); }; } &&
24385          { ac_try='test -s conftest.$ac_objext'
24386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387   (eval $ac_try) 2>&5
24388   ac_status=$?
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); }; }; then
24391   ac_lo=0 ac_mid=0
24392   while :; do
24393     cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h.  */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h.  */
24399 $ac_includes_default
24400 int
24401 main ()
24402 {
24403 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24404 test_array [0] = 0
24405
24406   ;
24407   return 0;
24408 }
24409 _ACEOF
24410 rm -f conftest.$ac_objext
24411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24412   (eval $ac_compile) 2>conftest.er1
24413   ac_status=$?
24414   grep -v '^ *+' conftest.er1 >conftest.err
24415   rm -f conftest.er1
24416   cat conftest.err >&5
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); } &&
24419          { ac_try='test -z "$ac_c_werror_flag"
24420                          || test ! -s conftest.err'
24421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422   (eval $ac_try) 2>&5
24423   ac_status=$?
24424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); }; } &&
24426          { ac_try='test -s conftest.$ac_objext'
24427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428   (eval $ac_try) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; }; then
24432   ac_hi=$ac_mid; break
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437 ac_lo=`expr $ac_mid + 1`
24438                     if test $ac_lo -le $ac_mid; then
24439                       ac_lo= ac_hi=
24440                       break
24441                     fi
24442                     ac_mid=`expr 2 '*' $ac_mid + 1`
24443 fi
24444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24445   done
24446 else
24447   echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24449
24450 cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456 $ac_includes_default
24457 int
24458 main ()
24459 {
24460 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24461 test_array [0] = 0
24462
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24469   (eval $ac_compile) 2>conftest.er1
24470   ac_status=$?
24471   grep -v '^ *+' conftest.er1 >conftest.err
24472   rm -f conftest.er1
24473   cat conftest.err >&5
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); } &&
24476          { ac_try='test -z "$ac_c_werror_flag"
24477                          || test ! -s conftest.err'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest.$ac_objext'
24484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485   (eval $ac_try) 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); }; }; then
24489   ac_hi=-1 ac_mid=-1
24490   while :; do
24491     cat >conftest.$ac_ext <<_ACEOF
24492 /* confdefs.h.  */
24493 _ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h.  */
24497 $ac_includes_default
24498 int
24499 main ()
24500 {
24501 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24502 test_array [0] = 0
24503
24504   ;
24505   return 0;
24506 }
24507 _ACEOF
24508 rm -f conftest.$ac_objext
24509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24510   (eval $ac_compile) 2>conftest.er1
24511   ac_status=$?
24512   grep -v '^ *+' conftest.er1 >conftest.err
24513   rm -f conftest.er1
24514   cat conftest.err >&5
24515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516   (exit $ac_status); } &&
24517          { ac_try='test -z "$ac_c_werror_flag"
24518                          || test ! -s conftest.err'
24519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520   (eval $ac_try) 2>&5
24521   ac_status=$?
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); }; } &&
24524          { ac_try='test -s conftest.$ac_objext'
24525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526   (eval $ac_try) 2>&5
24527   ac_status=$?
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); }; }; then
24530   ac_lo=$ac_mid; break
24531 else
24532   echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24534
24535 ac_hi=`expr '(' $ac_mid ')' - 1`
24536                        if test $ac_mid -le $ac_hi; then
24537                          ac_lo= ac_hi=
24538                          break
24539                        fi
24540                        ac_mid=`expr 2 '*' $ac_mid`
24541 fi
24542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24543   done
24544 else
24545   echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24547
24548 ac_lo= ac_hi=
24549 fi
24550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24551 fi
24552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24553 # Binary search between lo and hi bounds.
24554 while test "x$ac_lo" != "x$ac_hi"; do
24555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24556   cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562 $ac_includes_default
24563 int
24564 main ()
24565 {
24566 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24567 test_array [0] = 0
24568
24569   ;
24570   return 0;
24571 }
24572 _ACEOF
24573 rm -f conftest.$ac_objext
24574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24575   (eval $ac_compile) 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
24579   cat conftest.err >&5
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } &&
24582          { ac_try='test -z "$ac_c_werror_flag"
24583                          || test ! -s conftest.err'
24584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585   (eval $ac_try) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); }; } &&
24589          { ac_try='test -s conftest.$ac_objext'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; }; then
24595   ac_hi=$ac_mid
24596 else
24597   echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600 ac_lo=`expr '(' $ac_mid ')' + 1`
24601 fi
24602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24603 done
24604 case $ac_lo in
24605 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24606 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24607 See \`config.log' for more details." >&5
24608 echo "$as_me: error: cannot compute sizeof (long int), 77
24609 See \`config.log' for more details." >&2;}
24610    { (exit 1); exit 1; }; } ;;
24611 esac
24612 else
24613   if test "$cross_compiling" = yes; then
24614   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24615 See \`config.log' for more details." >&5
24616 echo "$as_me: error: cannot run test program while cross compiling
24617 See \`config.log' for more details." >&2;}
24618    { (exit 1); exit 1; }; }
24619 else
24620   cat >conftest.$ac_ext <<_ACEOF
24621 /* confdefs.h.  */
24622 _ACEOF
24623 cat confdefs.h >>conftest.$ac_ext
24624 cat >>conftest.$ac_ext <<_ACEOF
24625 /* end confdefs.h.  */
24626 $ac_includes_default
24627 long longval () { return (long) (sizeof (long int)); }
24628 unsigned long ulongval () { return (long) (sizeof (long int)); }
24629 #include <stdio.h>
24630 #include <stdlib.h>
24631 int
24632 main ()
24633 {
24634
24635   FILE *f = fopen ("conftest.val", "w");
24636   if (! f)
24637     exit (1);
24638   if (((long) (sizeof (long int))) < 0)
24639     {
24640       long i = longval ();
24641       if (i != ((long) (sizeof (long int))))
24642         exit (1);
24643       fprintf (f, "%ld\n", i);
24644     }
24645   else
24646     {
24647       unsigned long i = ulongval ();
24648       if (i != ((long) (sizeof (long int))))
24649         exit (1);
24650       fprintf (f, "%lu\n", i);
24651     }
24652   exit (ferror (f) || fclose (f) != 0);
24653
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 rm -f conftest$ac_exeext
24659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24660   (eval $ac_link) 2>&5
24661   ac_status=$?
24662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665   (eval $ac_try) 2>&5
24666   ac_status=$?
24667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668   (exit $ac_status); }; }; then
24669   ac_cv_sizeof_long_int=`cat conftest.val`
24670 else
24671   echo "$as_me: program exited with status $ac_status" >&5
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ( exit $ac_status )
24676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24677 See \`config.log' for more details." >&5
24678 echo "$as_me: error: cannot compute sizeof (long int), 77
24679 See \`config.log' for more details." >&2;}
24680    { (exit 1); exit 1; }; }
24681 fi
24682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24683 fi
24684 fi
24685 rm -f conftest.val
24686 else
24687   ac_cv_sizeof_long_int=0
24688 fi
24689 fi
24690 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24691 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24692 cat >>confdefs.h <<_ACEOF
24693 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24694 _ACEOF
24695
24696
24697 echo "$as_me:$LINENO: checking for long long int" >&5
24698 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24699 if test "${ac_cv_type_long_long_int+set}" = set; then
24700   echo $ECHO_N "(cached) $ECHO_C" >&6
24701 else
24702   cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708 $ac_includes_default
24709 int
24710 main ()
24711 {
24712 if ((long long int *) 0)
24713   return 0;
24714 if (sizeof (long long int))
24715   return 0;
24716   ;
24717   return 0;
24718 }
24719 _ACEOF
24720 rm -f conftest.$ac_objext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24722   (eval $ac_compile) 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } &&
24729          { ac_try='test -z "$ac_c_werror_flag"
24730                          || test ! -s conftest.err'
24731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; } &&
24736          { ac_try='test -s conftest.$ac_objext'
24737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738   (eval $ac_try) 2>&5
24739   ac_status=$?
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); }; }; then
24742   ac_cv_type_long_long_int=yes
24743 else
24744   echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24746
24747 ac_cv_type_long_long_int=no
24748 fi
24749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24750 fi
24751 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24752 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24753
24754 echo "$as_me:$LINENO: checking size of long long int" >&5
24755 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24756 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24757   echo $ECHO_N "(cached) $ECHO_C" >&6
24758 else
24759   if test "$ac_cv_type_long_long_int" = yes; then
24760   # The cast to unsigned long works around a bug in the HP C Compiler
24761   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24762   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24763   # This bug is HP SR number 8606223364.
24764   if test "$cross_compiling" = yes; then
24765   # Depending upon the size, compute the lo and hi bounds.
24766 cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 $ac_includes_default
24773 int
24774 main ()
24775 {
24776 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24777 test_array [0] = 0
24778
24779   ;
24780   return 0;
24781 }
24782 _ACEOF
24783 rm -f conftest.$ac_objext
24784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24785   (eval $ac_compile) 2>conftest.er1
24786   ac_status=$?
24787   grep -v '^ *+' conftest.er1 >conftest.err
24788   rm -f conftest.er1
24789   cat conftest.err >&5
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); } &&
24792          { ac_try='test -z "$ac_c_werror_flag"
24793                          || test ! -s conftest.err'
24794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795   (eval $ac_try) 2>&5
24796   ac_status=$?
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); }; } &&
24799          { ac_try='test -s conftest.$ac_objext'
24800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801   (eval $ac_try) 2>&5
24802   ac_status=$?
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); }; }; then
24805   ac_lo=0 ac_mid=0
24806   while :; do
24807     cat >conftest.$ac_ext <<_ACEOF
24808 /* confdefs.h.  */
24809 _ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h.  */
24813 $ac_includes_default
24814 int
24815 main ()
24816 {
24817 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24818 test_array [0] = 0
24819
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 rm -f conftest.$ac_objext
24825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24826   (eval $ac_compile) 2>conftest.er1
24827   ac_status=$?
24828   grep -v '^ *+' conftest.er1 >conftest.err
24829   rm -f conftest.er1
24830   cat conftest.err >&5
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } &&
24833          { ac_try='test -z "$ac_c_werror_flag"
24834                          || test ! -s conftest.err'
24835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836   (eval $ac_try) 2>&5
24837   ac_status=$?
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); }; } &&
24840          { ac_try='test -s conftest.$ac_objext'
24841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; }; then
24846   ac_hi=$ac_mid; break
24847 else
24848   echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24850
24851 ac_lo=`expr $ac_mid + 1`
24852                     if test $ac_lo -le $ac_mid; then
24853                       ac_lo= ac_hi=
24854                       break
24855                     fi
24856                     ac_mid=`expr 2 '*' $ac_mid + 1`
24857 fi
24858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24859   done
24860 else
24861   echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864 cat >conftest.$ac_ext <<_ACEOF
24865 /* confdefs.h.  */
24866 _ACEOF
24867 cat confdefs.h >>conftest.$ac_ext
24868 cat >>conftest.$ac_ext <<_ACEOF
24869 /* end confdefs.h.  */
24870 $ac_includes_default
24871 int
24872 main ()
24873 {
24874 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24875 test_array [0] = 0
24876
24877   ;
24878   return 0;
24879 }
24880 _ACEOF
24881 rm -f conftest.$ac_objext
24882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24883   (eval $ac_compile) 2>conftest.er1
24884   ac_status=$?
24885   grep -v '^ *+' conftest.er1 >conftest.err
24886   rm -f conftest.er1
24887   cat conftest.err >&5
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); } &&
24890          { ac_try='test -z "$ac_c_werror_flag"
24891                          || test ! -s conftest.err'
24892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896   (exit $ac_status); }; } &&
24897          { ac_try='test -s conftest.$ac_objext'
24898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899   (eval $ac_try) 2>&5
24900   ac_status=$?
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); }; }; then
24903   ac_hi=-1 ac_mid=-1
24904   while :; do
24905     cat >conftest.$ac_ext <<_ACEOF
24906 /* confdefs.h.  */
24907 _ACEOF
24908 cat confdefs.h >>conftest.$ac_ext
24909 cat >>conftest.$ac_ext <<_ACEOF
24910 /* end confdefs.h.  */
24911 $ac_includes_default
24912 int
24913 main ()
24914 {
24915 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24916 test_array [0] = 0
24917
24918   ;
24919   return 0;
24920 }
24921 _ACEOF
24922 rm -f conftest.$ac_objext
24923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24924   (eval $ac_compile) 2>conftest.er1
24925   ac_status=$?
24926   grep -v '^ *+' conftest.er1 >conftest.err
24927   rm -f conftest.er1
24928   cat conftest.err >&5
24929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930   (exit $ac_status); } &&
24931          { ac_try='test -z "$ac_c_werror_flag"
24932                          || test ! -s conftest.err'
24933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934   (eval $ac_try) 2>&5
24935   ac_status=$?
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); }; } &&
24938          { ac_try='test -s conftest.$ac_objext'
24939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24940   (eval $ac_try) 2>&5
24941   ac_status=$?
24942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943   (exit $ac_status); }; }; then
24944   ac_lo=$ac_mid; break
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949 ac_hi=`expr '(' $ac_mid ')' - 1`
24950                        if test $ac_mid -le $ac_hi; then
24951                          ac_lo= ac_hi=
24952                          break
24953                        fi
24954                        ac_mid=`expr 2 '*' $ac_mid`
24955 fi
24956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24957   done
24958 else
24959   echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24961
24962 ac_lo= ac_hi=
24963 fi
24964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24965 fi
24966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24967 # Binary search between lo and hi bounds.
24968 while test "x$ac_lo" != "x$ac_hi"; do
24969   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24970   cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976 $ac_includes_default
24977 int
24978 main ()
24979 {
24980 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24981 test_array [0] = 0
24982
24983   ;
24984   return 0;
24985 }
24986 _ACEOF
24987 rm -f conftest.$ac_objext
24988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24989   (eval $ac_compile) 2>conftest.er1
24990   ac_status=$?
24991   grep -v '^ *+' conftest.er1 >conftest.err
24992   rm -f conftest.er1
24993   cat conftest.err >&5
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); } &&
24996          { ac_try='test -z "$ac_c_werror_flag"
24997                          || test ! -s conftest.err'
24998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999   (eval $ac_try) 2>&5
25000   ac_status=$?
25001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002   (exit $ac_status); }; } &&
25003          { ac_try='test -s conftest.$ac_objext'
25004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005   (eval $ac_try) 2>&5
25006   ac_status=$?
25007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008   (exit $ac_status); }; }; then
25009   ac_hi=$ac_mid
25010 else
25011   echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25013
25014 ac_lo=`expr '(' $ac_mid ')' + 1`
25015 fi
25016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25017 done
25018 case $ac_lo in
25019 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25021 See \`config.log' for more details." >&5
25022 echo "$as_me: error: cannot compute sizeof (long long int), 77
25023 See \`config.log' for more details." >&2;}
25024    { (exit 1); exit 1; }; } ;;
25025 esac
25026 else
25027   if test "$cross_compiling" = yes; then
25028   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25029 See \`config.log' for more details." >&5
25030 echo "$as_me: error: cannot run test program while cross compiling
25031 See \`config.log' for more details." >&2;}
25032    { (exit 1); exit 1; }; }
25033 else
25034   cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h.  */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h.  */
25040 $ac_includes_default
25041 long longval () { return (long) (sizeof (long long int)); }
25042 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25043 #include <stdio.h>
25044 #include <stdlib.h>
25045 int
25046 main ()
25047 {
25048
25049   FILE *f = fopen ("conftest.val", "w");
25050   if (! f)
25051     exit (1);
25052   if (((long) (sizeof (long long int))) < 0)
25053     {
25054       long i = longval ();
25055       if (i != ((long) (sizeof (long long int))))
25056         exit (1);
25057       fprintf (f, "%ld\n", i);
25058     }
25059   else
25060     {
25061       unsigned long i = ulongval ();
25062       if (i != ((long) (sizeof (long long int))))
25063         exit (1);
25064       fprintf (f, "%lu\n", i);
25065     }
25066   exit (ferror (f) || fclose (f) != 0);
25067
25068   ;
25069   return 0;
25070 }
25071 _ACEOF
25072 rm -f conftest$ac_exeext
25073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25074   (eval $ac_link) 2>&5
25075   ac_status=$?
25076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25079   (eval $ac_try) 2>&5
25080   ac_status=$?
25081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25082   (exit $ac_status); }; }; then
25083   ac_cv_sizeof_long_long_int=`cat conftest.val`
25084 else
25085   echo "$as_me: program exited with status $ac_status" >&5
25086 echo "$as_me: failed program was:" >&5
25087 sed 's/^/| /' conftest.$ac_ext >&5
25088
25089 ( exit $ac_status )
25090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25091 See \`config.log' for more details." >&5
25092 echo "$as_me: error: cannot compute sizeof (long long int), 77
25093 See \`config.log' for more details." >&2;}
25094    { (exit 1); exit 1; }; }
25095 fi
25096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25097 fi
25098 fi
25099 rm -f conftest.val
25100 else
25101   ac_cv_sizeof_long_long_int=0
25102 fi
25103 fi
25104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25105 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25106 cat >>confdefs.h <<_ACEOF
25107 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25108 _ACEOF
25109
25110
25111 echo "$as_me:$LINENO: checking for int *" >&5
25112 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25113 if test "${ac_cv_type_int_p+set}" = set; then
25114   echo $ECHO_N "(cached) $ECHO_C" >&6
25115 else
25116   cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h.  */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h.  */
25122 $ac_includes_default
25123 int
25124 main ()
25125 {
25126 if ((int * *) 0)
25127   return 0;
25128 if (sizeof (int *))
25129   return 0;
25130   ;
25131   return 0;
25132 }
25133 _ACEOF
25134 rm -f conftest.$ac_objext
25135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25136   (eval $ac_compile) 2>conftest.er1
25137   ac_status=$?
25138   grep -v '^ *+' conftest.er1 >conftest.err
25139   rm -f conftest.er1
25140   cat conftest.err >&5
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); } &&
25143          { ac_try='test -z "$ac_c_werror_flag"
25144                          || test ! -s conftest.err'
25145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146   (eval $ac_try) 2>&5
25147   ac_status=$?
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); }; } &&
25150          { ac_try='test -s conftest.$ac_objext'
25151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152   (eval $ac_try) 2>&5
25153   ac_status=$?
25154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155   (exit $ac_status); }; }; then
25156   ac_cv_type_int_p=yes
25157 else
25158   echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161 ac_cv_type_int_p=no
25162 fi
25163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25164 fi
25165 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25166 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25167
25168 echo "$as_me:$LINENO: checking size of int *" >&5
25169 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25170 if test "${ac_cv_sizeof_int_p+set}" = set; then
25171   echo $ECHO_N "(cached) $ECHO_C" >&6
25172 else
25173   if test "$ac_cv_type_int_p" = yes; then
25174   # The cast to unsigned long works around a bug in the HP C Compiler
25175   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25176   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25177   # This bug is HP SR number 8606223364.
25178   if test "$cross_compiling" = yes; then
25179   # Depending upon the size, compute the lo and hi bounds.
25180 cat >conftest.$ac_ext <<_ACEOF
25181 /* confdefs.h.  */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h.  */
25186 $ac_includes_default
25187 int
25188 main ()
25189 {
25190 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25191 test_array [0] = 0
25192
25193   ;
25194   return 0;
25195 }
25196 _ACEOF
25197 rm -f conftest.$ac_objext
25198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25199   (eval $ac_compile) 2>conftest.er1
25200   ac_status=$?
25201   grep -v '^ *+' conftest.er1 >conftest.err
25202   rm -f conftest.er1
25203   cat conftest.err >&5
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); } &&
25206          { ac_try='test -z "$ac_c_werror_flag"
25207                          || test ! -s conftest.err'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; } &&
25213          { ac_try='test -s conftest.$ac_objext'
25214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215   (eval $ac_try) 2>&5
25216   ac_status=$?
25217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218   (exit $ac_status); }; }; then
25219   ac_lo=0 ac_mid=0
25220   while :; do
25221     cat >conftest.$ac_ext <<_ACEOF
25222 /* confdefs.h.  */
25223 _ACEOF
25224 cat confdefs.h >>conftest.$ac_ext
25225 cat >>conftest.$ac_ext <<_ACEOF
25226 /* end confdefs.h.  */
25227 $ac_includes_default
25228 int
25229 main ()
25230 {
25231 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25232 test_array [0] = 0
25233
25234   ;
25235   return 0;
25236 }
25237 _ACEOF
25238 rm -f conftest.$ac_objext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240   (eval $ac_compile) 2>conftest.er1
25241   ac_status=$?
25242   grep -v '^ *+' conftest.er1 >conftest.err
25243   rm -f conftest.er1
25244   cat conftest.err >&5
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); } &&
25247          { ac_try='test -z "$ac_c_werror_flag"
25248                          || test ! -s conftest.err'
25249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250   (eval $ac_try) 2>&5
25251   ac_status=$?
25252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253   (exit $ac_status); }; } &&
25254          { ac_try='test -s conftest.$ac_objext'
25255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256   (eval $ac_try) 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; }; then
25260   ac_hi=$ac_mid; break
25261 else
25262   echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 ac_lo=`expr $ac_mid + 1`
25266                     if test $ac_lo -le $ac_mid; then
25267                       ac_lo= ac_hi=
25268                       break
25269                     fi
25270                     ac_mid=`expr 2 '*' $ac_mid + 1`
25271 fi
25272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25273   done
25274 else
25275   echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25277
25278 cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h.  */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h.  */
25284 $ac_includes_default
25285 int
25286 main ()
25287 {
25288 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25289 test_array [0] = 0
25290
25291   ;
25292   return 0;
25293 }
25294 _ACEOF
25295 rm -f conftest.$ac_objext
25296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25297   (eval $ac_compile) 2>conftest.er1
25298   ac_status=$?
25299   grep -v '^ *+' conftest.er1 >conftest.err
25300   rm -f conftest.er1
25301   cat conftest.err >&5
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); } &&
25304          { ac_try='test -z "$ac_c_werror_flag"
25305                          || test ! -s conftest.err'
25306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307   (eval $ac_try) 2>&5
25308   ac_status=$?
25309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310   (exit $ac_status); }; } &&
25311          { ac_try='test -s conftest.$ac_objext'
25312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25313   (eval $ac_try) 2>&5
25314   ac_status=$?
25315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316   (exit $ac_status); }; }; then
25317   ac_hi=-1 ac_mid=-1
25318   while :; do
25319     cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325 $ac_includes_default
25326 int
25327 main ()
25328 {
25329 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25330 test_array [0] = 0
25331
25332   ;
25333   return 0;
25334 }
25335 _ACEOF
25336 rm -f conftest.$ac_objext
25337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25338   (eval $ac_compile) 2>conftest.er1
25339   ac_status=$?
25340   grep -v '^ *+' conftest.er1 >conftest.err
25341   rm -f conftest.er1
25342   cat conftest.err >&5
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); } &&
25345          { ac_try='test -z "$ac_c_werror_flag"
25346                          || test ! -s conftest.err'
25347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25348   (eval $ac_try) 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; } &&
25352          { ac_try='test -s conftest.$ac_objext'
25353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354   (eval $ac_try) 2>&5
25355   ac_status=$?
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); }; }; then
25358   ac_lo=$ac_mid; break
25359 else
25360   echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363 ac_hi=`expr '(' $ac_mid ')' - 1`
25364                        if test $ac_mid -le $ac_hi; then
25365                          ac_lo= ac_hi=
25366                          break
25367                        fi
25368                        ac_mid=`expr 2 '*' $ac_mid`
25369 fi
25370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25371   done
25372 else
25373   echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25375
25376 ac_lo= ac_hi=
25377 fi
25378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25379 fi
25380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25381 # Binary search between lo and hi bounds.
25382 while test "x$ac_lo" != "x$ac_hi"; do
25383   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25384   cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h.  */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h.  */
25390 $ac_includes_default
25391 int
25392 main ()
25393 {
25394 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25395 test_array [0] = 0
25396
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 rm -f conftest.$ac_objext
25402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25403   (eval $ac_compile) 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } &&
25410          { ac_try='test -z "$ac_c_werror_flag"
25411                          || test ! -s conftest.err'
25412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25413   (eval $ac_try) 2>&5
25414   ac_status=$?
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); }; } &&
25417          { ac_try='test -s conftest.$ac_objext'
25418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25419   (eval $ac_try) 2>&5
25420   ac_status=$?
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); }; }; then
25423   ac_hi=$ac_mid
25424 else
25425   echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25427
25428 ac_lo=`expr '(' $ac_mid ')' + 1`
25429 fi
25430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25431 done
25432 case $ac_lo in
25433 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25434 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25435 See \`config.log' for more details." >&5
25436 echo "$as_me: error: cannot compute sizeof (int *), 77
25437 See \`config.log' for more details." >&2;}
25438    { (exit 1); exit 1; }; } ;;
25439 esac
25440 else
25441   if test "$cross_compiling" = yes; then
25442   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25443 See \`config.log' for more details." >&5
25444 echo "$as_me: error: cannot run test program while cross compiling
25445 See \`config.log' for more details." >&2;}
25446    { (exit 1); exit 1; }; }
25447 else
25448   cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454 $ac_includes_default
25455 long longval () { return (long) (sizeof (int *)); }
25456 unsigned long ulongval () { return (long) (sizeof (int *)); }
25457 #include <stdio.h>
25458 #include <stdlib.h>
25459 int
25460 main ()
25461 {
25462
25463   FILE *f = fopen ("conftest.val", "w");
25464   if (! f)
25465     exit (1);
25466   if (((long) (sizeof (int *))) < 0)
25467     {
25468       long i = longval ();
25469       if (i != ((long) (sizeof (int *))))
25470         exit (1);
25471       fprintf (f, "%ld\n", i);
25472     }
25473   else
25474     {
25475       unsigned long i = ulongval ();
25476       if (i != ((long) (sizeof (int *))))
25477         exit (1);
25478       fprintf (f, "%lu\n", i);
25479     }
25480   exit (ferror (f) || fclose (f) != 0);
25481
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 rm -f conftest$ac_exeext
25487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25488   (eval $ac_link) 2>&5
25489   ac_status=$?
25490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493   (eval $ac_try) 2>&5
25494   ac_status=$?
25495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496   (exit $ac_status); }; }; then
25497   ac_cv_sizeof_int_p=`cat conftest.val`
25498 else
25499   echo "$as_me: program exited with status $ac_status" >&5
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503 ( exit $ac_status )
25504 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25505 See \`config.log' for more details." >&5
25506 echo "$as_me: error: cannot compute sizeof (int *), 77
25507 See \`config.log' for more details." >&2;}
25508    { (exit 1); exit 1; }; }
25509 fi
25510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25511 fi
25512 fi
25513 rm -f conftest.val
25514 else
25515   ac_cv_sizeof_int_p=0
25516 fi
25517 fi
25518 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25519 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25520 cat >>confdefs.h <<_ACEOF
25521 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25522 _ACEOF
25523
25524
25525
25526 # Check for sys/types.h types
25527 echo "$as_me:$LINENO: checking for u_int type" >&5
25528 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25529 if test "${ac_cv_have_u_int+set}" = set; then
25530   echo $ECHO_N "(cached) $ECHO_C" >&6
25531 else
25532
25533     cat >conftest.$ac_ext <<_ACEOF
25534 /* confdefs.h.  */
25535 _ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h.  */
25539  #include <sys/types.h>
25540 int
25541 main ()
25542 {
25543  u_int a; a = 1;
25544   ;
25545   return 0;
25546 }
25547 _ACEOF
25548 rm -f conftest.$ac_objext
25549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25550   (eval $ac_compile) 2>conftest.er1
25551   ac_status=$?
25552   grep -v '^ *+' conftest.er1 >conftest.err
25553   rm -f conftest.er1
25554   cat conftest.err >&5
25555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556   (exit $ac_status); } &&
25557          { ac_try='test -z "$ac_c_werror_flag"
25558                          || test ! -s conftest.err'
25559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560   (eval $ac_try) 2>&5
25561   ac_status=$?
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); }; } &&
25564          { ac_try='test -s conftest.$ac_objext'
25565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566   (eval $ac_try) 2>&5
25567   ac_status=$?
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); }; }; then
25570    ac_cv_have_u_int="yes"
25571 else
25572   echo "$as_me: failed program was:" >&5
25573 sed 's/^/| /' conftest.$ac_ext >&5
25574
25575  ac_cv_have_u_int="no"
25576
25577 fi
25578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25579
25580 fi
25581 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25582 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25583 if test "x$ac_cv_have_u_int" = "xyes" ; then
25584    cat >>confdefs.h <<\_ACEOF
25585 #define HAVE_U_INT 1
25586 _ACEOF
25587
25588    have_u_int=1
25589 fi
25590
25591 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25592 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25593 if test "${ac_cv_have_intmax_t+set}" = set; then
25594   echo $ECHO_N "(cached) $ECHO_C" >&6
25595 else
25596
25597    cat >conftest.$ac_ext <<_ACEOF
25598 /* confdefs.h.  */
25599 _ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h.  */
25603  #include <sys/types.h>
25604 int
25605 main ()
25606 {
25607  intmax_t a; a = 1;
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest.$ac_objext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25614   (eval $ac_compile) 2>conftest.er1
25615   ac_status=$?
25616   grep -v '^ *+' conftest.er1 >conftest.err
25617   rm -f conftest.er1
25618   cat conftest.err >&5
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); } &&
25621          { ac_try='test -z "$ac_c_werror_flag"
25622                          || test ! -s conftest.err'
25623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624   (eval $ac_try) 2>&5
25625   ac_status=$?
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); }; } &&
25628          { ac_try='test -s conftest.$ac_objext'
25629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630   (eval $ac_try) 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; }; then
25634    ac_cv_have_intmax_t="yes"
25635 else
25636   echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25638
25639
25640          cat >conftest.$ac_ext <<_ACEOF
25641 /* confdefs.h.  */
25642 _ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h.  */
25646  #include <stdint.h>
25647 int
25648 main ()
25649 {
25650  intmax_t a; a = 1;
25651   ;
25652   return 0;
25653 }
25654 _ACEOF
25655 rm -f conftest.$ac_objext
25656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25657   (eval $ac_compile) 2>conftest.er1
25658   ac_status=$?
25659   grep -v '^ *+' conftest.er1 >conftest.err
25660   rm -f conftest.er1
25661   cat conftest.err >&5
25662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663   (exit $ac_status); } &&
25664          { ac_try='test -z "$ac_c_werror_flag"
25665                          || test ! -s conftest.err'
25666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667   (eval $ac_try) 2>&5
25668   ac_status=$?
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); }; } &&
25671          { ac_try='test -s conftest.$ac_objext'
25672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673   (eval $ac_try) 2>&5
25674   ac_status=$?
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); }; }; then
25677    ac_cv_have_intmax_t="yes"
25678 else
25679   echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682  ac_cv_have_intmax_t="no"
25683
25684 fi
25685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25686
25687
25688 fi
25689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25690
25691
25692 fi
25693 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25694 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25695 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25696    cat >>confdefs.h <<\_ACEOF
25697 #define HAVE_INTMAX_T 1
25698 _ACEOF
25699
25700    have_intmax_t=1
25701 fi
25702
25703
25704 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25705 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25706 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25707   echo $ECHO_N "(cached) $ECHO_C" >&6
25708 else
25709
25710    cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h.  */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h.  */
25716  #include <sys/types.h>
25717 int
25718 main ()
25719 {
25720  u_intmax_t a; a = 1;
25721   ;
25722   return 0;
25723 }
25724 _ACEOF
25725 rm -f conftest.$ac_objext
25726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727   (eval $ac_compile) 2>conftest.er1
25728   ac_status=$?
25729   grep -v '^ *+' conftest.er1 >conftest.err
25730   rm -f conftest.er1
25731   cat conftest.err >&5
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); } &&
25734          { ac_try='test -z "$ac_c_werror_flag"
25735                          || test ! -s conftest.err'
25736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737   (eval $ac_try) 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); }; } &&
25741          { ac_try='test -s conftest.$ac_objext'
25742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743   (eval $ac_try) 2>&5
25744   ac_status=$?
25745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746   (exit $ac_status); }; }; then
25747    ac_cv_have_u_intmax_t="yes"
25748 else
25749   echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25751
25752
25753          cat >conftest.$ac_ext <<_ACEOF
25754 /* confdefs.h.  */
25755 _ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h.  */
25759  #include <stdint.h>
25760 int
25761 main ()
25762 {
25763  u_intmax_t a; a = 1;
25764   ;
25765   return 0;
25766 }
25767 _ACEOF
25768 rm -f conftest.$ac_objext
25769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25770   (eval $ac_compile) 2>conftest.er1
25771   ac_status=$?
25772   grep -v '^ *+' conftest.er1 >conftest.err
25773   rm -f conftest.er1
25774   cat conftest.err >&5
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); } &&
25777          { ac_try='test -z "$ac_c_werror_flag"
25778                          || test ! -s conftest.err'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; } &&
25784          { ac_try='test -s conftest.$ac_objext'
25785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25786   (eval $ac_try) 2>&5
25787   ac_status=$?
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); }; }; then
25790    ac_cv_have_u_intmax_t="yes"
25791 else
25792   echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25794
25795  ac_cv_have_u_intmax_t="no"
25796
25797 fi
25798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25799
25800
25801 fi
25802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25803
25804 fi
25805 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25806 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25807 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25808    cat >>confdefs.h <<\_ACEOF
25809 #define HAVE_U_INTMAX_T 1
25810 _ACEOF
25811
25812    have_u_intmax_t=1
25813 fi
25814
25815
25816 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25817 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25818 if test "${ac_cv_have_intxx_t+set}" = set; then
25819   echo $ECHO_N "(cached) $ECHO_C" >&6
25820 else
25821
25822    cat >conftest.$ac_ext <<_ACEOF
25823 /* confdefs.h.  */
25824 _ACEOF
25825 cat confdefs.h >>conftest.$ac_ext
25826 cat >>conftest.$ac_ext <<_ACEOF
25827 /* end confdefs.h.  */
25828  #include <sys/types.h>
25829 int
25830 main ()
25831 {
25832  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 rm -f conftest.$ac_objext
25838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25839   (eval $ac_compile) 2>conftest.er1
25840   ac_status=$?
25841   grep -v '^ *+' conftest.er1 >conftest.err
25842   rm -f conftest.er1
25843   cat conftest.err >&5
25844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845   (exit $ac_status); } &&
25846          { ac_try='test -z "$ac_c_werror_flag"
25847                          || test ! -s conftest.err'
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); }; } &&
25853          { ac_try='test -s conftest.$ac_objext'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; }; then
25859    ac_cv_have_intxx_t="yes"
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864  ac_cv_have_intxx_t="no"
25865
25866 fi
25867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25868
25869 fi
25870 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25871 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25872 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25873    cat >>confdefs.h <<\_ACEOF
25874 #define HAVE_INTXX_T 1
25875 _ACEOF
25876
25877    have_intxx_t=1
25878 fi
25879
25880 echo "$as_me:$LINENO: checking for int64_t type" >&5
25881 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25882 if test "${ac_cv_have_int64_t+set}" = set; then
25883   echo $ECHO_N "(cached) $ECHO_C" >&6
25884 else
25885
25886    cat >conftest.$ac_ext <<_ACEOF
25887 /* confdefs.h.  */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h.  */
25892  #include <sys/types.h>
25893 int
25894 main ()
25895 {
25896  int64_t a; a = 1;
25897   ;
25898   return 0;
25899 }
25900 _ACEOF
25901 rm -f conftest.$ac_objext
25902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25903   (eval $ac_compile) 2>conftest.er1
25904   ac_status=$?
25905   grep -v '^ *+' conftest.er1 >conftest.err
25906   rm -f conftest.er1
25907   cat conftest.err >&5
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); } &&
25910          { ac_try='test -z "$ac_c_werror_flag"
25911                          || test ! -s conftest.err'
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); }; } &&
25917          { ac_try='test -s conftest.$ac_objext'
25918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919   (eval $ac_try) 2>&5
25920   ac_status=$?
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); }; }; then
25923    ac_cv_have_int64_t="yes"
25924 else
25925   echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25927
25928  ac_cv_have_int64_t="no"
25929
25930 fi
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932
25933 fi
25934 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25935 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25936 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25937    cat >>confdefs.h <<\_ACEOF
25938 #define HAVE_INT64_T 1
25939 _ACEOF
25940
25941    have_int64_t=1
25942 fi
25943
25944 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25945 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25946 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25947   echo $ECHO_N "(cached) $ECHO_C" >&6
25948 else
25949
25950    cat >conftest.$ac_ext <<_ACEOF
25951 /* confdefs.h.  */
25952 _ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h.  */
25956  #include <sys/types.h>
25957 int
25958 main ()
25959 {
25960  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext
25966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25967   (eval $ac_compile) 2>conftest.er1
25968   ac_status=$?
25969   grep -v '^ *+' conftest.er1 >conftest.err
25970   rm -f conftest.er1
25971   cat conftest.err >&5
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); } &&
25974          { ac_try='test -z "$ac_c_werror_flag"
25975                          || test ! -s conftest.err'
25976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977   (eval $ac_try) 2>&5
25978   ac_status=$?
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); }; } &&
25981          { ac_try='test -s conftest.$ac_objext'
25982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); }; }; then
25987    ac_cv_have_u_intxx_t="yes"
25988 else
25989   echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25991
25992  ac_cv_have_u_intxx_t="no"
25993
25994 fi
25995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25996
25997 fi
25998 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25999 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26000 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26001    cat >>confdefs.h <<\_ACEOF
26002 #define HAVE_U_INTXX_T 1
26003 _ACEOF
26004
26005    have_u_intxx_t=1
26006 fi
26007
26008 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26009 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26010 if test "${ac_cv_have_u_int64_t+set}" = set; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013
26014    cat >conftest.$ac_ext <<_ACEOF
26015 /* confdefs.h.  */
26016 _ACEOF
26017 cat confdefs.h >>conftest.$ac_ext
26018 cat >>conftest.$ac_ext <<_ACEOF
26019 /* end confdefs.h.  */
26020  #include <sys/types.h>
26021 int
26022 main ()
26023 {
26024  u_int64_t a; a = 1;
26025   ;
26026   return 0;
26027 }
26028 _ACEOF
26029 rm -f conftest.$ac_objext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26031   (eval $ac_compile) 2>conftest.er1
26032   ac_status=$?
26033   grep -v '^ *+' conftest.er1 >conftest.err
26034   rm -f conftest.er1
26035   cat conftest.err >&5
26036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037   (exit $ac_status); } &&
26038          { ac_try='test -z "$ac_c_werror_flag"
26039                          || test ! -s conftest.err'
26040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041   (eval $ac_try) 2>&5
26042   ac_status=$?
26043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); }; } &&
26045          { ac_try='test -s conftest.$ac_objext'
26046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047   (eval $ac_try) 2>&5
26048   ac_status=$?
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); }; }; then
26051    ac_cv_have_u_int64_t="yes"
26052 else
26053   echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26055
26056  ac_cv_have_u_int64_t="no"
26057
26058 fi
26059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26060
26061 fi
26062 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26063 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26064 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26065    cat >>confdefs.h <<\_ACEOF
26066 #define HAVE_U_INT64_T 1
26067 _ACEOF
26068
26069    have_u_int64_t=1
26070 fi
26071
26072 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26073            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26074 then
26075    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26076 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26077    cat >conftest.$ac_ext <<_ACEOF
26078 /* confdefs.h.  */
26079 _ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h.  */
26083  #include <sys/bitypes.h>
26084 int
26085 main ()
26086 {
26087  int8_t a; int16_t b; int32_t c;
26088         u_int8_t e; u_int16_t f; u_int32_t g;
26089         a = b = c = e = f = g = 1;
26090   ;
26091   return 0;
26092 }
26093 _ACEOF
26094 rm -f conftest.$ac_objext
26095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26096   (eval $ac_compile) 2>conftest.er1
26097   ac_status=$?
26098   grep -v '^ *+' conftest.er1 >conftest.err
26099   rm -f conftest.er1
26100   cat conftest.err >&5
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } &&
26103          { ac_try='test -z "$ac_c_werror_flag"
26104                          || test ! -s conftest.err'
26105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106   (eval $ac_try) 2>&5
26107   ac_status=$?
26108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109   (exit $ac_status); }; } &&
26110          { ac_try='test -s conftest.$ac_objext'
26111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112   (eval $ac_try) 2>&5
26113   ac_status=$?
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); }; }; then
26116    cat >>confdefs.h <<\_ACEOF
26117 #define HAVE_U_INTXX_T 1
26118 _ACEOF
26119
26120         cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_INTXX_T 1
26122 _ACEOF
26123
26124         cat >>confdefs.h <<\_ACEOF
26125 #define HAVE_SYS_BITYPES_H 1
26126 _ACEOF
26127
26128         echo "$as_me:$LINENO: result: yes" >&5
26129 echo "${ECHO_T}yes" >&6
26130 else
26131   echo "$as_me: failed program was:" >&5
26132 sed 's/^/| /' conftest.$ac_ext >&5
26133
26134  echo "$as_me:$LINENO: result: no" >&5
26135 echo "${ECHO_T}no" >&6
26136
26137 fi
26138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26139 fi
26140
26141 if test -z "$have_u_intxx_t" ; then
26142    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26143 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26144 if test "${ac_cv_have_uintxx_t+set}" = set; then
26145   echo $ECHO_N "(cached) $ECHO_C" >&6
26146 else
26147
26148       cat >conftest.$ac_ext <<_ACEOF
26149 /* confdefs.h.  */
26150 _ACEOF
26151 cat confdefs.h >>conftest.$ac_ext
26152 cat >>conftest.$ac_ext <<_ACEOF
26153 /* end confdefs.h.  */
26154  #include <sys/types.h>
26155 int
26156 main ()
26157 {
26158  uint8_t a; uint16_t b;
26159            uint32_t c; a = b = c = 1;
26160   ;
26161   return 0;
26162 }
26163 _ACEOF
26164 rm -f conftest.$ac_objext
26165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26166   (eval $ac_compile) 2>conftest.er1
26167   ac_status=$?
26168   grep -v '^ *+' conftest.er1 >conftest.err
26169   rm -f conftest.er1
26170   cat conftest.err >&5
26171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172   (exit $ac_status); } &&
26173          { ac_try='test -z "$ac_c_werror_flag"
26174                          || test ! -s conftest.err'
26175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176   (eval $ac_try) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; } &&
26180          { ac_try='test -s conftest.$ac_objext'
26181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26182   (eval $ac_try) 2>&5
26183   ac_status=$?
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); }; }; then
26186    ac_cv_have_uintxx_t="yes"
26187 else
26188   echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191  ac_cv_have_uintxx_t="no"
26192
26193 fi
26194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26195
26196 fi
26197 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26198 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26199    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26200       cat >>confdefs.h <<\_ACEOF
26201 #define HAVE_UINTXX_T 1
26202 _ACEOF
26203
26204    fi
26205 fi
26206
26207 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26208           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26209 then
26210    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26211 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26212    cat >conftest.$ac_ext <<_ACEOF
26213 /* confdefs.h.  */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h.  */
26218  #include <sys/bitypes.h>
26219 int
26220 main ()
26221 {
26222  int64_t a; u_int64_t b;
26223        a = b = 1;
26224   ;
26225   return 0;
26226 }
26227 _ACEOF
26228 rm -f conftest.$ac_objext
26229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26230   (eval $ac_compile) 2>conftest.er1
26231   ac_status=$?
26232   grep -v '^ *+' conftest.er1 >conftest.err
26233   rm -f conftest.er1
26234   cat conftest.err >&5
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); } &&
26237          { ac_try='test -z "$ac_c_werror_flag"
26238                          || test ! -s conftest.err'
26239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240   (eval $ac_try) 2>&5
26241   ac_status=$?
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); }; } &&
26244          { ac_try='test -s conftest.$ac_objext'
26245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246   (eval $ac_try) 2>&5
26247   ac_status=$?
26248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); }; }; then
26250    cat >>confdefs.h <<\_ACEOF
26251 #define HAVE_U_INT64_T 1
26252 _ACEOF
26253
26254        cat >>confdefs.h <<\_ACEOF
26255 #define HAVE_INT64_T 1
26256 _ACEOF
26257
26258        echo "$as_me:$LINENO: result: yes" >&5
26259 echo "${ECHO_T}yes" >&6
26260 else
26261   echo "$as_me: failed program was:" >&5
26262 sed 's/^/| /' conftest.$ac_ext >&5
26263
26264  echo "$as_me:$LINENO: result: no" >&5
26265 echo "${ECHO_T}no" >&6
26266
26267 fi
26268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26269 fi
26270
26271 if (test -z "$have_uintxx_t" && \
26272           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26273 then
26274    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26275 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26276    cat >conftest.$ac_ext <<_ACEOF
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282  #include <sys/bitypes.h>
26283 int
26284 main ()
26285 {
26286  uint8_t a; uint16_t b;
26287           uint32_t c; a = b = c = 1;
26288   ;
26289   return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26294   (eval $ac_compile) 2>conftest.er1
26295   ac_status=$?
26296   grep -v '^ *+' conftest.er1 >conftest.err
26297   rm -f conftest.er1
26298   cat conftest.err >&5
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); } &&
26301          { ac_try='test -z "$ac_c_werror_flag"
26302                          || test ! -s conftest.err'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; } &&
26308          { ac_try='test -s conftest.$ac_objext'
26309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26310   (eval $ac_try) 2>&5
26311   ac_status=$?
26312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313   (exit $ac_status); }; }; then
26314    cat >>confdefs.h <<\_ACEOF
26315 #define HAVE_UINTXX_T 1
26316 _ACEOF
26317
26318        echo "$as_me:$LINENO: result: yes" >&5
26319 echo "${ECHO_T}yes" >&6
26320 else
26321   echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26323
26324  echo "$as_me:$LINENO: result: no" >&5
26325 echo "${ECHO_T}no" >&6
26326
26327 fi
26328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26329
26330 fi
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348 for ac_func in \
26349         fork \
26350         getcwd \
26351         gethostname \
26352         getpid \
26353         gettimeofday \
26354         setpgid \
26355         setpgrp \
26356         setsid \
26357         signal \
26358         strerror \
26359         strncmp \
26360         strncpy \
26361         vfprintf \
26362
26363 do
26364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26365 echo "$as_me:$LINENO: checking for $ac_func" >&5
26366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26367 if eval "test \"\${$as_ac_var+set}\" = set"; then
26368   echo $ECHO_N "(cached) $ECHO_C" >&6
26369 else
26370   cat >conftest.$ac_ext <<_ACEOF
26371 /* confdefs.h.  */
26372 _ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h.  */
26376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26378 #define $ac_func innocuous_$ac_func
26379
26380 /* System header to define __stub macros and hopefully few prototypes,
26381     which can conflict with char $ac_func (); below.
26382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26383     <limits.h> exists even on freestanding compilers.  */
26384
26385 #ifdef __STDC__
26386 # include <limits.h>
26387 #else
26388 # include <assert.h>
26389 #endif
26390
26391 #undef $ac_func
26392
26393 /* Override any gcc2 internal prototype to avoid an error.  */
26394 #ifdef __cplusplus
26395 extern "C"
26396 {
26397 #endif
26398 /* We use char because int might match the return type of a gcc2
26399    builtin and then its argument prototype would still apply.  */
26400 char $ac_func ();
26401 /* The GNU C library defines this for functions which it implements
26402     to always fail with ENOSYS.  Some functions are actually named
26403     something starting with __ and the normal name is an alias.  */
26404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26405 choke me
26406 #else
26407 char (*f) () = $ac_func;
26408 #endif
26409 #ifdef __cplusplus
26410 }
26411 #endif
26412
26413 int
26414 main ()
26415 {
26416 return f != $ac_func;
26417   ;
26418   return 0;
26419 }
26420 _ACEOF
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26423   (eval $ac_link) 2>conftest.er1
26424   ac_status=$?
26425   grep -v '^ *+' conftest.er1 >conftest.err
26426   rm -f conftest.er1
26427   cat conftest.err >&5
26428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429   (exit $ac_status); } &&
26430          { ac_try='test -z "$ac_c_werror_flag"
26431                          || test ! -s conftest.err'
26432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433   (eval $ac_try) 2>&5
26434   ac_status=$?
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); }; } &&
26437          { ac_try='test -s conftest$ac_exeext'
26438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439   (eval $ac_try) 2>&5
26440   ac_status=$?
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); }; }; then
26443   eval "$as_ac_var=yes"
26444 else
26445   echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26447
26448 eval "$as_ac_var=no"
26449 fi
26450 rm -f conftest.err conftest.$ac_objext \
26451       conftest$ac_exeext conftest.$ac_ext
26452 fi
26453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26455 if test `eval echo '${'$as_ac_var'}'` = yes; then
26456   cat >>confdefs.h <<_ACEOF
26457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26458 _ACEOF
26459
26460 else
26461   echo 'configure: cannot find needed function.'; exit 1
26462
26463 fi
26464 done
26465
26466
26467
26468 for ac_func in fchdir
26469 do
26470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26471 echo "$as_me:$LINENO: checking for $ac_func" >&5
26472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26473 if eval "test \"\${$as_ac_var+set}\" = set"; then
26474   echo $ECHO_N "(cached) $ECHO_C" >&6
26475 else
26476   cat >conftest.$ac_ext <<_ACEOF
26477 /* confdefs.h.  */
26478 _ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h.  */
26482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26484 #define $ac_func innocuous_$ac_func
26485
26486 /* System header to define __stub macros and hopefully few prototypes,
26487     which can conflict with char $ac_func (); below.
26488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26489     <limits.h> exists even on freestanding compilers.  */
26490
26491 #ifdef __STDC__
26492 # include <limits.h>
26493 #else
26494 # include <assert.h>
26495 #endif
26496
26497 #undef $ac_func
26498
26499 /* Override any gcc2 internal prototype to avoid an error.  */
26500 #ifdef __cplusplus
26501 extern "C"
26502 {
26503 #endif
26504 /* We use char because int might match the return type of a gcc2
26505    builtin and then its argument prototype would still apply.  */
26506 char $ac_func ();
26507 /* The GNU C library defines this for functions which it implements
26508     to always fail with ENOSYS.  Some functions are actually named
26509     something starting with __ and the normal name is an alias.  */
26510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26511 choke me
26512 #else
26513 char (*f) () = $ac_func;
26514 #endif
26515 #ifdef __cplusplus
26516 }
26517 #endif
26518
26519 int
26520 main ()
26521 {
26522 return f != $ac_func;
26523   ;
26524   return 0;
26525 }
26526 _ACEOF
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26529   (eval $ac_link) 2>conftest.er1
26530   ac_status=$?
26531   grep -v '^ *+' conftest.er1 >conftest.err
26532   rm -f conftest.er1
26533   cat conftest.err >&5
26534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535   (exit $ac_status); } &&
26536          { ac_try='test -z "$ac_c_werror_flag"
26537                          || test ! -s conftest.err'
26538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539   (eval $ac_try) 2>&5
26540   ac_status=$?
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); }; } &&
26543          { ac_try='test -s conftest$ac_exeext'
26544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26545   (eval $ac_try) 2>&5
26546   ac_status=$?
26547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548   (exit $ac_status); }; }; then
26549   eval "$as_ac_var=yes"
26550 else
26551   echo "$as_me: failed program was:" >&5
26552 sed 's/^/| /' conftest.$ac_ext >&5
26553
26554 eval "$as_ac_var=no"
26555 fi
26556 rm -f conftest.err conftest.$ac_objext \
26557       conftest$ac_exeext conftest.$ac_ext
26558 fi
26559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26561 if test `eval echo '${'$as_ac_var'}'` = yes; then
26562   cat >>confdefs.h <<_ACEOF
26563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26564 _ACEOF
26565  cat >>confdefs.h <<\_ACEOF
26566 #define HAVE_FCHDIR 1
26567 _ACEOF
26568
26569 fi
26570 done
26571
26572
26573 for ac_func in strtoll
26574 do
26575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26576 echo "$as_me:$LINENO: checking for $ac_func" >&5
26577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26578 if eval "test \"\${$as_ac_var+set}\" = set"; then
26579   echo $ECHO_N "(cached) $ECHO_C" >&6
26580 else
26581   cat >conftest.$ac_ext <<_ACEOF
26582 /* confdefs.h.  */
26583 _ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h.  */
26587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26589 #define $ac_func innocuous_$ac_func
26590
26591 /* System header to define __stub macros and hopefully few prototypes,
26592     which can conflict with char $ac_func (); below.
26593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26594     <limits.h> exists even on freestanding compilers.  */
26595
26596 #ifdef __STDC__
26597 # include <limits.h>
26598 #else
26599 # include <assert.h>
26600 #endif
26601
26602 #undef $ac_func
26603
26604 /* Override any gcc2 internal prototype to avoid an error.  */
26605 #ifdef __cplusplus
26606 extern "C"
26607 {
26608 #endif
26609 /* We use char because int might match the return type of a gcc2
26610    builtin and then its argument prototype would still apply.  */
26611 char $ac_func ();
26612 /* The GNU C library defines this for functions which it implements
26613     to always fail with ENOSYS.  Some functions are actually named
26614     something starting with __ and the normal name is an alias.  */
26615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26616 choke me
26617 #else
26618 char (*f) () = $ac_func;
26619 #endif
26620 #ifdef __cplusplus
26621 }
26622 #endif
26623
26624 int
26625 main ()
26626 {
26627 return f != $ac_func;
26628   ;
26629   return 0;
26630 }
26631 _ACEOF
26632 rm -f conftest.$ac_objext conftest$ac_exeext
26633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26634   (eval $ac_link) 2>conftest.er1
26635   ac_status=$?
26636   grep -v '^ *+' conftest.er1 >conftest.err
26637   rm -f conftest.er1
26638   cat conftest.err >&5
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); } &&
26641          { ac_try='test -z "$ac_c_werror_flag"
26642                          || test ! -s conftest.err'
26643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644   (eval $ac_try) 2>&5
26645   ac_status=$?
26646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); }; } &&
26648          { ac_try='test -s conftest$ac_exeext'
26649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650   (eval $ac_try) 2>&5
26651   ac_status=$?
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); }; }; then
26654   eval "$as_ac_var=yes"
26655 else
26656   echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26658
26659 eval "$as_ac_var=no"
26660 fi
26661 rm -f conftest.err conftest.$ac_objext \
26662       conftest$ac_exeext conftest.$ac_ext
26663 fi
26664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26666 if test `eval echo '${'$as_ac_var'}'` = yes; then
26667   cat >>confdefs.h <<_ACEOF
26668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26669 _ACEOF
26670  cat >>confdefs.h <<\_ACEOF
26671 #define HAVE_STRTOLL 1
26672 _ACEOF
26673
26674 fi
26675 done
26676
26677
26678 for ac_func in posix_fadvise
26679 do
26680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26681 echo "$as_me:$LINENO: checking for $ac_func" >&5
26682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26683 if eval "test \"\${$as_ac_var+set}\" = set"; then
26684   echo $ECHO_N "(cached) $ECHO_C" >&6
26685 else
26686   cat >conftest.$ac_ext <<_ACEOF
26687 /* confdefs.h.  */
26688 _ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h.  */
26692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26694 #define $ac_func innocuous_$ac_func
26695
26696 /* System header to define __stub macros and hopefully few prototypes,
26697     which can conflict with char $ac_func (); below.
26698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26699     <limits.h> exists even on freestanding compilers.  */
26700
26701 #ifdef __STDC__
26702 # include <limits.h>
26703 #else
26704 # include <assert.h>
26705 #endif
26706
26707 #undef $ac_func
26708
26709 /* Override any gcc2 internal prototype to avoid an error.  */
26710 #ifdef __cplusplus
26711 extern "C"
26712 {
26713 #endif
26714 /* We use char because int might match the return type of a gcc2
26715    builtin and then its argument prototype would still apply.  */
26716 char $ac_func ();
26717 /* The GNU C library defines this for functions which it implements
26718     to always fail with ENOSYS.  Some functions are actually named
26719     something starting with __ and the normal name is an alias.  */
26720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26721 choke me
26722 #else
26723 char (*f) () = $ac_func;
26724 #endif
26725 #ifdef __cplusplus
26726 }
26727 #endif
26728
26729 int
26730 main ()
26731 {
26732 return f != $ac_func;
26733   ;
26734   return 0;
26735 }
26736 _ACEOF
26737 rm -f conftest.$ac_objext conftest$ac_exeext
26738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26739   (eval $ac_link) 2>conftest.er1
26740   ac_status=$?
26741   grep -v '^ *+' conftest.er1 >conftest.err
26742   rm -f conftest.er1
26743   cat conftest.err >&5
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); } &&
26746          { ac_try='test -z "$ac_c_werror_flag"
26747                          || test ! -s conftest.err'
26748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749   (eval $ac_try) 2>&5
26750   ac_status=$?
26751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); }; } &&
26753          { ac_try='test -s conftest$ac_exeext'
26754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755   (eval $ac_try) 2>&5
26756   ac_status=$?
26757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758   (exit $ac_status); }; }; then
26759   eval "$as_ac_var=yes"
26760 else
26761   echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26763
26764 eval "$as_ac_var=no"
26765 fi
26766 rm -f conftest.err conftest.$ac_objext \
26767       conftest$ac_exeext conftest.$ac_ext
26768 fi
26769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26771 if test `eval echo '${'$as_ac_var'}'` = yes; then
26772   cat >>confdefs.h <<_ACEOF
26773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26774 _ACEOF
26775
26776 fi
26777 done
26778
26779
26780 for ac_func in fdatasync
26781 do
26782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26783 echo "$as_me:$LINENO: checking for $ac_func" >&5
26784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26785 if eval "test \"\${$as_ac_var+set}\" = set"; then
26786   echo $ECHO_N "(cached) $ECHO_C" >&6
26787 else
26788   cat >conftest.$ac_ext <<_ACEOF
26789 /* confdefs.h.  */
26790 _ACEOF
26791 cat confdefs.h >>conftest.$ac_ext
26792 cat >>conftest.$ac_ext <<_ACEOF
26793 /* end confdefs.h.  */
26794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26796 #define $ac_func innocuous_$ac_func
26797
26798 /* System header to define __stub macros and hopefully few prototypes,
26799     which can conflict with char $ac_func (); below.
26800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26801     <limits.h> exists even on freestanding compilers.  */
26802
26803 #ifdef __STDC__
26804 # include <limits.h>
26805 #else
26806 # include <assert.h>
26807 #endif
26808
26809 #undef $ac_func
26810
26811 /* Override any gcc2 internal prototype to avoid an error.  */
26812 #ifdef __cplusplus
26813 extern "C"
26814 {
26815 #endif
26816 /* We use char because int might match the return type of a gcc2
26817    builtin and then its argument prototype would still apply.  */
26818 char $ac_func ();
26819 /* The GNU C library defines this for functions which it implements
26820     to always fail with ENOSYS.  Some functions are actually named
26821     something starting with __ and the normal name is an alias.  */
26822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26823 choke me
26824 #else
26825 char (*f) () = $ac_func;
26826 #endif
26827 #ifdef __cplusplus
26828 }
26829 #endif
26830
26831 int
26832 main ()
26833 {
26834 return f != $ac_func;
26835   ;
26836   return 0;
26837 }
26838 _ACEOF
26839 rm -f conftest.$ac_objext conftest$ac_exeext
26840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26841   (eval $ac_link) 2>conftest.er1
26842   ac_status=$?
26843   grep -v '^ *+' conftest.er1 >conftest.err
26844   rm -f conftest.er1
26845   cat conftest.err >&5
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); } &&
26848          { ac_try='test -z "$ac_c_werror_flag"
26849                          || test ! -s conftest.err'
26850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851   (eval $ac_try) 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; } &&
26855          { ac_try='test -s conftest$ac_exeext'
26856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857   (eval $ac_try) 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); }; }; then
26861   eval "$as_ac_var=yes"
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866 eval "$as_ac_var=no"
26867 fi
26868 rm -f conftest.err conftest.$ac_objext \
26869       conftest$ac_exeext conftest.$ac_ext
26870 fi
26871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26873 if test `eval echo '${'$as_ac_var'}'` = yes; then
26874   cat >>confdefs.h <<_ACEOF
26875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26876 _ACEOF
26877
26878 fi
26879 done
26880
26881
26882
26883 for ac_func in chflags
26884 do
26885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26886 echo "$as_me:$LINENO: checking for $ac_func" >&5
26887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_var+set}\" = set"; then
26889   echo $ECHO_N "(cached) $ECHO_C" >&6
26890 else
26891   cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26899 #define $ac_func innocuous_$ac_func
26900
26901 /* System header to define __stub macros and hopefully few prototypes,
26902     which can conflict with char $ac_func (); below.
26903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26904     <limits.h> exists even on freestanding compilers.  */
26905
26906 #ifdef __STDC__
26907 # include <limits.h>
26908 #else
26909 # include <assert.h>
26910 #endif
26911
26912 #undef $ac_func
26913
26914 /* Override any gcc2 internal prototype to avoid an error.  */
26915 #ifdef __cplusplus
26916 extern "C"
26917 {
26918 #endif
26919 /* We use char because int might match the return type of a gcc2
26920    builtin and then its argument prototype would still apply.  */
26921 char $ac_func ();
26922 /* The GNU C library defines this for functions which it implements
26923     to always fail with ENOSYS.  Some functions are actually named
26924     something starting with __ and the normal name is an alias.  */
26925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26926 choke me
26927 #else
26928 char (*f) () = $ac_func;
26929 #endif
26930 #ifdef __cplusplus
26931 }
26932 #endif
26933
26934 int
26935 main ()
26936 {
26937 return f != $ac_func;
26938   ;
26939   return 0;
26940 }
26941 _ACEOF
26942 rm -f conftest.$ac_objext conftest$ac_exeext
26943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26944   (eval $ac_link) 2>conftest.er1
26945   ac_status=$?
26946   grep -v '^ *+' conftest.er1 >conftest.err
26947   rm -f conftest.er1
26948   cat conftest.err >&5
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); } &&
26951          { ac_try='test -z "$ac_c_werror_flag"
26952                          || test ! -s conftest.err'
26953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954   (eval $ac_try) 2>&5
26955   ac_status=$?
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); }; } &&
26958          { ac_try='test -s conftest$ac_exeext'
26959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960   (eval $ac_try) 2>&5
26961   ac_status=$?
26962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); }; }; then
26964   eval "$as_ac_var=yes"
26965 else
26966   echo "$as_me: failed program was:" >&5
26967 sed 's/^/| /' conftest.$ac_ext >&5
26968
26969 eval "$as_ac_var=no"
26970 fi
26971 rm -f conftest.err conftest.$ac_objext \
26972       conftest$ac_exeext conftest.$ac_ext
26973 fi
26974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26976 if test `eval echo '${'$as_ac_var'}'` = yes; then
26977   cat >>confdefs.h <<_ACEOF
26978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26979 _ACEOF
26980
26981 fi
26982 done
26983
26984
26985
26986
26987
26988
26989 for ac_func in snprintf vsnprintf gethostid fseeko
26990 do
26991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26992 echo "$as_me:$LINENO: checking for $ac_func" >&5
26993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26994 if eval "test \"\${$as_ac_var+set}\" = set"; then
26995   echo $ECHO_N "(cached) $ECHO_C" >&6
26996 else
26997   cat >conftest.$ac_ext <<_ACEOF
26998 /* confdefs.h.  */
26999 _ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h.  */
27003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27005 #define $ac_func innocuous_$ac_func
27006
27007 /* System header to define __stub macros and hopefully few prototypes,
27008     which can conflict with char $ac_func (); below.
27009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27010     <limits.h> exists even on freestanding compilers.  */
27011
27012 #ifdef __STDC__
27013 # include <limits.h>
27014 #else
27015 # include <assert.h>
27016 #endif
27017
27018 #undef $ac_func
27019
27020 /* Override any gcc2 internal prototype to avoid an error.  */
27021 #ifdef __cplusplus
27022 extern "C"
27023 {
27024 #endif
27025 /* We use char because int might match the return type of a gcc2
27026    builtin and then its argument prototype would still apply.  */
27027 char $ac_func ();
27028 /* The GNU C library defines this for functions which it implements
27029     to always fail with ENOSYS.  Some functions are actually named
27030     something starting with __ and the normal name is an alias.  */
27031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27032 choke me
27033 #else
27034 char (*f) () = $ac_func;
27035 #endif
27036 #ifdef __cplusplus
27037 }
27038 #endif
27039
27040 int
27041 main ()
27042 {
27043 return f != $ac_func;
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27050   (eval $ac_link) 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag"
27058                          || test ! -s conftest.err'
27059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060   (eval $ac_try) 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; } &&
27064          { ac_try='test -s conftest$ac_exeext'
27065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066   (eval $ac_try) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); }; }; then
27070   eval "$as_ac_var=yes"
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075 eval "$as_ac_var=no"
27076 fi
27077 rm -f conftest.err conftest.$ac_objext \
27078       conftest$ac_exeext conftest.$ac_ext
27079 fi
27080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27082 if test `eval echo '${'$as_ac_var'}'` = yes; then
27083   cat >>confdefs.h <<_ACEOF
27084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27085 _ACEOF
27086
27087 fi
27088 done
27089
27090
27091 echo "$as_me:$LINENO: checking for va_copy" >&5
27092 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27093 if test "${ba_cv_va_copy+set}" = set; then
27094   echo $ECHO_N "(cached) $ECHO_C" >&6
27095 else
27096   cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h.  */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h.  */
27102
27103 #include <stdarg.h>
27104 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27105 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27106
27107 int
27108 main ()
27109 {
27110 call_use_va_copy(1,2,3)
27111   ;
27112   return 0;
27113 }
27114 _ACEOF
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27117   (eval $ac_link) 2>conftest.er1
27118   ac_status=$?
27119   grep -v '^ *+' conftest.er1 >conftest.err
27120   rm -f conftest.er1
27121   cat conftest.err >&5
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); } &&
27124          { ac_try='test -z "$ac_c_werror_flag"
27125                          || test ! -s conftest.err'
27126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127   (eval $ac_try) 2>&5
27128   ac_status=$?
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); }; } &&
27131          { ac_try='test -s conftest$ac_exeext'
27132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133   (eval $ac_try) 2>&5
27134   ac_status=$?
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); }; }; then
27137   ba_cv_va_copy=yes
27138 else
27139   echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27141
27142 ba_cv_va_copy=no
27143 fi
27144 rm -f conftest.err conftest.$ac_objext \
27145       conftest$ac_exeext conftest.$ac_ext
27146 fi
27147 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27148 echo "${ECHO_T}$ba_cv_va_copy" >&6
27149 test $ba_cv_va_copy = yes &&
27150 cat >>confdefs.h <<\_ACEOF
27151 #define HAVE_VA_COPY 1
27152 _ACEOF
27153
27154
27155
27156
27157
27158
27159
27160 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27161 do
27162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27163 echo "$as_me:$LINENO: checking for $ac_func" >&5
27164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27165 if eval "test \"\${$as_ac_var+set}\" = set"; then
27166   echo $ECHO_N "(cached) $ECHO_C" >&6
27167 else
27168   cat >conftest.$ac_ext <<_ACEOF
27169 /* confdefs.h.  */
27170 _ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h.  */
27174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27176 #define $ac_func innocuous_$ac_func
27177
27178 /* System header to define __stub macros and hopefully few prototypes,
27179     which can conflict with char $ac_func (); below.
27180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27181     <limits.h> exists even on freestanding compilers.  */
27182
27183 #ifdef __STDC__
27184 # include <limits.h>
27185 #else
27186 # include <assert.h>
27187 #endif
27188
27189 #undef $ac_func
27190
27191 /* Override any gcc2 internal prototype to avoid an error.  */
27192 #ifdef __cplusplus
27193 extern "C"
27194 {
27195 #endif
27196 /* We use char because int might match the return type of a gcc2
27197    builtin and then its argument prototype would still apply.  */
27198 char $ac_func ();
27199 /* The GNU C library defines this for functions which it implements
27200     to always fail with ENOSYS.  Some functions are actually named
27201     something starting with __ and the normal name is an alias.  */
27202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27203 choke me
27204 #else
27205 char (*f) () = $ac_func;
27206 #endif
27207 #ifdef __cplusplus
27208 }
27209 #endif
27210
27211 int
27212 main ()
27213 {
27214 return f != $ac_func;
27215   ;
27216   return 0;
27217 }
27218 _ACEOF
27219 rm -f conftest.$ac_objext conftest$ac_exeext
27220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27221   (eval $ac_link) 2>conftest.er1
27222   ac_status=$?
27223   grep -v '^ *+' conftest.er1 >conftest.err
27224   rm -f conftest.er1
27225   cat conftest.err >&5
27226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227   (exit $ac_status); } &&
27228          { ac_try='test -z "$ac_c_werror_flag"
27229                          || test ! -s conftest.err'
27230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231   (eval $ac_try) 2>&5
27232   ac_status=$?
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); }; } &&
27235          { ac_try='test -s conftest$ac_exeext'
27236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237   (eval $ac_try) 2>&5
27238   ac_status=$?
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); }; }; then
27241   eval "$as_ac_var=yes"
27242 else
27243   echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27245
27246 eval "$as_ac_var=no"
27247 fi
27248 rm -f conftest.err conftest.$ac_objext \
27249       conftest$ac_exeext conftest.$ac_ext
27250 fi
27251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27253 if test `eval echo '${'$as_ac_var'}'` = yes; then
27254   cat >>confdefs.h <<_ACEOF
27255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27256 _ACEOF
27257
27258 fi
27259 done
27260
27261
27262 # If resolver functions are not in libc check for -lnsl or -lresolv.
27263 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27264 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27265 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27266   echo $ECHO_N "(cached) $ECHO_C" >&6
27267 else
27268   cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27276 #define gethostbyname_r innocuous_gethostbyname_r
27277
27278 /* System header to define __stub macros and hopefully few prototypes,
27279     which can conflict with char gethostbyname_r (); below.
27280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27281     <limits.h> exists even on freestanding compilers.  */
27282
27283 #ifdef __STDC__
27284 # include <limits.h>
27285 #else
27286 # include <assert.h>
27287 #endif
27288
27289 #undef gethostbyname_r
27290
27291 /* Override any gcc2 internal prototype to avoid an error.  */
27292 #ifdef __cplusplus
27293 extern "C"
27294 {
27295 #endif
27296 /* We use char because int might match the return type of a gcc2
27297    builtin and then its argument prototype would still apply.  */
27298 char gethostbyname_r ();
27299 /* The GNU C library defines this for functions which it implements
27300     to always fail with ENOSYS.  Some functions are actually named
27301     something starting with __ and the normal name is an alias.  */
27302 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27303 choke me
27304 #else
27305 char (*f) () = gethostbyname_r;
27306 #endif
27307 #ifdef __cplusplus
27308 }
27309 #endif
27310
27311 int
27312 main ()
27313 {
27314 return f != gethostbyname_r;
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 rm -f conftest.$ac_objext conftest$ac_exeext
27320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27321   (eval $ac_link) 2>conftest.er1
27322   ac_status=$?
27323   grep -v '^ *+' conftest.er1 >conftest.err
27324   rm -f conftest.er1
27325   cat conftest.err >&5
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); } &&
27328          { ac_try='test -z "$ac_c_werror_flag"
27329                          || test ! -s conftest.err'
27330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331   (eval $ac_try) 2>&5
27332   ac_status=$?
27333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334   (exit $ac_status); }; } &&
27335          { ac_try='test -s conftest$ac_exeext'
27336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337   (eval $ac_try) 2>&5
27338   ac_status=$?
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); }; }; then
27341   ac_cv_func_gethostbyname_r=yes
27342 else
27343   echo "$as_me: failed program was:" >&5
27344 sed 's/^/| /' conftest.$ac_ext >&5
27345
27346 ac_cv_func_gethostbyname_r=no
27347 fi
27348 rm -f conftest.err conftest.$ac_objext \
27349       conftest$ac_exeext conftest.$ac_ext
27350 fi
27351 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27352 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27353 if test $ac_cv_func_gethostbyname_r = yes; then
27354   echo "$as_me:$LINENO: result: using libc's resolver" >&5
27355 echo "${ECHO_T}using libc's resolver" >&6
27356 else
27357
27358 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27359 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27360 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27361   echo $ECHO_N "(cached) $ECHO_C" >&6
27362 else
27363   ac_check_lib_save_LIBS=$LIBS
27364 LIBS="-lnsl  $LIBS"
27365 cat >conftest.$ac_ext <<_ACEOF
27366 /* confdefs.h.  */
27367 _ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h.  */
27371
27372 /* Override any gcc2 internal prototype to avoid an error.  */
27373 #ifdef __cplusplus
27374 extern "C"
27375 #endif
27376 /* We use char because int might match the return type of a gcc2
27377    builtin and then its argument prototype would still apply.  */
27378 char gethostbyname_r ();
27379 int
27380 main ()
27381 {
27382 gethostbyname_r ();
27383   ;
27384   return 0;
27385 }
27386 _ACEOF
27387 rm -f conftest.$ac_objext conftest$ac_exeext
27388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27389   (eval $ac_link) 2>conftest.er1
27390   ac_status=$?
27391   grep -v '^ *+' conftest.er1 >conftest.err
27392   rm -f conftest.er1
27393   cat conftest.err >&5
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } &&
27396          { ac_try='test -z "$ac_c_werror_flag"
27397                          || test ! -s conftest.err'
27398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399   (eval $ac_try) 2>&5
27400   ac_status=$?
27401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402   (exit $ac_status); }; } &&
27403          { ac_try='test -s conftest$ac_exeext'
27404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405   (eval $ac_try) 2>&5
27406   ac_status=$?
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); }; }; then
27409   ac_cv_lib_nsl_gethostbyname_r=yes
27410 else
27411   echo "$as_me: failed program was:" >&5
27412 sed 's/^/| /' conftest.$ac_ext >&5
27413
27414 ac_cv_lib_nsl_gethostbyname_r=no
27415 fi
27416 rm -f conftest.err conftest.$ac_objext \
27417       conftest$ac_exeext conftest.$ac_ext
27418 LIBS=$ac_check_lib_save_LIBS
27419 fi
27420 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27421 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27422 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27423   cat >>confdefs.h <<_ACEOF
27424 #define HAVE_LIBNSL 1
27425 _ACEOF
27426
27427   LIBS="-lnsl $LIBS"
27428
27429 fi
27430
27431
27432 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27433 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27434 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27435   echo $ECHO_N "(cached) $ECHO_C" >&6
27436 else
27437   ac_check_lib_save_LIBS=$LIBS
27438 LIBS="-lresolv  $LIBS"
27439 cat >conftest.$ac_ext <<_ACEOF
27440 /* confdefs.h.  */
27441 _ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h.  */
27445
27446 /* Override any gcc2 internal prototype to avoid an error.  */
27447 #ifdef __cplusplus
27448 extern "C"
27449 #endif
27450 /* We use char because int might match the return type of a gcc2
27451    builtin and then its argument prototype would still apply.  */
27452 char gethostbyname_r ();
27453 int
27454 main ()
27455 {
27456 gethostbyname_r ();
27457   ;
27458   return 0;
27459 }
27460 _ACEOF
27461 rm -f conftest.$ac_objext conftest$ac_exeext
27462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27463   (eval $ac_link) 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } &&
27470          { ac_try='test -z "$ac_c_werror_flag"
27471                          || test ! -s conftest.err'
27472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473   (eval $ac_try) 2>&5
27474   ac_status=$?
27475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476   (exit $ac_status); }; } &&
27477          { ac_try='test -s conftest$ac_exeext'
27478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27479   (eval $ac_try) 2>&5
27480   ac_status=$?
27481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482   (exit $ac_status); }; }; then
27483   ac_cv_lib_resolv_gethostbyname_r=yes
27484 else
27485   echo "$as_me: failed program was:" >&5
27486 sed 's/^/| /' conftest.$ac_ext >&5
27487
27488 ac_cv_lib_resolv_gethostbyname_r=no
27489 fi
27490 rm -f conftest.err conftest.$ac_objext \
27491       conftest$ac_exeext conftest.$ac_ext
27492 LIBS=$ac_check_lib_save_LIBS
27493 fi
27494 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27495 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27496 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27497   cat >>confdefs.h <<_ACEOF
27498 #define HAVE_LIBRESOLV 1
27499 _ACEOF
27500
27501   LIBS="-lresolv $LIBS"
27502
27503 fi
27504
27505 fi
27506
27507
27508
27509
27510
27511 for ac_func in inet_pton
27512 do
27513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27514 echo "$as_me:$LINENO: checking for $ac_func" >&5
27515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27516 if eval "test \"\${$as_ac_var+set}\" = set"; then
27517   echo $ECHO_N "(cached) $ECHO_C" >&6
27518 else
27519   cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h.  */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h.  */
27525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27527 #define $ac_func innocuous_$ac_func
27528
27529 /* System header to define __stub macros and hopefully few prototypes,
27530     which can conflict with char $ac_func (); below.
27531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27532     <limits.h> exists even on freestanding compilers.  */
27533
27534 #ifdef __STDC__
27535 # include <limits.h>
27536 #else
27537 # include <assert.h>
27538 #endif
27539
27540 #undef $ac_func
27541
27542 /* Override any gcc2 internal prototype to avoid an error.  */
27543 #ifdef __cplusplus
27544 extern "C"
27545 {
27546 #endif
27547 /* We use char because int might match the return type of a gcc2
27548    builtin and then its argument prototype would still apply.  */
27549 char $ac_func ();
27550 /* The GNU C library defines this for functions which it implements
27551     to always fail with ENOSYS.  Some functions are actually named
27552     something starting with __ and the normal name is an alias.  */
27553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27554 choke me
27555 #else
27556 char (*f) () = $ac_func;
27557 #endif
27558 #ifdef __cplusplus
27559 }
27560 #endif
27561
27562 int
27563 main ()
27564 {
27565 return f != $ac_func;
27566   ;
27567   return 0;
27568 }
27569 _ACEOF
27570 rm -f conftest.$ac_objext conftest$ac_exeext
27571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27572   (eval $ac_link) 2>conftest.er1
27573   ac_status=$?
27574   grep -v '^ *+' conftest.er1 >conftest.err
27575   rm -f conftest.er1
27576   cat conftest.err >&5
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); } &&
27579          { ac_try='test -z "$ac_c_werror_flag"
27580                          || test ! -s conftest.err'
27581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582   (eval $ac_try) 2>&5
27583   ac_status=$?
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); }; } &&
27586          { ac_try='test -s conftest$ac_exeext'
27587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588   (eval $ac_try) 2>&5
27589   ac_status=$?
27590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591   (exit $ac_status); }; }; then
27592   eval "$as_ac_var=yes"
27593 else
27594   echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597 eval "$as_ac_var=no"
27598 fi
27599 rm -f conftest.err conftest.$ac_objext \
27600       conftest$ac_exeext conftest.$ac_ext
27601 fi
27602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27604 if test `eval echo '${'$as_ac_var'}'` = yes; then
27605   cat >>confdefs.h <<_ACEOF
27606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27607 _ACEOF
27608  cat >>confdefs.h <<\_ACEOF
27609 #define HAVE_INET_PTON 1
27610 _ACEOF
27611
27612 fi
27613 done
27614
27615
27616 for ac_func in inet_ntop
27617 do
27618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27619 echo "$as_me:$LINENO: checking for $ac_func" >&5
27620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27621 if eval "test \"\${$as_ac_var+set}\" = set"; then
27622   echo $ECHO_N "(cached) $ECHO_C" >&6
27623 else
27624   cat >conftest.$ac_ext <<_ACEOF
27625 /* confdefs.h.  */
27626 _ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h.  */
27630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27632 #define $ac_func innocuous_$ac_func
27633
27634 /* System header to define __stub macros and hopefully few prototypes,
27635     which can conflict with char $ac_func (); below.
27636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27637     <limits.h> exists even on freestanding compilers.  */
27638
27639 #ifdef __STDC__
27640 # include <limits.h>
27641 #else
27642 # include <assert.h>
27643 #endif
27644
27645 #undef $ac_func
27646
27647 /* Override any gcc2 internal prototype to avoid an error.  */
27648 #ifdef __cplusplus
27649 extern "C"
27650 {
27651 #endif
27652 /* We use char because int might match the return type of a gcc2
27653    builtin and then its argument prototype would still apply.  */
27654 char $ac_func ();
27655 /* The GNU C library defines this for functions which it implements
27656     to always fail with ENOSYS.  Some functions are actually named
27657     something starting with __ and the normal name is an alias.  */
27658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27659 choke me
27660 #else
27661 char (*f) () = $ac_func;
27662 #endif
27663 #ifdef __cplusplus
27664 }
27665 #endif
27666
27667 int
27668 main ()
27669 {
27670 return f != $ac_func;
27671   ;
27672   return 0;
27673 }
27674 _ACEOF
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27677   (eval $ac_link) 2>conftest.er1
27678   ac_status=$?
27679   grep -v '^ *+' conftest.er1 >conftest.err
27680   rm -f conftest.er1
27681   cat conftest.err >&5
27682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683   (exit $ac_status); } &&
27684          { ac_try='test -z "$ac_c_werror_flag"
27685                          || test ! -s conftest.err'
27686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687   (eval $ac_try) 2>&5
27688   ac_status=$?
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); }; } &&
27691          { ac_try='test -s conftest$ac_exeext'
27692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693   (eval $ac_try) 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; }; then
27697   eval "$as_ac_var=yes"
27698 else
27699   echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27701
27702 eval "$as_ac_var=no"
27703 fi
27704 rm -f conftest.err conftest.$ac_objext \
27705       conftest$ac_exeext conftest.$ac_ext
27706 fi
27707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27709 if test `eval echo '${'$as_ac_var'}'` = yes; then
27710   cat >>confdefs.h <<_ACEOF
27711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27712 _ACEOF
27713  cat >>confdefs.h <<\_ACEOF
27714 #define HAVE_INET_NTOP 1
27715 _ACEOF
27716
27717 fi
27718 done
27719
27720
27721 for ac_func in gethostbyname2
27722 do
27723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27724 echo "$as_me:$LINENO: checking for $ac_func" >&5
27725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27726 if eval "test \"\${$as_ac_var+set}\" = set"; then
27727   echo $ECHO_N "(cached) $ECHO_C" >&6
27728 else
27729   cat >conftest.$ac_ext <<_ACEOF
27730 /* confdefs.h.  */
27731 _ACEOF
27732 cat confdefs.h >>conftest.$ac_ext
27733 cat >>conftest.$ac_ext <<_ACEOF
27734 /* end confdefs.h.  */
27735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27737 #define $ac_func innocuous_$ac_func
27738
27739 /* System header to define __stub macros and hopefully few prototypes,
27740     which can conflict with char $ac_func (); below.
27741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27742     <limits.h> exists even on freestanding compilers.  */
27743
27744 #ifdef __STDC__
27745 # include <limits.h>
27746 #else
27747 # include <assert.h>
27748 #endif
27749
27750 #undef $ac_func
27751
27752 /* Override any gcc2 internal prototype to avoid an error.  */
27753 #ifdef __cplusplus
27754 extern "C"
27755 {
27756 #endif
27757 /* We use char because int might match the return type of a gcc2
27758    builtin and then its argument prototype would still apply.  */
27759 char $ac_func ();
27760 /* The GNU C library defines this for functions which it implements
27761     to always fail with ENOSYS.  Some functions are actually named
27762     something starting with __ and the normal name is an alias.  */
27763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27764 choke me
27765 #else
27766 char (*f) () = $ac_func;
27767 #endif
27768 #ifdef __cplusplus
27769 }
27770 #endif
27771
27772 int
27773 main ()
27774 {
27775 return f != $ac_func;
27776   ;
27777   return 0;
27778 }
27779 _ACEOF
27780 rm -f conftest.$ac_objext conftest$ac_exeext
27781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27782   (eval $ac_link) 2>conftest.er1
27783   ac_status=$?
27784   grep -v '^ *+' conftest.er1 >conftest.err
27785   rm -f conftest.er1
27786   cat conftest.err >&5
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); } &&
27789          { ac_try='test -z "$ac_c_werror_flag"
27790                          || test ! -s conftest.err'
27791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792   (eval $ac_try) 2>&5
27793   ac_status=$?
27794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795   (exit $ac_status); }; } &&
27796          { ac_try='test -s conftest$ac_exeext'
27797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798   (eval $ac_try) 2>&5
27799   ac_status=$?
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); }; }; then
27802   eval "$as_ac_var=yes"
27803 else
27804   echo "$as_me: failed program was:" >&5
27805 sed 's/^/| /' conftest.$ac_ext >&5
27806
27807 eval "$as_ac_var=no"
27808 fi
27809 rm -f conftest.err conftest.$ac_objext \
27810       conftest$ac_exeext conftest.$ac_ext
27811 fi
27812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27814 if test `eval echo '${'$as_ac_var'}'` = yes; then
27815   cat >>confdefs.h <<_ACEOF
27816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27817 _ACEOF
27818  cat >>confdefs.h <<\_ACEOF
27819 #define HAVE_GETHOSTBYNAME2 1
27820 _ACEOF
27821
27822 fi
27823 done
27824
27825
27826 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27827 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27828 if test "${ac_cv_struct_sockaddr_sa_len+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 #include <sys/socket.h>
27838 int
27839 main ()
27840 {
27841 struct sockaddr s; s.sa_len;
27842   ;
27843   return 0;
27844 }
27845 _ACEOF
27846 rm -f conftest.$ac_objext
27847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27848   (eval $ac_compile) 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } &&
27855          { ac_try='test -z "$ac_c_werror_flag"
27856                          || test ! -s conftest.err'
27857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858   (eval $ac_try) 2>&5
27859   ac_status=$?
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); }; } &&
27862          { ac_try='test -s conftest.$ac_objext'
27863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27864   (eval $ac_try) 2>&5
27865   ac_status=$?
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); }; }; then
27868   ac_cv_struct_sockaddr_sa_len=yes
27869 else
27870   echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27872
27873 ac_cv_struct_sockaddr_sa_len=no
27874 fi
27875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27876 fi
27877 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27878 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27879
27880  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27881
27882 cat >>confdefs.h <<\_ACEOF
27883 #define HAVE_SA_LEN 1
27884 _ACEOF
27885
27886  fi
27887
27888
27889
27890
27891
27892 for ac_func in strftime
27893 do
27894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27895 echo "$as_me:$LINENO: checking for $ac_func" >&5
27896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27897 if eval "test \"\${$as_ac_var+set}\" = set"; then
27898   echo $ECHO_N "(cached) $ECHO_C" >&6
27899 else
27900   cat >conftest.$ac_ext <<_ACEOF
27901 /* confdefs.h.  */
27902 _ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h.  */
27906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27908 #define $ac_func innocuous_$ac_func
27909
27910 /* System header to define __stub macros and hopefully few prototypes,
27911     which can conflict with char $ac_func (); below.
27912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27913     <limits.h> exists even on freestanding compilers.  */
27914
27915 #ifdef __STDC__
27916 # include <limits.h>
27917 #else
27918 # include <assert.h>
27919 #endif
27920
27921 #undef $ac_func
27922
27923 /* Override any gcc2 internal prototype to avoid an error.  */
27924 #ifdef __cplusplus
27925 extern "C"
27926 {
27927 #endif
27928 /* We use char because int might match the return type of a gcc2
27929    builtin and then its argument prototype would still apply.  */
27930 char $ac_func ();
27931 /* The GNU C library defines this for functions which it implements
27932     to always fail with ENOSYS.  Some functions are actually named
27933     something starting with __ and the normal name is an alias.  */
27934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27935 choke me
27936 #else
27937 char (*f) () = $ac_func;
27938 #endif
27939 #ifdef __cplusplus
27940 }
27941 #endif
27942
27943 int
27944 main ()
27945 {
27946 return f != $ac_func;
27947   ;
27948   return 0;
27949 }
27950 _ACEOF
27951 rm -f conftest.$ac_objext conftest$ac_exeext
27952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27953   (eval $ac_link) 2>conftest.er1
27954   ac_status=$?
27955   grep -v '^ *+' conftest.er1 >conftest.err
27956   rm -f conftest.er1
27957   cat conftest.err >&5
27958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959   (exit $ac_status); } &&
27960          { ac_try='test -z "$ac_c_werror_flag"
27961                          || test ! -s conftest.err'
27962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963   (eval $ac_try) 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; } &&
27967          { ac_try='test -s conftest$ac_exeext'
27968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969   (eval $ac_try) 2>&5
27970   ac_status=$?
27971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972   (exit $ac_status); }; }; then
27973   eval "$as_ac_var=yes"
27974 else
27975   echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978 eval "$as_ac_var=no"
27979 fi
27980 rm -f conftest.err conftest.$ac_objext \
27981       conftest$ac_exeext conftest.$ac_ext
27982 fi
27983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27985 if test `eval echo '${'$as_ac_var'}'` = yes; then
27986   cat >>confdefs.h <<_ACEOF
27987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27988 _ACEOF
27989
27990 else
27991   # strftime is in -lintl on SCO UNIX.
27992 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27993 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27994 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27995   echo $ECHO_N "(cached) $ECHO_C" >&6
27996 else
27997   ac_check_lib_save_LIBS=$LIBS
27998 LIBS="-lintl  $LIBS"
27999 cat >conftest.$ac_ext <<_ACEOF
28000 /* confdefs.h.  */
28001 _ACEOF
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h.  */
28005
28006 /* Override any gcc2 internal prototype to avoid an error.  */
28007 #ifdef __cplusplus
28008 extern "C"
28009 #endif
28010 /* We use char because int might match the return type of a gcc2
28011    builtin and then its argument prototype would still apply.  */
28012 char strftime ();
28013 int
28014 main ()
28015 {
28016 strftime ();
28017   ;
28018   return 0;
28019 }
28020 _ACEOF
28021 rm -f conftest.$ac_objext conftest$ac_exeext
28022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28023   (eval $ac_link) 2>conftest.er1
28024   ac_status=$?
28025   grep -v '^ *+' conftest.er1 >conftest.err
28026   rm -f conftest.er1
28027   cat conftest.err >&5
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); } &&
28030          { ac_try='test -z "$ac_c_werror_flag"
28031                          || test ! -s conftest.err'
28032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033   (eval $ac_try) 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); }; } &&
28037          { ac_try='test -s conftest$ac_exeext'
28038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039   (eval $ac_try) 2>&5
28040   ac_status=$?
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); }; }; then
28043   ac_cv_lib_intl_strftime=yes
28044 else
28045   echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048 ac_cv_lib_intl_strftime=no
28049 fi
28050 rm -f conftest.err conftest.$ac_objext \
28051       conftest$ac_exeext conftest.$ac_ext
28052 LIBS=$ac_check_lib_save_LIBS
28053 fi
28054 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28055 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28056 if test $ac_cv_lib_intl_strftime = yes; then
28057   cat >>confdefs.h <<\_ACEOF
28058 #define HAVE_STRFTIME 1
28059 _ACEOF
28060
28061 LIBS="-lintl $LIBS"
28062 fi
28063
28064 fi
28065 done
28066
28067
28068 for ac_func in vprintf
28069 do
28070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28071 echo "$as_me:$LINENO: checking for $ac_func" >&5
28072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28073 if eval "test \"\${$as_ac_var+set}\" = set"; then
28074   echo $ECHO_N "(cached) $ECHO_C" >&6
28075 else
28076   cat >conftest.$ac_ext <<_ACEOF
28077 /* confdefs.h.  */
28078 _ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h.  */
28082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28084 #define $ac_func innocuous_$ac_func
28085
28086 /* System header to define __stub macros and hopefully few prototypes,
28087     which can conflict with char $ac_func (); below.
28088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28089     <limits.h> exists even on freestanding compilers.  */
28090
28091 #ifdef __STDC__
28092 # include <limits.h>
28093 #else
28094 # include <assert.h>
28095 #endif
28096
28097 #undef $ac_func
28098
28099 /* Override any gcc2 internal prototype to avoid an error.  */
28100 #ifdef __cplusplus
28101 extern "C"
28102 {
28103 #endif
28104 /* We use char because int might match the return type of a gcc2
28105    builtin and then its argument prototype would still apply.  */
28106 char $ac_func ();
28107 /* The GNU C library defines this for functions which it implements
28108     to always fail with ENOSYS.  Some functions are actually named
28109     something starting with __ and the normal name is an alias.  */
28110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28111 choke me
28112 #else
28113 char (*f) () = $ac_func;
28114 #endif
28115 #ifdef __cplusplus
28116 }
28117 #endif
28118
28119 int
28120 main ()
28121 {
28122 return f != $ac_func;
28123   ;
28124   return 0;
28125 }
28126 _ACEOF
28127 rm -f conftest.$ac_objext conftest$ac_exeext
28128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129   (eval $ac_link) 2>conftest.er1
28130   ac_status=$?
28131   grep -v '^ *+' conftest.er1 >conftest.err
28132   rm -f conftest.er1
28133   cat conftest.err >&5
28134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135   (exit $ac_status); } &&
28136          { ac_try='test -z "$ac_c_werror_flag"
28137                          || test ! -s conftest.err'
28138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139   (eval $ac_try) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); }; } &&
28143          { ac_try='test -s conftest$ac_exeext'
28144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145   (eval $ac_try) 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); }; }; then
28149   eval "$as_ac_var=yes"
28150 else
28151   echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154 eval "$as_ac_var=no"
28155 fi
28156 rm -f conftest.err conftest.$ac_objext \
28157       conftest$ac_exeext conftest.$ac_ext
28158 fi
28159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28161 if test `eval echo '${'$as_ac_var'}'` = yes; then
28162   cat >>confdefs.h <<_ACEOF
28163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28164 _ACEOF
28165
28166 echo "$as_me:$LINENO: checking for _doprnt" >&5
28167 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28168 if test "${ac_cv_func__doprnt+set}" = set; then
28169   echo $ECHO_N "(cached) $ECHO_C" >&6
28170 else
28171   cat >conftest.$ac_ext <<_ACEOF
28172 /* confdefs.h.  */
28173 _ACEOF
28174 cat confdefs.h >>conftest.$ac_ext
28175 cat >>conftest.$ac_ext <<_ACEOF
28176 /* end confdefs.h.  */
28177 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28179 #define _doprnt innocuous__doprnt
28180
28181 /* System header to define __stub macros and hopefully few prototypes,
28182     which can conflict with char _doprnt (); below.
28183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28184     <limits.h> exists even on freestanding compilers.  */
28185
28186 #ifdef __STDC__
28187 # include <limits.h>
28188 #else
28189 # include <assert.h>
28190 #endif
28191
28192 #undef _doprnt
28193
28194 /* Override any gcc2 internal prototype to avoid an error.  */
28195 #ifdef __cplusplus
28196 extern "C"
28197 {
28198 #endif
28199 /* We use char because int might match the return type of a gcc2
28200    builtin and then its argument prototype would still apply.  */
28201 char _doprnt ();
28202 /* The GNU C library defines this for functions which it implements
28203     to always fail with ENOSYS.  Some functions are actually named
28204     something starting with __ and the normal name is an alias.  */
28205 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28206 choke me
28207 #else
28208 char (*f) () = _doprnt;
28209 #endif
28210 #ifdef __cplusplus
28211 }
28212 #endif
28213
28214 int
28215 main ()
28216 {
28217 return f != _doprnt;
28218   ;
28219   return 0;
28220 }
28221 _ACEOF
28222 rm -f conftest.$ac_objext conftest$ac_exeext
28223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28224   (eval $ac_link) 2>conftest.er1
28225   ac_status=$?
28226   grep -v '^ *+' conftest.er1 >conftest.err
28227   rm -f conftest.er1
28228   cat conftest.err >&5
28229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230   (exit $ac_status); } &&
28231          { ac_try='test -z "$ac_c_werror_flag"
28232                          || test ! -s conftest.err'
28233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28234   (eval $ac_try) 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); }; } &&
28238          { ac_try='test -s conftest$ac_exeext'
28239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240   (eval $ac_try) 2>&5
28241   ac_status=$?
28242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243   (exit $ac_status); }; }; then
28244   ac_cv_func__doprnt=yes
28245 else
28246   echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28248
28249 ac_cv_func__doprnt=no
28250 fi
28251 rm -f conftest.err conftest.$ac_objext \
28252       conftest$ac_exeext conftest.$ac_ext
28253 fi
28254 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28255 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28256 if test $ac_cv_func__doprnt = yes; then
28257
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_DOPRNT 1
28260 _ACEOF
28261
28262 fi
28263
28264 fi
28265 done
28266
28267
28268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28269 # for constant arguments.  Useless!
28270 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28271 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28272 if test "${ac_cv_working_alloca_h+set}" = set; then
28273   echo $ECHO_N "(cached) $ECHO_C" >&6
28274 else
28275   cat >conftest.$ac_ext <<_ACEOF
28276 /* confdefs.h.  */
28277 _ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h.  */
28281 #include <alloca.h>
28282 int
28283 main ()
28284 {
28285 char *p = (char *) alloca (2 * sizeof (int));
28286   ;
28287   return 0;
28288 }
28289 _ACEOF
28290 rm -f conftest.$ac_objext conftest$ac_exeext
28291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28292   (eval $ac_link) 2>conftest.er1
28293   ac_status=$?
28294   grep -v '^ *+' conftest.er1 >conftest.err
28295   rm -f conftest.er1
28296   cat conftest.err >&5
28297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298   (exit $ac_status); } &&
28299          { ac_try='test -z "$ac_c_werror_flag"
28300                          || test ! -s conftest.err'
28301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28302   (eval $ac_try) 2>&5
28303   ac_status=$?
28304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305   (exit $ac_status); }; } &&
28306          { ac_try='test -s conftest$ac_exeext'
28307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28308   (eval $ac_try) 2>&5
28309   ac_status=$?
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); }; }; then
28312   ac_cv_working_alloca_h=yes
28313 else
28314   echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28316
28317 ac_cv_working_alloca_h=no
28318 fi
28319 rm -f conftest.err conftest.$ac_objext \
28320       conftest$ac_exeext conftest.$ac_ext
28321 fi
28322 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28323 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28324 if test $ac_cv_working_alloca_h = yes; then
28325
28326 cat >>confdefs.h <<\_ACEOF
28327 #define HAVE_ALLOCA_H 1
28328 _ACEOF
28329
28330 fi
28331
28332 echo "$as_me:$LINENO: checking for alloca" >&5
28333 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28334 if test "${ac_cv_func_alloca_works+set}" = set; then
28335   echo $ECHO_N "(cached) $ECHO_C" >&6
28336 else
28337   cat >conftest.$ac_ext <<_ACEOF
28338 /* confdefs.h.  */
28339 _ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h.  */
28343 #ifdef __GNUC__
28344 # define alloca __builtin_alloca
28345 #else
28346 # ifdef _MSC_VER
28347 #  include <malloc.h>
28348 #  define alloca _alloca
28349 # else
28350 #  if HAVE_ALLOCA_H
28351 #   include <alloca.h>
28352 #  else
28353 #   ifdef _AIX
28354  #pragma alloca
28355 #   else
28356 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28357 char *alloca ();
28358 #    endif
28359 #   endif
28360 #  endif
28361 # endif
28362 #endif
28363
28364 int
28365 main ()
28366 {
28367 char *p = (char *) alloca (1);
28368   ;
28369   return 0;
28370 }
28371 _ACEOF
28372 rm -f conftest.$ac_objext conftest$ac_exeext
28373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28374   (eval $ac_link) 2>conftest.er1
28375   ac_status=$?
28376   grep -v '^ *+' conftest.er1 >conftest.err
28377   rm -f conftest.er1
28378   cat conftest.err >&5
28379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380   (exit $ac_status); } &&
28381          { ac_try='test -z "$ac_c_werror_flag"
28382                          || test ! -s conftest.err'
28383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384   (eval $ac_try) 2>&5
28385   ac_status=$?
28386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387   (exit $ac_status); }; } &&
28388          { ac_try='test -s conftest$ac_exeext'
28389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390   (eval $ac_try) 2>&5
28391   ac_status=$?
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); }; }; then
28394   ac_cv_func_alloca_works=yes
28395 else
28396   echo "$as_me: failed program was:" >&5
28397 sed 's/^/| /' conftest.$ac_ext >&5
28398
28399 ac_cv_func_alloca_works=no
28400 fi
28401 rm -f conftest.err conftest.$ac_objext \
28402       conftest$ac_exeext conftest.$ac_ext
28403 fi
28404 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28405 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28406
28407 if test $ac_cv_func_alloca_works = yes; then
28408
28409 cat >>confdefs.h <<\_ACEOF
28410 #define HAVE_ALLOCA 1
28411 _ACEOF
28412
28413 else
28414   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28415 # that cause trouble.  Some versions do not even contain alloca or
28416 # contain a buggy version.  If you still want to use their alloca,
28417 # use ar to extract alloca.o from them instead of compiling alloca.c.
28418
28419 ALLOCA=alloca.$ac_objext
28420
28421 cat >>confdefs.h <<\_ACEOF
28422 #define C_ALLOCA 1
28423 _ACEOF
28424
28425
28426 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28427 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28428 if test "${ac_cv_os_cray+set}" = set; then
28429   echo $ECHO_N "(cached) $ECHO_C" >&6
28430 else
28431   cat >conftest.$ac_ext <<_ACEOF
28432 /* confdefs.h.  */
28433 _ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h.  */
28437 #if defined(CRAY) && ! defined(CRAY2)
28438 webecray
28439 #else
28440 wenotbecray
28441 #endif
28442
28443 _ACEOF
28444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28445   $EGREP "webecray" >/dev/null 2>&1; then
28446   ac_cv_os_cray=yes
28447 else
28448   ac_cv_os_cray=no
28449 fi
28450 rm -f conftest*
28451
28452 fi
28453 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28454 echo "${ECHO_T}$ac_cv_os_cray" >&6
28455 if test $ac_cv_os_cray = yes; then
28456   for ac_func in _getb67 GETB67 getb67; do
28457     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28458 echo "$as_me:$LINENO: checking for $ac_func" >&5
28459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28460 if eval "test \"\${$as_ac_var+set}\" = set"; then
28461   echo $ECHO_N "(cached) $ECHO_C" >&6
28462 else
28463   cat >conftest.$ac_ext <<_ACEOF
28464 /* confdefs.h.  */
28465 _ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h.  */
28469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28471 #define $ac_func innocuous_$ac_func
28472
28473 /* System header to define __stub macros and hopefully few prototypes,
28474     which can conflict with char $ac_func (); below.
28475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28476     <limits.h> exists even on freestanding compilers.  */
28477
28478 #ifdef __STDC__
28479 # include <limits.h>
28480 #else
28481 # include <assert.h>
28482 #endif
28483
28484 #undef $ac_func
28485
28486 /* Override any gcc2 internal prototype to avoid an error.  */
28487 #ifdef __cplusplus
28488 extern "C"
28489 {
28490 #endif
28491 /* We use char because int might match the return type of a gcc2
28492    builtin and then its argument prototype would still apply.  */
28493 char $ac_func ();
28494 /* The GNU C library defines this for functions which it implements
28495     to always fail with ENOSYS.  Some functions are actually named
28496     something starting with __ and the normal name is an alias.  */
28497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28498 choke me
28499 #else
28500 char (*f) () = $ac_func;
28501 #endif
28502 #ifdef __cplusplus
28503 }
28504 #endif
28505
28506 int
28507 main ()
28508 {
28509 return f != $ac_func;
28510   ;
28511   return 0;
28512 }
28513 _ACEOF
28514 rm -f conftest.$ac_objext conftest$ac_exeext
28515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28516   (eval $ac_link) 2>conftest.er1
28517   ac_status=$?
28518   grep -v '^ *+' conftest.er1 >conftest.err
28519   rm -f conftest.er1
28520   cat conftest.err >&5
28521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522   (exit $ac_status); } &&
28523          { ac_try='test -z "$ac_c_werror_flag"
28524                          || test ! -s conftest.err'
28525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526   (eval $ac_try) 2>&5
28527   ac_status=$?
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); }; } &&
28530          { ac_try='test -s conftest$ac_exeext'
28531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28532   (eval $ac_try) 2>&5
28533   ac_status=$?
28534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535   (exit $ac_status); }; }; then
28536   eval "$as_ac_var=yes"
28537 else
28538   echo "$as_me: failed program was:" >&5
28539 sed 's/^/| /' conftest.$ac_ext >&5
28540
28541 eval "$as_ac_var=no"
28542 fi
28543 rm -f conftest.err conftest.$ac_objext \
28544       conftest$ac_exeext conftest.$ac_ext
28545 fi
28546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28548 if test `eval echo '${'$as_ac_var'}'` = yes; then
28549
28550 cat >>confdefs.h <<_ACEOF
28551 #define CRAY_STACKSEG_END $ac_func
28552 _ACEOF
28553
28554     break
28555 fi
28556
28557   done
28558 fi
28559
28560 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28561 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28562 if test "${ac_cv_c_stack_direction+set}" = set; then
28563   echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565   if test "$cross_compiling" = yes; then
28566   ac_cv_c_stack_direction=0
28567 else
28568   cat >conftest.$ac_ext <<_ACEOF
28569 /* confdefs.h.  */
28570 _ACEOF
28571 cat confdefs.h >>conftest.$ac_ext
28572 cat >>conftest.$ac_ext <<_ACEOF
28573 /* end confdefs.h.  */
28574 int
28575 find_stack_direction ()
28576 {
28577   static char *addr = 0;
28578   auto char dummy;
28579   if (addr == 0)
28580     {
28581       addr = &dummy;
28582       return find_stack_direction ();
28583     }
28584   else
28585     return (&dummy > addr) ? 1 : -1;
28586 }
28587
28588 int
28589 main ()
28590 {
28591   exit (find_stack_direction () < 0);
28592 }
28593 _ACEOF
28594 rm -f conftest$ac_exeext
28595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28596   (eval $ac_link) 2>&5
28597   ac_status=$?
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601   (eval $ac_try) 2>&5
28602   ac_status=$?
28603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604   (exit $ac_status); }; }; then
28605   ac_cv_c_stack_direction=1
28606 else
28607   echo "$as_me: program exited with status $ac_status" >&5
28608 echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28610
28611 ( exit $ac_status )
28612 ac_cv_c_stack_direction=-1
28613 fi
28614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28615 fi
28616 fi
28617 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28618 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28619
28620 cat >>confdefs.h <<_ACEOF
28621 #define STACK_DIRECTION $ac_cv_c_stack_direction
28622 _ACEOF
28623
28624
28625 fi
28626
28627 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28628 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28629 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28630 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28631   echo $ECHO_N "(cached) $ECHO_C" >&6
28632 else
28633   ac_check_lib_save_LIBS=$LIBS
28634 LIBS="-lsun  $LIBS"
28635 cat >conftest.$ac_ext <<_ACEOF
28636 /* confdefs.h.  */
28637 _ACEOF
28638 cat confdefs.h >>conftest.$ac_ext
28639 cat >>conftest.$ac_ext <<_ACEOF
28640 /* end confdefs.h.  */
28641
28642 /* Override any gcc2 internal prototype to avoid an error.  */
28643 #ifdef __cplusplus
28644 extern "C"
28645 #endif
28646 /* We use char because int might match the return type of a gcc2
28647    builtin and then its argument prototype would still apply.  */
28648 char getmntent ();
28649 int
28650 main ()
28651 {
28652 getmntent ();
28653   ;
28654   return 0;
28655 }
28656 _ACEOF
28657 rm -f conftest.$ac_objext conftest$ac_exeext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28659   (eval $ac_link) 2>conftest.er1
28660   ac_status=$?
28661   grep -v '^ *+' conftest.er1 >conftest.err
28662   rm -f conftest.er1
28663   cat conftest.err >&5
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); } &&
28666          { ac_try='test -z "$ac_c_werror_flag"
28667                          || test ! -s conftest.err'
28668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669   (eval $ac_try) 2>&5
28670   ac_status=$?
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); }; } &&
28673          { ac_try='test -s conftest$ac_exeext'
28674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675   (eval $ac_try) 2>&5
28676   ac_status=$?
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); }; }; then
28679   ac_cv_lib_sun_getmntent=yes
28680 else
28681   echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28683
28684 ac_cv_lib_sun_getmntent=no
28685 fi
28686 rm -f conftest.err conftest.$ac_objext \
28687       conftest$ac_exeext conftest.$ac_ext
28688 LIBS=$ac_check_lib_save_LIBS
28689 fi
28690 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28691 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28692 if test $ac_cv_lib_sun_getmntent = yes; then
28693   LIBS="-lsun $LIBS"
28694 else
28695   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28696 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28697 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28698   echo $ECHO_N "(cached) $ECHO_C" >&6
28699 else
28700   ac_check_lib_save_LIBS=$LIBS
28701 LIBS="-lseq  $LIBS"
28702 cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h.  */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h.  */
28708
28709 /* Override any gcc2 internal prototype to avoid an error.  */
28710 #ifdef __cplusplus
28711 extern "C"
28712 #endif
28713 /* We use char because int might match the return type of a gcc2
28714    builtin and then its argument prototype would still apply.  */
28715 char getmntent ();
28716 int
28717 main ()
28718 {
28719 getmntent ();
28720   ;
28721   return 0;
28722 }
28723 _ACEOF
28724 rm -f conftest.$ac_objext conftest$ac_exeext
28725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28726   (eval $ac_link) 2>conftest.er1
28727   ac_status=$?
28728   grep -v '^ *+' conftest.er1 >conftest.err
28729   rm -f conftest.er1
28730   cat conftest.err >&5
28731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732   (exit $ac_status); } &&
28733          { ac_try='test -z "$ac_c_werror_flag"
28734                          || test ! -s conftest.err'
28735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736   (eval $ac_try) 2>&5
28737   ac_status=$?
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); }; } &&
28740          { ac_try='test -s conftest$ac_exeext'
28741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742   (eval $ac_try) 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; }; then
28746   ac_cv_lib_seq_getmntent=yes
28747 else
28748   echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28750
28751 ac_cv_lib_seq_getmntent=no
28752 fi
28753 rm -f conftest.err conftest.$ac_objext \
28754       conftest$ac_exeext conftest.$ac_ext
28755 LIBS=$ac_check_lib_save_LIBS
28756 fi
28757 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28758 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28759 if test $ac_cv_lib_seq_getmntent = yes; then
28760   LIBS="-lseq $LIBS"
28761 else
28762   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28763 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28764 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28765   echo $ECHO_N "(cached) $ECHO_C" >&6
28766 else
28767   ac_check_lib_save_LIBS=$LIBS
28768 LIBS="-lgen  $LIBS"
28769 cat >conftest.$ac_ext <<_ACEOF
28770 /* confdefs.h.  */
28771 _ACEOF
28772 cat confdefs.h >>conftest.$ac_ext
28773 cat >>conftest.$ac_ext <<_ACEOF
28774 /* end confdefs.h.  */
28775
28776 /* Override any gcc2 internal prototype to avoid an error.  */
28777 #ifdef __cplusplus
28778 extern "C"
28779 #endif
28780 /* We use char because int might match the return type of a gcc2
28781    builtin and then its argument prototype would still apply.  */
28782 char getmntent ();
28783 int
28784 main ()
28785 {
28786 getmntent ();
28787   ;
28788   return 0;
28789 }
28790 _ACEOF
28791 rm -f conftest.$ac_objext conftest$ac_exeext
28792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28793   (eval $ac_link) 2>conftest.er1
28794   ac_status=$?
28795   grep -v '^ *+' conftest.er1 >conftest.err
28796   rm -f conftest.er1
28797   cat conftest.err >&5
28798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799   (exit $ac_status); } &&
28800          { ac_try='test -z "$ac_c_werror_flag"
28801                          || test ! -s conftest.err'
28802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803   (eval $ac_try) 2>&5
28804   ac_status=$?
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); }; } &&
28807          { ac_try='test -s conftest$ac_exeext'
28808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809   (eval $ac_try) 2>&5
28810   ac_status=$?
28811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812   (exit $ac_status); }; }; then
28813   ac_cv_lib_gen_getmntent=yes
28814 else
28815   echo "$as_me: failed program was:" >&5
28816 sed 's/^/| /' conftest.$ac_ext >&5
28817
28818 ac_cv_lib_gen_getmntent=no
28819 fi
28820 rm -f conftest.err conftest.$ac_objext \
28821       conftest$ac_exeext conftest.$ac_ext
28822 LIBS=$ac_check_lib_save_LIBS
28823 fi
28824 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28825 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28826 if test $ac_cv_lib_gen_getmntent = yes; then
28827   LIBS="-lgen $LIBS"
28828 fi
28829
28830 fi
28831
28832 fi
28833
28834
28835 for ac_func in getmntent
28836 do
28837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28838 echo "$as_me:$LINENO: checking for $ac_func" >&5
28839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28840 if eval "test \"\${$as_ac_var+set}\" = set"; then
28841   echo $ECHO_N "(cached) $ECHO_C" >&6
28842 else
28843   cat >conftest.$ac_ext <<_ACEOF
28844 /* confdefs.h.  */
28845 _ACEOF
28846 cat confdefs.h >>conftest.$ac_ext
28847 cat >>conftest.$ac_ext <<_ACEOF
28848 /* end confdefs.h.  */
28849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28851 #define $ac_func innocuous_$ac_func
28852
28853 /* System header to define __stub macros and hopefully few prototypes,
28854     which can conflict with char $ac_func (); below.
28855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28856     <limits.h> exists even on freestanding compilers.  */
28857
28858 #ifdef __STDC__
28859 # include <limits.h>
28860 #else
28861 # include <assert.h>
28862 #endif
28863
28864 #undef $ac_func
28865
28866 /* Override any gcc2 internal prototype to avoid an error.  */
28867 #ifdef __cplusplus
28868 extern "C"
28869 {
28870 #endif
28871 /* We use char because int might match the return type of a gcc2
28872    builtin and then its argument prototype would still apply.  */
28873 char $ac_func ();
28874 /* The GNU C library defines this for functions which it implements
28875     to always fail with ENOSYS.  Some functions are actually named
28876     something starting with __ and the normal name is an alias.  */
28877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28878 choke me
28879 #else
28880 char (*f) () = $ac_func;
28881 #endif
28882 #ifdef __cplusplus
28883 }
28884 #endif
28885
28886 int
28887 main ()
28888 {
28889 return f != $ac_func;
28890   ;
28891   return 0;
28892 }
28893 _ACEOF
28894 rm -f conftest.$ac_objext conftest$ac_exeext
28895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28896   (eval $ac_link) 2>conftest.er1
28897   ac_status=$?
28898   grep -v '^ *+' conftest.er1 >conftest.err
28899   rm -f conftest.er1
28900   cat conftest.err >&5
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); } &&
28903          { ac_try='test -z "$ac_c_werror_flag"
28904                          || test ! -s conftest.err'
28905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906   (eval $ac_try) 2>&5
28907   ac_status=$?
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); }; } &&
28910          { ac_try='test -s conftest$ac_exeext'
28911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912   (eval $ac_try) 2>&5
28913   ac_status=$?
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); }; }; then
28916   eval "$as_ac_var=yes"
28917 else
28918   echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28920
28921 eval "$as_ac_var=no"
28922 fi
28923 rm -f conftest.err conftest.$ac_objext \
28924       conftest$ac_exeext conftest.$ac_ext
28925 fi
28926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28927 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28928 if test `eval echo '${'$as_ac_var'}'` = yes; then
28929   cat >>confdefs.h <<_ACEOF
28930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28931 _ACEOF
28932
28933 fi
28934 done
28935
28936
28937 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28938 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28939 if test "${ac_cv_func_closedir_void+set}" = set; then
28940   echo $ECHO_N "(cached) $ECHO_C" >&6
28941 else
28942   if test "$cross_compiling" = yes; then
28943   ac_cv_func_closedir_void=yes
28944 else
28945   cat >conftest.$ac_ext <<_ACEOF
28946 /* confdefs.h.  */
28947 _ACEOF
28948 cat confdefs.h >>conftest.$ac_ext
28949 cat >>conftest.$ac_ext <<_ACEOF
28950 /* end confdefs.h.  */
28951 $ac_includes_default
28952 #include <$ac_header_dirent>
28953 #ifndef __cplusplus
28954 int closedir ();
28955 #endif
28956
28957 int
28958 main ()
28959 {
28960 exit (closedir (opendir (".")) != 0);
28961   ;
28962   return 0;
28963 }
28964 _ACEOF
28965 rm -f conftest$ac_exeext
28966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28967   (eval $ac_link) 2>&5
28968   ac_status=$?
28969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28972   (eval $ac_try) 2>&5
28973   ac_status=$?
28974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975   (exit $ac_status); }; }; then
28976   ac_cv_func_closedir_void=no
28977 else
28978   echo "$as_me: program exited with status $ac_status" >&5
28979 echo "$as_me: failed program was:" >&5
28980 sed 's/^/| /' conftest.$ac_ext >&5
28981
28982 ( exit $ac_status )
28983 ac_cv_func_closedir_void=yes
28984 fi
28985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28986 fi
28987 fi
28988 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28989 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28990 if test $ac_cv_func_closedir_void = yes; then
28991
28992 cat >>confdefs.h <<\_ACEOF
28993 #define CLOSEDIR_VOID 1
28994 _ACEOF
28995
28996 fi
28997
28998 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28999 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29000 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29001   echo $ECHO_N "(cached) $ECHO_C" >&6
29002 else
29003   if test "$cross_compiling" = yes; then
29004   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29005 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29006    { (exit 1); exit 1; }; }
29007 else
29008   cat >conftest.$ac_ext <<_ACEOF
29009 /* confdefs.h.  */
29010 _ACEOF
29011 cat confdefs.h >>conftest.$ac_ext
29012 cat >>conftest.$ac_ext <<_ACEOF
29013 /* end confdefs.h.  */
29014 #if HAVE_UNISTD_H
29015 # include <unistd.h>
29016 #endif
29017
29018 int
29019 main ()
29020 {
29021 /* If this system has a BSD-style setpgrp which takes arguments,
29022   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29023   exit successfully. */
29024   exit (setpgrp (1,1) == -1 ? 0 : 1);
29025   ;
29026   return 0;
29027 }
29028 _ACEOF
29029 rm -f conftest$ac_exeext
29030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29031   (eval $ac_link) 2>&5
29032   ac_status=$?
29033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036   (eval $ac_try) 2>&5
29037   ac_status=$?
29038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039   (exit $ac_status); }; }; then
29040   ac_cv_func_setpgrp_void=no
29041 else
29042   echo "$as_me: program exited with status $ac_status" >&5
29043 echo "$as_me: failed program was:" >&5
29044 sed 's/^/| /' conftest.$ac_ext >&5
29045
29046 ( exit $ac_status )
29047 ac_cv_func_setpgrp_void=yes
29048 fi
29049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29050 fi
29051 fi
29052 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29053 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29054 if test $ac_cv_func_setpgrp_void = yes; then
29055
29056 cat >>confdefs.h <<\_ACEOF
29057 #define SETPGRP_VOID 1
29058 _ACEOF
29059
29060 fi
29061                       # AC_FUNC_FNMATCH    dnl use local version
29062
29063
29064 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29065 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29066 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29067   echo $ECHO_N "(cached) $ECHO_C" >&6
29068 else
29069   ac_check_lib_save_LIBS=$LIBS
29070 LIBS="-lintl  $LIBS"
29071 cat >conftest.$ac_ext <<_ACEOF
29072 /* confdefs.h.  */
29073 _ACEOF
29074 cat confdefs.h >>conftest.$ac_ext
29075 cat >>conftest.$ac_ext <<_ACEOF
29076 /* end confdefs.h.  */
29077
29078 /* Override any gcc2 internal prototype to avoid an error.  */
29079 #ifdef __cplusplus
29080 extern "C"
29081 #endif
29082 /* We use char because int might match the return type of a gcc2
29083    builtin and then its argument prototype would still apply.  */
29084 char gettext ();
29085 int
29086 main ()
29087 {
29088 gettext ();
29089   ;
29090   return 0;
29091 }
29092 _ACEOF
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095   (eval $ac_link) 2>conftest.er1
29096   ac_status=$?
29097   grep -v '^ *+' conftest.er1 >conftest.err
29098   rm -f conftest.er1
29099   cat conftest.err >&5
29100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101   (exit $ac_status); } &&
29102          { ac_try='test -z "$ac_c_werror_flag"
29103                          || test ! -s conftest.err'
29104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29105   (eval $ac_try) 2>&5
29106   ac_status=$?
29107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29108   (exit $ac_status); }; } &&
29109          { ac_try='test -s conftest$ac_exeext'
29110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29111   (eval $ac_try) 2>&5
29112   ac_status=$?
29113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114   (exit $ac_status); }; }; then
29115   ac_cv_lib_intl_gettext=yes
29116 else
29117   echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29119
29120 ac_cv_lib_intl_gettext=no
29121 fi
29122 rm -f conftest.err conftest.$ac_objext \
29123       conftest$ac_exeext conftest.$ac_ext
29124 LIBS=$ac_check_lib_save_LIBS
29125 fi
29126 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29127 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29128 if test $ac_cv_lib_intl_gettext = yes; then
29129   LIBS="$LIBS -lintl"
29130 fi
29131
29132
29133
29134
29135 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29136 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29137 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29138   echo $ECHO_N "(cached) $ECHO_C" >&6
29139 else
29140   ac_check_lib_save_LIBS=$LIBS
29141 LIBS="-lsun  $LIBS"
29142 cat >conftest.$ac_ext <<_ACEOF
29143 /* confdefs.h.  */
29144 _ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h.  */
29148
29149 /* Override any gcc2 internal prototype to avoid an error.  */
29150 #ifdef __cplusplus
29151 extern "C"
29152 #endif
29153 /* We use char because int might match the return type of a gcc2
29154    builtin and then its argument prototype would still apply.  */
29155 char getpwnam ();
29156 int
29157 main ()
29158 {
29159 getpwnam ();
29160   ;
29161   return 0;
29162 }
29163 _ACEOF
29164 rm -f conftest.$ac_objext conftest$ac_exeext
29165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29166   (eval $ac_link) 2>conftest.er1
29167   ac_status=$?
29168   grep -v '^ *+' conftest.er1 >conftest.err
29169   rm -f conftest.er1
29170   cat conftest.err >&5
29171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172   (exit $ac_status); } &&
29173          { ac_try='test -z "$ac_c_werror_flag"
29174                          || test ! -s conftest.err'
29175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176   (eval $ac_try) 2>&5
29177   ac_status=$?
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); }; } &&
29180          { ac_try='test -s conftest$ac_exeext'
29181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182   (eval $ac_try) 2>&5
29183   ac_status=$?
29184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185   (exit $ac_status); }; }; then
29186   ac_cv_lib_sun_getpwnam=yes
29187 else
29188   echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29190
29191 ac_cv_lib_sun_getpwnam=no
29192 fi
29193 rm -f conftest.err conftest.$ac_objext \
29194       conftest$ac_exeext conftest.$ac_ext
29195 LIBS=$ac_check_lib_save_LIBS
29196 fi
29197 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29198 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29199 if test $ac_cv_lib_sun_getpwnam = yes; then
29200   cat >>confdefs.h <<_ACEOF
29201 #define HAVE_LIBSUN 1
29202 _ACEOF
29203
29204   LIBS="-lsun $LIBS"
29205
29206 fi
29207
29208
29209
29210 for ac_header in zlib.h
29211 do
29212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29214   echo "$as_me:$LINENO: checking for $ac_header" >&5
29215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29217   echo $ECHO_N "(cached) $ECHO_C" >&6
29218 fi
29219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29221 else
29222   # Is the header compilable?
29223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29225 cat >conftest.$ac_ext <<_ACEOF
29226 /* confdefs.h.  */
29227 _ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h.  */
29231 $ac_includes_default
29232 #include <$ac_header>
29233 _ACEOF
29234 rm -f conftest.$ac_objext
29235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29236   (eval $ac_compile) 2>conftest.er1
29237   ac_status=$?
29238   grep -v '^ *+' conftest.er1 >conftest.err
29239   rm -f conftest.er1
29240   cat conftest.err >&5
29241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242   (exit $ac_status); } &&
29243          { ac_try='test -z "$ac_c_werror_flag"
29244                          || test ! -s conftest.err'
29245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29246   (eval $ac_try) 2>&5
29247   ac_status=$?
29248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249   (exit $ac_status); }; } &&
29250          { ac_try='test -s conftest.$ac_objext'
29251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29252   (eval $ac_try) 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; }; then
29256   ac_header_compiler=yes
29257 else
29258   echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29260
29261 ac_header_compiler=no
29262 fi
29263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29265 echo "${ECHO_T}$ac_header_compiler" >&6
29266
29267 # Is the header present?
29268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29270 cat >conftest.$ac_ext <<_ACEOF
29271 /* confdefs.h.  */
29272 _ACEOF
29273 cat confdefs.h >>conftest.$ac_ext
29274 cat >>conftest.$ac_ext <<_ACEOF
29275 /* end confdefs.h.  */
29276 #include <$ac_header>
29277 _ACEOF
29278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29280   ac_status=$?
29281   grep -v '^ *+' conftest.er1 >conftest.err
29282   rm -f conftest.er1
29283   cat conftest.err >&5
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); } >/dev/null; then
29286   if test -s conftest.err; then
29287     ac_cpp_err=$ac_c_preproc_warn_flag
29288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29289   else
29290     ac_cpp_err=
29291   fi
29292 else
29293   ac_cpp_err=yes
29294 fi
29295 if test -z "$ac_cpp_err"; then
29296   ac_header_preproc=yes
29297 else
29298   echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29300
29301   ac_header_preproc=no
29302 fi
29303 rm -f conftest.err conftest.$ac_ext
29304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29305 echo "${ECHO_T}$ac_header_preproc" >&6
29306
29307 # So?  What about this header?
29308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29309   yes:no: )
29310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29314     ac_header_preproc=yes
29315     ;;
29316   no:yes:* )
29317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29329     (
29330       cat <<\_ASBOX
29331 ## ------------------------------------------ ##
29332 ## Report this to the AC_PACKAGE_NAME lists.  ##
29333 ## ------------------------------------------ ##
29334 _ASBOX
29335     ) |
29336       sed "s/^/$as_me: WARNING:     /" >&2
29337     ;;
29338 esac
29339 echo "$as_me:$LINENO: checking for $ac_header" >&5
29340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29342   echo $ECHO_N "(cached) $ECHO_C" >&6
29343 else
29344   eval "$as_ac_Header=\$ac_header_preproc"
29345 fi
29346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29348
29349 fi
29350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29351   cat >>confdefs.h <<_ACEOF
29352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29353 _ACEOF
29354
29355 fi
29356
29357 done
29358
29359 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29360 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29361 if test "${ac_cv_lib_z_deflate+set}" = set; then
29362   echo $ECHO_N "(cached) $ECHO_C" >&6
29363 else
29364   ac_check_lib_save_LIBS=$LIBS
29365 LIBS="-lz  $LIBS"
29366 cat >conftest.$ac_ext <<_ACEOF
29367 /* confdefs.h.  */
29368 _ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h.  */
29372
29373 /* Override any gcc2 internal prototype to avoid an error.  */
29374 #ifdef __cplusplus
29375 extern "C"
29376 #endif
29377 /* We use char because int might match the return type of a gcc2
29378    builtin and then its argument prototype would still apply.  */
29379 char deflate ();
29380 int
29381 main ()
29382 {
29383 deflate ();
29384   ;
29385   return 0;
29386 }
29387 _ACEOF
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29390   (eval $ac_link) 2>conftest.er1
29391   ac_status=$?
29392   grep -v '^ *+' conftest.er1 >conftest.err
29393   rm -f conftest.er1
29394   cat conftest.err >&5
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); } &&
29397          { ac_try='test -z "$ac_c_werror_flag"
29398                          || test ! -s conftest.err'
29399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400   (eval $ac_try) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); }; } &&
29404          { ac_try='test -s conftest$ac_exeext'
29405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406   (eval $ac_try) 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   ac_cv_lib_z_deflate=yes
29411 else
29412   echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29414
29415 ac_cv_lib_z_deflate=no
29416 fi
29417 rm -f conftest.err conftest.$ac_objext \
29418       conftest$ac_exeext conftest.$ac_ext
29419 LIBS=$ac_check_lib_save_LIBS
29420 fi
29421 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29422 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29423 if test $ac_cv_lib_z_deflate = yes; then
29424   FDLIBS="-lz"
29425 fi
29426
29427 have_zlib=no
29428 if test x$FDLIBS = x-lz; then
29429   cat >>confdefs.h <<\_ACEOF
29430 #define HAVE_LIBZ 1
29431 _ACEOF
29432
29433   have_zlib=yes
29434 fi
29435
29436 #
29437 # Check for ACL libraries
29438 #
29439 have_acl=no
29440 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29441   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29442 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29443 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29444   echo $ECHO_N "(cached) $ECHO_C" >&6
29445 fi
29446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29447 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29448 else
29449   # Is the header compilable?
29450 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29451 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29452 cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h.  */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h.  */
29458 $ac_includes_default
29459 #include <sys/acl.h>
29460 _ACEOF
29461 rm -f conftest.$ac_objext
29462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29463   (eval $ac_compile) 2>conftest.er1
29464   ac_status=$?
29465   grep -v '^ *+' conftest.er1 >conftest.err
29466   rm -f conftest.er1
29467   cat conftest.err >&5
29468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469   (exit $ac_status); } &&
29470          { ac_try='test -z "$ac_c_werror_flag"
29471                          || test ! -s conftest.err'
29472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29473   (eval $ac_try) 2>&5
29474   ac_status=$?
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); }; } &&
29477          { ac_try='test -s conftest.$ac_objext'
29478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479   (eval $ac_try) 2>&5
29480   ac_status=$?
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); }; }; then
29483   ac_header_compiler=yes
29484 else
29485   echo "$as_me: failed program was:" >&5
29486 sed 's/^/| /' conftest.$ac_ext >&5
29487
29488 ac_header_compiler=no
29489 fi
29490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29492 echo "${ECHO_T}$ac_header_compiler" >&6
29493
29494 # Is the header present?
29495 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29496 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29497 cat >conftest.$ac_ext <<_ACEOF
29498 /* confdefs.h.  */
29499 _ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h.  */
29503 #include <sys/acl.h>
29504 _ACEOF
29505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29507   ac_status=$?
29508   grep -v '^ *+' conftest.er1 >conftest.err
29509   rm -f conftest.er1
29510   cat conftest.err >&5
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); } >/dev/null; then
29513   if test -s conftest.err; then
29514     ac_cpp_err=$ac_c_preproc_warn_flag
29515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29516   else
29517     ac_cpp_err=
29518   fi
29519 else
29520   ac_cpp_err=yes
29521 fi
29522 if test -z "$ac_cpp_err"; then
29523   ac_header_preproc=yes
29524 else
29525   echo "$as_me: failed program was:" >&5
29526 sed 's/^/| /' conftest.$ac_ext >&5
29527
29528   ac_header_preproc=no
29529 fi
29530 rm -f conftest.err conftest.$ac_ext
29531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29532 echo "${ECHO_T}$ac_header_preproc" >&6
29533
29534 # So?  What about this header?
29535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29536   yes:no: )
29537     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29538 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29539     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29540 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29541     ac_header_preproc=yes
29542     ;;
29543   no:yes:* )
29544     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29545 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29546     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29547 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29548     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29549 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29550     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29551 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29552     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29553 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29554     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29555 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29556     (
29557       cat <<\_ASBOX
29558 ## ------------------------------------------ ##
29559 ## Report this to the AC_PACKAGE_NAME lists.  ##
29560 ## ------------------------------------------ ##
29561 _ASBOX
29562     ) |
29563       sed "s/^/$as_me: WARNING:     /" >&2
29564     ;;
29565 esac
29566 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29567 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29568 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29569   echo $ECHO_N "(cached) $ECHO_C" >&6
29570 else
29571   ac_cv_header_sys_acl_h=$ac_header_preproc
29572 fi
29573 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29574 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29575
29576 fi
29577
29578
29579 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29580 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29581 if test "${ac_cv_func_acl_get_file+set}" = set; then
29582   echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584   cat >conftest.$ac_ext <<_ACEOF
29585 /* confdefs.h.  */
29586 _ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h.  */
29590 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29592 #define acl_get_file innocuous_acl_get_file
29593
29594 /* System header to define __stub macros and hopefully few prototypes,
29595     which can conflict with char acl_get_file (); below.
29596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29597     <limits.h> exists even on freestanding compilers.  */
29598
29599 #ifdef __STDC__
29600 # include <limits.h>
29601 #else
29602 # include <assert.h>
29603 #endif
29604
29605 #undef acl_get_file
29606
29607 /* Override any gcc2 internal prototype to avoid an error.  */
29608 #ifdef __cplusplus
29609 extern "C"
29610 {
29611 #endif
29612 /* We use char because int might match the return type of a gcc2
29613    builtin and then its argument prototype would still apply.  */
29614 char acl_get_file ();
29615 /* The GNU C library defines this for functions which it implements
29616     to always fail with ENOSYS.  Some functions are actually named
29617     something starting with __ and the normal name is an alias.  */
29618 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29619 choke me
29620 #else
29621 char (*f) () = acl_get_file;
29622 #endif
29623 #ifdef __cplusplus
29624 }
29625 #endif
29626
29627 int
29628 main ()
29629 {
29630 return f != acl_get_file;
29631   ;
29632   return 0;
29633 }
29634 _ACEOF
29635 rm -f conftest.$ac_objext conftest$ac_exeext
29636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29637   (eval $ac_link) 2>conftest.er1
29638   ac_status=$?
29639   grep -v '^ *+' conftest.er1 >conftest.err
29640   rm -f conftest.er1
29641   cat conftest.err >&5
29642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); } &&
29644          { ac_try='test -z "$ac_c_werror_flag"
29645                          || test ! -s conftest.err'
29646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647   (eval $ac_try) 2>&5
29648   ac_status=$?
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); }; } &&
29651          { ac_try='test -s conftest$ac_exeext'
29652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653   (eval $ac_try) 2>&5
29654   ac_status=$?
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); }; }; then
29657   ac_cv_func_acl_get_file=yes
29658 else
29659   echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29661
29662 ac_cv_func_acl_get_file=no
29663 fi
29664 rm -f conftest.err conftest.$ac_objext \
29665       conftest$ac_exeext conftest.$ac_ext
29666 fi
29667 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29668 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29669 if test $ac_cv_func_acl_get_file = yes; then
29670   have_acl=yes
29671 else
29672   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29673 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29674 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29675   echo $ECHO_N "(cached) $ECHO_C" >&6
29676 else
29677   ac_check_lib_save_LIBS=$LIBS
29678 LIBS="-lacl  $LIBS"
29679 cat >conftest.$ac_ext <<_ACEOF
29680 /* confdefs.h.  */
29681 _ACEOF
29682 cat confdefs.h >>conftest.$ac_ext
29683 cat >>conftest.$ac_ext <<_ACEOF
29684 /* end confdefs.h.  */
29685
29686 /* Override any gcc2 internal prototype to avoid an error.  */
29687 #ifdef __cplusplus
29688 extern "C"
29689 #endif
29690 /* We use char because int might match the return type of a gcc2
29691    builtin and then its argument prototype would still apply.  */
29692 char acl_get_file ();
29693 int
29694 main ()
29695 {
29696 acl_get_file ();
29697   ;
29698   return 0;
29699 }
29700 _ACEOF
29701 rm -f conftest.$ac_objext conftest$ac_exeext
29702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29703   (eval $ac_link) 2>conftest.er1
29704   ac_status=$?
29705   grep -v '^ *+' conftest.er1 >conftest.err
29706   rm -f conftest.er1
29707   cat conftest.err >&5
29708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); } &&
29710          { ac_try='test -z "$ac_c_werror_flag"
29711                          || test ! -s conftest.err'
29712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713   (eval $ac_try) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; } &&
29717          { ac_try='test -s conftest$ac_exeext'
29718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719   (eval $ac_try) 2>&5
29720   ac_status=$?
29721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722   (exit $ac_status); }; }; then
29723   ac_cv_lib_acl_acl_get_file=yes
29724 else
29725   echo "$as_me: failed program was:" >&5
29726 sed 's/^/| /' conftest.$ac_ext >&5
29727
29728 ac_cv_lib_acl_acl_get_file=no
29729 fi
29730 rm -f conftest.err conftest.$ac_objext \
29731       conftest$ac_exeext conftest.$ac_ext
29732 LIBS=$ac_check_lib_save_LIBS
29733 fi
29734 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29735 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29736 if test $ac_cv_lib_acl_acl_get_file = yes; then
29737   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29738 else
29739   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29740 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29741 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29742   echo $ECHO_N "(cached) $ECHO_C" >&6
29743 else
29744   ac_check_lib_save_LIBS=$LIBS
29745 LIBS="-lsec  $LIBS"
29746 cat >conftest.$ac_ext <<_ACEOF
29747 /* confdefs.h.  */
29748 _ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h.  */
29752
29753 /* Override any gcc2 internal prototype to avoid an error.  */
29754 #ifdef __cplusplus
29755 extern "C"
29756 #endif
29757 /* We use char because int might match the return type of a gcc2
29758    builtin and then its argument prototype would still apply.  */
29759 char acltotext ();
29760 int
29761 main ()
29762 {
29763 acltotext ();
29764   ;
29765   return 0;
29766 }
29767 _ACEOF
29768 rm -f conftest.$ac_objext conftest$ac_exeext
29769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29770   (eval $ac_link) 2>conftest.er1
29771   ac_status=$?
29772   grep -v '^ *+' conftest.er1 >conftest.err
29773   rm -f conftest.er1
29774   cat conftest.err >&5
29775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776   (exit $ac_status); } &&
29777          { ac_try='test -z "$ac_c_werror_flag"
29778                          || test ! -s conftest.err'
29779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780   (eval $ac_try) 2>&5
29781   ac_status=$?
29782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783   (exit $ac_status); }; } &&
29784          { ac_try='test -s conftest$ac_exeext'
29785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786   (eval $ac_try) 2>&5
29787   ac_status=$?
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); }; }; then
29790   ac_cv_lib_sec_acltotext=yes
29791 else
29792   echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29794
29795 ac_cv_lib_sec_acltotext=no
29796 fi
29797 rm -f conftest.err conftest.$ac_objext \
29798       conftest$ac_exeext conftest.$ac_ext
29799 LIBS=$ac_check_lib_save_LIBS
29800 fi
29801 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29802 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29803 if test $ac_cv_lib_sec_acltotext = yes; then
29804   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29805 fi
29806
29807
29808 fi
29809
29810
29811 fi
29812
29813 if test $have_acl = yes; then
29814    cat >>confdefs.h <<\_ACEOF
29815 #define HAVE_ACL 1
29816 _ACEOF
29817
29818 fi
29819
29820 PTHREAD_LIB=""
29821 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29822 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29823 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29824   echo $ECHO_N "(cached) $ECHO_C" >&6
29825 else
29826   ac_check_lib_save_LIBS=$LIBS
29827 LIBS="-lpthread  $LIBS"
29828 cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834
29835 /* Override any gcc2 internal prototype to avoid an error.  */
29836 #ifdef __cplusplus
29837 extern "C"
29838 #endif
29839 /* We use char because int might match the return type of a gcc2
29840    builtin and then its argument prototype would still apply.  */
29841 char pthread_create ();
29842 int
29843 main ()
29844 {
29845 pthread_create ();
29846   ;
29847   return 0;
29848 }
29849 _ACEOF
29850 rm -f conftest.$ac_objext conftest$ac_exeext
29851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29852   (eval $ac_link) 2>conftest.er1
29853   ac_status=$?
29854   grep -v '^ *+' conftest.er1 >conftest.err
29855   rm -f conftest.er1
29856   cat conftest.err >&5
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); } &&
29859          { ac_try='test -z "$ac_c_werror_flag"
29860                          || test ! -s conftest.err'
29861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862   (eval $ac_try) 2>&5
29863   ac_status=$?
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); }; } &&
29866          { ac_try='test -s conftest$ac_exeext'
29867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868   (eval $ac_try) 2>&5
29869   ac_status=$?
29870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871   (exit $ac_status); }; }; then
29872   ac_cv_lib_pthread_pthread_create=yes
29873 else
29874   echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29876
29877 ac_cv_lib_pthread_pthread_create=no
29878 fi
29879 rm -f conftest.err conftest.$ac_objext \
29880       conftest$ac_exeext conftest.$ac_ext
29881 LIBS=$ac_check_lib_save_LIBS
29882 fi
29883 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29884 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29885 if test $ac_cv_lib_pthread_pthread_create = yes; then
29886   PTHREAD_LIB="-lpthread"
29887 else
29888   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29889 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29890 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29891   echo $ECHO_N "(cached) $ECHO_C" >&6
29892 else
29893   ac_check_lib_save_LIBS=$LIBS
29894 LIBS="-lpthreads  $LIBS"
29895 cat >conftest.$ac_ext <<_ACEOF
29896 /* confdefs.h.  */
29897 _ACEOF
29898 cat confdefs.h >>conftest.$ac_ext
29899 cat >>conftest.$ac_ext <<_ACEOF
29900 /* end confdefs.h.  */
29901
29902 /* Override any gcc2 internal prototype to avoid an error.  */
29903 #ifdef __cplusplus
29904 extern "C"
29905 #endif
29906 /* We use char because int might match the return type of a gcc2
29907    builtin and then its argument prototype would still apply.  */
29908 char pthread_create ();
29909 int
29910 main ()
29911 {
29912 pthread_create ();
29913   ;
29914   return 0;
29915 }
29916 _ACEOF
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29919   (eval $ac_link) 2>conftest.er1
29920   ac_status=$?
29921   grep -v '^ *+' conftest.er1 >conftest.err
29922   rm -f conftest.er1
29923   cat conftest.err >&5
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); } &&
29926          { ac_try='test -z "$ac_c_werror_flag"
29927                          || test ! -s conftest.err'
29928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929   (eval $ac_try) 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); }; } &&
29933          { ac_try='test -s conftest$ac_exeext'
29934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935   (eval $ac_try) 2>&5
29936   ac_status=$?
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); }; }; then
29939   ac_cv_lib_pthreads_pthread_create=yes
29940 else
29941   echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29943
29944 ac_cv_lib_pthreads_pthread_create=no
29945 fi
29946 rm -f conftest.err conftest.$ac_objext \
29947       conftest$ac_exeext conftest.$ac_ext
29948 LIBS=$ac_check_lib_save_LIBS
29949 fi
29950 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29951 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29952 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29953   PTHREAD_LIB="-lpthreads"
29954 else
29955   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29956 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29957 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   ac_check_lib_save_LIBS=$LIBS
29961 LIBS="-lc_r  $LIBS"
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h.  */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h.  */
29968
29969 /* Override any gcc2 internal prototype to avoid an error.  */
29970 #ifdef __cplusplus
29971 extern "C"
29972 #endif
29973 /* We use char because int might match the return type of a gcc2
29974    builtin and then its argument prototype would still apply.  */
29975 char pthread_create ();
29976 int
29977 main ()
29978 {
29979 pthread_create ();
29980   ;
29981   return 0;
29982 }
29983 _ACEOF
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29986   (eval $ac_link) 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } &&
29993          { ac_try='test -z "$ac_c_werror_flag"
29994                          || test ! -s conftest.err'
29995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29996   (eval $ac_try) 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; } &&
30000          { ac_try='test -s conftest$ac_exeext'
30001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30002   (eval $ac_try) 2>&5
30003   ac_status=$?
30004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005   (exit $ac_status); }; }; then
30006   ac_cv_lib_c_r_pthread_create=yes
30007 else
30008   echo "$as_me: failed program was:" >&5
30009 sed 's/^/| /' conftest.$ac_ext >&5
30010
30011 ac_cv_lib_c_r_pthread_create=no
30012 fi
30013 rm -f conftest.err conftest.$ac_objext \
30014       conftest$ac_exeext conftest.$ac_ext
30015 LIBS=$ac_check_lib_save_LIBS
30016 fi
30017 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30018 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30019 if test $ac_cv_lib_c_r_pthread_create = yes; then
30020   PTHREAD_LIB="-lc_r"
30021 else
30022   echo "$as_me:$LINENO: checking for pthread_create" >&5
30023 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30024 if test "${ac_cv_func_pthread_create+set}" = set; then
30025   echo $ECHO_N "(cached) $ECHO_C" >&6
30026 else
30027   cat >conftest.$ac_ext <<_ACEOF
30028 /* confdefs.h.  */
30029 _ACEOF
30030 cat confdefs.h >>conftest.$ac_ext
30031 cat >>conftest.$ac_ext <<_ACEOF
30032 /* end confdefs.h.  */
30033 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30035 #define pthread_create innocuous_pthread_create
30036
30037 /* System header to define __stub macros and hopefully few prototypes,
30038     which can conflict with char pthread_create (); below.
30039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30040     <limits.h> exists even on freestanding compilers.  */
30041
30042 #ifdef __STDC__
30043 # include <limits.h>
30044 #else
30045 # include <assert.h>
30046 #endif
30047
30048 #undef pthread_create
30049
30050 /* Override any gcc2 internal prototype to avoid an error.  */
30051 #ifdef __cplusplus
30052 extern "C"
30053 {
30054 #endif
30055 /* We use char because int might match the return type of a gcc2
30056    builtin and then its argument prototype would still apply.  */
30057 char pthread_create ();
30058 /* The GNU C library defines this for functions which it implements
30059     to always fail with ENOSYS.  Some functions are actually named
30060     something starting with __ and the normal name is an alias.  */
30061 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30062 choke me
30063 #else
30064 char (*f) () = pthread_create;
30065 #endif
30066 #ifdef __cplusplus
30067 }
30068 #endif
30069
30070 int
30071 main ()
30072 {
30073 return f != pthread_create;
30074   ;
30075   return 0;
30076 }
30077 _ACEOF
30078 rm -f conftest.$ac_objext conftest$ac_exeext
30079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30080   (eval $ac_link) 2>conftest.er1
30081   ac_status=$?
30082   grep -v '^ *+' conftest.er1 >conftest.err
30083   rm -f conftest.er1
30084   cat conftest.err >&5
30085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086   (exit $ac_status); } &&
30087          { ac_try='test -z "$ac_c_werror_flag"
30088                          || test ! -s conftest.err'
30089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090   (eval $ac_try) 2>&5
30091   ac_status=$?
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); }; } &&
30094          { ac_try='test -s conftest$ac_exeext'
30095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096   (eval $ac_try) 2>&5
30097   ac_status=$?
30098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099   (exit $ac_status); }; }; then
30100   ac_cv_func_pthread_create=yes
30101 else
30102   echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30104
30105 ac_cv_func_pthread_create=no
30106 fi
30107 rm -f conftest.err conftest.$ac_objext \
30108       conftest$ac_exeext conftest.$ac_ext
30109 fi
30110 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30111 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30112
30113
30114 fi
30115
30116
30117 fi
30118
30119
30120 fi
30121
30122
30123
30124 cat >>confdefs.h <<\_ACEOF
30125 #define FDLIBS 1
30126 _ACEOF
30127
30128
30129
30130 CFLAGS=${CFLAGS--O}
30131
30132 if test x$have_gcc = xyes ; then
30133    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30134    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30135 fi
30136 LDFLAGS=${LDFLAGS--O}
30137 DB_LIBS="${SQL_LFLAGS}"
30138 CPPFLAGS="$CPPFLAGS"
30139 CFLAGS="$CFLAGS"
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156 OBJLIST=
30157
30158
30159 lld="lld"
30160 llu="llu"
30161
30162 WCFLAGS=
30163 WLDFLAGS=
30164
30165 #
30166 # Finally we set appropriate distribution specific
30167 #  variables and defaults
30168 #
30169 # PFILES are platform specific files
30170 PFILES="platforms/Makefile"
30171 PSCMD="ps -e"
30172 WIN32=
30173 MACOSX=
30174 hostname=`uname -n | cut -d '.' -f 1`
30175 if test x${hostname} = x ; then
30176   hostname="localhost"
30177 fi
30178 case "$DISTNAME" in
30179 aix)
30180         DISTVER=`uname -r`
30181         PSCMD="ps -e -o pid,comm"
30182         PFILES="${PFILES} \
30183            platforms/aix/Makefile"
30184         TAPEDRIVE="/dev/rmt0.1"
30185   ;;
30186 alpha)
30187         DISTVER=`uname -r`
30188         PTHREAD_LIB="-lpthread -lexc"
30189         if test "${CC}" = "gcc" ; then
30190            lld="lld"
30191            llu="llu"
30192         else
30193            lld="ld"
30194            llu="lu"
30195         fi
30196         TAPEDRIVE="/dev/nrmt0"
30197   ;;
30198 bsdi)
30199         DISTVER=`uname -a |awk '{print $3}'`
30200         TAPEDRIVE="/dev/nrmt0"
30201         PTHREAD_LIB="-pthread"
30202         CFLAGS="${CFLAGS} -pthread"
30203         PSCMD="ps -ax -o pid,command"
30204         lld="qd"
30205         llu="qu"
30206         PFILES="${PFILES} \
30207             platforms/bsdi/Makefile \
30208             platforms/bsdi/bacula-fd \
30209             platforms/bsdi/bacula-sd \
30210             platforms/bsdi/bacula-dir"
30211         largefile_support="yes"
30212   ;;
30213 cygwin)
30214         DISTVER=`uname -a |awk '{print $3}'`
30215         TAPEDRIVE="/dev/nrst0"
30216         WIN32=win32
30217         WCFLAGS="-mwindows"
30218         WLDFLAGS="-mwindows"
30219   ;;
30220 darwin)
30221         DISTVER=`uname -r`
30222         TAPEDRIVE="/dev/nst0"
30223         PSCMD="ps -e -o pid,command"
30224         MACOSX=macosx
30225         PFILES="${PFILES} \
30226            platforms/darwin/Makefile"
30227   ;;
30228 debian)
30229         DISTVER=`cat /etc/debian_version`
30230         TAPEDRIVE="/dev/nrst0"
30231         PSCMD="ps -e -o pid,command"
30232   ;;
30233 freebsd)
30234         DISTVER=`uname -a |awk '{print $3}'`
30235         VER=`echo $DISTVER | cut -c 1`
30236         if test x$VER = x4 ; then
30237            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30238            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30239         fi
30240         lld="qd"
30241         llu="qu"
30242         TAPEDRIVE="/dev/nrsa0"
30243         PSCMD="ps -ax -o pid,command"
30244         PFILES="${PFILES} \
30245             platforms/freebsd/Makefile \
30246             platforms/freebsd/bacula-fd \
30247             platforms/freebsd/bacula-sd \
30248             platforms/freebsd/bacula-dir"
30249         largefile_support="yes"
30250   ;;
30251 hpux)
30252         PSCMD="UNIX95=1; ps -e -o pid,comm"
30253         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30254         DISTVER=`uname -r`
30255         TAPEDRIVE="/dev/rmt/0hnb"
30256         PTHREAD_LIB="-lpthread"
30257         cat >>confdefs.h <<\_ACEOF
30258 #define _INCLUDE_LONGLONG 1
30259 _ACEOF
30260
30261   ;;
30262 irix)
30263         DISTVER=`uname -r`
30264         TAPEDRIVE="/dev/rmt/0cbn"
30265         PSCMD="ps -e -o pid,comm"
30266         PFILES="${PFILES} \
30267             platforms/irix/Makefile \
30268             platforms/irix/bacula-fd \
30269             platforms/irix/bacula-sd \
30270             platforms/irix/bacula-dir"
30271   ;;
30272 netbsd)
30273         DISTVER=`uname -a |awk '{print $3}'`
30274         lld="qd"
30275         llu="qu"
30276         TAPEDRIVE="/dev/nrst0"
30277         PSCMD="ps -ax -o pid,command"
30278         PTHREAD_LIB="-pthread"
30279         CFLAGS="${CFLAGS} -pthread"
30280   ;;
30281 openbsd)
30282         DISTVER=`uname -a |awk '{print $3}'`
30283         lld="qd"
30284         llu="qu"
30285         TAPEDRIVE="/dev/nrst0"
30286         PSCMD="ps -ax -o pid,command"
30287         PTHREAD_LIB="-pthread"
30288         CFLAGS="${CFLAGS} -pthread"
30289         PFILES="${PFILES} \
30290             platforms/openbsd/Makefile \
30291             platforms/openbsd/bacula-fd \
30292             platforms/openbsd/bacula-sd \
30293             platforms/openbsd/bacula-dir"
30294   ;;
30295 redhat)
30296         if test -f /etc/whitebox-release ; then
30297            f=/etc/whitebox-release
30298         else
30299            f=/etc/redhat-release
30300         fi
30301         if test `cat $f | grep release |\
30302                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30303            DISTVER="Enterprise "`cat $f | grep release |\
30304                     cut -f 6 -d ' '`
30305         else
30306             DISTVER=`cat /etc/redhat-release | grep release |\
30307                      cut -f 5 -d ' '`
30308         fi
30309         TAPEDRIVE="/dev/nst0"
30310         PSCMD="ps -e -o pid,command"
30311         PFILES="${PFILES} \
30312             platforms/redhat/Makefile \
30313             platforms/redhat/bacula-fd \
30314             platforms/redhat/bacula-sd \
30315             platforms/redhat/bacula-dir \
30316             platforms/redhat/bacula.spec \
30317             "
30318   ;;
30319 mandrake)
30320         DISTVER=`cat /etc/mandrake-release | grep release |\
30321            cut -f 5 -d ' '`
30322         TAPEDRIVE="/dev/nst0"
30323         PSCMD="ps -e -o pid,command"
30324         PFILES="${PFILES} \
30325             platforms/mandrake/Makefile \
30326             platforms/mandrake/bacula-fd \
30327             platforms/mandrake/bacula-sd \
30328             platforms/mandrake/bacula-dir \
30329             platforms/mandrake/bacula.spec \
30330             "
30331   ;;
30332 gentoo)
30333         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30334         TAPEDRIVE="/dev/nst0"
30335         PSCMD="ps -e -o pid,command"
30336         PFILES="${PFILES} \
30337             platforms/gentoo/Makefile \
30338          platforms/gentoo/bacula-init \
30339             platforms/gentoo/bacula-fd \
30340             platforms/gentoo/bacula-sd \
30341             platforms/gentoo/bacula-dir"
30342   ;;
30343 slackware)
30344         DISTVER=`cat /etc/slackware-version`
30345         TAPEDRIVE="/dev/nst0"
30346         PSCMD="ps -e -o pid,command"
30347         PFILES="${PFILES} \
30348             platforms/slackware/Makefile \
30349             platforms/slackware/rc.bacula-fd \
30350             platforms/slackware/rc.bacula-sd \
30351             platforms/slackware/rc.bacula-dir\
30352             platforms/slackware/functions.bacula"
30353   ;;
30354 solaris)
30355         DISTVER=`uname -r`
30356         TAPEDRIVE="/dev/rmt/0cbn"
30357         PSCMD="ps -e -o pid,comm"
30358         PFILES="${PFILES} \
30359             platforms/solaris/Makefile \
30360             platforms/solaris/bacula-fd \
30361             platforms/solaris/bacula-sd \
30362             platforms/solaris/bacula-dir"
30363         if test x$DISTVER = x5.6 ; then
30364             cat >>confdefs.h <<\_ACEOF
30365 #define HAVE_OLD_SOCKOPT 1
30366 _ACEOF
30367
30368         fi
30369         LIBS="$LIBS -lresolv"
30370   ;;
30371 suse)
30372         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30373             cut -f 3 -d ' '`
30374         TAPEDRIVE="/dev/nst0"
30375         PSCMD="ps -e -o pid,command"
30376         PFILES="${PFILES} \
30377             platforms/suse/Makefile \
30378             platforms/suse/bacula-fd \
30379             platforms/suse/bacula-sd \
30380             platforms/suse/bacula-dir \
30381             platforms/suse/bacula \
30382             platforms/suse/bacula.spec"
30383   ;;
30384 suse5)
30385         DISTNAME=suse
30386         DISTVER=5.x
30387         TAPEDRIVE="/dev/nst0"
30388         PSCMD="ps -e -o pid,command"
30389         PFILES="${PFILES} \
30390             platforms/suse/Makefile \
30391             platforms/suse/bacula-fd \
30392             platforms/suse/bacula-sd \
30393             platforms/suse/bacula-dir"
30394   ;;
30395 unknown)
30396         DISTVER=unknown
30397         TAPEDRIVE="/dev/nst0"
30398   ;;
30399 *)
30400   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30401   ;;
30402 esac
30403
30404
30405
30406 LIBS="$PTHREAD_LIB $LIBS"
30407
30408 cat >>confdefs.h <<_ACEOF
30409 #define lld "$lld"
30410 _ACEOF
30411
30412 cat >>confdefs.h <<_ACEOF
30413 #define llu "$llu"
30414 _ACEOF
30415
30416
30417
30418
30419
30420
30421
30422
30423 MCOMMON=./autoconf/Make.common
30424
30425
30426 if test "x${subsysdir}" = "x${sbindir}" ; then
30427    echo " "
30428    echo " "
30429    echo "You have set both --sbindir and --with-subsys-dir"
30430    echo "  equal to: ${subsysdir} "
30431    echo "This is not permitted. Please reconfigure."
30432    echo " "
30433    echo "Aborting configuration ..."
30434    echo " "
30435    echo " "
30436    exit 1
30437 fi
30438
30439                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30440           ac_config_commands="$ac_config_commands default"
30441 cat >confcache <<\_ACEOF
30442 # This file is a shell script that caches the results of configure
30443 # tests run on this system so they can be shared between configure
30444 # scripts and configure runs, see configure's option --config-cache.
30445 # It is not useful on other systems.  If it contains results you don't
30446 # want to keep, you may remove or edit it.
30447 #
30448 # config.status only pays attention to the cache file if you give it
30449 # the --recheck option to rerun configure.
30450 #
30451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30453 # following values.
30454
30455 _ACEOF
30456
30457 # The following way of writing the cache mishandles newlines in values,
30458 # but we know of no workaround that is simple, portable, and efficient.
30459 # So, don't put newlines in cache variables' values.
30460 # Ultrix sh set writes to stderr and can't be redirected directly,
30461 # and sets the high bit in the cache file unless we assign to the vars.
30462 {
30463   (set) 2>&1 |
30464     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30465     *ac_space=\ *)
30466       # `set' does not quote correctly, so add quotes (double-quote
30467       # substitution turns \\\\ into \\, and sed turns \\ into \).
30468       sed -n \
30469         "s/'/'\\\\''/g;
30470           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30471       ;;
30472     *)
30473       # `set' quotes correctly as required by POSIX, so do not add quotes.
30474       sed -n \
30475         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30476       ;;
30477     esac;
30478 } |
30479   sed '
30480      t clear
30481      : clear
30482      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30483      t end
30484      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30485      : end' >>confcache
30486 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30487   if test -w $cache_file; then
30488     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30489     cat confcache >$cache_file
30490   else
30491     echo "not updating unwritable cache $cache_file"
30492   fi
30493 fi
30494 rm -f confcache
30495
30496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30497 # Let make expand exec_prefix.
30498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30499
30500 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30501 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30502 # trailing colons and then remove the whole line if VPATH becomes empty
30503 # (actually we leave an empty line to preserve line numbers).
30504 if test "x$srcdir" = x.; then
30505   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30506 s/:*\$(srcdir):*/:/;
30507 s/:*\${srcdir}:*/:/;
30508 s/:*@srcdir@:*/:/;
30509 s/^\([^=]*=[     ]*\):*/\1/;
30510 s/:*$//;
30511 s/^[^=]*=[       ]*$//;
30512 }'
30513 fi
30514
30515 DEFS=-DHAVE_CONFIG_H
30516
30517 ac_libobjs=
30518 ac_ltlibobjs=
30519 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30520   # 1. Remove the extension, and $U if already installed.
30521   ac_i=`echo "$ac_i" |
30522          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30523   # 2. Add them.
30524   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30525   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30526 done
30527 LIBOBJS=$ac_libobjs
30528
30529 LTLIBOBJS=$ac_ltlibobjs
30530
30531
30532
30533 : ${CONFIG_STATUS=./config.status}
30534 ac_clean_files_save=$ac_clean_files
30535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30538 cat >$CONFIG_STATUS <<_ACEOF
30539 #! $SHELL
30540 # Generated by $as_me.
30541 # Run this file to recreate the current configuration.
30542 # Compiler output produced by configure, useful for debugging
30543 # configure, is in config.log if it exists.
30544
30545 debug=false
30546 ac_cs_recheck=false
30547 ac_cs_silent=false
30548 SHELL=\${CONFIG_SHELL-$SHELL}
30549 _ACEOF
30550
30551 cat >>$CONFIG_STATUS <<\_ACEOF
30552 ## --------------------- ##
30553 ## M4sh Initialization.  ##
30554 ## --------------------- ##
30555
30556 # Be Bourne compatible
30557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30558   emulate sh
30559   NULLCMD=:
30560   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30561   # is contrary to our usage.  Disable this feature.
30562   alias -g '${1+"$@"}'='"$@"'
30563 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30564   set -o posix
30565 fi
30566 DUALCASE=1; export DUALCASE # for MKS sh
30567
30568 # Support unset when possible.
30569 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30570   as_unset=unset
30571 else
30572   as_unset=false
30573 fi
30574
30575
30576 # Work around bugs in pre-3.0 UWIN ksh.
30577 $as_unset ENV MAIL MAILPATH
30578 PS1='$ '
30579 PS2='> '
30580 PS4='+ '
30581
30582 # NLS nuisances.
30583 for as_var in \
30584   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30585   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30586   LC_TELEPHONE LC_TIME
30587 do
30588   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30589     eval $as_var=C; export $as_var
30590   else
30591     $as_unset $as_var
30592   fi
30593 done
30594
30595 # Required to use basename.
30596 if expr a : '\(a\)' >/dev/null 2>&1; then
30597   as_expr=expr
30598 else
30599   as_expr=false
30600 fi
30601
30602 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30603   as_basename=basename
30604 else
30605   as_basename=false
30606 fi
30607
30608
30609 # Name of the executable.
30610 as_me=`$as_basename "$0" ||
30611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30612          X"$0" : 'X\(//\)$' \| \
30613          X"$0" : 'X\(/\)$' \| \
30614          .     : '\(.\)' 2>/dev/null ||
30615 echo X/"$0" |
30616     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30617           /^X\/\(\/\/\)$/{ s//\1/; q; }
30618           /^X\/\(\/\).*/{ s//\1/; q; }
30619           s/.*/./; q'`
30620
30621
30622 # PATH needs CR, and LINENO needs CR and PATH.
30623 # Avoid depending upon Character Ranges.
30624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30627 as_cr_digits='0123456789'
30628 as_cr_alnum=$as_cr_Letters$as_cr_digits
30629
30630 # The user is always right.
30631 if test "${PATH_SEPARATOR+set}" != set; then
30632   echo "#! /bin/sh" >conf$$.sh
30633   echo  "exit 0"   >>conf$$.sh
30634   chmod +x conf$$.sh
30635   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30636     PATH_SEPARATOR=';'
30637   else
30638     PATH_SEPARATOR=:
30639   fi
30640   rm -f conf$$.sh
30641 fi
30642
30643
30644   as_lineno_1=$LINENO
30645   as_lineno_2=$LINENO
30646   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30647   test "x$as_lineno_1" != "x$as_lineno_2" &&
30648   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30649   # Find who we are.  Look in the path if we contain no path at all
30650   # relative or not.
30651   case $0 in
30652     *[\\/]* ) as_myself=$0 ;;
30653     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30654 for as_dir in $PATH
30655 do
30656   IFS=$as_save_IFS
30657   test -z "$as_dir" && as_dir=.
30658   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30659 done
30660
30661        ;;
30662   esac
30663   # We did not find ourselves, most probably we were run as `sh COMMAND'
30664   # in which case we are not to be found in the path.
30665   if test "x$as_myself" = x; then
30666     as_myself=$0
30667   fi
30668   if test ! -f "$as_myself"; then
30669     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30670 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30671    { (exit 1); exit 1; }; }
30672   fi
30673   case $CONFIG_SHELL in
30674   '')
30675     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30676 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30677 do
30678   IFS=$as_save_IFS
30679   test -z "$as_dir" && as_dir=.
30680   for as_base in sh bash ksh sh5; do
30681          case $as_dir in
30682          /*)
30683            if ("$as_dir/$as_base" -c '
30684   as_lineno_1=$LINENO
30685   as_lineno_2=$LINENO
30686   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30687   test "x$as_lineno_1" != "x$as_lineno_2" &&
30688   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30689              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30690              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30691              CONFIG_SHELL=$as_dir/$as_base
30692              export CONFIG_SHELL
30693              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30694            fi;;
30695          esac
30696        done
30697 done
30698 ;;
30699   esac
30700
30701   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30702   # uniformly replaced by the line number.  The first 'sed' inserts a
30703   # line-number line before each line; the second 'sed' does the real
30704   # work.  The second script uses 'N' to pair each line-number line
30705   # with the numbered line, and appends trailing '-' during
30706   # substitution so that $LINENO is not a special case at line end.
30707   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30708   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30709   sed '=' <$as_myself |
30710     sed '
30711       N
30712       s,$,-,
30713       : loop
30714       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30715       t loop
30716       s,-$,,
30717       s,^['$as_cr_digits']*\n,,
30718     ' >$as_me.lineno &&
30719   chmod +x $as_me.lineno ||
30720     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30721 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30722    { (exit 1); exit 1; }; }
30723
30724   # Don't try to exec as it changes $[0], causing all sort of problems
30725   # (the dirname of $[0] is not the place where we might find the
30726   # original and so on.  Autoconf is especially sensible to this).
30727   . ./$as_me.lineno
30728   # Exit status is that of the last command.
30729   exit
30730 }
30731
30732
30733 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30734   *c*,-n*) ECHO_N= ECHO_C='
30735 ' ECHO_T='      ' ;;
30736   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30737   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30738 esac
30739
30740 if expr a : '\(a\)' >/dev/null 2>&1; then
30741   as_expr=expr
30742 else
30743   as_expr=false
30744 fi
30745
30746 rm -f conf$$ conf$$.exe conf$$.file
30747 echo >conf$$.file
30748 if ln -s conf$$.file conf$$ 2>/dev/null; then
30749   # We could just check for DJGPP; but this test a) works b) is more generic
30750   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30751   if test -f conf$$.exe; then
30752     # Don't use ln at all; we don't have any links
30753     as_ln_s='cp -p'
30754   else
30755     as_ln_s='ln -s'
30756   fi
30757 elif ln conf$$.file conf$$ 2>/dev/null; then
30758   as_ln_s=ln
30759 else
30760   as_ln_s='cp -p'
30761 fi
30762 rm -f conf$$ conf$$.exe conf$$.file
30763
30764 if mkdir -p . 2>/dev/null; then
30765   as_mkdir_p=:
30766 else
30767   test -d ./-p && rmdir ./-p
30768   as_mkdir_p=false
30769 fi
30770
30771 as_executable_p="test -f"
30772
30773 # Sed expression to map a string onto a valid CPP name.
30774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30775
30776 # Sed expression to map a string onto a valid variable name.
30777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30778
30779
30780 # IFS
30781 # We need space, tab and new line, in precisely that order.
30782 as_nl='
30783 '
30784 IFS="   $as_nl"
30785
30786 # CDPATH.
30787 $as_unset CDPATH
30788
30789 exec 6>&1
30790
30791 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30792 # report actual input values of CONFIG_FILES etc. instead of their
30793 # values after options handling.  Logging --version etc. is OK.
30794 exec 5>>config.log
30795 {
30796   echo
30797   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30798 ## Running $as_me. ##
30799 _ASBOX
30800 } >&5
30801 cat >&5 <<_CSEOF
30802
30803 This file was extended by $as_me, which was
30804 generated by GNU Autoconf 2.59.  Invocation command line was
30805
30806   CONFIG_FILES    = $CONFIG_FILES
30807   CONFIG_HEADERS  = $CONFIG_HEADERS
30808   CONFIG_LINKS    = $CONFIG_LINKS
30809   CONFIG_COMMANDS = $CONFIG_COMMANDS
30810   $ $0 $@
30811
30812 _CSEOF
30813 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30814 echo >&5
30815 _ACEOF
30816
30817 # Files that config.status was made for.
30818 if test -n "$ac_config_files"; then
30819   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30820 fi
30821
30822 if test -n "$ac_config_headers"; then
30823   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30824 fi
30825
30826 if test -n "$ac_config_links"; then
30827   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30828 fi
30829
30830 if test -n "$ac_config_commands"; then
30831   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30832 fi
30833
30834 cat >>$CONFIG_STATUS <<\_ACEOF
30835
30836 ac_cs_usage="\
30837 \`$as_me' instantiates files from templates according to the
30838 current configuration.
30839
30840 Usage: $0 [OPTIONS] [FILE]...
30841
30842   -h, --help       print this help, then exit
30843   -V, --version    print version number, then exit
30844   -q, --quiet      do not print progress messages
30845   -d, --debug      don't remove temporary files
30846       --recheck    update $as_me by reconfiguring in the same conditions
30847   --file=FILE[:TEMPLATE]
30848                    instantiate the configuration file FILE
30849   --header=FILE[:TEMPLATE]
30850                    instantiate the configuration header FILE
30851
30852 Configuration files:
30853 $config_files
30854
30855 Configuration headers:
30856 $config_headers
30857
30858 Configuration commands:
30859 $config_commands
30860
30861 Report bugs to <bug-autoconf@gnu.org>."
30862 _ACEOF
30863
30864 cat >>$CONFIG_STATUS <<_ACEOF
30865 ac_cs_version="\\
30866 config.status
30867 configured by $0, generated by GNU Autoconf 2.59,
30868   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30869
30870 Copyright (C) 2003 Free Software Foundation, Inc.
30871 This config.status script is free software; the Free Software Foundation
30872 gives unlimited permission to copy, distribute and modify it."
30873 srcdir=$srcdir
30874 INSTALL="$INSTALL"
30875 _ACEOF
30876
30877 cat >>$CONFIG_STATUS <<\_ACEOF
30878 # If no file are specified by the user, then we need to provide default
30879 # value.  By we need to know if files were specified by the user.
30880 ac_need_defaults=:
30881 while test $# != 0
30882 do
30883   case $1 in
30884   --*=*)
30885     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30886     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30887     ac_shift=:
30888     ;;
30889   -*)
30890     ac_option=$1
30891     ac_optarg=$2
30892     ac_shift=shift
30893     ;;
30894   *) # This is not an option, so the user has probably given explicit
30895      # arguments.
30896      ac_option=$1
30897      ac_need_defaults=false;;
30898   esac
30899
30900   case $ac_option in
30901   # Handling of the options.
30902 _ACEOF
30903 cat >>$CONFIG_STATUS <<\_ACEOF
30904   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30905     ac_cs_recheck=: ;;
30906   --version | --vers* | -V )
30907     echo "$ac_cs_version"; exit 0 ;;
30908   --he | --h)
30909     # Conflict between --help and --header
30910     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30911 Try \`$0 --help' for more information." >&5
30912 echo "$as_me: error: ambiguous option: $1
30913 Try \`$0 --help' for more information." >&2;}
30914    { (exit 1); exit 1; }; };;
30915   --help | --hel | -h )
30916     echo "$ac_cs_usage"; exit 0 ;;
30917   --debug | --d* | -d )
30918     debug=: ;;
30919   --file | --fil | --fi | --f )
30920     $ac_shift
30921     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30922     ac_need_defaults=false;;
30923   --header | --heade | --head | --hea )
30924     $ac_shift
30925     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30926     ac_need_defaults=false;;
30927   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30928   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30929     ac_cs_silent=: ;;
30930
30931   # This is an error.
30932   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30933 Try \`$0 --help' for more information." >&5
30934 echo "$as_me: error: unrecognized option: $1
30935 Try \`$0 --help' for more information." >&2;}
30936    { (exit 1); exit 1; }; } ;;
30937
30938   *) ac_config_targets="$ac_config_targets $1" ;;
30939
30940   esac
30941   shift
30942 done
30943
30944 ac_configure_extra_args=
30945
30946 if $ac_cs_silent; then
30947   exec 6>/dev/null
30948   ac_configure_extra_args="$ac_configure_extra_args --silent"
30949 fi
30950
30951 _ACEOF
30952 cat >>$CONFIG_STATUS <<_ACEOF
30953 if \$ac_cs_recheck; then
30954   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30955   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30956 fi
30957
30958 _ACEOF
30959
30960 cat >>$CONFIG_STATUS <<_ACEOF
30961 #
30962 # INIT-COMMANDS section.
30963 #
30964
30965 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30966     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30967     # from automake.
30968     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30969     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30970     LINGUAS="${LINGUAS-%UNSET%}"
30971
30972
30973 _ACEOF
30974
30975
30976
30977 cat >>$CONFIG_STATUS <<\_ACEOF
30978 for ac_config_target in $ac_config_targets
30979 do
30980   case "$ac_config_target" in
30981   # Handling of arguments.
30982   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30983   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30984   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30985   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30986   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30987   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30988   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30989   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30990   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30991   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30992   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30993   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30994   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30995   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30996   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30997   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30998   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30999   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31000   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31001   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31002   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31003   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31004   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31005   "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31006   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31007   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31008   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31009   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31010   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31011   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31012   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31013   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31014   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31015   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31016   "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31017   "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31018   "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31019   "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31020   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31021   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31022   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31023   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31024   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31025   "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31026   "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31027   "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31028   "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31029   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31030   "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31031   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31032   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31033   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31034   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31035   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31036   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31037   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31038   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31039   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31040   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31041   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31042   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31043   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31044   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31045   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31046   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31047   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31048   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31049   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31050   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31051   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31052   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31053   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31054   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31055   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31056   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31057   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31058   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31059   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31060   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31061   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31062   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31063   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31064   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31065   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31066   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31067   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31068   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31069   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31070   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31071   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31072   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31073   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31074   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31075   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31076   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31077   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31078   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31079   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31080   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31081   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31082   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31083   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31084   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31085   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31086   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31087   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31088   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31089 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31090    { (exit 1); exit 1; }; };;
31091   esac
31092 done
31093
31094 # If the user did not use the arguments to specify the items to instantiate,
31095 # then the envvar interface is used.  Set only those that are not.
31096 # We use the long form for the default assignment because of an extremely
31097 # bizarre bug on SunOS 4.1.3.
31098 if $ac_need_defaults; then
31099   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31100   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31101   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31102 fi
31103
31104 # Have a temporary directory for convenience.  Make it in the build tree
31105 # simply because there is no reason to put it here, and in addition,
31106 # creating and moving files from /tmp can sometimes cause problems.
31107 # Create a temporary directory, and hook for its removal unless debugging.
31108 $debug ||
31109 {
31110   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31111   trap '{ (exit 1); exit 1; }' 1 2 13 15
31112 }
31113
31114 # Create a (secure) tmp directory for tmp files.
31115
31116 {
31117   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31118   test -n "$tmp" && test -d "$tmp"
31119 }  ||
31120 {
31121   tmp=./confstat$$-$RANDOM
31122   (umask 077 && mkdir $tmp)
31123 } ||
31124 {
31125    echo "$me: cannot create a temporary directory in ." >&2
31126    { (exit 1); exit 1; }
31127 }
31128
31129 _ACEOF
31130
31131 cat >>$CONFIG_STATUS <<_ACEOF
31132
31133 #
31134 # CONFIG_FILES section.
31135 #
31136
31137 # No need to generate the scripts if there are no CONFIG_FILES.
31138 # This happens for instance when ./config.status config.h
31139 if test -n "\$CONFIG_FILES"; then
31140   # Protect against being on the right side of a sed subst in config.status.
31141   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31142    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31143 s,@SHELL@,$SHELL,;t t
31144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31150 s,@exec_prefix@,$exec_prefix,;t t
31151 s,@prefix@,$prefix,;t t
31152 s,@program_transform_name@,$program_transform_name,;t t
31153 s,@bindir@,$bindir,;t t
31154 s,@sbindir@,$sbindir,;t t
31155 s,@libexecdir@,$libexecdir,;t t
31156 s,@datadir@,$datadir,;t t
31157 s,@sysconfdir@,$sysconfdir,;t t
31158 s,@sharedstatedir@,$sharedstatedir,;t t
31159 s,@localstatedir@,$localstatedir,;t t
31160 s,@libdir@,$libdir,;t t
31161 s,@includedir@,$includedir,;t t
31162 s,@oldincludedir@,$oldincludedir,;t t
31163 s,@infodir@,$infodir,;t t
31164 s,@mandir@,$mandir,;t t
31165 s,@build_alias@,$build_alias,;t t
31166 s,@host_alias@,$host_alias,;t t
31167 s,@target_alias@,$target_alias,;t t
31168 s,@DEFS@,$DEFS,;t t
31169 s,@ECHO_C@,$ECHO_C,;t t
31170 s,@ECHO_N@,$ECHO_N,;t t
31171 s,@ECHO_T@,$ECHO_T,;t t
31172 s,@LIBS@,$LIBS,;t t
31173 s,@BUILD_DIR@,$BUILD_DIR,;t t
31174 s,@TOP_DIR@,$TOP_DIR,;t t
31175 s,@TRUEPRG@,$TRUEPRG,;t t
31176 s,@FALSEPRG@,$FALSEPRG,;t t
31177 s,@VERSION@,$VERSION,;t t
31178 s,@DATE@,$DATE,;t t
31179 s,@LSMDATE@,$LSMDATE,;t t
31180 s,@CC@,$CC,;t t
31181 s,@CFLAGS@,$CFLAGS,;t t
31182 s,@LDFLAGS@,$LDFLAGS,;t t
31183 s,@CPPFLAGS@,$CPPFLAGS,;t t
31184 s,@ac_ct_CC@,$ac_ct_CC,;t t
31185 s,@EXEEXT@,$EXEEXT,;t t
31186 s,@OBJEXT@,$OBJEXT,;t t
31187 s,@CXX@,$CXX,;t t
31188 s,@CXXFLAGS@,$CXXFLAGS,;t t
31189 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31190 s,@CPP@,$CPP,;t t
31191 s,@EGREP@,$EGREP,;t t
31192 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31193 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31194 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31195 s,@RANLIB@,$RANLIB,;t t
31196 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31197 s,@MV@,$MV,;t t
31198 s,@RM@,$RM,;t t
31199 s,@CP@,$CP,;t t
31200 s,@SED@,$SED,;t t
31201 s,@ECHO@,$ECHO,;t t
31202 s,@CMP@,$CMP,;t t
31203 s,@TBL@,$TBL,;t t
31204 s,@AR@,$AR,;t t
31205 s,@OPENSSL@,$OPENSSL,;t t
31206 s,@MTX@,$MTX,;t t
31207 s,@DD@,$DD,;t t
31208 s,@MKISOFS@,$MKISOFS,;t t
31209 s,@PYTHON@,$PYTHON,;t t
31210 s,@GROWISOFS@,$GROWISOFS,;t t
31211 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31212 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31213 s,@PKGCONFIG@,$PKGCONFIG,;t t
31214 s,@WXCONFIG@,$WXCONFIG,;t t
31215 s,@WXFLAGS@,$WXFLAGS,;t t
31216 s,@CDRECORD@,$CDRECORD,;t t
31217 s,@PIDOF@,$PIDOF,;t t
31218 s,@AWK@,$AWK,;t t
31219 s,@ARFLAGS@,$ARFLAGS,;t t
31220 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31221 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31222 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31223 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31224 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31225 s,@build@,$build,;t t
31226 s,@build_cpu@,$build_cpu,;t t
31227 s,@build_vendor@,$build_vendor,;t t
31228 s,@build_os@,$build_os,;t t
31229 s,@host@,$host,;t t
31230 s,@host_cpu@,$host_cpu,;t t
31231 s,@host_vendor@,$host_vendor,;t t
31232 s,@host_os@,$host_os,;t t
31233 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31234 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31235 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31236 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31237 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31238 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31239 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31240 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31241 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31242 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31243 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31244 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31245 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31246 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31247 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31248 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31249 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31250 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31251 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31252 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31253 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31254 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31255 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31256 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31257 s,@SET_MAKE@,$SET_MAKE,;t t
31258 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31259 s,@USE_NLS@,$USE_NLS,;t t
31260 s,@MSGFMT@,$MSGFMT,;t t
31261 s,@GMSGFMT@,$GMSGFMT,;t t
31262 s,@XGETTEXT@,$XGETTEXT,;t t
31263 s,@MSGMERGE@,$MSGMERGE,;t t
31264 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31265 s,@LIBICONV@,$LIBICONV,;t t
31266 s,@LTLIBICONV@,$LTLIBICONV,;t t
31267 s,@INTLLIBS@,$INTLLIBS,;t t
31268 s,@LIBINTL@,$LIBINTL,;t t
31269 s,@LTLIBINTL@,$LTLIBINTL,;t t
31270 s,@POSUB@,$POSUB,;t t
31271 s,@GLIBC2@,$GLIBC2,;t t
31272 s,@ALLOCA@,$ALLOCA,;t t
31273 s,@GLIBC21@,$GLIBC21,;t t
31274 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31275 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31276 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31277 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31278 s,@INTLBISON@,$INTLBISON,;t t
31279 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31280 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31281 s,@CATOBJEXT@,$CATOBJEXT,;t t
31282 s,@DATADIRNAME@,$DATADIRNAME,;t t
31283 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31284 s,@GENCAT@,$GENCAT,;t t
31285 s,@INTLOBJS@,$INTLOBJS,;t t
31286 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31287 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31288 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31289 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31290 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31291 s,@GNOME_DIR@,$GNOME_DIR,;t t
31292 s,@BAT_DIR@,$BAT_DIR,;t t
31293 s,@QWT_INC@,$QWT_INC,;t t
31294 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31295 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31296 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31297 s,@WX_DIR@,$WX_DIR,;t t
31298 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31299 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31300 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31301 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31302 s,@STATIC_FD@,$STATIC_FD,;t t
31303 s,@STATIC_SD@,$STATIC_SD,;t t
31304 s,@STATIC_DIR@,$STATIC_DIR,;t t
31305 s,@STATIC_CONS@,$STATIC_CONS,;t t
31306 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31307 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31308 s,@ALL_DIRS@,$ALL_DIRS,;t t
31309 s,@DIRD_DIR@,$DIRD_DIR,;t t
31310 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31311 s,@STORED_DIR@,$STORED_DIR,;t t
31312 s,@CONS_INC@,$CONS_INC,;t t
31313 s,@CONS_OBJ@,$CONS_OBJ,;t t
31314 s,@CONS_SRC@,$CONS_SRC,;t t
31315 s,@CONS_LIBS@,$CONS_LIBS,;t t
31316 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31317 s,@READLINE_SRC@,$READLINE_SRC,;t t
31318 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31319 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31320 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31321 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31322 s,@working_dir@,$working_dir,;t t
31323 s,@scriptdir@,$scriptdir,;t t
31324 s,@dump_email@,$dump_email,;t t
31325 s,@job_email@,$job_email,;t t
31326 s,@smtp_host@,$smtp_host,;t t
31327 s,@piddir@,$piddir,;t t
31328 s,@subsysdir@,$subsysdir,;t t
31329 s,@baseport@,$baseport,;t t
31330 s,@dir_port@,$dir_port,;t t
31331 s,@fd_port@,$fd_port,;t t
31332 s,@sd_port@,$sd_port,;t t
31333 s,@dir_password@,$dir_password,;t t
31334 s,@fd_password@,$fd_password,;t t
31335 s,@sd_password@,$sd_password,;t t
31336 s,@mon_dir_password@,$mon_dir_password,;t t
31337 s,@mon_fd_password@,$mon_fd_password,;t t
31338 s,@mon_sd_password@,$mon_sd_password,;t t
31339 s,@db_name@,$db_name,;t t
31340 s,@db_user@,$db_user,;t t
31341 s,@dir_user@,$dir_user,;t t
31342 s,@dir_group@,$dir_group,;t t
31343 s,@sd_user@,$sd_user,;t t
31344 s,@sd_group@,$sd_group,;t t
31345 s,@fd_user@,$fd_user,;t t
31346 s,@fd_group@,$fd_group,;t t
31347 s,@SBINPERM@,$SBINPERM,;t t
31348 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31349 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31350 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31351 s,@cats@,$cats,;t t
31352 s,@DB_TYPE@,$DB_TYPE,;t t
31353 s,@GETCONF@,$GETCONF,;t t
31354 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31355 s,@X_CFLAGS@,$X_CFLAGS,;t t
31356 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31357 s,@X_LIBS@,$X_LIBS,;t t
31358 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31359 s,@LIBOBJS@,$LIBOBJS,;t t
31360 s,@FDLIBS@,$FDLIBS,;t t
31361 s,@DEBUG@,$DEBUG,;t t
31362 s,@DINCLUDE@,$DINCLUDE,;t t
31363 s,@DLIB@,$DLIB,;t t
31364 s,@DB_LIBS@,$DB_LIBS,;t t
31365 s,@WCFLAGS@,$WCFLAGS,;t t
31366 s,@WLDFLAGS@,$WLDFLAGS,;t t
31367 s,@WRAPLIBS@,$WRAPLIBS,;t t
31368 s,@OBJLIST@,$OBJLIST,;t t
31369 s,@hostname@,$hostname,;t t
31370 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31371 s,@PSCMD@,$PSCMD,;t t
31372 s,@WIN32@,$WIN32,;t t
31373 s,@MACOSX@,$MACOSX,;t t
31374 s,@DISTNAME@,$DISTNAME,;t t
31375 s,@DISTVER@,$DISTVER,;t t
31376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31377 /@MCOMMON@/r $MCOMMON
31378 s,@MCOMMON@,,;t t
31379 CEOF
31380
31381 _ACEOF
31382
31383   cat >>$CONFIG_STATUS <<\_ACEOF
31384   # Split the substitutions into bite-sized pieces for seds with
31385   # small command number limits, like on Digital OSF/1 and HP-UX.
31386   ac_max_sed_lines=48
31387   ac_sed_frag=1 # Number of current file.
31388   ac_beg=1 # First line for current file.
31389   ac_end=$ac_max_sed_lines # Line after last line for current file.
31390   ac_more_lines=:
31391   ac_sed_cmds=
31392   while $ac_more_lines; do
31393     if test $ac_beg -gt 1; then
31394       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31395     else
31396       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31397     fi
31398     if test ! -s $tmp/subs.frag; then
31399       ac_more_lines=false
31400     else
31401       # The purpose of the label and of the branching condition is to
31402       # speed up the sed processing (if there are no `@' at all, there
31403       # is no need to browse any of the substitutions).
31404       # These are the two extra sed commands mentioned above.
31405       (echo ':t
31406   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31407       if test -z "$ac_sed_cmds"; then
31408         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31409       else
31410         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31411       fi
31412       ac_sed_frag=`expr $ac_sed_frag + 1`
31413       ac_beg=$ac_end
31414       ac_end=`expr $ac_end + $ac_max_sed_lines`
31415     fi
31416   done
31417   if test -z "$ac_sed_cmds"; then
31418     ac_sed_cmds=cat
31419   fi
31420 fi # test -n "$CONFIG_FILES"
31421
31422 _ACEOF
31423 cat >>$CONFIG_STATUS <<\_ACEOF
31424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31425   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31426   case $ac_file in
31427   - | *:- | *:-:* ) # input from stdin
31428         cat >$tmp/stdin
31429         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31431   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31432         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31433   * )   ac_file_in=$ac_file.in ;;
31434   esac
31435
31436   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31437   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31439          X"$ac_file" : 'X\(//\)[^/]' \| \
31440          X"$ac_file" : 'X\(//\)$' \| \
31441          X"$ac_file" : 'X\(/\)' \| \
31442          .     : '\(.\)' 2>/dev/null ||
31443 echo X"$ac_file" |
31444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31446           /^X\(\/\/\)$/{ s//\1/; q; }
31447           /^X\(\/\).*/{ s//\1/; q; }
31448           s/.*/./; q'`
31449   { if $as_mkdir_p; then
31450     mkdir -p "$ac_dir"
31451   else
31452     as_dir="$ac_dir"
31453     as_dirs=
31454     while test ! -d "$as_dir"; do
31455       as_dirs="$as_dir $as_dirs"
31456       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31458          X"$as_dir" : 'X\(//\)[^/]' \| \
31459          X"$as_dir" : 'X\(//\)$' \| \
31460          X"$as_dir" : 'X\(/\)' \| \
31461          .     : '\(.\)' 2>/dev/null ||
31462 echo X"$as_dir" |
31463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31465           /^X\(\/\/\)$/{ s//\1/; q; }
31466           /^X\(\/\).*/{ s//\1/; q; }
31467           s/.*/./; q'`
31468     done
31469     test ! -n "$as_dirs" || mkdir $as_dirs
31470   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31472    { (exit 1); exit 1; }; }; }
31473
31474   ac_builddir=.
31475
31476 if test "$ac_dir" != .; then
31477   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31478   # A "../" for each directory in $ac_dir_suffix.
31479   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31480 else
31481   ac_dir_suffix= ac_top_builddir=
31482 fi
31483
31484 case $srcdir in
31485   .)  # No --srcdir option.  We are building in place.
31486     ac_srcdir=.
31487     if test -z "$ac_top_builddir"; then
31488        ac_top_srcdir=.
31489     else
31490        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31491     fi ;;
31492   [\\/]* | ?:[\\/]* )  # Absolute path.
31493     ac_srcdir=$srcdir$ac_dir_suffix;
31494     ac_top_srcdir=$srcdir ;;
31495   *) # Relative path.
31496     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31497     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31498 esac
31499
31500 # Do not use `cd foo && pwd` to compute absolute paths, because
31501 # the directories may not exist.
31502 case `pwd` in
31503 .) ac_abs_builddir="$ac_dir";;
31504 *)
31505   case "$ac_dir" in
31506   .) ac_abs_builddir=`pwd`;;
31507   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31508   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31509   esac;;
31510 esac
31511 case $ac_abs_builddir in
31512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31513 *)
31514   case ${ac_top_builddir}. in
31515   .) ac_abs_top_builddir=$ac_abs_builddir;;
31516   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31517   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31518   esac;;
31519 esac
31520 case $ac_abs_builddir in
31521 .) ac_abs_srcdir=$ac_srcdir;;
31522 *)
31523   case $ac_srcdir in
31524   .) ac_abs_srcdir=$ac_abs_builddir;;
31525   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31526   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31527   esac;;
31528 esac
31529 case $ac_abs_builddir in
31530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31531 *)
31532   case $ac_top_srcdir in
31533   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31534   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31535   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31536   esac;;
31537 esac
31538
31539
31540   case $INSTALL in
31541   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31542   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31543   esac
31544
31545   if test x"$ac_file" != x-; then
31546     { echo "$as_me:$LINENO: creating $ac_file" >&5
31547 echo "$as_me: creating $ac_file" >&6;}
31548     rm -f "$ac_file"
31549   fi
31550   # Let's still pretend it is `configure' which instantiates (i.e., don't
31551   # use $as_me), people would be surprised to read:
31552   #    /* config.h.  Generated by config.status.  */
31553   if test x"$ac_file" = x-; then
31554     configure_input=
31555   else
31556     configure_input="$ac_file.  "
31557   fi
31558   configure_input=$configure_input"Generated from `echo $ac_file_in |
31559                                      sed 's,.*/,,'` by configure."
31560
31561   # First look for the input files in the build tree, otherwise in the
31562   # src tree.
31563   ac_file_inputs=`IFS=:
31564     for f in $ac_file_in; do
31565       case $f in
31566       -) echo $tmp/stdin ;;
31567       [\\/$]*)
31568          # Absolute (can't be DOS-style, as IFS=:)
31569          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31570 echo "$as_me: error: cannot find input file: $f" >&2;}
31571    { (exit 1); exit 1; }; }
31572          echo "$f";;
31573       *) # Relative
31574          if test -f "$f"; then
31575            # Build tree
31576            echo "$f"
31577          elif test -f "$srcdir/$f"; then
31578            # Source tree
31579            echo "$srcdir/$f"
31580          else
31581            # /dev/null tree
31582            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31583 echo "$as_me: error: cannot find input file: $f" >&2;}
31584    { (exit 1); exit 1; }; }
31585          fi;;
31586       esac
31587     done` || { (exit 1); exit 1; }
31588 _ACEOF
31589 cat >>$CONFIG_STATUS <<_ACEOF
31590   sed "$ac_vpsub
31591 $extrasub
31592 _ACEOF
31593 cat >>$CONFIG_STATUS <<\_ACEOF
31594 :t
31595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31596 s,@configure_input@,$configure_input,;t t
31597 s,@srcdir@,$ac_srcdir,;t t
31598 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31599 s,@top_srcdir@,$ac_top_srcdir,;t t
31600 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31601 s,@builddir@,$ac_builddir,;t t
31602 s,@abs_builddir@,$ac_abs_builddir,;t t
31603 s,@top_builddir@,$ac_top_builddir,;t t
31604 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31605 s,@INSTALL@,$ac_INSTALL,;t t
31606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31607   rm -f $tmp/stdin
31608   if test x"$ac_file" != x-; then
31609     mv $tmp/out $ac_file
31610   else
31611     cat $tmp/out
31612     rm -f $tmp/out
31613   fi
31614
31615 done
31616 _ACEOF
31617 cat >>$CONFIG_STATUS <<\_ACEOF
31618
31619 #
31620 # CONFIG_HEADER section.
31621 #
31622
31623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31625 #
31626 # ac_d sets the value in "#define NAME VALUE" lines.
31627 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31628 ac_dB='[         ].*$,\1#\2'
31629 ac_dC=' '
31630 ac_dD=',;t'
31631 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31632 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31633 ac_uB='$,\1#\2define\3'
31634 ac_uC=' '
31635 ac_uD=',;t'
31636
31637 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31638   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31639   case $ac_file in
31640   - | *:- | *:-:* ) # input from stdin
31641         cat >$tmp/stdin
31642         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31643         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31644   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31645         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31646   * )   ac_file_in=$ac_file.in ;;
31647   esac
31648
31649   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31650 echo "$as_me: creating $ac_file" >&6;}
31651
31652   # First look for the input files in the build tree, otherwise in the
31653   # src tree.
31654   ac_file_inputs=`IFS=:
31655     for f in $ac_file_in; do
31656       case $f in
31657       -) echo $tmp/stdin ;;
31658       [\\/$]*)
31659          # Absolute (can't be DOS-style, as IFS=:)
31660          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31661 echo "$as_me: error: cannot find input file: $f" >&2;}
31662    { (exit 1); exit 1; }; }
31663          # Do quote $f, to prevent DOS paths from being IFS'd.
31664          echo "$f";;
31665       *) # Relative
31666          if test -f "$f"; then
31667            # Build tree
31668            echo "$f"
31669          elif test -f "$srcdir/$f"; then
31670            # Source tree
31671            echo "$srcdir/$f"
31672          else
31673            # /dev/null tree
31674            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31675 echo "$as_me: error: cannot find input file: $f" >&2;}
31676    { (exit 1); exit 1; }; }
31677          fi;;
31678       esac
31679     done` || { (exit 1); exit 1; }
31680   # Remove the trailing spaces.
31681   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31682
31683 _ACEOF
31684
31685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31686 # `conftest.undefs', that substitutes the proper values into
31687 # config.h.in to produce config.h.  The first handles `#define'
31688 # templates, and the second `#undef' templates.
31689 # And first: Protect against being on the right side of a sed subst in
31690 # config.status.  Protect against being in an unquoted here document
31691 # in config.status.
31692 rm -f conftest.defines conftest.undefs
31693 # Using a here document instead of a string reduces the quoting nightmare.
31694 # Putting comments in sed scripts is not portable.
31695 #
31696 # `end' is used to avoid that the second main sed command (meant for
31697 # 0-ary CPP macros) applies to n-ary macro definitions.
31698 # See the Autoconf documentation for `clear'.
31699 cat >confdef2sed.sed <<\_ACEOF
31700 s/[\\&,]/\\&/g
31701 s,[\\$`],\\&,g
31702 t clear
31703 : clear
31704 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31705 t end
31706 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31707 : end
31708 _ACEOF
31709 # If some macros were called several times there might be several times
31710 # the same #defines, which is useless.  Nevertheless, we may not want to
31711 # sort them, since we want the *last* AC-DEFINE to be honored.
31712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31714 rm -f confdef2sed.sed
31715
31716 # This sed command replaces #undef with comments.  This is necessary, for
31717 # example, in the case of _POSIX_SOURCE, which is predefined and required
31718 # on some systems where configure will not decide to define it.
31719 cat >>conftest.undefs <<\_ACEOF
31720 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31721 _ACEOF
31722
31723 # Break up conftest.defines because some shells have a limit on the size
31724 # of here documents, and old seds have small limits too (100 cmds).
31725 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31726 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31727 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31728 echo '  :' >>$CONFIG_STATUS
31729 rm -f conftest.tail
31730 while grep . conftest.defines >/dev/null
31731 do
31732   # Write a limited-size here document to $tmp/defines.sed.
31733   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31734   # Speed up: don't consider the non `#define' lines.
31735   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31736   # Work around the forget-to-reset-the-flag bug.
31737   echo 't clr' >>$CONFIG_STATUS
31738   echo ': clr' >>$CONFIG_STATUS
31739   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31740   echo 'CEOF
31741   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31742   rm -f $tmp/in
31743   mv $tmp/out $tmp/in
31744 ' >>$CONFIG_STATUS
31745   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31746   rm -f conftest.defines
31747   mv conftest.tail conftest.defines
31748 done
31749 rm -f conftest.defines
31750 echo '  fi # grep' >>$CONFIG_STATUS
31751 echo >>$CONFIG_STATUS
31752
31753 # Break up conftest.undefs because some shells have a limit on the size
31754 # of here documents, and old seds have small limits too (100 cmds).
31755 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31756 rm -f conftest.tail
31757 while grep . conftest.undefs >/dev/null
31758 do
31759   # Write a limited-size here document to $tmp/undefs.sed.
31760   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31761   # Speed up: don't consider the non `#undef'
31762   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31763   # Work around the forget-to-reset-the-flag bug.
31764   echo 't clr' >>$CONFIG_STATUS
31765   echo ': clr' >>$CONFIG_STATUS
31766   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31767   echo 'CEOF
31768   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31769   rm -f $tmp/in
31770   mv $tmp/out $tmp/in
31771 ' >>$CONFIG_STATUS
31772   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31773   rm -f conftest.undefs
31774   mv conftest.tail conftest.undefs
31775 done
31776 rm -f conftest.undefs
31777
31778 cat >>$CONFIG_STATUS <<\_ACEOF
31779   # Let's still pretend it is `configure' which instantiates (i.e., don't
31780   # use $as_me), people would be surprised to read:
31781   #    /* config.h.  Generated by config.status.  */
31782   if test x"$ac_file" = x-; then
31783     echo "/* Generated by configure.  */" >$tmp/config.h
31784   else
31785     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31786   fi
31787   cat $tmp/in >>$tmp/config.h
31788   rm -f $tmp/in
31789   if test x"$ac_file" != x-; then
31790     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31791       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31792 echo "$as_me: $ac_file is unchanged" >&6;}
31793     else
31794       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31796          X"$ac_file" : 'X\(//\)[^/]' \| \
31797          X"$ac_file" : 'X\(//\)$' \| \
31798          X"$ac_file" : 'X\(/\)' \| \
31799          .     : '\(.\)' 2>/dev/null ||
31800 echo X"$ac_file" |
31801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31803           /^X\(\/\/\)$/{ s//\1/; q; }
31804           /^X\(\/\).*/{ s//\1/; q; }
31805           s/.*/./; q'`
31806       { if $as_mkdir_p; then
31807     mkdir -p "$ac_dir"
31808   else
31809     as_dir="$ac_dir"
31810     as_dirs=
31811     while test ! -d "$as_dir"; do
31812       as_dirs="$as_dir $as_dirs"
31813       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31815          X"$as_dir" : 'X\(//\)[^/]' \| \
31816          X"$as_dir" : 'X\(//\)$' \| \
31817          X"$as_dir" : 'X\(/\)' \| \
31818          .     : '\(.\)' 2>/dev/null ||
31819 echo X"$as_dir" |
31820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31822           /^X\(\/\/\)$/{ s//\1/; q; }
31823           /^X\(\/\).*/{ s//\1/; q; }
31824           s/.*/./; q'`
31825     done
31826     test ! -n "$as_dirs" || mkdir $as_dirs
31827   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31829    { (exit 1); exit 1; }; }; }
31830
31831       rm -f $ac_file
31832       mv $tmp/config.h $ac_file
31833     fi
31834   else
31835     cat $tmp/config.h
31836     rm -f $tmp/config.h
31837   fi
31838 done
31839 _ACEOF
31840 cat >>$CONFIG_STATUS <<\_ACEOF
31841
31842 #
31843 # CONFIG_COMMANDS section.
31844 #
31845 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31846   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31847   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31848   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31849 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31850          X"$ac_dest" : 'X\(//\)[^/]' \| \
31851          X"$ac_dest" : 'X\(//\)$' \| \
31852          X"$ac_dest" : 'X\(/\)' \| \
31853          .     : '\(.\)' 2>/dev/null ||
31854 echo X"$ac_dest" |
31855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31856           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31857           /^X\(\/\/\)$/{ s//\1/; q; }
31858           /^X\(\/\).*/{ s//\1/; q; }
31859           s/.*/./; q'`
31860   { if $as_mkdir_p; then
31861     mkdir -p "$ac_dir"
31862   else
31863     as_dir="$ac_dir"
31864     as_dirs=
31865     while test ! -d "$as_dir"; do
31866       as_dirs="$as_dir $as_dirs"
31867       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31869          X"$as_dir" : 'X\(//\)[^/]' \| \
31870          X"$as_dir" : 'X\(//\)$' \| \
31871          X"$as_dir" : 'X\(/\)' \| \
31872          .     : '\(.\)' 2>/dev/null ||
31873 echo X"$as_dir" |
31874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31876           /^X\(\/\/\)$/{ s//\1/; q; }
31877           /^X\(\/\).*/{ s//\1/; q; }
31878           s/.*/./; q'`
31879     done
31880     test ! -n "$as_dirs" || mkdir $as_dirs
31881   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31882 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31883    { (exit 1); exit 1; }; }; }
31884
31885   ac_builddir=.
31886
31887 if test "$ac_dir" != .; then
31888   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31889   # A "../" for each directory in $ac_dir_suffix.
31890   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31891 else
31892   ac_dir_suffix= ac_top_builddir=
31893 fi
31894
31895 case $srcdir in
31896   .)  # No --srcdir option.  We are building in place.
31897     ac_srcdir=.
31898     if test -z "$ac_top_builddir"; then
31899        ac_top_srcdir=.
31900     else
31901        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31902     fi ;;
31903   [\\/]* | ?:[\\/]* )  # Absolute path.
31904     ac_srcdir=$srcdir$ac_dir_suffix;
31905     ac_top_srcdir=$srcdir ;;
31906   *) # Relative path.
31907     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31908     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31909 esac
31910
31911 # Do not use `cd foo && pwd` to compute absolute paths, because
31912 # the directories may not exist.
31913 case `pwd` in
31914 .) ac_abs_builddir="$ac_dir";;
31915 *)
31916   case "$ac_dir" in
31917   .) ac_abs_builddir=`pwd`;;
31918   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31919   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31920   esac;;
31921 esac
31922 case $ac_abs_builddir in
31923 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31924 *)
31925   case ${ac_top_builddir}. in
31926   .) ac_abs_top_builddir=$ac_abs_builddir;;
31927   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31928   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31929   esac;;
31930 esac
31931 case $ac_abs_builddir in
31932 .) ac_abs_srcdir=$ac_srcdir;;
31933 *)
31934   case $ac_srcdir in
31935   .) ac_abs_srcdir=$ac_abs_builddir;;
31936   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31937   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31938   esac;;
31939 esac
31940 case $ac_abs_builddir in
31941 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31942 *)
31943   case $ac_top_srcdir in
31944   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31945   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31946   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31947   esac;;
31948 esac
31949
31950
31951   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31952 echo "$as_me: executing $ac_dest commands" >&6;}
31953   case $ac_dest in
31954     default-1 )
31955     for ac_file in $CONFIG_FILES; do
31956       # Support "outfile[:infile[:infile...]]"
31957       case "$ac_file" in
31958         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31959       esac
31960       # PO directories have a Makefile.in generated from Makefile.in.in.
31961       case "$ac_file" in */Makefile.in)
31962         # Adjust a relative srcdir.
31963         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31964         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31965         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31966         # In autoconf-2.13 it is called $ac_given_srcdir.
31967         # In autoconf-2.50 it is called $srcdir.
31968         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31969         case "$ac_given_srcdir" in
31970           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31971           /*) top_srcdir="$ac_given_srcdir" ;;
31972           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31973         esac
31974         # Treat a directory as a PO directory if and only if it has a
31975         # POTFILES.in file. This allows packages to have multiple PO
31976         # directories under different names or in different locations.
31977         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31978           rm -f "$ac_dir/POTFILES"
31979           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31980           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31981           POMAKEFILEDEPS="POTFILES.in"
31982           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31983           # on $ac_dir but don't depend on user-specified configuration
31984           # parameters.
31985           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31986             # The LINGUAS file contains the set of available languages.
31987             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31988               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31989             fi
31990             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31991             # Hide the ALL_LINGUAS assigment from automake.
31992             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31993             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31994           else
31995             # The set of available languages was given in configure.in.
31996             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31997           fi
31998           # Compute POFILES
31999           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32000           # Compute UPDATEPOFILES
32001           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32002           # Compute DUMMYPOFILES
32003           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32004           # Compute GMOFILES
32005           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32006           case "$ac_given_srcdir" in
32007             .) srcdirpre= ;;
32008             *) srcdirpre='$(srcdir)/' ;;
32009           esac
32010           POFILES=
32011           UPDATEPOFILES=
32012           DUMMYPOFILES=
32013           GMOFILES=
32014           for lang in $ALL_LINGUAS; do
32015             POFILES="$POFILES $srcdirpre$lang.po"
32016             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32017             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32018             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32019           done
32020           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32021           # environment variable.
32022           INST_LINGUAS=
32023           if test -n "$ALL_LINGUAS"; then
32024             for presentlang in $ALL_LINGUAS; do
32025               useit=no
32026               if test "%UNSET%" != "$LINGUAS"; then
32027                 desiredlanguages="$LINGUAS"
32028               else
32029                 desiredlanguages="$ALL_LINGUAS"
32030               fi
32031               for desiredlang in $desiredlanguages; do
32032                 # Use the presentlang catalog if desiredlang is
32033                 #   a. equal to presentlang, or
32034                 #   b. a variant of presentlang (because in this case,
32035                 #      presentlang can be used as a fallback for messages
32036                 #      which are not translated in the desiredlang catalog).
32037                 case "$desiredlang" in
32038                   "$presentlang"*) useit=yes;;
32039                 esac
32040               done
32041               if test $useit = yes; then
32042                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32043               fi
32044             done
32045           fi
32046           CATALOGS=
32047           if test -n "$INST_LINGUAS"; then
32048             for lang in $INST_LINGUAS; do
32049               CATALOGS="$CATALOGS $lang.gmo"
32050             done
32051           fi
32052           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32053           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"
32054           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32055             if test -f "$f"; then
32056               case "$f" in
32057                 *.orig | *.bak | *~) ;;
32058                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32059               esac
32060             fi
32061           done
32062         fi
32063         ;;
32064       esac
32065     done ;;
32066     default )
32067  ;;
32068   esac
32069 done
32070 _ACEOF
32071
32072 cat >>$CONFIG_STATUS <<\_ACEOF
32073
32074 { (exit 0); exit 0; }
32075 _ACEOF
32076 chmod +x $CONFIG_STATUS
32077 ac_clean_files=$ac_clean_files_save
32078
32079
32080 # configure is writing to config.log, and then calls config.status.
32081 # config.status does its own redirection, appending to config.log.
32082 # Unfortunately, on DOS this fails, as config.log is still kept open
32083 # by configure, so config.status won't be able to write to it; its
32084 # output is simply discarded.  So we exec the FD to /dev/null,
32085 # effectively closing config.log, so it can be properly (re)opened and
32086 # appended to by config.status.  When coming back to configure, we
32087 # need to make the FD available again.
32088 if test "$no_create" != yes; then
32089   ac_cs_success=:
32090   ac_config_status_args=
32091   test "$silent" = yes &&
32092     ac_config_status_args="$ac_config_status_args --quiet"
32093   exec 5>/dev/null
32094   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32095   exec 5>>config.log
32096   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32097   # would make configure fail if this is the last instruction.
32098   $ac_cs_success || { (exit 1); exit 1; }
32099 fi
32100
32101
32102 if test "${support_bat}" = "yes" ; then
32103   cd src/qt-console
32104   chmod 755 install_conf_file build-depkgs-qt-console
32105   echo "Creating bat Makefile"
32106   qmake
32107   cd ${BUILD_DIR}
32108 fi
32109
32110 echo "Doing make of dependencies"
32111 ${MAKE:-make} depend
32112
32113 cd scripts
32114 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32115 chmod 755 dvd-handler dvd-simulator
32116 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32117 cd ..
32118
32119 c=src/cats
32120
32121 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32122 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32123
32124 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32125 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32126
32127 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32128 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32129
32130 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32131 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32132
32133 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32134 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32135
32136 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32137 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32138
32139 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32140 chmod 755 $c/sqlite
32141 chmod 755 $c/mysql
32142
32143 chmod 755 src/win32/build-depkgs-mingw32
32144
32145
32146
32147 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32148    largefile_support="yes"
32149 fi
32150
32151 #
32152 # A whole lot of hand springs to get the compiler version.
32153 #  This is because gcc changed the output in version 3.0
32154 #
32155 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32156 if test "x${CCVERSION}" = "x" ; then
32157   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32158 fi
32159 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32160 if test x"${CXXVERSION}" = x ; then
32161   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32162 fi
32163
32164 if test "x${subsysdir}" = "x${sbindir}" ; then
32165    echo " "
32166    echo " "
32167    echo "You have set --sbindir and --with-subsys-dir"
32168    echo "  both equal to: ${subsysdir} "
32169    echo "  This is not permitted. Please reconfigure."
32170    echo " "
32171    echo "Aborting configuration ..."
32172    echo " "
32173    echo " "
32174    exit 1
32175 fi
32176
32177 if test "x${db_type}" = "xInternal" ; then
32178    echo " "
32179    echo " "
32180    echo "You have not specified either --enable-client-only or one of the"
32181    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32182    echo "  This is not permitted. Please reconfigure."
32183    echo " "
32184    echo "Aborting the configuration ..."
32185    echo " "
32186    echo " "
32187    exit 1
32188 fi
32189
32190 echo "
32191 Configuration on `date`:
32192
32193   Host:                       $host -- ${DISTNAME} ${DISTVER}
32194   Bacula version:             ${VERSION} (${DATE})
32195   Source code location:       ${srcdir}
32196   Install binaries:           ${sbindir}
32197   Install config files:       ${sysconfdir}
32198   Scripts directory:          ${scriptdir}
32199   Working directory:          ${working_dir}
32200   PID directory:              ${piddir}
32201   Subsys directory:           ${subsysdir}
32202   Man directory:              ${mandir}
32203   Data directory:             ${datadir}
32204   C Compiler:                 ${CC} ${CCVERSION}
32205   C++ Compiler:               ${CXX} ${CXXVERSION}
32206   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32207   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32208   Libraries:                  ${LIBS}
32209   Statically Linked Tools:    ${support_static_tools}
32210   Statically Linked FD:       ${support_static_fd}
32211   Statically Linked SD:       ${support_static_sd}
32212   Statically Linked DIR:      ${support_static_dir}
32213   Statically Linked CONS:     ${support_static_cons}
32214   Database type:              ${db_type}
32215   Database lib:               ${DB_LIBS}
32216   Database name:              ${db_name}
32217   Database user:              ${db_user}
32218
32219   Job Output Email:           ${job_email}
32220   Traceback Email:            ${dump_email}
32221   SMTP Host Address:          ${smtp_host}
32222
32223   Director Port:              ${dir_port}
32224   File daemon Port:           ${fd_port}
32225   Storage daemon Port:        ${sd_port}
32226
32227   Director User:              ${dir_user}
32228   Director Group:             ${dir_group}
32229   Storage Daemon User:        ${sd_user}
32230   Storage DaemonGroup:        ${sd_group}
32231   File Daemon User:           ${fd_user}
32232   File Daemon Group:          ${fd_group}
32233
32234   SQL binaries Directory      ${SQL_BINDIR}
32235
32236   Large file support:         $largefile_support
32237   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32238   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32239   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32240   TLS support:                ${support_tls}
32241   Encryption support:         ${support_crypto}
32242   ZLIB support:               ${have_zlib}
32243   enable-smartalloc:          ${support_smartalloc}
32244   bat support:                ${support_bat} ${QWT_LDFLAGS}
32245   enable-gnome:               ${support_gnome} ${gnome_version}
32246   enable-bwx-console:         ${support_wx_console} ${wx_version}
32247   enable-tray-monitor:        ${support_tray_monitor}
32248   client-only:                ${build_client_only}
32249   build-dird:                 ${build_dird}
32250   build-stored:               ${build_stored}
32251   ACL support:                ${have_acl}
32252   Python support:             ${support_python} ${PYTHON_LIBS}
32253   Batch insert enabled:       ${support_batch_insert}
32254
32255   " > config.out
32256
32257 cat config.out