]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Include requisite headers for statfs() on Darwin. Fixes the build on Darwin 8 with...
[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 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 MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG 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 INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR 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 bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS 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
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882
883   --with-python=DIR       Include Python support.  DIR is the Python base
884                           install directory, default is to search through
885                           a number of common places for the Python files.
886   --with-tcp-wrappers=DIR        enable tcpwrappers support
887   --with-working-dir=PATH        specify path of Bacula working directory
888   --with-scriptdir=PATH    specify path of Bacula scripts directory
889   --with-dump-email=EMAIL        dump email address
890   --with-job-email=EMAIL         job output email address
891   --with-smtp-host=HOST          SMTP mail host address
892   --with-pid-dir=PATH            specify location of Bacula pid files
893   --with-subsys-dir=PATH         specify location of Bacula subsys file
894   --with-baseport=PORT           specify base port address for daemons
895   --with-dir-password=PASSWORD   specify Director's password
896   --with-fd-password=PASSWORD    specify Client's password
897   --with-sd-password=PASSWORD    specify Storage daemon's password
898   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
899   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
900   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
901   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
902   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
903   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
904   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
905   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
906   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
907   --with-dir-user=USER           specify user for Director daemon
908   --with-dir-group=GROUP                 specify group for Director daemon
909   --with-sd-user=USER            specify user for Storage daemon
910   --with-sd-group=GROUP          specify group for Storage daemon
911   --with-fd-user=USER            specify user for File daemon
912   --with-fd-group=GROUP          specify group for File daemon
913   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
914   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
915                           base install directory, defaults to /usr/local/pgsql
916
917   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
918                           install directory, default is to search through
919                           a number of common places for the MySQL files.
920
921   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
922                           install directory, default is to search through
923                           a number of common places for the MySQL files.
924
925   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
926                           install directory, default is to search through
927                           a number of common places for the SQLite3 files.
928
929   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
930                           install directory, default is to search through
931                           a number of common places for the SQLite files.
932   --with-x                use the X Window System
933
934 Some influential environment variables:
935   CC          C compiler command
936   CFLAGS      C compiler flags
937   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
938               nonstandard directory <lib dir>
939   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
940               headers in a nonstandard directory <include dir>
941   CXX         C++ compiler command
942   CXXFLAGS    C++ compiler flags
943   CPP         C preprocessor
944
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
947
948 _ACEOF
949 fi
950
951 if test "$ac_init_help" = "recursive"; then
952   # If there are subdirs, report their specific --help.
953   ac_popdir=`pwd`
954   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955     test -d $ac_dir || continue
956     ac_builddir=.
957
958 if test "$ac_dir" != .; then
959   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960   # A "../" for each directory in $ac_dir_suffix.
961   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
962 else
963   ac_dir_suffix= ac_top_builddir=
964 fi
965
966 case $srcdir in
967   .)  # No --srcdir option.  We are building in place.
968     ac_srcdir=.
969     if test -z "$ac_top_builddir"; then
970        ac_top_srcdir=.
971     else
972        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
973     fi ;;
974   [\\/]* | ?:[\\/]* )  # Absolute path.
975     ac_srcdir=$srcdir$ac_dir_suffix;
976     ac_top_srcdir=$srcdir ;;
977   *) # Relative path.
978     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979     ac_top_srcdir=$ac_top_builddir$srcdir ;;
980 esac
981
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
984 case `pwd` in
985 .) ac_abs_builddir="$ac_dir";;
986 *)
987   case "$ac_dir" in
988   .) ac_abs_builddir=`pwd`;;
989   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990   *) ac_abs_builddir=`pwd`/"$ac_dir";;
991   esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *)
996   case ${ac_top_builddir}. in
997   .) ac_abs_top_builddir=$ac_abs_builddir;;
998   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1000   esac;;
1001 esac
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1004 *)
1005   case $ac_srcdir in
1006   .) ac_abs_srcdir=$ac_abs_builddir;;
1007   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1009   esac;;
1010 esac
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *)
1014   case $ac_top_srcdir in
1015   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018   esac;;
1019 esac
1020
1021     cd $ac_dir
1022     # Check for guested configure; otherwise get Cygnus style configure.
1023     if test -f $ac_srcdir/configure.gnu; then
1024       echo
1025       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1026     elif test -f $ac_srcdir/configure; then
1027       echo
1028       $SHELL $ac_srcdir/configure  --help=recursive
1029     elif test -f $ac_srcdir/configure.ac ||
1030            test -f $ac_srcdir/configure.in; then
1031       echo
1032       $ac_configure --help
1033     else
1034       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1035     fi
1036     cd $ac_popdir
1037   done
1038 fi
1039
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1042   cat <<\_ACEOF
1043
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1047 _ACEOF
1048   exit 0
1049 fi
1050 exec 5>config.log
1051 cat >&5 <<_ACEOF
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1054
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59.  Invocation command line was
1057
1058   $ $0 $@
1059
1060 _ACEOF
1061 {
1062 cat <<_ASUNAME
1063 ## --------- ##
1064 ## Platform. ##
1065 ## --------- ##
1066
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1072
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1075
1076 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1077 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1080 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1081 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1082 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1083
1084 _ASUNAME
1085
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 for as_dir in $PATH
1088 do
1089   IFS=$as_save_IFS
1090   test -z "$as_dir" && as_dir=.
1091   echo "PATH: $as_dir"
1092 done
1093
1094 } >&5
1095
1096 cat >&5 <<_ACEOF
1097
1098
1099 ## ----------- ##
1100 ## Core tests. ##
1101 ## ----------- ##
1102
1103 _ACEOF
1104
1105
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_configure_args=
1112 ac_configure_args0=
1113 ac_configure_args1=
1114 ac_sep=
1115 ac_must_keep_next=false
1116 for ac_pass in 1 2
1117 do
1118   for ac_arg
1119   do
1120     case $ac_arg in
1121     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123     | -silent | --silent | --silen | --sile | --sil)
1124       continue ;;
1125     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1127     esac
1128     case $ac_pass in
1129     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1130     2)
1131       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132       if test $ac_must_keep_next = true; then
1133         ac_must_keep_next=false # Got value, back to normal.
1134       else
1135         case $ac_arg in
1136           *=* | --config-cache | -C | -disable-* | --disable-* \
1137           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139           | -with-* | --with-* | -without-* | --without-* | --x)
1140             case "$ac_configure_args0 " in
1141               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1142             esac
1143             ;;
1144           -* ) ac_must_keep_next=true ;;
1145         esac
1146       fi
1147       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148       # Get rid of the leading space.
1149       ac_sep=" "
1150       ;;
1151     esac
1152   done
1153 done
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1156
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log.  We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163   # Save into config.log some information that might help in debugging.
1164   {
1165     echo
1166
1167     cat <<\_ASBOX
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1171 _ASBOX
1172     echo
1173     # The following way of writing the cache mishandles newlines in values,
1174 {
1175   (set) 2>&1 |
1176     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1177     *ac_space=\ *)
1178       sed -n \
1179         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181       ;;
1182     *)
1183       sed -n \
1184         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1185       ;;
1186     esac;
1187 }
1188     echo
1189
1190     cat <<\_ASBOX
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1194 _ASBOX
1195     echo
1196     for ac_var in $ac_subst_vars
1197     do
1198       eval ac_val=$`echo $ac_var`
1199       echo "$ac_var='"'"'$ac_val'"'"'"
1200     done | sort
1201     echo
1202
1203     if test -n "$ac_subst_files"; then
1204       cat <<\_ASBOX
1205 ## ------------- ##
1206 ## Output files. ##
1207 ## ------------- ##
1208 _ASBOX
1209       echo
1210       for ac_var in $ac_subst_files
1211       do
1212         eval ac_val=$`echo $ac_var`
1213         echo "$ac_var='"'"'$ac_val'"'"'"
1214       done | sort
1215       echo
1216     fi
1217
1218     if test -s confdefs.h; then
1219       cat <<\_ASBOX
1220 ## ----------- ##
1221 ## confdefs.h. ##
1222 ## ----------- ##
1223 _ASBOX
1224       echo
1225       sed "/^$/d" confdefs.h | sort
1226       echo
1227     fi
1228     test "$ac_signal" != 0 &&
1229       echo "$as_me: caught signal $ac_signal"
1230     echo "$as_me: exit $exit_status"
1231   } >&5
1232   rm -f core *.core &&
1233   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1234     exit $exit_status
1235      ' 0
1236 for ac_signal in 1 2 13 15; do
1237   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 done
1239 ac_signal=0
1240
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1244 echo >confdefs.h
1245
1246 # Predefined preprocessor variables.
1247
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 _ACEOF
1251
1252
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 _ACEOF
1256
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 _ACEOF
1271
1272
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276   if test "x$prefix" != xNONE; then
1277     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1278   else
1279     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1280   fi
1281 fi
1282 for ac_site_file in $CONFIG_SITE; do
1283   if test -r "$ac_site_file"; then
1284     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286     sed 's/^/| /' "$ac_site_file" >&5
1287     . "$ac_site_file"
1288   fi
1289 done
1290
1291 if test -r "$cache_file"; then
1292   # Some versions of bash will fail to source /dev/null (special
1293   # files actually), so we avoid doing that.
1294   if test -f "$cache_file"; then
1295     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1297     case $cache_file in
1298       [\\/]* | ?:[\\/]* ) . $cache_file;;
1299       *)                      . ./$cache_file;;
1300     esac
1301   fi
1302 else
1303   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1305   >$cache_file
1306 fi
1307
1308 # Check that the precious variables saved in the cache have kept the same
1309 # value.
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314   eval ac_new_set=\$ac_env_${ac_var}_set
1315   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316   eval ac_new_val="\$ac_env_${ac_var}_value"
1317   case $ac_old_set,$ac_new_set in
1318     set,)
1319       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321       ac_cache_corrupted=: ;;
1322     ,set)
1323       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325       ac_cache_corrupted=: ;;
1326     ,);;
1327     *)
1328       if test "x$ac_old_val" != "x$ac_new_val"; then
1329         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1332 echo "$as_me:   former value:  $ac_old_val" >&2;}
1333         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1334 echo "$as_me:   current value: $ac_new_val" >&2;}
1335         ac_cache_corrupted=:
1336       fi;;
1337   esac
1338   # Pass precious variables to config.status.
1339   if test "$ac_new_set" = set; then
1340     case $ac_new_val in
1341     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343     *) ac_arg=$ac_var=$ac_new_val ;;
1344     esac
1345     case " $ac_configure_args " in
1346       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1347       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348     esac
1349   fi
1350 done
1351 if $ac_cache_corrupted; then
1352   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358
1359 ac_ext=c
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 BUILD_DIR=`pwd`
1384 cd ..
1385 TOP_DIR=`pwd`
1386 cd ${BUILD_DIR}
1387
1388 ac_aux_dir=
1389 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1390   if test -f $ac_dir/install-sh; then
1391     ac_aux_dir=$ac_dir
1392     ac_install_sh="$ac_aux_dir/install-sh -c"
1393     break
1394   elif test -f $ac_dir/install.sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install.sh -c"
1397     break
1398   elif test -f $ac_dir/shtool; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/shtool install -c"
1401     break
1402   fi
1403 done
1404 if test -z "$ac_aux_dir"; then
1405   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1407    { (exit 1); exit 1; }; }
1408 fi
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1412
1413           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1414
1415
1416
1417
1418
1419 for ac_prog in true
1420 do
1421   # Extract the first word of "$ac_prog", so it can be a program name with args.
1422 set dummy $ac_prog; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1426   echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428   case $TRUEPRG in
1429   [\\/]* | ?:[\\/]*)
1430   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1431   ;;
1432   *)
1433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1435 do
1436   IFS=$as_save_IFS
1437   test -z "$as_dir" && as_dir=.
1438   for ac_exec_ext in '' $ac_executable_extensions; do
1439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442     break 2
1443   fi
1444 done
1445 done
1446
1447   ;;
1448 esac
1449 fi
1450 TRUEPRG=$ac_cv_path_TRUEPRG
1451
1452 if test -n "$TRUEPRG"; then
1453   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1454 echo "${ECHO_T}$TRUEPRG" >&6
1455 else
1456   echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1458 fi
1459
1460   test -n "$TRUEPRG" && break
1461 done
1462 test -n "$TRUEPRG" || TRUEPRG=":"
1463
1464 for ac_prog in false
1465 do
1466   # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   case $FALSEPRG in
1474   [\\/]* | ?:[\\/]*)
1475   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1476   ;;
1477   *)
1478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479 for as_dir in $PATH
1480 do
1481   IFS=$as_save_IFS
1482   test -z "$as_dir" && as_dir=.
1483   for ac_exec_ext in '' $ac_executable_extensions; do
1484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487     break 2
1488   fi
1489 done
1490 done
1491
1492   ;;
1493 esac
1494 fi
1495 FALSEPRG=$ac_cv_path_FALSEPRG
1496
1497 if test -n "$FALSEPRG"; then
1498   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1499 echo "${ECHO_T}$FALSEPRG" >&6
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503 fi
1504
1505   test -n "$FALSEPRG" && break
1506 done
1507 test -n "$FALSEPRG" || FALSEPRG=":"
1508
1509
1510 #AC_CANONICAL_HOST
1511
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1516
1517
1518
1519 ac_ext=c
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   if test -n "$CC"; then
1533   ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536 for as_dir in $PATH
1537 do
1538   IFS=$as_save_IFS
1539   test -z "$as_dir" && as_dir=.
1540   for ac_exec_ext in '' $ac_executable_extensions; do
1541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544     break 2
1545   fi
1546 done
1547 done
1548
1549 fi
1550 fi
1551 CC=$ac_cv_prog_CC
1552 if test -n "$CC"; then
1553   echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 fi
1559
1560 fi
1561 if test -z "$ac_cv_prog_CC"; then
1562   ac_ct_CC=$CC
1563   # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   if test -n "$ac_ct_CC"; then
1571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574 for as_dir in $PATH
1575 do
1576   IFS=$as_save_IFS
1577   test -z "$as_dir" && as_dir=.
1578   for ac_exec_ext in '' $ac_executable_extensions; do
1579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580     ac_cv_prog_ac_ct_CC="gcc"
1581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582     break 2
1583   fi
1584 done
1585 done
1586
1587 fi
1588 fi
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1593 else
1594   echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1596 fi
1597
1598   CC=$ac_ct_CC
1599 else
1600   CC="$ac_cv_prog_CC"
1601 fi
1602
1603 if test -z "$CC"; then
1604   if test -n "$ac_tool_prefix"; then
1605   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610   echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612   if test -n "$CC"; then
1613   ac_cv_prog_CC="$CC" # Let the user override the test.
1614 else
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1617 do
1618   IFS=$as_save_IFS
1619   test -z "$as_dir" && as_dir=.
1620   for ac_exec_ext in '' $ac_executable_extensions; do
1621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622     ac_cv_prog_CC="${ac_tool_prefix}cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 fi
1630 fi
1631 CC=$ac_cv_prog_CC
1632 if test -n "$CC"; then
1633   echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1635 else
1636   echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1638 fi
1639
1640 fi
1641 if test -z "$ac_cv_prog_CC"; then
1642   ac_ct_CC=$CC
1643   # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648   echo $ECHO_N "(cached) $ECHO_C" >&6
1649 else
1650   if test -n "$ac_ct_CC"; then
1651   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 else
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   for ac_exec_ext in '' $ac_executable_extensions; do
1659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660     ac_cv_prog_ac_ct_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 fi
1668 fi
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1673 else
1674   echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678   CC=$ac_ct_CC
1679 else
1680   CC="$ac_cv_prog_CC"
1681 fi
1682
1683 fi
1684 if test -z "$CC"; then
1685   # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695   ac_prog_rejected=no
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   for ac_exec_ext in '' $ac_executable_extensions; do
1702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704        ac_prog_rejected=yes
1705        continue
1706      fi
1707     ac_cv_prog_CC="cc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 if test $ac_prog_rejected = yes; then
1715   # We found a bogon in the path, so make sure we never use it.
1716   set dummy $ac_cv_prog_CC
1717   shift
1718   if test $# != 0; then
1719     # We chose a different compiler from the bogus one.
1720     # However, it has the same basename, so the bogon will be chosen
1721     # first if we set CC to just the basename; use the full file name.
1722     shift
1723     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1724   fi
1725 fi
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$CC"; then
1739   if test -n "$ac_tool_prefix"; then
1740   for ac_prog in cl
1741   do
1742     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747   echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749   if test -n "$CC"; then
1750   ac_cv_prog_CC="$CC" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755   IFS=$as_save_IFS
1756   test -z "$as_dir" && as_dir=.
1757   for ac_exec_ext in '' $ac_executable_extensions; do
1758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761     break 2
1762   fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 CC=$ac_cv_prog_CC
1769 if test -n "$CC"; then
1770   echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777     test -n "$CC" && break
1778   done
1779 fi
1780 if test -z "$CC"; then
1781   ac_ct_CC=$CC
1782   for ac_prog in cl
1783 do
1784   # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791   if test -n "$ac_ct_CC"; then
1792   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 else
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 for as_dir in $PATH
1796 do
1797   IFS=$as_save_IFS
1798   test -z "$as_dir" && as_dir=.
1799   for ac_exec_ext in '' $ac_executable_extensions; do
1800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801     ac_cv_prog_ac_ct_CC="$ac_prog"
1802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803     break 2
1804   fi
1805 done
1806 done
1807
1808 fi
1809 fi
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1814 else
1815   echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 fi
1818
1819   test -n "$ac_ct_CC" && break
1820 done
1821
1822   CC=$ac_ct_CC
1823 fi
1824
1825 fi
1826
1827
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836      "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839   (eval $ac_compiler --version </dev/null >&5) 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844   (eval $ac_compiler -v </dev/null >&5) 2>&5
1845   ac_status=$?
1846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847   (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849   (eval $ac_compiler -V </dev/null >&5) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }
1853
1854 cat >conftest.$ac_ext <<_ACEOF
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h.  */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h.  */
2016
2017 int
2018 main ()
2019 {
2020
2021   ;
2022   return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }; then
2031   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032   case $ac_file in
2033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035        break;;
2036   esac
2037 done
2038 else
2039   echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046    { (exit 1); exit 1; }; }
2047 fi
2048
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2054 ac_objext=$OBJEXT
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   cat >conftest.$ac_ext <<_ACEOF
2061 /* confdefs.h.  */
2062 _ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h.  */
2066
2067 int
2068 main ()
2069 {
2070 #ifndef __GNUC__
2071        choke me
2072 #endif
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080   (eval $ac_compile) 2>conftest.er1
2081   ac_status=$?
2082   grep -v '^ *+' conftest.er1 >conftest.err
2083   rm -f conftest.er1
2084   cat conftest.err >&5
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -z "$ac_c_werror_flag"
2088                          || test ! -s conftest.err'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; } &&
2094          { ac_try='test -s conftest.$ac_objext'
2095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096   (eval $ac_try) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); }; }; then
2100   ac_compiler_gnu=yes
2101 else
2102   echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_compiler_gnu=no
2106 fi
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109
2110 fi
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2116 CFLAGS="-g"
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>conftest.er1
2140   ac_status=$?
2141   grep -v '^ *+' conftest.er1 >conftest.err
2142   rm -f conftest.er1
2143   cat conftest.err >&5
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); } &&
2146          { ac_try='test -z "$ac_c_werror_flag"
2147                          || test ! -s conftest.err'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; } &&
2153          { ac_try='test -s conftest.$ac_objext'
2154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155   (eval $ac_try) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; }; then
2159   ac_cv_prog_cc_g=yes
2160 else
2161   echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_cv_prog_cc_g=no
2165 fi
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171   CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173   if test "$GCC" = yes; then
2174     CFLAGS="-g -O2"
2175   else
2176     CFLAGS="-g"
2177   fi
2178 else
2179   if test "$GCC" = yes; then
2180     CFLAGS="-O2"
2181   else
2182     CFLAGS=
2183   fi
2184 fi
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   ac_cv_prog_cc_stdc=no
2191 ac_save_CC=$CC
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h.  */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h.  */
2198 #include <stdarg.h>
2199 #include <stdio.h>
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2206      char **p;
2207      int i;
2208 {
2209   return p[i];
2210 }
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2212 {
2213   char *s;
2214   va_list v;
2215   va_start (v,p);
2216   s = g (p, va_arg (v,int));
2217   va_end (v);
2218   return s;
2219 }
2220
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2222    function prototypes and stuff, but not '\xHH' hex character constants.
2223    These don't provoke an error unfortunately, instead are silently treated
2224    as 'x'.  The following induces an error, until -std1 is added to get
2225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2226    array size at least.  It's necessary to write '\x00'==0 to get something
2227    that's true only with -std1.  */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2229
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2234 int argc;
2235 char **argv;
2236 int
2237 main ()
2238 {
2239 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX                   -qlanglvl=ansi
2247 # Ultrix and OSF/1      -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2250 # SVR4                  -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2252 do
2253   CC="$ac_save_CC $ac_arg"
2254   rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256   (eval $ac_compile) 2>conftest.er1
2257   ac_status=$?
2258   grep -v '^ *+' conftest.er1 >conftest.err
2259   rm -f conftest.er1
2260   cat conftest.err >&5
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); } &&
2263          { ac_try='test -z "$ac_c_werror_flag"
2264                          || test ! -s conftest.err'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; } &&
2270          { ac_try='test -s conftest.$ac_objext'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; }; then
2276   ac_cv_prog_cc_stdc=$ac_arg
2277 break
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 fi
2283 rm -f conftest.err conftest.$ac_objext
2284 done
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2286 CC=$ac_save_CC
2287
2288 fi
2289
2290 case "x$ac_cv_prog_cc_stdc" in
2291   x|xno)
2292     echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2294   *)
2295     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297     CC="$CC $ac_cv_prog_cc_stdc" ;;
2298 esac
2299
2300 # Some people use a C++ compiler to compile C.  Since we use `exit',
2301 # in C++ we need to declare it.  In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2305 #ifndef __cplusplus
2306   choke me
2307 #endif
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>conftest.er1
2312   ac_status=$?
2313   grep -v '^ *+' conftest.er1 >conftest.err
2314   rm -f conftest.er1
2315   cat conftest.err >&5
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -z "$ac_c_werror_flag"
2319                          || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   for ac_declaration in \
2332    '' \
2333    'extern "C" void std::exit (int) throw (); using std::exit;' \
2334    'extern "C" void std::exit (int); using std::exit;' \
2335    'extern "C" void exit (int) throw ();' \
2336    'extern "C" void exit (int);' \
2337    'void exit (int);'
2338 do
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345 $ac_declaration
2346 #include <stdlib.h>
2347 int
2348 main ()
2349 {
2350 exit (42);
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>conftest.er1
2358   ac_status=$?
2359   grep -v '^ *+' conftest.er1 >conftest.err
2360   rm -f conftest.er1
2361   cat conftest.err >&5
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); } &&
2364          { ac_try='test -z "$ac_c_werror_flag"
2365                          || test ! -s conftest.err'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   :
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 continue
2383 fi
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385   cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h.  */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h.  */
2391 $ac_declaration
2392 int
2393 main ()
2394 {
2395 exit (42);
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402   (eval $ac_compile) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag"
2410                          || test ! -s conftest.err'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; } &&
2416          { ac_try='test -s conftest.$ac_objext'
2417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418   (eval $ac_try) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   break
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2429 done
2430 rm -f conftest*
2431 if test -n "$ac_declaration"; then
2432   echo '#ifdef __cplusplus' >>confdefs.h
2433   echo $ac_declaration      >>confdefs.h
2434   echo '#endif'             >>confdefs.h
2435 fi
2436
2437 else
2438   echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441 fi
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448
2449 ac_ext=cc
2450 ac_cpp='$CXXCPP $CPPFLAGS'
2451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2454 if test -n "$ac_tool_prefix"; then
2455   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2456   do
2457     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_CXX+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$CXX"; then
2465   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480
2481 fi
2482 fi
2483 CXX=$ac_cv_prog_CXX
2484 if test -n "$CXX"; then
2485   echo "$as_me:$LINENO: result: $CXX" >&5
2486 echo "${ECHO_T}$CXX" >&6
2487 else
2488   echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2490 fi
2491
2492     test -n "$CXX" && break
2493   done
2494 fi
2495 if test -z "$CXX"; then
2496   ac_ct_CXX=$CXX
2497   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2498 do
2499   # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   if test -n "$ac_ct_CXX"; then
2507   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516     ac_cv_prog_ac_ct_CXX="$ac_prog"
2517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518     break 2
2519   fi
2520 done
2521 done
2522
2523 fi
2524 fi
2525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2526 if test -n "$ac_ct_CXX"; then
2527   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2528 echo "${ECHO_T}$ac_ct_CXX" >&6
2529 else
2530   echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2532 fi
2533
2534   test -n "$ac_ct_CXX" && break
2535 done
2536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2537
2538   CXX=$ac_ct_CXX
2539 fi
2540
2541
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO:" \
2544      "checking for C++ compiler version" >&5
2545 ac_compiler=`set X $ac_compile; echo $2`
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2547   (eval $ac_compiler --version </dev/null >&5) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2552   (eval $ac_compiler -v </dev/null >&5) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }
2556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2557   (eval $ac_compiler -V </dev/null >&5) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }
2561
2562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   cat >conftest.$ac_ext <<_ACEOF
2568 /* confdefs.h.  */
2569 _ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h.  */
2573
2574 int
2575 main ()
2576 {
2577 #ifndef __GNUC__
2578        choke me
2579 #endif
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587   (eval $ac_compile) 2>conftest.er1
2588   ac_status=$?
2589   grep -v '^ *+' conftest.er1 >conftest.err
2590   rm -f conftest.er1
2591   cat conftest.err >&5
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -z "$ac_cxx_werror_flag"
2595                          || test ! -s conftest.err'
2596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597   (eval $ac_try) 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; } &&
2601          { ac_try='test -s conftest.$ac_objext'
2602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603   (eval $ac_try) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); }; }; then
2607   ac_compiler_gnu=yes
2608 else
2609   echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612 ac_compiler_gnu=no
2613 fi
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2616
2617 fi
2618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2620 GXX=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CXXFLAGS=${CXXFLAGS+set}
2622 ac_save_CXXFLAGS=$CXXFLAGS
2623 CXXFLAGS="-g"
2624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cxx_g+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } &&
2653          { ac_try='test -z "$ac_cxx_werror_flag"
2654                          || test ! -s conftest.err'
2655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656   (eval $ac_try) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; } &&
2660          { ac_try='test -s conftest.$ac_objext'
2661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662   (eval $ac_try) 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; }; then
2666   ac_cv_prog_cxx_g=yes
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 ac_cv_prog_cxx_g=no
2672 fi
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2674 fi
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677 if test "$ac_test_CXXFLAGS" = set; then
2678   CXXFLAGS=$ac_save_CXXFLAGS
2679 elif test $ac_cv_prog_cxx_g = yes; then
2680   if test "$GXX" = yes; then
2681     CXXFLAGS="-g -O2"
2682   else
2683     CXXFLAGS="-g"
2684   fi
2685 else
2686   if test "$GXX" = yes; then
2687     CXXFLAGS="-O2"
2688   else
2689     CXXFLAGS=
2690   fi
2691 fi
2692 for ac_declaration in \
2693    '' \
2694    'extern "C" void std::exit (int) throw (); using std::exit;' \
2695    'extern "C" void std::exit (int); using std::exit;' \
2696    'extern "C" void exit (int) throw ();' \
2697    'extern "C" void exit (int);' \
2698    'void exit (int);'
2699 do
2700   cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h.  */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h.  */
2706 $ac_declaration
2707 #include <stdlib.h>
2708 int
2709 main ()
2710 {
2711 exit (42);
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718   (eval $ac_compile) 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } &&
2725          { ac_try='test -z "$ac_cxx_werror_flag"
2726                          || test ! -s conftest.err'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   :
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 continue
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746   cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752 $ac_declaration
2753 int
2754 main ()
2755 {
2756 exit (42);
2757   ;
2758   return 0;
2759 }
2760 _ACEOF
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763   (eval $ac_compile) 2>conftest.er1
2764   ac_status=$?
2765   grep -v '^ *+' conftest.er1 >conftest.err
2766   rm -f conftest.er1
2767   cat conftest.err >&5
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); } &&
2770          { ac_try='test -z "$ac_cxx_werror_flag"
2771                          || test ! -s conftest.err'
2772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773   (eval $ac_try) 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; } &&
2777          { ac_try='test -s conftest.$ac_objext'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   break
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 fi
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 done
2791 rm -f conftest*
2792 if test -n "$ac_declaration"; then
2793   echo '#ifdef __cplusplus' >>confdefs.h
2794   echo $ac_declaration      >>confdefs.h
2795   echo '#endif'             >>confdefs.h
2796 fi
2797
2798 ac_ext=c
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803
2804 if test "x$CC" != xcc; then
2805   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2806 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2807 else
2808   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2809 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2810 fi
2811 set dummy $CC; ac_cc=`echo $2 |
2812                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2813 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816   cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h.  */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h.  */
2822
2823 int
2824 main ()
2825 {
2826
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 # Make sure it works both with $CC and with simple cc.
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2835 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } &&
2840    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); };
2845 then
2846   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2847   if test "x$CC" != xcc; then
2848     # Test first that cc exists at all.
2849     if { ac_try='cc -c conftest.$ac_ext >&5'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); };
2866       then
2867         # cc works too.
2868         :
2869       else
2870         # cc exists but doesn't like -o.
2871         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2872       fi
2873     fi
2874   fi
2875 else
2876   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2877 fi
2878 rm -f conftest*
2879
2880 fi
2881 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2882   echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2884 else
2885   echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2887
2888 cat >>confdefs.h <<\_ACEOF
2889 #define NO_MINUS_C_MINUS_O 1
2890 _ACEOF
2891
2892 fi
2893
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2903   CPP=
2904 fi
2905 if test -z "$CPP"; then
2906   if test "${ac_cv_prog_CPP+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909       # Double quotes because CPP needs to be expanded
2910     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2911     do
2912       ac_preproc_ok=false
2913 for ac_c_preproc_warn_flag in '' yes
2914 do
2915   # Use a header file that comes with gcc, so configuring glibc
2916   # with a fresh cross-compiler works.
2917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918   # <limits.h> exists even on freestanding compilers.
2919   # On the NeXT, cc -E runs the code through the compiler's parser,
2920   # not just through cpp. "Syntax error" is here to catch this case.
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927 #ifdef __STDC__
2928 # include <limits.h>
2929 #else
2930 # include <assert.h>
2931 #endif
2932                      Syntax error
2933 _ACEOF
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } >/dev/null; then
2942   if test -s conftest.err; then
2943     ac_cpp_err=$ac_c_preproc_warn_flag
2944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2945   else
2946     ac_cpp_err=
2947   fi
2948 else
2949   ac_cpp_err=yes
2950 fi
2951 if test -z "$ac_cpp_err"; then
2952   :
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957   # Broken: fails on valid input.
2958 continue
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962   # OK, works on sane cases.  Now check whether non-existent headers
2963   # can be detected and how.
2964   cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 #include <ac_nonexistent.h>
2971 _ACEOF
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } >/dev/null; then
2980   if test -s conftest.err; then
2981     ac_cpp_err=$ac_c_preproc_warn_flag
2982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2983   else
2984     ac_cpp_err=
2985   fi
2986 else
2987   ac_cpp_err=yes
2988 fi
2989 if test -z "$ac_cpp_err"; then
2990   # Broken: success on invalid input.
2991 continue
2992 else
2993   echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2995
2996   # Passes both tests.
2997 ac_preproc_ok=:
2998 break
2999 fi
3000 rm -f conftest.err conftest.$ac_ext
3001
3002 done
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3006   break
3007 fi
3008
3009     done
3010     ac_cv_prog_CPP=$CPP
3011
3012 fi
3013   CPP=$ac_cv_prog_CPP
3014 else
3015   ac_cv_prog_CPP=$CPP
3016 fi
3017 echo "$as_me:$LINENO: result: $CPP" >&5
3018 echo "${ECHO_T}$CPP" >&6
3019 ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3021 do
3022   # Use a header file that comes with gcc, so configuring glibc
3023   # with a fresh cross-compiler works.
3024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025   # <limits.h> exists even on freestanding compilers.
3026   # On the NeXT, cc -E runs the code through the compiler's parser,
3027   # not just through cpp. "Syntax error" is here to catch this case.
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 #ifdef __STDC__
3035 # include <limits.h>
3036 #else
3037 # include <assert.h>
3038 #endif
3039                      Syntax error
3040 _ACEOF
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } >/dev/null; then
3049   if test -s conftest.err; then
3050     ac_cpp_err=$ac_c_preproc_warn_flag
3051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3052   else
3053     ac_cpp_err=
3054   fi
3055 else
3056   ac_cpp_err=yes
3057 fi
3058 if test -z "$ac_cpp_err"; then
3059   :
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064   # Broken: fails on valid input.
3065 continue
3066 fi
3067 rm -f conftest.err conftest.$ac_ext
3068
3069   # OK, works on sane cases.  Now check whether non-existent headers
3070   # can be detected and how.
3071   cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } >/dev/null; then
3087   if test -s conftest.err; then
3088     ac_cpp_err=$ac_c_preproc_warn_flag
3089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3090   else
3091     ac_cpp_err=
3092   fi
3093 else
3094   ac_cpp_err=yes
3095 fi
3096 if test -z "$ac_cpp_err"; then
3097   # Broken: success on invalid input.
3098 continue
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Passes both tests.
3104 ac_preproc_ok=:
3105 break
3106 fi
3107 rm -f conftest.err conftest.$ac_ext
3108
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3113   :
3114 else
3115   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&2;}
3119    { (exit 1); exit 1; }; }
3120 fi
3121
3122 ac_ext=c
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127
3128
3129 echo "$as_me:$LINENO: checking for egrep" >&5
3130 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3131 if test "${ac_cv_prog_egrep+set}" = set; then
3132   echo $ECHO_N "(cached) $ECHO_C" >&6
3133 else
3134   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3135     then ac_cv_prog_egrep='grep -E'
3136     else ac_cv_prog_egrep='egrep'
3137     fi
3138 fi
3139 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3140 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3141  EGREP=$ac_cv_prog_egrep
3142
3143
3144 if test $ac_cv_c_compiler_gnu = yes; then
3145     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3146 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3147 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3148   echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150     ac_pattern="Autoconf.*'x'"
3151   cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157 #include <sgtty.h>
3158 Autoconf TIOCGETP
3159 _ACEOF
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3162   ac_cv_prog_gcc_traditional=yes
3163 else
3164   ac_cv_prog_gcc_traditional=no
3165 fi
3166 rm -f conftest*
3167
3168
3169   if test $ac_cv_prog_gcc_traditional = no; then
3170     cat >conftest.$ac_ext <<_ACEOF
3171 /* confdefs.h.  */
3172 _ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h.  */
3176 #include <termio.h>
3177 Autoconf TCGETA
3178 _ACEOF
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3181   ac_cv_prog_gcc_traditional=yes
3182 fi
3183 rm -f conftest*
3184
3185   fi
3186 fi
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3188 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3189   if test $ac_cv_prog_gcc_traditional = yes; then
3190     CC="$CC -traditional"
3191   fi
3192 fi
3193
3194 if test "x$CC" = xgcc
3195 then
3196    cat >>confdefs.h <<\_ACEOF
3197 #define HAVE_GCC 1
3198 _ACEOF
3199
3200 fi
3201
3202 # Find a good install program.  We prefer a C program (faster),
3203 # so one script is as good as another.  But avoid the broken or
3204 # incompatible versions:
3205 # SysV /etc/install, /usr/sbin/install
3206 # SunOS /usr/etc/install
3207 # IRIX /sbin/install
3208 # AIX /bin/install
3209 # AmigaOS /C/install, which installs bootblocks on floppy discs
3210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3213 # OS/2's system install, which has a completely different semantic
3214 # ./install, which can be erroneously created by make from ./install.sh.
3215 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3216 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3217 if test -z "$INSTALL"; then
3218 if test "${ac_cv_path_install+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   # Account for people who put trailing slashes in PATH elements.
3227 case $as_dir/ in
3228   ./ | .// | /cC/* | \
3229   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3230   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3231   /usr/ucb/* ) ;;
3232   *)
3233     # OSF1 and SCO ODT 3.0 have their own names for install.
3234     # Don't use installbsd from OSF since it installs stuff as root
3235     # by default.
3236     for ac_prog in ginstall scoinst install; do
3237       for ac_exec_ext in '' $ac_executable_extensions; do
3238         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3239           if test $ac_prog = install &&
3240             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241             # AIX install.  It has an incompatible calling convention.
3242             :
3243           elif test $ac_prog = install &&
3244             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3245             # program-specific install script used by HP pwplus--don't use.
3246             :
3247           else
3248             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3249             break 3
3250           fi
3251         fi
3252       done
3253     done
3254     ;;
3255 esac
3256 done
3257
3258
3259 fi
3260   if test "${ac_cv_path_install+set}" = set; then
3261     INSTALL=$ac_cv_path_install
3262   else
3263     # As a last resort, use the slow shell script.  We don't cache a
3264     # path for INSTALL within a source directory, because that will
3265     # break other packages using the cache if that directory is
3266     # removed, or if the path is relative.
3267     INSTALL=$ac_install_sh
3268   fi
3269 fi
3270 echo "$as_me:$LINENO: result: $INSTALL" >&5
3271 echo "${ECHO_T}$INSTALL" >&6
3272
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3276
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3278
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3280
3281 if test -n "$ac_tool_prefix"; then
3282   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_RANLIB+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$RANLIB"; then
3290   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305
3306 fi
3307 fi
3308 RANLIB=$ac_cv_prog_RANLIB
3309 if test -n "$RANLIB"; then
3310   echo "$as_me:$LINENO: result: $RANLIB" >&5
3311 echo "${ECHO_T}$RANLIB" >&6
3312 else
3313   echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3315 fi
3316
3317 fi
3318 if test -z "$ac_cv_prog_RANLIB"; then
3319   ac_ct_RANLIB=$RANLIB
3320   # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   if test -n "$ac_ct_RANLIB"; then
3328   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335   for ac_exec_ext in '' $ac_executable_extensions; do
3336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_ac_ct_RANLIB="ranlib"
3338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342 done
3343
3344   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3345 fi
3346 fi
3347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3348 if test -n "$ac_ct_RANLIB"; then
3349   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3350 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3351 else
3352   echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3354 fi
3355
3356   RANLIB=$ac_ct_RANLIB
3357 else
3358   RANLIB="$ac_cv_prog_RANLIB"
3359 fi
3360
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_path_MV+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   case $MV in
3369   [\\/]* | ?:[\\/]*)
3370   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3371   ;;
3372   *)
3373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385 done
3386
3387   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3388   ;;
3389 esac
3390 fi
3391 MV=$ac_cv_path_MV
3392
3393 if test -n "$MV"; then
3394   echo "$as_me:$LINENO: result: $MV" >&5
3395 echo "${ECHO_T}$MV" >&6
3396 else
3397   echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3399 fi
3400
3401 # Extract the first word of "rm", so it can be a program name with args.
3402 set dummy rm; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_path_RM+set}" = set; then
3406   echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408   case $RM in
3409   [\\/]* | ?:[\\/]*)
3410   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3411   ;;
3412   *)
3413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416   IFS=$as_save_IFS
3417   test -z "$as_dir" && as_dir=.
3418   for ac_exec_ext in '' $ac_executable_extensions; do
3419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422     break 2
3423   fi
3424 done
3425 done
3426
3427   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3428   ;;
3429 esac
3430 fi
3431 RM=$ac_cv_path_RM
3432
3433 if test -n "$RM"; then
3434   echo "$as_me:$LINENO: result: $RM" >&5
3435 echo "${ECHO_T}$RM" >&6
3436 else
3437   echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3439 fi
3440
3441 # Extract the first word of "cp", so it can be a program name with args.
3442 set dummy cp; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_path_CP+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   case $CP in
3449   [\\/]* | ?:[\\/]*)
3450   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3451   ;;
3452   *)
3453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458   for ac_exec_ext in '' $ac_executable_extensions; do
3459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465 done
3466
3467   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3468   ;;
3469 esac
3470 fi
3471 CP=$ac_cv_path_CP
3472
3473 if test -n "$CP"; then
3474   echo "$as_me:$LINENO: result: $CP" >&5
3475 echo "${ECHO_T}$CP" >&6
3476 else
3477   echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3479 fi
3480
3481 # Extract the first word of "sed", so it can be a program name with args.
3482 set dummy sed; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_path_SED+set}" = set; then
3486   echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488   case $SED in
3489   [\\/]* | ?:[\\/]*)
3490   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3491   ;;
3492   *)
3493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498   for ac_exec_ext in '' $ac_executable_extensions; do
3499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505 done
3506
3507   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3508   ;;
3509 esac
3510 fi
3511 SED=$ac_cv_path_SED
3512
3513 if test -n "$SED"; then
3514   echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520
3521 # Extract the first word of "echo", so it can be a program name with args.
3522 set dummy echo; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_path_ECHO+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   case $ECHO in
3529   [\\/]* | ?:[\\/]*)
3530   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3531   ;;
3532   *)
3533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538   for ac_exec_ext in '' $ac_executable_extensions; do
3539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545 done
3546
3547   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3548   ;;
3549 esac
3550 fi
3551 ECHO=$ac_cv_path_ECHO
3552
3553 if test -n "$ECHO"; then
3554   echo "$as_me:$LINENO: result: $ECHO" >&5
3555 echo "${ECHO_T}$ECHO" >&6
3556 else
3557   echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561 # Extract the first word of "cmp", so it can be a program name with args.
3562 set dummy cmp; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_path_CMP+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   case $CMP in
3569   [\\/]* | ?:[\\/]*)
3570   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3571   ;;
3572   *)
3573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578   for ac_exec_ext in '' $ac_executable_extensions; do
3579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585 done
3586
3587   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3588   ;;
3589 esac
3590 fi
3591 CMP=$ac_cv_path_CMP
3592
3593 if test -n "$CMP"; then
3594   echo "$as_me:$LINENO: result: $CMP" >&5
3595 echo "${ECHO_T}$CMP" >&6
3596 else
3597   echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3599 fi
3600
3601 # Extract the first word of "tbl", so it can be a program name with args.
3602 set dummy tbl; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_TBL+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   case $TBL in
3609   [\\/]* | ?:[\\/]*)
3610   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3611   ;;
3612   *)
3613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618   for ac_exec_ext in '' $ac_executable_extensions; do
3619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625 done
3626
3627   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3628   ;;
3629 esac
3630 fi
3631 TBL=$ac_cv_path_TBL
3632
3633 if test -n "$TBL"; then
3634   echo "$as_me:$LINENO: result: $TBL" >&5
3635 echo "${ECHO_T}$TBL" >&6
3636 else
3637   echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3639 fi
3640
3641 # Extract the first word of "ar", so it can be a program name with args.
3642 set dummy ar; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_path_AR+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648   case $AR in
3649   [\\/]* | ?:[\\/]*)
3650   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3651   ;;
3652   *)
3653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658   for ac_exec_ext in '' $ac_executable_extensions; do
3659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662     break 2
3663   fi
3664 done
3665 done
3666
3667   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3668   ;;
3669 esac
3670 fi
3671 AR=$ac_cv_path_AR
3672
3673 if test -n "$AR"; then
3674   echo "$as_me:$LINENO: result: $AR" >&5
3675 echo "${ECHO_T}$AR" >&6
3676 else
3677   echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3679 fi
3680
3681 # Extract the first word of "openssl", so it can be a program name with args.
3682 set dummy openssl; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_path_OPENSSL+set}" = set; then
3686   echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688   case $OPENSSL in
3689   [\\/]* | ?:[\\/]*)
3690   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3691   ;;
3692   *)
3693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696   IFS=$as_save_IFS
3697   test -z "$as_dir" && as_dir=.
3698   for ac_exec_ext in '' $ac_executable_extensions; do
3699   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702     break 2
3703   fi
3704 done
3705 done
3706
3707   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3708   ;;
3709 esac
3710 fi
3711 OPENSSL=$ac_cv_path_OPENSSL
3712
3713 if test -n "$OPENSSL"; then
3714   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3715 echo "${ECHO_T}$OPENSSL" >&6
3716 else
3717   echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3719 fi
3720
3721 # Extract the first word of "mtx", so it can be a program name with args.
3722 set dummy mtx; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_MTX+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   case $MTX in
3729   [\\/]* | ?:[\\/]*)
3730   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3731   ;;
3732   *)
3733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745 done
3746
3747   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3748   ;;
3749 esac
3750 fi
3751 MTX=$ac_cv_path_MTX
3752
3753 if test -n "$MTX"; then
3754   echo "$as_me:$LINENO: result: $MTX" >&5
3755 echo "${ECHO_T}$MTX" >&6
3756 else
3757   echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3759 fi
3760
3761 # Extract the first word of "mkisofs", so it can be a program name with args.
3762 set dummy mkisofs; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_path_MKISOFS+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   case $MKISOFS in
3769   [\\/]* | ?:[\\/]*)
3770   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3771   ;;
3772   *)
3773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776   IFS=$as_save_IFS
3777   test -z "$as_dir" && as_dir=.
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782     break 2
3783   fi
3784 done
3785 done
3786
3787   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3788   ;;
3789 esac
3790 fi
3791 MKISOFS=$ac_cv_path_MKISOFS
3792
3793 if test -n "$MKISOFS"; then
3794   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3795 echo "${ECHO_T}$MKISOFS" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801 # Extract the first word of "python", so it can be a program name with args.
3802 set dummy python; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_PYTHON+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   case $PYTHON in
3809   [\\/]* | ?:[\\/]*)
3810   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3811   ;;
3812   *)
3813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3828   ;;
3829 esac
3830 fi
3831 PYTHON=$ac_cv_path_PYTHON
3832
3833 if test -n "$PYTHON"; then
3834   echo "$as_me:$LINENO: result: $PYTHON" >&5
3835 echo "${ECHO_T}$PYTHON" >&6
3836 else
3837   echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841 # Extract the first word of "growisofs", so it can be a program name with args.
3842 set dummy growisofs; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   case $GROWISOFS in
3849   [\\/]* | ?:[\\/]*)
3850   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3851   ;;
3852   *)
3853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865 done
3866
3867   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3868   ;;
3869 esac
3870 fi
3871 GROWISOFS=$ac_cv_path_GROWISOFS
3872
3873 if test -n "$GROWISOFS"; then
3874   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3875 echo "${ECHO_T}$GROWISOFS" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3882 set dummy dvd+rw-mediainfo; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   case $DVDRWMEDIAINFO in
3889   [\\/]* | ?:[\\/]*)
3890   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3891   ;;
3892   *)
3893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3895 do
3896   IFS=$as_save_IFS
3897   test -z "$as_dir" && as_dir=.
3898   for ac_exec_ext in '' $ac_executable_extensions; do
3899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902     break 2
3903   fi
3904 done
3905 done
3906
3907   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3908   ;;
3909 esac
3910 fi
3911 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3912
3913 if test -n "$DVDRWMEDIAINFO"; then
3914   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3916 else
3917   echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3919 fi
3920
3921 # Extract the first word of "pkg-config", so it can be a program name with args.
3922 set dummy pkg-config; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   case $PKGCONFIG in
3929   [\\/]* | ?:[\\/]*)
3930   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3931   ;;
3932   *)
3933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938   for ac_exec_ext in '' $ac_executable_extensions; do
3939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942     break 2
3943   fi
3944 done
3945 done
3946
3947   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3948   ;;
3949 esac
3950 fi
3951 PKGCONFIG=$ac_cv_path_PKGCONFIG
3952
3953 if test -n "$PKGCONFIG"; then
3954   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3955 echo "${ECHO_T}$PKGCONFIG" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 fi
3960
3961 # Extract the first word of "wx-config", so it can be a program name with args.
3962 set dummy wx-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   case $WXCONFIG in
3969   [\\/]* | ?:[\\/]*)
3970   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3971   ;;
3972   *)
3973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985 done
3986
3987   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3988   ;;
3989 esac
3990 fi
3991 WXCONFIG=$ac_cv_path_WXCONFIG
3992
3993 if test -n "$WXCONFIG"; then
3994   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3995 echo "${ECHO_T}$WXCONFIG" >&6
3996 else
3997   echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001 # Extract the first word of "cdrecord", so it can be a program name with args.
4002 set dummy cdrecord; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_CDRECORD+set}" = set; then
4006   echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008   case $CDRECORD in
4009   [\\/]* | ?:[\\/]*)
4010   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4011   ;;
4012   *)
4013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025 done
4026
4027   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4028   ;;
4029 esac
4030 fi
4031 CDRECORD=$ac_cv_path_CDRECORD
4032
4033 if test -n "$CDRECORD"; then
4034   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4035 echo "${ECHO_T}$CDRECORD" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041 # Extract the first word of "pidof", so it can be a program name with args.
4042 set dummy pidof; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_PIDOF+set}" = set; then
4046   echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048   case $PIDOF in
4049   [\\/]* | ?:[\\/]*)
4050   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4051   ;;
4052   *)
4053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4068   ;;
4069 esac
4070 fi
4071 PIDOF=$ac_cv_path_PIDOF
4072
4073 if test -n "$PIDOF"; then
4074   echo "$as_me:$LINENO: result: $PIDOF" >&5
4075 echo "${ECHO_T}$PIDOF" >&6
4076 else
4077   echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079 fi
4080
4081 for ac_prog in gawk mawk nawk awk
4082 do
4083   # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_AWK+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   if test -n "$AWK"; then
4091   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100     ac_cv_prog_AWK="$ac_prog"
4101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105 done
4106
4107 fi
4108 fi
4109 AWK=$ac_cv_prog_AWK
4110 if test -n "$AWK"; then
4111   echo "$as_me:$LINENO: result: $AWK" >&5
4112 echo "${ECHO_T}$AWK" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118   test -n "$AWK" && break
4119 done
4120
4121 # Some AWK programs fail, so test it and warn the user
4122 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4123       { if ((prog == $2) || (("(" prog ")") == $2) ||
4124            (("" prog "") == $2) ||
4125            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4126 else
4127   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4128    The regex engine of $AWK is too broken to be used you
4129    might want to install GNU AWK.
4130    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4131 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4132    The regex engine of $AWK is too broken to be used you
4133    might want to install GNU AWK.
4134    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4135    { (exit 1); exit 1; }; }
4136 fi
4137 THE_AWK=$AWK
4138 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4139 set dummy $THE_AWK; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_AWK+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   case $AWK in
4146   [\\/]* | ?:[\\/]*)
4147   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4148   ;;
4149   *)
4150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162 done
4163
4164   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4165   ;;
4166 esac
4167 fi
4168 AWK=$ac_cv_path_AWK
4169
4170 if test -n "$AWK"; then
4171   echo "$as_me:$LINENO: result: $AWK" >&5
4172 echo "${ECHO_T}$AWK" >&6
4173 else
4174   echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178
4179 test -n "$ARFLAG" || ARFLAGS="cr"
4180
4181
4182 MAKE_SHELL=/bin/sh
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 # Make sure we can run config.sub.
4193 $ac_config_sub sun4 >/dev/null 2>&1 ||
4194   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4195 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4196    { (exit 1); exit 1; }; }
4197
4198 echo "$as_me:$LINENO: checking build system type" >&5
4199 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4200 if test "${ac_cv_build+set}" = set; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   ac_cv_build_alias=$build_alias
4204 test -z "$ac_cv_build_alias" &&
4205   ac_cv_build_alias=`$ac_config_guess`
4206 test -z "$ac_cv_build_alias" &&
4207   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4209    { (exit 1); exit 1; }; }
4210 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4211   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4212 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4213    { (exit 1); exit 1; }; }
4214
4215 fi
4216 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4217 echo "${ECHO_T}$ac_cv_build" >&6
4218 build=$ac_cv_build
4219 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4220 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4221 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4222
4223
4224
4225 echo "$as_me:$LINENO: checking host system type" >&5
4226 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4227 if test "${ac_cv_host+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   ac_cv_host_alias=$host_alias
4231 test -z "$ac_cv_host_alias" &&
4232   ac_cv_host_alias=$ac_cv_build_alias
4233 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4234   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4235 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4236    { (exit 1); exit 1; }; }
4237
4238 fi
4239 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4240 echo "${ECHO_T}$ac_cv_host" >&6
4241 host=$ac_cv_host
4242 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4243 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4244 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4245
4246
4247 case $host_os in
4248   *cygwin* ) CYGWIN=yes;;
4249          * ) CYGWIN=no;;
4250 esac
4251
4252 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4253 then
4254
4255
4256 if $TRUEPRG; then
4257   HAVE_SUN_OS_TRUE=
4258   HAVE_SUN_OS_FALSE='#'
4259 else
4260   HAVE_SUN_OS_TRUE='#'
4261   HAVE_SUN_OS_FALSE=
4262 fi
4263         cat >>confdefs.h <<\_ACEOF
4264 #define HAVE_SUN_OS 1
4265 _ACEOF
4266
4267 else
4268
4269
4270 if $FALSEPRG; then
4271   HAVE_SUN_OS_TRUE=
4272   HAVE_SUN_OS_FALSE='#'
4273 else
4274   HAVE_SUN_OS_TRUE='#'
4275   HAVE_SUN_OS_FALSE=
4276 fi
4277 fi
4278
4279 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4280 then
4281
4282
4283 if $TRUEPRG; then
4284   HAVE_OSF1_OS_TRUE=
4285   HAVE_OSF1_OS_FALSE='#'
4286 else
4287   HAVE_OSF1_OS_TRUE='#'
4288   HAVE_OSF1_OS_FALSE=
4289 fi
4290         cat >>confdefs.h <<\_ACEOF
4291 #define HAVE_OSF1_OS 1
4292 _ACEOF
4293
4294 else
4295
4296
4297 if $FALSEPRG; then
4298   HAVE_OSF1_OS_TRUE=
4299   HAVE_OSF1_OS_FALSE='#'
4300 else
4301   HAVE_OSF1_OS_TRUE='#'
4302   HAVE_OSF1_OS_FALSE=
4303 fi
4304 fi
4305
4306 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4307 then
4308
4309
4310 if $TRUEPRG; then
4311   HAVE_AIX_OS_TRUE=
4312   HAVE_AIX_OS_FALSE='#'
4313 else
4314   HAVE_AIX_OS_TRUE='#'
4315   HAVE_AIX_OS_FALSE=
4316 fi
4317         cat >>confdefs.h <<\_ACEOF
4318 #define HAVE_AIX_OS 1
4319 _ACEOF
4320
4321 else
4322
4323
4324 if $FALSEPRG; then
4325   HAVE_AIX_OS_TRUE=
4326   HAVE_AIX_OS_FALSE='#'
4327 else
4328   HAVE_AIX_OS_TRUE='#'
4329   HAVE_AIX_OS_FALSE=
4330 fi
4331 fi
4332
4333 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4334 then
4335
4336
4337 if $TRUEPRG; then
4338   HAVE_HPUX_OS_TRUE=
4339   HAVE_HPUX_OS_FALSE='#'
4340 else
4341   HAVE_HPUX_OS_TRUE='#'
4342   HAVE_HPUX_OS_FALSE=
4343 fi
4344         cat >>confdefs.h <<\_ACEOF
4345 #define HAVE_HPUX_OS 1
4346 _ACEOF
4347
4348 else
4349
4350
4351 if $FALSEPRG; then
4352   HAVE_HPUX_OS_TRUE=
4353   HAVE_HPUX_OS_FALSE='#'
4354 else
4355   HAVE_HPUX_OS_TRUE='#'
4356   HAVE_HPUX_OS_FALSE=
4357 fi
4358 fi
4359
4360 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4361 then
4362
4363
4364 if $TRUEPRG; then
4365   HAVE_LINUX_OS_TRUE=
4366   HAVE_LINUX_OS_FALSE='#'
4367 else
4368   HAVE_LINUX_OS_TRUE='#'
4369   HAVE_LINUX_OS_FALSE=
4370 fi
4371         cat >>confdefs.h <<\_ACEOF
4372 #define HAVE_LINUX_OS 1
4373 _ACEOF
4374
4375 else
4376
4377
4378 if $FALSEPRG; then
4379   HAVE_LINUX_OS_TRUE=
4380   HAVE_LINUX_OS_FALSE='#'
4381 else
4382   HAVE_LINUX_OS_TRUE='#'
4383   HAVE_LINUX_OS_FALSE=
4384 fi
4385 fi
4386
4387 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4388 then
4389
4390
4391 if $TRUEPRG; then
4392   HAVE_FREEBSD_OS_TRUE=
4393   HAVE_FREEBSD_OS_FALSE='#'
4394 else
4395   HAVE_FREEBSD_OS_TRUE='#'
4396   HAVE_FREEBSD_OS_FALSE=
4397 fi
4398         cat >>confdefs.h <<\_ACEOF
4399 #define HAVE_FREEBSD_OS 1
4400 _ACEOF
4401
4402 else
4403
4404
4405 if $FALSEPRG; then
4406   HAVE_FREEBSD_OS_TRUE=
4407   HAVE_FREEBSD_OS_FALSE='#'
4408 else
4409   HAVE_FREEBSD_OS_TRUE='#'
4410   HAVE_FREEBSD_OS_FALSE=
4411 fi
4412 fi
4413
4414 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4415 then
4416
4417
4418 if $TRUEPRG; then
4419   HAVE_NETBSD_OS_TRUE=
4420   HAVE_NETBSD_OS_FALSE='#'
4421 else
4422   HAVE_NETBSD_OS_TRUE='#'
4423   HAVE_NETBSD_OS_FALSE=
4424 fi
4425         cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_NETBSD_OS 1
4427 _ACEOF
4428
4429 else
4430
4431
4432 if $FALSEPRG; then
4433   HAVE_NETBSD_OS_TRUE=
4434   HAVE_NETBSD_OS_FALSE='#'
4435 else
4436   HAVE_NETBSD_OS_TRUE='#'
4437   HAVE_NETBSD_OS_FALSE=
4438 fi
4439 fi
4440
4441 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4442 then
4443
4444
4445 if $TRUEPRG; then
4446   HAVE_OPENBSD_OS_TRUE=
4447   HAVE_OPENBSD_OS_FALSE='#'
4448 else
4449   HAVE_OPENBSD_OS_TRUE='#'
4450   HAVE_OPENBSD_OS_FALSE=
4451 fi
4452         cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_OPENBSD_OS 1
4454 _ACEOF
4455
4456 else
4457
4458
4459 if $FALSEPRG; then
4460   HAVE_OPENBSD_OS_TRUE=
4461   HAVE_OPENBSD_OS_FALSE='#'
4462 else
4463   HAVE_OPENBSD_OS_TRUE='#'
4464   HAVE_OPENBSD_OS_FALSE=
4465 fi
4466 fi
4467
4468 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4469 then
4470
4471
4472 if $TRUEPRG; then
4473   HAVE_BSDI_OS_TRUE=
4474   HAVE_BSDI_OS_FALSE='#'
4475 else
4476   HAVE_BSDI_OS_TRUE='#'
4477   HAVE_BSDI_OS_FALSE=
4478 fi
4479         cat >>confdefs.h <<\_ACEOF
4480 #define HAVE_BSDI_OS 1
4481 _ACEOF
4482
4483 else
4484
4485
4486 if $FALSEPRG; then
4487   HAVE_BSDI_OS_TRUE=
4488   HAVE_BSDI_OS_FALSE='#'
4489 else
4490   HAVE_BSDI_OS_TRUE='#'
4491   HAVE_BSDI_OS_FALSE=
4492 fi
4493 fi
4494
4495 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4496 then
4497
4498
4499 if $TRUEPRG; then
4500   HAVE_SGI_OS_TRUE=
4501   HAVE_SGI_OS_FALSE='#'
4502 else
4503   HAVE_SGI_OS_TRUE='#'
4504   HAVE_SGI_OS_FALSE=
4505 fi
4506         cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_SGI_OS 1
4508 _ACEOF
4509
4510 else
4511
4512
4513 if $FALSEPRG; then
4514   HAVE_SGI_OS_TRUE=
4515   HAVE_SGI_OS_FALSE='#'
4516 else
4517   HAVE_SGI_OS_TRUE='#'
4518   HAVE_SGI_OS_FALSE=
4519 fi
4520 fi
4521
4522 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4523 then
4524
4525
4526 if $TRUEPRG; then
4527   HAVE_IRIX_OS_TRUE=
4528   HAVE_IRIX_OS_FALSE='#'
4529 else
4530   HAVE_IRIX_OS_TRUE='#'
4531   HAVE_IRIX_OS_FALSE=
4532 fi
4533         cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_IRIX_OS 1
4535 _ACEOF
4536
4537 else
4538
4539
4540 if $FALSEPRG; then
4541   HAVE_IRIX_OS_TRUE=
4542   HAVE_IRIX_OS_FALSE='#'
4543 else
4544   HAVE_IRIX_OS_TRUE='#'
4545   HAVE_IRIX_OS_FALSE=
4546 fi
4547 fi
4548
4549 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4550 then
4551
4552
4553 if $TRUEPRG; then
4554   HAVE_DARWIN_OS_TRUE=
4555   HAVE_DARWIN_OS_FALSE='#'
4556 else
4557   HAVE_DARWIN_OS_TRUE='#'
4558   HAVE_DARWIN_OS_FALSE=
4559 fi
4560     cat >>confdefs.h <<\_ACEOF
4561 #define HAVE_DARWIN_OS 1
4562 _ACEOF
4563
4564 else
4565
4566
4567 if $FALSEPRG; then
4568   HAVE_DARWIN_OS_TRUE=
4569   HAVE_DARWIN_OS_FALSE='#'
4570 else
4571   HAVE_DARWIN_OS_TRUE='#'
4572   HAVE_DARWIN_OS_FALSE=
4573 fi
4574 fi
4575
4576
4577 # -----------------------------------------------------------
4578 # ----------------------------------------------------------
4579 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4580 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4581 if test "x$DISTNAME" != "x"
4582 then
4583         echo "distname set to $DISTNAME"
4584 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4585 then
4586         DISTNAME=alpha
4587 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4588 then
4589         DISTNAME=aix
4590 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4591 then
4592         DISTNAME=hpux
4593 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4594 then
4595         DISTNAME=solaris
4596 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4597 then
4598         DISTNAME=freebsd
4599 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4600 then
4601         DISTNAME=netbsd
4602 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4603 then
4604         DISTNAME=openbsd
4605 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4606 then
4607         DISTNAME=irix
4608 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4609 then
4610         DISTNAME=bsdi
4611 elif test -f /etc/SuSE-release
4612 then
4613         DISTNAME=suse
4614 elif test -d /etc/SuSEconfig
4615 then
4616         DISTNAME=suse5
4617 elif test -f /etc/mandrake-release
4618 then
4619         DISTNAME=mandrake
4620 elif test -f /etc/whitebox-release
4621 then
4622        DISTNAME=redhat
4623 elif test -f /etc/redhat-release
4624 then
4625         DISTNAME=redhat
4626 elif test -f /etc/gentoo-release
4627 then
4628         DISTNAME=gentoo
4629 elif test -f /etc/debian_version
4630 then
4631         DISTNAME=debian
4632 elif test -f /etc/slackware-version
4633 then
4634         DISTNAME=slackware
4635 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4636 then
4637     DISTNAME=darwin
4638 elif test -f /etc/engarde-version
4639 then
4640         DISTNAME=engarde
4641 elif test "$CYGWIN" = yes
4642 then
4643         DISTNAME=cygwin
4644         cat >>confdefs.h <<\_ACEOF
4645 #define HAVE_CYGWIN 1
4646 _ACEOF
4647
4648 else
4649         DISTNAME=unknown
4650 fi
4651 echo "$as_me:$LINENO: result: done" >&5
4652 echo "${ECHO_T}done" >&6
4653
4654
4655 # -----------------------------------------------------------
4656 # ----------------------------------------------------------
4657
4658
4659
4660 if false; then
4661   INSIDE_GNOME_COMMON_TRUE=
4662   INSIDE_GNOME_COMMON_FALSE='#'
4663 else
4664   INSIDE_GNOME_COMMON_TRUE='#'
4665   INSIDE_GNOME_COMMON_FALSE=
4666 fi
4667
4668         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4669
4670         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4671
4672
4673 # ------------------------------------------------------------------
4674 #  If the user has not set --prefix, we set our default to nothing.
4675 #  In this case, if the user has not set --sysconfdir, we set it
4676 #  to the package default of /etc/bacula.  If either --prefix or
4677 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4678 # ------------------------------------------------------------------
4679 if test x${prefix} = xNONE ; then
4680     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4681         sysconfdir=/etc/bacula
4682     fi
4683     prefix=
4684 fi
4685 sysconfdir=`eval echo ${sysconfdir}`
4686
4687 # -------------------------------------------------------------------------
4688 #  If the user has not set --exec-prefix, we default to ${prefix}
4689 # -------------------------------------------------------------------------
4690 if test x${exec_prefix} = xNONE ; then
4691     exec_prefix=${prefix}
4692 fi
4693
4694 # ------------------------------------------------------------------
4695 # If the user has not set --sbindir, we set our default as /sbin
4696 # ------------------------------------------------------------------
4697 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4698     sbindir=${exec_prefix}/sbin
4699 fi
4700 sbindir=`eval echo ${sbindir}`
4701
4702 # ------------------------------------------------------------------
4703 # All list of languages for which a translation exist. Each
4704 #  language is separated by a space.
4705 # ------------------------------------------------------------------
4706 ALL_LINGUAS=""
4707
4708 for ac_prog in msgfmt
4709 do
4710   # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_MSGFMT+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   case $MSGFMT in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727   for ac_exec_ext in '' $ac_executable_extensions; do
4728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734 done
4735
4736   ;;
4737 esac
4738 fi
4739 MSGFMT=$ac_cv_path_MSGFMT
4740
4741 if test -n "$MSGFMT"; then
4742   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4743 echo "${ECHO_T}$MSGFMT" >&6
4744 else
4745   echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4747 fi
4748
4749   test -n "$MSGFMT" && break
4750 done
4751 test -n "$MSGFMT" || MSGFMT="no"
4752
4753 if test "$MSGFMT" = "no"
4754 then
4755    echo 'msgfmt program not found, disabling NLS !'
4756    USE_NLS=no
4757    USE_INCLUDED_LIBINTL=no
4758 #else
4759 #   AM_GNU_GETTEXT
4760 fi
4761
4762
4763 support_mysql=no
4764 support_sqlite=no
4765 support_sqlite3=no
4766 support_postgresql=no
4767 support_smartalloc=yes
4768 support_readline=yes
4769 support_conio=yes
4770 support_gnome=no
4771 support_wx_console=no
4772 gnome_version=
4773 support_static_tools=no
4774 support_static_fd=no
4775 support_static_sd=no
4776 support_static_dir=no
4777 support_static_cons=no
4778 support_python=no
4779 build_client_only=no
4780 cats=
4781 db_name=Internal
4782 DB_NAME=bdb
4783
4784
4785 # -------------------------------------------
4786 # gnome (default off)
4787 # -------------------------------------------
4788 # Check whether --enable-gnome or --disable-gnome was given.
4789 if test "${enable_gnome+set}" = set; then
4790   enableval="$enable_gnome"
4791   if test x$enableval = xyes; then
4792     support_gnome=yes
4793   fi
4794 fi;
4795
4796 GNOME_DIR=
4797 if test x$support_gnome = xyes; then
4798   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4799   pkg=$?
4800   if test $pkg = 0; then
4801      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4802      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4803      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4804      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4805
4806
4807
4808
4809      GNOME_DIR=src/gnome2-console
4810      gnome_version="Version 2.x"
4811   else
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4824 if test "${with_gnome_includes+set}" = set; then
4825   withval="$with_gnome_includes"
4826
4827         CFLAGS="$CFLAGS -I$withval"
4828
4829 fi;
4830
4831
4832 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4833 if test "${with_gnome_libs+set}" = set; then
4834   withval="$with_gnome_libs"
4835
4836         LDFLAGS="$LDFLAGS -L$withval"
4837         gnome_prefix=$withval
4838
4839 fi;
4840
4841
4842 # Check whether --with-gnome or --without-gnome was given.
4843 if test "${with_gnome+set}" = set; then
4844   withval="$with_gnome"
4845   if test x$withval = xyes; then
4846                         want_gnome=yes
4847                                                                         :
4848                 else
4849                         if test "x$withval" = xno; then
4850                                 want_gnome=no
4851                         else
4852                                 want_gnome=yes
4853                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4854                                 CFLAGS="$CFLAGS -I$withval/include"
4855                                 gnome_prefix=$withval/lib
4856                         fi
4857                 fi
4858 else
4859   want_gnome=yes
4860 fi;
4861
4862         if test "x$want_gnome" = xyes; then
4863
4864             # Extract the first word of "gnome-config", so it can be a program name with args.
4865 set dummy gnome-config; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4869   echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871   case $GNOME_CONFIG in
4872   [\\/]* | ?:[\\/]*)
4873   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4874   ;;
4875   *)
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888 done
4889
4890   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4891   ;;
4892 esac
4893 fi
4894 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4895
4896 if test -n "$GNOME_CONFIG"; then
4897   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4898 echo "${ECHO_T}$GNOME_CONFIG" >&6
4899 else
4900   echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4902 fi
4903
4904             if test "$GNOME_CONFIG" = "no"; then
4905               no_gnome_config="yes"
4906             else
4907               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4908 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4909               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4910                 echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6
4912
4913
4914         # Extract the first word of "orbit-config", so it can be a program name with args.
4915 set dummy orbit-config; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   case $ORBIT_CONFIG in
4922   [\\/]* | ?:[\\/]*)
4923   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4924   ;;
4925   *)
4926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931   for ac_exec_ext in '' $ac_executable_extensions; do
4932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938 done
4939
4940   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4941   ;;
4942 esac
4943 fi
4944 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4945
4946 if test -n "$ORBIT_CONFIG"; then
4947   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4948 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4949 else
4950   echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952 fi
4953
4954         # Extract the first word of "orbit-idl", so it can be a program name with args.
4955 set dummy orbit-idl; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   case $ORBIT_IDL in
4962   [\\/]* | ?:[\\/]*)
4963   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4964   ;;
4965   *)
4966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971   for ac_exec_ext in '' $ac_executable_extensions; do
4972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978 done
4979
4980   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4981   ;;
4982 esac
4983 fi
4984 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4985
4986 if test -n "$ORBIT_IDL"; then
4987   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4988 echo "${ECHO_T}$ORBIT_IDL" >&6
4989 else
4990   echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992 fi
4993
4994         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4995 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4996 if test "${gnome_cv_orbit_found+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999
5000                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5001                         gnome_cv_orbit_found=no
5002                 else
5003                         gnome_cv_orbit_found=yes
5004                 fi
5005
5006 fi
5007 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5008 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5009
5010
5011 if test x$gnome_cv_orbit_found = xyes; then
5012   HAVE_ORBIT_TRUE=
5013   HAVE_ORBIT_FALSE='#'
5014 else
5015   HAVE_ORBIT_TRUE='#'
5016   HAVE_ORBIT_FALSE=
5017 fi
5018         if test x$gnome_cv_orbit_found = xyes; then
5019
5020                 ORBIT_CFLAGS=`orbit-config --cflags client server`
5021                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5022
5023
5024         else
5025                 if test xfail = xfailure; then
5026                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5027 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5028    { (exit 1); exit 1; }; }
5029                 fi
5030         fi
5031
5032         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5033 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5034 if test "${gnome_cv_gnorba_found+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037
5038                 gnome_cv_gnorba_found=no
5039                 if test x$gnome_cv_orbit_found = xyes; then
5040                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5041                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5042                         if test -n "$GNORBA_LIBS"; then
5043                                 gnome_cv_gnorba_found=yes
5044                         fi
5045                 fi
5046
5047 fi
5048 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5049 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5050
5051
5052 if test x$gnome_cv_gnorba_found = xyes; then
5053   HAVE_GNORBA_TRUE=
5054   HAVE_GNORBA_FALSE='#'
5055 else
5056   HAVE_GNORBA_TRUE='#'
5057   HAVE_GNORBA_FALSE=
5058 fi
5059         if test x$gnome_cv_orbit_found = xyes; then
5060
5061                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5062                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5063
5064
5065         else
5066                 if test xfail = xfailure; then
5067                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5068 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5069    { (exit 1); exit 1; }; }
5070                 fi
5071         fi
5072
5073                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5074                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5075                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5076                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5077                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5078                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5079                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5080
5081               else
5082                 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084                 no_gnome_config="yes"
5085               fi
5086             fi
5087
5088             if test x$exec_prefix = xNONE; then
5089                 if test x$prefix = xNONE; then
5090                     gnome_prefix=$ac_default_prefix/lib
5091                 else
5092                     gnome_prefix=$prefix/lib
5093                 fi
5094             else
5095                 gnome_prefix=`eval echo \`echo $libdir\``
5096             fi
5097
5098             if test "$no_gnome_config" = "yes"; then
5099               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5100 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5101               if test -f $gnome_prefix/gnomeConf.sh; then
5102                 echo "$as_me:$LINENO: result: found" >&5
5103 echo "${ECHO_T}found" >&6
5104                 echo "loading gnome configuration from" \
5105                      "$gnome_prefix/gnomeConf.sh"
5106                 . $gnome_prefix/gnomeConf.sh
5107
5108               else
5109                 echo "$as_me:$LINENO: result: not found" >&5
5110 echo "${ECHO_T}not found" >&6
5111                 if test xfail = xfail; then
5112                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5113 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5114    { (exit 1); exit 1; }; }
5115                 fi
5116               fi
5117             fi
5118         fi
5119
5120         if test -n ""; then
5121           n=""
5122           for i in $n; do
5123             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5124 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5125             case $i in
5126               applets)
5127
5128                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5129                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5130 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5131               docklets)
5132
5133                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5134                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5135 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5136               capplet)
5137
5138                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5139                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5140 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5141               *)
5142                 echo "$as_me:$LINENO: result: unknown library" >&5
5143 echo "${ECHO_T}unknown library" >&6
5144             esac
5145             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5146             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5147           done
5148         fi
5149
5150
5151      GNOME_DIR=src/gnome-console
5152      gnome_version="Version 1.4"
5153   fi
5154 fi
5155
5156
5157
5158 # -------------------------------------------
5159 # wx-console (default off)
5160 # -------------------------------------------
5161 # Check whether --enable-wx-console or --disable-wx-console was given.
5162 if test "${enable_wx_console+set}" = set; then
5163   enableval="$enable_wx_console"
5164   if test x$enableval = xyes; then
5165     support_wx_console=yes
5166   fi
5167 fi;
5168
5169 WX_DIR=
5170 if test x$support_wx_console = xyes; then
5171   abc=`$WXCONFIG --cppflags`
5172   pkg=$?
5173   if test $pkg = 0; then
5174      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5175      WXCONS_LDFLAGS=`$WXCONFIG --libs`
5176
5177
5178      WX_DIR=src/wx-console
5179   else
5180      echo " "
5181      echo "wx-config program not found. wx-console disabled."
5182      echo " "
5183      support_wx_console=no
5184   fi
5185 fi
5186
5187
5188
5189 # -------------------------------------------
5190 # tray-monitor (default off)
5191 # -------------------------------------------
5192 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5193 if test "${enable_tray_monitor+set}" = set; then
5194   enableval="$enable_tray_monitor"
5195   if test x$enableval = xyes; then
5196     support_tray_monitor=yes
5197   fi
5198 fi;
5199
5200 TRAY_MONITOR_DIR=
5201 if test x$support_tray_monitor = xyes; then
5202   abc=`$PKGCONFIG --exists gtk+-2.0`
5203   pkg=$?
5204   if test $pkg = 0; then
5205      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5206      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5207
5208
5209      TRAY_MONITOR_DIR=src/tray-monitor
5210      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5211      pkg=$?
5212      if test $pkg = 0; then
5213         cat >>confdefs.h <<\_ACEOF
5214 #define HAVE_GTK_2_4 1
5215 _ACEOF
5216
5217      fi
5218   fi
5219 fi
5220
5221
5222 # -------------------------------------------
5223 # smartalloc (default off)
5224 # -------------------------------------------
5225 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5226 if test "${enable_smartalloc+set}" = set; then
5227   enableval="$enable_smartalloc"
5228   if test x$enableval = xno; then
5229     support_smartalloc=no
5230   fi
5231 fi;
5232
5233 if test x$support_smartalloc = xyes; then
5234    cat >>confdefs.h <<\_ACEOF
5235 #define SMARTALLOC 1
5236 _ACEOF
5237
5238 fi
5239
5240 # -------------------------------------------
5241 # static-tools (default off)
5242 # -------------------------------------------
5243 # Check whether --enable-static-tools or --disable-static-tools was given.
5244 if test "${enable_static_tools+set}" = set; then
5245   enableval="$enable_static_tools"
5246   if test x$enableval = xyes; then
5247      support_static_tools=yes
5248    fi
5249 fi;
5250
5251 TTOOL_LDFLAGS=
5252 if test x$support_static_tools = xyes; then
5253    TTOOL_LDFLAGS="-static"
5254 fi
5255
5256
5257 # -------------------------------------------
5258 # static-fd    (default off)
5259 # -------------------------------------------
5260 # Check whether --enable-static-fd or --disable-static-fd was given.
5261 if test "${enable_static_fd+set}" = set; then
5262   enableval="$enable_static_fd"
5263   if test x$enableval = xyes; then
5264      support_static_fd=yes
5265    fi
5266 fi;
5267
5268 STATIC_FD=
5269 if test x$support_static_fd = xyes; then
5270    STATIC_FD="static-bacula-fd"
5271 fi
5272
5273
5274 # -------------------------------------------
5275 # static-sd    (default off)
5276 # -------------------------------------------
5277 # Check whether --enable-static-sd or --disable-static-sd was given.
5278 if test "${enable_static_sd+set}" = set; then
5279   enableval="$enable_static_sd"
5280   if test x$enableval = xyes; then
5281      support_static_sd=yes
5282    fi
5283 fi;
5284
5285 STATIC_SD=
5286 if test x$support_static_sd = xyes; then
5287    STATIC_SD="static-bacula-sd"
5288 fi
5289
5290
5291 # -------------------------------------------
5292 # static-dir   (default off)
5293 # -------------------------------------------
5294 # Check whether --enable-static-dir or --disable-static-dir was given.
5295 if test "${enable_static_dir+set}" = set; then
5296   enableval="$enable_static_dir"
5297   if test x$enableval = xyes; then
5298      support_static_dir=yes
5299    fi
5300 fi;
5301
5302 STATIC_DIR=
5303 if test x$support_static_dir = xyes; then
5304    STATIC_DIR="static-bacula-dir"
5305 fi
5306
5307
5308 # -------------------------------------------
5309 # static-cons  (default off)
5310 # -------------------------------------------
5311 # Check whether --enable-static-cons or --disable-static-cons was given.
5312 if test "${enable_static_cons+set}" = set; then
5313   enableval="$enable_static_cons"
5314   if test x$enableval = xyes; then
5315      support_static_cons=yes
5316    fi
5317 fi;
5318
5319 STATIC_CONS=
5320 STATIC_GNOME_CONS=
5321 STATIC_WX_CONS=
5322 if test x$support_static_cons = xyes; then
5323    STATIC_CONS="static-bconsole"
5324    STATIC_GNOME_CONS="static-gnome-console"
5325    STATIC_WX_CONS="static-wx-console"
5326 fi
5327
5328
5329
5330
5331 # -------------------------------------------
5332 # client_only  (default off)
5333 # -------------------------------------------
5334 # Check whether --enable-client-only or --disable-client-only was given.
5335 if test "${enable_client_only+set}" = set; then
5336   enableval="$enable_client_only"
5337   if test x$enableval = xyes; then
5338      build_client_only=yes
5339     db_name=None
5340     DB_NAME=none
5341    fi
5342 fi;
5343 if test x$build_client_only = xno; then
5344    ALL_DIRS="subdirs"
5345 else
5346    ALL_DIRS=""
5347 fi
5348
5349
5350 # ---------------------------------------------------
5351 # Check for conio (Bacula readline substitute)(
5352 # ---------------------------------------------------
5353 # this allows you to turn it completely off
5354 # Check whether --enable-conio or --disable-conio was given.
5355 if test "${enable_conio+set}" = set; then
5356   enableval="$enable_conio"
5357   if test x$enableval = xno; then
5358     support_conio=no
5359   fi
5360 fi;
5361
5362 got_conio="no"
5363 if test x$support_conio = xyes; then
5364    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   cat >conftest.$ac_ext <<_ACEOF
5370 /* confdefs.h.  */
5371 _ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h.  */
5375 #include <stdlib.h>
5376 #include <stdarg.h>
5377 #include <string.h>
5378 #include <float.h>
5379
5380 int
5381 main ()
5382 {
5383
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390   (eval $ac_compile) 2>conftest.er1
5391   ac_status=$?
5392   grep -v '^ *+' conftest.er1 >conftest.err
5393   rm -f conftest.er1
5394   cat conftest.err >&5
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -z "$ac_c_werror_flag"
5398                          || test ! -s conftest.err'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; } &&
5404          { ac_try='test -s conftest.$ac_objext'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   ac_cv_header_stdc=yes
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_cv_header_stdc=no
5416 fi
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418
5419 if test $ac_cv_header_stdc = yes; then
5420   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421   cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h.  */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h.  */
5427 #include <string.h>
5428
5429 _ACEOF
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431   $EGREP "memchr" >/dev/null 2>&1; then
5432   :
5433 else
5434   ac_cv_header_stdc=no
5435 fi
5436 rm -f conftest*
5437
5438 fi
5439
5440 if test $ac_cv_header_stdc = yes; then
5441   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442   cat >conftest.$ac_ext <<_ACEOF
5443 /* confdefs.h.  */
5444 _ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h.  */
5448 #include <stdlib.h>
5449
5450 _ACEOF
5451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5452   $EGREP "free" >/dev/null 2>&1; then
5453   :
5454 else
5455   ac_cv_header_stdc=no
5456 fi
5457 rm -f conftest*
5458
5459 fi
5460
5461 if test $ac_cv_header_stdc = yes; then
5462   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5463   if test "$cross_compiling" = yes; then
5464   :
5465 else
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472 #include <ctype.h>
5473 #if ((' ' & 0x0FF) == 0x020)
5474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5476 #else
5477 # define ISLOWER(c) \
5478                    (('a' <= (c) && (c) <= 'i') \
5479                      || ('j' <= (c) && (c) <= 'r') \
5480                      || ('s' <= (c) && (c) <= 'z'))
5481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5482 #endif
5483
5484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485 int
5486 main ()
5487 {
5488   int i;
5489   for (i = 0; i < 256; i++)
5490     if (XOR (islower (i), ISLOWER (i))
5491         || toupper (i) != TOUPPER (i))
5492       exit(2);
5493   exit (0);
5494 }
5495 _ACEOF
5496 rm -f conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498   (eval $ac_link) 2>&5
5499   ac_status=$?
5500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503   (eval $ac_try) 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }; }; then
5507   :
5508 else
5509   echo "$as_me: program exited with status $ac_status" >&5
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 ( exit $ac_status )
5514 ac_cv_header_stdc=no
5515 fi
5516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5517 fi
5518 fi
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5521 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5522 if test $ac_cv_header_stdc = yes; then
5523
5524 cat >>confdefs.h <<\_ACEOF
5525 #define STDC_HEADERS 1
5526 _ACEOF
5527
5528 fi
5529
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5541                   inttypes.h stdint.h unistd.h
5542 do
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556
5557 #include <$ac_header>
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561   (eval $ac_compile) 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } &&
5568          { ac_try='test -z "$ac_c_werror_flag"
5569                          || test ! -s conftest.err'
5570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571   (eval $ac_try) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }; } &&
5575          { ac_try='test -s conftest.$ac_objext'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; }; then
5581   eval "$as_ac_Header=yes"
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 eval "$as_ac_Header=no"
5587 fi
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5589 fi
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5593   cat >>confdefs.h <<_ACEOF
5594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5595 _ACEOF
5596
5597 fi
5598
5599 done
5600
5601
5602 if test "${ac_cv_header_termcap_h+set}" = set; then
5603   echo "$as_me:$LINENO: checking for termcap.h" >&5
5604 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5605 if test "${ac_cv_header_termcap_h+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 fi
5608 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5609 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5610 else
5611   # Is the header compilable?
5612 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5613 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 $ac_includes_default
5621 #include <termcap.h>
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>conftest.er1
5626   ac_status=$?
5627   grep -v '^ *+' conftest.er1 >conftest.err
5628   rm -f conftest.er1
5629   cat conftest.err >&5
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } &&
5632          { ac_try='test -z "$ac_c_werror_flag"
5633                          || test ! -s conftest.err'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; } &&
5639          { ac_try='test -s conftest.$ac_objext'
5640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641   (eval $ac_try) 2>&5
5642   ac_status=$?
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); }; }; then
5645   ac_header_compiler=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ac_header_compiler=no
5651 fi
5652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5654 echo "${ECHO_T}$ac_header_compiler" >&6
5655
5656 # Is the header present?
5657 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5658 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665 #include <termcap.h>
5666 _ACEOF
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } >/dev/null; then
5675   if test -s conftest.err; then
5676     ac_cpp_err=$ac_c_preproc_warn_flag
5677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5678   else
5679     ac_cpp_err=
5680   fi
5681 else
5682   ac_cpp_err=yes
5683 fi
5684 if test -z "$ac_cpp_err"; then
5685   ac_header_preproc=yes
5686 else
5687   echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690   ac_header_preproc=no
5691 fi
5692 rm -f conftest.err conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6
5695
5696 # So?  What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5698   yes:no: )
5699     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5703     ac_header_preproc=yes
5704     ;;
5705   no:yes:* )
5706     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5708     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5714     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5716     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5718     (
5719       cat <<\_ASBOX
5720 ## ------------------------------------------ ##
5721 ## Report this to the AC_PACKAGE_NAME lists.  ##
5722 ## ------------------------------------------ ##
5723 _ASBOX
5724     ) |
5725       sed "s/^/$as_me: WARNING:     /" >&2
5726     ;;
5727 esac
5728 echo "$as_me:$LINENO: checking for termcap.h" >&5
5729 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5730 if test "${ac_cv_header_termcap_h+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   ac_cv_header_termcap_h=$ac_header_preproc
5734 fi
5735 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5736 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5737
5738 fi
5739 if test $ac_cv_header_termcap_h = yes; then
5740    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5741 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5742 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-ltermcap  $LIBS"
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753
5754 /* Override any gcc2 internal prototype to avoid an error.  */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 /* We use char because int might match the return type of a gcc2
5759    builtin and then its argument prototype would still apply.  */
5760 char tgetent ();
5761 int
5762 main ()
5763 {
5764 tgetent ();
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771   (eval $ac_link) 2>conftest.er1
5772   ac_status=$?
5773   grep -v '^ *+' conftest.er1 >conftest.err
5774   rm -f conftest.er1
5775   cat conftest.err >&5
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -z "$ac_c_werror_flag"
5779                          || test ! -s conftest.err'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; } &&
5785          { ac_try='test -s conftest$ac_exeext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_cv_lib_termcap_tgetent=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_cv_lib_termcap_tgetent=no
5797 fi
5798 rm -f conftest.err conftest.$ac_objext \
5799       conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5801 fi
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5803 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5804 if test $ac_cv_lib_termcap_tgetent = yes; then
5805    CONS_LIBS="-ltermcap"
5806          CONS_OBJ="conio.o"
5807          CONS_SRC="conio.c"
5808          got_conio="yes"
5809          support_readline=no
5810
5811 cat >>confdefs.h <<\_ACEOF
5812 #define HAVE_CONIO 1
5813 _ACEOF
5814
5815
5816 else
5817    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5818 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5819 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-lncurses  $LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h.  */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h.  */
5830
5831 /* Override any gcc2 internal prototype to avoid an error.  */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 /* We use char because int might match the return type of a gcc2
5836    builtin and then its argument prototype would still apply.  */
5837 char tgetent ();
5838 int
5839 main ()
5840 {
5841 tgetent ();
5842   ;
5843   return 0;
5844 }
5845 _ACEOF
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848   (eval $ac_link) 2>conftest.er1
5849   ac_status=$?
5850   grep -v '^ *+' conftest.er1 >conftest.err
5851   rm -f conftest.er1
5852   cat conftest.err >&5
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); } &&
5855          { ac_try='test -z "$ac_c_werror_flag"
5856                          || test ! -s conftest.err'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; } &&
5862          { ac_try='test -s conftest$ac_exeext'
5863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864   (eval $ac_try) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); }; }; then
5868   ac_cv_lib_ncurses_tgetent=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_cv_lib_ncurses_tgetent=no
5874 fi
5875 rm -f conftest.err conftest.$ac_objext \
5876       conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5878 fi
5879 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5880 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5881 if test $ac_cv_lib_ncurses_tgetent = yes; then
5882    CONS_LIBS="-lncurses"
5883            CONS_OBJ="conio.o"
5884            CONS_SRC="conio.c"
5885            got_conio="yes"
5886            support_readline=no
5887
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_CONIO 1
5890 _ACEOF
5891
5892
5893 fi
5894
5895
5896 fi
5897
5898
5899 else
5900
5901
5902 for ac_header in curses.h
5903 do
5904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906   echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 fi
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5913 else
5914   # Is the header compilable?
5915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h.  */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h.  */
5923 $ac_includes_default
5924 #include <$ac_header>
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928   (eval $ac_compile) 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } &&
5935          { ac_try='test -z "$ac_c_werror_flag"
5936                          || test ! -s conftest.err'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; } &&
5942          { ac_try='test -s conftest.$ac_objext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_header_compiler=yes
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_header_compiler=no
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5958
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h.  */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h.  */
5968 #include <$ac_header>
5969 _ACEOF
5970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } >/dev/null; then
5978   if test -s conftest.err; then
5979     ac_cpp_err=$ac_c_preproc_warn_flag
5980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981   else
5982     ac_cpp_err=
5983   fi
5984 else
5985   ac_cpp_err=yes
5986 fi
5987 if test -z "$ac_cpp_err"; then
5988   ac_header_preproc=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993   ac_header_preproc=no
5994 fi
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5998
5999 # So?  What about this header?
6000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6001   yes:no: )
6002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6006     ac_header_preproc=yes
6007     ;;
6008   no:yes:* )
6009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6021     (
6022       cat <<\_ASBOX
6023 ## ------------------------------------------ ##
6024 ## Report this to the AC_PACKAGE_NAME lists.  ##
6025 ## ------------------------------------------ ##
6026 _ASBOX
6027     ) |
6028       sed "s/^/$as_me: WARNING:     /" >&2
6029     ;;
6030 esac
6031 echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   eval "$as_ac_Header=\$ac_header_preproc"
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6040
6041 fi
6042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6043   cat >>confdefs.h <<_ACEOF
6044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045 _ACEOF
6046
6047 fi
6048
6049 done
6050
6051          echo "$as_me:$LINENO: checking for term.h" >&5
6052 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_term_h+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #if HAVE_CURSES_H
6063 #include <curses.h>
6064 #endif
6065
6066
6067 #include <term.h>
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } &&
6078          { ac_try='test -z "$ac_c_werror_flag"
6079                          || test ! -s conftest.err'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; } &&
6085          { ac_try='test -s conftest.$ac_objext'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   ac_cv_header_term_h=yes
6092 else
6093   echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ac_cv_header_term_h=no
6097 fi
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6099 fi
6100 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6102 if test $ac_cv_header_term_h = yes; then
6103    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6104 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6105 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lcurses  $LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116
6117 /* Override any gcc2 internal prototype to avoid an error.  */
6118 #ifdef __cplusplus
6119 extern "C"
6120 #endif
6121 /* We use char because int might match the return type of a gcc2
6122    builtin and then its argument prototype would still apply.  */
6123 char tgetent ();
6124 int
6125 main ()
6126 {
6127 tgetent ();
6128   ;
6129   return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134   (eval $ac_link) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } &&
6141          { ac_try='test -z "$ac_c_werror_flag"
6142                          || test ! -s conftest.err'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; } &&
6148          { ac_try='test -s conftest$ac_exeext'
6149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150   (eval $ac_try) 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_cv_lib_curses_tgetent=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ac_cv_lib_curses_tgetent=no
6160 fi
6161 rm -f conftest.err conftest.$ac_objext \
6162       conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6166 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6167 if test $ac_cv_lib_curses_tgetent = yes; then
6168    CONS_LIBS="-lcurses"
6169                    CONS_OBJ="conio.o"
6170                    CONS_SRC="conio.c"
6171                    got_conio="yes"
6172                    support_readline=no
6173
6174 cat >>confdefs.h <<\_ACEOF
6175 #define HAVE_CONIO 1
6176 _ACEOF
6177
6178
6179 fi
6180
6181
6182 else
6183    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6184 fi
6185
6186
6187
6188 fi
6189
6190
6191 fi
6192
6193
6194 # ---------------------------------------------------
6195 # Check for readline support/directory (default off)
6196 # ---------------------------------------------------
6197 # this allows you to turn it completely off
6198 # Check whether --enable-readline or --disable-readline was given.
6199 if test "${enable_readline+set}" = set; then
6200   enableval="$enable_readline"
6201   if test x$enableval = xno; then
6202     support_readline=no
6203   fi
6204 fi;
6205
6206 got_readline="no"
6207 READLINE_SRC=
6208 if test x$support_readline = xyes; then
6209
6210 # Check whether --with-readline or --without-readline was given.
6211 if test "${with_readline+set}" = set; then
6212   withval="$with_readline"
6213
6214         case "$with_readline" in
6215         no) : ;;
6216         yes|*)
6217           if test "$with_readline" != "yes"; then
6218             CONS_INC="-I${with_readline}"
6219             CONS_LDFLAGS="-L$with_readline"
6220           else
6221              with_readline="/usr/include/readline"
6222           fi
6223           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6226 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 fi
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6232 else
6233   # Is the header compilable?
6234 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6235 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 $ac_includes_default
6243 #include <${with_readline}/readline.h>
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247   (eval $ac_compile) 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -z "$ac_c_werror_flag"
6255                          || test ! -s conftest.err'
6256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257   (eval $ac_try) 2>&5
6258   ac_status=$?
6259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260   (exit $ac_status); }; } &&
6261          { ac_try='test -s conftest.$ac_objext'
6262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263   (eval $ac_try) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }; }; then
6267   ac_header_compiler=yes
6268 else
6269   echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_header_compiler=no
6273 fi
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6276 echo "${ECHO_T}$ac_header_compiler" >&6
6277
6278 # Is the header present?
6279 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6280 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 #include <${with_readline}/readline.h>
6288 _ACEOF
6289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6291   ac_status=$?
6292   grep -v '^ *+' conftest.er1 >conftest.err
6293   rm -f conftest.er1
6294   cat conftest.err >&5
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); } >/dev/null; then
6297   if test -s conftest.err; then
6298     ac_cpp_err=$ac_c_preproc_warn_flag
6299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6300   else
6301     ac_cpp_err=
6302   fi
6303 else
6304   ac_cpp_err=yes
6305 fi
6306 if test -z "$ac_cpp_err"; then
6307   ac_header_preproc=yes
6308 else
6309   echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312   ac_header_preproc=no
6313 fi
6314 rm -f conftest.err conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6
6317
6318 # So?  What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6320   yes:no: )
6321     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6325     ac_header_preproc=yes
6326     ;;
6327   no:yes:* )
6328     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6330     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6332     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6334     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6336     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6338     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6340     (
6341       cat <<\_ASBOX
6342 ## ------------------------------------------ ##
6343 ## Report this to the AC_PACKAGE_NAME lists.  ##
6344 ## ------------------------------------------ ##
6345 _ASBOX
6346     ) |
6347       sed "s/^/$as_me: WARNING:     /" >&2
6348     ;;
6349 esac
6350 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6351 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   eval "$as_ac_Header=\$ac_header_preproc"
6356 fi
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359
6360 fi
6361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362    cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_READLINE 1
6364 _ACEOF
6365
6366                CONS_LIBS="-lreadline -ltermcap"
6367                got_readline="yes"
6368
6369 else
6370    echo " "
6371                echo "readline.h not found. readline turned off ..."
6372                echo " "
6373
6374
6375 fi
6376
6377
6378           ;;
6379         esac
6380
6381 else
6382
6383        # check for standard readline library
6384        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6385   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6386 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6387 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 fi
6390 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6391 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6392 else
6393   # Is the header compilable?
6394 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6395 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 $ac_includes_default
6403 #include </usr/include/readline/readline.h>
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407   (eval $ac_compile) 2>conftest.er1
6408   ac_status=$?
6409   grep -v '^ *+' conftest.er1 >conftest.err
6410   rm -f conftest.er1
6411   cat conftest.err >&5
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -z "$ac_c_werror_flag"
6415                          || test ! -s conftest.err'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; } &&
6421          { ac_try='test -s conftest.$ac_objext'
6422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423   (eval $ac_try) 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; }; then
6427   ac_header_compiler=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432 ac_header_compiler=no
6433 fi
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436 echo "${ECHO_T}$ac_header_compiler" >&6
6437
6438 # Is the header present?
6439 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6440 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 #include </usr/include/readline/readline.h>
6448 _ACEOF
6449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6451   ac_status=$?
6452   grep -v '^ *+' conftest.er1 >conftest.err
6453   rm -f conftest.er1
6454   cat conftest.err >&5
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); } >/dev/null; then
6457   if test -s conftest.err; then
6458     ac_cpp_err=$ac_c_preproc_warn_flag
6459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6460   else
6461     ac_cpp_err=
6462   fi
6463 else
6464   ac_cpp_err=yes
6465 fi
6466 if test -z "$ac_cpp_err"; then
6467   ac_header_preproc=yes
6468 else
6469   echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472   ac_header_preproc=no
6473 fi
6474 rm -f conftest.err conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6476 echo "${ECHO_T}$ac_header_preproc" >&6
6477
6478 # So?  What about this header?
6479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6480   yes:no: )
6481     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6482 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6483     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6484 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6485     ac_header_preproc=yes
6486     ;;
6487   no:yes:* )
6488     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6489 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6490     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6491 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6492     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6493 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6494     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6495 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6496     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6497 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6499 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6500     (
6501       cat <<\_ASBOX
6502 ## ------------------------------------------ ##
6503 ## Report this to the AC_PACKAGE_NAME lists.  ##
6504 ## ------------------------------------------ ##
6505 _ASBOX
6506     ) |
6507       sed "s/^/$as_me: WARNING:     /" >&2
6508     ;;
6509 esac
6510 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6511 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6512 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6516 fi
6517 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6518 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6519
6520 fi
6521 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6522    cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_READLINE 1
6524 _ACEOF
6525
6526            got_readline="yes"
6527            CONS_INC="-I/usr/include/readline"
6528            CONS_LIBS="-lreadline -ltermcap"
6529
6530 else
6531
6532            # Did not find standard library, so try Bacula's default
6533             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6536 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 fi
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 else
6543   # Is the header compilable?
6544 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6545 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 $ac_includes_default
6553 #include <${TOP_DIR}/depkgs/readline/readline.h>
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag"
6565                          || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest.$ac_objext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_header_compiler=yes
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_header_compiler=no
6583 fi
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6
6587
6588 # Is the header present?
6589 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6590 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597 #include <${TOP_DIR}/depkgs/readline/readline.h>
6598 _ACEOF
6599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6601   ac_status=$?
6602   grep -v '^ *+' conftest.er1 >conftest.err
6603   rm -f conftest.er1
6604   cat conftest.err >&5
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); } >/dev/null; then
6607   if test -s conftest.err; then
6608     ac_cpp_err=$ac_c_preproc_warn_flag
6609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6610   else
6611     ac_cpp_err=
6612   fi
6613 else
6614   ac_cpp_err=yes
6615 fi
6616 if test -z "$ac_cpp_err"; then
6617   ac_header_preproc=yes
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622   ac_header_preproc=no
6623 fi
6624 rm -f conftest.err conftest.$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6626 echo "${ECHO_T}$ac_header_preproc" >&6
6627
6628 # So?  What about this header?
6629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6630   yes:no: )
6631     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6632 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6633     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6634 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6635     ac_header_preproc=yes
6636     ;;
6637   no:yes:* )
6638     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6640     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6642     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6643 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6644     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6645 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6646     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6647 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6648     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6649 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6650     (
6651       cat <<\_ASBOX
6652 ## ------------------------------------------ ##
6653 ## Report this to the AC_PACKAGE_NAME lists.  ##
6654 ## ------------------------------------------ ##
6655 _ASBOX
6656     ) |
6657       sed "s/^/$as_me: WARNING:     /" >&2
6658     ;;
6659 esac
6660 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6661 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   eval "$as_ac_Header=\$ac_header_preproc"
6666 fi
6667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6669
6670 fi
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672    cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_READLINE 1
6674 _ACEOF
6675
6676                  got_readline="yes"
6677                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6678                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6679                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6680                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6681
6682 else
6683    echo " "
6684                 echo "readline.h not found. readline turned off ..."
6685                 echo " "
6686
6687
6688 fi
6689
6690
6691
6692
6693 fi
6694
6695
6696
6697
6698 fi;
6699 fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 # Minimal stuff for readline Makefile configuration
6711 MAKE_SHELL=/bin/sh
6712
6713 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6714 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6715 if test "${ac_cv_header_stat_broken+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   cat >conftest.$ac_ext <<_ACEOF
6719 /* confdefs.h.  */
6720 _ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h.  */
6724 #include <sys/types.h>
6725 #include <sys/stat.h>
6726
6727 #if defined(S_ISBLK) && defined(S_IFDIR)
6728 # if S_ISBLK (S_IFDIR)
6729 You lose.
6730 # endif
6731 #endif
6732
6733 #if defined(S_ISBLK) && defined(S_IFCHR)
6734 # if S_ISBLK (S_IFCHR)
6735 You lose.
6736 # endif
6737 #endif
6738
6739 #if defined(S_ISLNK) && defined(S_IFREG)
6740 # if S_ISLNK (S_IFREG)
6741 You lose.
6742 # endif
6743 #endif
6744
6745 #if defined(S_ISSOCK) && defined(S_IFREG)
6746 # if S_ISSOCK (S_IFREG)
6747 You lose.
6748 # endif
6749 #endif
6750
6751 _ACEOF
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753   $EGREP "You lose" >/dev/null 2>&1; then
6754   ac_cv_header_stat_broken=yes
6755 else
6756   ac_cv_header_stat_broken=no
6757 fi
6758 rm -f conftest*
6759
6760 fi
6761 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6762 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6763 if test $ac_cv_header_stat_broken = yes; then
6764
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STAT_MACROS_BROKEN 1
6767 _ACEOF
6768
6769 fi
6770
6771
6772
6773
6774
6775
6776 ac_header_dirent=no
6777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6778   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6782   echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784   cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790 #include <sys/types.h>
6791 #include <$ac_hdr>
6792
6793 int
6794 main ()
6795 {
6796 if ((DIR *) 0)
6797 return 0;
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804   (eval $ac_compile) 2>conftest.er1
6805   ac_status=$?
6806   grep -v '^ *+' conftest.er1 >conftest.err
6807   rm -f conftest.er1
6808   cat conftest.err >&5
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -z "$ac_c_werror_flag"
6812                          || test ! -s conftest.err'
6813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814   (eval $ac_try) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; } &&
6818          { ac_try='test -s conftest.$ac_objext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824   eval "$as_ac_Header=yes"
6825 else
6826   echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 eval "$as_ac_Header=no"
6830 fi
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836   cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6838 _ACEOF
6839
6840 ac_header_dirent=$ac_hdr; break
6841 fi
6842
6843 done
6844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6845 if test $ac_header_dirent = dirent.h; then
6846   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6848 if test "${ac_cv_search_opendir+set}" = set; then
6849   echo $ECHO_N "(cached) $ECHO_C" >&6
6850 else
6851   ac_func_search_save_LIBS=$LIBS
6852 ac_cv_search_opendir=no
6853 cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h.  */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h.  */
6859
6860 /* Override any gcc2 internal prototype to avoid an error.  */
6861 #ifdef __cplusplus
6862 extern "C"
6863 #endif
6864 /* We use char because int might match the return type of a gcc2
6865    builtin and then its argument prototype would still apply.  */
6866 char opendir ();
6867 int
6868 main ()
6869 {
6870 opendir ();
6871   ;
6872   return 0;
6873 }
6874 _ACEOF
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877   (eval $ac_link) 2>conftest.er1
6878   ac_status=$?
6879   grep -v '^ *+' conftest.er1 >conftest.err
6880   rm -f conftest.er1
6881   cat conftest.err >&5
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } &&
6884          { ac_try='test -z "$ac_c_werror_flag"
6885                          || test ! -s conftest.err'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; } &&
6891          { ac_try='test -s conftest$ac_exeext'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; }; then
6897   ac_cv_search_opendir="none required"
6898 else
6899   echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 fi
6903 rm -f conftest.err conftest.$ac_objext \
6904       conftest$ac_exeext conftest.$ac_ext
6905 if test "$ac_cv_search_opendir" = no; then
6906   for ac_lib in dir; do
6907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6908     cat >conftest.$ac_ext <<_ACEOF
6909 /* confdefs.h.  */
6910 _ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h.  */
6914
6915 /* Override any gcc2 internal prototype to avoid an error.  */
6916 #ifdef __cplusplus
6917 extern "C"
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920    builtin and then its argument prototype would still apply.  */
6921 char opendir ();
6922 int
6923 main ()
6924 {
6925 opendir ();
6926   ;
6927   return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932   (eval $ac_link) 2>conftest.er1
6933   ac_status=$?
6934   grep -v '^ *+' conftest.er1 >conftest.err
6935   rm -f conftest.er1
6936   cat conftest.err >&5
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); } &&
6939          { ac_try='test -z "$ac_c_werror_flag"
6940                          || test ! -s conftest.err'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; } &&
6946          { ac_try='test -s conftest$ac_exeext'
6947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948   (eval $ac_try) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; }; then
6952   ac_cv_search_opendir="-l$ac_lib"
6953 break
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 fi
6959 rm -f conftest.err conftest.$ac_objext \
6960       conftest$ac_exeext conftest.$ac_ext
6961   done
6962 fi
6963 LIBS=$ac_func_search_save_LIBS
6964 fi
6965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6967 if test "$ac_cv_search_opendir" != no; then
6968   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6969
6970 fi
6971
6972 else
6973   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6975 if test "${ac_cv_search_opendir+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   ac_func_search_save_LIBS=$LIBS
6979 ac_cv_search_opendir=no
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986
6987 /* Override any gcc2 internal prototype to avoid an error.  */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 /* We use char because int might match the return type of a gcc2
6992    builtin and then its argument prototype would still apply.  */
6993 char opendir ();
6994 int
6995 main ()
6996 {
6997 opendir ();
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004   (eval $ac_link) 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -z "$ac_c_werror_flag"
7012                          || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_search_opendir="none required"
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 fi
7030 rm -f conftest.err conftest.$ac_objext \
7031       conftest$ac_exeext conftest.$ac_ext
7032 if test "$ac_cv_search_opendir" = no; then
7033   for ac_lib in x; do
7034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7035     cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h.  */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h.  */
7041
7042 /* Override any gcc2 internal prototype to avoid an error.  */
7043 #ifdef __cplusplus
7044 extern "C"
7045 #endif
7046 /* We use char because int might match the return type of a gcc2
7047    builtin and then its argument prototype would still apply.  */
7048 char opendir ();
7049 int
7050 main ()
7051 {
7052 opendir ();
7053   ;
7054   return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059   (eval $ac_link) 2>conftest.er1
7060   ac_status=$?
7061   grep -v '^ *+' conftest.er1 >conftest.err
7062   rm -f conftest.er1
7063   cat conftest.err >&5
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); } &&
7066          { ac_try='test -z "$ac_c_werror_flag"
7067                          || test ! -s conftest.err'
7068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069   (eval $ac_try) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; } &&
7073          { ac_try='test -s conftest$ac_exeext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   ac_cv_search_opendir="-l$ac_lib"
7080 break
7081 else
7082   echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7084
7085 fi
7086 rm -f conftest.err conftest.$ac_objext \
7087       conftest$ac_exeext conftest.$ac_ext
7088   done
7089 fi
7090 LIBS=$ac_func_search_save_LIBS
7091 fi
7092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7094 if test "$ac_cv_search_opendir" != no; then
7095   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7096
7097 fi
7098
7099 fi
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7110 do
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114 if eval "test \"\${$as_ac_var+set}\" = set"; then
7115   echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117   cat >conftest.$ac_ext <<_ACEOF
7118 /* confdefs.h.  */
7119 _ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h.  */
7123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7125 #define $ac_func innocuous_$ac_func
7126
7127 /* System header to define __stub macros and hopefully few prototypes,
7128     which can conflict with char $ac_func (); below.
7129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130     <limits.h> exists even on freestanding compilers.  */
7131
7132 #ifdef __STDC__
7133 # include <limits.h>
7134 #else
7135 # include <assert.h>
7136 #endif
7137
7138 #undef $ac_func
7139
7140 /* Override any gcc2 internal prototype to avoid an error.  */
7141 #ifdef __cplusplus
7142 extern "C"
7143 {
7144 #endif
7145 /* We use char because int might match the return type of a gcc2
7146    builtin and then its argument prototype would still apply.  */
7147 char $ac_func ();
7148 /* The GNU C library defines this for functions which it implements
7149     to always fail with ENOSYS.  Some functions are actually named
7150     something starting with __ and the normal name is an alias.  */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 choke me
7153 #else
7154 char (*f) () = $ac_func;
7155 #endif
7156 #ifdef __cplusplus
7157 }
7158 #endif
7159
7160 int
7161 main ()
7162 {
7163 return f != $ac_func;
7164   ;
7165   return 0;
7166 }
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170   (eval $ac_link) 2>conftest.er1
7171   ac_status=$?
7172   grep -v '^ *+' conftest.er1 >conftest.err
7173   rm -f conftest.er1
7174   cat conftest.err >&5
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } &&
7177          { ac_try='test -z "$ac_c_werror_flag"
7178                          || test ! -s conftest.err'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; } &&
7184          { ac_try='test -s conftest$ac_exeext'
7185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186   (eval $ac_try) 2>&5
7187   ac_status=$?
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); }; }; then
7190   eval "$as_ac_var=yes"
7191 else
7192   echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195 eval "$as_ac_var=no"
7196 fi
7197 rm -f conftest.err conftest.$ac_objext \
7198       conftest$ac_exeext conftest.$ac_ext
7199 fi
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203   cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7205 _ACEOF
7206
7207 fi
7208 done
7209
7210
7211
7212 for ac_func in nanosleep nl_langinfo
7213 do
7214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7215 echo "$as_me:$LINENO: checking for $ac_func" >&5
7216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7217 if eval "test \"\${$as_ac_var+set}\" = set"; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h.  */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h.  */
7226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7228 #define $ac_func innocuous_$ac_func
7229
7230 /* System header to define __stub macros and hopefully few prototypes,
7231     which can conflict with char $ac_func (); below.
7232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233     <limits.h> exists even on freestanding compilers.  */
7234
7235 #ifdef __STDC__
7236 # include <limits.h>
7237 #else
7238 # include <assert.h>
7239 #endif
7240
7241 #undef $ac_func
7242
7243 /* Override any gcc2 internal prototype to avoid an error.  */
7244 #ifdef __cplusplus
7245 extern "C"
7246 {
7247 #endif
7248 /* We use char because int might match the return type of a gcc2
7249    builtin and then its argument prototype would still apply.  */
7250 char $ac_func ();
7251 /* The GNU C library defines this for functions which it implements
7252     to always fail with ENOSYS.  Some functions are actually named
7253     something starting with __ and the normal name is an alias.  */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7255 choke me
7256 #else
7257 char (*f) () = $ac_func;
7258 #endif
7259 #ifdef __cplusplus
7260 }
7261 #endif
7262
7263 int
7264 main ()
7265 {
7266 return f != $ac_func;
7267   ;
7268   return 0;
7269 }
7270 _ACEOF
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273   (eval $ac_link) 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } &&
7280          { ac_try='test -z "$ac_c_werror_flag"
7281                          || test ! -s conftest.err'
7282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283   (eval $ac_try) 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; } &&
7287          { ac_try='test -s conftest$ac_exeext'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; }; then
7293   eval "$as_ac_var=yes"
7294 else
7295   echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7297
7298 eval "$as_ac_var=no"
7299 fi
7300 rm -f conftest.err conftest.$ac_objext \
7301       conftest$ac_exeext conftest.$ac_ext
7302 fi
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7305 if test `eval echo '${'$as_ac_var'}'` = yes; then
7306   cat >>confdefs.h <<_ACEOF
7307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7308 _ACEOF
7309
7310 fi
7311 done
7312
7313
7314 for ac_header in varargs.h
7315 do
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318   echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 fi
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7325 else
7326   # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335 $ac_includes_default
7336 #include <$ac_header>
7337 _ACEOF
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340   (eval $ac_compile) 2>conftest.er1
7341   ac_status=$?
7342   grep -v '^ *+' conftest.er1 >conftest.err
7343   rm -f conftest.er1
7344   cat conftest.err >&5
7345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); } &&
7347          { ac_try='test -z "$ac_c_werror_flag"
7348                          || test ! -s conftest.err'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; } &&
7354          { ac_try='test -s conftest.$ac_objext'
7355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356   (eval $ac_try) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }; }; then
7360   ac_header_compiler=yes
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 ac_header_compiler=no
7366 fi
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7369 echo "${ECHO_T}$ac_header_compiler" >&6
7370
7371 # Is the header present?
7372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7375 /* confdefs.h.  */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h.  */
7380 #include <$ac_header>
7381 _ACEOF
7382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384   ac_status=$?
7385   grep -v '^ *+' conftest.er1 >conftest.err
7386   rm -f conftest.er1
7387   cat conftest.err >&5
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); } >/dev/null; then
7390   if test -s conftest.err; then
7391     ac_cpp_err=$ac_c_preproc_warn_flag
7392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7393   else
7394     ac_cpp_err=
7395   fi
7396 else
7397   ac_cpp_err=yes
7398 fi
7399 if test -z "$ac_cpp_err"; then
7400   ac_header_preproc=yes
7401 else
7402   echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7404
7405   ac_header_preproc=no
7406 fi
7407 rm -f conftest.err conftest.$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7409 echo "${ECHO_T}$ac_header_preproc" >&6
7410
7411 # So?  What about this header?
7412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7413   yes:no: )
7414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7418     ac_header_preproc=yes
7419     ;;
7420   no:yes:* )
7421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7433     (
7434       cat <<\_ASBOX
7435 ## ------------------------------------------ ##
7436 ## Report this to the AC_PACKAGE_NAME lists.  ##
7437 ## ------------------------------------------ ##
7438 _ASBOX
7439     ) |
7440       sed "s/^/$as_me: WARNING:     /" >&2
7441     ;;
7442 esac
7443 echo "$as_me:$LINENO: checking for $ac_header" >&5
7444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   eval "$as_ac_Header=\$ac_header_preproc"
7449 fi
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7452
7453 fi
7454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7455   cat >>confdefs.h <<_ACEOF
7456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 _ACEOF
7458
7459 fi
7460
7461 done
7462
7463
7464 # End of readline/conio stuff
7465 # -----------------------------------------------------------------------
7466
7467 # -----------------------------------------------------------------------
7468 #  Check for Python support
7469 #
7470 echo "$as_me:$LINENO: checking for Python support" >&5
7471 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7472
7473 # Check whether --with-python or --without-python was given.
7474 if test "${with_python+set}" = set; then
7475   withval="$with_python"
7476
7477   PYTHON_INCDIR=
7478   PYTHON_LIBS=
7479   if test "$withval" != "no"; then
7480      if test "$withval" = "yes"; then
7481         if test -f /usr/include/python2.2/Python.h; then
7482            PYTHON_INCDIR=-I/usr/include/python2.2
7483            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7484         elif test -f /usr/include/python2.3/Python.h; then
7485            PYTHON_INCDIR=-I/usr/include/python2.3
7486            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7487         elif test -f /usr/include/python2.4/Python.h; then
7488            PYTHON_INCDIR=-I/usr/include/python2.4
7489            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7490         elif test -f $prefix/include/Python.h; then
7491            PYTHON_INCDIR=-I$prefix/include
7492            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7493         else
7494            echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7498    { (exit 1); exit 1; }; }
7499         fi
7500      else
7501         if test -f $withval/Python.h; then
7502            PYTHON_INCDIR=-I$withval
7503            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7504         elif test -f $withval/include/Python.h; then
7505            PYTHON_INCDIR=-I$withval/include
7506            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7507         else
7508            echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7511 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7512    { (exit 1); exit 1; }; }
7513         fi
7514      fi
7515      cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_PYTHON 1
7517 _ACEOF
7518
7519      echo "$as_me:$LINENO: result: yes" >&5
7520 echo "${ECHO_T}yes" >&6
7521      support_python=yes
7522
7523   else
7524      echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7526   fi
7527
7528 else
7529
7530   echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532
7533 fi;
7534
7535
7536
7537
7538 #
7539 # Find where sockets are (especially for Solaris)
7540 # Do this before the TCP Wrappers test since tcp wrappers
7541 # uses the socket library and some linkers are stupid.
7542 #
7543 echo "$as_me:$LINENO: checking for socket" >&5
7544 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7545 if test "${ac_cv_func_socket+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7556 #define socket innocuous_socket
7557
7558 /* System header to define __stub macros and hopefully few prototypes,
7559     which can conflict with char socket (); below.
7560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7561     <limits.h> exists even on freestanding compilers.  */
7562
7563 #ifdef __STDC__
7564 # include <limits.h>
7565 #else
7566 # include <assert.h>
7567 #endif
7568
7569 #undef socket
7570
7571 /* Override any gcc2 internal prototype to avoid an error.  */
7572 #ifdef __cplusplus
7573 extern "C"
7574 {
7575 #endif
7576 /* We use char because int might match the return type of a gcc2
7577    builtin and then its argument prototype would still apply.  */
7578 char socket ();
7579 /* The GNU C library defines this for functions which it implements
7580     to always fail with ENOSYS.  Some functions are actually named
7581     something starting with __ and the normal name is an alias.  */
7582 #if defined (__stub_socket) || defined (__stub___socket)
7583 choke me
7584 #else
7585 char (*f) () = socket;
7586 #endif
7587 #ifdef __cplusplus
7588 }
7589 #endif
7590
7591 int
7592 main ()
7593 {
7594 return f != socket;
7595   ;
7596   return 0;
7597 }
7598 _ACEOF
7599 rm -f conftest.$ac_objext conftest$ac_exeext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7601   (eval $ac_link) 2>conftest.er1
7602   ac_status=$?
7603   grep -v '^ *+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
7605   cat conftest.err >&5
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } &&
7608          { ac_try='test -z "$ac_c_werror_flag"
7609                          || test ! -s conftest.err'
7610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611   (eval $ac_try) 2>&5
7612   ac_status=$?
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); }; } &&
7615          { ac_try='test -s conftest$ac_exeext'
7616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617   (eval $ac_try) 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); }; }; then
7621   ac_cv_func_socket=yes
7622 else
7623   echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 ac_cv_func_socket=no
7627 fi
7628 rm -f conftest.err conftest.$ac_objext \
7629       conftest$ac_exeext conftest.$ac_ext
7630 fi
7631 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7632 echo "${ECHO_T}$ac_cv_func_socket" >&6
7633 if test $ac_cv_func_socket = yes; then
7634   echo "$as_me:$LINENO: result: using libc's socket" >&5
7635 echo "${ECHO_T}using libc's socket" >&6
7636 else
7637
7638 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7639 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7640 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lxnet  $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h.  */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h.  */
7651
7652 /* Override any gcc2 internal prototype to avoid an error.  */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 /* We use char because int might match the return type of a gcc2
7657    builtin and then its argument prototype would still apply.  */
7658 char socket ();
7659 int
7660 main ()
7661 {
7662 socket ();
7663   ;
7664   return 0;
7665 }
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669   (eval $ac_link) 2>conftest.er1
7670   ac_status=$?
7671   grep -v '^ *+' conftest.er1 >conftest.err
7672   rm -f conftest.er1
7673   cat conftest.err >&5
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); } &&
7676          { ac_try='test -z "$ac_c_werror_flag"
7677                          || test ! -s conftest.err'
7678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679   (eval $ac_try) 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); }; } &&
7683          { ac_try='test -s conftest$ac_exeext'
7684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685   (eval $ac_try) 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; }; then
7689   ac_cv_lib_xnet_socket=yes
7690 else
7691   echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 ac_cv_lib_xnet_socket=no
7695 fi
7696 rm -f conftest.err conftest.$ac_objext \
7697       conftest$ac_exeext conftest.$ac_ext
7698 LIBS=$ac_check_lib_save_LIBS
7699 fi
7700 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7701 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7702 if test $ac_cv_lib_xnet_socket = yes; then
7703   cat >>confdefs.h <<_ACEOF
7704 #define HAVE_LIBXNET 1
7705 _ACEOF
7706
7707   LIBS="-lxnet $LIBS"
7708
7709 fi
7710
7711
7712 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7713 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7714 if test "${ac_cv_lib_socket_socket+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   ac_check_lib_save_LIBS=$LIBS
7718 LIBS="-lsocket  $LIBS"
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725
7726 /* Override any gcc2 internal prototype to avoid an error.  */
7727 #ifdef __cplusplus
7728 extern "C"
7729 #endif
7730 /* We use char because int might match the return type of a gcc2
7731    builtin and then its argument prototype would still apply.  */
7732 char socket ();
7733 int
7734 main ()
7735 {
7736 socket ();
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743   (eval $ac_link) 2>conftest.er1
7744   ac_status=$?
7745   grep -v '^ *+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -z "$ac_c_werror_flag"
7751                          || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest$ac_exeext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_cv_lib_socket_socket=yes
7764 else
7765   echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_cv_lib_socket_socket=no
7769 fi
7770 rm -f conftest.err conftest.$ac_objext \
7771       conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7775 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7776 if test $ac_cv_lib_socket_socket = yes; then
7777   cat >>confdefs.h <<_ACEOF
7778 #define HAVE_LIBSOCKET 1
7779 _ACEOF
7780
7781   LIBS="-lsocket $LIBS"
7782
7783 fi
7784
7785
7786 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7787 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7788 if test "${ac_cv_lib_inet_socket+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   ac_check_lib_save_LIBS=$LIBS
7792 LIBS="-linet  $LIBS"
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h.  */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h.  */
7799
7800 /* Override any gcc2 internal prototype to avoid an error.  */
7801 #ifdef __cplusplus
7802 extern "C"
7803 #endif
7804 /* We use char because int might match the return type of a gcc2
7805    builtin and then its argument prototype would still apply.  */
7806 char socket ();
7807 int
7808 main ()
7809 {
7810 socket ();
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817   (eval $ac_link) 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -z "$ac_c_werror_flag"
7825                          || test ! -s conftest.err'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; } &&
7831          { ac_try='test -s conftest$ac_exeext'
7832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833   (eval $ac_try) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }; }; then
7837   ac_cv_lib_inet_socket=yes
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842 ac_cv_lib_inet_socket=no
7843 fi
7844 rm -f conftest.err conftest.$ac_objext \
7845       conftest$ac_exeext conftest.$ac_ext
7846 LIBS=$ac_check_lib_save_LIBS
7847 fi
7848 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7849 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7850 if test $ac_cv_lib_inet_socket = yes; then
7851   cat >>confdefs.h <<_ACEOF
7852 #define HAVE_LIBINET 1
7853 _ACEOF
7854
7855   LIBS="-linet $LIBS"
7856
7857 fi
7858
7859 fi
7860
7861
7862
7863 # -----------------------------------------------------------
7864 # Check whether user wants TCP wrappers support (default off)
7865 # -----------------------------------------------------------
7866 TCPW_MSG="no"
7867
7868 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7869 if test "${with_tcp_wrappers+set}" = set; then
7870   withval="$with_tcp_wrappers"
7871
7872     if test "x$withval" != "xno" ; then
7873        saved_LIBS="$LIBS"
7874        LIBS="$saved_LIBS -lwrap"
7875        echo "$as_me:$LINENO: checking for libwrap" >&5
7876 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7877        cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h.  */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h.  */
7883  #include <tcpd.h>
7884              int deny_severity = 0;
7885              int allow_severity = 0;
7886              struct request_info *req;
7887 int
7888 main ()
7889 {
7890  hosts_access(req);
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897   (eval $ac_link) 2>conftest.er1
7898   ac_status=$?
7899   grep -v '^ *+' conftest.er1 >conftest.err
7900   rm -f conftest.er1
7901   cat conftest.err >&5
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -z "$ac_c_werror_flag"
7905                          || test ! -s conftest.err'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; } &&
7911          { ac_try='test -s conftest$ac_exeext'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; }; then
7917
7918             echo "$as_me:$LINENO: result: yes" >&5
7919 echo "${ECHO_T}yes" >&6
7920             cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LIBWRAP 1
7922 _ACEOF
7923
7924             TCPW_MSG="yes"
7925
7926 else
7927   echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7929
7930
7931             LIBS="$saved_LIBS -lwrap -lnsl"
7932             cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938  #include <tcpd.h>
7939                  int deny_severity = 0;
7940                  int allow_severity = 0;
7941                  struct request_info *req;
7942 int
7943 main ()
7944 {
7945  hosts_access(req);
7946   ;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7952   (eval $ac_link) 2>conftest.er1
7953   ac_status=$?
7954   grep -v '^ *+' conftest.er1 >conftest.err
7955   rm -f conftest.er1
7956   cat conftest.err >&5
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); } &&
7959          { ac_try='test -z "$ac_c_werror_flag"
7960                          || test ! -s conftest.err'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; } &&
7966          { ac_try='test -s conftest$ac_exeext'
7967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968   (eval $ac_try) 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); }; }; then
7972
7973                  echo "$as_me:$LINENO: result: yes" >&5
7974 echo "${ECHO_T}yes" >&6
7975                  cat >>confdefs.h <<\_ACEOF
7976 #define HAVE_LIBWRAP 1
7977 _ACEOF
7978
7979                  TCPW_MSG="yes"
7980
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7986 echo "$as_me: error: *** libwrap missing" >&2;}
7987    { (exit 1); exit 1; }; }
7988
7989 fi
7990 rm -f conftest.err conftest.$ac_objext \
7991       conftest$ac_exeext conftest.$ac_ext
7992
7993 fi
7994 rm -f conftest.err conftest.$ac_objext \
7995       conftest$ac_exeext conftest.$ac_ext
7996     fi
7997
7998
7999 fi;
8000
8001 # ------------------------------------------
8002 # Where to place working dir
8003 # ------------------------------------------
8004 working_dir=`eval echo ${prefix}/var/bacula/working`
8005
8006 # Check whether --with-working-dir or --without-working-dir was given.
8007 if test "${with_working_dir+set}" = set; then
8008   withval="$with_working_dir"
8009
8010        if test "x$withval" != "xno" ; then
8011               working_dir=$withval
8012        fi
8013
8014
8015 fi;
8016
8017
8018
8019
8020 # ------------------------------------------
8021 # Where to place scriptdir (script files)
8022 # ------------------------------------------
8023 scriptdir=`eval echo ${sysconfdir}`
8024
8025 # Check whether --with-scriptdir or --without-scriptdir was given.
8026 if test "${with_scriptdir+set}" = set; then
8027   withval="$with_scriptdir"
8028
8029        if test "x$withval" != "xno" ; then
8030               scriptdir=$withval
8031        fi
8032
8033
8034 fi;
8035
8036
8037
8038
8039 # ------------------------------------------
8040 # Where to send dump email
8041 # ------------------------------------------
8042 dump_email=root@localhost
8043
8044 # Check whether --with-dump-email or --without-dump-email was given.
8045 if test "${with_dump_email+set}" = set; then
8046   withval="$with_dump_email"
8047
8048        if test "x$withval" != "xno" ; then
8049               dump_email=$withval
8050        fi
8051
8052
8053 fi;
8054
8055
8056
8057 # ------------------------------------------
8058 # Where to send job email
8059 # ------------------------------------------
8060 job_email=root@localhost
8061
8062 # Check whether --with-job-email or --without-job-email was given.
8063 if test "${with_job_email+set}" = set; then
8064   withval="$with_job_email"
8065
8066        if test "x$withval" != "xno" ; then
8067               job_email=$withval
8068        fi
8069
8070
8071 fi;
8072
8073
8074
8075 # ------------------------------------------
8076 # Where to find smtp host
8077 # ------------------------------------------
8078 smtp_host=localhost
8079
8080 # Check whether --with-smtp_host or --without-smtp_host was given.
8081 if test "${with_smtp_host+set}" = set; then
8082   withval="$with_smtp_host"
8083
8084        if test "x$withval" != "xno" ; then
8085               smtp_host=$withval
8086        fi
8087
8088
8089 fi;
8090
8091
8092
8093
8094 # ------------------------------------
8095 # Where to place pid files
8096 # ------------------------------------
8097 piddir=/var/run
8098
8099 # Check whether --with-pid-dir or --without-pid-dir was given.
8100 if test "${with_pid_dir+set}" = set; then
8101   withval="$with_pid_dir"
8102
8103         if test "x$withval" != "xno" ; then
8104             piddir=$withval
8105         fi
8106
8107
8108 fi;
8109
8110 cat >>confdefs.h <<_ACEOF
8111 #define _PATH_BACULA_PIDDIR "$piddir"
8112 _ACEOF
8113
8114
8115
8116
8117 # ------------------------------------
8118 # Where to place subsys "lock file"
8119 # ------------------------------------
8120 subsysdir=/var/run/subsys
8121
8122 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8123 if test "${with_subsys_dir+set}" = set; then
8124   withval="$with_subsys_dir"
8125
8126         if test "x$withval" != "xno" ; then
8127             subsysdir=$withval
8128         fi
8129
8130
8131 fi;
8132
8133
8134
8135
8136
8137 # ------------------------------------
8138 # Where to start assigning ports
8139 # ------------------------------------
8140 baseport=9101
8141
8142 # Check whether --with-baseport or --without-baseport was given.
8143 if test "${with_baseport+set}" = set; then
8144   withval="$with_baseport"
8145
8146         if test "x$withval" != "xno" ; then
8147              baseport=$withval
8148         fi
8149
8150
8151 fi;
8152
8153
8154 dir_port=`expr $baseport`
8155 fd_port=`expr $baseport + 1`
8156 sd_port=`expr $fd_port + 1`
8157
8158
8159
8160
8161
8162
8163 # ------------------------------------------
8164 # Generate passwords
8165 # ------------------------------------------
8166 dir_password=
8167
8168 # Check whether --with-dir-password or --without-dir-password was given.
8169 if test "${with_dir_password+set}" = set; then
8170   withval="$with_dir_password"
8171
8172        if test "x$withval" != "xno" ; then
8173            dir_password=$withval
8174        fi
8175
8176
8177 fi;
8178
8179 if test "x$dir_password" = "x" ; then
8180    if test "x$OPENSSL" = "xnone" ; then
8181 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8182       key=`autoconf/randpass 33`
8183    else
8184       key=`openssl rand -base64 33`
8185    fi
8186    dir_password=$key
8187 fi
8188
8189 fd_password=
8190
8191 # Check whether --with-fd-password or --without-fd-password was given.
8192 if test "${with_fd_password+set}" = set; then
8193   withval="$with_fd_password"
8194
8195        if test "x$withval" != "xno" ; then
8196            fd_password=$withval
8197        fi
8198
8199
8200 fi;
8201
8202 if test "x$fd_password" = "x" ; then
8203    if test "x$OPENSSL" = "xnone" ; then
8204 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8205       key=`autoconf/randpass 37`
8206    else
8207       key=`openssl rand -base64 33`
8208    fi
8209    fd_password=$key
8210 fi
8211
8212 sd_password=
8213
8214 # Check whether --with-sd-password or --without-sd-password was given.
8215 if test "${with_sd_password+set}" = set; then
8216   withval="$with_sd_password"
8217
8218        if test "x$withval" != "xno" ; then
8219            sd_password=$withval
8220        fi
8221
8222
8223 fi;
8224
8225 if test "x$sd_password" = "x" ; then
8226    if test "x$OPENSSL" = "xnone" ; then
8227 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8228       key=`autoconf/randpass 41`
8229    else
8230       key=`openssl rand -base64 33`
8231    fi
8232    sd_password=$key
8233 fi
8234
8235 mon_dir_password=
8236
8237 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8238 if test "${with_mon_dir_password+set}" = set; then
8239   withval="$with_mon_dir_password"
8240
8241        if test "x$withval" != "xno" ; then
8242            mon_dir_password=$withval
8243        fi
8244
8245
8246 fi;
8247
8248 if test "x$mon_dir_password" = "x" ; then
8249    if test "x$OPENSSL" = "xnone" ; then
8250 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8251       key=`autoconf/randpass 33`
8252    else
8253       key=`openssl rand -base64 33`
8254    fi
8255    mon_dir_password=$key
8256 fi
8257
8258 mon_fd_password=
8259
8260 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8261 if test "${with_mon_fd_password+set}" = set; then
8262   withval="$with_mon_fd_password"
8263
8264        if test "x$withval" != "xno" ; then
8265            mon_fd_password=$withval
8266        fi
8267
8268
8269 fi;
8270
8271 if test "x$mon_fd_password" = "x" ; then
8272    if test "x$OPENSSL" = "xnone" ; then
8273 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8274       key=`autoconf/randpass 37`
8275    else
8276       key=`openssl rand -base64 33`
8277    fi
8278    mon_fd_password=$key
8279 fi
8280
8281 mon_sd_password=
8282
8283 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8284 if test "${with_mon_sd_password+set}" = set; then
8285   withval="$with_mon_sd_password"
8286
8287        if test "x$withval" != "xno" ; then
8288            mon_sd_password=$withval
8289        fi
8290
8291
8292 fi;
8293
8294 if test "x$mon_sd_password" = "x" ; then
8295    if test "x$OPENSSL" = "xnone" ; then
8296 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8297       key=`autoconf/randpass 41`
8298    else
8299       key=`openssl rand -base64 33`
8300    fi
8301    mon_sd_password=$key
8302 fi
8303
8304
8305
8306
8307
8308
8309
8310
8311 # -------------------------------------------------------------------------
8312 #  Set variables for bimagemgr installation
8313 # -------------------------------------------------------------------------
8314 bimagemgr_cgidir=/var/www/cgi-bin
8315
8316 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8317 if test "${with_bimagemgr_cgidir+set}" = set; then
8318   withval="$with_bimagemgr_cgidir"
8319
8320        if test "x$withval" != "xno" ; then
8321            bimagemgr_cgidir=$withval
8322        fi
8323
8324
8325 fi;
8326
8327 bimagemgr_docdir=/var/www/html
8328
8329 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8330 if test "${with_bimagemgr_docdir+set}" = set; then
8331   withval="$with_bimagemgr_docdir"
8332
8333        if test "x$withval" != "xno" ; then
8334            bimagemgr_docdir=$withval
8335        fi
8336
8337
8338 fi;
8339
8340 bimagemgr_binowner=root
8341
8342 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8343 if test "${with_bimagemgr_binowner+set}" = set; then
8344   withval="$with_bimagemgr_binowner"
8345
8346        if test "x$withval" != "xno" ; then
8347            bimagemgr_binowner=$withval
8348        fi
8349
8350
8351 fi;
8352
8353 bimagemgr_bingroup=root
8354
8355 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8356 if test "${with_bimagemgr_bingroup+set}" = set; then
8357   withval="$with_bimagemgr_bingroup"
8358
8359        if test "x$withval" != "xno" ; then
8360            bimagemgr_bingroup=$withval
8361        fi
8362
8363
8364 fi;
8365
8366 bimagemgr_dataowner=apache
8367
8368 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8369 if test "${with_bimagemgr_dataowner+set}" = set; then
8370   withval="$with_bimagemgr_dataowner"
8371
8372        if test "x$withval" != "xno" ; then
8373            bimagemgr_dataowner=$withval
8374        fi
8375
8376
8377 fi;
8378
8379 bimagemgr_datagroup=apache
8380
8381 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8382 if test "${with_bimagemgr_datagroup+set}" = set; then
8383   withval="$with_bimagemgr_datagroup"
8384
8385        if test "x$withval" != "xno" ; then
8386            bimagemgr_datagroup=$withval
8387        fi
8388
8389
8390 fi;
8391
8392
8393
8394
8395
8396
8397
8398
8399 #
8400 # Handle users and groups for each daemon
8401 #
8402 dir_user=
8403
8404 # Check whether --with-dir_user or --without-dir_user was given.
8405 if test "${with_dir_user+set}" = set; then
8406   withval="$with_dir_user"
8407
8408         if test "x$withval" != "x" ; then
8409              dir_user=$withval
8410         fi
8411
8412
8413 fi;
8414
8415 dir_group=
8416
8417 # Check whether --with-dir_group or --without-dir_group was given.
8418 if test "${with_dir_group+set}" = set; then
8419   withval="$with_dir_group"
8420
8421         if test "x$withval" != "x" ; then
8422              dir_group=$withval
8423         fi
8424
8425
8426 fi;
8427
8428 sd_user=
8429
8430 # Check whether --with-sd_user or --without-sd_user was given.
8431 if test "${with_sd_user+set}" = set; then
8432   withval="$with_sd_user"
8433
8434         if test "x$withval" != "x" ; then
8435              sd_user=$withval
8436         fi
8437
8438
8439 fi;
8440
8441 sd_group=
8442
8443 # Check whether --with-sd_group or --without-sd_group was given.
8444 if test "${with_sd_group+set}" = set; then
8445   withval="$with_sd_group"
8446
8447         if test "x$withval" != "x" ; then
8448              sd_group=$withval
8449         fi
8450
8451
8452 fi;
8453
8454 fd_user=
8455
8456 # Check whether --with-fd_user or --without-fd_user was given.
8457 if test "${with_fd_user+set}" = set; then
8458   withval="$with_fd_user"
8459
8460         if test "x$withval" != "x" ; then
8461              fd_user=$withval
8462         fi
8463
8464
8465 fi;
8466
8467 fd_group=
8468
8469 # Check whether --with-fd_group or --without-fd_group was given.
8470 if test "${with_fd_group+set}" = set; then
8471   withval="$with_fd_group"
8472
8473         if test "x$withval" != "x" ; then
8474              fd_group=$withval
8475         fi
8476
8477
8478 fi;
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490 #
8491 # allow setting default executable permissions
8492 #
8493 SBINPERM=0754
8494
8495 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8496 if test "${with_sbin_perm+set}" = set; then
8497   withval="$with_sbin_perm"
8498
8499         if test "x$withval" != "x" ; then
8500             SBINPERM=$withval
8501         fi
8502
8503
8504 fi;
8505
8506
8507
8508 # ------------------------------------------------
8509 # Bacula check for various SQL database engines
8510 # ------------------------------------------------
8511
8512 db_found=no
8513 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8514 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8515
8516 # Check whether --with-postgresql or --without-postgresql was given.
8517 if test "${with_postgresql+set}" = set; then
8518   withval="$with_postgresql"
8519
8520   if test "$withval" != "no"; then
8521       if test "$db_found" = "yes"; then
8522           echo "$as_me:$LINENO: result: error" >&5
8523 echo "${ECHO_T}error" >&6
8524           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8525 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8526    { (exit 1); exit 1; }; };
8527       fi
8528       if test "$withval" = "yes"; then
8529           if test -f /usr/local/include/libpq-fe.h; then
8530               POSTGRESQL_INCDIR=/usr/local/include
8531               POSTGRESQL_LIBDIR=/usr/local/lib
8532               POSTGRESQL_BINDIR=/usr/local/bin
8533           elif test -f /usr/include/libpq-fe.h; then
8534               POSTGRESQL_INCDIR=/usr/include
8535               POSTGRESQL_LIBDIR=/usr/lib
8536               POSTGRESQL_BINDIR=/usr/bin
8537           elif test -f /usr/include/pgsql/libpq-fe.h; then
8538               POSTGRESQL_INCDIR=/usr/include/pgsql
8539               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8540               POSTGRESQL_BINDIR=/usr/bin
8541           elif test -f /usr/include/postgresql/libpq-fe.h; then
8542               POSTGRESQL_INCDIR=/usr/include/postgresql
8543               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8544               POSTGRESQL_BINDIR=/usr/bin
8545           else
8546               echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6
8548               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8549 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8550    { (exit 1); exit 1; }; }
8551           fi
8552       elif test -f $withval/include/libpq-fe.h; then
8553           POSTGRESQL_INCDIR=$withval/include
8554           POSTGRESQL_LIBDIR=$withval/lib
8555           POSTGRESQL_BINDIR=$withval/bin
8556       elif test -f $withval/include/postgresql/libpq-fe.h; then
8557           POSTGRESQL_INCDIR=$withval/include/postgresql
8558           POSTGRESQL_LIBDIR=$withval/lib
8559           POSTGRESQL_BINDIR=$withval/bin
8560       else
8561           echo "$as_me:$LINENO: result: no" >&5
8562 echo "${ECHO_T}no" >&6
8563           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8564 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8565    { (exit 1); exit 1; }; }
8566       fi
8567       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8568       echo "$as_me:$LINENO: checking for crypt" >&5
8569 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8570 if test "${ac_cv_func_crypt+set}" = set; then
8571   echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573   cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8581 #define crypt innocuous_crypt
8582
8583 /* System header to define __stub macros and hopefully few prototypes,
8584     which can conflict with char crypt (); below.
8585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8586     <limits.h> exists even on freestanding compilers.  */
8587
8588 #ifdef __STDC__
8589 # include <limits.h>
8590 #else
8591 # include <assert.h>
8592 #endif
8593
8594 #undef crypt
8595
8596 /* Override any gcc2 internal prototype to avoid an error.  */
8597 #ifdef __cplusplus
8598 extern "C"
8599 {
8600 #endif
8601 /* We use char because int might match the return type of a gcc2
8602    builtin and then its argument prototype would still apply.  */
8603 char crypt ();
8604 /* The GNU C library defines this for functions which it implements
8605     to always fail with ENOSYS.  Some functions are actually named
8606     something starting with __ and the normal name is an alias.  */
8607 #if defined (__stub_crypt) || defined (__stub___crypt)
8608 choke me
8609 #else
8610 char (*f) () = crypt;
8611 #endif
8612 #ifdef __cplusplus
8613 }
8614 #endif
8615
8616 int
8617 main ()
8618 {
8619 return f != crypt;
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626   (eval $ac_link) 2>conftest.er1
8627   ac_status=$?
8628   grep -v '^ *+' conftest.er1 >conftest.err
8629   rm -f conftest.er1
8630   cat conftest.err >&5
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); } &&
8633          { ac_try='test -z "$ac_c_werror_flag"
8634                          || test ! -s conftest.err'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; } &&
8640          { ac_try='test -s conftest$ac_exeext'
8641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642   (eval $ac_try) 2>&5
8643   ac_status=$?
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); }; }; then
8646   ac_cv_func_crypt=yes
8647 else
8648   echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 ac_cv_func_crypt=no
8652 fi
8653 rm -f conftest.err conftest.$ac_objext \
8654       conftest$ac_exeext conftest.$ac_ext
8655 fi
8656 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8657 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8658 if test $ac_cv_func_crypt = yes; then
8659   :
8660 else
8661   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8662 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8663 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8664   echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666   ac_check_lib_save_LIBS=$LIBS
8667 LIBS="-lcrypt  $LIBS"
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h.  */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h.  */
8674
8675 /* Override any gcc2 internal prototype to avoid an error.  */
8676 #ifdef __cplusplus
8677 extern "C"
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680    builtin and then its argument prototype would still apply.  */
8681 char crypt ();
8682 int
8683 main ()
8684 {
8685 crypt ();
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692   (eval $ac_link) 2>conftest.er1
8693   ac_status=$?
8694   grep -v '^ *+' conftest.er1 >conftest.err
8695   rm -f conftest.er1
8696   cat conftest.err >&5
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } &&
8699          { ac_try='test -z "$ac_c_werror_flag"
8700                          || test ! -s conftest.err'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; } &&
8706          { ac_try='test -s conftest$ac_exeext'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_lib_crypt_crypt=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_cv_lib_crypt_crypt=no
8718 fi
8719 rm -f conftest.err conftest.$ac_objext \
8720       conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_lib_save_LIBS
8722 fi
8723 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8724 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8725 if test $ac_cv_lib_crypt_crypt = yes; then
8726   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8727 fi
8728
8729 fi
8730
8731       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8732       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8733       SQL_BINDIR=$POSTGRESQL_BINDIR
8734       cat >>confdefs.h <<\_ACEOF
8735 #define HAVE_POSTGRESQL 1
8736 _ACEOF
8737
8738       echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6
8740       db_found=yes
8741       support_postgresql=yes
8742       db_name=PostgreSQL
8743       DB_NAME=postgresql
8744   else
8745       echo "$as_me:$LINENO: result: no" >&5
8746 echo "${ECHO_T}no" >&6
8747   fi
8748
8749 else
8750
8751   echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6
8753
8754 fi;
8755
8756
8757
8758
8759
8760
8761
8762 db_found=no
8763 echo "$as_me:$LINENO: checking for MySQL support" >&5
8764 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8765
8766 # Check whether --with-mysql or --without-mysql was given.
8767 if test "${with_mysql+set}" = set; then
8768   withval="$with_mysql"
8769
8770   if test "$withval" != "no"; then
8771         if test "$withval" = "yes"; then
8772                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8773                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8774                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8775                         MYSQL_BINDIR=/usr/local/mysql/bin
8776                 elif test -f /usr/include/mysql/mysql.h; then
8777                         MYSQL_INCDIR=/usr/include/mysql
8778                         MYSQL_LIBDIR=/usr/lib/mysql
8779                         MYSQL_BINDIR=/usr/bin
8780                 elif test -f /usr/include/mysql.h; then
8781                         MYSQL_INCDIR=/usr/include
8782                         MYSQL_LIBDIR=/usr/lib
8783                         MYSQL_BINDIR=/usr/bin
8784                 elif test -f /usr/local/include/mysql/mysql.h; then
8785                         MYSQL_INCDIR=/usr/local/include/mysql
8786                         MYSQL_LIBDIR=/usr/local/lib/mysql
8787                         MYSQL_BINDIR=/usr/local/bin
8788                 elif test -f /usr/local/include/mysql.h; then
8789                         MYSQL_INCDIR=/usr/local/include
8790                         MYSQL_LIBDIR=/usr/local/lib
8791                         MYSQL_BINDIR=/usr/local/bin
8792                 else
8793                    echo "$as_me:$LINENO: result: no" >&5
8794 echo "${ECHO_T}no" >&6
8795                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8796 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8797    { (exit 1); exit 1; }; }
8798                 fi
8799         else
8800                 if test -f $withval/include/mysql/mysql.h; then
8801                         MYSQL_INCDIR=$withval/include/mysql
8802                         MYSQL_LIBDIR=$withval/lib/mysql
8803                         MYSQL_BINDIR=$withval/bin
8804                 elif test -f $withval/include/mysql.h; then
8805                         MYSQL_INCDIR=$withval/include
8806                         MYSQL_LIBDIR=$withval/lib
8807                         MYSQL_BINDIR=$withval/bin
8808                 else
8809                    echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6
8811                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8812 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8813    { (exit 1); exit 1; }; }
8814                 fi
8815         fi
8816     SQL_INCLUDE=-I$MYSQL_INCDIR
8817     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8818        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8819        cat >>confdefs.h <<\_ACEOF
8820 #define HAVE_THREAD_SAFE_MYSQL 1
8821 _ACEOF
8822
8823     else
8824        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8825     fi
8826     SQL_BINDIR=$MYSQL_BINDIR
8827
8828     cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_MYSQL 1
8830 _ACEOF
8831
8832     echo "$as_me:$LINENO: result: yes" >&5
8833 echo "${ECHO_T}yes" >&6
8834     db_found=yes
8835     support_mysql=yes
8836     db_name=MySQL
8837     DB_NAME=mysql
8838
8839   else
8840         echo "$as_me:$LINENO: result: no" >&5
8841 echo "${ECHO_T}no" >&6
8842   fi
8843
8844
8845 fi;
8846
8847
8848 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8849 if test "${with_embedded_mysql+set}" = set; then
8850   withval="$with_embedded_mysql"
8851
8852   if test "$withval" != "no"; then
8853         if test "$withval" = "yes"; then
8854                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8855                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8856                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8857                         MYSQL_BINDIR=/usr/local/mysql/bin
8858                 elif test -f /usr/include/mysql/mysql.h; then
8859                         MYSQL_INCDIR=/usr/include/mysql
8860                         MYSQL_LIBDIR=/usr/lib/mysql
8861                         MYSQL_BINDIR=/usr/bin
8862                 elif test -f /usr/include/mysql.h; then
8863                         MYSQL_INCDIR=/usr/include
8864                         MYSQL_LIBDIR=/usr/lib
8865                         MYSQL_BINDIR=/usr/bin
8866                 elif test -f /usr/local/include/mysql/mysql.h; then
8867                         MYSQL_INCDIR=/usr/local/include/mysql
8868                         MYSQL_LIBDIR=/usr/local/lib/mysql
8869                         MYSQL_BINDIR=/usr/local/bin
8870                 elif test -f /usr/local/include/mysql.h; then
8871                         MYSQL_INCDIR=/usr/local/include
8872                         MYSQL_LIBDIR=/usr/local/lib
8873                         MYSQL_BINDIR=/usr/local/bin
8874                 else
8875                    echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8877                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8878 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8879    { (exit 1); exit 1; }; }
8880                 fi
8881         else
8882                 if test -f $withval/include/mysql/mysql.h; then
8883                         MYSQL_INCDIR=$withval/include/mysql
8884                         MYSQL_LIBDIR=$withval/lib/mysql
8885                         MYSQL_BINDIR=$withval/bin
8886                 elif test -f $withval/include/mysql.h; then
8887                         MYSQL_INCDIR=$withval/include
8888                         MYSQL_LIBDIR=$withval/lib
8889                         MYSQL_BINDIR=$withval/bin
8890                 else
8891                    echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6
8893                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8894 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8895    { (exit 1); exit 1; }; }
8896                 fi
8897         fi
8898     SQL_INCLUDE=-I$MYSQL_INCDIR
8899     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8900     SQL_BINDIR=$MYSQL_BINDIR
8901
8902     cat >>confdefs.h <<\_ACEOF
8903 #define HAVE_MYSQL 1
8904 _ACEOF
8905
8906     cat >>confdefs.h <<\_ACEOF
8907 #define HAVE_EMBEDDED_MYSQL 1
8908 _ACEOF
8909
8910     echo "$as_me:$LINENO: result: yes" >&5
8911 echo "${ECHO_T}yes" >&6
8912     db_found=yes
8913     support_mysql=yes
8914     db_name=MySQL
8915     DB_NAME=mysql
8916
8917   else
8918         echo "$as_me:$LINENO: result: no" >&5
8919 echo "${ECHO_T}no" >&6
8920   fi
8921
8922
8923 fi;
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933 db_found=no
8934 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8935 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8936
8937 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8938 if test "${with_sqlite3+set}" = set; then
8939   withval="$with_sqlite3"
8940
8941   if test "$withval" != "no"; then
8942      if test "$withval" = "yes"; then
8943         if test -f /usr/local/include/sqlite3.h; then
8944            SQLITE_INCDIR=/usr/local/include
8945            SQLITE_LIBDIR=/usr/local/lib
8946            SQLITE_BINDIR=/usr/local/bin
8947         elif test -f /usr/include/sqlite3.h; then
8948            SQLITE_INCDIR=/usr/include
8949            SQLITE_LIBDIR=/usr/lib
8950            SQLITE_BINDIR=/usr/bin
8951         elif test -f $prefix/include/sqlite3.h; then
8952            SQLITE_INCDIR=$prefix/include
8953            SQLITE_LIBDIR=$prefix/lib
8954            SQLITE_BINDIR=$prefix/bin
8955         else
8956            echo "$as_me:$LINENO: result: no" >&5
8957 echo "${ECHO_T}no" >&6
8958            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8959 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8960    { (exit 1); exit 1; }; }
8961         fi
8962      else
8963         if test -f $withval/sqlite3.h; then
8964            SQLITE_INCDIR=$withval
8965            SQLITE_LIBDIR=$withval
8966            SQLITE_BINDIR=$withval
8967         elif test -f $withval/include/sqlite3.h; then
8968            SQLITE_INCDIR=$withval/include
8969            SQLITE_LIBDIR=$withval/lib
8970            SQLITE_BINDIR=$withval/bin
8971         else
8972            echo "$as_me:$LINENO: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8974            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8975 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8976    { (exit 1); exit 1; }; }
8977         fi
8978      fi
8979      SQL_INCLUDE=-I$SQLITE_INCDIR
8980      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
8981      SQL_BINDIR=$SQLITE_BINDIR
8982
8983      cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_SQLITE3 1
8985 _ACEOF
8986
8987      echo "$as_me:$LINENO: result: yes" >&5
8988 echo "${ECHO_T}yes" >&6
8989      db_found=yes
8990      support_sqlite3=yes
8991      db_name=SQLite3
8992      DB_NAME=sqlite3
8993
8994   else
8995      echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8997   fi
8998
8999 else
9000
9001   echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9003
9004 fi;
9005
9006
9007
9008
9009
9010
9011
9012 db_found=no
9013 echo "$as_me:$LINENO: checking for SQLite support" >&5
9014 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9015
9016 # Check whether --with-sqlite or --without-sqlite was given.
9017 if test "${with_sqlite+set}" = set; then
9018   withval="$with_sqlite"
9019
9020   if test "$withval" != "no"; then
9021      if test "$withval" = "yes"; then
9022         if test -f /usr/local/include/sqlite.h; then
9023            SQLITE_INCDIR=/usr/local/include
9024            SQLITE_LIBDIR=/usr/local/lib
9025            SQLITE_BINDIR=/usr/local/bin
9026         elif test -f /usr/include/sqlite.h; then
9027            SQLITE_INCDIR=/usr/include
9028            SQLITE_LIBDIR=/usr/lib
9029            SQLITE_BINDIR=/usr/bin
9030         elif test -f $prefix/include/sqlite.h; then
9031            SQLITE_INCDIR=$prefix/include
9032            SQLITE_LIBDIR=$prefix/lib
9033            SQLITE_BINDIR=$prefix/bin
9034         else
9035            echo "$as_me:$LINENO: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9037            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9038 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9039    { (exit 1); exit 1; }; }
9040         fi
9041      else
9042         if test -f $withval/sqlite.h; then
9043            SQLITE_INCDIR=$withval
9044            SQLITE_LIBDIR=$withval
9045            SQLITE_BINDIR=$withval
9046         elif test -f $withval/include/sqlite.h; then
9047            SQLITE_INCDIR=$withval/include
9048            SQLITE_LIBDIR=$withval/lib
9049            SQLITE_BINDIR=$withval/bin
9050         else
9051            echo "$as_me:$LINENO: result: no" >&5
9052 echo "${ECHO_T}no" >&6
9053            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9054 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9055    { (exit 1); exit 1; }; }
9056         fi
9057      fi
9058      SQL_INCLUDE=-I$SQLITE_INCDIR
9059      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9060      SQL_BINDIR=$SQLITE_BINDIR
9061
9062      cat >>confdefs.h <<\_ACEOF
9063 #define HAVE_SQLITE 1
9064 _ACEOF
9065
9066      echo "$as_me:$LINENO: result: yes" >&5
9067 echo "${ECHO_T}yes" >&6
9068      db_found=yes
9069      support_sqlite=yes
9070      db_name=SQLite
9071      DB_NAME=sqlite
9072
9073   else
9074      echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076   fi
9077
9078 else
9079
9080   echo "$as_me:$LINENO: result: no" >&5
9081 echo "${ECHO_T}no" >&6
9082
9083 fi;
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093 cat >>confdefs.h <<\_ACEOF
9094 #define PROTOTYPES 1
9095 _ACEOF
9096
9097
9098 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9099     if test -z "$CCOPTS"; then
9100         CCOPTS='-g -O2 -Wall'
9101     fi
9102     CFLAGS="$CCOPTS"
9103 fi
9104
9105
9106
9107
9108 largefile_support="no"
9109
9110    # Check whether --enable-largefile or --disable-largefile was given.
9111 if test "${enable_largefile+set}" = set; then
9112   enableval="$enable_largefile"
9113
9114 fi;
9115    if test "$enable_largefile" != no; then
9116      if test -n "$ac_tool_prefix"; then
9117   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9118 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9119 echo "$as_me:$LINENO: checking for $ac_word" >&5
9120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9121 if test "${ac_cv_prog_GETCONF+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124   if test -n "$GETCONF"; then
9125   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9129 do
9130   IFS=$as_save_IFS
9131   test -z "$as_dir" && as_dir=.
9132   for ac_exec_ext in '' $ac_executable_extensions; do
9133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9136     break 2
9137   fi
9138 done
9139 done
9140
9141 fi
9142 fi
9143 GETCONF=$ac_cv_prog_GETCONF
9144 if test -n "$GETCONF"; then
9145   echo "$as_me:$LINENO: result: $GETCONF" >&5
9146 echo "${ECHO_T}$GETCONF" >&6
9147 else
9148   echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6
9150 fi
9151
9152 fi
9153 if test -z "$ac_cv_prog_GETCONF"; then
9154   ac_ct_GETCONF=$GETCONF
9155   # Extract the first word of "getconf", so it can be a program name with args.
9156 set dummy getconf; ac_word=$2
9157 echo "$as_me:$LINENO: checking for $ac_word" >&5
9158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9159 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   if test -n "$ac_ct_GETCONF"; then
9163   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168   IFS=$as_save_IFS
9169   test -z "$as_dir" && as_dir=.
9170   for ac_exec_ext in '' $ac_executable_extensions; do
9171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172     ac_cv_prog_ac_ct_GETCONF="getconf"
9173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9174     break 2
9175   fi
9176 done
9177 done
9178
9179 fi
9180 fi
9181 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9182 if test -n "$ac_ct_GETCONF"; then
9183   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9184 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9185 else
9186   echo "$as_me:$LINENO: result: no" >&5
9187 echo "${ECHO_T}no" >&6
9188 fi
9189
9190   GETCONF=$ac_ct_GETCONF
9191 else
9192   GETCONF="$ac_cv_prog_GETCONF"
9193 fi
9194
9195      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9196 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9197 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9198   echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9201         ac_cv_sys_largefile_CFLAGS=no
9202         case "$host_os" in
9203            # IRIX 6.2 and later require cc -n32.
9204            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9205              if test "$GCC" != yes; then
9206                ac_cv_sys_largefile_CFLAGS=-n32
9207              fi
9208              ac_save_CC="$CC"
9209              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9210              cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216
9217 int
9218 main ()
9219 {
9220
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 rm -f conftest.$ac_objext conftest$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227   (eval $ac_link) 2>conftest.er1
9228   ac_status=$?
9229   grep -v '^ *+' conftest.er1 >conftest.err
9230   rm -f conftest.er1
9231   cat conftest.err >&5
9232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233   (exit $ac_status); } &&
9234          { ac_try='test -z "$ac_c_werror_flag"
9235                          || test ! -s conftest.err'
9236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237   (eval $ac_try) 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); }; } &&
9241          { ac_try='test -s conftest$ac_exeext'
9242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243   (eval $ac_try) 2>&5
9244   ac_status=$?
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); }; }; then
9247   :
9248 else
9249   echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9251
9252 ac_cv_sys_largefile_CFLAGS=no
9253 fi
9254 rm -f conftest.err conftest.$ac_objext \
9255       conftest$ac_exeext conftest.$ac_ext
9256              CC="$ac_save_CC"
9257            esac
9258       }
9259 fi
9260 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9261 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9262      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9263 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9264 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9268         ac_cv_sys_largefile_LDFLAGS=no
9269
9270       }
9271 fi
9272 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9273 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9274      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9275 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9276 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9277   echo $ECHO_N "(cached) $ECHO_C" >&6
9278 else
9279   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9280         ac_cv_sys_largefile_LIBS=no
9281
9282       }
9283 fi
9284 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9285 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9286
9287      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9288        case "$ac_flag" in
9289        no) ;;
9290        -D_FILE_OFFSET_BITS=*) ;;
9291        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9292        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9293        -D?* | -I?*)
9294          case "$ac_flag" in
9295    no) ;;
9296    ?*)
9297      case "$CPPFLAGS" in
9298      '') CPPFLAGS="$ac_flag" ;;
9299      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9300      esac ;;
9301    esac ;;
9302        *)
9303          case "$ac_flag" in
9304    no) ;;
9305    ?*)
9306      case "$CFLAGS" in
9307      '') CFLAGS="$ac_flag" ;;
9308      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9309      esac ;;
9310    esac ;;
9311        esac
9312      done
9313      case "$ac_cv_sys_largefile_LDFLAGS" in
9314    no) ;;
9315    ?*)
9316      case "$LDFLAGS" in
9317      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9318      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9319      esac ;;
9320    esac
9321      case "$ac_cv_sys_largefile_LIBS" in
9322    no) ;;
9323    ?*)
9324      case "$LIBS" in
9325      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9326      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9327      esac ;;
9328    esac
9329      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9330 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9331 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334   ac_cv_sys_file_offset_bits=no
9335       ac_cv_sys_file_offset_bits=64
9336       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9337         case "$ac_flag" in
9338         -D_FILE_OFFSET_BITS)
9339           ac_cv_sys_file_offset_bits=1 ;;
9340         -D_FILE_OFFSET_BITS=*)
9341           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9342         esac
9343       done
9344
9345 fi
9346 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9347 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9348    if test "$ac_cv_sys_file_offset_bits" != no; then
9349
9350 cat >>confdefs.h <<_ACEOF
9351 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9352 _ACEOF
9353
9354    fi
9355      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9356 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9357 if test "${ac_cv_sys_largefile_source+set}" = set; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   ac_cv_sys_largefile_source=no
9361       ac_cv_sys_largefile_source=1
9362       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9363         case "$ac_flag" in
9364         -D_LARGEFILE_SOURCE)
9365           ac_cv_sys_largefile_source=1 ;;
9366         -D_LARGEFILE_SOURCE=*)
9367           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9368         esac
9369       done
9370
9371 fi
9372 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9373 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9374    if test "$ac_cv_sys_largefile_source" != no; then
9375
9376 cat >>confdefs.h <<_ACEOF
9377 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9378 _ACEOF
9379
9380    fi
9381      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9382 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9383 if test "${ac_cv_sys_large_files+set}" = set; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   ac_cv_sys_large_files=no
9387       ac_cv_sys_large_files=1
9388       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9389         case "$ac_flag" in
9390         -D_LARGE_FILES)
9391           ac_cv_sys_large_files=1 ;;
9392         -D_LARGE_FILES=*)
9393           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9394         esac
9395       done
9396
9397 fi
9398 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9399 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9400    if test "$ac_cv_sys_large_files" != no; then
9401
9402 cat >>confdefs.h <<_ACEOF
9403 #define _LARGE_FILES $ac_cv_sys_large_files
9404 _ACEOF
9405
9406    fi
9407    fi
9408
9409
9410
9411 echo "$as_me:$LINENO: checking for X" >&5
9412 echo $ECHO_N "checking for X... $ECHO_C" >&6
9413
9414
9415 # Check whether --with-x or --without-x was given.
9416 if test "${with_x+set}" = set; then
9417   withval="$with_x"
9418
9419 fi;
9420 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9421 if test "x$with_x" = xno; then
9422   # The user explicitly disabled X.
9423   have_x=disabled
9424 else
9425   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9426     # Both variables are already set.
9427     have_x=yes
9428   else
9429     if test "${ac_cv_have_x+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   # One or both of the vars are not set, and there is no cached value.
9433 ac_x_includes=no ac_x_libraries=no
9434 rm -fr conftest.dir
9435 if mkdir conftest.dir; then
9436   cd conftest.dir
9437   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9438   cat >Imakefile <<'_ACEOF'
9439 acfindx:
9440         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9441 _ACEOF
9442   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9443     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9444     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9445     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9446     for ac_extension in a so sl; do
9447       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9448          test -f $ac_im_libdir/libX11.$ac_extension; then
9449         ac_im_usrlibdir=$ac_im_libdir; break
9450       fi
9451     done
9452     # Screen out bogus values from the imake configuration.  They are
9453     # bogus both because they are the default anyway, and because
9454     # using them would break gcc on systems where it needs fixed includes.
9455     case $ac_im_incroot in
9456         /usr/include) ;;
9457         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9458     esac
9459     case $ac_im_usrlibdir in
9460         /usr/lib | /lib) ;;
9461         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9462     esac
9463   fi
9464   cd ..
9465   rm -fr conftest.dir
9466 fi
9467
9468 # Standard set of common directories for X headers.
9469 # Check X11 before X11Rn because it is often a symlink to the current release.
9470 ac_x_header_dirs='
9471 /usr/X11/include
9472 /usr/X11R6/include
9473 /usr/X11R5/include
9474 /usr/X11R4/include
9475
9476 /usr/include/X11
9477 /usr/include/X11R6
9478 /usr/include/X11R5
9479 /usr/include/X11R4
9480
9481 /usr/local/X11/include
9482 /usr/local/X11R6/include
9483 /usr/local/X11R5/include
9484 /usr/local/X11R4/include
9485
9486 /usr/local/include/X11
9487 /usr/local/include/X11R6
9488 /usr/local/include/X11R5
9489 /usr/local/include/X11R4
9490
9491 /usr/X386/include
9492 /usr/x386/include
9493 /usr/XFree86/include/X11
9494
9495 /usr/include
9496 /usr/local/include
9497 /usr/unsupported/include
9498 /usr/athena/include
9499 /usr/local/x11r5/include
9500 /usr/lpp/Xamples/include
9501
9502 /usr/openwin/include
9503 /usr/openwin/share/include'
9504
9505 if test "$ac_x_includes" = no; then
9506   # Guess where to find include files, by looking for Intrinsic.h.
9507   # First, try using that file with no special directory specified.
9508   cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514 #include <X11/Intrinsic.h>
9515 _ACEOF
9516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } >/dev/null; then
9524   if test -s conftest.err; then
9525     ac_cpp_err=$ac_c_preproc_warn_flag
9526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9527   else
9528     ac_cpp_err=
9529   fi
9530 else
9531   ac_cpp_err=yes
9532 fi
9533 if test -z "$ac_cpp_err"; then
9534   # We can compile using X headers with no special include directory.
9535 ac_x_includes=
9536 else
9537   echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540   for ac_dir in $ac_x_header_dirs; do
9541   if test -r "$ac_dir/X11/Intrinsic.h"; then
9542     ac_x_includes=$ac_dir
9543     break
9544   fi
9545 done
9546 fi
9547 rm -f conftest.err conftest.$ac_ext
9548 fi # $ac_x_includes = no
9549
9550 if test "$ac_x_libraries" = no; then
9551   # Check for the libraries.
9552   # See if we find them without any special options.
9553   # Don't add to $LIBS permanently.
9554   ac_save_LIBS=$LIBS
9555   LIBS="-lXt $LIBS"
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 #include <X11/Intrinsic.h>
9563 int
9564 main ()
9565 {
9566 XtMalloc (0)
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573   (eval $ac_link) 2>conftest.er1
9574   ac_status=$?
9575   grep -v '^ *+' conftest.er1 >conftest.err
9576   rm -f conftest.er1
9577   cat conftest.err >&5
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); } &&
9580          { ac_try='test -z "$ac_c_werror_flag"
9581                          || test ! -s conftest.err'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; } &&
9587          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9593   LIBS=$ac_save_LIBS
9594 # We can link X programs with no special library path.
9595 ac_x_libraries=
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 LIBS=$ac_save_LIBS
9601 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9602 do
9603   # Don't even attempt the hair of trying to link an X program!
9604   for ac_extension in a so sl; do
9605     if test -r $ac_dir/libXt.$ac_extension; then
9606       ac_x_libraries=$ac_dir
9607       break 2
9608     fi
9609   done
9610 done
9611 fi
9612 rm -f conftest.err conftest.$ac_objext \
9613       conftest$ac_exeext conftest.$ac_ext
9614 fi # $ac_x_libraries = no
9615
9616 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9617   # Didn't find X anywhere.  Cache the known absence of X.
9618   ac_cv_have_x="have_x=no"
9619 else
9620   # Record where we found X for the cache.
9621   ac_cv_have_x="have_x=yes \
9622                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9623 fi
9624 fi
9625
9626   fi
9627   eval "$ac_cv_have_x"
9628 fi # $with_x != no
9629
9630 if test "$have_x" != yes; then
9631   echo "$as_me:$LINENO: result: $have_x" >&5
9632 echo "${ECHO_T}$have_x" >&6
9633   no_x=yes
9634 else
9635   # If each of the values was on the command line, it overrides each guess.
9636   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9637   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9638   # Update the cache value to reflect the command line values.
9639   ac_cv_have_x="have_x=yes \
9640                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9641   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9642 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9643 fi
9644
9645 if test "$no_x" = yes; then
9646   # Not all programs may use this symbol, but it does not hurt to define it.
9647
9648 cat >>confdefs.h <<\_ACEOF
9649 #define X_DISPLAY_MISSING 1
9650 _ACEOF
9651
9652   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9653 else
9654   if test -n "$x_includes"; then
9655     X_CFLAGS="$X_CFLAGS -I$x_includes"
9656   fi
9657
9658   # It would also be nice to do this for all -L options, not just this one.
9659   if test -n "$x_libraries"; then
9660     X_LIBS="$X_LIBS -L$x_libraries"
9661     # For Solaris; some versions of Sun CC require a space after -R and
9662     # others require no space.  Words are not sufficient . . . .
9663     case `(uname -sr) 2>/dev/null` in
9664     "SunOS 5"*)
9665       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9666 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9667       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9668       cat >conftest.$ac_ext <<_ACEOF
9669 /* confdefs.h.  */
9670 _ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h.  */
9674
9675 int
9676 main ()
9677 {
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685   (eval $ac_link) 2>conftest.er1
9686   ac_status=$?
9687   grep -v '^ *+' conftest.er1 >conftest.err
9688   rm -f conftest.er1
9689   cat conftest.err >&5
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -z "$ac_c_werror_flag"
9693                          || test ! -s conftest.err'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; } &&
9699          { ac_try='test -s conftest$ac_exeext'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_R_nospace=yes
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_R_nospace=no
9711 fi
9712 rm -f conftest.err conftest.$ac_objext \
9713       conftest$ac_exeext conftest.$ac_ext
9714       if test $ac_R_nospace = yes; then
9715         echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6
9717         X_LIBS="$X_LIBS -R$x_libraries"
9718       else
9719         LIBS="$ac_xsave_LIBS -R $x_libraries"
9720         cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726
9727 int
9728 main ()
9729 {
9730
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737   (eval $ac_link) 2>conftest.er1
9738   ac_status=$?
9739   grep -v '^ *+' conftest.er1 >conftest.err
9740   rm -f conftest.er1
9741   cat conftest.err >&5
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); } &&
9744          { ac_try='test -z "$ac_c_werror_flag"
9745                          || test ! -s conftest.err'
9746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747   (eval $ac_try) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); }; } &&
9751          { ac_try='test -s conftest$ac_exeext'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_R_space=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_R_space=no
9763 fi
9764 rm -f conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766         if test $ac_R_space = yes; then
9767           echo "$as_me:$LINENO: result: yes" >&5
9768 echo "${ECHO_T}yes" >&6
9769           X_LIBS="$X_LIBS -R $x_libraries"
9770         else
9771           echo "$as_me:$LINENO: result: neither works" >&5
9772 echo "${ECHO_T}neither works" >&6
9773         fi
9774       fi
9775       LIBS=$ac_xsave_LIBS
9776     esac
9777   fi
9778
9779   # Check for system-dependent libraries X programs must link with.
9780   # Do this before checking for the system-independent R6 libraries
9781   # (-lICE), since we may need -lsocket or whatever for X linking.
9782
9783   if test "$ISC" = yes; then
9784     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9785   else
9786     # Martyn Johnson says this is needed for Ultrix, if the X
9787     # libraries were built with DECnet support.  And Karl Berry says
9788     # the Alpha needs dnet_stub (dnet does not exist).
9789     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
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
9797 /* Override any gcc2 internal prototype to avoid an error.  */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 /* We use char because int might match the return type of a gcc2
9802    builtin and then its argument prototype would still apply.  */
9803 char XOpenDisplay ();
9804 int
9805 main ()
9806 {
9807 XOpenDisplay ();
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814   (eval $ac_link) 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag"
9822                          || test ! -s conftest.err'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest$ac_exeext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834   :
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9840 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9841 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   ac_check_lib_save_LIBS=$LIBS
9845 LIBS="-ldnet  $LIBS"
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852
9853 /* Override any gcc2 internal prototype to avoid an error.  */
9854 #ifdef __cplusplus
9855 extern "C"
9856 #endif
9857 /* We use char because int might match the return type of a gcc2
9858    builtin and then its argument prototype would still apply.  */
9859 char dnet_ntoa ();
9860 int
9861 main ()
9862 {
9863 dnet_ntoa ();
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870   (eval $ac_link) 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -z "$ac_c_werror_flag"
9878                          || test ! -s conftest.err'
9879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880   (eval $ac_try) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; } &&
9884          { ac_try='test -s conftest$ac_exeext'
9885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886   (eval $ac_try) 2>&5
9887   ac_status=$?
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); }; }; then
9890   ac_cv_lib_dnet_dnet_ntoa=yes
9891 else
9892   echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895 ac_cv_lib_dnet_dnet_ntoa=no
9896 fi
9897 rm -f conftest.err conftest.$ac_objext \
9898       conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9900 fi
9901 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9902 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9903 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9904   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9905 fi
9906
9907     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9908       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9909 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9910 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9911   echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913   ac_check_lib_save_LIBS=$LIBS
9914 LIBS="-ldnet_stub  $LIBS"
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h.  */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h.  */
9921
9922 /* Override any gcc2 internal prototype to avoid an error.  */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 /* We use char because int might match the return type of a gcc2
9927    builtin and then its argument prototype would still apply.  */
9928 char dnet_ntoa ();
9929 int
9930 main ()
9931 {
9932 dnet_ntoa ();
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939   (eval $ac_link) 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag"
9947                          || test ! -s conftest.err'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; } &&
9953          { ac_try='test -s conftest$ac_exeext'
9954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955   (eval $ac_try) 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; }; then
9959   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9960 else
9961   echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964 ac_cv_lib_dnet_stub_dnet_ntoa=no
9965 fi
9966 rm -f conftest.err conftest.$ac_objext \
9967       conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9971 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9972 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9973   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9974 fi
9975
9976     fi
9977 fi
9978 rm -f conftest.err conftest.$ac_objext \
9979       conftest$ac_exeext conftest.$ac_ext
9980     LIBS="$ac_xsave_LIBS"
9981
9982     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9983     # to get the SysV transport functions.
9984     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9985     # needs -lnsl.
9986     # The nsl library prevents programs from opening the X display
9987     # on Irix 5.2, according to T.E. Dickey.
9988     # The functions gethostbyname, getservbyname, and inet_addr are
9989     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9990     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9991 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9992 if test "${ac_cv_func_gethostbyname+set}" = set; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10003 #define gethostbyname innocuous_gethostbyname
10004
10005 /* System header to define __stub macros and hopefully few prototypes,
10006     which can conflict with char gethostbyname (); below.
10007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008     <limits.h> exists even on freestanding compilers.  */
10009
10010 #ifdef __STDC__
10011 # include <limits.h>
10012 #else
10013 # include <assert.h>
10014 #endif
10015
10016 #undef gethostbyname
10017
10018 /* Override any gcc2 internal prototype to avoid an error.  */
10019 #ifdef __cplusplus
10020 extern "C"
10021 {
10022 #endif
10023 /* We use char because int might match the return type of a gcc2
10024    builtin and then its argument prototype would still apply.  */
10025 char gethostbyname ();
10026 /* The GNU C library defines this for functions which it implements
10027     to always fail with ENOSYS.  Some functions are actually named
10028     something starting with __ and the normal name is an alias.  */
10029 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10030 choke me
10031 #else
10032 char (*f) () = gethostbyname;
10033 #endif
10034 #ifdef __cplusplus
10035 }
10036 #endif
10037
10038 int
10039 main ()
10040 {
10041 return f != gethostbyname;
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048   (eval $ac_link) 2>conftest.er1
10049   ac_status=$?
10050   grep -v '^ *+' conftest.er1 >conftest.err
10051   rm -f conftest.er1
10052   cat conftest.err >&5
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); } &&
10055          { ac_try='test -z "$ac_c_werror_flag"
10056                          || test ! -s conftest.err'
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); }; } &&
10062          { ac_try='test -s conftest$ac_exeext'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   ac_cv_func_gethostbyname=yes
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_cv_func_gethostbyname=no
10074 fi
10075 rm -f conftest.err conftest.$ac_objext \
10076       conftest$ac_exeext conftest.$ac_ext
10077 fi
10078 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10079 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10080
10081     if test $ac_cv_func_gethostbyname = no; then
10082       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10083 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10084 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10085   echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087   ac_check_lib_save_LIBS=$LIBS
10088 LIBS="-lnsl  $LIBS"
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095
10096 /* Override any gcc2 internal prototype to avoid an error.  */
10097 #ifdef __cplusplus
10098 extern "C"
10099 #endif
10100 /* We use char because int might match the return type of a gcc2
10101    builtin and then its argument prototype would still apply.  */
10102 char gethostbyname ();
10103 int
10104 main ()
10105 {
10106 gethostbyname ();
10107   ;
10108   return 0;
10109 }
10110 _ACEOF
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113   (eval $ac_link) 2>conftest.er1
10114   ac_status=$?
10115   grep -v '^ *+' conftest.er1 >conftest.err
10116   rm -f conftest.er1
10117   cat conftest.err >&5
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); } &&
10120          { ac_try='test -z "$ac_c_werror_flag"
10121                          || test ! -s conftest.err'
10122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123   (eval $ac_try) 2>&5
10124   ac_status=$?
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); }; } &&
10127          { ac_try='test -s conftest$ac_exeext'
10128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129   (eval $ac_try) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; }; then
10133   ac_cv_lib_nsl_gethostbyname=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138 ac_cv_lib_nsl_gethostbyname=no
10139 fi
10140 rm -f conftest.err conftest.$ac_objext \
10141       conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10143 fi
10144 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10145 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10146 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10147   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10148 fi
10149
10150       if test $ac_cv_lib_nsl_gethostbyname = no; then
10151         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10152 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10153 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lbsd  $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 /* Override any gcc2 internal prototype to avoid an error.  */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 /* We use char because int might match the return type of a gcc2
10170    builtin and then its argument prototype would still apply.  */
10171 char gethostbyname ();
10172 int
10173 main ()
10174 {
10175 gethostbyname ();
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182   (eval $ac_link) 2>conftest.er1
10183   ac_status=$?
10184   grep -v '^ *+' conftest.er1 >conftest.err
10185   rm -f conftest.er1
10186   cat conftest.err >&5
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } &&
10189          { ac_try='test -z "$ac_c_werror_flag"
10190                          || test ! -s conftest.err'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; } &&
10196          { ac_try='test -s conftest$ac_exeext'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; }; then
10202   ac_cv_lib_bsd_gethostbyname=yes
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ac_cv_lib_bsd_gethostbyname=no
10208 fi
10209 rm -f conftest.err conftest.$ac_objext \
10210       conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10212 fi
10213 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10214 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10215 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10216   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10217 fi
10218
10219       fi
10220     fi
10221
10222     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10223     # socket/setsockopt and other routines are undefined under SCO ODT
10224     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10225     # on later versions), says Simon Leinen: it contains gethostby*
10226     # variants that don't use the name server (or something).  -lsocket
10227     # must be given before -lnsl if both are needed.  We assume that
10228     # if connect needs -lnsl, so does gethostbyname.
10229     echo "$as_me:$LINENO: checking for connect" >&5
10230 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10231 if test "${ac_cv_func_connect+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10242 #define connect innocuous_connect
10243
10244 /* System header to define __stub macros and hopefully few prototypes,
10245     which can conflict with char connect (); below.
10246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247     <limits.h> exists even on freestanding compilers.  */
10248
10249 #ifdef __STDC__
10250 # include <limits.h>
10251 #else
10252 # include <assert.h>
10253 #endif
10254
10255 #undef connect
10256
10257 /* Override any gcc2 internal prototype to avoid an error.  */
10258 #ifdef __cplusplus
10259 extern "C"
10260 {
10261 #endif
10262 /* We use char because int might match the return type of a gcc2
10263    builtin and then its argument prototype would still apply.  */
10264 char connect ();
10265 /* The GNU C library defines this for functions which it implements
10266     to always fail with ENOSYS.  Some functions are actually named
10267     something starting with __ and the normal name is an alias.  */
10268 #if defined (__stub_connect) || defined (__stub___connect)
10269 choke me
10270 #else
10271 char (*f) () = connect;
10272 #endif
10273 #ifdef __cplusplus
10274 }
10275 #endif
10276
10277 int
10278 main ()
10279 {
10280 return f != connect;
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287   (eval $ac_link) 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -z "$ac_c_werror_flag"
10295                          || test ! -s conftest.err'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; } &&
10301          { ac_try='test -s conftest$ac_exeext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_func_connect=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_cv_func_connect=no
10313 fi
10314 rm -f conftest.err conftest.$ac_objext \
10315       conftest$ac_exeext conftest.$ac_ext
10316 fi
10317 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10318 echo "${ECHO_T}$ac_cv_func_connect" >&6
10319
10320     if test $ac_cv_func_connect = no; then
10321       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10322 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10323 if test "${ac_cv_lib_socket_connect+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334
10335 /* Override any gcc2 internal prototype to avoid an error.  */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 /* We use char because int might match the return type of a gcc2
10340    builtin and then its argument prototype would still apply.  */
10341 char connect ();
10342 int
10343 main ()
10344 {
10345 connect ();
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10352   (eval $ac_link) 2>conftest.er1
10353   ac_status=$?
10354   grep -v '^ *+' conftest.er1 >conftest.err
10355   rm -f conftest.er1
10356   cat conftest.err >&5
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } &&
10359          { ac_try='test -z "$ac_c_werror_flag"
10360                          || test ! -s conftest.err'
10361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362   (eval $ac_try) 2>&5
10363   ac_status=$?
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); }; } &&
10366          { ac_try='test -s conftest$ac_exeext'
10367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368   (eval $ac_try) 2>&5
10369   ac_status=$?
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); }; }; then
10372   ac_cv_lib_socket_connect=yes
10373 else
10374   echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_cv_lib_socket_connect=no
10378 fi
10379 rm -f conftest.err conftest.$ac_objext \
10380       conftest$ac_exeext conftest.$ac_ext
10381 LIBS=$ac_check_lib_save_LIBS
10382 fi
10383 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10384 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10385 if test $ac_cv_lib_socket_connect = yes; then
10386   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10387 fi
10388
10389     fi
10390
10391     # Guillermo Gomez says -lposix is necessary on A/UX.
10392     echo "$as_me:$LINENO: checking for remove" >&5
10393 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10394 if test "${ac_cv_func_remove+set}" = set; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397   cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10405 #define remove innocuous_remove
10406
10407 /* System header to define __stub macros and hopefully few prototypes,
10408     which can conflict with char remove (); below.
10409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410     <limits.h> exists even on freestanding compilers.  */
10411
10412 #ifdef __STDC__
10413 # include <limits.h>
10414 #else
10415 # include <assert.h>
10416 #endif
10417
10418 #undef remove
10419
10420 /* Override any gcc2 internal prototype to avoid an error.  */
10421 #ifdef __cplusplus
10422 extern "C"
10423 {
10424 #endif
10425 /* We use char because int might match the return type of a gcc2
10426    builtin and then its argument prototype would still apply.  */
10427 char remove ();
10428 /* The GNU C library defines this for functions which it implements
10429     to always fail with ENOSYS.  Some functions are actually named
10430     something starting with __ and the normal name is an alias.  */
10431 #if defined (__stub_remove) || defined (__stub___remove)
10432 choke me
10433 #else
10434 char (*f) () = remove;
10435 #endif
10436 #ifdef __cplusplus
10437 }
10438 #endif
10439
10440 int
10441 main ()
10442 {
10443 return f != remove;
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450   (eval $ac_link) 2>conftest.er1
10451   ac_status=$?
10452   grep -v '^ *+' conftest.er1 >conftest.err
10453   rm -f conftest.er1
10454   cat conftest.err >&5
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -z "$ac_c_werror_flag"
10458                          || test ! -s conftest.err'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; } &&
10464          { ac_try='test -s conftest$ac_exeext'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }; then
10470   ac_cv_func_remove=yes
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10474
10475 ac_cv_func_remove=no
10476 fi
10477 rm -f conftest.err conftest.$ac_objext \
10478       conftest$ac_exeext conftest.$ac_ext
10479 fi
10480 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10481 echo "${ECHO_T}$ac_cv_func_remove" >&6
10482
10483     if test $ac_cv_func_remove = no; then
10484       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10485 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10486 if test "${ac_cv_lib_posix_remove+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-lposix  $LIBS"
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
10498 /* Override any gcc2 internal prototype to avoid an error.  */
10499 #ifdef __cplusplus
10500 extern "C"
10501 #endif
10502 /* We use char because int might match the return type of a gcc2
10503    builtin and then its argument prototype would still apply.  */
10504 char remove ();
10505 int
10506 main ()
10507 {
10508 remove ();
10509   ;
10510   return 0;
10511 }
10512 _ACEOF
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515   (eval $ac_link) 2>conftest.er1
10516   ac_status=$?
10517   grep -v '^ *+' conftest.er1 >conftest.err
10518   rm -f conftest.er1
10519   cat conftest.err >&5
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } &&
10522          { ac_try='test -z "$ac_c_werror_flag"
10523                          || test ! -s conftest.err'
10524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525   (eval $ac_try) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); }; } &&
10529          { ac_try='test -s conftest$ac_exeext'
10530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531   (eval $ac_try) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; }; then
10535   ac_cv_lib_posix_remove=yes
10536 else
10537   echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_cv_lib_posix_remove=no
10541 fi
10542 rm -f conftest.err conftest.$ac_objext \
10543       conftest$ac_exeext conftest.$ac_ext
10544 LIBS=$ac_check_lib_save_LIBS
10545 fi
10546 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10547 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10548 if test $ac_cv_lib_posix_remove = yes; then
10549   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10550 fi
10551
10552     fi
10553
10554     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10555     echo "$as_me:$LINENO: checking for shmat" >&5
10556 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10557 if test "${ac_cv_func_shmat+set}" = set; then
10558   echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560   cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h.  */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h.  */
10566 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10568 #define shmat innocuous_shmat
10569
10570 /* System header to define __stub macros and hopefully few prototypes,
10571     which can conflict with char shmat (); below.
10572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10573     <limits.h> exists even on freestanding compilers.  */
10574
10575 #ifdef __STDC__
10576 # include <limits.h>
10577 #else
10578 # include <assert.h>
10579 #endif
10580
10581 #undef shmat
10582
10583 /* Override any gcc2 internal prototype to avoid an error.  */
10584 #ifdef __cplusplus
10585 extern "C"
10586 {
10587 #endif
10588 /* We use char because int might match the return type of a gcc2
10589    builtin and then its argument prototype would still apply.  */
10590 char shmat ();
10591 /* The GNU C library defines this for functions which it implements
10592     to always fail with ENOSYS.  Some functions are actually named
10593     something starting with __ and the normal name is an alias.  */
10594 #if defined (__stub_shmat) || defined (__stub___shmat)
10595 choke me
10596 #else
10597 char (*f) () = shmat;
10598 #endif
10599 #ifdef __cplusplus
10600 }
10601 #endif
10602
10603 int
10604 main ()
10605 {
10606 return f != shmat;
10607   ;
10608   return 0;
10609 }
10610 _ACEOF
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613   (eval $ac_link) 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } &&
10620          { ac_try='test -z "$ac_c_werror_flag"
10621                          || test ! -s conftest.err'
10622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623   (eval $ac_try) 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; } &&
10627          { ac_try='test -s conftest$ac_exeext'
10628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629   (eval $ac_try) 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); }; }; then
10633   ac_cv_func_shmat=yes
10634 else
10635   echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10637
10638 ac_cv_func_shmat=no
10639 fi
10640 rm -f conftest.err conftest.$ac_objext \
10641       conftest$ac_exeext conftest.$ac_ext
10642 fi
10643 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10644 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10645
10646     if test $ac_cv_func_shmat = no; then
10647       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10648 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10649 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-lipc  $LIBS"
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660
10661 /* Override any gcc2 internal prototype to avoid an error.  */
10662 #ifdef __cplusplus
10663 extern "C"
10664 #endif
10665 /* We use char because int might match the return type of a gcc2
10666    builtin and then its argument prototype would still apply.  */
10667 char shmat ();
10668 int
10669 main ()
10670 {
10671 shmat ();
10672   ;
10673   return 0;
10674 }
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678   (eval $ac_link) 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -z "$ac_c_werror_flag"
10686                          || test ! -s conftest.err'
10687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688   (eval $ac_try) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); }; } &&
10692          { ac_try='test -s conftest$ac_exeext'
10693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694   (eval $ac_try) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); }; }; then
10698   ac_cv_lib_ipc_shmat=yes
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 ac_cv_lib_ipc_shmat=no
10704 fi
10705 rm -f conftest.err conftest.$ac_objext \
10706       conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10710 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10711 if test $ac_cv_lib_ipc_shmat = yes; then
10712   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10713 fi
10714
10715     fi
10716   fi
10717
10718   # Check for libraries that X11R6 Xt/Xaw programs need.
10719   ac_save_LDFLAGS=$LDFLAGS
10720   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10721   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10722   # check for ICE first), but we must link in the order -lSM -lICE or
10723   # we get undefined symbols.  So assume we have SM if we have ICE.
10724   # These have to be linked with before -lX11, unlike the other
10725   # libraries we check for below, so use a different variable.
10726   # John Interrante, Karl Berry
10727   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10728 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10729 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732   ac_check_lib_save_LIBS=$LIBS
10733 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740
10741 /* Override any gcc2 internal prototype to avoid an error.  */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 /* We use char because int might match the return type of a gcc2
10746    builtin and then its argument prototype would still apply.  */
10747 char IceConnectionNumber ();
10748 int
10749 main ()
10750 {
10751 IceConnectionNumber ();
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758   (eval $ac_link) 2>conftest.er1
10759   ac_status=$?
10760   grep -v '^ *+' conftest.er1 >conftest.err
10761   rm -f conftest.er1
10762   cat conftest.err >&5
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); } &&
10765          { ac_try='test -z "$ac_c_werror_flag"
10766                          || test ! -s conftest.err'
10767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768   (eval $ac_try) 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; } &&
10772          { ac_try='test -s conftest$ac_exeext'
10773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774   (eval $ac_try) 2>&5
10775   ac_status=$?
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); }; }; then
10778   ac_cv_lib_ICE_IceConnectionNumber=yes
10779 else
10780   echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 ac_cv_lib_ICE_IceConnectionNumber=no
10784 fi
10785 rm -f conftest.err conftest.$ac_objext \
10786       conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10788 fi
10789 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10790 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10791 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10792   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10793 fi
10794
10795   LDFLAGS=$ac_save_LDFLAGS
10796
10797 fi
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827 for ac_header in \
10828         assert.h \
10829         fcntl.h \
10830         grp.h \
10831         pwd.h \
10832         libc.h \
10833         limits.h \
10834         stdarg.h \
10835         stdlib.h \
10836         stdint.h \
10837         string.h \
10838         termios.h \
10839         termcap.h \
10840         term.h \
10841         unistd.h \
10842         sys/bitypes.h \
10843         sys/byteorder.h \
10844         sys/ioctl.h \
10845         sys/select.h \
10846         sys/sockio.h \
10847         sys/time.h \
10848         sys/socket.h \
10849         arpa/nameser.h \
10850         resolv.h \
10851         mtio.h \
10852         sys/mtio.h \
10853         sys/tape.h \
10854         regex.h \
10855
10856 do
10857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10859   echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 fi
10864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10866 else
10867   # Is the header compilable?
10868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10870 cat >conftest.$ac_ext <<_ACEOF
10871 /* confdefs.h.  */
10872 _ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h.  */
10876 $ac_includes_default
10877 #include <$ac_header>
10878 _ACEOF
10879 rm -f conftest.$ac_objext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10881   (eval $ac_compile) 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -z "$ac_c_werror_flag"
10889                          || test ! -s conftest.err'
10890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891   (eval $ac_try) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; } &&
10895          { ac_try='test -s conftest.$ac_objext'
10896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897   (eval $ac_try) 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); }; }; then
10901   ac_header_compiler=yes
10902 else
10903   echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906 ac_header_compiler=no
10907 fi
10908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10910 echo "${ECHO_T}$ac_header_compiler" >&6
10911
10912 # Is the header present?
10913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 #include <$ac_header>
10922 _ACEOF
10923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10925   ac_status=$?
10926   grep -v '^ *+' conftest.er1 >conftest.err
10927   rm -f conftest.er1
10928   cat conftest.err >&5
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } >/dev/null; then
10931   if test -s conftest.err; then
10932     ac_cpp_err=$ac_c_preproc_warn_flag
10933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10934   else
10935     ac_cpp_err=
10936   fi
10937 else
10938   ac_cpp_err=yes
10939 fi
10940 if test -z "$ac_cpp_err"; then
10941   ac_header_preproc=yes
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946   ac_header_preproc=no
10947 fi
10948 rm -f conftest.err conftest.$ac_ext
10949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10950 echo "${ECHO_T}$ac_header_preproc" >&6
10951
10952 # So?  What about this header?
10953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10954   yes:no: )
10955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10959     ac_header_preproc=yes
10960     ;;
10961   no:yes:* )
10962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10974     (
10975       cat <<\_ASBOX
10976 ## ------------------------------------------ ##
10977 ## Report this to the AC_PACKAGE_NAME lists.  ##
10978 ## ------------------------------------------ ##
10979 _ASBOX
10980     ) |
10981       sed "s/^/$as_me: WARNING:     /" >&2
10982     ;;
10983 esac
10984 echo "$as_me:$LINENO: checking for $ac_header" >&5
10985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   eval "$as_ac_Header=\$ac_header_preproc"
10990 fi
10991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10993
10994 fi
10995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10996   cat >>confdefs.h <<_ACEOF
10997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10998 _ACEOF
10999
11000 fi
11001
11002 done
11003
11004 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11005 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11006 if test "${ac_cv_header_stdc+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 #include <stdlib.h>
11016 #include <stdarg.h>
11017 #include <string.h>
11018 #include <float.h>
11019
11020 int
11021 main ()
11022 {
11023
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030   (eval $ac_compile) 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -z "$ac_c_werror_flag"
11038                          || test ! -s conftest.err'
11039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040   (eval $ac_try) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; } &&
11044          { ac_try='test -s conftest.$ac_objext'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050   ac_cv_header_stdc=yes
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_cv_header_stdc=no
11056 fi
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058
11059 if test $ac_cv_header_stdc = yes; then
11060   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11061   cat >conftest.$ac_ext <<_ACEOF
11062 /* confdefs.h.  */
11063 _ACEOF
11064 cat confdefs.h >>conftest.$ac_ext
11065 cat >>conftest.$ac_ext <<_ACEOF
11066 /* end confdefs.h.  */
11067 #include <string.h>
11068
11069 _ACEOF
11070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11071   $EGREP "memchr" >/dev/null 2>&1; then
11072   :
11073 else
11074   ac_cv_header_stdc=no
11075 fi
11076 rm -f conftest*
11077
11078 fi
11079
11080 if test $ac_cv_header_stdc = yes; then
11081   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11082   cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h.  */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h.  */
11088 #include <stdlib.h>
11089
11090 _ACEOF
11091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11092   $EGREP "free" >/dev/null 2>&1; then
11093   :
11094 else
11095   ac_cv_header_stdc=no
11096 fi
11097 rm -f conftest*
11098
11099 fi
11100
11101 if test $ac_cv_header_stdc = yes; then
11102   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11103   if test "$cross_compiling" = yes; then
11104   :
11105 else
11106   cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 #include <ctype.h>
11113 #if ((' ' & 0x0FF) == 0x020)
11114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11116 #else
11117 # define ISLOWER(c) \
11118                    (('a' <= (c) && (c) <= 'i') \
11119                      || ('j' <= (c) && (c) <= 'r') \
11120                      || ('s' <= (c) && (c) <= 'z'))
11121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11122 #endif
11123
11124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11125 int
11126 main ()
11127 {
11128   int i;
11129   for (i = 0; i < 256; i++)
11130     if (XOR (islower (i), ISLOWER (i))
11131         || toupper (i) != TOUPPER (i))
11132       exit(2);
11133   exit (0);
11134 }
11135 _ACEOF
11136 rm -f conftest$ac_exeext
11137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11138   (eval $ac_link) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143   (eval $ac_try) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; }; then
11147   :
11148 else
11149   echo "$as_me: program exited with status $ac_status" >&5
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153 ( exit $ac_status )
11154 ac_cv_header_stdc=no
11155 fi
11156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11157 fi
11158 fi
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11161 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11162 if test $ac_cv_header_stdc = yes; then
11163
11164 cat >>confdefs.h <<\_ACEOF
11165 #define STDC_HEADERS 1
11166 _ACEOF
11167
11168 fi
11169
11170 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11171 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11172 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11173   echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175   cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 #include <sys/types.h>
11182 int
11183 main ()
11184 {
11185 return makedev(0, 0);
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192   (eval $ac_link) 2>conftest.er1
11193   ac_status=$?
11194   grep -v '^ *+' conftest.er1 >conftest.err
11195   rm -f conftest.er1
11196   cat conftest.err >&5
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); } &&
11199          { ac_try='test -z "$ac_c_werror_flag"
11200                          || test ! -s conftest.err'
11201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202   (eval $ac_try) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; } &&
11206          { ac_try='test -s conftest$ac_exeext'
11207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208   (eval $ac_try) 2>&5
11209   ac_status=$?
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); }; }; then
11212   ac_cv_header_sys_types_h_makedev=yes
11213 else
11214   echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 ac_cv_header_sys_types_h_makedev=no
11218 fi
11219 rm -f conftest.err conftest.$ac_objext \
11220       conftest$ac_exeext conftest.$ac_ext
11221
11222 fi
11223 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11224 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11225
11226 if test $ac_cv_header_sys_types_h_makedev = no; then
11227 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11228   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11229 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11230 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 fi
11233 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11234 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11235 else
11236   # Is the header compilable?
11237 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11238 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h.  */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h.  */
11245 $ac_includes_default
11246 #include <sys/mkdev.h>
11247 _ACEOF
11248 rm -f conftest.$ac_objext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11250   (eval $ac_compile) 2>conftest.er1
11251   ac_status=$?
11252   grep -v '^ *+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } &&
11257          { ac_try='test -z "$ac_c_werror_flag"
11258                          || test ! -s conftest.err'
11259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260   (eval $ac_try) 2>&5
11261   ac_status=$?
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); }; } &&
11264          { ac_try='test -s conftest.$ac_objext'
11265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266   (eval $ac_try) 2>&5
11267   ac_status=$?
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); }; }; then
11270   ac_header_compiler=yes
11271 else
11272   echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 ac_header_compiler=no
11276 fi
11277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 echo "${ECHO_T}$ac_header_compiler" >&6
11280
11281 # Is the header present?
11282 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11283 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 #include <sys/mkdev.h>
11291 _ACEOF
11292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11294   ac_status=$?
11295   grep -v '^ *+' conftest.er1 >conftest.err
11296   rm -f conftest.er1
11297   cat conftest.err >&5
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); } >/dev/null; then
11300   if test -s conftest.err; then
11301     ac_cpp_err=$ac_c_preproc_warn_flag
11302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11303   else
11304     ac_cpp_err=
11305   fi
11306 else
11307   ac_cpp_err=yes
11308 fi
11309 if test -z "$ac_cpp_err"; then
11310   ac_header_preproc=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315   ac_header_preproc=no
11316 fi
11317 rm -f conftest.err conftest.$ac_ext
11318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 echo "${ECHO_T}$ac_header_preproc" >&6
11320
11321 # So?  What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323   yes:no: )
11324     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11325 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11327 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11328     ac_header_preproc=yes
11329     ;;
11330   no:yes:* )
11331     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11332 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11333     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11334 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11335     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11336 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11338 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11340 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11341     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11342 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11343     (
11344       cat <<\_ASBOX
11345 ## ------------------------------------------ ##
11346 ## Report this to the AC_PACKAGE_NAME lists.  ##
11347 ## ------------------------------------------ ##
11348 _ASBOX
11349     ) |
11350       sed "s/^/$as_me: WARNING:     /" >&2
11351     ;;
11352 esac
11353 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11354 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11355 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11356   echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11359 fi
11360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11361 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11362
11363 fi
11364 if test $ac_cv_header_sys_mkdev_h = yes; then
11365
11366 cat >>confdefs.h <<\_ACEOF
11367 #define MAJOR_IN_MKDEV 1
11368 _ACEOF
11369
11370 fi
11371
11372
11373
11374   if test $ac_cv_header_sys_mkdev_h = no; then
11375     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11376   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11377 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11378 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 fi
11381 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11382 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11383 else
11384   # Is the header compilable?
11385 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11386 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393 $ac_includes_default
11394 #include <sys/sysmacros.h>
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11398   (eval $ac_compile) 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -z "$ac_c_werror_flag"
11406                          || test ! -s conftest.err'
11407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408   (eval $ac_try) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; } &&
11412          { ac_try='test -s conftest.$ac_objext'
11413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414   (eval $ac_try) 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); }; }; then
11418   ac_header_compiler=yes
11419 else
11420   echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11422
11423 ac_header_compiler=no
11424 fi
11425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 echo "${ECHO_T}$ac_header_compiler" >&6
11428
11429 # Is the header present?
11430 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11431 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 #include <sys/sysmacros.h>
11439 _ACEOF
11440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } >/dev/null; then
11448   if test -s conftest.err; then
11449     ac_cpp_err=$ac_c_preproc_warn_flag
11450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11451   else
11452     ac_cpp_err=
11453   fi
11454 else
11455   ac_cpp_err=yes
11456 fi
11457 if test -z "$ac_cpp_err"; then
11458   ac_header_preproc=yes
11459 else
11460   echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11462
11463   ac_header_preproc=no
11464 fi
11465 rm -f conftest.err conftest.$ac_ext
11466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11467 echo "${ECHO_T}$ac_header_preproc" >&6
11468
11469 # So?  What about this header?
11470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11471   yes:no: )
11472     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11473 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11474     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11475 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11476     ac_header_preproc=yes
11477     ;;
11478   no:yes:* )
11479     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11480 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11481     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11482 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11483     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11484 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11485     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11486 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11487     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11488 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11489     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11490 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11491     (
11492       cat <<\_ASBOX
11493 ## ------------------------------------------ ##
11494 ## Report this to the AC_PACKAGE_NAME lists.  ##
11495 ## ------------------------------------------ ##
11496 _ASBOX
11497     ) |
11498       sed "s/^/$as_me: WARNING:     /" >&2
11499     ;;
11500 esac
11501 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11502 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11503 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11504   echo $ECHO_N "(cached) $ECHO_C" >&6
11505 else
11506   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11507 fi
11508 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11509 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11510
11511 fi
11512 if test $ac_cv_header_sys_sysmacros_h = yes; then
11513
11514 cat >>confdefs.h <<\_ACEOF
11515 #define MAJOR_IN_SYSMACROS 1
11516 _ACEOF
11517
11518 fi
11519
11520
11521   fi
11522 fi
11523
11524
11525
11526
11527
11528
11529 ac_header_dirent=no
11530 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11531   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11532 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11533 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11535   echo $ECHO_N "(cached) $ECHO_C" >&6
11536 else
11537   cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 #include <sys/types.h>
11544 #include <$ac_hdr>
11545
11546 int
11547 main ()
11548 {
11549 if ((DIR *) 0)
11550 return 0;
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557   (eval $ac_compile) 2>conftest.er1
11558   ac_status=$?
11559   grep -v '^ *+' conftest.er1 >conftest.err
11560   rm -f conftest.er1
11561   cat conftest.err >&5
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } &&
11564          { ac_try='test -z "$ac_c_werror_flag"
11565                          || test ! -s conftest.err'
11566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567   (eval $ac_try) 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); }; } &&
11571          { ac_try='test -s conftest.$ac_objext'
11572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573   (eval $ac_try) 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; }; then
11577   eval "$as_ac_Header=yes"
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 eval "$as_ac_Header=no"
11583 fi
11584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11585 fi
11586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11589   cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11591 _ACEOF
11592
11593 ac_header_dirent=$ac_hdr; break
11594 fi
11595
11596 done
11597 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11598 if test $ac_header_dirent = dirent.h; then
11599   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11600 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11601 if test "${ac_cv_search_opendir+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   ac_func_search_save_LIBS=$LIBS
11605 ac_cv_search_opendir=no
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612
11613 /* Override any gcc2 internal prototype to avoid an error.  */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618    builtin and then its argument prototype would still apply.  */
11619 char opendir ();
11620 int
11621 main ()
11622 {
11623 opendir ();
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630   (eval $ac_link) 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } &&
11637          { ac_try='test -z "$ac_c_werror_flag"
11638                          || test ! -s conftest.err'
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); }; } &&
11644          { ac_try='test -s conftest$ac_exeext'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; }; then
11650   ac_cv_search_opendir="none required"
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 fi
11656 rm -f conftest.err conftest.$ac_objext \
11657       conftest$ac_exeext conftest.$ac_ext
11658 if test "$ac_cv_search_opendir" = no; then
11659   for ac_lib in dir; do
11660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11661     cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667
11668 /* Override any gcc2 internal prototype to avoid an error.  */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 /* We use char because int might match the return type of a gcc2
11673    builtin and then its argument prototype would still apply.  */
11674 char opendir ();
11675 int
11676 main ()
11677 {
11678 opendir ();
11679   ;
11680   return 0;
11681 }
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685   (eval $ac_link) 2>conftest.er1
11686   ac_status=$?
11687   grep -v '^ *+' conftest.er1 >conftest.err
11688   rm -f conftest.er1
11689   cat conftest.err >&5
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); } &&
11692          { ac_try='test -z "$ac_c_werror_flag"
11693                          || test ! -s conftest.err'
11694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695   (eval $ac_try) 2>&5
11696   ac_status=$?
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; } &&
11699          { ac_try='test -s conftest$ac_exeext'
11700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701   (eval $ac_try) 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); }; }; then
11705   ac_cv_search_opendir="-l$ac_lib"
11706 break
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711 fi
11712 rm -f conftest.err conftest.$ac_objext \
11713       conftest$ac_exeext conftest.$ac_ext
11714   done
11715 fi
11716 LIBS=$ac_func_search_save_LIBS
11717 fi
11718 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11719 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11720 if test "$ac_cv_search_opendir" != no; then
11721   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11722
11723 fi
11724
11725 else
11726   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11728 if test "${ac_cv_search_opendir+set}" = set; then
11729   echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731   ac_func_search_save_LIBS=$LIBS
11732 ac_cv_search_opendir=no
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h.  */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h.  */
11739
11740 /* Override any gcc2 internal prototype to avoid an error.  */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 /* We use char because int might match the return type of a gcc2
11745    builtin and then its argument prototype would still apply.  */
11746 char opendir ();
11747 int
11748 main ()
11749 {
11750 opendir ();
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757   (eval $ac_link) 2>conftest.er1
11758   ac_status=$?
11759   grep -v '^ *+' conftest.er1 >conftest.err
11760   rm -f conftest.er1
11761   cat conftest.err >&5
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); } &&
11764          { ac_try='test -z "$ac_c_werror_flag"
11765                          || test ! -s conftest.err'
11766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767   (eval $ac_try) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); }; } &&
11771          { ac_try='test -s conftest$ac_exeext'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; }; then
11777   ac_cv_search_opendir="none required"
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782 fi
11783 rm -f conftest.err conftest.$ac_objext \
11784       conftest$ac_exeext conftest.$ac_ext
11785 if test "$ac_cv_search_opendir" = no; then
11786   for ac_lib in x; do
11787     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11788     cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794
11795 /* Override any gcc2 internal prototype to avoid an error.  */
11796 #ifdef __cplusplus
11797 extern "C"
11798 #endif
11799 /* We use char because int might match the return type of a gcc2
11800    builtin and then its argument prototype would still apply.  */
11801 char opendir ();
11802 int
11803 main ()
11804 {
11805 opendir ();
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812   (eval $ac_link) 2>conftest.er1
11813   ac_status=$?
11814   grep -v '^ *+' conftest.er1 >conftest.err
11815   rm -f conftest.er1
11816   cat conftest.err >&5
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); } &&
11819          { ac_try='test -z "$ac_c_werror_flag"
11820                          || test ! -s conftest.err'
11821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822   (eval $ac_try) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; } &&
11826          { ac_try='test -s conftest$ac_exeext'
11827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828   (eval $ac_try) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_cv_search_opendir="-l$ac_lib"
11833 break
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 fi
11839 rm -f conftest.err conftest.$ac_objext \
11840       conftest$ac_exeext conftest.$ac_ext
11841   done
11842 fi
11843 LIBS=$ac_func_search_save_LIBS
11844 fi
11845 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11846 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11847 if test "$ac_cv_search_opendir" != no; then
11848   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11849
11850 fi
11851
11852 fi
11853
11854 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11855 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11856 if test "${ac_cv_header_stat_broken+set}" = set; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h.  */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h.  */
11865 #include <sys/types.h>
11866 #include <sys/stat.h>
11867
11868 #if defined(S_ISBLK) && defined(S_IFDIR)
11869 # if S_ISBLK (S_IFDIR)
11870 You lose.
11871 # endif
11872 #endif
11873
11874 #if defined(S_ISBLK) && defined(S_IFCHR)
11875 # if S_ISBLK (S_IFCHR)
11876 You lose.
11877 # endif
11878 #endif
11879
11880 #if defined(S_ISLNK) && defined(S_IFREG)
11881 # if S_ISLNK (S_IFREG)
11882 You lose.
11883 # endif
11884 #endif
11885
11886 #if defined(S_ISSOCK) && defined(S_IFREG)
11887 # if S_ISSOCK (S_IFREG)
11888 You lose.
11889 # endif
11890 #endif
11891
11892 _ACEOF
11893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894   $EGREP "You lose" >/dev/null 2>&1; then
11895   ac_cv_header_stat_broken=yes
11896 else
11897   ac_cv_header_stat_broken=no
11898 fi
11899 rm -f conftest*
11900
11901 fi
11902 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11903 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11904 if test $ac_cv_header_stat_broken = yes; then
11905
11906 cat >>confdefs.h <<\_ACEOF
11907 #define STAT_MACROS_BROKEN 1
11908 _ACEOF
11909
11910 fi
11911
11912 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11913 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11914 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923 #include <sys/types.h>
11924 #include <sys/wait.h>
11925 #ifndef WEXITSTATUS
11926 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11927 #endif
11928 #ifndef WIFEXITED
11929 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11930 #endif
11931
11932 int
11933 main ()
11934 {
11935   int s;
11936   wait (&s);
11937   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944   (eval $ac_compile) 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } &&
11951          { ac_try='test -z "$ac_c_werror_flag"
11952                          || test ! -s conftest.err'
11953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954   (eval $ac_try) 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; } &&
11958          { ac_try='test -s conftest.$ac_objext'
11959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960   (eval $ac_try) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; }; then
11964   ac_cv_header_sys_wait_h=yes
11965 else
11966   echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 ac_cv_header_sys_wait_h=no
11970 fi
11971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11972 fi
11973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11974 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11975 if test $ac_cv_header_sys_wait_h = yes; then
11976
11977 cat >>confdefs.h <<\_ACEOF
11978 #define HAVE_SYS_WAIT_H 1
11979 _ACEOF
11980
11981 fi
11982
11983 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11984 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11985 if test "${ac_cv_header_time+set}" = set; then
11986   echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988   cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h.  */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h.  */
11994 #include <sys/types.h>
11995 #include <sys/time.h>
11996 #include <time.h>
11997
11998 int
11999 main ()
12000 {
12001 if ((struct tm *) 0)
12002 return 0;
12003   ;
12004   return 0;
12005 }
12006 _ACEOF
12007 rm -f conftest.$ac_objext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12009   (eval $ac_compile) 2>conftest.er1
12010   ac_status=$?
12011   grep -v '^ *+' conftest.er1 >conftest.err
12012   rm -f conftest.er1
12013   cat conftest.err >&5
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } &&
12016          { ac_try='test -z "$ac_c_werror_flag"
12017                          || test ! -s conftest.err'
12018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019   (eval $ac_try) 2>&5
12020   ac_status=$?
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); }; } &&
12023          { ac_try='test -s conftest.$ac_objext'
12024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025   (eval $ac_try) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); }; }; then
12029   ac_cv_header_time=yes
12030 else
12031   echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_cv_header_time=no
12035 fi
12036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12037 fi
12038 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12039 echo "${ECHO_T}$ac_cv_header_time" >&6
12040 if test $ac_cv_header_time = yes; then
12041
12042 cat >>confdefs.h <<\_ACEOF
12043 #define TIME_WITH_SYS_TIME 1
12044 _ACEOF
12045
12046 fi
12047
12048
12049 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12050 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12051 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054   cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 $ac_includes_default
12061 int
12062 main ()
12063 {
12064 static struct stat ac_aggr;
12065 if (ac_aggr.st_blksize)
12066 return 0;
12067   ;
12068   return 0;
12069 }
12070 _ACEOF
12071 rm -f conftest.$ac_objext
12072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073   (eval $ac_compile) 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } &&
12080          { ac_try='test -z "$ac_c_werror_flag"
12081                          || test ! -s conftest.err'
12082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083   (eval $ac_try) 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; } &&
12087          { ac_try='test -s conftest.$ac_objext'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093   ac_cv_member_struct_stat_st_blksize=yes
12094 else
12095   echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 $ac_includes_default
12105 int
12106 main ()
12107 {
12108 static struct stat ac_aggr;
12109 if (sizeof ac_aggr.st_blksize)
12110 return 0;
12111   ;
12112   return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117   (eval $ac_compile) 2>conftest.er1
12118   ac_status=$?
12119   grep -v '^ *+' conftest.er1 >conftest.err
12120   rm -f conftest.er1
12121   cat conftest.err >&5
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); } &&
12124          { ac_try='test -z "$ac_c_werror_flag"
12125                          || test ! -s conftest.err'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; } &&
12131          { ac_try='test -s conftest.$ac_objext'
12132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133   (eval $ac_try) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); }; }; then
12137   ac_cv_member_struct_stat_st_blksize=yes
12138 else
12139   echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 ac_cv_member_struct_stat_st_blksize=no
12143 fi
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12147 fi
12148 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12149 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12150 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12151
12152 cat >>confdefs.h <<_ACEOF
12153 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12154 _ACEOF
12155
12156
12157 cat >>confdefs.h <<\_ACEOF
12158 #define HAVE_ST_BLKSIZE 1
12159 _ACEOF
12160
12161 fi
12162
12163
12164 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12165 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12166 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 $ac_includes_default
12176 int
12177 main ()
12178 {
12179 static struct stat ac_aggr;
12180 if (ac_aggr.st_blocks)
12181 return 0;
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188   (eval $ac_compile) 2>conftest.er1
12189   ac_status=$?
12190   grep -v '^ *+' conftest.er1 >conftest.err
12191   rm -f conftest.er1
12192   cat conftest.err >&5
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); } &&
12195          { ac_try='test -z "$ac_c_werror_flag"
12196                          || test ! -s conftest.err'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; } &&
12202          { ac_try='test -s conftest.$ac_objext'
12203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204   (eval $ac_try) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; }; then
12208   ac_cv_member_struct_stat_st_blocks=yes
12209 else
12210   echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h.  */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h.  */
12219 $ac_includes_default
12220 int
12221 main ()
12222 {
12223 static struct stat ac_aggr;
12224 if (sizeof ac_aggr.st_blocks)
12225 return 0;
12226   ;
12227   return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12232   (eval $ac_compile) 2>conftest.er1
12233   ac_status=$?
12234   grep -v '^ *+' conftest.er1 >conftest.err
12235   rm -f conftest.er1
12236   cat conftest.err >&5
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); } &&
12239          { ac_try='test -z "$ac_c_werror_flag"
12240                          || test ! -s conftest.err'
12241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242   (eval $ac_try) 2>&5
12243   ac_status=$?
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); }; } &&
12246          { ac_try='test -s conftest.$ac_objext'
12247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248   (eval $ac_try) 2>&5
12249   ac_status=$?
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); }; }; then
12252   ac_cv_member_struct_stat_st_blocks=yes
12253 else
12254   echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12256
12257 ac_cv_member_struct_stat_st_blocks=no
12258 fi
12259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12260 fi
12261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12262 fi
12263 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12264 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12265 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12266
12267 cat >>confdefs.h <<_ACEOF
12268 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12269 _ACEOF
12270
12271
12272 cat >>confdefs.h <<\_ACEOF
12273 #define HAVE_ST_BLOCKS 1
12274 _ACEOF
12275
12276 else
12277   case $LIBOBJS in
12278     "fileblocks.$ac_objext"   | \
12279   *" fileblocks.$ac_objext"   | \
12280     "fileblocks.$ac_objext "* | \
12281   *" fileblocks.$ac_objext "* ) ;;
12282   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12283 esac
12284
12285 fi
12286
12287
12288 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12289 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12290 if test "${ac_cv_struct_tm+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h.  */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h.  */
12299 #include <sys/types.h>
12300 #include <time.h>
12301
12302 int
12303 main ()
12304 {
12305 struct tm *tp; tp->tm_sec;
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312   (eval $ac_compile) 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } &&
12319          { ac_try='test -z "$ac_c_werror_flag"
12320                          || test ! -s conftest.err'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; } &&
12326          { ac_try='test -s conftest.$ac_objext'
12327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328   (eval $ac_try) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; }; then
12332   ac_cv_struct_tm=time.h
12333 else
12334   echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 ac_cv_struct_tm=sys/time.h
12338 fi
12339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 fi
12341 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12342 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12343 if test $ac_cv_struct_tm = sys/time.h; then
12344
12345 cat >>confdefs.h <<\_ACEOF
12346 #define TM_IN_SYS_TIME 1
12347 _ACEOF
12348
12349 fi
12350
12351 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12352 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12353 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12354   echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356   cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h.  */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h.  */
12362 #include <sys/types.h>
12363 #include <$ac_cv_struct_tm>
12364
12365
12366 int
12367 main ()
12368 {
12369 static struct tm ac_aggr;
12370 if (ac_aggr.tm_zone)
12371 return 0;
12372   ;
12373   return 0;
12374 }
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378   (eval $ac_compile) 2>conftest.er1
12379   ac_status=$?
12380   grep -v '^ *+' conftest.er1 >conftest.err
12381   rm -f conftest.er1
12382   cat conftest.err >&5
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } &&
12385          { ac_try='test -z "$ac_c_werror_flag"
12386                          || test ! -s conftest.err'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; } &&
12392          { ac_try='test -s conftest.$ac_objext'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   ac_cv_member_struct_tm_tm_zone=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409 #include <sys/types.h>
12410 #include <$ac_cv_struct_tm>
12411
12412
12413 int
12414 main ()
12415 {
12416 static struct tm ac_aggr;
12417 if (sizeof ac_aggr.tm_zone)
12418 return 0;
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425   (eval $ac_compile) 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } &&
12432          { ac_try='test -z "$ac_c_werror_flag"
12433                          || test ! -s conftest.err'
12434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435   (eval $ac_try) 2>&5
12436   ac_status=$?
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }; } &&
12439          { ac_try='test -s conftest.$ac_objext'
12440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441   (eval $ac_try) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_cv_member_struct_tm_tm_zone=yes
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450 ac_cv_member_struct_tm_tm_zone=no
12451 fi
12452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12453 fi
12454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455 fi
12456 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12457 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12458 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12459
12460 cat >>confdefs.h <<_ACEOF
12461 #define HAVE_STRUCT_TM_TM_ZONE 1
12462 _ACEOF
12463
12464
12465 fi
12466
12467 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12468
12469 cat >>confdefs.h <<\_ACEOF
12470 #define HAVE_TM_ZONE 1
12471 _ACEOF
12472
12473 else
12474   echo "$as_me:$LINENO: checking for tzname" >&5
12475 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12476 if test "${ac_cv_var_tzname+set}" = set; then
12477   echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479   cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 #include <time.h>
12486 #ifndef tzname /* For SGI.  */
12487 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12488 #endif
12489
12490 int
12491 main ()
12492 {
12493 atoi(*tzname);
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 rm -f conftest.$ac_objext conftest$ac_exeext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500   (eval $ac_link) 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag"
12508                          || test ! -s conftest.err'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; } &&
12514          { ac_try='test -s conftest$ac_exeext'
12515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516   (eval $ac_try) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; }; then
12520   ac_cv_var_tzname=yes
12521 else
12522   echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 ac_cv_var_tzname=no
12526 fi
12527 rm -f conftest.err conftest.$ac_objext \
12528       conftest$ac_exeext conftest.$ac_ext
12529 fi
12530 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12531 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12532   if test $ac_cv_var_tzname = yes; then
12533
12534 cat >>confdefs.h <<\_ACEOF
12535 #define HAVE_TZNAME 1
12536 _ACEOF
12537
12538   fi
12539 fi
12540
12541
12542 echo "$as_me:$LINENO: checking for utime.h" >&5
12543 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12544 if test "${ba_cv_header_utime_h+set}" = set; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547   cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553
12554 #include <sys/types.h>
12555 #include <utime.h>
12556 int
12557 main ()
12558 {
12559 struct utimbuf foo
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566   (eval $ac_compile) 2>conftest.er1
12567   ac_status=$?
12568   grep -v '^ *+' conftest.er1 >conftest.err
12569   rm -f conftest.er1
12570   cat conftest.err >&5
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); } &&
12573          { ac_try='test -z "$ac_c_werror_flag"
12574                          || test ! -s conftest.err'
12575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576   (eval $ac_try) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; } &&
12580          { ac_try='test -s conftest.$ac_objext'
12581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582   (eval $ac_try) 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); }; }; then
12586   ba_cv_header_utime_h=yes
12587 else
12588   echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591 ba_cv_header_utime_h=no
12592 fi
12593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12594 fi
12595 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12596 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12597 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12598 #define HAVE_UTIME_H 1
12599 _ACEOF
12600
12601
12602 echo "$as_me:$LINENO: checking for socklen_t" >&5
12603 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12604 if test "${ba_cv_header_socklen_t+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607   cat >conftest.$ac_ext <<_ACEOF
12608 /* confdefs.h.  */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h.  */
12613
12614 #include <sys/types.h>
12615 #include <sys/socket.h>
12616 int
12617 main ()
12618 {
12619 socklen_t x
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626   (eval $ac_compile) 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -z "$ac_c_werror_flag"
12634                          || test ! -s conftest.err'
12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636   (eval $ac_try) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest.$ac_objext'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   ba_cv_header_socklen_t=yes
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ba_cv_header_socklen_t=no
12652 fi
12653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12654 fi
12655 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12656 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12657 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_SOCKLEN_T 1
12659 _ACEOF
12660
12661
12662 echo "$as_me:$LINENO: checking for bigendian" >&5
12663 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12664 if test "${ba_cv_bigendian+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   if test "$cross_compiling" = yes; then
12668   ba_cv_bigendian=no
12669 else
12670   cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12677 _ACEOF
12678 rm -f conftest$ac_exeext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680   (eval $ac_link) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; }; then
12689   ba_cv_bigendian=yes
12690 else
12691   echo "$as_me: program exited with status $ac_status" >&5
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 ( exit $ac_status )
12696 ba_cv_bigendian=no
12697 fi
12698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12699 fi
12700 fi
12701 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12702 echo "${ECHO_T}$ba_cv_bigendian" >&6
12703 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12704 #define HAVE_BIGENDIAN 1
12705 _ACEOF
12706
12707
12708
12709 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12710 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12711 if test "${ac_cv_c_const+set}" = set; then
12712   echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714   cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h.  */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h.  */
12720
12721 int
12722 main ()
12723 {
12724 /* FIXME: Include the comments suggested by Paul. */
12725 #ifndef __cplusplus
12726   /* Ultrix mips cc rejects this.  */
12727   typedef int charset[2];
12728   const charset x;
12729   /* SunOS 4.1.1 cc rejects this.  */
12730   char const *const *ccp;
12731   char **p;
12732   /* NEC SVR4.0.2 mips cc rejects this.  */
12733   struct point {int x, y;};
12734   static struct point const zero = {0,0};
12735   /* AIX XL C 1.02.0.0 rejects this.
12736      It does not let you subtract one const X* pointer from another in
12737      an arm of an if-expression whose if-part is not a constant
12738      expression */
12739   const char *g = "string";
12740   ccp = &g + (g ? g-g : 0);
12741   /* HPUX 7.0 cc rejects these. */
12742   ++ccp;
12743   p = (char**) ccp;
12744   ccp = (char const *const *) p;
12745   { /* SCO 3.2v4 cc rejects this.  */
12746     char *t;
12747     char const *s = 0 ? (char *) 0 : (char const *) 0;
12748
12749     *t++ = 0;
12750   }
12751   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12752     int x[] = {25, 17};
12753     const int *foo = &x[0];
12754     ++foo;
12755   }
12756   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12757     typedef const int *iptr;
12758     iptr p = 0;
12759     ++p;
12760   }
12761   { /* AIX XL C 1.02.0.0 rejects this saying
12762        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12763     struct s { int j; const int *ap[3]; };
12764     struct s *b; b->j = 5;
12765   }
12766   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12767     const int foo = 10;
12768   }
12769 #endif
12770
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777   (eval $ac_compile) 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -z "$ac_c_werror_flag"
12785                          || test ! -s conftest.err'
12786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787   (eval $ac_try) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest.$ac_objext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   ac_cv_c_const=yes
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ac_cv_c_const=no
12803 fi
12804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805 fi
12806 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12807 echo "${ECHO_T}$ac_cv_c_const" >&6
12808 if test $ac_cv_c_const = no; then
12809
12810 cat >>confdefs.h <<\_ACEOF
12811 #define const
12812 _ACEOF
12813
12814 fi
12815
12816
12817
12818 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12819 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12820 fstype=no
12821 # The order of these tests is important.
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h.  */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h.  */
12828 #include <sys/statvfs.h>
12829 #include <sys/fstyp.h>
12830 _ACEOF
12831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12833   ac_status=$?
12834   grep -v '^ *+' conftest.er1 >conftest.err
12835   rm -f conftest.er1
12836   cat conftest.err >&5
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); } >/dev/null; then
12839   if test -s conftest.err; then
12840     ac_cpp_err=$ac_c_preproc_warn_flag
12841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12842   else
12843     ac_cpp_err=
12844   fi
12845 else
12846   ac_cpp_err=yes
12847 fi
12848 if test -z "$ac_cpp_err"; then
12849   cat >>confdefs.h <<\_ACEOF
12850 #define FSTYPE_STATVFS 1
12851 _ACEOF
12852  fstype=SVR4
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857
12858 fi
12859 rm -f conftest.err conftest.$ac_ext
12860 if test $fstype = no; then
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h.  */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h.  */
12867 #include <sys/statfs.h>
12868 #include <sys/fstyp.h>
12869 _ACEOF
12870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12872   ac_status=$?
12873   grep -v '^ *+' conftest.er1 >conftest.err
12874   rm -f conftest.er1
12875   cat conftest.err >&5
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); } >/dev/null; then
12878   if test -s conftest.err; then
12879     ac_cpp_err=$ac_c_preproc_warn_flag
12880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12881   else
12882     ac_cpp_err=
12883   fi
12884 else
12885   ac_cpp_err=yes
12886 fi
12887 if test -z "$ac_cpp_err"; then
12888   cat >>confdefs.h <<\_ACEOF
12889 #define FSTYPE_USG_STATFS 1
12890 _ACEOF
12891  fstype=SVR3
12892 else
12893   echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12895
12896
12897 fi
12898 rm -f conftest.err conftest.$ac_ext
12899 fi
12900 if test $fstype = no; then
12901 cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h.  */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h.  */
12907 #include <sys/statfs.h>
12908 #include <sys/vmount.h>
12909 _ACEOF
12910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12912   ac_status=$?
12913   grep -v '^ *+' conftest.er1 >conftest.err
12914   rm -f conftest.er1
12915   cat conftest.err >&5
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } >/dev/null; then
12918   if test -s conftest.err; then
12919     ac_cpp_err=$ac_c_preproc_warn_flag
12920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12921   else
12922     ac_cpp_err=
12923   fi
12924 else
12925   ac_cpp_err=yes
12926 fi
12927 if test -z "$ac_cpp_err"; then
12928   cat >>confdefs.h <<\_ACEOF
12929 #define FSTYPE_AIX_STATFS 1
12930 _ACEOF
12931  fstype=AIX
12932 else
12933   echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936
12937 fi
12938 rm -f conftest.err conftest.$ac_ext
12939 fi
12940 if test $fstype = no; then
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947 #include <mntent.h>
12948 _ACEOF
12949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } >/dev/null; then
12957   if test -s conftest.err; then
12958     ac_cpp_err=$ac_c_preproc_warn_flag
12959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12960   else
12961     ac_cpp_err=
12962   fi
12963 else
12964   ac_cpp_err=yes
12965 fi
12966 if test -z "$ac_cpp_err"; then
12967   cat >>confdefs.h <<\_ACEOF
12968 #define FSTYPE_MNTENT 1
12969 _ACEOF
12970  fstype=4.3BSD
12971 else
12972   echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12974
12975
12976 fi
12977 rm -f conftest.err conftest.$ac_ext
12978 fi
12979 if test $fstype = no; then
12980 cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h.  */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h.  */
12986 #include <sys/mount.h>
12987
12988 _ACEOF
12989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12990   $EGREP "f_type;" >/dev/null 2>&1; then
12991   cat >>confdefs.h <<\_ACEOF
12992 #define FSTYPE_STATFS 1
12993 _ACEOF
12994  fstype=4.4BSD/OSF1
12995 fi
12996 rm -f conftest*
12997
12998 fi
12999 if test $fstype = no; then
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006 #include <sys/mount.h>
13007 #include <sys/fs_types.h>
13008 _ACEOF
13009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13011   ac_status=$?
13012   grep -v '^ *+' conftest.er1 >conftest.err
13013   rm -f conftest.er1
13014   cat conftest.err >&5
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); } >/dev/null; then
13017   if test -s conftest.err; then
13018     ac_cpp_err=$ac_c_preproc_warn_flag
13019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13020   else
13021     ac_cpp_err=
13022   fi
13023 else
13024   ac_cpp_err=yes
13025 fi
13026 if test -z "$ac_cpp_err"; then
13027   cat >>confdefs.h <<\_ACEOF
13028 #define FSTYPE_GETMNT 1
13029 _ACEOF
13030  fstype=Ultrix
13031 else
13032   echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035
13036 fi
13037 rm -f conftest.err conftest.$ac_ext
13038 fi
13039 echo "$as_me:$LINENO: result: $fstype" >&5
13040 echo "${ECHO_T}$fstype" >&6
13041
13042 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13043 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13044 if test "${ac_cv_type_signal+set}" = set; then
13045   echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047   cat >conftest.$ac_ext <<_ACEOF
13048 /* confdefs.h.  */
13049 _ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h.  */
13053 #include <sys/types.h>
13054 #include <signal.h>
13055 #ifdef signal
13056 # undef signal
13057 #endif
13058 #ifdef __cplusplus
13059 extern "C" void (*signal (int, void (*)(int)))(int);
13060 #else
13061 void (*signal ()) ();
13062 #endif
13063
13064 int
13065 main ()
13066 {
13067 int i;
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074   (eval $ac_compile) 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -z "$ac_c_werror_flag"
13082                          || test ! -s conftest.err'
13083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084   (eval $ac_try) 2>&5
13085   ac_status=$?
13086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087   (exit $ac_status); }; } &&
13088          { ac_try='test -s conftest.$ac_objext'
13089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13090   (eval $ac_try) 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }; }; then
13094   ac_cv_type_signal=void
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099 ac_cv_type_signal=int
13100 fi
13101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13102 fi
13103 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13104 echo "${ECHO_T}$ac_cv_type_signal" >&6
13105
13106 cat >>confdefs.h <<_ACEOF
13107 #define RETSIGTYPE $ac_cv_type_signal
13108 _ACEOF
13109
13110
13111
13112 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13113 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13114 if test "${bash_cv_signal_vintage+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117
13118   cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124 #include <signal.h>
13125 int
13126 main ()
13127 {
13128
13129     sigset_t ss;
13130     struct sigaction sa;
13131     sigemptyset(&ss); sigsuspend(&ss);
13132     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13133     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13134
13135   ;
13136   return 0;
13137 }
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13141   (eval $ac_link) 2>conftest.er1
13142   ac_status=$?
13143   grep -v '^ *+' conftest.er1 >conftest.err
13144   rm -f conftest.er1
13145   cat conftest.err >&5
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); } &&
13148          { ac_try='test -z "$ac_c_werror_flag"
13149                          || test ! -s conftest.err'
13150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151   (eval $ac_try) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; } &&
13155          { ac_try='test -s conftest$ac_exeext'
13156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157   (eval $ac_try) 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; }; then
13161   bash_cv_signal_vintage=posix
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166
13167     cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173 #include <signal.h>
13174 int
13175 main ()
13176 {
13177
13178         int mask = sigmask(SIGINT);
13179         sigsetmask(mask); sigblock(mask); sigpause(mask);
13180
13181   ;
13182   return 0;
13183 }
13184 _ACEOF
13185 rm -f conftest.$ac_objext conftest$ac_exeext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13187   (eval $ac_link) 2>conftest.er1
13188   ac_status=$?
13189   grep -v '^ *+' conftest.er1 >conftest.err
13190   rm -f conftest.er1
13191   cat conftest.err >&5
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); } &&
13194          { ac_try='test -z "$ac_c_werror_flag"
13195                          || test ! -s conftest.err'
13196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197   (eval $ac_try) 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; } &&
13201          { ac_try='test -s conftest$ac_exeext'
13202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203   (eval $ac_try) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; }; then
13207   bash_cv_signal_vintage=4.2bsd
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212
13213       cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h.  */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h.  */
13219
13220         #include <signal.h>
13221         RETSIGTYPE foo() { }
13222 int
13223 main ()
13224 {
13225
13226                 int mask = sigmask(SIGINT);
13227                 sigset(SIGINT, foo); sigrelse(SIGINT);
13228                 sighold(SIGINT); sigpause(SIGINT);
13229
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13236   (eval $ac_link) 2>conftest.er1
13237   ac_status=$?
13238   grep -v '^ *+' conftest.er1 >conftest.err
13239   rm -f conftest.er1
13240   cat conftest.err >&5
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } &&
13243          { ac_try='test -z "$ac_c_werror_flag"
13244                          || test ! -s conftest.err'
13245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246   (eval $ac_try) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; } &&
13250          { ac_try='test -s conftest$ac_exeext'
13251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252   (eval $ac_try) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; }; then
13256   bash_cv_signal_vintage=svr3
13257 else
13258   echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 bash_cv_signal_vintage=v7
13262
13263 fi
13264 rm -f conftest.err conftest.$ac_objext \
13265       conftest$ac_exeext conftest.$ac_ext
13266
13267 fi
13268 rm -f conftest.err conftest.$ac_objext \
13269       conftest$ac_exeext conftest.$ac_ext
13270
13271 fi
13272 rm -f conftest.err conftest.$ac_objext \
13273       conftest$ac_exeext conftest.$ac_ext
13274
13275 fi
13276
13277 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13278 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13279 if test "$bash_cv_signal_vintage" = posix; then
13280 cat >>confdefs.h <<\_ACEOF
13281 #define HAVE_POSIX_SIGNALS 1
13282 _ACEOF
13283
13284 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_BSD_SIGNALS 1
13287 _ACEOF
13288
13289 elif test "$bash_cv_signal_vintage" = svr3; then
13290 cat >>confdefs.h <<\_ACEOF
13291 #define HAVE_USG_SIGHOLD 1
13292 _ACEOF
13293
13294 fi
13295
13296 echo "$as_me:$LINENO: checking for mode_t" >&5
13297 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13298 if test "${ac_cv_type_mode_t+set}" = set; then
13299   echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301   cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h.  */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h.  */
13307 $ac_includes_default
13308 int
13309 main ()
13310 {
13311 if ((mode_t *) 0)
13312   return 0;
13313 if (sizeof (mode_t))
13314   return 0;
13315   ;
13316   return 0;
13317 }
13318 _ACEOF
13319 rm -f conftest.$ac_objext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13321   (eval $ac_compile) 2>conftest.er1
13322   ac_status=$?
13323   grep -v '^ *+' conftest.er1 >conftest.err
13324   rm -f conftest.er1
13325   cat conftest.err >&5
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); } &&
13328          { ac_try='test -z "$ac_c_werror_flag"
13329                          || test ! -s conftest.err'
13330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331   (eval $ac_try) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; } &&
13335          { ac_try='test -s conftest.$ac_objext'
13336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337   (eval $ac_try) 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; }; then
13341   ac_cv_type_mode_t=yes
13342 else
13343   echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 ac_cv_type_mode_t=no
13347 fi
13348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13349 fi
13350 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13351 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13352 if test $ac_cv_type_mode_t = yes; then
13353   :
13354 else
13355
13356 cat >>confdefs.h <<_ACEOF
13357 #define mode_t int
13358 _ACEOF
13359
13360 fi
13361
13362 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13363 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13364 if test "${ac_cv_type_uid_t+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   cat >conftest.$ac_ext <<_ACEOF
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373 #include <sys/types.h>
13374
13375 _ACEOF
13376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13377   $EGREP "uid_t" >/dev/null 2>&1; then
13378   ac_cv_type_uid_t=yes
13379 else
13380   ac_cv_type_uid_t=no
13381 fi
13382 rm -f conftest*
13383
13384 fi
13385 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13386 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13387 if test $ac_cv_type_uid_t = no; then
13388
13389 cat >>confdefs.h <<\_ACEOF
13390 #define uid_t int
13391 _ACEOF
13392
13393
13394 cat >>confdefs.h <<\_ACEOF
13395 #define gid_t int
13396 _ACEOF
13397
13398 fi
13399
13400 echo "$as_me:$LINENO: checking for size_t" >&5
13401 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13402 if test "${ac_cv_type_size_t+set}" = set; then
13403   echo $ECHO_N "(cached) $ECHO_C" >&6
13404 else
13405   cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 $ac_includes_default
13412 int
13413 main ()
13414 {
13415 if ((size_t *) 0)
13416   return 0;
13417 if (sizeof (size_t))
13418   return 0;
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425   (eval $ac_compile) 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -z "$ac_c_werror_flag"
13433                          || test ! -s conftest.err'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_cv_type_size_t=yes
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 ac_cv_type_size_t=no
13451 fi
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453 fi
13454 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13455 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13456 if test $ac_cv_type_size_t = yes; then
13457   :
13458 else
13459
13460 cat >>confdefs.h <<_ACEOF
13461 #define size_t unsigned
13462 _ACEOF
13463
13464 fi
13465
13466 echo "$as_me:$LINENO: checking for pid_t" >&5
13467 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13468 if test "${ac_cv_type_pid_t+set}" = set; then
13469   echo $ECHO_N "(cached) $ECHO_C" >&6
13470 else
13471   cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h.  */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h.  */
13477 $ac_includes_default
13478 int
13479 main ()
13480 {
13481 if ((pid_t *) 0)
13482   return 0;
13483 if (sizeof (pid_t))
13484   return 0;
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491   (eval $ac_compile) 2>conftest.er1
13492   ac_status=$?
13493   grep -v '^ *+' conftest.er1 >conftest.err
13494   rm -f conftest.er1
13495   cat conftest.err >&5
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); } &&
13498          { ac_try='test -z "$ac_c_werror_flag"
13499                          || test ! -s conftest.err'
13500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501   (eval $ac_try) 2>&5
13502   ac_status=$?
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); }; } &&
13505          { ac_try='test -s conftest.$ac_objext'
13506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507   (eval $ac_try) 2>&5
13508   ac_status=$?
13509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510   (exit $ac_status); }; }; then
13511   ac_cv_type_pid_t=yes
13512 else
13513   echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_cv_type_pid_t=no
13517 fi
13518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13519 fi
13520 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13521 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13522 if test $ac_cv_type_pid_t = yes; then
13523   :
13524 else
13525
13526 cat >>confdefs.h <<_ACEOF
13527 #define pid_t int
13528 _ACEOF
13529
13530 fi
13531
13532 echo "$as_me:$LINENO: checking for off_t" >&5
13533 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13534 if test "${ac_cv_type_off_t+set}" = set; then
13535   echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537   cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543 $ac_includes_default
13544 int
13545 main ()
13546 {
13547 if ((off_t *) 0)
13548   return 0;
13549 if (sizeof (off_t))
13550   return 0;
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557   (eval $ac_compile) 2>conftest.er1
13558   ac_status=$?
13559   grep -v '^ *+' conftest.er1 >conftest.err
13560   rm -f conftest.er1
13561   cat conftest.err >&5
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -z "$ac_c_werror_flag"
13565                          || test ! -s conftest.err'
13566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567   (eval $ac_try) 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; } &&
13571          { ac_try='test -s conftest.$ac_objext'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; }; then
13577   ac_cv_type_off_t=yes
13578 else
13579   echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13581
13582 ac_cv_type_off_t=no
13583 fi
13584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13585 fi
13586 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13587 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13588 if test $ac_cv_type_off_t = yes; then
13589   :
13590 else
13591
13592 cat >>confdefs.h <<_ACEOF
13593 #define off_t long
13594 _ACEOF
13595
13596 fi
13597
13598 echo "$as_me:$LINENO: checking for ino_t" >&5
13599 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13600 if test "${ac_cv_type_ino_t+set}" = set; then
13601   echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603   cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h.  */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h.  */
13609 $ac_includes_default
13610 int
13611 main ()
13612 {
13613 if ((ino_t *) 0)
13614   return 0;
13615 if (sizeof (ino_t))
13616   return 0;
13617   ;
13618   return 0;
13619 }
13620 _ACEOF
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623   (eval $ac_compile) 2>conftest.er1
13624   ac_status=$?
13625   grep -v '^ *+' conftest.er1 >conftest.err
13626   rm -f conftest.er1
13627   cat conftest.err >&5
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); } &&
13630          { ac_try='test -z "$ac_c_werror_flag"
13631                          || test ! -s conftest.err'
13632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633   (eval $ac_try) 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); }; } &&
13637          { ac_try='test -s conftest.$ac_objext'
13638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639   (eval $ac_try) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; }; then
13643   ac_cv_type_ino_t=yes
13644 else
13645   echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13647
13648 ac_cv_type_ino_t=no
13649 fi
13650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13651 fi
13652 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13653 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13654 if test $ac_cv_type_ino_t = yes; then
13655   :
13656 else
13657
13658 cat >>confdefs.h <<_ACEOF
13659 #define ino_t unsigned long
13660 _ACEOF
13661
13662 fi
13663
13664 echo "$as_me:$LINENO: checking for dev_t" >&5
13665 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13666 if test "${ac_cv_type_dev_t+set}" = set; then
13667   echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669   cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675 $ac_includes_default
13676 int
13677 main ()
13678 {
13679 if ((dev_t *) 0)
13680   return 0;
13681 if (sizeof (dev_t))
13682   return 0;
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689   (eval $ac_compile) 2>conftest.er1
13690   ac_status=$?
13691   grep -v '^ *+' conftest.er1 >conftest.err
13692   rm -f conftest.er1
13693   cat conftest.err >&5
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); } &&
13696          { ac_try='test -z "$ac_c_werror_flag"
13697                          || test ! -s conftest.err'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest.$ac_objext'
13704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705   (eval $ac_try) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   ac_cv_type_dev_t=yes
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_cv_type_dev_t=no
13715 fi
13716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13717 fi
13718 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13719 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13720 if test $ac_cv_type_dev_t = yes; then
13721   :
13722 else
13723
13724 cat >>confdefs.h <<_ACEOF
13725 #define dev_t unsigned long
13726 _ACEOF
13727
13728 fi
13729
13730 echo "$as_me:$LINENO: checking for daddr_t" >&5
13731 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13732 if test "${ac_cv_type_daddr_t+set}" = set; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   cat >conftest.$ac_ext <<_ACEOF
13736 /* confdefs.h.  */
13737 _ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h.  */
13741 $ac_includes_default
13742 int
13743 main ()
13744 {
13745 if ((daddr_t *) 0)
13746   return 0;
13747 if (sizeof (daddr_t))
13748   return 0;
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755   (eval $ac_compile) 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -z "$ac_c_werror_flag"
13763                          || test ! -s conftest.err'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; } &&
13769          { ac_try='test -s conftest.$ac_objext'
13770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771   (eval $ac_try) 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   ac_cv_type_daddr_t=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 ac_cv_type_daddr_t=no
13781 fi
13782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783 fi
13784 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13785 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13786 if test $ac_cv_type_daddr_t = yes; then
13787   :
13788 else
13789
13790 cat >>confdefs.h <<_ACEOF
13791 #define daddr_t long
13792 _ACEOF
13793
13794 fi
13795
13796 echo "$as_me:$LINENO: checking for major_t" >&5
13797 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13798 if test "${ac_cv_type_major_t+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h.  */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h.  */
13807 $ac_includes_default
13808 int
13809 main ()
13810 {
13811 if ((major_t *) 0)
13812   return 0;
13813 if (sizeof (major_t))
13814   return 0;
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 rm -f conftest.$ac_objext
13820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13821   (eval $ac_compile) 2>conftest.er1
13822   ac_status=$?
13823   grep -v '^ *+' conftest.er1 >conftest.err
13824   rm -f conftest.er1
13825   cat conftest.err >&5
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); } &&
13828          { ac_try='test -z "$ac_c_werror_flag"
13829                          || test ! -s conftest.err'
13830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831   (eval $ac_try) 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; } &&
13835          { ac_try='test -s conftest.$ac_objext'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; }; then
13841   ac_cv_type_major_t=yes
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 ac_cv_type_major_t=no
13847 fi
13848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13849 fi
13850 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13851 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13852 if test $ac_cv_type_major_t = yes; then
13853   :
13854 else
13855
13856 cat >>confdefs.h <<_ACEOF
13857 #define major_t int
13858 _ACEOF
13859
13860 fi
13861
13862 echo "$as_me:$LINENO: checking for minor_t" >&5
13863 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13864 if test "${ac_cv_type_minor_t+set}" = set; then
13865   echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867   cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873 $ac_includes_default
13874 int
13875 main ()
13876 {
13877 if ((minor_t *) 0)
13878   return 0;
13879 if (sizeof (minor_t))
13880   return 0;
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887   (eval $ac_compile) 2>conftest.er1
13888   ac_status=$?
13889   grep -v '^ *+' conftest.er1 >conftest.err
13890   rm -f conftest.er1
13891   cat conftest.err >&5
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -z "$ac_c_werror_flag"
13895                          || test ! -s conftest.err'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; } &&
13901          { ac_try='test -s conftest.$ac_objext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_cv_type_minor_t=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 ac_cv_type_minor_t=no
13913 fi
13914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13915 fi
13916 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13917 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13918 if test $ac_cv_type_minor_t = yes; then
13919   :
13920 else
13921
13922 cat >>confdefs.h <<_ACEOF
13923 #define minor_t int
13924 _ACEOF
13925
13926 fi
13927
13928 echo "$as_me:$LINENO: checking for ssize_t" >&5
13929 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13930 if test "${ac_cv_type_ssize_t+set}" = set; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 $ac_includes_default
13940 int
13941 main ()
13942 {
13943 if ((ssize_t *) 0)
13944   return 0;
13945 if (sizeof (ssize_t))
13946   return 0;
13947   ;
13948   return 0;
13949 }
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953   (eval $ac_compile) 2>conftest.er1
13954   ac_status=$?
13955   grep -v '^ *+' conftest.er1 >conftest.err
13956   rm -f conftest.er1
13957   cat conftest.err >&5
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } &&
13960          { ac_try='test -z "$ac_c_werror_flag"
13961                          || test ! -s conftest.err'
13962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963   (eval $ac_try) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); }; } &&
13967          { ac_try='test -s conftest.$ac_objext'
13968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969   (eval $ac_try) 2>&5
13970   ac_status=$?
13971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972   (exit $ac_status); }; }; then
13973   ac_cv_type_ssize_t=yes
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 ac_cv_type_ssize_t=no
13979 fi
13980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13981 fi
13982 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13983 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13984 if test $ac_cv_type_ssize_t = yes; then
13985   :
13986 else
13987
13988 cat >>confdefs.h <<_ACEOF
13989 #define ssize_t int
13990 _ACEOF
13991
13992 fi
13993
13994 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13995 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13996 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13997   echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999   cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 $ac_includes_default
14006 int
14007 main ()
14008 {
14009 static struct stat ac_aggr;
14010 if (ac_aggr.st_blocks)
14011 return 0;
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14018   (eval $ac_compile) 2>conftest.er1
14019   ac_status=$?
14020   grep -v '^ *+' conftest.er1 >conftest.err
14021   rm -f conftest.er1
14022   cat conftest.err >&5
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); } &&
14025          { ac_try='test -z "$ac_c_werror_flag"
14026                          || test ! -s conftest.err'
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); }; } &&
14032          { ac_try='test -s conftest.$ac_objext'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }; then
14038   ac_cv_member_struct_stat_st_blocks=yes
14039 else
14040   echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14042
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h.  */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h.  */
14049 $ac_includes_default
14050 int
14051 main ()
14052 {
14053 static struct stat ac_aggr;
14054 if (sizeof ac_aggr.st_blocks)
14055 return 0;
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062   (eval $ac_compile) 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } &&
14069          { ac_try='test -z "$ac_c_werror_flag"
14070                          || test ! -s conftest.err'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   ac_cv_member_struct_stat_st_blocks=yes
14083 else
14084   echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14086
14087 ac_cv_member_struct_stat_st_blocks=no
14088 fi
14089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14090 fi
14091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14092 fi
14093 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14094 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14095 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14096
14097 cat >>confdefs.h <<_ACEOF
14098 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14099 _ACEOF
14100
14101
14102 cat >>confdefs.h <<\_ACEOF
14103 #define HAVE_ST_BLOCKS 1
14104 _ACEOF
14105
14106 else
14107   case $LIBOBJS in
14108     "fileblocks.$ac_objext"   | \
14109   *" fileblocks.$ac_objext"   | \
14110     "fileblocks.$ac_objext "* | \
14111   *" fileblocks.$ac_objext "* ) ;;
14112   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14113 esac
14114
14115 fi
14116
14117
14118
14119 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14120 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14121 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124   cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h.  */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h.  */
14130 $ac_includes_default
14131 int
14132 main ()
14133 {
14134 static struct stat ac_aggr;
14135 if (ac_aggr.st_rdev)
14136 return 0;
14137   ;
14138   return 0;
14139 }
14140 _ACEOF
14141 rm -f conftest.$ac_objext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14143   (eval $ac_compile) 2>conftest.er1
14144   ac_status=$?
14145   grep -v '^ *+' conftest.er1 >conftest.err
14146   rm -f conftest.er1
14147   cat conftest.err >&5
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); } &&
14150          { ac_try='test -z "$ac_c_werror_flag"
14151                          || test ! -s conftest.err'
14152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153   (eval $ac_try) 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; } &&
14157          { ac_try='test -s conftest.$ac_objext'
14158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159   (eval $ac_try) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; }; then
14163   ac_cv_member_struct_stat_st_rdev=yes
14164 else
14165   echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h.  */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h.  */
14174 $ac_includes_default
14175 int
14176 main ()
14177 {
14178 static struct stat ac_aggr;
14179 if (sizeof ac_aggr.st_rdev)
14180 return 0;
14181   ;
14182   return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14187   (eval $ac_compile) 2>conftest.er1
14188   ac_status=$?
14189   grep -v '^ *+' conftest.er1 >conftest.err
14190   rm -f conftest.er1
14191   cat conftest.err >&5
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); } &&
14194          { ac_try='test -z "$ac_c_werror_flag"
14195                          || test ! -s conftest.err'
14196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197   (eval $ac_try) 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }; } &&
14201          { ac_try='test -s conftest.$ac_objext'
14202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203   (eval $ac_try) 2>&5
14204   ac_status=$?
14205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206   (exit $ac_status); }; }; then
14207   ac_cv_member_struct_stat_st_rdev=yes
14208 else
14209   echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14211
14212 ac_cv_member_struct_stat_st_rdev=no
14213 fi
14214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14215 fi
14216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14217 fi
14218 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14219 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14220 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14221
14222 cat >>confdefs.h <<_ACEOF
14223 #define HAVE_STRUCT_STAT_ST_RDEV 1
14224 _ACEOF
14225
14226
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_ST_RDEV 1
14229 _ACEOF
14230
14231 fi
14232
14233
14234 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14235 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14236 if test "${ac_cv_struct_tm+set}" = set; then
14237   echo $ECHO_N "(cached) $ECHO_C" >&6
14238 else
14239   cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h.  */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h.  */
14245 #include <sys/types.h>
14246 #include <time.h>
14247
14248 int
14249 main ()
14250 {
14251 struct tm *tp; tp->tm_sec;
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 rm -f conftest.$ac_objext
14257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14258   (eval $ac_compile) 2>conftest.er1
14259   ac_status=$?
14260   grep -v '^ *+' conftest.er1 >conftest.err
14261   rm -f conftest.er1
14262   cat conftest.err >&5
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); } &&
14265          { ac_try='test -z "$ac_c_werror_flag"
14266                          || test ! -s conftest.err'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; } &&
14272          { ac_try='test -s conftest.$ac_objext'
14273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274   (eval $ac_try) 2>&5
14275   ac_status=$?
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); }; }; then
14278   ac_cv_struct_tm=time.h
14279 else
14280   echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14282
14283 ac_cv_struct_tm=sys/time.h
14284 fi
14285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14286 fi
14287 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14288 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14289 if test $ac_cv_struct_tm = sys/time.h; then
14290
14291 cat >>confdefs.h <<\_ACEOF
14292 #define TM_IN_SYS_TIME 1
14293 _ACEOF
14294
14295 fi
14296
14297 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14298 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14299 if test "${ac_cv_c_const+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308
14309 int
14310 main ()
14311 {
14312 /* FIXME: Include the comments suggested by Paul. */
14313 #ifndef __cplusplus
14314   /* Ultrix mips cc rejects this.  */
14315   typedef int charset[2];
14316   const charset x;
14317   /* SunOS 4.1.1 cc rejects this.  */
14318   char const *const *ccp;
14319   char **p;
14320   /* NEC SVR4.0.2 mips cc rejects this.  */
14321   struct point {int x, y;};
14322   static struct point const zero = {0,0};
14323   /* AIX XL C 1.02.0.0 rejects this.
14324      It does not let you subtract one const X* pointer from another in
14325      an arm of an if-expression whose if-part is not a constant
14326      expression */
14327   const char *g = "string";
14328   ccp = &g + (g ? g-g : 0);
14329   /* HPUX 7.0 cc rejects these. */
14330   ++ccp;
14331   p = (char**) ccp;
14332   ccp = (char const *const *) p;
14333   { /* SCO 3.2v4 cc rejects this.  */
14334     char *t;
14335     char const *s = 0 ? (char *) 0 : (char const *) 0;
14336
14337     *t++ = 0;
14338   }
14339   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14340     int x[] = {25, 17};
14341     const int *foo = &x[0];
14342     ++foo;
14343   }
14344   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14345     typedef const int *iptr;
14346     iptr p = 0;
14347     ++p;
14348   }
14349   { /* AIX XL C 1.02.0.0 rejects this saying
14350        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14351     struct s { int j; const int *ap[3]; };
14352     struct s *b; b->j = 5;
14353   }
14354   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14355     const int foo = 10;
14356   }
14357 #endif
14358
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 rm -f conftest.$ac_objext
14364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14365   (eval $ac_compile) 2>conftest.er1
14366   ac_status=$?
14367   grep -v '^ *+' conftest.er1 >conftest.err
14368   rm -f conftest.er1
14369   cat conftest.err >&5
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); } &&
14372          { ac_try='test -z "$ac_c_werror_flag"
14373                          || test ! -s conftest.err'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; } &&
14379          { ac_try='test -s conftest.$ac_objext'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385   ac_cv_c_const=yes
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390 ac_cv_c_const=no
14391 fi
14392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14393 fi
14394 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14395 echo "${ECHO_T}$ac_cv_c_const" >&6
14396 if test $ac_cv_c_const = no; then
14397
14398 cat >>confdefs.h <<\_ACEOF
14399 #define const
14400 _ACEOF
14401
14402 fi
14403
14404
14405
14406 echo "$as_me:$LINENO: checking for char" >&5
14407 echo $ECHO_N "checking for char... $ECHO_C" >&6
14408 if test "${ac_cv_type_char+set}" = set; then
14409   echo $ECHO_N "(cached) $ECHO_C" >&6
14410 else
14411   cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417 $ac_includes_default
14418 int
14419 main ()
14420 {
14421 if ((char *) 0)
14422   return 0;
14423 if (sizeof (char))
14424   return 0;
14425   ;
14426   return 0;
14427 }
14428 _ACEOF
14429 rm -f conftest.$ac_objext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431   (eval $ac_compile) 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } &&
14438          { ac_try='test -z "$ac_c_werror_flag"
14439                          || test ! -s conftest.err'
14440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441   (eval $ac_try) 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; } &&
14445          { ac_try='test -s conftest.$ac_objext'
14446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447   (eval $ac_try) 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); }; }; then
14451   ac_cv_type_char=yes
14452 else
14453   echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 ac_cv_type_char=no
14457 fi
14458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14459 fi
14460 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14461 echo "${ECHO_T}$ac_cv_type_char" >&6
14462
14463 echo "$as_me:$LINENO: checking size of char" >&5
14464 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14465 if test "${ac_cv_sizeof_char+set}" = set; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 else
14468   if test "$ac_cv_type_char" = yes; then
14469   # The cast to unsigned long works around a bug in the HP C Compiler
14470   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14471   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14472   # This bug is HP SR number 8606223364.
14473   if test "$cross_compiling" = yes; then
14474   # Depending upon the size, compute the lo and hi bounds.
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h.  */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h.  */
14481 $ac_includes_default
14482 int
14483 main ()
14484 {
14485 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14486 test_array [0] = 0
14487
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 rm -f conftest.$ac_objext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14494   (eval $ac_compile) 2>conftest.er1
14495   ac_status=$?
14496   grep -v '^ *+' conftest.er1 >conftest.err
14497   rm -f conftest.er1
14498   cat conftest.err >&5
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); } &&
14501          { ac_try='test -z "$ac_c_werror_flag"
14502                          || test ! -s conftest.err'
14503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504   (eval $ac_try) 2>&5
14505   ac_status=$?
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; } &&
14508          { ac_try='test -s conftest.$ac_objext'
14509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510   (eval $ac_try) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; }; then
14514   ac_lo=0 ac_mid=0
14515   while :; do
14516     cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 $ac_includes_default
14523 int
14524 main ()
14525 {
14526 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14527 test_array [0] = 0
14528
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535   (eval $ac_compile) 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } &&
14542          { ac_try='test -z "$ac_c_werror_flag"
14543                          || test ! -s conftest.err'
14544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; } &&
14549          { ac_try='test -s conftest.$ac_objext'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; }; then
14555   ac_hi=$ac_mid; break
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 ac_lo=`expr $ac_mid + 1`
14561                     if test $ac_lo -le $ac_mid; then
14562                       ac_lo= ac_hi=
14563                       break
14564                     fi
14565                     ac_mid=`expr 2 '*' $ac_mid + 1`
14566 fi
14567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14568   done
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 cat >conftest.$ac_ext <<_ACEOF
14574 /* confdefs.h.  */
14575 _ACEOF
14576 cat confdefs.h >>conftest.$ac_ext
14577 cat >>conftest.$ac_ext <<_ACEOF
14578 /* end confdefs.h.  */
14579 $ac_includes_default
14580 int
14581 main ()
14582 {
14583 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14584 test_array [0] = 0
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592   (eval $ac_compile) 2>conftest.er1
14593   ac_status=$?
14594   grep -v '^ *+' conftest.er1 >conftest.err
14595   rm -f conftest.er1
14596   cat conftest.err >&5
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } &&
14599          { ac_try='test -z "$ac_c_werror_flag"
14600                          || test ! -s conftest.err'
14601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602   (eval $ac_try) 2>&5
14603   ac_status=$?
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); }; } &&
14606          { ac_try='test -s conftest.$ac_objext'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; }; then
14612   ac_hi=-1 ac_mid=-1
14613   while :; do
14614     cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620 $ac_includes_default
14621 int
14622 main ()
14623 {
14624 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14625 test_array [0] = 0
14626
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14633   (eval $ac_compile) 2>conftest.er1
14634   ac_status=$?
14635   grep -v '^ *+' conftest.er1 >conftest.err
14636   rm -f conftest.er1
14637   cat conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } &&
14640          { ac_try='test -z "$ac_c_werror_flag"
14641                          || test ! -s conftest.err'
14642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643   (eval $ac_try) 2>&5
14644   ac_status=$?
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); }; } &&
14647          { ac_try='test -s conftest.$ac_objext'
14648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649   (eval $ac_try) 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); }; }; then
14653   ac_lo=$ac_mid; break
14654 else
14655   echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658 ac_hi=`expr '(' $ac_mid ')' - 1`
14659                        if test $ac_mid -le $ac_hi; then
14660                          ac_lo= ac_hi=
14661                          break
14662                        fi
14663                        ac_mid=`expr 2 '*' $ac_mid`
14664 fi
14665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14666   done
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ac_lo= ac_hi=
14672 fi
14673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14674 fi
14675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14676 # Binary search between lo and hi bounds.
14677 while test "x$ac_lo" != "x$ac_hi"; do
14678   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14679   cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h.  */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h.  */
14685 $ac_includes_default
14686 int
14687 main ()
14688 {
14689 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14690 test_array [0] = 0
14691
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 rm -f conftest.$ac_objext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14698   (eval $ac_compile) 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } &&
14705          { ac_try='test -z "$ac_c_werror_flag"
14706                          || test ! -s conftest.err'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; } &&
14712          { ac_try='test -s conftest.$ac_objext'
14713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714   (eval $ac_try) 2>&5
14715   ac_status=$?
14716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717   (exit $ac_status); }; }; then
14718   ac_hi=$ac_mid
14719 else
14720   echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14722
14723 ac_lo=`expr '(' $ac_mid ')' + 1`
14724 fi
14725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14726 done
14727 case $ac_lo in
14728 ?*) ac_cv_sizeof_char=$ac_lo;;
14729 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14730 See \`config.log' for more details." >&5
14731 echo "$as_me: error: cannot compute sizeof (char), 77
14732 See \`config.log' for more details." >&2;}
14733    { (exit 1); exit 1; }; } ;;
14734 esac
14735 else
14736   if test "$cross_compiling" = yes; then
14737   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14738 See \`config.log' for more details." >&5
14739 echo "$as_me: error: cannot run test program while cross compiling
14740 See \`config.log' for more details." >&2;}
14741    { (exit 1); exit 1; }; }
14742 else
14743   cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h.  */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h.  */
14749 $ac_includes_default
14750 long longval () { return (long) (sizeof (char)); }
14751 unsigned long ulongval () { return (long) (sizeof (char)); }
14752 #include <stdio.h>
14753 #include <stdlib.h>
14754 int
14755 main ()
14756 {
14757
14758   FILE *f = fopen ("conftest.val", "w");
14759   if (! f)
14760     exit (1);
14761   if (((long) (sizeof (char))) < 0)
14762     {
14763       long i = longval ();
14764       if (i != ((long) (sizeof (char))))
14765         exit (1);
14766       fprintf (f, "%ld\n", i);
14767     }
14768   else
14769     {
14770       unsigned long i = ulongval ();
14771       if (i != ((long) (sizeof (char))))
14772         exit (1);
14773       fprintf (f, "%lu\n", i);
14774     }
14775   exit (ferror (f) || fclose (f) != 0);
14776
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest$ac_exeext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14783   (eval $ac_link) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788   (eval $ac_try) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; }; then
14792   ac_cv_sizeof_char=`cat conftest.val`
14793 else
14794   echo "$as_me: program exited with status $ac_status" >&5
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798 ( exit $ac_status )
14799 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14800 See \`config.log' for more details." >&5
14801 echo "$as_me: error: cannot compute sizeof (char), 77
14802 See \`config.log' for more details." >&2;}
14803    { (exit 1); exit 1; }; }
14804 fi
14805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 fi
14808 rm -f conftest.val
14809 else
14810   ac_cv_sizeof_char=0
14811 fi
14812 fi
14813 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14814 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14815 cat >>confdefs.h <<_ACEOF
14816 #define SIZEOF_CHAR $ac_cv_sizeof_char
14817 _ACEOF
14818
14819
14820 echo "$as_me:$LINENO: checking for short int" >&5
14821 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14822 if test "${ac_cv_type_short_int+set}" = set; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831 $ac_includes_default
14832 int
14833 main ()
14834 {
14835 if ((short int *) 0)
14836   return 0;
14837 if (sizeof (short int))
14838   return 0;
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest.$ac_objext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14845   (eval $ac_compile) 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } &&
14852          { ac_try='test -z "$ac_c_werror_flag"
14853                          || test ! -s conftest.err'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; } &&
14859          { ac_try='test -s conftest.$ac_objext'
14860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861   (eval $ac_try) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; }; then
14865   ac_cv_type_short_int=yes
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 ac_cv_type_short_int=no
14871 fi
14872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14873 fi
14874 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14875 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14876
14877 echo "$as_me:$LINENO: checking size of short int" >&5
14878 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14879 if test "${ac_cv_sizeof_short_int+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   if test "$ac_cv_type_short_int" = yes; then
14883   # The cast to unsigned long works around a bug in the HP C Compiler
14884   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14885   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14886   # This bug is HP SR number 8606223364.
14887   if test "$cross_compiling" = yes; then
14888   # Depending upon the size, compute the lo and hi bounds.
14889 cat >conftest.$ac_ext <<_ACEOF
14890 /* confdefs.h.  */
14891 _ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h.  */
14895 $ac_includes_default
14896 int
14897 main ()
14898 {
14899 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14900 test_array [0] = 0
14901
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest.$ac_objext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14908   (eval $ac_compile) 2>conftest.er1
14909   ac_status=$?
14910   grep -v '^ *+' conftest.er1 >conftest.err
14911   rm -f conftest.er1
14912   cat conftest.err >&5
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -z "$ac_c_werror_flag"
14916                          || test ! -s conftest.err'
14917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918   (eval $ac_try) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }; } &&
14922          { ac_try='test -s conftest.$ac_objext'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; }; then
14928   ac_lo=0 ac_mid=0
14929   while :; do
14930     cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h.  */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h.  */
14936 $ac_includes_default
14937 int
14938 main ()
14939 {
14940 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
14941 test_array [0] = 0
14942
14943   ;
14944   return 0;
14945 }
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949   (eval $ac_compile) 2>conftest.er1
14950   ac_status=$?
14951   grep -v '^ *+' conftest.er1 >conftest.err
14952   rm -f conftest.er1
14953   cat conftest.err >&5
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } &&
14956          { ac_try='test -z "$ac_c_werror_flag"
14957                          || test ! -s conftest.err'
14958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959   (eval $ac_try) 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; } &&
14963          { ac_try='test -s conftest.$ac_objext'
14964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965   (eval $ac_try) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); }; }; then
14969   ac_hi=$ac_mid; break
14970 else
14971   echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 ac_lo=`expr $ac_mid + 1`
14975                     if test $ac_lo -le $ac_mid; then
14976                       ac_lo= ac_hi=
14977                       break
14978                     fi
14979                     ac_mid=`expr 2 '*' $ac_mid + 1`
14980 fi
14981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14982   done
14983 else
14984   echo "$as_me: failed program was:" >&5
14985 sed 's/^/| /' conftest.$ac_ext >&5
14986
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993 $ac_includes_default
14994 int
14995 main ()
14996 {
14997 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
14998 test_array [0] = 0
14999
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>conftest.er1
15007   ac_status=$?
15008   grep -v '^ *+' conftest.er1 >conftest.err
15009   rm -f conftest.er1
15010   cat conftest.err >&5
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -z "$ac_c_werror_flag"
15014                          || test ! -s conftest.err'
15015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016   (eval $ac_try) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; } &&
15020          { ac_try='test -s conftest.$ac_objext'
15021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022   (eval $ac_try) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); }; }; then
15026   ac_hi=-1 ac_mid=-1
15027   while :; do
15028     cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034 $ac_includes_default
15035 int
15036 main ()
15037 {
15038 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15039 test_array [0] = 0
15040
15041   ;
15042   return 0;
15043 }
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047   (eval $ac_compile) 2>conftest.er1
15048   ac_status=$?
15049   grep -v '^ *+' conftest.er1 >conftest.err
15050   rm -f conftest.er1
15051   cat conftest.err >&5
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); } &&
15054          { ac_try='test -z "$ac_c_werror_flag"
15055                          || test ! -s conftest.err'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; } &&
15061          { ac_try='test -s conftest.$ac_objext'
15062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063   (eval $ac_try) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); }; }; then
15067   ac_lo=$ac_mid; break
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_hi=`expr '(' $ac_mid ')' - 1`
15073                        if test $ac_mid -le $ac_hi; then
15074                          ac_lo= ac_hi=
15075                          break
15076                        fi
15077                        ac_mid=`expr 2 '*' $ac_mid`
15078 fi
15079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15080   done
15081 else
15082   echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15084
15085 ac_lo= ac_hi=
15086 fi
15087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15088 fi
15089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15090 # Binary search between lo and hi bounds.
15091 while test "x$ac_lo" != "x$ac_hi"; do
15092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15093   cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099 $ac_includes_default
15100 int
15101 main ()
15102 {
15103 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15104 test_array [0] = 0
15105
15106   ;
15107   return 0;
15108 }
15109 _ACEOF
15110 rm -f conftest.$ac_objext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15112   (eval $ac_compile) 2>conftest.er1
15113   ac_status=$?
15114   grep -v '^ *+' conftest.er1 >conftest.err
15115   rm -f conftest.er1
15116   cat conftest.err >&5
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } &&
15119          { ac_try='test -z "$ac_c_werror_flag"
15120                          || test ! -s conftest.err'
15121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122   (eval $ac_try) 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); }; } &&
15126          { ac_try='test -s conftest.$ac_objext'
15127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128   (eval $ac_try) 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); }; }; then
15132   ac_hi=$ac_mid
15133 else
15134   echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 ac_lo=`expr '(' $ac_mid ')' + 1`
15138 fi
15139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15140 done
15141 case $ac_lo in
15142 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15143 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15144 See \`config.log' for more details." >&5
15145 echo "$as_me: error: cannot compute sizeof (short int), 77
15146 See \`config.log' for more details." >&2;}
15147    { (exit 1); exit 1; }; } ;;
15148 esac
15149 else
15150   if test "$cross_compiling" = yes; then
15151   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15152 See \`config.log' for more details." >&5
15153 echo "$as_me: error: cannot run test program while cross compiling
15154 See \`config.log' for more details." >&2;}
15155    { (exit 1); exit 1; }; }
15156 else
15157   cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163 $ac_includes_default
15164 long longval () { return (long) (sizeof (short int)); }
15165 unsigned long ulongval () { return (long) (sizeof (short int)); }
15166 #include <stdio.h>
15167 #include <stdlib.h>
15168 int
15169 main ()
15170 {
15171
15172   FILE *f = fopen ("conftest.val", "w");
15173   if (! f)
15174     exit (1);
15175   if (((long) (sizeof (short int))) < 0)
15176     {
15177       long i = longval ();
15178       if (i != ((long) (sizeof (short int))))
15179         exit (1);
15180       fprintf (f, "%ld\n", i);
15181     }
15182   else
15183     {
15184       unsigned long i = ulongval ();
15185       if (i != ((long) (sizeof (short int))))
15186         exit (1);
15187       fprintf (f, "%lu\n", i);
15188     }
15189   exit (ferror (f) || fclose (f) != 0);
15190
15191   ;
15192   return 0;
15193 }
15194 _ACEOF
15195 rm -f conftest$ac_exeext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15197   (eval $ac_link) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202   (eval $ac_try) 2>&5
15203   ac_status=$?
15204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205   (exit $ac_status); }; }; then
15206   ac_cv_sizeof_short_int=`cat conftest.val`
15207 else
15208   echo "$as_me: program exited with status $ac_status" >&5
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212 ( exit $ac_status )
15213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15214 See \`config.log' for more details." >&5
15215 echo "$as_me: error: cannot compute sizeof (short int), 77
15216 See \`config.log' for more details." >&2;}
15217    { (exit 1); exit 1; }; }
15218 fi
15219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15220 fi
15221 fi
15222 rm -f conftest.val
15223 else
15224   ac_cv_sizeof_short_int=0
15225 fi
15226 fi
15227 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15228 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15229 cat >>confdefs.h <<_ACEOF
15230 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15231 _ACEOF
15232
15233
15234 echo "$as_me:$LINENO: checking for int" >&5
15235 echo $ECHO_N "checking for int... $ECHO_C" >&6
15236 if test "${ac_cv_type_int+set}" = set; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245 $ac_includes_default
15246 int
15247 main ()
15248 {
15249 if ((int *) 0)
15250   return 0;
15251 if (sizeof (int))
15252   return 0;
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15259   (eval $ac_compile) 2>conftest.er1
15260   ac_status=$?
15261   grep -v '^ *+' conftest.er1 >conftest.err
15262   rm -f conftest.er1
15263   cat conftest.err >&5
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } &&
15266          { ac_try='test -z "$ac_c_werror_flag"
15267                          || test ! -s conftest.err'
15268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269   (eval $ac_try) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; } &&
15273          { ac_try='test -s conftest.$ac_objext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   ac_cv_type_int=yes
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 ac_cv_type_int=no
15285 fi
15286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15287 fi
15288 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15289 echo "${ECHO_T}$ac_cv_type_int" >&6
15290
15291 echo "$as_me:$LINENO: checking size of int" >&5
15292 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15293 if test "${ac_cv_sizeof_int+set}" = set; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   if test "$ac_cv_type_int" = yes; then
15297   # The cast to unsigned long works around a bug in the HP C Compiler
15298   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15299   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15300   # This bug is HP SR number 8606223364.
15301   if test "$cross_compiling" = yes; then
15302   # Depending upon the size, compute the lo and hi bounds.
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h.  */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h.  */
15309 $ac_includes_default
15310 int
15311 main ()
15312 {
15313 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15314 test_array [0] = 0
15315
15316   ;
15317   return 0;
15318 }
15319 _ACEOF
15320 rm -f conftest.$ac_objext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322   (eval $ac_compile) 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_c_werror_flag"
15330                          || test ! -s conftest.err'
15331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332   (eval $ac_try) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; } &&
15336          { ac_try='test -s conftest.$ac_objext'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   ac_lo=0 ac_mid=0
15343   while :; do
15344     cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350 $ac_includes_default
15351 int
15352 main ()
15353 {
15354 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15355 test_array [0] = 0
15356
15357   ;
15358   return 0;
15359 }
15360 _ACEOF
15361 rm -f conftest.$ac_objext
15362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15363   (eval $ac_compile) 2>conftest.er1
15364   ac_status=$?
15365   grep -v '^ *+' conftest.er1 >conftest.err
15366   rm -f conftest.er1
15367   cat conftest.err >&5
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } &&
15370          { ac_try='test -z "$ac_c_werror_flag"
15371                          || test ! -s conftest.err'
15372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373   (eval $ac_try) 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); }; } &&
15377          { ac_try='test -s conftest.$ac_objext'
15378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379   (eval $ac_try) 2>&5
15380   ac_status=$?
15381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382   (exit $ac_status); }; }; then
15383   ac_hi=$ac_mid; break
15384 else
15385   echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 ac_lo=`expr $ac_mid + 1`
15389                     if test $ac_lo -le $ac_mid; then
15390                       ac_lo= ac_hi=
15391                       break
15392                     fi
15393                     ac_mid=`expr 2 '*' $ac_mid + 1`
15394 fi
15395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15396   done
15397 else
15398   echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h.  */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h.  */
15407 $ac_includes_default
15408 int
15409 main ()
15410 {
15411 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15412 test_array [0] = 0
15413
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420   (eval $ac_compile) 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } &&
15427          { ac_try='test -z "$ac_c_werror_flag"
15428                          || test ! -s conftest.err'
15429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430   (eval $ac_try) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }; } &&
15434          { ac_try='test -s conftest.$ac_objext'
15435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436   (eval $ac_try) 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   ac_hi=-1 ac_mid=-1
15441   while :; do
15442     cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448 $ac_includes_default
15449 int
15450 main ()
15451 {
15452 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15453 test_array [0] = 0
15454
15455   ;
15456   return 0;
15457 }
15458 _ACEOF
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461   (eval $ac_compile) 2>conftest.er1
15462   ac_status=$?
15463   grep -v '^ *+' conftest.er1 >conftest.err
15464   rm -f conftest.er1
15465   cat conftest.err >&5
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -z "$ac_c_werror_flag"
15469                          || test ! -s conftest.err'
15470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471   (eval $ac_try) 2>&5
15472   ac_status=$?
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); }; } &&
15475          { ac_try='test -s conftest.$ac_objext'
15476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477   (eval $ac_try) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; }; then
15481   ac_lo=$ac_mid; break
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 ac_hi=`expr '(' $ac_mid ')' - 1`
15487                        if test $ac_mid -le $ac_hi; then
15488                          ac_lo= ac_hi=
15489                          break
15490                        fi
15491                        ac_mid=`expr 2 '*' $ac_mid`
15492 fi
15493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15494   done
15495 else
15496   echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499 ac_lo= ac_hi=
15500 fi
15501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15502 fi
15503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15504 # Binary search between lo and hi bounds.
15505 while test "x$ac_lo" != "x$ac_hi"; do
15506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15507   cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 $ac_includes_default
15514 int
15515 main ()
15516 {
15517 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15518 test_array [0] = 0
15519
15520   ;
15521   return 0;
15522 }
15523 _ACEOF
15524 rm -f conftest.$ac_objext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15526   (eval $ac_compile) 2>conftest.er1
15527   ac_status=$?
15528   grep -v '^ *+' conftest.er1 >conftest.err
15529   rm -f conftest.er1
15530   cat conftest.err >&5
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); } &&
15533          { ac_try='test -z "$ac_c_werror_flag"
15534                          || test ! -s conftest.err'
15535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536   (eval $ac_try) 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; } &&
15540          { ac_try='test -s conftest.$ac_objext'
15541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542   (eval $ac_try) 2>&5
15543   ac_status=$?
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); }; }; then
15546   ac_hi=$ac_mid
15547 else
15548   echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15550
15551 ac_lo=`expr '(' $ac_mid ')' + 1`
15552 fi
15553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15554 done
15555 case $ac_lo in
15556 ?*) ac_cv_sizeof_int=$ac_lo;;
15557 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15558 See \`config.log' for more details." >&5
15559 echo "$as_me: error: cannot compute sizeof (int), 77
15560 See \`config.log' for more details." >&2;}
15561    { (exit 1); exit 1; }; } ;;
15562 esac
15563 else
15564   if test "$cross_compiling" = yes; then
15565   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15566 See \`config.log' for more details." >&5
15567 echo "$as_me: error: cannot run test program while cross compiling
15568 See \`config.log' for more details." >&2;}
15569    { (exit 1); exit 1; }; }
15570 else
15571   cat >conftest.$ac_ext <<_ACEOF
15572 /* confdefs.h.  */
15573 _ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h.  */
15577 $ac_includes_default
15578 long longval () { return (long) (sizeof (int)); }
15579 unsigned long ulongval () { return (long) (sizeof (int)); }
15580 #include <stdio.h>
15581 #include <stdlib.h>
15582 int
15583 main ()
15584 {
15585
15586   FILE *f = fopen ("conftest.val", "w");
15587   if (! f)
15588     exit (1);
15589   if (((long) (sizeof (int))) < 0)
15590     {
15591       long i = longval ();
15592       if (i != ((long) (sizeof (int))))
15593         exit (1);
15594       fprintf (f, "%ld\n", i);
15595     }
15596   else
15597     {
15598       unsigned long i = ulongval ();
15599       if (i != ((long) (sizeof (int))))
15600         exit (1);
15601       fprintf (f, "%lu\n", i);
15602     }
15603   exit (ferror (f) || fclose (f) != 0);
15604
15605   ;
15606   return 0;
15607 }
15608 _ACEOF
15609 rm -f conftest$ac_exeext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15611   (eval $ac_link) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616   (eval $ac_try) 2>&5
15617   ac_status=$?
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); }; }; then
15620   ac_cv_sizeof_int=`cat conftest.val`
15621 else
15622   echo "$as_me: program exited with status $ac_status" >&5
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626 ( exit $ac_status )
15627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15628 See \`config.log' for more details." >&5
15629 echo "$as_me: error: cannot compute sizeof (int), 77
15630 See \`config.log' for more details." >&2;}
15631    { (exit 1); exit 1; }; }
15632 fi
15633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15634 fi
15635 fi
15636 rm -f conftest.val
15637 else
15638   ac_cv_sizeof_int=0
15639 fi
15640 fi
15641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15642 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15643 cat >>confdefs.h <<_ACEOF
15644 #define SIZEOF_INT $ac_cv_sizeof_int
15645 _ACEOF
15646
15647
15648 echo "$as_me:$LINENO: checking for long int" >&5
15649 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15650 if test "${ac_cv_type_long_int+set}" = set; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 else
15653   cat >conftest.$ac_ext <<_ACEOF
15654 /* confdefs.h.  */
15655 _ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h.  */
15659 $ac_includes_default
15660 int
15661 main ()
15662 {
15663 if ((long int *) 0)
15664   return 0;
15665 if (sizeof (long int))
15666   return 0;
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673   (eval $ac_compile) 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_c_werror_flag"
15681                          || test ! -s conftest.err'
15682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683   (eval $ac_try) 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; } &&
15687          { ac_try='test -s conftest.$ac_objext'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; }; then
15693   ac_cv_type_long_int=yes
15694 else
15695   echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15697
15698 ac_cv_type_long_int=no
15699 fi
15700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15701 fi
15702 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15703 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15704
15705 echo "$as_me:$LINENO: checking size of long int" >&5
15706 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15707 if test "${ac_cv_sizeof_long_int+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   if test "$ac_cv_type_long_int" = yes; then
15711   # The cast to unsigned long works around a bug in the HP C Compiler
15712   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15713   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15714   # This bug is HP SR number 8606223364.
15715   if test "$cross_compiling" = yes; then
15716   # Depending upon the size, compute the lo and hi bounds.
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h.  */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h.  */
15723 $ac_includes_default
15724 int
15725 main ()
15726 {
15727 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15728 test_array [0] = 0
15729
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 rm -f conftest.$ac_objext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15736   (eval $ac_compile) 2>conftest.er1
15737   ac_status=$?
15738   grep -v '^ *+' conftest.er1 >conftest.err
15739   rm -f conftest.er1
15740   cat conftest.err >&5
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); } &&
15743          { ac_try='test -z "$ac_c_werror_flag"
15744                          || test ! -s conftest.err'
15745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746   (eval $ac_try) 2>&5
15747   ac_status=$?
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); }; } &&
15750          { ac_try='test -s conftest.$ac_objext'
15751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752   (eval $ac_try) 2>&5
15753   ac_status=$?
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); }; }; then
15756   ac_lo=0 ac_mid=0
15757   while :; do
15758     cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h.  */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h.  */
15764 $ac_includes_default
15765 int
15766 main ()
15767 {
15768 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15769 test_array [0] = 0
15770
15771   ;
15772   return 0;
15773 }
15774 _ACEOF
15775 rm -f conftest.$ac_objext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15777   (eval $ac_compile) 2>conftest.er1
15778   ac_status=$?
15779   grep -v '^ *+' conftest.er1 >conftest.err
15780   rm -f conftest.er1
15781   cat conftest.err >&5
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } &&
15784          { ac_try='test -z "$ac_c_werror_flag"
15785                          || test ! -s conftest.err'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; } &&
15791          { ac_try='test -s conftest.$ac_objext'
15792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793   (eval $ac_try) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); }; }; then
15797   ac_hi=$ac_mid; break
15798 else
15799   echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15801
15802 ac_lo=`expr $ac_mid + 1`
15803                     if test $ac_lo -le $ac_mid; then
15804                       ac_lo= ac_hi=
15805                       break
15806                     fi
15807                     ac_mid=`expr 2 '*' $ac_mid + 1`
15808 fi
15809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15810   done
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821 $ac_includes_default
15822 int
15823 main ()
15824 {
15825 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15826 test_array [0] = 0
15827
15828   ;
15829   return 0;
15830 }
15831 _ACEOF
15832 rm -f conftest.$ac_objext
15833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15834   (eval $ac_compile) 2>conftest.er1
15835   ac_status=$?
15836   grep -v '^ *+' conftest.er1 >conftest.err
15837   rm -f conftest.er1
15838   cat conftest.err >&5
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } &&
15841          { ac_try='test -z "$ac_c_werror_flag"
15842                          || test ! -s conftest.err'
15843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844   (eval $ac_try) 2>&5
15845   ac_status=$?
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); }; } &&
15848          { ac_try='test -s conftest.$ac_objext'
15849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850   (eval $ac_try) 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); }; }; then
15854   ac_hi=-1 ac_mid=-1
15855   while :; do
15856     cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h.  */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h.  */
15862 $ac_includes_default
15863 int
15864 main ()
15865 {
15866 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15867 test_array [0] = 0
15868
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875   (eval $ac_compile) 2>conftest.er1
15876   ac_status=$?
15877   grep -v '^ *+' conftest.er1 >conftest.err
15878   rm -f conftest.er1
15879   cat conftest.err >&5
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } &&
15882          { ac_try='test -z "$ac_c_werror_flag"
15883                          || test ! -s conftest.err'
15884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885   (eval $ac_try) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); }; } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_lo=$ac_mid; break
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 ac_hi=`expr '(' $ac_mid ')' - 1`
15901                        if test $ac_mid -le $ac_hi; then
15902                          ac_lo= ac_hi=
15903                          break
15904                        fi
15905                        ac_mid=`expr 2 '*' $ac_mid`
15906 fi
15907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15908   done
15909 else
15910   echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913 ac_lo= ac_hi=
15914 fi
15915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15916 fi
15917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15918 # Binary search between lo and hi bounds.
15919 while test "x$ac_lo" != "x$ac_hi"; do
15920   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15921   cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927 $ac_includes_default
15928 int
15929 main ()
15930 {
15931 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15932 test_array [0] = 0
15933
15934   ;
15935   return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest.$ac_objext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15940   (eval $ac_compile) 2>conftest.er1
15941   ac_status=$?
15942   grep -v '^ *+' conftest.er1 >conftest.err
15943   rm -f conftest.er1
15944   cat conftest.err >&5
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } &&
15947          { ac_try='test -z "$ac_c_werror_flag"
15948                          || test ! -s conftest.err'
15949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950   (eval $ac_try) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; } &&
15954          { ac_try='test -s conftest.$ac_objext'
15955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956   (eval $ac_try) 2>&5
15957   ac_status=$?
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); }; }; then
15960   ac_hi=$ac_mid
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965 ac_lo=`expr '(' $ac_mid ')' + 1`
15966 fi
15967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15968 done
15969 case $ac_lo in
15970 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15971 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15972 See \`config.log' for more details." >&5
15973 echo "$as_me: error: cannot compute sizeof (long int), 77
15974 See \`config.log' for more details." >&2;}
15975    { (exit 1); exit 1; }; } ;;
15976 esac
15977 else
15978   if test "$cross_compiling" = yes; then
15979   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15980 See \`config.log' for more details." >&5
15981 echo "$as_me: error: cannot run test program while cross compiling
15982 See \`config.log' for more details." >&2;}
15983    { (exit 1); exit 1; }; }
15984 else
15985   cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991 $ac_includes_default
15992 long longval () { return (long) (sizeof (long int)); }
15993 unsigned long ulongval () { return (long) (sizeof (long int)); }
15994 #include <stdio.h>
15995 #include <stdlib.h>
15996 int
15997 main ()
15998 {
15999
16000   FILE *f = fopen ("conftest.val", "w");
16001   if (! f)
16002     exit (1);
16003   if (((long) (sizeof (long int))) < 0)
16004     {
16005       long i = longval ();
16006       if (i != ((long) (sizeof (long int))))
16007         exit (1);
16008       fprintf (f, "%ld\n", i);
16009     }
16010   else
16011     {
16012       unsigned long i = ulongval ();
16013       if (i != ((long) (sizeof (long int))))
16014         exit (1);
16015       fprintf (f, "%lu\n", i);
16016     }
16017   exit (ferror (f) || fclose (f) != 0);
16018
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 rm -f conftest$ac_exeext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16025   (eval $ac_link) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030   (eval $ac_try) 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; }; then
16034   ac_cv_sizeof_long_int=`cat conftest.val`
16035 else
16036   echo "$as_me: program exited with status $ac_status" >&5
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ( exit $ac_status )
16041 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16042 See \`config.log' for more details." >&5
16043 echo "$as_me: error: cannot compute sizeof (long int), 77
16044 See \`config.log' for more details." >&2;}
16045    { (exit 1); exit 1; }; }
16046 fi
16047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16048 fi
16049 fi
16050 rm -f conftest.val
16051 else
16052   ac_cv_sizeof_long_int=0
16053 fi
16054 fi
16055 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16056 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16057 cat >>confdefs.h <<_ACEOF
16058 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16059 _ACEOF
16060
16061
16062 echo "$as_me:$LINENO: checking for long long int" >&5
16063 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16064 if test "${ac_cv_type_long_long_int+set}" = set; then
16065   echo $ECHO_N "(cached) $ECHO_C" >&6
16066 else
16067   cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h.  */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h.  */
16073 $ac_includes_default
16074 int
16075 main ()
16076 {
16077 if ((long long int *) 0)
16078   return 0;
16079 if (sizeof (long long int))
16080   return 0;
16081   ;
16082   return 0;
16083 }
16084 _ACEOF
16085 rm -f conftest.$ac_objext
16086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16087   (eval $ac_compile) 2>conftest.er1
16088   ac_status=$?
16089   grep -v '^ *+' conftest.er1 >conftest.err
16090   rm -f conftest.er1
16091   cat conftest.err >&5
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); } &&
16094          { ac_try='test -z "$ac_c_werror_flag"
16095                          || test ! -s conftest.err'
16096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097   (eval $ac_try) 2>&5
16098   ac_status=$?
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); }; } &&
16101          { ac_try='test -s conftest.$ac_objext'
16102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103   (eval $ac_try) 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); }; }; then
16107   ac_cv_type_long_long_int=yes
16108 else
16109   echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112 ac_cv_type_long_long_int=no
16113 fi
16114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16115 fi
16116 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16117 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16118
16119 echo "$as_me:$LINENO: checking size of long long int" >&5
16120 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16121 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16122   echo $ECHO_N "(cached) $ECHO_C" >&6
16123 else
16124   if test "$ac_cv_type_long_long_int" = yes; then
16125   # The cast to unsigned long works around a bug in the HP C Compiler
16126   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16127   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16128   # This bug is HP SR number 8606223364.
16129   if test "$cross_compiling" = yes; then
16130   # Depending upon the size, compute the lo and hi bounds.
16131 cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 $ac_includes_default
16138 int
16139 main ()
16140 {
16141 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16142 test_array [0] = 0
16143
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150   (eval $ac_compile) 2>conftest.er1
16151   ac_status=$?
16152   grep -v '^ *+' conftest.er1 >conftest.err
16153   rm -f conftest.er1
16154   cat conftest.err >&5
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); } &&
16157          { ac_try='test -z "$ac_c_werror_flag"
16158                          || test ! -s conftest.err'
16159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160   (eval $ac_try) 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; } &&
16164          { ac_try='test -s conftest.$ac_objext'
16165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166   (eval $ac_try) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); }; }; then
16170   ac_lo=0 ac_mid=0
16171   while :; do
16172     cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178 $ac_includes_default
16179 int
16180 main ()
16181 {
16182 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16183 test_array [0] = 0
16184
16185   ;
16186   return 0;
16187 }
16188 _ACEOF
16189 rm -f conftest.$ac_objext
16190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16191   (eval $ac_compile) 2>conftest.er1
16192   ac_status=$?
16193   grep -v '^ *+' conftest.er1 >conftest.err
16194   rm -f conftest.er1
16195   cat conftest.err >&5
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); } &&
16198          { ac_try='test -z "$ac_c_werror_flag"
16199                          || test ! -s conftest.err'
16200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201   (eval $ac_try) 2>&5
16202   ac_status=$?
16203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204   (exit $ac_status); }; } &&
16205          { ac_try='test -s conftest.$ac_objext'
16206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207   (eval $ac_try) 2>&5
16208   ac_status=$?
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); }; }; then
16211   ac_hi=$ac_mid; break
16212 else
16213   echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16215
16216 ac_lo=`expr $ac_mid + 1`
16217                     if test $ac_lo -le $ac_mid; then
16218                       ac_lo= ac_hi=
16219                       break
16220                     fi
16221                     ac_mid=`expr 2 '*' $ac_mid + 1`
16222 fi
16223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16224   done
16225 else
16226   echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16228
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h.  */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h.  */
16235 $ac_includes_default
16236 int
16237 main ()
16238 {
16239 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16240 test_array [0] = 0
16241
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 rm -f conftest.$ac_objext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248   (eval $ac_compile) 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag"
16256                          || test ! -s conftest.err'
16257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258   (eval $ac_try) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; } &&
16262          { ac_try='test -s conftest.$ac_objext'
16263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264   (eval $ac_try) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); }; }; then
16268   ac_hi=-1 ac_mid=-1
16269   while :; do
16270     cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276 $ac_includes_default
16277 int
16278 main ()
16279 {
16280 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16281 test_array [0] = 0
16282
16283   ;
16284   return 0;
16285 }
16286 _ACEOF
16287 rm -f conftest.$ac_objext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16289   (eval $ac_compile) 2>conftest.er1
16290   ac_status=$?
16291   grep -v '^ *+' conftest.er1 >conftest.err
16292   rm -f conftest.er1
16293   cat conftest.err >&5
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } &&
16296          { ac_try='test -z "$ac_c_werror_flag"
16297                          || test ! -s conftest.err'
16298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299   (eval $ac_try) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; } &&
16303          { ac_try='test -s conftest.$ac_objext'
16304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305   (eval $ac_try) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   ac_lo=$ac_mid; break
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 ac_hi=`expr '(' $ac_mid ')' - 1`
16315                        if test $ac_mid -le $ac_hi; then
16316                          ac_lo= ac_hi=
16317                          break
16318                        fi
16319                        ac_mid=`expr 2 '*' $ac_mid`
16320 fi
16321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16322   done
16323 else
16324   echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16326
16327 ac_lo= ac_hi=
16328 fi
16329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16330 fi
16331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16332 # Binary search between lo and hi bounds.
16333 while test "x$ac_lo" != "x$ac_hi"; do
16334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16335   cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h.  */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h.  */
16341 $ac_includes_default
16342 int
16343 main ()
16344 {
16345 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16346 test_array [0] = 0
16347
16348   ;
16349   return 0;
16350 }
16351 _ACEOF
16352 rm -f conftest.$ac_objext
16353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16354   (eval $ac_compile) 2>conftest.er1
16355   ac_status=$?
16356   grep -v '^ *+' conftest.er1 >conftest.err
16357   rm -f conftest.er1
16358   cat conftest.err >&5
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } &&
16361          { ac_try='test -z "$ac_c_werror_flag"
16362                          || test ! -s conftest.err'
16363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364   (eval $ac_try) 2>&5
16365   ac_status=$?
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); }; } &&
16368          { ac_try='test -s conftest.$ac_objext'
16369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370   (eval $ac_try) 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); }; }; then
16374   ac_hi=$ac_mid
16375 else
16376   echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16378
16379 ac_lo=`expr '(' $ac_mid ')' + 1`
16380 fi
16381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16382 done
16383 case $ac_lo in
16384 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16385 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16386 See \`config.log' for more details." >&5
16387 echo "$as_me: error: cannot compute sizeof (long long int), 77
16388 See \`config.log' for more details." >&2;}
16389    { (exit 1); exit 1; }; } ;;
16390 esac
16391 else
16392   if test "$cross_compiling" = yes; then
16393   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16394 See \`config.log' for more details." >&5
16395 echo "$as_me: error: cannot run test program while cross compiling
16396 See \`config.log' for more details." >&2;}
16397    { (exit 1); exit 1; }; }
16398 else
16399   cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405 $ac_includes_default
16406 long longval () { return (long) (sizeof (long long int)); }
16407 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16408 #include <stdio.h>
16409 #include <stdlib.h>
16410 int
16411 main ()
16412 {
16413
16414   FILE *f = fopen ("conftest.val", "w");
16415   if (! f)
16416     exit (1);
16417   if (((long) (sizeof (long long int))) < 0)
16418     {
16419       long i = longval ();
16420       if (i != ((long) (sizeof (long long int))))
16421         exit (1);
16422       fprintf (f, "%ld\n", i);
16423     }
16424   else
16425     {
16426       unsigned long i = ulongval ();
16427       if (i != ((long) (sizeof (long long int))))
16428         exit (1);
16429       fprintf (f, "%lu\n", i);
16430     }
16431   exit (ferror (f) || fclose (f) != 0);
16432
16433   ;
16434   return 0;
16435 }
16436 _ACEOF
16437 rm -f conftest$ac_exeext
16438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16439   (eval $ac_link) 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444   (eval $ac_try) 2>&5
16445   ac_status=$?
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); }; }; then
16448   ac_cv_sizeof_long_long_int=`cat conftest.val`
16449 else
16450   echo "$as_me: program exited with status $ac_status" >&5
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454 ( exit $ac_status )
16455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16456 See \`config.log' for more details." >&5
16457 echo "$as_me: error: cannot compute sizeof (long long int), 77
16458 See \`config.log' for more details." >&2;}
16459    { (exit 1); exit 1; }; }
16460 fi
16461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16462 fi
16463 fi
16464 rm -f conftest.val
16465 else
16466   ac_cv_sizeof_long_long_int=0
16467 fi
16468 fi
16469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16470 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16471 cat >>confdefs.h <<_ACEOF
16472 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16473 _ACEOF
16474
16475
16476 echo "$as_me:$LINENO: checking for int *" >&5
16477 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16478 if test "${ac_cv_type_int_p+set}" = set; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h.  */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h.  */
16487 $ac_includes_default
16488 int
16489 main ()
16490 {
16491 if ((int * *) 0)
16492   return 0;
16493 if (sizeof (int *))
16494   return 0;
16495   ;
16496   return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501   (eval $ac_compile) 2>conftest.er1
16502   ac_status=$?
16503   grep -v '^ *+' conftest.er1 >conftest.err
16504   rm -f conftest.er1
16505   cat conftest.err >&5
16506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507   (exit $ac_status); } &&
16508          { ac_try='test -z "$ac_c_werror_flag"
16509                          || test ! -s conftest.err'
16510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511   (eval $ac_try) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; } &&
16515          { ac_try='test -s conftest.$ac_objext'
16516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517   (eval $ac_try) 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); }; }; then
16521   ac_cv_type_int_p=yes
16522 else
16523   echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 ac_cv_type_int_p=no
16527 fi
16528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16531 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16532
16533 echo "$as_me:$LINENO: checking size of int *" >&5
16534 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16535 if test "${ac_cv_sizeof_int_p+set}" = set; then
16536   echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538   if test "$ac_cv_type_int_p" = yes; then
16539   # The cast to unsigned long works around a bug in the HP C Compiler
16540   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16541   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16542   # This bug is HP SR number 8606223364.
16543   if test "$cross_compiling" = yes; then
16544   # Depending upon the size, compute the lo and hi bounds.
16545 cat >conftest.$ac_ext <<_ACEOF
16546 /* confdefs.h.  */
16547 _ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h.  */
16551 $ac_includes_default
16552 int
16553 main ()
16554 {
16555 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16556 test_array [0] = 0
16557
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 rm -f conftest.$ac_objext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564   (eval $ac_compile) 2>conftest.er1
16565   ac_status=$?
16566   grep -v '^ *+' conftest.er1 >conftest.err
16567   rm -f conftest.er1
16568   cat conftest.err >&5
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); } &&
16571          { ac_try='test -z "$ac_c_werror_flag"
16572                          || test ! -s conftest.err'
16573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574   (eval $ac_try) 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; } &&
16578          { ac_try='test -s conftest.$ac_objext'
16579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580   (eval $ac_try) 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); }; }; then
16584   ac_lo=0 ac_mid=0
16585   while :; do
16586     cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592 $ac_includes_default
16593 int
16594 main ()
16595 {
16596 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16597 test_array [0] = 0
16598
16599   ;
16600   return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16605   (eval $ac_compile) 2>conftest.er1
16606   ac_status=$?
16607   grep -v '^ *+' conftest.er1 >conftest.err
16608   rm -f conftest.er1
16609   cat conftest.err >&5
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); } &&
16612          { ac_try='test -z "$ac_c_werror_flag"
16613                          || test ! -s conftest.err'
16614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615   (eval $ac_try) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); }; } &&
16619          { ac_try='test -s conftest.$ac_objext'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; }; then
16625   ac_hi=$ac_mid; break
16626 else
16627   echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_lo=`expr $ac_mid + 1`
16631                     if test $ac_lo -le $ac_mid; then
16632                       ac_lo= ac_hi=
16633                       break
16634                     fi
16635                     ac_mid=`expr 2 '*' $ac_mid + 1`
16636 fi
16637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16638   done
16639 else
16640   echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16642
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h.  */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h.  */
16649 $ac_includes_default
16650 int
16651 main ()
16652 {
16653 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16654 test_array [0] = 0
16655
16656   ;
16657   return 0;
16658 }
16659 _ACEOF
16660 rm -f conftest.$ac_objext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16662   (eval $ac_compile) 2>conftest.er1
16663   ac_status=$?
16664   grep -v '^ *+' conftest.er1 >conftest.err
16665   rm -f conftest.er1
16666   cat conftest.err >&5
16667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); } &&
16669          { ac_try='test -z "$ac_c_werror_flag"
16670                          || test ! -s conftest.err'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; } &&
16676          { ac_try='test -s conftest.$ac_objext'
16677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678   (eval $ac_try) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; }; then
16682   ac_hi=-1 ac_mid=-1
16683   while :; do
16684     cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690 $ac_includes_default
16691 int
16692 main ()
16693 {
16694 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16695 test_array [0] = 0
16696
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext
16702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16703   (eval $ac_compile) 2>conftest.er1
16704   ac_status=$?
16705   grep -v '^ *+' conftest.er1 >conftest.err
16706   rm -f conftest.er1
16707   cat conftest.err >&5
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); } &&
16710          { ac_try='test -z "$ac_c_werror_flag"
16711                          || test ! -s conftest.err'
16712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713   (eval $ac_try) 2>&5
16714   ac_status=$?
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); }; } &&
16717          { ac_try='test -s conftest.$ac_objext'
16718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719   (eval $ac_try) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; }; then
16723   ac_lo=$ac_mid; break
16724 else
16725   echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 ac_hi=`expr '(' $ac_mid ')' - 1`
16729                        if test $ac_mid -le $ac_hi; then
16730                          ac_lo= ac_hi=
16731                          break
16732                        fi
16733                        ac_mid=`expr 2 '*' $ac_mid`
16734 fi
16735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16736   done
16737 else
16738   echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 ac_lo= ac_hi=
16742 fi
16743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16744 fi
16745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16746 # Binary search between lo and hi bounds.
16747 while test "x$ac_lo" != "x$ac_hi"; do
16748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16749   cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 $ac_includes_default
16756 int
16757 main ()
16758 {
16759 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16760 test_array [0] = 0
16761
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16768   (eval $ac_compile) 2>conftest.er1
16769   ac_status=$?
16770   grep -v '^ *+' conftest.er1 >conftest.err
16771   rm -f conftest.er1
16772   cat conftest.err >&5
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); } &&
16775          { ac_try='test -z "$ac_c_werror_flag"
16776                          || test ! -s conftest.err'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; } &&
16782          { ac_try='test -s conftest.$ac_objext'
16783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784   (eval $ac_try) 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; }; then
16788   ac_hi=$ac_mid
16789 else
16790   echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793 ac_lo=`expr '(' $ac_mid ')' + 1`
16794 fi
16795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16796 done
16797 case $ac_lo in
16798 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16800 See \`config.log' for more details." >&5
16801 echo "$as_me: error: cannot compute sizeof (int *), 77
16802 See \`config.log' for more details." >&2;}
16803    { (exit 1); exit 1; }; } ;;
16804 esac
16805 else
16806   if test "$cross_compiling" = yes; then
16807   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16808 See \`config.log' for more details." >&5
16809 echo "$as_me: error: cannot run test program while cross compiling
16810 See \`config.log' for more details." >&2;}
16811    { (exit 1); exit 1; }; }
16812 else
16813   cat >conftest.$ac_ext <<_ACEOF
16814 /* confdefs.h.  */
16815 _ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h.  */
16819 $ac_includes_default
16820 long longval () { return (long) (sizeof (int *)); }
16821 unsigned long ulongval () { return (long) (sizeof (int *)); }
16822 #include <stdio.h>
16823 #include <stdlib.h>
16824 int
16825 main ()
16826 {
16827
16828   FILE *f = fopen ("conftest.val", "w");
16829   if (! f)
16830     exit (1);
16831   if (((long) (sizeof (int *))) < 0)
16832     {
16833       long i = longval ();
16834       if (i != ((long) (sizeof (int *))))
16835         exit (1);
16836       fprintf (f, "%ld\n", i);
16837     }
16838   else
16839     {
16840       unsigned long i = ulongval ();
16841       if (i != ((long) (sizeof (int *))))
16842         exit (1);
16843       fprintf (f, "%lu\n", i);
16844     }
16845   exit (ferror (f) || fclose (f) != 0);
16846
16847   ;
16848   return 0;
16849 }
16850 _ACEOF
16851 rm -f conftest$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853   (eval $ac_link) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858   (eval $ac_try) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; }; then
16862   ac_cv_sizeof_int_p=`cat conftest.val`
16863 else
16864   echo "$as_me: program exited with status $ac_status" >&5
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16867
16868 ( exit $ac_status )
16869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16870 See \`config.log' for more details." >&5
16871 echo "$as_me: error: cannot compute sizeof (int *), 77
16872 See \`config.log' for more details." >&2;}
16873    { (exit 1); exit 1; }; }
16874 fi
16875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16876 fi
16877 fi
16878 rm -f conftest.val
16879 else
16880   ac_cv_sizeof_int_p=0
16881 fi
16882 fi
16883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16884 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16885 cat >>confdefs.h <<_ACEOF
16886 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16887 _ACEOF
16888
16889
16890
16891 # Check for sys/types.h types
16892 echo "$as_me:$LINENO: checking for u_int type" >&5
16893 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16894 if test "${ac_cv_have_u_int+set}" = set; then
16895   echo $ECHO_N "(cached) $ECHO_C" >&6
16896 else
16897
16898     cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904  #include <sys/types.h>
16905 int
16906 main ()
16907 {
16908  u_int a; a = 1;
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16915   (eval $ac_compile) 2>conftest.er1
16916   ac_status=$?
16917   grep -v '^ *+' conftest.er1 >conftest.err
16918   rm -f conftest.er1
16919   cat conftest.err >&5
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); } &&
16922          { ac_try='test -z "$ac_c_werror_flag"
16923                          || test ! -s conftest.err'
16924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925   (eval $ac_try) 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; } &&
16929          { ac_try='test -s conftest.$ac_objext'
16930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931   (eval $ac_try) 2>&5
16932   ac_status=$?
16933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934   (exit $ac_status); }; }; then
16935    ac_cv_have_u_int="yes"
16936 else
16937   echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940  ac_cv_have_u_int="no"
16941
16942 fi
16943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16944
16945 fi
16946 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16947 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16948 if test "x$ac_cv_have_u_int" = "xyes" ; then
16949    cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_U_INT 1
16951 _ACEOF
16952
16953    have_u_int=1
16954 fi
16955
16956 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16957 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16958 if test "${ac_cv_have_intmax_t+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961
16962    cat >conftest.$ac_ext <<_ACEOF
16963 /* confdefs.h.  */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h.  */
16968  #include <sys/types.h>
16969 int
16970 main ()
16971 {
16972  intmax_t a; a = 1;
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979   (eval $ac_compile) 2>conftest.er1
16980   ac_status=$?
16981   grep -v '^ *+' conftest.er1 >conftest.err
16982   rm -f conftest.er1
16983   cat conftest.err >&5
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } &&
16986          { ac_try='test -z "$ac_c_werror_flag"
16987                          || test ! -s conftest.err'
16988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989   (eval $ac_try) 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; } &&
16993          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16999    ac_cv_have_intmax_t="yes"
17000 else
17001   echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004
17005          cat >conftest.$ac_ext <<_ACEOF
17006 /* confdefs.h.  */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h.  */
17011  #include <stdint.h>
17012 int
17013 main ()
17014 {
17015  intmax_t a; a = 1;
17016   ;
17017   return 0;
17018 }
17019 _ACEOF
17020 rm -f conftest.$ac_objext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17022   (eval $ac_compile) 2>conftest.er1
17023   ac_status=$?
17024   grep -v '^ *+' conftest.er1 >conftest.err
17025   rm -f conftest.er1
17026   cat conftest.err >&5
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); } &&
17029          { ac_try='test -z "$ac_c_werror_flag"
17030                          || test ! -s conftest.err'
17031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032   (eval $ac_try) 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; } &&
17036          { ac_try='test -s conftest.$ac_objext'
17037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038   (eval $ac_try) 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; }; then
17042    ac_cv_have_intmax_t="yes"
17043 else
17044   echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17046
17047  ac_cv_have_intmax_t="no"
17048
17049 fi
17050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17051
17052
17053 fi
17054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17055
17056
17057 fi
17058 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17059 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17060 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17061    cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_INTMAX_T 1
17063 _ACEOF
17064
17065    have_intmax_t=1
17066 fi
17067
17068
17069 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17070 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17071 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17072   echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17074
17075    cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h.  */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h.  */
17081  #include <sys/types.h>
17082 int
17083 main ()
17084 {
17085  u_intmax_t a; a = 1;
17086   ;
17087   return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17092   (eval $ac_compile) 2>conftest.er1
17093   ac_status=$?
17094   grep -v '^ *+' conftest.er1 >conftest.err
17095   rm -f conftest.er1
17096   cat conftest.err >&5
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); } &&
17099          { ac_try='test -z "$ac_c_werror_flag"
17100                          || test ! -s conftest.err'
17101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102   (eval $ac_try) 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); }; } &&
17106          { ac_try='test -s conftest.$ac_objext'
17107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108   (eval $ac_try) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; }; then
17112    ac_cv_have_u_intmax_t="yes"
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117
17118          cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124  #include <stdint.h>
17125 int
17126 main ()
17127 {
17128  u_intmax_t a; a = 1;
17129   ;
17130   return 0;
17131 }
17132 _ACEOF
17133 rm -f conftest.$ac_objext
17134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17135   (eval $ac_compile) 2>conftest.er1
17136   ac_status=$?
17137   grep -v '^ *+' conftest.er1 >conftest.err
17138   rm -f conftest.er1
17139   cat conftest.err >&5
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); } &&
17142          { ac_try='test -z "$ac_c_werror_flag"
17143                          || test ! -s conftest.err'
17144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145   (eval $ac_try) 2>&5
17146   ac_status=$?
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); }; } &&
17149          { ac_try='test -s conftest.$ac_objext'
17150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151   (eval $ac_try) 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); }; }; then
17155    ac_cv_have_u_intmax_t="yes"
17156 else
17157   echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17159
17160  ac_cv_have_u_intmax_t="no"
17161
17162 fi
17163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17164
17165
17166 fi
17167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17168
17169 fi
17170 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17171 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17172 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17173    cat >>confdefs.h <<\_ACEOF
17174 #define HAVE_U_INTMAX_T 1
17175 _ACEOF
17176
17177    have_u_intmax_t=1
17178 fi
17179
17180
17181 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17182 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17183 if test "${ac_cv_have_intxx_t+set}" = set; then
17184   echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186
17187    cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193  #include <sys/types.h>
17194 int
17195 main ()
17196 {
17197  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17198   ;
17199   return 0;
17200 }
17201 _ACEOF
17202 rm -f conftest.$ac_objext
17203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17204   (eval $ac_compile) 2>conftest.er1
17205   ac_status=$?
17206   grep -v '^ *+' conftest.er1 >conftest.err
17207   rm -f conftest.er1
17208   cat conftest.err >&5
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); } &&
17211          { ac_try='test -z "$ac_c_werror_flag"
17212                          || test ! -s conftest.err'
17213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214   (eval $ac_try) 2>&5
17215   ac_status=$?
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); }; } &&
17218          { ac_try='test -s conftest.$ac_objext'
17219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220   (eval $ac_try) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); }; }; then
17224    ac_cv_have_intxx_t="yes"
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229  ac_cv_have_intxx_t="no"
17230
17231 fi
17232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17233
17234 fi
17235 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17236 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17237 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17238    cat >>confdefs.h <<\_ACEOF
17239 #define HAVE_INTXX_T 1
17240 _ACEOF
17241
17242    have_intxx_t=1
17243 fi
17244
17245 echo "$as_me:$LINENO: checking for int64_t type" >&5
17246 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17247 if test "${ac_cv_have_int64_t+set}" = set; then
17248   echo $ECHO_N "(cached) $ECHO_C" >&6
17249 else
17250
17251    cat >conftest.$ac_ext <<_ACEOF
17252 /* confdefs.h.  */
17253 _ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h.  */
17257  #include <sys/types.h>
17258 int
17259 main ()
17260 {
17261  int64_t a; a = 1;
17262   ;
17263   return 0;
17264 }
17265 _ACEOF
17266 rm -f conftest.$ac_objext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17268   (eval $ac_compile) 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -z "$ac_c_werror_flag"
17276                          || test ! -s conftest.err'
17277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278   (eval $ac_try) 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; } &&
17282          { ac_try='test -s conftest.$ac_objext'
17283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284   (eval $ac_try) 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; }; then
17288    ac_cv_have_int64_t="yes"
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293  ac_cv_have_int64_t="no"
17294
17295 fi
17296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17297
17298 fi
17299 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17300 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17301 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17302    cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_INT64_T 1
17304 _ACEOF
17305
17306    have_int64_t=1
17307 fi
17308
17309 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17310 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17311 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17312   echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314
17315    cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h.  */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h.  */
17321  #include <sys/types.h>
17322 int
17323 main ()
17324 {
17325  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext
17331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17332   (eval $ac_compile) 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } &&
17339          { ac_try='test -z "$ac_c_werror_flag"
17340                          || test ! -s conftest.err'
17341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342   (eval $ac_try) 2>&5
17343   ac_status=$?
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); }; } &&
17346          { ac_try='test -s conftest.$ac_objext'
17347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348   (eval $ac_try) 2>&5
17349   ac_status=$?
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); }; }; then
17352    ac_cv_have_u_intxx_t="yes"
17353 else
17354   echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17356
17357  ac_cv_have_u_intxx_t="no"
17358
17359 fi
17360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17361
17362 fi
17363 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17364 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17365 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17366    cat >>confdefs.h <<\_ACEOF
17367 #define HAVE_U_INTXX_T 1
17368 _ACEOF
17369
17370    have_u_intxx_t=1
17371 fi
17372
17373 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17374 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17375 if test "${ac_cv_have_u_int64_t+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378
17379    cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h.  */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h.  */
17385  #include <sys/types.h>
17386 int
17387 main ()
17388 {
17389  u_int64_t a; a = 1;
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17396   (eval $ac_compile) 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag"
17404                          || test ! -s conftest.err'
17405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406   (eval $ac_try) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; } &&
17410          { ac_try='test -s conftest.$ac_objext'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; }; then
17416    ac_cv_have_u_int64_t="yes"
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421  ac_cv_have_u_int64_t="no"
17422
17423 fi
17424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17425
17426 fi
17427 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17428 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17429 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17430    cat >>confdefs.h <<\_ACEOF
17431 #define HAVE_U_INT64_T 1
17432 _ACEOF
17433
17434    have_u_int64_t=1
17435 fi
17436
17437 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17438            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17439 then
17440    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17441 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17442    cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448  #include <sys/bitypes.h>
17449 int
17450 main ()
17451 {
17452  int8_t a; int16_t b; int32_t c;
17453         u_int8_t e; u_int16_t f; u_int32_t g;
17454         a = b = c = e = f = g = 1;
17455   ;
17456   return 0;
17457 }
17458 _ACEOF
17459 rm -f conftest.$ac_objext
17460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461   (eval $ac_compile) 2>conftest.er1
17462   ac_status=$?
17463   grep -v '^ *+' conftest.er1 >conftest.err
17464   rm -f conftest.er1
17465   cat conftest.err >&5
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } &&
17468          { ac_try='test -z "$ac_c_werror_flag"
17469                          || test ! -s conftest.err'
17470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471   (eval $ac_try) 2>&5
17472   ac_status=$?
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); }; } &&
17475          { ac_try='test -s conftest.$ac_objext'
17476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477   (eval $ac_try) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; }; then
17481    cat >>confdefs.h <<\_ACEOF
17482 #define HAVE_U_INTXX_T 1
17483 _ACEOF
17484
17485         cat >>confdefs.h <<\_ACEOF
17486 #define HAVE_INTXX_T 1
17487 _ACEOF
17488
17489         cat >>confdefs.h <<\_ACEOF
17490 #define HAVE_SYS_BITYPES_H 1
17491 _ACEOF
17492
17493         echo "$as_me:$LINENO: result: yes" >&5
17494 echo "${ECHO_T}yes" >&6
17495 else
17496   echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17498
17499  echo "$as_me:$LINENO: result: no" >&5
17500 echo "${ECHO_T}no" >&6
17501
17502 fi
17503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17504 fi
17505
17506 if test -z "$have_u_intxx_t" ; then
17507    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17508 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17509 if test "${ac_cv_have_uintxx_t+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512
17513       cat >conftest.$ac_ext <<_ACEOF
17514 /* confdefs.h.  */
17515 _ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h.  */
17519  #include <sys/types.h>
17520 int
17521 main ()
17522 {
17523  uint8_t a; uint16_t b;
17524            uint32_t c; a = b = c = 1;
17525   ;
17526   return 0;
17527 }
17528 _ACEOF
17529 rm -f conftest.$ac_objext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17531   (eval $ac_compile) 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } &&
17538          { ac_try='test -z "$ac_c_werror_flag"
17539                          || test ! -s conftest.err'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; } &&
17545          { ac_try='test -s conftest.$ac_objext'
17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547   (eval $ac_try) 2>&5
17548   ac_status=$?
17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550   (exit $ac_status); }; }; then
17551    ac_cv_have_uintxx_t="yes"
17552 else
17553   echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556  ac_cv_have_uintxx_t="no"
17557
17558 fi
17559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17560
17561 fi
17562 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17563 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17564    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17565       cat >>confdefs.h <<\_ACEOF
17566 #define HAVE_UINTXX_T 1
17567 _ACEOF
17568
17569    fi
17570 fi
17571
17572 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17573           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17574 then
17575    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17576 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17577    cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583  #include <sys/bitypes.h>
17584 int
17585 main ()
17586 {
17587  int64_t a; u_int64_t b;
17588        a = b = 1;
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17595   (eval $ac_compile) 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -z "$ac_c_werror_flag"
17603                          || test ! -s conftest.err'
17604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605   (eval $ac_try) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; } &&
17609          { ac_try='test -s conftest.$ac_objext'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615    cat >>confdefs.h <<\_ACEOF
17616 #define HAVE_U_INT64_T 1
17617 _ACEOF
17618
17619        cat >>confdefs.h <<\_ACEOF
17620 #define HAVE_INT64_T 1
17621 _ACEOF
17622
17623        echo "$as_me:$LINENO: result: yes" >&5
17624 echo "${ECHO_T}yes" >&6
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629  echo "$as_me:$LINENO: result: no" >&5
17630 echo "${ECHO_T}no" >&6
17631
17632 fi
17633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17634 fi
17635
17636 if (test -z "$have_uintxx_t" && \
17637           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17638 then
17639    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17640 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17641    cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647  #include <sys/bitypes.h>
17648 int
17649 main ()
17650 {
17651  uint8_t a; uint16_t b;
17652           uint32_t c; a = b = c = 1;
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext
17658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17659   (eval $ac_compile) 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } &&
17666          { ac_try='test -z "$ac_c_werror_flag"
17667                          || test ! -s conftest.err'
17668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669   (eval $ac_try) 2>&5
17670   ac_status=$?
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); }; } &&
17673          { ac_try='test -s conftest.$ac_objext'
17674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675   (eval $ac_try) 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); }; }; then
17679    cat >>confdefs.h <<\_ACEOF
17680 #define HAVE_UINTXX_T 1
17681 _ACEOF
17682
17683        echo "$as_me:$LINENO: result: yes" >&5
17684 echo "${ECHO_T}yes" >&6
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689  echo "$as_me:$LINENO: result: no" >&5
17690 echo "${ECHO_T}no" >&6
17691
17692 fi
17693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17694
17695 fi
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713 for ac_func in \
17714         fork \
17715         getcwd \
17716         gethostname \
17717         getpid \
17718         gettimeofday \
17719         setpgid \
17720         setpgrp \
17721         setsid \
17722         signal \
17723         strerror \
17724         strncmp \
17725         strncpy \
17726         vfprintf \
17727
17728 do
17729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17730 echo "$as_me:$LINENO: checking for $ac_func" >&5
17731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17732 if eval "test \"\${$as_ac_var+set}\" = set"; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   cat >conftest.$ac_ext <<_ACEOF
17736 /* confdefs.h.  */
17737 _ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h.  */
17741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17743 #define $ac_func innocuous_$ac_func
17744
17745 /* System header to define __stub macros and hopefully few prototypes,
17746     which can conflict with char $ac_func (); below.
17747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748     <limits.h> exists even on freestanding compilers.  */
17749
17750 #ifdef __STDC__
17751 # include <limits.h>
17752 #else
17753 # include <assert.h>
17754 #endif
17755
17756 #undef $ac_func
17757
17758 /* Override any gcc2 internal prototype to avoid an error.  */
17759 #ifdef __cplusplus
17760 extern "C"
17761 {
17762 #endif
17763 /* We use char because int might match the return type of a gcc2
17764    builtin and then its argument prototype would still apply.  */
17765 char $ac_func ();
17766 /* The GNU C library defines this for functions which it implements
17767     to always fail with ENOSYS.  Some functions are actually named
17768     something starting with __ and the normal name is an alias.  */
17769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17770 choke me
17771 #else
17772 char (*f) () = $ac_func;
17773 #endif
17774 #ifdef __cplusplus
17775 }
17776 #endif
17777
17778 int
17779 main ()
17780 {
17781 return f != $ac_func;
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788   (eval $ac_link) 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -z "$ac_c_werror_flag"
17796                          || test ! -s conftest.err'
17797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798   (eval $ac_try) 2>&5
17799   ac_status=$?
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); }; } &&
17802          { ac_try='test -s conftest$ac_exeext'
17803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804   (eval $ac_try) 2>&5
17805   ac_status=$?
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); }; }; then
17808   eval "$as_ac_var=yes"
17809 else
17810   echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17812
17813 eval "$as_ac_var=no"
17814 fi
17815 rm -f conftest.err conftest.$ac_objext \
17816       conftest$ac_exeext conftest.$ac_ext
17817 fi
17818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17820 if test `eval echo '${'$as_ac_var'}'` = yes; then
17821   cat >>confdefs.h <<_ACEOF
17822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17823 _ACEOF
17824
17825 else
17826   echo 'configure: cannot find needed function.'; exit 1
17827
17828 fi
17829 done
17830
17831
17832
17833 for ac_func in fchdir
17834 do
17835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17836 echo "$as_me:$LINENO: checking for $ac_func" >&5
17837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17838 if eval "test \"\${$as_ac_var+set}\" = set"; then
17839   echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841   cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h.  */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h.  */
17847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17849 #define $ac_func innocuous_$ac_func
17850
17851 /* System header to define __stub macros and hopefully few prototypes,
17852     which can conflict with char $ac_func (); below.
17853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17854     <limits.h> exists even on freestanding compilers.  */
17855
17856 #ifdef __STDC__
17857 # include <limits.h>
17858 #else
17859 # include <assert.h>
17860 #endif
17861
17862 #undef $ac_func
17863
17864 /* Override any gcc2 internal prototype to avoid an error.  */
17865 #ifdef __cplusplus
17866 extern "C"
17867 {
17868 #endif
17869 /* We use char because int might match the return type of a gcc2
17870    builtin and then its argument prototype would still apply.  */
17871 char $ac_func ();
17872 /* The GNU C library defines this for functions which it implements
17873     to always fail with ENOSYS.  Some functions are actually named
17874     something starting with __ and the normal name is an alias.  */
17875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17876 choke me
17877 #else
17878 char (*f) () = $ac_func;
17879 #endif
17880 #ifdef __cplusplus
17881 }
17882 #endif
17883
17884 int
17885 main ()
17886 {
17887 return f != $ac_func;
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17894   (eval $ac_link) 2>conftest.er1
17895   ac_status=$?
17896   grep -v '^ *+' conftest.er1 >conftest.err
17897   rm -f conftest.er1
17898   cat conftest.err >&5
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); } &&
17901          { ac_try='test -z "$ac_c_werror_flag"
17902                          || test ! -s conftest.err'
17903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904   (eval $ac_try) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; } &&
17908          { ac_try='test -s conftest$ac_exeext'
17909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910   (eval $ac_try) 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; }; then
17914   eval "$as_ac_var=yes"
17915 else
17916   echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919 eval "$as_ac_var=no"
17920 fi
17921 rm -f conftest.err conftest.$ac_objext \
17922       conftest$ac_exeext conftest.$ac_ext
17923 fi
17924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17926 if test `eval echo '${'$as_ac_var'}'` = yes; then
17927   cat >>confdefs.h <<_ACEOF
17928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929 _ACEOF
17930  cat >>confdefs.h <<\_ACEOF
17931 #define HAVE_FCHDIR 1
17932 _ACEOF
17933
17934 fi
17935 done
17936
17937
17938 for ac_func in strtoll
17939 do
17940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941 echo "$as_me:$LINENO: checking for $ac_func" >&5
17942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17943 if eval "test \"\${$as_ac_var+set}\" = set"; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h.  */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h.  */
17952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17954 #define $ac_func innocuous_$ac_func
17955
17956 /* System header to define __stub macros and hopefully few prototypes,
17957     which can conflict with char $ac_func (); below.
17958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959     <limits.h> exists even on freestanding compilers.  */
17960
17961 #ifdef __STDC__
17962 # include <limits.h>
17963 #else
17964 # include <assert.h>
17965 #endif
17966
17967 #undef $ac_func
17968
17969 /* Override any gcc2 internal prototype to avoid an error.  */
17970 #ifdef __cplusplus
17971 extern "C"
17972 {
17973 #endif
17974 /* We use char because int might match the return type of a gcc2
17975    builtin and then its argument prototype would still apply.  */
17976 char $ac_func ();
17977 /* The GNU C library defines this for functions which it implements
17978     to always fail with ENOSYS.  Some functions are actually named
17979     something starting with __ and the normal name is an alias.  */
17980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17981 choke me
17982 #else
17983 char (*f) () = $ac_func;
17984 #endif
17985 #ifdef __cplusplus
17986 }
17987 #endif
17988
17989 int
17990 main ()
17991 {
17992 return f != $ac_func;
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17999   (eval $ac_link) 2>conftest.er1
18000   ac_status=$?
18001   grep -v '^ *+' conftest.er1 >conftest.err
18002   rm -f conftest.er1
18003   cat conftest.err >&5
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } &&
18006          { ac_try='test -z "$ac_c_werror_flag"
18007                          || test ! -s conftest.err'
18008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009   (eval $ac_try) 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; } &&
18013          { ac_try='test -s conftest$ac_exeext'
18014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015   (eval $ac_try) 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); }; }; then
18019   eval "$as_ac_var=yes"
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 eval "$as_ac_var=no"
18025 fi
18026 rm -f conftest.err conftest.$ac_objext \
18027       conftest$ac_exeext conftest.$ac_ext
18028 fi
18029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032   cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18034 _ACEOF
18035  cat >>confdefs.h <<\_ACEOF
18036 #define HAVE_STRTOLL 1
18037 _ACEOF
18038
18039 fi
18040 done
18041
18042
18043
18044 for ac_func in chflags
18045 do
18046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18047 echo "$as_me:$LINENO: checking for $ac_func" >&5
18048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18049 if eval "test \"\${$as_ac_var+set}\" = set"; then
18050   echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052   cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h.  */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h.  */
18058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18060 #define $ac_func innocuous_$ac_func
18061
18062 /* System header to define __stub macros and hopefully few prototypes,
18063     which can conflict with char $ac_func (); below.
18064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18065     <limits.h> exists even on freestanding compilers.  */
18066
18067 #ifdef __STDC__
18068 # include <limits.h>
18069 #else
18070 # include <assert.h>
18071 #endif
18072
18073 #undef $ac_func
18074
18075 /* Override any gcc2 internal prototype to avoid an error.  */
18076 #ifdef __cplusplus
18077 extern "C"
18078 {
18079 #endif
18080 /* We use char because int might match the return type of a gcc2
18081    builtin and then its argument prototype would still apply.  */
18082 char $ac_func ();
18083 /* The GNU C library defines this for functions which it implements
18084     to always fail with ENOSYS.  Some functions are actually named
18085     something starting with __ and the normal name is an alias.  */
18086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18087 choke me
18088 #else
18089 char (*f) () = $ac_func;
18090 #endif
18091 #ifdef __cplusplus
18092 }
18093 #endif
18094
18095 int
18096 main ()
18097 {
18098 return f != $ac_func;
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext conftest$ac_exeext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18105   (eval $ac_link) 2>conftest.er1
18106   ac_status=$?
18107   grep -v '^ *+' conftest.er1 >conftest.err
18108   rm -f conftest.er1
18109   cat conftest.err >&5
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); } &&
18112          { ac_try='test -z "$ac_c_werror_flag"
18113                          || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest$ac_exeext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   eval "$as_ac_var=yes"
18126 else
18127   echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 eval "$as_ac_var=no"
18131 fi
18132 rm -f conftest.err conftest.$ac_objext \
18133       conftest$ac_exeext conftest.$ac_ext
18134 fi
18135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18137 if test `eval echo '${'$as_ac_var'}'` = yes; then
18138   cat >>confdefs.h <<_ACEOF
18139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18140 _ACEOF
18141
18142 fi
18143 done
18144
18145
18146
18147
18148
18149
18150 for ac_func in snprintf vsnprintf gethostid fseeko
18151 do
18152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18153 echo "$as_me:$LINENO: checking for $ac_func" >&5
18154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18155 if eval "test \"\${$as_ac_var+set}\" = set"; then
18156   echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158   cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18166 #define $ac_func innocuous_$ac_func
18167
18168 /* System header to define __stub macros and hopefully few prototypes,
18169     which can conflict with char $ac_func (); below.
18170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18171     <limits.h> exists even on freestanding compilers.  */
18172
18173 #ifdef __STDC__
18174 # include <limits.h>
18175 #else
18176 # include <assert.h>
18177 #endif
18178
18179 #undef $ac_func
18180
18181 /* Override any gcc2 internal prototype to avoid an error.  */
18182 #ifdef __cplusplus
18183 extern "C"
18184 {
18185 #endif
18186 /* We use char because int might match the return type of a gcc2
18187    builtin and then its argument prototype would still apply.  */
18188 char $ac_func ();
18189 /* The GNU C library defines this for functions which it implements
18190     to always fail with ENOSYS.  Some functions are actually named
18191     something starting with __ and the normal name is an alias.  */
18192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18193 choke me
18194 #else
18195 char (*f) () = $ac_func;
18196 #endif
18197 #ifdef __cplusplus
18198 }
18199 #endif
18200
18201 int
18202 main ()
18203 {
18204 return f != $ac_func;
18205   ;
18206   return 0;
18207 }
18208 _ACEOF
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18211   (eval $ac_link) 2>conftest.er1
18212   ac_status=$?
18213   grep -v '^ *+' conftest.er1 >conftest.err
18214   rm -f conftest.er1
18215   cat conftest.err >&5
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); } &&
18218          { ac_try='test -z "$ac_c_werror_flag"
18219                          || test ! -s conftest.err'
18220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221   (eval $ac_try) 2>&5
18222   ac_status=$?
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); }; } &&
18225          { ac_try='test -s conftest$ac_exeext'
18226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227   (eval $ac_try) 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; }; then
18231   eval "$as_ac_var=yes"
18232 else
18233   echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 eval "$as_ac_var=no"
18237 fi
18238 rm -f conftest.err conftest.$ac_objext \
18239       conftest$ac_exeext conftest.$ac_ext
18240 fi
18241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18243 if test `eval echo '${'$as_ac_var'}'` = yes; then
18244   cat >>confdefs.h <<_ACEOF
18245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18246 _ACEOF
18247
18248 fi
18249 done
18250
18251
18252
18253
18254
18255
18256 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18257 do
18258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18259 echo "$as_me:$LINENO: checking for $ac_func" >&5
18260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18261 if eval "test \"\${$as_ac_var+set}\" = set"; then
18262   echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264   cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h.  */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h.  */
18270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18272 #define $ac_func innocuous_$ac_func
18273
18274 /* System header to define __stub macros and hopefully few prototypes,
18275     which can conflict with char $ac_func (); below.
18276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277     <limits.h> exists even on freestanding compilers.  */
18278
18279 #ifdef __STDC__
18280 # include <limits.h>
18281 #else
18282 # include <assert.h>
18283 #endif
18284
18285 #undef $ac_func
18286
18287 /* Override any gcc2 internal prototype to avoid an error.  */
18288 #ifdef __cplusplus
18289 extern "C"
18290 {
18291 #endif
18292 /* We use char because int might match the return type of a gcc2
18293    builtin and then its argument prototype would still apply.  */
18294 char $ac_func ();
18295 /* The GNU C library defines this for functions which it implements
18296     to always fail with ENOSYS.  Some functions are actually named
18297     something starting with __ and the normal name is an alias.  */
18298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18299 choke me
18300 #else
18301 char (*f) () = $ac_func;
18302 #endif
18303 #ifdef __cplusplus
18304 }
18305 #endif
18306
18307 int
18308 main ()
18309 {
18310 return f != $ac_func;
18311   ;
18312   return 0;
18313 }
18314 _ACEOF
18315 rm -f conftest.$ac_objext conftest$ac_exeext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18317   (eval $ac_link) 2>conftest.er1
18318   ac_status=$?
18319   grep -v '^ *+' conftest.er1 >conftest.err
18320   rm -f conftest.er1
18321   cat conftest.err >&5
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } &&
18324          { ac_try='test -z "$ac_c_werror_flag"
18325                          || test ! -s conftest.err'
18326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18327   (eval $ac_try) 2>&5
18328   ac_status=$?
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); }; } &&
18331          { ac_try='test -s conftest$ac_exeext'
18332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333   (eval $ac_try) 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; }; then
18337   eval "$as_ac_var=yes"
18338 else
18339   echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18341
18342 eval "$as_ac_var=no"
18343 fi
18344 rm -f conftest.err conftest.$ac_objext \
18345       conftest$ac_exeext conftest.$ac_ext
18346 fi
18347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18349 if test `eval echo '${'$as_ac_var'}'` = yes; then
18350   cat >>confdefs.h <<_ACEOF
18351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18352 _ACEOF
18353
18354 fi
18355 done
18356
18357
18358 # If resolver functions are not in libc check for -lnsl or -lresolv.
18359 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18360 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18361 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18362   echo $ECHO_N "(cached) $ECHO_C" >&6
18363 else
18364   cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18372 #define gethostbyname_r innocuous_gethostbyname_r
18373
18374 /* System header to define __stub macros and hopefully few prototypes,
18375     which can conflict with char gethostbyname_r (); below.
18376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18377     <limits.h> exists even on freestanding compilers.  */
18378
18379 #ifdef __STDC__
18380 # include <limits.h>
18381 #else
18382 # include <assert.h>
18383 #endif
18384
18385 #undef gethostbyname_r
18386
18387 /* Override any gcc2 internal prototype to avoid an error.  */
18388 #ifdef __cplusplus
18389 extern "C"
18390 {
18391 #endif
18392 /* We use char because int might match the return type of a gcc2
18393    builtin and then its argument prototype would still apply.  */
18394 char gethostbyname_r ();
18395 /* The GNU C library defines this for functions which it implements
18396     to always fail with ENOSYS.  Some functions are actually named
18397     something starting with __ and the normal name is an alias.  */
18398 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18399 choke me
18400 #else
18401 char (*f) () = gethostbyname_r;
18402 #endif
18403 #ifdef __cplusplus
18404 }
18405 #endif
18406
18407 int
18408 main ()
18409 {
18410 return f != gethostbyname_r;
18411   ;
18412   return 0;
18413 }
18414 _ACEOF
18415 rm -f conftest.$ac_objext conftest$ac_exeext
18416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417   (eval $ac_link) 2>conftest.er1
18418   ac_status=$?
18419   grep -v '^ *+' conftest.er1 >conftest.err
18420   rm -f conftest.er1
18421   cat conftest.err >&5
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); } &&
18424          { ac_try='test -z "$ac_c_werror_flag"
18425                          || test ! -s conftest.err'
18426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427   (eval $ac_try) 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); }; } &&
18431          { ac_try='test -s conftest$ac_exeext'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; }; then
18437   ac_cv_func_gethostbyname_r=yes
18438 else
18439   echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18441
18442 ac_cv_func_gethostbyname_r=no
18443 fi
18444 rm -f conftest.err conftest.$ac_objext \
18445       conftest$ac_exeext conftest.$ac_ext
18446 fi
18447 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18448 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18449 if test $ac_cv_func_gethostbyname_r = yes; then
18450   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18451 echo "${ECHO_T}using libc's resolver" >&6
18452 else
18453
18454 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18455 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18456 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18457   echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459   ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-lnsl  $LIBS"
18461 cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467
18468 /* Override any gcc2 internal prototype to avoid an error.  */
18469 #ifdef __cplusplus
18470 extern "C"
18471 #endif
18472 /* We use char because int might match the return type of a gcc2
18473    builtin and then its argument prototype would still apply.  */
18474 char gethostbyname_r ();
18475 int
18476 main ()
18477 {
18478 gethostbyname_r ();
18479   ;
18480   return 0;
18481 }
18482 _ACEOF
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18485   (eval $ac_link) 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } &&
18492          { ac_try='test -z "$ac_c_werror_flag"
18493                          || test ! -s conftest.err'
18494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495   (eval $ac_try) 2>&5
18496   ac_status=$?
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); }; } &&
18499          { ac_try='test -s conftest$ac_exeext'
18500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501   (eval $ac_try) 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; }; then
18505   ac_cv_lib_nsl_gethostbyname_r=yes
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510 ac_cv_lib_nsl_gethostbyname_r=no
18511 fi
18512 rm -f conftest.err conftest.$ac_objext \
18513       conftest$ac_exeext conftest.$ac_ext
18514 LIBS=$ac_check_lib_save_LIBS
18515 fi
18516 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18517 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18518 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18519   cat >>confdefs.h <<_ACEOF
18520 #define HAVE_LIBNSL 1
18521 _ACEOF
18522
18523   LIBS="-lnsl $LIBS"
18524
18525 fi
18526
18527
18528 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18529 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18530 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18531   echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533   ac_check_lib_save_LIBS=$LIBS
18534 LIBS="-lresolv  $LIBS"
18535 cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h.  */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h.  */
18541
18542 /* Override any gcc2 internal prototype to avoid an error.  */
18543 #ifdef __cplusplus
18544 extern "C"
18545 #endif
18546 /* We use char because int might match the return type of a gcc2
18547    builtin and then its argument prototype would still apply.  */
18548 char gethostbyname_r ();
18549 int
18550 main ()
18551 {
18552 gethostbyname_r ();
18553   ;
18554   return 0;
18555 }
18556 _ACEOF
18557 rm -f conftest.$ac_objext conftest$ac_exeext
18558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18559   (eval $ac_link) 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } &&
18566          { ac_try='test -z "$ac_c_werror_flag"
18567                          || test ! -s conftest.err'
18568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569   (eval $ac_try) 2>&5
18570   ac_status=$?
18571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572   (exit $ac_status); }; } &&
18573          { ac_try='test -s conftest$ac_exeext'
18574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575   (eval $ac_try) 2>&5
18576   ac_status=$?
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); }; }; then
18579   ac_cv_lib_resolv_gethostbyname_r=yes
18580 else
18581   echo "$as_me: failed program was:" >&5
18582 sed 's/^/| /' conftest.$ac_ext >&5
18583
18584 ac_cv_lib_resolv_gethostbyname_r=no
18585 fi
18586 rm -f conftest.err conftest.$ac_objext \
18587       conftest$ac_exeext conftest.$ac_ext
18588 LIBS=$ac_check_lib_save_LIBS
18589 fi
18590 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18591 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18592 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18593   cat >>confdefs.h <<_ACEOF
18594 #define HAVE_LIBRESOLV 1
18595 _ACEOF
18596
18597   LIBS="-lresolv $LIBS"
18598
18599 fi
18600
18601 fi
18602
18603
18604
18605
18606
18607 for ac_func in inet_pton
18608 do
18609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18610 echo "$as_me:$LINENO: checking for $ac_func" >&5
18611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18612 if eval "test \"\${$as_ac_var+set}\" = set"; then
18613   echo $ECHO_N "(cached) $ECHO_C" >&6
18614 else
18615   cat >conftest.$ac_ext <<_ACEOF
18616 /* confdefs.h.  */
18617 _ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h.  */
18621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18623 #define $ac_func innocuous_$ac_func
18624
18625 /* System header to define __stub macros and hopefully few prototypes,
18626     which can conflict with char $ac_func (); below.
18627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18628     <limits.h> exists even on freestanding compilers.  */
18629
18630 #ifdef __STDC__
18631 # include <limits.h>
18632 #else
18633 # include <assert.h>
18634 #endif
18635
18636 #undef $ac_func
18637
18638 /* Override any gcc2 internal prototype to avoid an error.  */
18639 #ifdef __cplusplus
18640 extern "C"
18641 {
18642 #endif
18643 /* We use char because int might match the return type of a gcc2
18644    builtin and then its argument prototype would still apply.  */
18645 char $ac_func ();
18646 /* The GNU C library defines this for functions which it implements
18647     to always fail with ENOSYS.  Some functions are actually named
18648     something starting with __ and the normal name is an alias.  */
18649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18650 choke me
18651 #else
18652 char (*f) () = $ac_func;
18653 #endif
18654 #ifdef __cplusplus
18655 }
18656 #endif
18657
18658 int
18659 main ()
18660 {
18661 return f != $ac_func;
18662   ;
18663   return 0;
18664 }
18665 _ACEOF
18666 rm -f conftest.$ac_objext conftest$ac_exeext
18667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18668   (eval $ac_link) 2>conftest.er1
18669   ac_status=$?
18670   grep -v '^ *+' conftest.er1 >conftest.err
18671   rm -f conftest.er1
18672   cat conftest.err >&5
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); } &&
18675          { ac_try='test -z "$ac_c_werror_flag"
18676                          || test ! -s conftest.err'
18677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678   (eval $ac_try) 2>&5
18679   ac_status=$?
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); }; } &&
18682          { ac_try='test -s conftest$ac_exeext'
18683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684   (eval $ac_try) 2>&5
18685   ac_status=$?
18686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687   (exit $ac_status); }; }; then
18688   eval "$as_ac_var=yes"
18689 else
18690   echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18692
18693 eval "$as_ac_var=no"
18694 fi
18695 rm -f conftest.err conftest.$ac_objext \
18696       conftest$ac_exeext conftest.$ac_ext
18697 fi
18698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18700 if test `eval echo '${'$as_ac_var'}'` = yes; then
18701   cat >>confdefs.h <<_ACEOF
18702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18703 _ACEOF
18704  cat >>confdefs.h <<\_ACEOF
18705 #define HAVE_INET_PTON 1
18706 _ACEOF
18707
18708 fi
18709 done
18710
18711
18712 for ac_func in inet_ntop
18713 do
18714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18715 echo "$as_me:$LINENO: checking for $ac_func" >&5
18716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18717 if eval "test \"\${$as_ac_var+set}\" = set"; then
18718   echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720   cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h.  */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h.  */
18726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18728 #define $ac_func innocuous_$ac_func
18729
18730 /* System header to define __stub macros and hopefully few prototypes,
18731     which can conflict with char $ac_func (); below.
18732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733     <limits.h> exists even on freestanding compilers.  */
18734
18735 #ifdef __STDC__
18736 # include <limits.h>
18737 #else
18738 # include <assert.h>
18739 #endif
18740
18741 #undef $ac_func
18742
18743 /* Override any gcc2 internal prototype to avoid an error.  */
18744 #ifdef __cplusplus
18745 extern "C"
18746 {
18747 #endif
18748 /* We use char because int might match the return type of a gcc2
18749    builtin and then its argument prototype would still apply.  */
18750 char $ac_func ();
18751 /* The GNU C library defines this for functions which it implements
18752     to always fail with ENOSYS.  Some functions are actually named
18753     something starting with __ and the normal name is an alias.  */
18754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18755 choke me
18756 #else
18757 char (*f) () = $ac_func;
18758 #endif
18759 #ifdef __cplusplus
18760 }
18761 #endif
18762
18763 int
18764 main ()
18765 {
18766 return f != $ac_func;
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773   (eval $ac_link) 2>conftest.er1
18774   ac_status=$?
18775   grep -v '^ *+' conftest.er1 >conftest.err
18776   rm -f conftest.er1
18777   cat conftest.err >&5
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } &&
18780          { ac_try='test -z "$ac_c_werror_flag"
18781                          || test ! -s conftest.err'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; } &&
18787          { ac_try='test -s conftest$ac_exeext'
18788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789   (eval $ac_try) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }; }; then
18793   eval "$as_ac_var=yes"
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798 eval "$as_ac_var=no"
18799 fi
18800 rm -f conftest.err conftest.$ac_objext \
18801       conftest$ac_exeext conftest.$ac_ext
18802 fi
18803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18805 if test `eval echo '${'$as_ac_var'}'` = yes; then
18806   cat >>confdefs.h <<_ACEOF
18807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18808 _ACEOF
18809  cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_INET_NTOP 1
18811 _ACEOF
18812
18813 fi
18814 done
18815
18816
18817 for ac_func in gethostbyname2
18818 do
18819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18820 echo "$as_me:$LINENO: checking for $ac_func" >&5
18821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18822 if eval "test \"\${$as_ac_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18833 #define $ac_func innocuous_$ac_func
18834
18835 /* System header to define __stub macros and hopefully few prototypes,
18836     which can conflict with char $ac_func (); 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 $ac_func
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 $ac_func ();
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_$ac_func) || defined (__stub___$ac_func)
18860 choke me
18861 #else
18862 char (*f) () = $ac_func;
18863 #endif
18864 #ifdef __cplusplus
18865 }
18866 #endif
18867
18868 int
18869 main ()
18870 {
18871 return f != $ac_func;
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   eval "$as_ac_var=yes"
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 eval "$as_ac_var=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: `eval echo '${'$as_ac_var'}'`" >&5
18909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18910 if test `eval echo '${'$as_ac_var'}'` = yes; then
18911   cat >>confdefs.h <<_ACEOF
18912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18913 _ACEOF
18914  cat >>confdefs.h <<\_ACEOF
18915 #define HAVE_GETHOSTBYNAME2 1
18916 _ACEOF
18917
18918 fi
18919 done
18920
18921
18922 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18923 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18924 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18925   echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927   cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h.  */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h.  */
18933 #include <sys/socket.h>
18934 int
18935 main ()
18936 {
18937 struct sockaddr s; s.sa_len;
18938   ;
18939   return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944   (eval $ac_compile) 2>conftest.er1
18945   ac_status=$?
18946   grep -v '^ *+' conftest.er1 >conftest.err
18947   rm -f conftest.er1
18948   cat conftest.err >&5
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); } &&
18951          { ac_try='test -z "$ac_c_werror_flag"
18952                          || test ! -s conftest.err'
18953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954   (eval $ac_try) 2>&5
18955   ac_status=$?
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); }; } &&
18958          { ac_try='test -s conftest.$ac_objext'
18959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960   (eval $ac_try) 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); }; }; then
18964   ac_cv_struct_sockaddr_sa_len=yes
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 ac_cv_struct_sockaddr_sa_len=no
18970 fi
18971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18972 fi
18973 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18974 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18975
18976  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18977
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_SA_LEN 1
18980 _ACEOF
18981
18982  fi
18983
18984
18985 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18986 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18987 if test "${ac_cv_ipv6_support+set}" = set; then
18988   echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990   cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h.  */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h.  */
18996  #include <sys/types.h>
18997 #include <sys/socket.h>
18998 #include <netinet/in.h>
18999 int
19000 main ()
19001 {
19002 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19003  0;
19004   ;
19005   return 0;
19006 }
19007 _ACEOF
19008 rm -f conftest.$ac_objext conftest$ac_exeext
19009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19010   (eval $ac_link) 2>conftest.er1
19011   ac_status=$?
19012   grep -v '^ *+' conftest.er1 >conftest.err
19013   rm -f conftest.er1
19014   cat conftest.err >&5
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); } &&
19017          { ac_try='test -z "$ac_c_werror_flag"
19018                          || test ! -s conftest.err'
19019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020   (eval $ac_try) 2>&5
19021   ac_status=$?
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; } &&
19024          { ac_try='test -s conftest$ac_exeext'
19025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026   (eval $ac_try) 2>&5
19027   ac_status=$?
19028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029   (exit $ac_status); }; }; then
19030   ac_cv_ipv6_support=yes
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035 ac_cv_ipv6_support=no
19036 fi
19037 rm -f conftest.err conftest.$ac_objext \
19038       conftest$ac_exeext conftest.$ac_ext
19039 fi
19040 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19041 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19042
19043 if test "$ac_cv_ipv6_support" = yes; then
19044
19045 cat >>confdefs.h <<\_ACEOF
19046 #define HAVE_IPV6 1
19047 _ACEOF
19048
19049 fi
19050
19051
19052
19053
19054 for ac_func in strftime
19055 do
19056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19057 echo "$as_me:$LINENO: checking for $ac_func" >&5
19058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19059 if eval "test \"\${$as_ac_var+set}\" = set"; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h.  */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h.  */
19068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19070 #define $ac_func innocuous_$ac_func
19071
19072 /* System header to define __stub macros and hopefully few prototypes,
19073     which can conflict with char $ac_func (); below.
19074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19075     <limits.h> exists even on freestanding compilers.  */
19076
19077 #ifdef __STDC__
19078 # include <limits.h>
19079 #else
19080 # include <assert.h>
19081 #endif
19082
19083 #undef $ac_func
19084
19085 /* Override any gcc2 internal prototype to avoid an error.  */
19086 #ifdef __cplusplus
19087 extern "C"
19088 {
19089 #endif
19090 /* We use char because int might match the return type of a gcc2
19091    builtin and then its argument prototype would still apply.  */
19092 char $ac_func ();
19093 /* The GNU C library defines this for functions which it implements
19094     to always fail with ENOSYS.  Some functions are actually named
19095     something starting with __ and the normal name is an alias.  */
19096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19097 choke me
19098 #else
19099 char (*f) () = $ac_func;
19100 #endif
19101 #ifdef __cplusplus
19102 }
19103 #endif
19104
19105 int
19106 main ()
19107 {
19108 return f != $ac_func;
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115   (eval $ac_link) 2>conftest.er1
19116   ac_status=$?
19117   grep -v '^ *+' conftest.er1 >conftest.err
19118   rm -f conftest.er1
19119   cat conftest.err >&5
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } &&
19122          { ac_try='test -z "$ac_c_werror_flag"
19123                          || test ! -s conftest.err'
19124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125   (eval $ac_try) 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; } &&
19129          { ac_try='test -s conftest$ac_exeext'
19130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131   (eval $ac_try) 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; }; then
19135   eval "$as_ac_var=yes"
19136 else
19137   echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140 eval "$as_ac_var=no"
19141 fi
19142 rm -f conftest.err conftest.$ac_objext \
19143       conftest$ac_exeext conftest.$ac_ext
19144 fi
19145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19147 if test `eval echo '${'$as_ac_var'}'` = yes; then
19148   cat >>confdefs.h <<_ACEOF
19149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19150 _ACEOF
19151
19152 else
19153   # strftime is in -lintl on SCO UNIX.
19154 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19155 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19156 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   ac_check_lib_save_LIBS=$LIBS
19160 LIBS="-lintl  $LIBS"
19161 cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167
19168 /* Override any gcc2 internal prototype to avoid an error.  */
19169 #ifdef __cplusplus
19170 extern "C"
19171 #endif
19172 /* We use char because int might match the return type of a gcc2
19173    builtin and then its argument prototype would still apply.  */
19174 char strftime ();
19175 int
19176 main ()
19177 {
19178 strftime ();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19185   (eval $ac_link) 2>conftest.er1
19186   ac_status=$?
19187   grep -v '^ *+' conftest.er1 >conftest.err
19188   rm -f conftest.er1
19189   cat conftest.err >&5
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); } &&
19192          { ac_try='test -z "$ac_c_werror_flag"
19193                          || test ! -s conftest.err'
19194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195   (eval $ac_try) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; } &&
19199          { ac_try='test -s conftest$ac_exeext'
19200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201   (eval $ac_try) 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; }; then
19205   ac_cv_lib_intl_strftime=yes
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210 ac_cv_lib_intl_strftime=no
19211 fi
19212 rm -f conftest.err conftest.$ac_objext \
19213       conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19215 fi
19216 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19217 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19218 if test $ac_cv_lib_intl_strftime = yes; then
19219   cat >>confdefs.h <<\_ACEOF
19220 #define HAVE_STRFTIME 1
19221 _ACEOF
19222
19223 LIBS="-lintl $LIBS"
19224 fi
19225
19226 fi
19227 done
19228
19229
19230 for ac_func in vprintf
19231 do
19232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19233 echo "$as_me:$LINENO: checking for $ac_func" >&5
19234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19235 if eval "test \"\${$as_ac_var+set}\" = set"; then
19236   echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238   cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h.  */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h.  */
19244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19246 #define $ac_func innocuous_$ac_func
19247
19248 /* System header to define __stub macros and hopefully few prototypes,
19249     which can conflict with char $ac_func (); below.
19250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19251     <limits.h> exists even on freestanding compilers.  */
19252
19253 #ifdef __STDC__
19254 # include <limits.h>
19255 #else
19256 # include <assert.h>
19257 #endif
19258
19259 #undef $ac_func
19260
19261 /* Override any gcc2 internal prototype to avoid an error.  */
19262 #ifdef __cplusplus
19263 extern "C"
19264 {
19265 #endif
19266 /* We use char because int might match the return type of a gcc2
19267    builtin and then its argument prototype would still apply.  */
19268 char $ac_func ();
19269 /* The GNU C library defines this for functions which it implements
19270     to always fail with ENOSYS.  Some functions are actually named
19271     something starting with __ and the normal name is an alias.  */
19272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19273 choke me
19274 #else
19275 char (*f) () = $ac_func;
19276 #endif
19277 #ifdef __cplusplus
19278 }
19279 #endif
19280
19281 int
19282 main ()
19283 {
19284 return f != $ac_func;
19285   ;
19286   return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19291   (eval $ac_link) 2>conftest.er1
19292   ac_status=$?
19293   grep -v '^ *+' conftest.er1 >conftest.err
19294   rm -f conftest.er1
19295   cat conftest.err >&5
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); } &&
19298          { ac_try='test -z "$ac_c_werror_flag"
19299                          || test ! -s conftest.err'
19300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301   (eval $ac_try) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; } &&
19305          { ac_try='test -s conftest$ac_exeext'
19306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307   (eval $ac_try) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311   eval "$as_ac_var=yes"
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 eval "$as_ac_var=no"
19317 fi
19318 rm -f conftest.err conftest.$ac_objext \
19319       conftest$ac_exeext conftest.$ac_ext
19320 fi
19321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19323 if test `eval echo '${'$as_ac_var'}'` = yes; then
19324   cat >>confdefs.h <<_ACEOF
19325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19326 _ACEOF
19327
19328 echo "$as_me:$LINENO: checking for _doprnt" >&5
19329 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19330 if test "${ac_cv_func__doprnt+set}" = set; then
19331   echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333   cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h.  */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h.  */
19339 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19341 #define _doprnt innocuous__doprnt
19342
19343 /* System header to define __stub macros and hopefully few prototypes,
19344     which can conflict with char _doprnt (); below.
19345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19346     <limits.h> exists even on freestanding compilers.  */
19347
19348 #ifdef __STDC__
19349 # include <limits.h>
19350 #else
19351 # include <assert.h>
19352 #endif
19353
19354 #undef _doprnt
19355
19356 /* Override any gcc2 internal prototype to avoid an error.  */
19357 #ifdef __cplusplus
19358 extern "C"
19359 {
19360 #endif
19361 /* We use char because int might match the return type of a gcc2
19362    builtin and then its argument prototype would still apply.  */
19363 char _doprnt ();
19364 /* The GNU C library defines this for functions which it implements
19365     to always fail with ENOSYS.  Some functions are actually named
19366     something starting with __ and the normal name is an alias.  */
19367 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19368 choke me
19369 #else
19370 char (*f) () = _doprnt;
19371 #endif
19372 #ifdef __cplusplus
19373 }
19374 #endif
19375
19376 int
19377 main ()
19378 {
19379 return f != _doprnt;
19380   ;
19381   return 0;
19382 }
19383 _ACEOF
19384 rm -f conftest.$ac_objext conftest$ac_exeext
19385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19386   (eval $ac_link) 2>conftest.er1
19387   ac_status=$?
19388   grep -v '^ *+' conftest.er1 >conftest.err
19389   rm -f conftest.er1
19390   cat conftest.err >&5
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } &&
19393          { ac_try='test -z "$ac_c_werror_flag"
19394                          || test ! -s conftest.err'
19395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396   (eval $ac_try) 2>&5
19397   ac_status=$?
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); }; } &&
19400          { ac_try='test -s conftest$ac_exeext'
19401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402   (eval $ac_try) 2>&5
19403   ac_status=$?
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); }; }; then
19406   ac_cv_func__doprnt=yes
19407 else
19408   echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 ac_cv_func__doprnt=no
19412 fi
19413 rm -f conftest.err conftest.$ac_objext \
19414       conftest$ac_exeext conftest.$ac_ext
19415 fi
19416 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19417 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19418 if test $ac_cv_func__doprnt = yes; then
19419
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_DOPRNT 1
19422 _ACEOF
19423
19424 fi
19425
19426 fi
19427 done
19428
19429
19430 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19431 # for constant arguments.  Useless!
19432 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19433 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19434 if test "${ac_cv_working_alloca_h+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 <alloca.h>
19444 int
19445 main ()
19446 {
19447 char *p = (char *) alloca (2 * sizeof (int));
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454   (eval $ac_link) 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } &&
19461          { ac_try='test -z "$ac_c_werror_flag"
19462                          || test ! -s conftest.err'
19463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464   (eval $ac_try) 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; } &&
19468          { ac_try='test -s conftest$ac_exeext'
19469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470   (eval $ac_try) 2>&5
19471   ac_status=$?
19472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); }; }; then
19474   ac_cv_working_alloca_h=yes
19475 else
19476   echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19478
19479 ac_cv_working_alloca_h=no
19480 fi
19481 rm -f conftest.err conftest.$ac_objext \
19482       conftest$ac_exeext conftest.$ac_ext
19483 fi
19484 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19485 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19486 if test $ac_cv_working_alloca_h = yes; then
19487
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_ALLOCA_H 1
19490 _ACEOF
19491
19492 fi
19493
19494 echo "$as_me:$LINENO: checking for alloca" >&5
19495 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19496 if test "${ac_cv_func_alloca_works+set}" = set; then
19497   echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499   cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h.  */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h.  */
19505 #ifdef __GNUC__
19506 # define alloca __builtin_alloca
19507 #else
19508 # ifdef _MSC_VER
19509 #  include <malloc.h>
19510 #  define alloca _alloca
19511 # else
19512 #  if HAVE_ALLOCA_H
19513 #   include <alloca.h>
19514 #  else
19515 #   ifdef _AIX
19516  #pragma alloca
19517 #   else
19518 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19519 char *alloca ();
19520 #    endif
19521 #   endif
19522 #  endif
19523 # endif
19524 #endif
19525
19526 int
19527 main ()
19528 {
19529 char *p = (char *) alloca (1);
19530   ;
19531   return 0;
19532 }
19533 _ACEOF
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19536   (eval $ac_link) 2>conftest.er1
19537   ac_status=$?
19538   grep -v '^ *+' conftest.er1 >conftest.err
19539   rm -f conftest.er1
19540   cat conftest.err >&5
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); } &&
19543          { ac_try='test -z "$ac_c_werror_flag"
19544                          || test ! -s conftest.err'
19545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546   (eval $ac_try) 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; } &&
19550          { ac_try='test -s conftest$ac_exeext'
19551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552   (eval $ac_try) 2>&5
19553   ac_status=$?
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); }; }; then
19556   ac_cv_func_alloca_works=yes
19557 else
19558   echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19560
19561 ac_cv_func_alloca_works=no
19562 fi
19563 rm -f conftest.err conftest.$ac_objext \
19564       conftest$ac_exeext conftest.$ac_ext
19565 fi
19566 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19567 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19568
19569 if test $ac_cv_func_alloca_works = yes; then
19570
19571 cat >>confdefs.h <<\_ACEOF
19572 #define HAVE_ALLOCA 1
19573 _ACEOF
19574
19575 else
19576   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19577 # that cause trouble.  Some versions do not even contain alloca or
19578 # contain a buggy version.  If you still want to use their alloca,
19579 # use ar to extract alloca.o from them instead of compiling alloca.c.
19580
19581 ALLOCA=alloca.$ac_objext
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define C_ALLOCA 1
19585 _ACEOF
19586
19587
19588 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19589 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19590 if test "${ac_cv_os_cray+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #if defined(CRAY) && ! defined(CRAY2)
19600 webecray
19601 #else
19602 wenotbecray
19603 #endif
19604
19605 _ACEOF
19606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19607   $EGREP "webecray" >/dev/null 2>&1; then
19608   ac_cv_os_cray=yes
19609 else
19610   ac_cv_os_cray=no
19611 fi
19612 rm -f conftest*
19613
19614 fi
19615 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19616 echo "${ECHO_T}$ac_cv_os_cray" >&6
19617 if test $ac_cv_os_cray = yes; then
19618   for ac_func in _getb67 GETB67 getb67; do
19619     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19620 echo "$as_me:$LINENO: checking for $ac_func" >&5
19621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19622 if eval "test \"\${$as_ac_var+set}\" = set"; then
19623   echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625   cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19633 #define $ac_func innocuous_$ac_func
19634
19635 /* System header to define __stub macros and hopefully few prototypes,
19636     which can conflict with char $ac_func (); below.
19637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19638     <limits.h> exists even on freestanding compilers.  */
19639
19640 #ifdef __STDC__
19641 # include <limits.h>
19642 #else
19643 # include <assert.h>
19644 #endif
19645
19646 #undef $ac_func
19647
19648 /* Override any gcc2 internal prototype to avoid an error.  */
19649 #ifdef __cplusplus
19650 extern "C"
19651 {
19652 #endif
19653 /* We use char because int might match the return type of a gcc2
19654    builtin and then its argument prototype would still apply.  */
19655 char $ac_func ();
19656 /* The GNU C library defines this for functions which it implements
19657     to always fail with ENOSYS.  Some functions are actually named
19658     something starting with __ and the normal name is an alias.  */
19659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19660 choke me
19661 #else
19662 char (*f) () = $ac_func;
19663 #endif
19664 #ifdef __cplusplus
19665 }
19666 #endif
19667
19668 int
19669 main ()
19670 {
19671 return f != $ac_func;
19672   ;
19673   return 0;
19674 }
19675 _ACEOF
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19678   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
19699 else
19700   echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703 eval "$as_ac_var=no"
19704 fi
19705 rm -f conftest.err conftest.$ac_objext \
19706       conftest$ac_exeext conftest.$ac_ext
19707 fi
19708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19710 if test `eval echo '${'$as_ac_var'}'` = yes; then
19711
19712 cat >>confdefs.h <<_ACEOF
19713 #define CRAY_STACKSEG_END $ac_func
19714 _ACEOF
19715
19716     break
19717 fi
19718
19719   done
19720 fi
19721
19722 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19723 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19724 if test "${ac_cv_c_stack_direction+set}" = set; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727   if test "$cross_compiling" = yes; then
19728   ac_cv_c_stack_direction=0
19729 else
19730   cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 int
19737 find_stack_direction ()
19738 {
19739   static char *addr = 0;
19740   auto char dummy;
19741   if (addr == 0)
19742     {
19743       addr = &dummy;
19744       return find_stack_direction ();
19745     }
19746   else
19747     return (&dummy > addr) ? 1 : -1;
19748 }
19749
19750 int
19751 main ()
19752 {
19753   exit (find_stack_direction () < 0);
19754 }
19755 _ACEOF
19756 rm -f conftest$ac_exeext
19757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19758   (eval $ac_link) 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763   (eval $ac_try) 2>&5
19764   ac_status=$?
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); }; }; then
19767   ac_cv_c_stack_direction=1
19768 else
19769   echo "$as_me: program exited with status $ac_status" >&5
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773 ( exit $ac_status )
19774 ac_cv_c_stack_direction=-1
19775 fi
19776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19777 fi
19778 fi
19779 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19780 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19781
19782 cat >>confdefs.h <<_ACEOF
19783 #define STACK_DIRECTION $ac_cv_c_stack_direction
19784 _ACEOF
19785
19786
19787 fi
19788
19789 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19790 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19791 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19792 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19793   echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795   ac_check_lib_save_LIBS=$LIBS
19796 LIBS="-lsun  $LIBS"
19797 cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h.  */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h.  */
19803
19804 /* Override any gcc2 internal prototype to avoid an error.  */
19805 #ifdef __cplusplus
19806 extern "C"
19807 #endif
19808 /* We use char because int might match the return type of a gcc2
19809    builtin and then its argument prototype would still apply.  */
19810 char getmntent ();
19811 int
19812 main ()
19813 {
19814 getmntent ();
19815   ;
19816   return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821   (eval $ac_link) 2>conftest.er1
19822   ac_status=$?
19823   grep -v '^ *+' conftest.er1 >conftest.err
19824   rm -f conftest.er1
19825   cat conftest.err >&5
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); } &&
19828          { ac_try='test -z "$ac_c_werror_flag"
19829                          || test ! -s conftest.err'
19830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831   (eval $ac_try) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; } &&
19835          { ac_try='test -s conftest$ac_exeext'
19836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837   (eval $ac_try) 2>&5
19838   ac_status=$?
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); }; }; then
19841   ac_cv_lib_sun_getmntent=yes
19842 else
19843   echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846 ac_cv_lib_sun_getmntent=no
19847 fi
19848 rm -f conftest.err conftest.$ac_objext \
19849       conftest$ac_exeext conftest.$ac_ext
19850 LIBS=$ac_check_lib_save_LIBS
19851 fi
19852 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19853 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19854 if test $ac_cv_lib_sun_getmntent = yes; then
19855   LIBS="-lsun $LIBS"
19856 else
19857   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19858 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19859 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19860   echo $ECHO_N "(cached) $ECHO_C" >&6
19861 else
19862   ac_check_lib_save_LIBS=$LIBS
19863 LIBS="-lseq  $LIBS"
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h.  */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h.  */
19870
19871 /* Override any gcc2 internal prototype to avoid an error.  */
19872 #ifdef __cplusplus
19873 extern "C"
19874 #endif
19875 /* We use char because int might match the return type of a gcc2
19876    builtin and then its argument prototype would still apply.  */
19877 char getmntent ();
19878 int
19879 main ()
19880 {
19881 getmntent ();
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19888   (eval $ac_link) 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } &&
19895          { ac_try='test -z "$ac_c_werror_flag"
19896                          || test ! -s conftest.err'
19897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898   (eval $ac_try) 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; } &&
19902          { ac_try='test -s conftest$ac_exeext'
19903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904   (eval $ac_try) 2>&5
19905   ac_status=$?
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); }; }; then
19908   ac_cv_lib_seq_getmntent=yes
19909 else
19910   echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 ac_cv_lib_seq_getmntent=no
19914 fi
19915 rm -f conftest.err conftest.$ac_objext \
19916       conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19918 fi
19919 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19920 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19921 if test $ac_cv_lib_seq_getmntent = yes; then
19922   LIBS="-lseq $LIBS"
19923 else
19924   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19925 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19926 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19927   echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929   ac_check_lib_save_LIBS=$LIBS
19930 LIBS="-lgen  $LIBS"
19931 cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h.  */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h.  */
19937
19938 /* Override any gcc2 internal prototype to avoid an error.  */
19939 #ifdef __cplusplus
19940 extern "C"
19941 #endif
19942 /* We use char because int might match the return type of a gcc2
19943    builtin and then its argument prototype would still apply.  */
19944 char getmntent ();
19945 int
19946 main ()
19947 {
19948 getmntent ();
19949   ;
19950   return 0;
19951 }
19952 _ACEOF
19953 rm -f conftest.$ac_objext conftest$ac_exeext
19954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19955   (eval $ac_link) 2>conftest.er1
19956   ac_status=$?
19957   grep -v '^ *+' conftest.er1 >conftest.err
19958   rm -f conftest.er1
19959   cat conftest.err >&5
19960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961   (exit $ac_status); } &&
19962          { ac_try='test -z "$ac_c_werror_flag"
19963                          || test ! -s conftest.err'
19964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965   (eval $ac_try) 2>&5
19966   ac_status=$?
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); }; } &&
19969          { ac_try='test -s conftest$ac_exeext'
19970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971   (eval $ac_try) 2>&5
19972   ac_status=$?
19973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974   (exit $ac_status); }; }; then
19975   ac_cv_lib_gen_getmntent=yes
19976 else
19977   echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980 ac_cv_lib_gen_getmntent=no
19981 fi
19982 rm -f conftest.err conftest.$ac_objext \
19983       conftest$ac_exeext conftest.$ac_ext
19984 LIBS=$ac_check_lib_save_LIBS
19985 fi
19986 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19987 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19988 if test $ac_cv_lib_gen_getmntent = yes; then
19989   LIBS="-lgen $LIBS"
19990 fi
19991
19992 fi
19993
19994 fi
19995
19996
19997 for ac_func in getmntent
19998 do
19999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20000 echo "$as_me:$LINENO: checking for $ac_func" >&5
20001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_var+set}\" = set"; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 else
20005   cat >conftest.$ac_ext <<_ACEOF
20006 /* confdefs.h.  */
20007 _ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h.  */
20011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20013 #define $ac_func innocuous_$ac_func
20014
20015 /* System header to define __stub macros and hopefully few prototypes,
20016     which can conflict with char $ac_func (); below.
20017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20018     <limits.h> exists even on freestanding compilers.  */
20019
20020 #ifdef __STDC__
20021 # include <limits.h>
20022 #else
20023 # include <assert.h>
20024 #endif
20025
20026 #undef $ac_func
20027
20028 /* Override any gcc2 internal prototype to avoid an error.  */
20029 #ifdef __cplusplus
20030 extern "C"
20031 {
20032 #endif
20033 /* We use char because int might match the return type of a gcc2
20034    builtin and then its argument prototype would still apply.  */
20035 char $ac_func ();
20036 /* The GNU C library defines this for functions which it implements
20037     to always fail with ENOSYS.  Some functions are actually named
20038     something starting with __ and the normal name is an alias.  */
20039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20040 choke me
20041 #else
20042 char (*f) () = $ac_func;
20043 #endif
20044 #ifdef __cplusplus
20045 }
20046 #endif
20047
20048 int
20049 main ()
20050 {
20051 return f != $ac_func;
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   eval "$as_ac_var=yes"
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 eval "$as_ac_var=no"
20084 fi
20085 rm -f conftest.err conftest.$ac_objext \
20086       conftest$ac_exeext conftest.$ac_ext
20087 fi
20088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20090 if test `eval echo '${'$as_ac_var'}'` = yes; then
20091   cat >>confdefs.h <<_ACEOF
20092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20093 _ACEOF
20094
20095 fi
20096 done
20097
20098
20099 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20100 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20101 if test "${ac_cv_func_closedir_void+set}" = set; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104   if test "$cross_compiling" = yes; then
20105   ac_cv_func_closedir_void=yes
20106 else
20107   cat >conftest.$ac_ext <<_ACEOF
20108 /* confdefs.h.  */
20109 _ACEOF
20110 cat confdefs.h >>conftest.$ac_ext
20111 cat >>conftest.$ac_ext <<_ACEOF
20112 /* end confdefs.h.  */
20113 $ac_includes_default
20114 #include <$ac_header_dirent>
20115 #ifndef __cplusplus
20116 int closedir ();
20117 #endif
20118
20119 int
20120 main ()
20121 {
20122 exit (closedir (opendir (".")) != 0);
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 rm -f conftest$ac_exeext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20129   (eval $ac_link) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134   (eval $ac_try) 2>&5
20135   ac_status=$?
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); }; }; then
20138   ac_cv_func_closedir_void=no
20139 else
20140   echo "$as_me: program exited with status $ac_status" >&5
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144 ( exit $ac_status )
20145 ac_cv_func_closedir_void=yes
20146 fi
20147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20148 fi
20149 fi
20150 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20151 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20152 if test $ac_cv_func_closedir_void = yes; then
20153
20154 cat >>confdefs.h <<\_ACEOF
20155 #define CLOSEDIR_VOID 1
20156 _ACEOF
20157
20158 fi
20159
20160 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20161 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20162 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20163   echo $ECHO_N "(cached) $ECHO_C" >&6
20164 else
20165   if test "$cross_compiling" = yes; then
20166   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20167 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20168    { (exit 1); exit 1; }; }
20169 else
20170   cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h.  */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h.  */
20176 #if HAVE_UNISTD_H
20177 # include <unistd.h>
20178 #endif
20179
20180 int
20181 main ()
20182 {
20183 /* If this system has a BSD-style setpgrp which takes arguments,
20184   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20185   exit successfully. */
20186   exit (setpgrp (1,1) == -1 ? 0 : 1);
20187   ;
20188   return 0;
20189 }
20190 _ACEOF
20191 rm -f conftest$ac_exeext
20192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20193   (eval $ac_link) 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   ac_cv_func_setpgrp_void=no
20203 else
20204   echo "$as_me: program exited with status $ac_status" >&5
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20207
20208 ( exit $ac_status )
20209 ac_cv_func_setpgrp_void=yes
20210 fi
20211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20212 fi
20213 fi
20214 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20215 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20216 if test $ac_cv_func_setpgrp_void = yes; then
20217
20218 cat >>confdefs.h <<\_ACEOF
20219 #define SETPGRP_VOID 1
20220 _ACEOF
20221
20222 fi
20223                       # AC_FUNC_FNMATCH    dnl use local version
20224
20225
20226 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20227 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20228 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20229   echo $ECHO_N "(cached) $ECHO_C" >&6
20230 else
20231   ac_check_lib_save_LIBS=$LIBS
20232 LIBS="-lxpg4  $LIBS"
20233 cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239
20240 /* Override any gcc2 internal prototype to avoid an error.  */
20241 #ifdef __cplusplus
20242 extern "C"
20243 #endif
20244 /* We use char because int might match the return type of a gcc2
20245    builtin and then its argument prototype would still apply.  */
20246 char setlocale ();
20247 int
20248 main ()
20249 {
20250 setlocale ();
20251   ;
20252   return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest.$ac_objext conftest$ac_exeext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20257   (eval $ac_link) 2>conftest.er1
20258   ac_status=$?
20259   grep -v '^ *+' conftest.er1 >conftest.err
20260   rm -f conftest.er1
20261   cat conftest.err >&5
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } &&
20264          { ac_try='test -z "$ac_c_werror_flag"
20265                          || test ! -s conftest.err'
20266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267   (eval $ac_try) 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); }; } &&
20271          { ac_try='test -s conftest$ac_exeext'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; }; then
20277   ac_cv_lib_xpg4_setlocale=yes
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ac_cv_lib_xpg4_setlocale=no
20283 fi
20284 rm -f conftest.err conftest.$ac_objext \
20285       conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20287 fi
20288 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20289 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20290 if test $ac_cv_lib_xpg4_setlocale = yes; then
20291   LIBS="$LIBS -lxpg4"
20292 fi
20293
20294
20295
20296
20297 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20298 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20299 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20300   echo $ECHO_N "(cached) $ECHO_C" >&6
20301 else
20302   ac_check_lib_save_LIBS=$LIBS
20303 LIBS="-lsun  $LIBS"
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310
20311 /* Override any gcc2 internal prototype to avoid an error.  */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 /* We use char because int might match the return type of a gcc2
20316    builtin and then its argument prototype would still apply.  */
20317 char getpwnam ();
20318 int
20319 main ()
20320 {
20321 getpwnam ();
20322   ;
20323   return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328   (eval $ac_link) 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag"
20336                          || test ! -s conftest.err'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } &&
20342          { ac_try='test -s conftest$ac_exeext'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_cv_lib_sun_getpwnam=yes
20349 else
20350   echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353 ac_cv_lib_sun_getpwnam=no
20354 fi
20355 rm -f conftest.err conftest.$ac_objext \
20356       conftest$ac_exeext conftest.$ac_ext
20357 LIBS=$ac_check_lib_save_LIBS
20358 fi
20359 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20360 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20361 if test $ac_cv_lib_sun_getpwnam = yes; then
20362   cat >>confdefs.h <<_ACEOF
20363 #define HAVE_LIBSUN 1
20364 _ACEOF
20365
20366   LIBS="-lsun $LIBS"
20367
20368 fi
20369
20370
20371
20372 for ac_header in zlib.h
20373 do
20374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20376   echo "$as_me:$LINENO: checking for $ac_header" >&5
20377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20379   echo $ECHO_N "(cached) $ECHO_C" >&6
20380 fi
20381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20383 else
20384   # Is the header compilable?
20385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h.  */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h.  */
20393 $ac_includes_default
20394 #include <$ac_header>
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20398   (eval $ac_compile) 2>conftest.er1
20399   ac_status=$?
20400   grep -v '^ *+' conftest.er1 >conftest.err
20401   rm -f conftest.er1
20402   cat conftest.err >&5
20403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404   (exit $ac_status); } &&
20405          { ac_try='test -z "$ac_c_werror_flag"
20406                          || test ! -s conftest.err'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; } &&
20412          { ac_try='test -s conftest.$ac_objext'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; }; then
20418   ac_header_compiler=yes
20419 else
20420   echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20422
20423 ac_header_compiler=no
20424 fi
20425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20427 echo "${ECHO_T}$ac_header_compiler" >&6
20428
20429 # Is the header present?
20430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20432 cat >conftest.$ac_ext <<_ACEOF
20433 /* confdefs.h.  */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h.  */
20438 #include <$ac_header>
20439 _ACEOF
20440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20442   ac_status=$?
20443   grep -v '^ *+' conftest.er1 >conftest.err
20444   rm -f conftest.er1
20445   cat conftest.err >&5
20446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447   (exit $ac_status); } >/dev/null; then
20448   if test -s conftest.err; then
20449     ac_cpp_err=$ac_c_preproc_warn_flag
20450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20451   else
20452     ac_cpp_err=
20453   fi
20454 else
20455   ac_cpp_err=yes
20456 fi
20457 if test -z "$ac_cpp_err"; then
20458   ac_header_preproc=yes
20459 else
20460   echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20462
20463   ac_header_preproc=no
20464 fi
20465 rm -f conftest.err conftest.$ac_ext
20466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20467 echo "${ECHO_T}$ac_header_preproc" >&6
20468
20469 # So?  What about this header?
20470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20471   yes:no: )
20472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20476     ac_header_preproc=yes
20477     ;;
20478   no:yes:* )
20479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20491     (
20492       cat <<\_ASBOX
20493 ## ------------------------------------------ ##
20494 ## Report this to the AC_PACKAGE_NAME lists.  ##
20495 ## ------------------------------------------ ##
20496 _ASBOX
20497     ) |
20498       sed "s/^/$as_me: WARNING:     /" >&2
20499     ;;
20500 esac
20501 echo "$as_me:$LINENO: checking for $ac_header" >&5
20502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20504   echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506   eval "$as_ac_Header=\$ac_header_preproc"
20507 fi
20508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20510
20511 fi
20512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20513   cat >>confdefs.h <<_ACEOF
20514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20515 _ACEOF
20516
20517 fi
20518
20519 done
20520
20521 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20522 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20523 if test "${ac_cv_lib_z_deflate+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526   ac_check_lib_save_LIBS=$LIBS
20527 LIBS="-lz  $LIBS"
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h.  */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h.  */
20534
20535 /* Override any gcc2 internal prototype to avoid an error.  */
20536 #ifdef __cplusplus
20537 extern "C"
20538 #endif
20539 /* We use char because int might match the return type of a gcc2
20540    builtin and then its argument prototype would still apply.  */
20541 char deflate ();
20542 int
20543 main ()
20544 {
20545 deflate ();
20546   ;
20547   return 0;
20548 }
20549 _ACEOF
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20552   (eval $ac_link) 2>conftest.er1
20553   ac_status=$?
20554   grep -v '^ *+' conftest.er1 >conftest.err
20555   rm -f conftest.er1
20556   cat conftest.err >&5
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); } &&
20559          { ac_try='test -z "$ac_c_werror_flag"
20560                          || test ! -s conftest.err'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; } &&
20566          { ac_try='test -s conftest$ac_exeext'
20567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568   (eval $ac_try) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; }; then
20572   ac_cv_lib_z_deflate=yes
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 ac_cv_lib_z_deflate=no
20578 fi
20579 rm -f conftest.err conftest.$ac_objext \
20580       conftest$ac_exeext conftest.$ac_ext
20581 LIBS=$ac_check_lib_save_LIBS
20582 fi
20583 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20584 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20585 if test $ac_cv_lib_z_deflate = yes; then
20586   FDLIBS="-lz"
20587 fi
20588
20589 have_zlib=no
20590 if test x$FDLIBS = x-lz; then
20591   cat >>confdefs.h <<\_ACEOF
20592 #define HAVE_LIBZ 1
20593 _ACEOF
20594
20595   have_zlib=yes
20596 fi
20597
20598 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20599   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20600 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20601 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20602   echo $ECHO_N "(cached) $ECHO_C" >&6
20603 fi
20604 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20605 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20606 else
20607   # Is the header compilable?
20608 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20609 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 $ac_includes_default
20617 #include <sys/acl.h>
20618 _ACEOF
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621   (eval $ac_compile) 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } &&
20628          { ac_try='test -z "$ac_c_werror_flag"
20629                          || test ! -s conftest.err'
20630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631   (eval $ac_try) 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; } &&
20635          { ac_try='test -s conftest.$ac_objext'
20636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637   (eval $ac_try) 2>&5
20638   ac_status=$?
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); }; }; then
20641   ac_header_compiler=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646 ac_header_compiler=no
20647 fi
20648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20650 echo "${ECHO_T}$ac_header_compiler" >&6
20651
20652 # Is the header present?
20653 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20654 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h.  */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h.  */
20661 #include <sys/acl.h>
20662 _ACEOF
20663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20665   ac_status=$?
20666   grep -v '^ *+' conftest.er1 >conftest.err
20667   rm -f conftest.er1
20668   cat conftest.err >&5
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); } >/dev/null; then
20671   if test -s conftest.err; then
20672     ac_cpp_err=$ac_c_preproc_warn_flag
20673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20674   else
20675     ac_cpp_err=
20676   fi
20677 else
20678   ac_cpp_err=yes
20679 fi
20680 if test -z "$ac_cpp_err"; then
20681   ac_header_preproc=yes
20682 else
20683   echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686   ac_header_preproc=no
20687 fi
20688 rm -f conftest.err conftest.$ac_ext
20689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20690 echo "${ECHO_T}$ac_header_preproc" >&6
20691
20692 # So?  What about this header?
20693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20694   yes:no: )
20695     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20696 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20697     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20698 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20699     ac_header_preproc=yes
20700     ;;
20701   no:yes:* )
20702     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20703 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20704     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20705 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20706     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20707 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20708     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20709 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20710     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20711 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20712     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20713 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20714     (
20715       cat <<\_ASBOX
20716 ## ------------------------------------------ ##
20717 ## Report this to the AC_PACKAGE_NAME lists.  ##
20718 ## ------------------------------------------ ##
20719 _ASBOX
20720     ) |
20721       sed "s/^/$as_me: WARNING:     /" >&2
20722     ;;
20723 esac
20724 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20725 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20726 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20727   echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729   ac_cv_header_sys_acl_h=$ac_header_preproc
20730 fi
20731 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20732 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20733
20734 fi
20735
20736
20737 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20738 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20739 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20740   echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742   ac_check_lib_save_LIBS=$LIBS
20743 LIBS="-lacl  $LIBS"
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750
20751 /* Override any gcc2 internal prototype to avoid an error.  */
20752 #ifdef __cplusplus
20753 extern "C"
20754 #endif
20755 /* We use char because int might match the return type of a gcc2
20756    builtin and then its argument prototype would still apply.  */
20757 char acl_get_file ();
20758 int
20759 main ()
20760 {
20761 acl_get_file ();
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 rm -f conftest.$ac_objext conftest$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768   (eval $ac_link) 2>conftest.er1
20769   ac_status=$?
20770   grep -v '^ *+' conftest.er1 >conftest.err
20771   rm -f conftest.er1
20772   cat conftest.err >&5
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } &&
20775          { ac_try='test -z "$ac_c_werror_flag"
20776                          || test ! -s conftest.err'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; } &&
20782          { ac_try='test -s conftest$ac_exeext'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; }; then
20788   ac_cv_lib_acl_acl_get_file=yes
20789 else
20790   echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 ac_cv_lib_acl_acl_get_file=no
20794 fi
20795 rm -f conftest.err conftest.$ac_objext \
20796       conftest$ac_exeext conftest.$ac_ext
20797 LIBS=$ac_check_lib_save_LIBS
20798 fi
20799 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20800 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20801 if test $ac_cv_lib_acl_acl_get_file = yes; then
20802   FDLIBS="-lacl $FDLIBS"
20803 fi
20804
20805 have_acl=no
20806 if test $ac_cv_lib_acl_acl_get_file = yes; then
20807    cat >>confdefs.h <<\_ACEOF
20808 #define HAVE_ACL 1
20809 _ACEOF
20810
20811    have_acl=yes
20812 fi
20813
20814 PTHREAD_LIB=""
20815 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20816 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20817 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20818   echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820   ac_check_lib_save_LIBS=$LIBS
20821 LIBS="-lpthread  $LIBS"
20822 cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828
20829 /* Override any gcc2 internal prototype to avoid an error.  */
20830 #ifdef __cplusplus
20831 extern "C"
20832 #endif
20833 /* We use char because int might match the return type of a gcc2
20834    builtin and then its argument prototype would still apply.  */
20835 char pthread_create ();
20836 int
20837 main ()
20838 {
20839 pthread_create ();
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20846   (eval $ac_link) 2>conftest.er1
20847   ac_status=$?
20848   grep -v '^ *+' conftest.er1 >conftest.err
20849   rm -f conftest.er1
20850   cat conftest.err >&5
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } &&
20853          { ac_try='test -z "$ac_c_werror_flag"
20854                          || test ! -s conftest.err'
20855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856   (eval $ac_try) 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; } &&
20860          { ac_try='test -s conftest$ac_exeext'
20861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862   (eval $ac_try) 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); }; }; then
20866   ac_cv_lib_pthread_pthread_create=yes
20867 else
20868   echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 ac_cv_lib_pthread_pthread_create=no
20872 fi
20873 rm -f conftest.err conftest.$ac_objext \
20874       conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20876 fi
20877 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20878 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20879 if test $ac_cv_lib_pthread_pthread_create = yes; then
20880   PTHREAD_LIB="-lpthread"
20881 else
20882   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20883 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20884 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20885   echo $ECHO_N "(cached) $ECHO_C" >&6
20886 else
20887   ac_check_lib_save_LIBS=$LIBS
20888 LIBS="-lpthreads  $LIBS"
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h.  */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h.  */
20895
20896 /* Override any gcc2 internal prototype to avoid an error.  */
20897 #ifdef __cplusplus
20898 extern "C"
20899 #endif
20900 /* We use char because int might match the return type of a gcc2
20901    builtin and then its argument prototype would still apply.  */
20902 char pthread_create ();
20903 int
20904 main ()
20905 {
20906 pthread_create ();
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20913   (eval $ac_link) 2>conftest.er1
20914   ac_status=$?
20915   grep -v '^ *+' conftest.er1 >conftest.err
20916   rm -f conftest.er1
20917   cat conftest.err >&5
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); } &&
20920          { ac_try='test -z "$ac_c_werror_flag"
20921                          || test ! -s conftest.err'
20922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20923   (eval $ac_try) 2>&5
20924   ac_status=$?
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); }; } &&
20927          { ac_try='test -s conftest$ac_exeext'
20928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929   (eval $ac_try) 2>&5
20930   ac_status=$?
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); }; }; then
20933   ac_cv_lib_pthreads_pthread_create=yes
20934 else
20935   echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938 ac_cv_lib_pthreads_pthread_create=no
20939 fi
20940 rm -f conftest.err conftest.$ac_objext \
20941       conftest$ac_exeext conftest.$ac_ext
20942 LIBS=$ac_check_lib_save_LIBS
20943 fi
20944 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20945 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20946 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20947   PTHREAD_LIB="-lpthreads"
20948 else
20949   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20950 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20951 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20952   echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954   ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-lc_r  $LIBS"
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h.  */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h.  */
20962
20963 /* Override any gcc2 internal prototype to avoid an error.  */
20964 #ifdef __cplusplus
20965 extern "C"
20966 #endif
20967 /* We use char because int might match the return type of a gcc2
20968    builtin and then its argument prototype would still apply.  */
20969 char pthread_create ();
20970 int
20971 main ()
20972 {
20973 pthread_create ();
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980   (eval $ac_link) 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } &&
20987          { ac_try='test -z "$ac_c_werror_flag"
20988                          || test ! -s conftest.err'
20989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990   (eval $ac_try) 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; } &&
20994          { ac_try='test -s conftest$ac_exeext'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; }; then
21000   ac_cv_lib_c_r_pthread_create=yes
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005 ac_cv_lib_c_r_pthread_create=no
21006 fi
21007 rm -f conftest.err conftest.$ac_objext \
21008       conftest$ac_exeext conftest.$ac_ext
21009 LIBS=$ac_check_lib_save_LIBS
21010 fi
21011 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21012 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21013 if test $ac_cv_lib_c_r_pthread_create = yes; then
21014   PTHREAD_LIB="-lc_r"
21015 else
21016   echo "$as_me:$LINENO: checking for pthread_create" >&5
21017 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21018 if test "${ac_cv_func_pthread_create+set}" = set; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021   cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21029 #define pthread_create innocuous_pthread_create
21030
21031 /* System header to define __stub macros and hopefully few prototypes,
21032     which can conflict with char pthread_create (); below.
21033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21034     <limits.h> exists even on freestanding compilers.  */
21035
21036 #ifdef __STDC__
21037 # include <limits.h>
21038 #else
21039 # include <assert.h>
21040 #endif
21041
21042 #undef pthread_create
21043
21044 /* Override any gcc2 internal prototype to avoid an error.  */
21045 #ifdef __cplusplus
21046 extern "C"
21047 {
21048 #endif
21049 /* We use char because int might match the return type of a gcc2
21050    builtin and then its argument prototype would still apply.  */
21051 char pthread_create ();
21052 /* The GNU C library defines this for functions which it implements
21053     to always fail with ENOSYS.  Some functions are actually named
21054     something starting with __ and the normal name is an alias.  */
21055 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21056 choke me
21057 #else
21058 char (*f) () = pthread_create;
21059 #endif
21060 #ifdef __cplusplus
21061 }
21062 #endif
21063
21064 int
21065 main ()
21066 {
21067 return f != pthread_create;
21068   ;
21069   return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21074   (eval $ac_link) 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } &&
21081          { ac_try='test -z "$ac_c_werror_flag"
21082                          || test ! -s conftest.err'
21083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084   (eval $ac_try) 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); }; } &&
21088          { ac_try='test -s conftest$ac_exeext'
21089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); }; }; then
21094   ac_cv_func_pthread_create=yes
21095 else
21096   echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ac_cv_func_pthread_create=no
21100 fi
21101 rm -f conftest.err conftest.$ac_objext \
21102       conftest$ac_exeext conftest.$ac_ext
21103 fi
21104 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21105 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21106
21107
21108 fi
21109
21110
21111 fi
21112
21113
21114 fi
21115
21116
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define FDLIBS 1
21120 _ACEOF
21121
21122
21123
21124 CFLAGS=${CFLAGS--O}
21125 LDFLAGS=${LDFLAGS--O}
21126 DB_LIBS="${SQL_LFLAGS}"
21127
21128 CPPFLAGS="$CPPFLAGS"
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143 OBJLIST=
21144
21145
21146 lld="lld"
21147 llu="llu"
21148
21149 WCFLAGS=
21150 WLDFLAGS=
21151
21152 #
21153 # Finally we set appropriate distribution specific
21154 #  variables and defaults
21155 #
21156 # PFILES are platform specific files
21157 PFILES="platforms/Makefile"
21158 PSCMD="ps -e"
21159 WIN32=
21160 MACOSX=
21161 hostname=`uname -n | cut -d '.' -f 1`
21162 case "$DISTNAME" in
21163 aix)
21164         DISTVER=`uname -r`
21165         PSCMD="ps -e -o pid,comm"
21166         PFILES="${PFILES} \
21167            platforms/aix/Makefile"
21168         TAPEDRIVE="/dev/rmt0.1"
21169   ;;
21170 alpha)
21171         DISTVER=`uname -r`
21172         PTHREAD_LIB="-lpthread -lexc"
21173         if test "${CC}" = "gcc" ; then
21174            lld="lld"
21175            llu="llu"
21176         else
21177            lld="ld"
21178            llu="lu"
21179         fi
21180         TAPEDRIVE="/dev/nrmt0"
21181   ;;
21182 bsdi)
21183         DISTVER=`uname -a |awk '{print $3}'`
21184         TAPEDRIVE="/dev/nrmt0"
21185         PTHREAD_LIB="-pthread"
21186         CFLAGS="${CFLAGS} -pthread"
21187         PSCMD="ps -x -o pid,command"
21188         lld="qd"
21189         llu="qu"
21190         PFILES="${PFILES} \
21191             platforms/bsdi/Makefile \
21192             platforms/bsdi/bacula-fd \
21193             platforms/bsdi/bacula-sd \
21194             platforms/bsdi/bacula-dir"
21195         largefile_support="yes"
21196   ;;
21197 cygwin)
21198         DISTVER=`uname -a |awk '{print $3}'`
21199         TAPEDRIVE="/dev/nrst0"
21200         WIN32=win32
21201         WCFLAGS="-mwindows"
21202         WLDFLAGS="-mwindows"
21203   ;;
21204 darwin)
21205         DISTVER=`uname -r`
21206         TAPEDRIVE="/dev/nst0"
21207         PSCMD="ps -e -o pid,command"
21208         MACOSX=macosx
21209         PFILES="${PFILES} \
21210            platforms/darwin/Makefile"
21211   ;;
21212 debian)
21213         DISTVER=`cat /etc/debian_version`
21214         TAPEDRIVE="/dev/nrst0"
21215         PSCMD="ps -e -o pid,command"
21216   ;;
21217 freebsd)
21218         DISTVER=`uname -a |awk '{print $3}'`
21219         VER=`echo $DISTVER | cut -c 1`
21220         if test x$VER = x4 ; then
21221            PTHREAD_LIB="-pthread"
21222            CFLAGS="${CFLAGS} -pthread"
21223         fi
21224         lld="qd"
21225         llu="qu"
21226         TAPEDRIVE="/dev/nrsa0"
21227         PSCMD="ps -x -o pid,command"
21228         PFILES="${PFILES} \
21229             platforms/freebsd/Makefile \
21230             platforms/freebsd/bacula-fd \
21231             platforms/freebsd/bacula-sd \
21232             platforms/freebsd/bacula-dir"
21233         largefile_support="yes"
21234   ;;
21235 hpux)
21236         PSCMD="UNIX95=1 ps -e -o pid,comm"
21237         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21238         DISTVER=`uname -r`
21239         TAPEDRIVE="/dev/rmt/0hnb"
21240         PTHREAD_LIB="-lpthread"
21241         cat >>confdefs.h <<\_ACEOF
21242 #define _INCLUDE_LONGLONG 1
21243 _ACEOF
21244
21245   ;;
21246 irix)
21247         DISTVER=`uname -r`
21248         TAPEDRIVE="/dev/rmt/0cbn"
21249         PSCMD="ps -e -o pid,comm"
21250         PFILES="${PFILES} \
21251             platforms/irix/Makefile \
21252             platforms/irix/bacula-fd \
21253             platforms/irix/bacula-sd \
21254             platforms/irix/bacula-dir"
21255   ;;
21256 netbsd)
21257         DISTVER=`uname -a |awk '{print $3}'`
21258         lld="qd"
21259         llu="qu"
21260         TAPEDRIVE="/dev/nrst0"
21261         PSCMD="ps -a -o pid,command"
21262         PTHREAD_LIB="-pthread"
21263         CFLAGS="${CFLAGS} -pthread"
21264   ;;
21265 openbsd)
21266         DISTVER=`uname -a |awk '{print $3}'`
21267         lld="qd"
21268         llu="qu"
21269         TAPEDRIVE="/dev/nrst0"
21270         PSCMD="ps -ax -o pid,command"
21271         PTHREAD_LIB="-pthread"
21272         CFLAGS="${CFLAGS} -pthread"
21273         PFILES="${PFILES} \
21274             platforms/openbsd/Makefile \
21275             platforms/openbsd/bacula-fd \
21276             platforms/openbsd/bacula-sd \
21277             platforms/openbsd/bacula-dir"
21278   ;;
21279 redhat)
21280         if test -f /etc/whitebox-release ; then
21281            f=/etc/whitebox-release
21282         else
21283            f=/etc/redhat-release
21284         fi
21285         if test `cat $f | grep release |\
21286                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21287            DISTVER="Enterprise "`cat $f | grep release |\
21288                     cut -f 6 -d ' '`
21289         else
21290             DISTVER=`cat /etc/redhat-release | grep release |\
21291                      cut -f 5 -d ' '`
21292         fi
21293         TAPEDRIVE="/dev/nst0"
21294         PSCMD="ps -e -o pid,command"
21295         PFILES="${PFILES} \
21296             platforms/redhat/Makefile \
21297             platforms/redhat/bacula-fd \
21298             platforms/redhat/bacula-sd \
21299             platforms/redhat/bacula-dir \
21300             platforms/redhat/bacula.spec \
21301             "
21302         hostname=`hostname -s`
21303   ;;
21304 mandrake)
21305         DISTVER=`cat /etc/mandrake-release | grep release |\
21306            cut -f 5 -d ' '`
21307         TAPEDRIVE="/dev/nst0"
21308         PSCMD="ps -e -o pid,command"
21309         PFILES="${PFILES} \
21310             platforms/mandrake/Makefile \
21311             platforms/mandrake/bacula-fd \
21312             platforms/mandrake/bacula-sd \
21313             platforms/mandrake/bacula-dir \
21314             platforms/mandrake/bacula.spec \
21315             "
21316   ;;
21317 gentoo)
21318         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21319         TAPEDRIVE="/dev/nst0"
21320         PSCMD="ps -e -o pid,command"
21321         PFILES="${PFILES} \
21322             platforms/gentoo/Makefile \
21323          platforms/gentoo/bacula-init \
21324             platforms/gentoo/bacula-fd \
21325             platforms/gentoo/bacula-sd \
21326             platforms/gentoo/bacula-dir"
21327   ;;
21328 slackware)
21329         DISTVER=`cat /etc/slackware-version`
21330         TAPEDRIVE="/dev/nst0"
21331         PSCMD="ps -e -o pid,command"
21332         PFILES="${PFILES} \
21333             platforms/slackware/Makefile \
21334             platforms/slackware/rc.bacula-fd \
21335             platforms/slackware/rc.bacula-sd \
21336             platforms/slackware/rc.bacula-dir\
21337             platforms/slackware/functions.bacula"
21338   ;;
21339 solaris)
21340         DISTVER=`uname -r`
21341         TAPEDRIVE="/dev/rmt/0cbn"
21342         PSCMD="ps -e -o pid,comm"
21343         PFILES="${PFILES} \
21344             platforms/solaris/Makefile \
21345             platforms/solaris/bacula-fd \
21346             platforms/solaris/bacula-sd \
21347             platforms/solaris/bacula-dir"
21348         if test x$DISTVER = x5.6 ; then
21349             cat >>confdefs.h <<\_ACEOF
21350 #define HAVE_OLD_SOCKOPT 1
21351 _ACEOF
21352
21353         fi
21354         LIBS="$LIBS -lresolv"
21355   ;;
21356 suse)
21357         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21358             cut -f 3 -d ' '`
21359         TAPEDRIVE="/dev/nst0"
21360         PSCMD="ps -e -o pid,command"
21361         PFILES="${PFILES} \
21362             platforms/suse/Makefile \
21363             platforms/suse/bacula-fd \
21364             platforms/suse/bacula-sd \
21365             platforms/suse/bacula-dir \
21366             platforms/suse/bacula \
21367             platforms/suse/bacula.spec"
21368   ;;
21369 suse5)
21370         DISTNAME=suse
21371         DISTVER=5.x
21372         TAPEDRIVE="/dev/nst0"
21373         PSCMD="ps -e -o pid,command"
21374         PFILES="${PFILES} \
21375             platforms/suse/Makefile \
21376             platforms/suse/bacula-fd \
21377             platforms/suse/bacula-sd \
21378             platforms/suse/bacula-dir"
21379   ;;
21380 unknown)
21381         DISTVER=unknown
21382         TAPEDRIVE="/dev/nst0"
21383   ;;
21384 *)
21385   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21386   ;;
21387 esac
21388
21389
21390
21391 LIBS="$PTHREAD_LIB $LIBS"
21392
21393 cat >>confdefs.h <<_ACEOF
21394 #define lld "$lld"
21395 _ACEOF
21396
21397 cat >>confdefs.h <<_ACEOF
21398 #define llu "$llu"
21399 _ACEOF
21400
21401
21402
21403
21404
21405
21406
21407
21408 MCOMMON=./autoconf/Make.common
21409
21410
21411 if test "x${subsysdir}" = "x${sbindir}" ; then
21412    echo " "
21413    echo " "
21414    echo "You have set both --sbindir and --with-subsys-dir"
21415    echo "  equal to: ${subsysdir} "
21416    echo "This is not permitted. Please reconfigure."
21417    echo " "
21418    echo "Aborting configuration ..."
21419    echo " "
21420    echo " "
21421    exit 1
21422 fi
21423
21424                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21425           ac_config_commands="$ac_config_commands default"
21426 cat >confcache <<\_ACEOF
21427 # This file is a shell script that caches the results of configure
21428 # tests run on this system so they can be shared between configure
21429 # scripts and configure runs, see configure's option --config-cache.
21430 # It is not useful on other systems.  If it contains results you don't
21431 # want to keep, you may remove or edit it.
21432 #
21433 # config.status only pays attention to the cache file if you give it
21434 # the --recheck option to rerun configure.
21435 #
21436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21438 # following values.
21439
21440 _ACEOF
21441
21442 # The following way of writing the cache mishandles newlines in values,
21443 # but we know of no workaround that is simple, portable, and efficient.
21444 # So, don't put newlines in cache variables' values.
21445 # Ultrix sh set writes to stderr and can't be redirected directly,
21446 # and sets the high bit in the cache file unless we assign to the vars.
21447 {
21448   (set) 2>&1 |
21449     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21450     *ac_space=\ *)
21451       # `set' does not quote correctly, so add quotes (double-quote
21452       # substitution turns \\\\ into \\, and sed turns \\ into \).
21453       sed -n \
21454         "s/'/'\\\\''/g;
21455           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21456       ;;
21457     *)
21458       # `set' quotes correctly as required by POSIX, so do not add quotes.
21459       sed -n \
21460         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21461       ;;
21462     esac;
21463 } |
21464   sed '
21465      t clear
21466      : clear
21467      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21468      t end
21469      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21470      : end' >>confcache
21471 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21472   if test -w $cache_file; then
21473     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21474     cat confcache >$cache_file
21475   else
21476     echo "not updating unwritable cache $cache_file"
21477   fi
21478 fi
21479 rm -f confcache
21480
21481 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21482 # Let make expand exec_prefix.
21483 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21484
21485 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21486 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21487 # trailing colons and then remove the whole line if VPATH becomes empty
21488 # (actually we leave an empty line to preserve line numbers).
21489 if test "x$srcdir" = x.; then
21490   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21491 s/:*\$(srcdir):*/:/;
21492 s/:*\${srcdir}:*/:/;
21493 s/:*@srcdir@:*/:/;
21494 s/^\([^=]*=[     ]*\):*/\1/;
21495 s/:*$//;
21496 s/^[^=]*=[       ]*$//;
21497 }'
21498 fi
21499
21500 DEFS=-DHAVE_CONFIG_H
21501
21502 ac_libobjs=
21503 ac_ltlibobjs=
21504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21505   # 1. Remove the extension, and $U if already installed.
21506   ac_i=`echo "$ac_i" |
21507          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21508   # 2. Add them.
21509   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21510   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21511 done
21512 LIBOBJS=$ac_libobjs
21513
21514 LTLIBOBJS=$ac_ltlibobjs
21515
21516
21517
21518 : ${CONFIG_STATUS=./config.status}
21519 ac_clean_files_save=$ac_clean_files
21520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21521 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21522 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21523 cat >$CONFIG_STATUS <<_ACEOF
21524 #! $SHELL
21525 # Generated by $as_me.
21526 # Run this file to recreate the current configuration.
21527 # Compiler output produced by configure, useful for debugging
21528 # configure, is in config.log if it exists.
21529
21530 debug=false
21531 ac_cs_recheck=false
21532 ac_cs_silent=false
21533 SHELL=\${CONFIG_SHELL-$SHELL}
21534 _ACEOF
21535
21536 cat >>$CONFIG_STATUS <<\_ACEOF
21537 ## --------------------- ##
21538 ## M4sh Initialization.  ##
21539 ## --------------------- ##
21540
21541 # Be Bourne compatible
21542 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21543   emulate sh
21544   NULLCMD=:
21545   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21546   # is contrary to our usage.  Disable this feature.
21547   alias -g '${1+"$@"}'='"$@"'
21548 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21549   set -o posix
21550 fi
21551 DUALCASE=1; export DUALCASE # for MKS sh
21552
21553 # Support unset when possible.
21554 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21555   as_unset=unset
21556 else
21557   as_unset=false
21558 fi
21559
21560
21561 # Work around bugs in pre-3.0 UWIN ksh.
21562 $as_unset ENV MAIL MAILPATH
21563 PS1='$ '
21564 PS2='> '
21565 PS4='+ '
21566
21567 # NLS nuisances.
21568 for as_var in \
21569   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21570   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21571   LC_TELEPHONE LC_TIME
21572 do
21573   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21574     eval $as_var=C; export $as_var
21575   else
21576     $as_unset $as_var
21577   fi
21578 done
21579
21580 # Required to use basename.
21581 if expr a : '\(a\)' >/dev/null 2>&1; then
21582   as_expr=expr
21583 else
21584   as_expr=false
21585 fi
21586
21587 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21588   as_basename=basename
21589 else
21590   as_basename=false
21591 fi
21592
21593
21594 # Name of the executable.
21595 as_me=`$as_basename "$0" ||
21596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21597          X"$0" : 'X\(//\)$' \| \
21598          X"$0" : 'X\(/\)$' \| \
21599          .     : '\(.\)' 2>/dev/null ||
21600 echo X/"$0" |
21601     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21602           /^X\/\(\/\/\)$/{ s//\1/; q; }
21603           /^X\/\(\/\).*/{ s//\1/; q; }
21604           s/.*/./; q'`
21605
21606
21607 # PATH needs CR, and LINENO needs CR and PATH.
21608 # Avoid depending upon Character Ranges.
21609 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21610 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21611 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21612 as_cr_digits='0123456789'
21613 as_cr_alnum=$as_cr_Letters$as_cr_digits
21614
21615 # The user is always right.
21616 if test "${PATH_SEPARATOR+set}" != set; then
21617   echo "#! /bin/sh" >conf$$.sh
21618   echo  "exit 0"   >>conf$$.sh
21619   chmod +x conf$$.sh
21620   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21621     PATH_SEPARATOR=';'
21622   else
21623     PATH_SEPARATOR=:
21624   fi
21625   rm -f conf$$.sh
21626 fi
21627
21628
21629   as_lineno_1=$LINENO
21630   as_lineno_2=$LINENO
21631   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21632   test "x$as_lineno_1" != "x$as_lineno_2" &&
21633   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21634   # Find who we are.  Look in the path if we contain no path at all
21635   # relative or not.
21636   case $0 in
21637     *[\\/]* ) as_myself=$0 ;;
21638     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21639 for as_dir in $PATH
21640 do
21641   IFS=$as_save_IFS
21642   test -z "$as_dir" && as_dir=.
21643   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21644 done
21645
21646        ;;
21647   esac
21648   # We did not find ourselves, most probably we were run as `sh COMMAND'
21649   # in which case we are not to be found in the path.
21650   if test "x$as_myself" = x; then
21651     as_myself=$0
21652   fi
21653   if test ! -f "$as_myself"; then
21654     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21655 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21656    { (exit 1); exit 1; }; }
21657   fi
21658   case $CONFIG_SHELL in
21659   '')
21660     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21661 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21662 do
21663   IFS=$as_save_IFS
21664   test -z "$as_dir" && as_dir=.
21665   for as_base in sh bash ksh sh5; do
21666          case $as_dir in
21667          /*)
21668            if ("$as_dir/$as_base" -c '
21669   as_lineno_1=$LINENO
21670   as_lineno_2=$LINENO
21671   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21672   test "x$as_lineno_1" != "x$as_lineno_2" &&
21673   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21674              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21675              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21676              CONFIG_SHELL=$as_dir/$as_base
21677              export CONFIG_SHELL
21678              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21679            fi;;
21680          esac
21681        done
21682 done
21683 ;;
21684   esac
21685
21686   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21687   # uniformly replaced by the line number.  The first 'sed' inserts a
21688   # line-number line before each line; the second 'sed' does the real
21689   # work.  The second script uses 'N' to pair each line-number line
21690   # with the numbered line, and appends trailing '-' during
21691   # substitution so that $LINENO is not a special case at line end.
21692   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21693   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21694   sed '=' <$as_myself |
21695     sed '
21696       N
21697       s,$,-,
21698       : loop
21699       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21700       t loop
21701       s,-$,,
21702       s,^['$as_cr_digits']*\n,,
21703     ' >$as_me.lineno &&
21704   chmod +x $as_me.lineno ||
21705     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21706 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21707    { (exit 1); exit 1; }; }
21708
21709   # Don't try to exec as it changes $[0], causing all sort of problems
21710   # (the dirname of $[0] is not the place where we might find the
21711   # original and so on.  Autoconf is especially sensible to this).
21712   . ./$as_me.lineno
21713   # Exit status is that of the last command.
21714   exit
21715 }
21716
21717
21718 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21719   *c*,-n*) ECHO_N= ECHO_C='
21720 ' ECHO_T='      ' ;;
21721   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21722   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21723 esac
21724
21725 if expr a : '\(a\)' >/dev/null 2>&1; then
21726   as_expr=expr
21727 else
21728   as_expr=false
21729 fi
21730
21731 rm -f conf$$ conf$$.exe conf$$.file
21732 echo >conf$$.file
21733 if ln -s conf$$.file conf$$ 2>/dev/null; then
21734   # We could just check for DJGPP; but this test a) works b) is more generic
21735   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21736   if test -f conf$$.exe; then
21737     # Don't use ln at all; we don't have any links
21738     as_ln_s='cp -p'
21739   else
21740     as_ln_s='ln -s'
21741   fi
21742 elif ln conf$$.file conf$$ 2>/dev/null; then
21743   as_ln_s=ln
21744 else
21745   as_ln_s='cp -p'
21746 fi
21747 rm -f conf$$ conf$$.exe conf$$.file
21748
21749 if mkdir -p . 2>/dev/null; then
21750   as_mkdir_p=:
21751 else
21752   test -d ./-p && rmdir ./-p
21753   as_mkdir_p=false
21754 fi
21755
21756 as_executable_p="test -f"
21757
21758 # Sed expression to map a string onto a valid CPP name.
21759 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21760
21761 # Sed expression to map a string onto a valid variable name.
21762 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21763
21764
21765 # IFS
21766 # We need space, tab and new line, in precisely that order.
21767 as_nl='
21768 '
21769 IFS="   $as_nl"
21770
21771 # CDPATH.
21772 $as_unset CDPATH
21773
21774 exec 6>&1
21775
21776 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21777 # report actual input values of CONFIG_FILES etc. instead of their
21778 # values after options handling.  Logging --version etc. is OK.
21779 exec 5>>config.log
21780 {
21781   echo
21782   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21783 ## Running $as_me. ##
21784 _ASBOX
21785 } >&5
21786 cat >&5 <<_CSEOF
21787
21788 This file was extended by $as_me, which was
21789 generated by GNU Autoconf 2.59.  Invocation command line was
21790
21791   CONFIG_FILES    = $CONFIG_FILES
21792   CONFIG_HEADERS  = $CONFIG_HEADERS
21793   CONFIG_LINKS    = $CONFIG_LINKS
21794   CONFIG_COMMANDS = $CONFIG_COMMANDS
21795   $ $0 $@
21796
21797 _CSEOF
21798 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21799 echo >&5
21800 _ACEOF
21801
21802 # Files that config.status was made for.
21803 if test -n "$ac_config_files"; then
21804   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21805 fi
21806
21807 if test -n "$ac_config_headers"; then
21808   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21809 fi
21810
21811 if test -n "$ac_config_links"; then
21812   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21813 fi
21814
21815 if test -n "$ac_config_commands"; then
21816   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21817 fi
21818
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21820
21821 ac_cs_usage="\
21822 \`$as_me' instantiates files from templates according to the
21823 current configuration.
21824
21825 Usage: $0 [OPTIONS] [FILE]...
21826
21827   -h, --help       print this help, then exit
21828   -V, --version    print version number, then exit
21829   -q, --quiet      do not print progress messages
21830   -d, --debug      don't remove temporary files
21831       --recheck    update $as_me by reconfiguring in the same conditions
21832   --file=FILE[:TEMPLATE]
21833                    instantiate the configuration file FILE
21834   --header=FILE[:TEMPLATE]
21835                    instantiate the configuration header FILE
21836
21837 Configuration files:
21838 $config_files
21839
21840 Configuration headers:
21841 $config_headers
21842
21843 Configuration commands:
21844 $config_commands
21845
21846 Report bugs to <bug-autoconf@gnu.org>."
21847 _ACEOF
21848
21849 cat >>$CONFIG_STATUS <<_ACEOF
21850 ac_cs_version="\\
21851 config.status
21852 configured by $0, generated by GNU Autoconf 2.59,
21853   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21854
21855 Copyright (C) 2003 Free Software Foundation, Inc.
21856 This config.status script is free software; the Free Software Foundation
21857 gives unlimited permission to copy, distribute and modify it."
21858 srcdir=$srcdir
21859 INSTALL="$INSTALL"
21860 _ACEOF
21861
21862 cat >>$CONFIG_STATUS <<\_ACEOF
21863 # If no file are specified by the user, then we need to provide default
21864 # value.  By we need to know if files were specified by the user.
21865 ac_need_defaults=:
21866 while test $# != 0
21867 do
21868   case $1 in
21869   --*=*)
21870     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21871     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21872     ac_shift=:
21873     ;;
21874   -*)
21875     ac_option=$1
21876     ac_optarg=$2
21877     ac_shift=shift
21878     ;;
21879   *) # This is not an option, so the user has probably given explicit
21880      # arguments.
21881      ac_option=$1
21882      ac_need_defaults=false;;
21883   esac
21884
21885   case $ac_option in
21886   # Handling of the options.
21887 _ACEOF
21888 cat >>$CONFIG_STATUS <<\_ACEOF
21889   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21890     ac_cs_recheck=: ;;
21891   --version | --vers* | -V )
21892     echo "$ac_cs_version"; exit 0 ;;
21893   --he | --h)
21894     # Conflict between --help and --header
21895     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21896 Try \`$0 --help' for more information." >&5
21897 echo "$as_me: error: ambiguous option: $1
21898 Try \`$0 --help' for more information." >&2;}
21899    { (exit 1); exit 1; }; };;
21900   --help | --hel | -h )
21901     echo "$ac_cs_usage"; exit 0 ;;
21902   --debug | --d* | -d )
21903     debug=: ;;
21904   --file | --fil | --fi | --f )
21905     $ac_shift
21906     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21907     ac_need_defaults=false;;
21908   --header | --heade | --head | --hea )
21909     $ac_shift
21910     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21911     ac_need_defaults=false;;
21912   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21913   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21914     ac_cs_silent=: ;;
21915
21916   # This is an error.
21917   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21918 Try \`$0 --help' for more information." >&5
21919 echo "$as_me: error: unrecognized option: $1
21920 Try \`$0 --help' for more information." >&2;}
21921    { (exit 1); exit 1; }; } ;;
21922
21923   *) ac_config_targets="$ac_config_targets $1" ;;
21924
21925   esac
21926   shift
21927 done
21928
21929 ac_configure_extra_args=
21930
21931 if $ac_cs_silent; then
21932   exec 6>/dev/null
21933   ac_configure_extra_args="$ac_configure_extra_args --silent"
21934 fi
21935
21936 _ACEOF
21937 cat >>$CONFIG_STATUS <<_ACEOF
21938 if \$ac_cs_recheck; then
21939   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21940   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21941 fi
21942
21943 _ACEOF
21944
21945
21946
21947
21948
21949 cat >>$CONFIG_STATUS <<\_ACEOF
21950 for ac_config_target in $ac_config_targets
21951 do
21952   case "$ac_config_target" in
21953   # Handling of arguments.
21954   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21955   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21956   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21957   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21958   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21959   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21960   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21961   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21962   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21963   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21964   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21965   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21966   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21967   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21968   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21969   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21970   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21971   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21972   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21973   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21974   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21975   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
21976   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
21977   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
21978   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
21979   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
21980   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21981   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21982   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21983   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21984   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21985   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21986   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21987   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21988   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21989   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21990   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21991   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
21992   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
21993   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21994   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21995   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21996   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21997   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21998   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21999   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22000   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22001   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22002   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22003   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22004   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22005   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22006   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22007   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22008   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22009   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22010   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22011   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22012   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22013   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22014   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22015   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22016   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22017   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22018   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22019   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22020   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22021   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22022   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22023   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22024   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22025   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22026   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22027   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22028   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22029   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22030   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22031   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22032   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22033   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22034   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22035   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22036   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22037   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22038   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22039   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22040   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22041   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22042   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22043   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22044   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22045   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22046   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22047   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22048   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22049   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22050   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22051   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22052   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22053   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22054   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22055   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22056 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22057    { (exit 1); exit 1; }; };;
22058   esac
22059 done
22060
22061 # If the user did not use the arguments to specify the items to instantiate,
22062 # then the envvar interface is used.  Set only those that are not.
22063 # We use the long form for the default assignment because of an extremely
22064 # bizarre bug on SunOS 4.1.3.
22065 if $ac_need_defaults; then
22066   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22067   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22068   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22069 fi
22070
22071 # Have a temporary directory for convenience.  Make it in the build tree
22072 # simply because there is no reason to put it here, and in addition,
22073 # creating and moving files from /tmp can sometimes cause problems.
22074 # Create a temporary directory, and hook for its removal unless debugging.
22075 $debug ||
22076 {
22077   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22078   trap '{ (exit 1); exit 1; }' 1 2 13 15
22079 }
22080
22081 # Create a (secure) tmp directory for tmp files.
22082
22083 {
22084   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22085   test -n "$tmp" && test -d "$tmp"
22086 }  ||
22087 {
22088   tmp=./confstat$$-$RANDOM
22089   (umask 077 && mkdir $tmp)
22090 } ||
22091 {
22092    echo "$me: cannot create a temporary directory in ." >&2
22093    { (exit 1); exit 1; }
22094 }
22095
22096 _ACEOF
22097
22098 cat >>$CONFIG_STATUS <<_ACEOF
22099
22100 #
22101 # CONFIG_FILES section.
22102 #
22103
22104 # No need to generate the scripts if there are no CONFIG_FILES.
22105 # This happens for instance when ./config.status config.h
22106 if test -n "\$CONFIG_FILES"; then
22107   # Protect against being on the right side of a sed subst in config.status.
22108   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22109    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22110 s,@SHELL@,$SHELL,;t t
22111 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22112 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22113 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22114 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22115 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22116 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22117 s,@exec_prefix@,$exec_prefix,;t t
22118 s,@prefix@,$prefix,;t t
22119 s,@program_transform_name@,$program_transform_name,;t t
22120 s,@bindir@,$bindir,;t t
22121 s,@sbindir@,$sbindir,;t t
22122 s,@libexecdir@,$libexecdir,;t t
22123 s,@datadir@,$datadir,;t t
22124 s,@sysconfdir@,$sysconfdir,;t t
22125 s,@sharedstatedir@,$sharedstatedir,;t t
22126 s,@localstatedir@,$localstatedir,;t t
22127 s,@libdir@,$libdir,;t t
22128 s,@includedir@,$includedir,;t t
22129 s,@oldincludedir@,$oldincludedir,;t t
22130 s,@infodir@,$infodir,;t t
22131 s,@mandir@,$mandir,;t t
22132 s,@build_alias@,$build_alias,;t t
22133 s,@host_alias@,$host_alias,;t t
22134 s,@target_alias@,$target_alias,;t t
22135 s,@DEFS@,$DEFS,;t t
22136 s,@ECHO_C@,$ECHO_C,;t t
22137 s,@ECHO_N@,$ECHO_N,;t t
22138 s,@ECHO_T@,$ECHO_T,;t t
22139 s,@LIBS@,$LIBS,;t t
22140 s,@BUILD_DIR@,$BUILD_DIR,;t t
22141 s,@TRUEPRG@,$TRUEPRG,;t t
22142 s,@FALSEPRG@,$FALSEPRG,;t t
22143 s,@VERSION@,$VERSION,;t t
22144 s,@DATE@,$DATE,;t t
22145 s,@LSMDATE@,$LSMDATE,;t t
22146 s,@CC@,$CC,;t t
22147 s,@CFLAGS@,$CFLAGS,;t t
22148 s,@LDFLAGS@,$LDFLAGS,;t t
22149 s,@CPPFLAGS@,$CPPFLAGS,;t t
22150 s,@ac_ct_CC@,$ac_ct_CC,;t t
22151 s,@EXEEXT@,$EXEEXT,;t t
22152 s,@OBJEXT@,$OBJEXT,;t t
22153 s,@CXX@,$CXX,;t t
22154 s,@CXXFLAGS@,$CXXFLAGS,;t t
22155 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22156 s,@CPP@,$CPP,;t t
22157 s,@EGREP@,$EGREP,;t t
22158 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22159 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22160 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22161 s,@RANLIB@,$RANLIB,;t t
22162 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22163 s,@MV@,$MV,;t t
22164 s,@RM@,$RM,;t t
22165 s,@CP@,$CP,;t t
22166 s,@SED@,$SED,;t t
22167 s,@ECHO@,$ECHO,;t t
22168 s,@CMP@,$CMP,;t t
22169 s,@TBL@,$TBL,;t t
22170 s,@AR@,$AR,;t t
22171 s,@OPENSSL@,$OPENSSL,;t t
22172 s,@MTX@,$MTX,;t t
22173 s,@MKISOFS@,$MKISOFS,;t t
22174 s,@PYTHON@,$PYTHON,;t t
22175 s,@GROWISOFS@,$GROWISOFS,;t t
22176 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22177 s,@PKGCONFIG@,$PKGCONFIG,;t t
22178 s,@WXCONFIG@,$WXCONFIG,;t t
22179 s,@CDRECORD@,$CDRECORD,;t t
22180 s,@PIDOF@,$PIDOF,;t t
22181 s,@AWK@,$AWK,;t t
22182 s,@ARFLAGS@,$ARFLAGS,;t t
22183 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22184 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22185 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22186 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22187 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22188 s,@build@,$build,;t t
22189 s,@build_cpu@,$build_cpu,;t t
22190 s,@build_vendor@,$build_vendor,;t t
22191 s,@build_os@,$build_os,;t t
22192 s,@host@,$host,;t t
22193 s,@host_cpu@,$host_cpu,;t t
22194 s,@host_vendor@,$host_vendor,;t t
22195 s,@host_os@,$host_os,;t t
22196 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22197 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22198 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22199 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22200 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22201 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22202 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22203 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22204 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22205 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22206 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22207 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22208 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22209 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22210 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22211 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22212 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22213 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22214 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22215 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22216 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22217 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22218 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22219 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22220 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22221 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22222 s,@MSGFMT@,$MSGFMT,;t t
22223 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22224 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22225 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22226 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22227 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22228 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22229 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22230 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22231 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22232 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22233 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22234 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22235 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22236 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22237 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22238 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22239 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22240 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22241 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22242 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22243 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22244 s,@GNOME_DIR@,$GNOME_DIR,;t t
22245 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22246 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22247 s,@WX_DIR@,$WX_DIR,;t t
22248 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22249 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22250 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22251 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22252 s,@STATIC_FD@,$STATIC_FD,;t t
22253 s,@STATIC_SD@,$STATIC_SD,;t t
22254 s,@STATIC_DIR@,$STATIC_DIR,;t t
22255 s,@STATIC_CONS@,$STATIC_CONS,;t t
22256 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22257 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22258 s,@ALL_DIRS@,$ALL_DIRS,;t t
22259 s,@CONS_INC@,$CONS_INC,;t t
22260 s,@CONS_OBJ@,$CONS_OBJ,;t t
22261 s,@CONS_SRC@,$CONS_SRC,;t t
22262 s,@CONS_LIBS@,$CONS_LIBS,;t t
22263 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22264 s,@READLINE_SRC@,$READLINE_SRC,;t t
22265 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22266 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22267 s,@working_dir@,$working_dir,;t t
22268 s,@scriptdir@,$scriptdir,;t t
22269 s,@dump_email@,$dump_email,;t t
22270 s,@job_email@,$job_email,;t t
22271 s,@smtp_host@,$smtp_host,;t t
22272 s,@piddir@,$piddir,;t t
22273 s,@subsysdir@,$subsysdir,;t t
22274 s,@baseport@,$baseport,;t t
22275 s,@dir_port@,$dir_port,;t t
22276 s,@fd_port@,$fd_port,;t t
22277 s,@sd_port@,$sd_port,;t t
22278 s,@dir_password@,$dir_password,;t t
22279 s,@fd_password@,$fd_password,;t t
22280 s,@sd_password@,$sd_password,;t t
22281 s,@mon_dir_password@,$mon_dir_password,;t t
22282 s,@mon_fd_password@,$mon_fd_password,;t t
22283 s,@mon_sd_password@,$mon_sd_password,;t t
22284 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22285 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22286 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22287 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22288 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22289 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22290 s,@dir_user@,$dir_user,;t t
22291 s,@dir_group@,$dir_group,;t t
22292 s,@sd_user@,$sd_user,;t t
22293 s,@sd_group@,$sd_group,;t t
22294 s,@fd_user@,$fd_user,;t t
22295 s,@fd_group@,$fd_group,;t t
22296 s,@SBINPERM@,$SBINPERM,;t t
22297 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22298 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22299 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22300 s,@cats@,$cats,;t t
22301 s,@DB_NAME@,$DB_NAME,;t t
22302 s,@GETCONF@,$GETCONF,;t t
22303 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22304 s,@X_CFLAGS@,$X_CFLAGS,;t t
22305 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22306 s,@X_LIBS@,$X_LIBS,;t t
22307 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22308 s,@LIBOBJS@,$LIBOBJS,;t t
22309 s,@ALLOCA@,$ALLOCA,;t t
22310 s,@FDLIBS@,$FDLIBS,;t t
22311 s,@DEBUG@,$DEBUG,;t t
22312 s,@DINCLUDE@,$DINCLUDE,;t t
22313 s,@DLIB@,$DLIB,;t t
22314 s,@DB_LIBS@,$DB_LIBS,;t t
22315 s,@WCFLAGS@,$WCFLAGS,;t t
22316 s,@WLDFLAGS@,$WLDFLAGS,;t t
22317 s,@OBJLIST@,$OBJLIST,;t t
22318 s,@hostname@,$hostname,;t t
22319 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22320 s,@PSCMD@,$PSCMD,;t t
22321 s,@WIN32@,$WIN32,;t t
22322 s,@MACOSX@,$MACOSX,;t t
22323 s,@DISTNAME@,$DISTNAME,;t t
22324 s,@DISTVER@,$DISTVER,;t t
22325 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22326 /@MCOMMON@/r $MCOMMON
22327 s,@MCOMMON@,,;t t
22328 CEOF
22329
22330 _ACEOF
22331
22332   cat >>$CONFIG_STATUS <<\_ACEOF
22333   # Split the substitutions into bite-sized pieces for seds with
22334   # small command number limits, like on Digital OSF/1 and HP-UX.
22335   ac_max_sed_lines=48
22336   ac_sed_frag=1 # Number of current file.
22337   ac_beg=1 # First line for current file.
22338   ac_end=$ac_max_sed_lines # Line after last line for current file.
22339   ac_more_lines=:
22340   ac_sed_cmds=
22341   while $ac_more_lines; do
22342     if test $ac_beg -gt 1; then
22343       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22344     else
22345       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22346     fi
22347     if test ! -s $tmp/subs.frag; then
22348       ac_more_lines=false
22349     else
22350       # The purpose of the label and of the branching condition is to
22351       # speed up the sed processing (if there are no `@' at all, there
22352       # is no need to browse any of the substitutions).
22353       # These are the two extra sed commands mentioned above.
22354       (echo ':t
22355   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22356       if test -z "$ac_sed_cmds"; then
22357         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22358       else
22359         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22360       fi
22361       ac_sed_frag=`expr $ac_sed_frag + 1`
22362       ac_beg=$ac_end
22363       ac_end=`expr $ac_end + $ac_max_sed_lines`
22364     fi
22365   done
22366   if test -z "$ac_sed_cmds"; then
22367     ac_sed_cmds=cat
22368   fi
22369 fi # test -n "$CONFIG_FILES"
22370
22371 _ACEOF
22372 cat >>$CONFIG_STATUS <<\_ACEOF
22373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22374   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22375   case $ac_file in
22376   - | *:- | *:-:* ) # input from stdin
22377         cat >$tmp/stdin
22378         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22379         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22380   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22381         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22382   * )   ac_file_in=$ac_file.in ;;
22383   esac
22384
22385   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22386   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22388          X"$ac_file" : 'X\(//\)[^/]' \| \
22389          X"$ac_file" : 'X\(//\)$' \| \
22390          X"$ac_file" : 'X\(/\)' \| \
22391          .     : '\(.\)' 2>/dev/null ||
22392 echo X"$ac_file" |
22393     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22394           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22395           /^X\(\/\/\)$/{ s//\1/; q; }
22396           /^X\(\/\).*/{ s//\1/; q; }
22397           s/.*/./; q'`
22398   { if $as_mkdir_p; then
22399     mkdir -p "$ac_dir"
22400   else
22401     as_dir="$ac_dir"
22402     as_dirs=
22403     while test ! -d "$as_dir"; do
22404       as_dirs="$as_dir $as_dirs"
22405       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22407          X"$as_dir" : 'X\(//\)[^/]' \| \
22408          X"$as_dir" : 'X\(//\)$' \| \
22409          X"$as_dir" : 'X\(/\)' \| \
22410          .     : '\(.\)' 2>/dev/null ||
22411 echo X"$as_dir" |
22412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22413           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22414           /^X\(\/\/\)$/{ s//\1/; q; }
22415           /^X\(\/\).*/{ s//\1/; q; }
22416           s/.*/./; q'`
22417     done
22418     test ! -n "$as_dirs" || mkdir $as_dirs
22419   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22421    { (exit 1); exit 1; }; }; }
22422
22423   ac_builddir=.
22424
22425 if test "$ac_dir" != .; then
22426   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22427   # A "../" for each directory in $ac_dir_suffix.
22428   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22429 else
22430   ac_dir_suffix= ac_top_builddir=
22431 fi
22432
22433 case $srcdir in
22434   .)  # No --srcdir option.  We are building in place.
22435     ac_srcdir=.
22436     if test -z "$ac_top_builddir"; then
22437        ac_top_srcdir=.
22438     else
22439        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22440     fi ;;
22441   [\\/]* | ?:[\\/]* )  # Absolute path.
22442     ac_srcdir=$srcdir$ac_dir_suffix;
22443     ac_top_srcdir=$srcdir ;;
22444   *) # Relative path.
22445     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22446     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22447 esac
22448
22449 # Do not use `cd foo && pwd` to compute absolute paths, because
22450 # the directories may not exist.
22451 case `pwd` in
22452 .) ac_abs_builddir="$ac_dir";;
22453 *)
22454   case "$ac_dir" in
22455   .) ac_abs_builddir=`pwd`;;
22456   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22457   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22458   esac;;
22459 esac
22460 case $ac_abs_builddir in
22461 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22462 *)
22463   case ${ac_top_builddir}. in
22464   .) ac_abs_top_builddir=$ac_abs_builddir;;
22465   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22466   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22467   esac;;
22468 esac
22469 case $ac_abs_builddir in
22470 .) ac_abs_srcdir=$ac_srcdir;;
22471 *)
22472   case $ac_srcdir in
22473   .) ac_abs_srcdir=$ac_abs_builddir;;
22474   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22475   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22476   esac;;
22477 esac
22478 case $ac_abs_builddir in
22479 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22480 *)
22481   case $ac_top_srcdir in
22482   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22483   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22484   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22485   esac;;
22486 esac
22487
22488
22489   case $INSTALL in
22490   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22491   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22492   esac
22493
22494   if test x"$ac_file" != x-; then
22495     { echo "$as_me:$LINENO: creating $ac_file" >&5
22496 echo "$as_me: creating $ac_file" >&6;}
22497     rm -f "$ac_file"
22498   fi
22499   # Let's still pretend it is `configure' which instantiates (i.e., don't
22500   # use $as_me), people would be surprised to read:
22501   #    /* config.h.  Generated by config.status.  */
22502   if test x"$ac_file" = x-; then
22503     configure_input=
22504   else
22505     configure_input="$ac_file.  "
22506   fi
22507   configure_input=$configure_input"Generated from `echo $ac_file_in |
22508                                      sed 's,.*/,,'` by configure."
22509
22510   # First look for the input files in the build tree, otherwise in the
22511   # src tree.
22512   ac_file_inputs=`IFS=:
22513     for f in $ac_file_in; do
22514       case $f in
22515       -) echo $tmp/stdin ;;
22516       [\\/$]*)
22517          # Absolute (can't be DOS-style, as IFS=:)
22518          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22519 echo "$as_me: error: cannot find input file: $f" >&2;}
22520    { (exit 1); exit 1; }; }
22521          echo "$f";;
22522       *) # Relative
22523          if test -f "$f"; then
22524            # Build tree
22525            echo "$f"
22526          elif test -f "$srcdir/$f"; then
22527            # Source tree
22528            echo "$srcdir/$f"
22529          else
22530            # /dev/null tree
22531            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22532 echo "$as_me: error: cannot find input file: $f" >&2;}
22533    { (exit 1); exit 1; }; }
22534          fi;;
22535       esac
22536     done` || { (exit 1); exit 1; }
22537 _ACEOF
22538 cat >>$CONFIG_STATUS <<_ACEOF
22539   sed "$ac_vpsub
22540 $extrasub
22541 _ACEOF
22542 cat >>$CONFIG_STATUS <<\_ACEOF
22543 :t
22544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22545 s,@configure_input@,$configure_input,;t t
22546 s,@srcdir@,$ac_srcdir,;t t
22547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22548 s,@top_srcdir@,$ac_top_srcdir,;t t
22549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22550 s,@builddir@,$ac_builddir,;t t
22551 s,@abs_builddir@,$ac_abs_builddir,;t t
22552 s,@top_builddir@,$ac_top_builddir,;t t
22553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22554 s,@INSTALL@,$ac_INSTALL,;t t
22555 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22556   rm -f $tmp/stdin
22557   if test x"$ac_file" != x-; then
22558     mv $tmp/out $ac_file
22559   else
22560     cat $tmp/out
22561     rm -f $tmp/out
22562   fi
22563
22564 done
22565 _ACEOF
22566 cat >>$CONFIG_STATUS <<\_ACEOF
22567
22568 #
22569 # CONFIG_HEADER section.
22570 #
22571
22572 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22573 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22574 #
22575 # ac_d sets the value in "#define NAME VALUE" lines.
22576 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22577 ac_dB='[         ].*$,\1#\2'
22578 ac_dC=' '
22579 ac_dD=',;t'
22580 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22581 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22582 ac_uB='$,\1#\2define\3'
22583 ac_uC=' '
22584 ac_uD=',;t'
22585
22586 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22587   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22588   case $ac_file in
22589   - | *:- | *:-:* ) # input from stdin
22590         cat >$tmp/stdin
22591         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22592         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22593   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22594         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22595   * )   ac_file_in=$ac_file.in ;;
22596   esac
22597
22598   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22599 echo "$as_me: creating $ac_file" >&6;}
22600
22601   # First look for the input files in the build tree, otherwise in the
22602   # src tree.
22603   ac_file_inputs=`IFS=:
22604     for f in $ac_file_in; do
22605       case $f in
22606       -) echo $tmp/stdin ;;
22607       [\\/$]*)
22608          # Absolute (can't be DOS-style, as IFS=:)
22609          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22610 echo "$as_me: error: cannot find input file: $f" >&2;}
22611    { (exit 1); exit 1; }; }
22612          # Do quote $f, to prevent DOS paths from being IFS'd.
22613          echo "$f";;
22614       *) # Relative
22615          if test -f "$f"; then
22616            # Build tree
22617            echo "$f"
22618          elif test -f "$srcdir/$f"; then
22619            # Source tree
22620            echo "$srcdir/$f"
22621          else
22622            # /dev/null tree
22623            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22624 echo "$as_me: error: cannot find input file: $f" >&2;}
22625    { (exit 1); exit 1; }; }
22626          fi;;
22627       esac
22628     done` || { (exit 1); exit 1; }
22629   # Remove the trailing spaces.
22630   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22631
22632 _ACEOF
22633
22634 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22635 # `conftest.undefs', that substitutes the proper values into
22636 # config.h.in to produce config.h.  The first handles `#define'
22637 # templates, and the second `#undef' templates.
22638 # And first: Protect against being on the right side of a sed subst in
22639 # config.status.  Protect against being in an unquoted here document
22640 # in config.status.
22641 rm -f conftest.defines conftest.undefs
22642 # Using a here document instead of a string reduces the quoting nightmare.
22643 # Putting comments in sed scripts is not portable.
22644 #
22645 # `end' is used to avoid that the second main sed command (meant for
22646 # 0-ary CPP macros) applies to n-ary macro definitions.
22647 # See the Autoconf documentation for `clear'.
22648 cat >confdef2sed.sed <<\_ACEOF
22649 s/[\\&,]/\\&/g
22650 s,[\\$`],\\&,g
22651 t clear
22652 : clear
22653 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22654 t end
22655 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22656 : end
22657 _ACEOF
22658 # If some macros were called several times there might be several times
22659 # the same #defines, which is useless.  Nevertheless, we may not want to
22660 # sort them, since we want the *last* AC-DEFINE to be honored.
22661 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22662 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22663 rm -f confdef2sed.sed
22664
22665 # This sed command replaces #undef with comments.  This is necessary, for
22666 # example, in the case of _POSIX_SOURCE, which is predefined and required
22667 # on some systems where configure will not decide to define it.
22668 cat >>conftest.undefs <<\_ACEOF
22669 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22670 _ACEOF
22671
22672 # Break up conftest.defines because some shells have a limit on the size
22673 # of here documents, and old seds have small limits too (100 cmds).
22674 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22675 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22676 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22677 echo '  :' >>$CONFIG_STATUS
22678 rm -f conftest.tail
22679 while grep . conftest.defines >/dev/null
22680 do
22681   # Write a limited-size here document to $tmp/defines.sed.
22682   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22683   # Speed up: don't consider the non `#define' lines.
22684   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22685   # Work around the forget-to-reset-the-flag bug.
22686   echo 't clr' >>$CONFIG_STATUS
22687   echo ': clr' >>$CONFIG_STATUS
22688   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22689   echo 'CEOF
22690   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22691   rm -f $tmp/in
22692   mv $tmp/out $tmp/in
22693 ' >>$CONFIG_STATUS
22694   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22695   rm -f conftest.defines
22696   mv conftest.tail conftest.defines
22697 done
22698 rm -f conftest.defines
22699 echo '  fi # grep' >>$CONFIG_STATUS
22700 echo >>$CONFIG_STATUS
22701
22702 # Break up conftest.undefs because some shells have a limit on the size
22703 # of here documents, and old seds have small limits too (100 cmds).
22704 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22705 rm -f conftest.tail
22706 while grep . conftest.undefs >/dev/null
22707 do
22708   # Write a limited-size here document to $tmp/undefs.sed.
22709   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22710   # Speed up: don't consider the non `#undef'
22711   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22712   # Work around the forget-to-reset-the-flag bug.
22713   echo 't clr' >>$CONFIG_STATUS
22714   echo ': clr' >>$CONFIG_STATUS
22715   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22716   echo 'CEOF
22717   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22718   rm -f $tmp/in
22719   mv $tmp/out $tmp/in
22720 ' >>$CONFIG_STATUS
22721   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22722   rm -f conftest.undefs
22723   mv conftest.tail conftest.undefs
22724 done
22725 rm -f conftest.undefs
22726
22727 cat >>$CONFIG_STATUS <<\_ACEOF
22728   # Let's still pretend it is `configure' which instantiates (i.e., don't
22729   # use $as_me), people would be surprised to read:
22730   #    /* config.h.  Generated by config.status.  */
22731   if test x"$ac_file" = x-; then
22732     echo "/* Generated by configure.  */" >$tmp/config.h
22733   else
22734     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22735   fi
22736   cat $tmp/in >>$tmp/config.h
22737   rm -f $tmp/in
22738   if test x"$ac_file" != x-; then
22739     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22740       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22741 echo "$as_me: $ac_file is unchanged" >&6;}
22742     else
22743       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22745          X"$ac_file" : 'X\(//\)[^/]' \| \
22746          X"$ac_file" : 'X\(//\)$' \| \
22747          X"$ac_file" : 'X\(/\)' \| \
22748          .     : '\(.\)' 2>/dev/null ||
22749 echo X"$ac_file" |
22750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22751           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22752           /^X\(\/\/\)$/{ s//\1/; q; }
22753           /^X\(\/\).*/{ s//\1/; q; }
22754           s/.*/./; q'`
22755       { if $as_mkdir_p; then
22756     mkdir -p "$ac_dir"
22757   else
22758     as_dir="$ac_dir"
22759     as_dirs=
22760     while test ! -d "$as_dir"; do
22761       as_dirs="$as_dir $as_dirs"
22762       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22764          X"$as_dir" : 'X\(//\)[^/]' \| \
22765          X"$as_dir" : 'X\(//\)$' \| \
22766          X"$as_dir" : 'X\(/\)' \| \
22767          .     : '\(.\)' 2>/dev/null ||
22768 echo X"$as_dir" |
22769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22770           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22771           /^X\(\/\/\)$/{ s//\1/; q; }
22772           /^X\(\/\).*/{ s//\1/; q; }
22773           s/.*/./; q'`
22774     done
22775     test ! -n "$as_dirs" || mkdir $as_dirs
22776   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22777 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22778    { (exit 1); exit 1; }; }; }
22779
22780       rm -f $ac_file
22781       mv $tmp/config.h $ac_file
22782     fi
22783   else
22784     cat $tmp/config.h
22785     rm -f $tmp/config.h
22786   fi
22787 done
22788 _ACEOF
22789 cat >>$CONFIG_STATUS <<\_ACEOF
22790
22791 #
22792 # CONFIG_COMMANDS section.
22793 #
22794 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22795   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22796   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22797   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22798 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22799          X"$ac_dest" : 'X\(//\)[^/]' \| \
22800          X"$ac_dest" : 'X\(//\)$' \| \
22801          X"$ac_dest" : 'X\(/\)' \| \
22802          .     : '\(.\)' 2>/dev/null ||
22803 echo X"$ac_dest" |
22804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22805           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22806           /^X\(\/\/\)$/{ s//\1/; q; }
22807           /^X\(\/\).*/{ s//\1/; q; }
22808           s/.*/./; q'`
22809   { if $as_mkdir_p; then
22810     mkdir -p "$ac_dir"
22811   else
22812     as_dir="$ac_dir"
22813     as_dirs=
22814     while test ! -d "$as_dir"; do
22815       as_dirs="$as_dir $as_dirs"
22816       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22817 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22818          X"$as_dir" : 'X\(//\)[^/]' \| \
22819          X"$as_dir" : 'X\(//\)$' \| \
22820          X"$as_dir" : 'X\(/\)' \| \
22821          .     : '\(.\)' 2>/dev/null ||
22822 echo X"$as_dir" |
22823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22824           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22825           /^X\(\/\/\)$/{ s//\1/; q; }
22826           /^X\(\/\).*/{ s//\1/; q; }
22827           s/.*/./; q'`
22828     done
22829     test ! -n "$as_dirs" || mkdir $as_dirs
22830   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22831 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22832    { (exit 1); exit 1; }; }; }
22833
22834   ac_builddir=.
22835
22836 if test "$ac_dir" != .; then
22837   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22838   # A "../" for each directory in $ac_dir_suffix.
22839   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22840 else
22841   ac_dir_suffix= ac_top_builddir=
22842 fi
22843
22844 case $srcdir in
22845   .)  # No --srcdir option.  We are building in place.
22846     ac_srcdir=.
22847     if test -z "$ac_top_builddir"; then
22848        ac_top_srcdir=.
22849     else
22850        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22851     fi ;;
22852   [\\/]* | ?:[\\/]* )  # Absolute path.
22853     ac_srcdir=$srcdir$ac_dir_suffix;
22854     ac_top_srcdir=$srcdir ;;
22855   *) # Relative path.
22856     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22857     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22858 esac
22859
22860 # Do not use `cd foo && pwd` to compute absolute paths, because
22861 # the directories may not exist.
22862 case `pwd` in
22863 .) ac_abs_builddir="$ac_dir";;
22864 *)
22865   case "$ac_dir" in
22866   .) ac_abs_builddir=`pwd`;;
22867   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22868   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22869   esac;;
22870 esac
22871 case $ac_abs_builddir in
22872 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22873 *)
22874   case ${ac_top_builddir}. in
22875   .) ac_abs_top_builddir=$ac_abs_builddir;;
22876   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22877   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22878   esac;;
22879 esac
22880 case $ac_abs_builddir in
22881 .) ac_abs_srcdir=$ac_srcdir;;
22882 *)
22883   case $ac_srcdir in
22884   .) ac_abs_srcdir=$ac_abs_builddir;;
22885   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22886   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22887   esac;;
22888 esac
22889 case $ac_abs_builddir in
22890 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22891 *)
22892   case $ac_top_srcdir in
22893   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22894   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22895   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22896   esac;;
22897 esac
22898
22899
22900   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22901 echo "$as_me: executing $ac_dest commands" >&6;}
22902   case $ac_dest in
22903     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22904  ;;
22905   esac
22906 done
22907 _ACEOF
22908
22909 cat >>$CONFIG_STATUS <<\_ACEOF
22910
22911 { (exit 0); exit 0; }
22912 _ACEOF
22913 chmod +x $CONFIG_STATUS
22914 ac_clean_files=$ac_clean_files_save
22915
22916
22917 # configure is writing to config.log, and then calls config.status.
22918 # config.status does its own redirection, appending to config.log.
22919 # Unfortunately, on DOS this fails, as config.log is still kept open
22920 # by configure, so config.status won't be able to write to it; its
22921 # output is simply discarded.  So we exec the FD to /dev/null,
22922 # effectively closing config.log, so it can be properly (re)opened and
22923 # appended to by config.status.  When coming back to configure, we
22924 # need to make the FD available again.
22925 if test "$no_create" != yes; then
22926   ac_cs_success=:
22927   ac_config_status_args=
22928   test "$silent" = yes &&
22929     ac_config_status_args="$ac_config_status_args --quiet"
22930   exec 5>/dev/null
22931   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22932   exec 5>>config.log
22933   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22934   # would make configure fail if this is the last instruction.
22935   $ac_cs_success || { (exit 1); exit 1; }
22936 fi
22937
22938
22939 cd scripts
22940 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22941 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22942 cd ..
22943
22944 c=src/cats
22945
22946 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22947 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22948
22949 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22950 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22951
22952 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22953 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22954
22955 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22956 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22957
22958 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22959 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22960
22961 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22962 chmod 755 $c/sqlite
22963 chmod 755 $c/mysql
22964
22965 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22966    largefile_support="yes"
22967 fi
22968
22969 #
22970 # A whole lot of hand springs to get the compiler version.
22971 #  This is because gcc changed the output in version 3.0
22972 #
22973 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22974 if test "x${CCVERSION}" = "x" ; then
22975   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22976 fi
22977 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22978 if test x"${CXXVERSION}" = x ; then
22979   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22980 fi
22981
22982 if test "x${subsysdir}" = "x${sbindir}" ; then
22983    echo " "
22984    echo " "
22985    echo "You have set --sbindir and --with-subsys-dir"
22986    echo "  both equal to: ${subsysdir} "
22987    echo "  This is not permitted. Please reconfigure."
22988    echo " "
22989    echo "Aborting configuration ..."
22990    echo " "
22991    echo " "
22992    exit 1
22993 fi
22994
22995 if test "x${db_name}" = "xInternal" ; then
22996    echo " "
22997    echo " "
22998    echo "You have not specified either --enable-client-only or one of the"
22999    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23000    echo "  This is not permitted. Please reconfigure."
23001    echo " "
23002    echo "Aborting the configuration ..."
23003    echo " "
23004    echo " "
23005    exit 1
23006 fi
23007
23008 echo "
23009 Configuration on `date`:
23010
23011   Host:                       $host -- ${DISTNAME} ${DISTVER}
23012   Bacula version:             ${VERSION} (${DATE})
23013   Source code location:       ${srcdir}
23014   Install binaries:           ${sbindir}
23015   Install config files:       ${sysconfdir}
23016   Scripts directory:          ${scriptdir}
23017   Working directory:          ${working_dir}
23018   PID directory:              ${piddir}
23019   Subsys directory:           ${subsysdir}
23020   C Compiler:                 ${CC} ${CCVERSION}
23021   C++ Compiler:               ${CXX} ${CXXVERSION}
23022   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23023   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23024   Libraries:                  ${LIBS}
23025   Statically Linked Tools:    ${support_static_tools}
23026   Statically Linked FD:       ${support_static_fd}
23027   Statically Linked SD:       ${support_static_sd}
23028   Statically Linked DIR:      ${support_static_dir}
23029   Statically Linked CONS:     ${support_static_cons}
23030   Database type:              ${db_name}
23031   Database lib:               ${DB_LIBS}
23032
23033   Job Output Email:           ${job_email}
23034   Traceback Email:            ${dump_email}
23035   SMTP Host Address:          ${smtp_host}
23036
23037   Director Port:              ${dir_port}
23038   File daemon Port:           ${fd_port}
23039   Storage daemon Port:        ${sd_port}
23040
23041   Director User:              ${dir_user}
23042   Director Group:             ${dir_group}
23043   Storage Daemon User:        ${sd_user}
23044   Storage DaemonGroup:        ${sd_group}
23045   File Daemon User:           ${fd_user}
23046   File Daemon Group:          ${fd_group}
23047
23048   SQL binaries Directory      ${SQL_BINDIR}
23049
23050   Large file support:         $largefile_support
23051   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23052   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23053   TCP Wrappers support:       ${TCPW_MSG}
23054   ZLIB support:               ${have_zlib}
23055   enable-smartalloc:          ${support_smartalloc}
23056   enable-gnome:               ${support_gnome} ${gnome_version}
23057   enable-wx-console:          ${support_wx_console}
23058   enable-tray-monitor:        ${support_tray_monitor}
23059   client-only:                ${build_client_only}
23060   ACL support:                ${have_acl}
23061   Python support:             ${support_python} ${PYTHON_LIBS}
23062
23063   " > config.out
23064
23065 cat config.out
23066