]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Remove -lnsl from tpc wrappers link unless needed
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS 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 TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password 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 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-readline      disable readline support enabled
867
868   --disable-largefile     omit support for large files
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-gnome-includes   Specify location of GNOME headers
874   --with-gnome-libs       Specify location of GNOME libs
875   --with-gnome            Specify prefix for GNOME files
876  --with-readline=DIR             specify readline library directory
877   --with-tcp-wrappers=DIR        enable tcpwrappers support
878   --with-working-dir=PATH        specify path of Bacula working directory
879   --with-scriptdir=PATH    specify path of Bacula scripts directory
880   --with-dump-email=EMAIL        dump email address
881   --with-job-email=EMAIL         job output email address
882   --with-smtp-host=HOST          SMTP mail host address
883   --with-pid-dir=PATH            specify location of Bacula pid files
884   --with-subsys-dir=PATH         specify location of Bacula subsys file
885   --with-baseport=PORT           specify base port address for daemons
886   --with-dir-password=PASSWORD   specify Director's password
887   --with-fd-password=PASSWORD    specify Client's password
888   --with-sd-password=PASSWORD    specify Storage daemon's password
889
890 Which DBMS do you want to use (please select only one):
891   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
892                           install directory, default is to search through
893                           a number of common places for the MySQL files.
894
895 Which DBMS do you want to use (please select only one):
896   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
897                           install directory, default is to search through
898                           a number of common places for the MySQL files.
899
900 Which DBMS do you want to use (please select only one):
901   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
902                           install directory, default is to search through
903                           a number of common places for the SQLite files.
904   --with-x                use the X Window System
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CXX         C++ compiler command
914   CXXFLAGS    C++ compiler flags
915   CPP         C preprocessor
916
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
919
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924   # If there are subdirs, report their specific --help.
925   ac_popdir=`pwd`
926   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927     test -d $ac_dir || continue
928     ac_builddir=.
929
930 if test "$ac_dir" != .; then
931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932   # A "../" for each directory in $ac_dir_suffix.
933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935   ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939   .)  # No --srcdir option.  We are building in place.
940     ac_srcdir=.
941     if test -z "$ac_top_builddir"; then
942        ac_top_srcdir=.
943     else
944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945     fi ;;
946   [\\/]* | ?:[\\/]* )  # Absolute path.
947     ac_srcdir=$srcdir$ac_dir_suffix;
948     ac_top_srcdir=$srcdir ;;
949   *) # Relative path.
950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
954 # absolute.
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd $ac_popdir
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982
983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
984 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988   exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.57.  Invocation command line was
997
998   $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029   IFS=$as_save_IFS
1030   test -z "$as_dir" && as_dir=.
1031   echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058   for ac_arg
1059   do
1060     case $ac_arg in
1061     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063     | -silent | --silent | --silen | --sile | --sil)
1064       continue ;;
1065     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067     esac
1068     case $ac_pass in
1069     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070     2)
1071       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072       if test $ac_must_keep_next = true; then
1073         ac_must_keep_next=false # Got value, back to normal.
1074       else
1075         case $ac_arg in
1076           *=* | --config-cache | -C | -disable-* | --disable-* \
1077           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079           | -with-* | --with-* | -without-* | --without-* | --x)
1080             case "$ac_configure_args0 " in
1081               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082             esac
1083             ;;
1084           -* ) ac_must_keep_next=true ;;
1085         esac
1086       fi
1087       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088       # Get rid of the leading space.
1089       ac_sep=" "
1090       ;;
1091     esac
1092   done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log.  We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103   # Save into config.log some information that might help in debugging.
1104   {
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112     echo
1113     # The following way of writing the cache mishandles newlines in values,
1114 {
1115   (set) 2>&1 |
1116     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117     *ac_space=\ *)
1118       sed -n \
1119         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121       ;;
1122     *)
1123       sed -n \
1124         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125       ;;
1126     esac;
1127 }
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135     echo
1136     for ac_var in $ac_subst_vars
1137     do
1138       eval ac_val=$`echo $ac_var`
1139       echo "$ac_var='"'"'$ac_val'"'"'"
1140     done | sort
1141     echo
1142
1143     if test -n "$ac_subst_files"; then
1144       cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149       echo
1150       for ac_var in $ac_subst_files
1151       do
1152         eval ac_val=$`echo $ac_var`
1153         echo "$ac_var='"'"'$ac_val'"'"'"
1154       done | sort
1155       echo
1156     fi
1157
1158     if test -s confdefs.h; then
1159       cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164       echo
1165       sed "/^$/d" confdefs.h | sort
1166       echo
1167     fi
1168     test "$ac_signal" != 0 &&
1169       echo "$as_me: caught signal $ac_signal"
1170     echo "$as_me: exit $exit_status"
1171   } >&5
1172   rm -f core core.* *.core &&
1173   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174     exit $exit_status
1175      ' 0
1176 for ac_signal in 1 2 13 15; do
1177   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216   if test "x$prefix" != xNONE; then
1217     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218   else
1219     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220   fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223   if test -r "$ac_site_file"; then
1224     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226     sed 's/^/| /' "$ac_site_file" >&5
1227     . "$ac_site_file"
1228   fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232   # Some versions of bash will fail to source /dev/null (special
1233   # files actually), so we avoid doing that.
1234   if test -f "$cache_file"; then
1235     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237     case $cache_file in
1238       [\\/]* | ?:[\\/]* ) . $cache_file;;
1239       *)                      . ./$cache_file;;
1240     esac
1241   fi
1242 else
1243   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245   >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254   eval ac_new_set=\$ac_env_${ac_var}_set
1255   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256   eval ac_new_val="\$ac_env_${ac_var}_value"
1257   case $ac_old_set,$ac_new_set in
1258     set,)
1259       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261       ac_cache_corrupted=: ;;
1262     ,set)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,);;
1267     *)
1268       if test "x$ac_old_val" != "x$ac_new_val"; then
1269         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272 echo "$as_me:   former value:  $ac_old_val" >&2;}
1273         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274 echo "$as_me:   current value: $ac_new_val" >&2;}
1275         ac_cache_corrupted=:
1276       fi;;
1277   esac
1278   # Pass precious variables to config.status.
1279   if test "$ac_new_set" = set; then
1280     case $ac_new_val in
1281     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283     *) ac_arg=$ac_var=$ac_new_val ;;
1284     esac
1285     case " $ac_configure_args " in
1286       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288     esac
1289   fi
1290 done
1291 if $ac_cache_corrupted; then
1292   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296    { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 BUILD_DIR=`pwd`
1324 cd ..
1325 TOP_DIR=`pwd`
1326 cd ${BUILD_DIR}
1327
1328 ac_aux_dir=
1329 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1330   if test -f $ac_dir/install-sh; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/install-sh -c"
1333     break
1334   elif test -f $ac_dir/install.sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install.sh -c"
1337     break
1338   elif test -f $ac_dir/shtool; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/shtool install -c"
1341     break
1342   fi
1343 done
1344 if test -z "$ac_aux_dir"; then
1345   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352
1353           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1354
1355
1356
1357
1358
1359 for ac_prog in true
1360 do
1361   # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   case $TRUEPRG in
1369   [\\/]* | ?:[\\/]*)
1370   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1371   ;;
1372   *)
1373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
1376   IFS=$as_save_IFS
1377   test -z "$as_dir" && as_dir=.
1378   for ac_exec_ext in '' $ac_executable_extensions; do
1379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382     break 2
1383   fi
1384 done
1385 done
1386
1387   ;;
1388 esac
1389 fi
1390 TRUEPRG=$ac_cv_path_TRUEPRG
1391
1392 if test -n "$TRUEPRG"; then
1393   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1394 echo "${ECHO_T}$TRUEPRG" >&6
1395 else
1396   echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1398 fi
1399
1400   test -n "$TRUEPRG" && break
1401 done
1402 test -n "$TRUEPRG" || TRUEPRG=":"
1403
1404 for ac_prog in false
1405 do
1406   # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   case $FALSEPRG in
1414   [\\/]* | ?:[\\/]*)
1415   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1416   ;;
1417   *)
1418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1420 do
1421   IFS=$as_save_IFS
1422   test -z "$as_dir" && as_dir=.
1423   for ac_exec_ext in '' $ac_executable_extensions; do
1424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427     break 2
1428   fi
1429 done
1430 done
1431
1432   ;;
1433 esac
1434 fi
1435 FALSEPRG=$ac_cv_path_FALSEPRG
1436
1437 if test -n "$FALSEPRG"; then
1438   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1439 echo "${ECHO_T}$FALSEPRG" >&6
1440 else
1441   echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1443 fi
1444
1445   test -n "$FALSEPRG" && break
1446 done
1447 test -n "$FALSEPRG" || FALSEPRG=":"
1448
1449
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454    { (exit 1); exit 1; }; }
1455
1456 echo "$as_me:$LINENO: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463   ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467    { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1476 build=$ac_cv_build
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489   ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1498 host=$ac_cv_host
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504
1505 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1508 echo "configuring for bacula $VERSION ($DATE)"
1509
1510
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 if test -n "$ac_tool_prefix"; then
1518   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   if test -n "$CC"; then
1526   ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531   IFS=$as_save_IFS
1532   test -z "$as_dir" && as_dir=.
1533   for ac_exec_ext in '' $ac_executable_extensions; do
1534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537     break 2
1538   fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546   echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549   echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 fi
1554 if test -z "$ac_cv_prog_CC"; then
1555   ac_ct_CC=$CC
1556   # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$ac_ct_CC"; then
1564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_ac_ct_CC="gcc"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591   CC=$ac_ct_CC
1592 else
1593   CC="$ac_cv_prog_CC"
1594 fi
1595
1596 if test -z "$CC"; then
1597   if test -n "$ac_tool_prefix"; then
1598   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     ac_cv_prog_CC="${ac_tool_prefix}cc"
1616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 fi
1623 fi
1624 CC=$ac_cv_prog_CC
1625 if test -n "$CC"; then
1626   echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1628 else
1629   echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633 fi
1634 if test -z "$ac_cv_prog_CC"; then
1635   ac_ct_CC=$CC
1636   # Extract the first word of "cc", so it can be a program name with args.
1637 set dummy cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$ac_ct_CC"; then
1644   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_ac_ct_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671   CC=$ac_ct_CC
1672 else
1673   CC="$ac_cv_prog_CC"
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678   # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$CC"; then
1686   ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688   ac_prog_rejected=no
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1697        ac_prog_rejected=yes
1698        continue
1699      fi
1700     ac_cv_prog_CC="cc"
1701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702     break 2
1703   fi
1704 done
1705 done
1706
1707 if test $ac_prog_rejected = yes; then
1708   # We found a bogon in the path, so make sure we never use it.
1709   set dummy $ac_cv_prog_CC
1710   shift
1711   if test $# != 0; then
1712     # We chose a different compiler from the bogus one.
1713     # However, it has the same basename, so the bogon will be chosen
1714     # first if we set CC to just the basename; use the full file name.
1715     shift
1716     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1717   fi
1718 fi
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$CC"; then
1732   if test -n "$ac_tool_prefix"; then
1733   for ac_prog in cl
1734   do
1735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   if test -n "$CC"; then
1743   ac_cv_prog_CC="$CC" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   for ac_exec_ext in '' $ac_executable_extensions; do
1751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754     break 2
1755   fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 CC=$ac_cv_prog_CC
1762 if test -n "$CC"; then
1763   echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1765 else
1766   echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770     test -n "$CC" && break
1771   done
1772 fi
1773 if test -z "$CC"; then
1774   ac_ct_CC=$CC
1775   for ac_prog in cl
1776 do
1777   # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   if test -n "$ac_ct_CC"; then
1785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790   IFS=$as_save_IFS
1791   test -z "$as_dir" && as_dir=.
1792   for ac_exec_ext in '' $ac_executable_extensions; do
1793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794     ac_cv_prog_ac_ct_CC="$ac_prog"
1795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796     break 2
1797   fi
1798 done
1799 done
1800
1801 fi
1802 fi
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1807 else
1808   echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 fi
1811
1812   test -n "$ac_ct_CC" && break
1813 done
1814
1815   CC=$ac_ct_CC
1816 fi
1817
1818 fi
1819
1820
1821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: no acceptable C compiler found in \$PATH
1824 See \`config.log' for more details." >&2;}
1825    { (exit 1); exit 1; }; }
1826
1827 # Provide some information about the compiler.
1828 echo "$as_me:$LINENO:" \
1829      "checking for C compiler version" >&5
1830 ac_compiler=`set X $ac_compile; echo $2`
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832   (eval $ac_compiler --version </dev/null >&5) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }
1836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837   (eval $ac_compiler -v </dev/null >&5) 2>&5
1838   ac_status=$?
1839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840   (exit $ac_status); }
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842   (eval $ac_compiler -V </dev/null >&5) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }
1846
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1849 /* confdefs.h.  */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h.  */
1854
1855 int
1856 main ()
1857 {
1858
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1867 # of exeext.
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872   (eval $ac_link_default) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   # Find the output, starting from the most likely.  This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1878 # resort.
1879
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1882 ac_cv_exeext=
1883 # b.out is created by i960 compilers.
1884 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1885 do
1886   test -f "$ac_file" || continue
1887   case $ac_file in
1888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1889         ;;
1890     conftest.$ac_ext )
1891         # This is the source file.
1892         ;;
1893     [ab].out )
1894         # We found the default executable, but exeext='' is most
1895         # certainly right.
1896         break;;
1897     *.* )
1898         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899         # FIXME: I believe we export ac_cv_exeext for Libtool,
1900         # but it would be cool to find out if it's true.  Does anybody
1901         # maintain Libtool? --akim.
1902         export ac_cv_exeext
1903         break;;
1904     * )
1905         break;;
1906   esac
1907 done
1908 else
1909   echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&2;}
1916    { (exit 77); exit 77; }; }
1917 fi
1918
1919 ac_exeext=$ac_cv_exeext
1920 echo "$as_me:$LINENO: result: $ac_file" >&5
1921 echo "${ECHO_T}$ac_file" >&6
1922
1923 # Check the compiler produces executables we can run.  If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1928 # If not cross compiling, check that we can run a simple program.
1929 if test "$cross_compiling" != yes; then
1930   if { ac_try='./$ac_file'
1931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932   (eval $ac_try) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; }; then
1936     cross_compiling=no
1937   else
1938     if test "$cross_compiling" = maybe; then
1939         cross_compiling=yes
1940     else
1941         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot run C compiled programs.
1945 If you meant to cross compile, use \`--host'.
1946 See \`config.log' for more details." >&2;}
1947    { (exit 1); exit 1; }; }
1948     fi
1949   fi
1950 fi
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1953
1954 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1955 ac_clean_files=$ac_clean_files_save
1956 # Check the compiler produces executables we can run.  If not, either
1957 # the compiler is broken, or we cross compile.
1958 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1959 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1960 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1961 echo "${ECHO_T}$cross_compiling" >&6
1962
1963 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1964 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1966   (eval $ac_link) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; then
1970   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1971 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1972 # work properly (i.e., refer to `conftest.exe'), while it won't with
1973 # `rm'.
1974 for ac_file in conftest.exe conftest conftest.*; do
1975   test -f "$ac_file" || continue
1976   case $ac_file in
1977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1978     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979           export ac_cv_exeext
1980           break;;
1981     * ) break;;
1982   esac
1983 done
1984 else
1985   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 rm -f conftest$ac_cv_exeext
1993 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1994 echo "${ECHO_T}$ac_cv_exeext" >&6
1995
1996 rm -f conftest.$ac_ext
1997 EXEEXT=$ac_cv_exeext
1998 ac_exeext=$EXEEXT
1999 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2000 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2001 if test "${ac_cv_objext+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 /* confdefs.h.  */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h.  */
2011
2012 int
2013 main ()
2014 {
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022   (eval $ac_compile) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2027   case $ac_file in
2028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2029     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2030        break;;
2031   esac
2032 done
2033 else
2034   echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2040 See \`config.log' for more details." >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2045 fi
2046 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2047 echo "${ECHO_T}$ac_cv_objext" >&6
2048 OBJEXT=$ac_cv_objext
2049 ac_objext=$OBJEXT
2050 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   cat >conftest.$ac_ext <<_ACEOF
2056 #line $LINENO "configure"
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066 #ifndef __GNUC__
2067        choke me
2068 #endif
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076   (eval $ac_compile) 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); } &&
2080          { ac_try='test -s conftest.$ac_objext'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086   ac_compiler_gnu=yes
2087 else
2088   echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 ac_compiler_gnu=no
2092 fi
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2095
2096 fi
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2102 CFLAGS="-g"
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126   (eval $ac_compile) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); } &&
2130          { ac_try='test -s conftest.$ac_objext'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; }; then
2136   ac_cv_prog_cc_g=yes
2137 else
2138   echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 ac_cv_prog_cc_g=no
2142 fi
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2147 if test "$ac_test_CFLAGS" = set; then
2148   CFLAGS=$ac_save_CFLAGS
2149 elif test $ac_cv_prog_cc_g = yes; then
2150   if test "$GCC" = yes; then
2151     CFLAGS="-g -O2"
2152   else
2153     CFLAGS="-g"
2154   fi
2155 else
2156   if test "$GCC" = yes; then
2157     CFLAGS="-O2"
2158   else
2159     CFLAGS=
2160   fi
2161 fi
2162 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2163 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2164 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   ac_cv_prog_cc_stdc=no
2168 ac_save_CC=$CC
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176 #include <stdarg.h>
2177 #include <stdio.h>
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2181 struct buf { int x; };
2182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (p, i)
2184      char **p;
2185      int i;
2186 {
2187   return p[i];
2188 }
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2190 {
2191   char *s;
2192   va_list v;
2193   va_start (v,p);
2194   s = g (p, va_arg (v,int));
2195   va_end (v);
2196   return s;
2197 }
2198 int test (int i, double x);
2199 struct s1 {int (*f) (int a);};
2200 struct s2 {int (*f) (double a);};
2201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2202 int argc;
2203 char **argv;
2204 int
2205 main ()
2206 {
2207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 # Don't try gcc -ansi; that turns off useful extensions and
2213 # breaks some systems' header files.
2214 # AIX                   -qlanglvl=ansi
2215 # Ultrix and OSF/1      -std1
2216 # HP-UX 10.20 and later -Ae
2217 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2218 # SVR4                  -Xc -D__EXTENSIONS__
2219 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2220 do
2221   CC="$ac_save_CC $ac_arg"
2222   rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -s conftest.$ac_objext'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234   ac_cv_prog_cc_stdc=$ac_arg
2235 break
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 fi
2241 rm -f conftest.$ac_objext
2242 done
2243 rm -f conftest.$ac_ext conftest.$ac_objext
2244 CC=$ac_save_CC
2245
2246 fi
2247
2248 case "x$ac_cv_prog_cc_stdc" in
2249   x|xno)
2250     echo "$as_me:$LINENO: result: none needed" >&5
2251 echo "${ECHO_T}none needed" >&6 ;;
2252   *)
2253     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2255     CC="$CC $ac_cv_prog_cc_stdc" ;;
2256 esac
2257
2258 # Some people use a C++ compiler to compile C.  Since we use `exit',
2259 # in C++ we need to declare it.  In case someone uses the same compiler
2260 # for both compiling C and C++ we need to have the C++ compiler decide
2261 # the declaration of exit, since it's the most demanding environment.
2262 cat >conftest.$ac_ext <<_ACEOF
2263 #ifndef __cplusplus
2264   choke me
2265 #endif
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   for ac_declaration in \
2280    ''\
2281    '#include <stdlib.h>' \
2282    'extern "C" void std::exit (int) throw (); using std::exit;' \
2283    'extern "C" void std::exit (int); using std::exit;' \
2284    'extern "C" void exit (int) throw ();' \
2285    'extern "C" void exit (int);' \
2286    'void exit (int);'
2287 do
2288   cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 #include <stdlib.h>
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   :
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 continue
2323 fi
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325   cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 $ac_declaration
2333 int
2334 main ()
2335 {
2336 exit (42);
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   break
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 done
2361 rm -f conftest*
2362 if test -n "$ac_declaration"; then
2363   echo '#ifdef __cplusplus' >>confdefs.h
2364   echo $ac_declaration      >>confdefs.h
2365   echo '#endif'             >>confdefs.h
2366 fi
2367
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379
2380 ac_ext=cc
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2387   do
2388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$CXX"; then
2396   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411
2412 fi
2413 fi
2414 CXX=$ac_cv_prog_CXX
2415 if test -n "$CXX"; then
2416   echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2418 else
2419   echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421 fi
2422
2423     test -n "$CXX" && break
2424   done
2425 fi
2426 if test -z "$CXX"; then
2427   ac_ct_CXX=$CXX
2428   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2429 do
2430   # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$ac_ct_CXX"; then
2438   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_ac_ct_CXX="$ac_prog"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453
2454 fi
2455 fi
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2460 else
2461   echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2463 fi
2464
2465   test -n "$ac_ct_CXX" && break
2466 done
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2468
2469   CXX=$ac_ct_CXX
2470 fi
2471
2472
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475      "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478   (eval $ac_compiler --version </dev/null >&5) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483   (eval $ac_compiler -v </dev/null >&5) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488   (eval $ac_compiler -V </dev/null >&5) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505
2506 int
2507 main ()
2508 {
2509 #ifndef __GNUC__
2510        choke me
2511 #endif
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519   (eval $ac_compile) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529   ac_compiler_gnu=yes
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 ac_compiler_gnu=no
2535 fi
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2538
2539 fi
2540 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2542 GXX=`test $ac_compiler_gnu = yes && echo yes`
2543 ac_test_CXXFLAGS=${CXXFLAGS+set}
2544 ac_save_CXXFLAGS=$CXXFLAGS
2545 CXXFLAGS="-g"
2546 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2548 if test "${ac_cv_prog_cxx_g+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   ac_cv_prog_cxx_g=yes
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 ac_cv_prog_cxx_g=no
2585 fi
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590 if test "$ac_test_CXXFLAGS" = set; then
2591   CXXFLAGS=$ac_save_CXXFLAGS
2592 elif test $ac_cv_prog_cxx_g = yes; then
2593   if test "$GXX" = yes; then
2594     CXXFLAGS="-g -O2"
2595   else
2596     CXXFLAGS="-g"
2597   fi
2598 else
2599   if test "$GXX" = yes; then
2600     CXXFLAGS="-O2"
2601   else
2602     CXXFLAGS=
2603   fi
2604 fi
2605 for ac_declaration in \
2606    ''\
2607    '#include <stdlib.h>' \
2608    'extern "C" void std::exit (int) throw (); using std::exit;' \
2609    'extern "C" void std::exit (int); using std::exit;' \
2610    'extern "C" void exit (int) throw ();' \
2611    'extern "C" void exit (int);' \
2612    'void exit (int);'
2613 do
2614   cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621 #include <stdlib.h>
2622 $ac_declaration
2623 int
2624 main ()
2625 {
2626 exit (42);
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633   (eval $ac_compile) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   :
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 continue
2649 fi
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651   cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 /* confdefs.h.  */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h.  */
2658 $ac_declaration
2659 int
2660 main ()
2661 {
2662 exit (42);
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669   (eval $ac_compile) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   break
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 done
2687 rm -f conftest*
2688 if test -n "$ac_declaration"; then
2689   echo '#ifdef __cplusplus' >>confdefs.h
2690   echo $ac_declaration      >>confdefs.h
2691   echo '#endif'             >>confdefs.h
2692 fi
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700 if test "x$CC" != xcc; then
2701   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2702 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2703 else
2704   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2705 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2706 fi
2707 set dummy $CC; ac_cc=`echo $2 |
2708                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2709 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719
2720 int
2721 main ()
2722 {
2723
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 # Make sure it works both with $CC and with simple cc.
2729 # We do the test twice because some compilers refuse to overwrite an
2730 # existing .o file with -o, though they will create one.
2731 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2732 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } &&
2737    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); };
2742 then
2743   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2744   if test "x$CC" != xcc; then
2745     # Test first that cc exists at all.
2746     if { ac_try='cc -c conftest.$ac_ext >&5'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2753       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); };
2763       then
2764         # cc works too.
2765         :
2766       else
2767         # cc exists but doesn't like -o.
2768         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2769       fi
2770     fi
2771   fi
2772 else
2773   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2774 fi
2775 rm -f conftest*
2776
2777 fi
2778 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2779   echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2781 else
2782   echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784
2785 cat >>confdefs.h <<\_ACEOF
2786 #define NO_MINUS_C_MINUS_O 1
2787 _ACEOF
2788
2789 fi
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2800   CPP=
2801 fi
2802 if test -z "$CPP"; then
2803   if test "${ac_cv_prog_CPP+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806       # Double quotes because CPP needs to be expanded
2807     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2808     do
2809       ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812   # Use a header file that comes with gcc, so configuring glibc
2813   # with a fresh cross-compiler works.
2814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815   # <limits.h> exists even on freestanding compilers.
2816   # On the NeXT, cc -E runs the code through the compiler's parser,
2817   # not just through cpp. "Syntax error" is here to catch this case.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830                      Syntax error
2831 _ACEOF
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } >/dev/null; then
2840   if test -s conftest.err; then
2841     ac_cpp_err=$ac_c_preproc_warn_flag
2842   else
2843     ac_cpp_err=
2844   fi
2845 else
2846   ac_cpp_err=yes
2847 fi
2848 if test -z "$ac_cpp_err"; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854   # Broken: fails on valid input.
2855 continue
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859   # OK, works on sane cases.  Now check whether non-existent headers
2860   # can be detected and how.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868 #include <ac_nonexistent.h>
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } >/dev/null; then
2878   if test -s conftest.err; then
2879     ac_cpp_err=$ac_c_preproc_warn_flag
2880   else
2881     ac_cpp_err=
2882   fi
2883 else
2884   ac_cpp_err=yes
2885 fi
2886 if test -z "$ac_cpp_err"; then
2887   # Broken: success on invalid input.
2888 continue
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893   # Passes both tests.
2894 ac_preproc_ok=:
2895 break
2896 fi
2897 rm -f conftest.err conftest.$ac_ext
2898
2899 done
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2903   break
2904 fi
2905
2906     done
2907     ac_cv_prog_CPP=$CPP
2908
2909 fi
2910   CPP=$ac_cv_prog_CPP
2911 else
2912   ac_cv_prog_CPP=$CPP
2913 fi
2914 echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6
2916 ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #ifdef __STDC__
2933 # include <limits.h>
2934 #else
2935 # include <assert.h>
2936 #endif
2937                      Syntax error
2938 _ACEOF
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941   ac_status=$?
2942   grep -v '^ *+' conftest.er1 >conftest.err
2943   rm -f conftest.er1
2944   cat conftest.err >&5
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } >/dev/null; then
2947   if test -s conftest.err; then
2948     ac_cpp_err=$ac_c_preproc_warn_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 /* confdefs.h.  */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h.  */
2975 #include <ac_nonexistent.h>
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } >/dev/null; then
2985   if test -s conftest.err; then
2986     ac_cpp_err=$ac_c_preproc_warn_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   :
3011 else
3012   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&2;}
3016    { (exit 1); exit 1; }; }
3017 fi
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024
3025
3026 echo "$as_me:$LINENO: checking for egrep" >&5
3027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3028 if test "${ac_cv_prog_egrep+set}" = set; then
3029   echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3032     then ac_cv_prog_egrep='grep -E'
3033     else ac_cv_prog_egrep='egrep'
3034     fi
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3038  EGREP=$ac_cv_prog_egrep
3039
3040
3041 if test $ac_cv_c_compiler_gnu = yes; then
3042     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3043 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3044 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047     ac_pattern="Autoconf.*'x'"
3048   cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #include <sgtty.h>
3056 Autoconf TIOCGETP
3057 _ACEOF
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3060   ac_cv_prog_gcc_traditional=yes
3061 else
3062   ac_cv_prog_gcc_traditional=no
3063 fi
3064 rm -f conftest*
3065
3066
3067   if test $ac_cv_prog_gcc_traditional = no; then
3068     cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075 #include <termio.h>
3076 Autoconf TCGETA
3077 _ACEOF
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3080   ac_cv_prog_gcc_traditional=yes
3081 fi
3082 rm -f conftest*
3083
3084   fi
3085 fi
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3088   if test $ac_cv_prog_gcc_traditional = yes; then
3089     CC="$CC -traditional"
3090   fi
3091 fi
3092
3093 if test x$CC = xgcc
3094 then
3095    cat >>confdefs.h <<\_ACEOF
3096 #define HAVE_GCC 1
3097 _ACEOF
3098
3099 fi
3100
3101 # Find a good install program.  We prefer a C program (faster),
3102 # so one script is as good as another.  But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3107 # AIX /bin/install
3108 # AmigaOS /C/install, which installs bootblocks on floppy discs
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3115 if test -z "$INSTALL"; then
3116 if test "${ac_cv_path_install+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   # Account for people who put trailing slashes in PATH elements.
3125 case $as_dir/ in
3126   ./ | .// | /cC/* | \
3127   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3128   /usr/ucb/* ) ;;
3129   *)
3130     # OSF1 and SCO ODT 3.0 have their own names for install.
3131     # Don't use installbsd from OSF since it installs stuff as root
3132     # by default.
3133     for ac_prog in ginstall scoinst install; do
3134       for ac_exec_ext in '' $ac_executable_extensions; do
3135         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136           if test $ac_prog = install &&
3137             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138             # AIX install.  It has an incompatible calling convention.
3139             :
3140           elif test $ac_prog = install &&
3141             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142             # program-specific install script used by HP pwplus--don't use.
3143             :
3144           else
3145             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3146             break 3
3147           fi
3148         fi
3149       done
3150     done
3151     ;;
3152 esac
3153 done
3154
3155
3156 fi
3157   if test "${ac_cv_path_install+set}" = set; then
3158     INSTALL=$ac_cv_path_install
3159   else
3160     # As a last resort, use the slow shell script.  We don't cache a
3161     # path for INSTALL within a source directory, because that will
3162     # break other packages using the cache if that directory is
3163     # removed, or if the path is relative.
3164     INSTALL=$ac_install_sh
3165   fi
3166 fi
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3169
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3173
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3175
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3177
3178 if test -n "$ac_tool_prefix"; then
3179   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_RANLIB+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$RANLIB"; then
3187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194   for ac_exec_ext in '' $ac_executable_extensions; do
3195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201 done
3202
3203 fi
3204 fi
3205 RANLIB=$ac_cv_prog_RANLIB
3206 if test -n "$RANLIB"; then
3207   echo "$as_me:$LINENO: result: $RANLIB" >&5
3208 echo "${ECHO_T}$RANLIB" >&6
3209 else
3210   echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3212 fi
3213
3214 fi
3215 if test -z "$ac_cv_prog_RANLIB"; then
3216   ac_ct_RANLIB=$RANLIB
3217   # Extract the first word of "ranlib", so it can be a program name with args.
3218 set dummy ranlib; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   if test -n "$ac_ct_RANLIB"; then
3225   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_prog_ac_ct_RANLIB="ranlib"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3242 fi
3243 fi
3244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3245 if test -n "$ac_ct_RANLIB"; then
3246   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253   RANLIB=$ac_ct_RANLIB
3254 else
3255   RANLIB="$ac_cv_prog_RANLIB"
3256 fi
3257
3258 # Extract the first word of "mv", so it can be a program name with args.
3259 set dummy mv; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_MV+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $MV in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3285   ;;
3286 esac
3287 fi
3288 MV=$ac_cv_path_MV
3289
3290 if test -n "$MV"; then
3291   echo "$as_me:$LINENO: result: $MV" >&5
3292 echo "${ECHO_T}$MV" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "rm", so it can be a program name with args.
3299 set dummy rm; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_RM+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $RM in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3325   ;;
3326 esac
3327 fi
3328 RM=$ac_cv_path_RM
3329
3330 if test -n "$RM"; then
3331   echo "$as_me:$LINENO: result: $RM" >&5
3332 echo "${ECHO_T}$RM" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "cp", so it can be a program name with args.
3339 set dummy cp; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_CP+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $CP in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3365   ;;
3366 esac
3367 fi
3368 CP=$ac_cv_path_CP
3369
3370 if test -n "$CP"; then
3371   echo "$as_me:$LINENO: result: $CP" >&5
3372 echo "${ECHO_T}$CP" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "sed", so it can be a program name with args.
3379 set dummy sed; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_SED+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $SED in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3405   ;;
3406 esac
3407 fi
3408 SED=$ac_cv_path_SED
3409
3410 if test -n "$SED"; then
3411   echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "awk", so it can be a program name with args.
3419 set dummy awk; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_AWK+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $AWK in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3445   ;;
3446 esac
3447 fi
3448 AWK=$ac_cv_path_AWK
3449
3450 if test -n "$AWK"; then
3451   echo "$as_me:$LINENO: result: $AWK" >&5
3452 echo "${ECHO_T}$AWK" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "echo", so it can be a program name with args.
3459 set dummy echo; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ECHO+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $ECHO in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3485   ;;
3486 esac
3487 fi
3488 ECHO=$ac_cv_path_ECHO
3489
3490 if test -n "$ECHO"; then
3491   echo "$as_me:$LINENO: result: $ECHO" >&5
3492 echo "${ECHO_T}$ECHO" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "cmp", so it can be a program name with args.
3499 set dummy cmp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CMP+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $CMP in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3525   ;;
3526 esac
3527 fi
3528 CMP=$ac_cv_path_CMP
3529
3530 if test -n "$CMP"; then
3531   echo "$as_me:$LINENO: result: $CMP" >&5
3532 echo "${ECHO_T}$CMP" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "tbl", so it can be a program name with args.
3539 set dummy tbl; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_TBL+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $TBL in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3565   ;;
3566 esac
3567 fi
3568 TBL=$ac_cv_path_TBL
3569
3570 if test -n "$TBL"; then
3571   echo "$as_me:$LINENO: result: $TBL" >&5
3572 echo "${ECHO_T}$TBL" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "ar", so it can be a program name with args.
3579 set dummy ar; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_AR+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $AR in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3605   ;;
3606 esac
3607 fi
3608 AR=$ac_cv_path_AR
3609
3610 if test -n "$AR"; then
3611   echo "$as_me:$LINENO: result: $AR" >&5
3612 echo "${ECHO_T}$AR" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_RANLIB+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $RANLIB in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3645   ;;
3646 esac
3647 fi
3648 RANLIB=$ac_cv_path_RANLIB
3649
3650 if test -n "$RANLIB"; then
3651   echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "openssl", so it can be a program name with args.
3659 set dummy openssl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_OPENSSL+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $OPENSSL in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3685   ;;
3686 esac
3687 fi
3688 OPENSSL=$ac_cv_path_OPENSSL
3689
3690 if test -n "$OPENSSL"; then
3691   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3692 echo "${ECHO_T}$OPENSSL" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "mtx", so it can be a program name with args.
3699 set dummy mtx; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_MTX+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $MTX in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3725   ;;
3726 esac
3727 fi
3728 MTX=$ac_cv_path_MTX
3729
3730 if test -n "$MTX"; then
3731   echo "$as_me:$LINENO: result: $MTX" >&5
3732 echo "${ECHO_T}$MTX" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "pkg-config", so it can be a program name with args.
3739 set dummy pkg-config; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $PKGCONFIG in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3765   ;;
3766 esac
3767 fi
3768 PKGCONFIG=$ac_cv_path_PKGCONFIG
3769
3770 if test -n "$PKGCONFIG"; then
3771   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3772 echo "${ECHO_T}$PKGCONFIG" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778
3779 test -n "$ARFLAG" || ARFLAGS="cr"
3780
3781
3782 MAKE_SHELL=/bin/sh
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792 echo "$as_me:$LINENO: checking for Operating System" >&5
3793 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3794
3795 case $host_os in
3796   *cygwin* ) CYGWIN=yes;;
3797          * ) CYGWIN=no;;
3798 esac
3799
3800 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3801 then
3802
3803
3804 if $TRUEPRG; then
3805   HAVE_SUN_OS_TRUE=
3806   HAVE_SUN_OS_FALSE='#'
3807 else
3808   HAVE_SUN_OS_TRUE='#'
3809   HAVE_SUN_OS_FALSE=
3810 fi
3811         cat >>confdefs.h <<\_ACEOF
3812 #define HAVE_SUN_OS 1
3813 _ACEOF
3814
3815 else
3816
3817
3818 if $FALSEPRG; then
3819   HAVE_SUN_OS_TRUE=
3820   HAVE_SUN_OS_FALSE='#'
3821 else
3822   HAVE_SUN_OS_TRUE='#'
3823   HAVE_SUN_OS_FALSE=
3824 fi
3825 fi
3826
3827 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3828 then
3829
3830
3831 if $TRUEPRG; then
3832   HAVE_OSF1_OS_TRUE=
3833   HAVE_OSF1_OS_FALSE='#'
3834 else
3835   HAVE_OSF1_OS_TRUE='#'
3836   HAVE_OSF1_OS_FALSE=
3837 fi
3838         cat >>confdefs.h <<\_ACEOF
3839 #define HAVE_OSF1_OS 1
3840 _ACEOF
3841
3842 else
3843
3844
3845 if $FALSEPRG; then
3846   HAVE_OSF1_OS_TRUE=
3847   HAVE_OSF1_OS_FALSE='#'
3848 else
3849   HAVE_OSF1_OS_TRUE='#'
3850   HAVE_OSF1_OS_FALSE=
3851 fi
3852 fi
3853
3854 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3855 then
3856
3857
3858 if $TRUEPRG; then
3859   HAVE_AIX_OS_TRUE=
3860   HAVE_AIX_OS_FALSE='#'
3861 else
3862   HAVE_AIX_OS_TRUE='#'
3863   HAVE_AIX_OS_FALSE=
3864 fi
3865         cat >>confdefs.h <<\_ACEOF
3866 #define HAVE_AIX_OS 1
3867 _ACEOF
3868
3869 else
3870
3871
3872 if $FALSEPRG; then
3873   HAVE_AIX_OS_TRUE=
3874   HAVE_AIX_OS_FALSE='#'
3875 else
3876   HAVE_AIX_OS_TRUE='#'
3877   HAVE_AIX_OS_FALSE=
3878 fi
3879 fi
3880
3881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3882 then
3883
3884
3885 if $TRUEPRG; then
3886   HAVE_HPUX_OS_TRUE=
3887   HAVE_HPUX_OS_FALSE='#'
3888 else
3889   HAVE_HPUX_OS_TRUE='#'
3890   HAVE_HPUX_OS_FALSE=
3891 fi
3892         cat >>confdefs.h <<\_ACEOF
3893 #define HAVE_HPUX_OS 1
3894 _ACEOF
3895
3896 else
3897
3898
3899 if $FALSEPRG; then
3900   HAVE_HPUX_OS_TRUE=
3901   HAVE_HPUX_OS_FALSE='#'
3902 else
3903   HAVE_HPUX_OS_TRUE='#'
3904   HAVE_HPUX_OS_FALSE=
3905 fi
3906 fi
3907
3908 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3909 then
3910
3911
3912 if $TRUEPRG; then
3913   HAVE_LINUX_OS_TRUE=
3914   HAVE_LINUX_OS_FALSE='#'
3915 else
3916   HAVE_LINUX_OS_TRUE='#'
3917   HAVE_LINUX_OS_FALSE=
3918 fi
3919         cat >>confdefs.h <<\_ACEOF
3920 #define HAVE_LINUX_OS 1
3921 _ACEOF
3922
3923 else
3924
3925
3926 if $FALSEPRG; then
3927   HAVE_LINUX_OS_TRUE=
3928   HAVE_LINUX_OS_FALSE='#'
3929 else
3930   HAVE_LINUX_OS_TRUE='#'
3931   HAVE_LINUX_OS_FALSE=
3932 fi
3933 fi
3934
3935 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3936 then
3937
3938
3939 if $TRUEPRG; then
3940   HAVE_FREEBSD_OS_TRUE=
3941   HAVE_FREEBSD_OS_FALSE='#'
3942 else
3943   HAVE_FREEBSD_OS_TRUE='#'
3944   HAVE_FREEBSD_OS_FALSE=
3945 fi
3946         cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_FREEBSD_OS 1
3948 _ACEOF
3949
3950 else
3951
3952
3953 if $FALSEPRG; then
3954   HAVE_FREEBSD_OS_TRUE=
3955   HAVE_FREEBSD_OS_FALSE='#'
3956 else
3957   HAVE_FREEBSD_OS_TRUE='#'
3958   HAVE_FREEBSD_OS_FALSE=
3959 fi
3960 fi
3961
3962 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3963 then
3964
3965
3966 if $TRUEPRG; then
3967   HAVE_NETBSD_OS_TRUE=
3968   HAVE_NETBSD_OS_FALSE='#'
3969 else
3970   HAVE_NETBSD_OS_TRUE='#'
3971   HAVE_NETBSD_OS_FALSE=
3972 fi
3973         cat >>confdefs.h <<\_ACEOF
3974 #define HAVE_NETBSD_OS 1
3975 _ACEOF
3976
3977 else
3978
3979
3980 if $FALSEPRG; then
3981   HAVE_NETBSD_OS_TRUE=
3982   HAVE_NETBSD_OS_FALSE='#'
3983 else
3984   HAVE_NETBSD_OS_TRUE='#'
3985   HAVE_NETBSD_OS_FALSE=
3986 fi
3987 fi
3988
3989 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3990 then
3991
3992
3993 if $TRUEPRG; then
3994   HAVE_OPENBSD_OS_TRUE=
3995   HAVE_OPENBSD_OS_FALSE='#'
3996 else
3997   HAVE_OPENBSD_OS_TRUE='#'
3998   HAVE_OPENBSD_OS_FALSE=
3999 fi
4000         cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_OPENBSD_OS 1
4002 _ACEOF
4003
4004 else
4005
4006
4007 if $FALSEPRG; then
4008   HAVE_OPENBSD_OS_TRUE=
4009   HAVE_OPENBSD_OS_FALSE='#'
4010 else
4011   HAVE_OPENBSD_OS_TRUE='#'
4012   HAVE_OPENBSD_OS_FALSE=
4013 fi
4014 fi
4015
4016 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4017 then
4018
4019
4020 if $TRUEPRG; then
4021   HAVE_BSDI_OS_TRUE=
4022   HAVE_BSDI_OS_FALSE='#'
4023 else
4024   HAVE_BSDI_OS_TRUE='#'
4025   HAVE_BSDI_OS_FALSE=
4026 fi
4027         cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_BSDI_OS 1
4029 _ACEOF
4030
4031 else
4032
4033
4034 if $FALSEPRG; then
4035   HAVE_BSDI_OS_TRUE=
4036   HAVE_BSDI_OS_FALSE='#'
4037 else
4038   HAVE_BSDI_OS_TRUE='#'
4039   HAVE_BSDI_OS_FALSE=
4040 fi
4041 fi
4042
4043 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4044 then
4045
4046
4047 if $TRUEPRG; then
4048   HAVE_SGI_OS_TRUE=
4049   HAVE_SGI_OS_FALSE='#'
4050 else
4051   HAVE_SGI_OS_TRUE='#'
4052   HAVE_SGI_OS_FALSE=
4053 fi
4054         cat >>confdefs.h <<\_ACEOF
4055 #define HAVE_SGI_OS 1
4056 _ACEOF
4057
4058 else
4059
4060
4061 if $FALSEPRG; then
4062   HAVE_SGI_OS_TRUE=
4063   HAVE_SGI_OS_FALSE='#'
4064 else
4065   HAVE_SGI_OS_TRUE='#'
4066   HAVE_SGI_OS_FALSE=
4067 fi
4068 fi
4069
4070 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4071 then
4072
4073
4074 if $TRUEPRG; then
4075   HAVE_IRIX_OS_TRUE=
4076   HAVE_IRIX_OS_FALSE='#'
4077 else
4078   HAVE_IRIX_OS_TRUE='#'
4079   HAVE_IRIX_OS_FALSE=
4080 fi
4081         cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_IRIX_OS 1
4083 _ACEOF
4084
4085 else
4086
4087
4088 if $FALSEPRG; then
4089   HAVE_IRIX_OS_TRUE=
4090   HAVE_IRIX_OS_FALSE='#'
4091 else
4092   HAVE_IRIX_OS_TRUE='#'
4093   HAVE_IRIX_OS_FALSE=
4094 fi
4095 fi
4096
4097 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4098 then
4099
4100
4101 if $TRUEPRG; then
4102   HAVE_DARWIN_OS_TRUE=
4103   HAVE_DARWIN_OS_FALSE='#'
4104 else
4105   HAVE_DARWIN_OS_TRUE='#'
4106   HAVE_DARWIN_OS_FALSE=
4107 fi
4108     cat >>confdefs.h <<\_ACEOF
4109 #define HAVE_DARWIN_OS 1
4110 _ACEOF
4111
4112 else
4113
4114
4115 if $FALSEPRG; then
4116   HAVE_DARWIN_OS_TRUE=
4117   HAVE_DARWIN_OS_FALSE='#'
4118 else
4119   HAVE_DARWIN_OS_TRUE='#'
4120   HAVE_DARWIN_OS_FALSE=
4121 fi
4122 fi
4123
4124 echo "$as_me:$LINENO: result: \" \"" >&5
4125 echo "${ECHO_T}\" \"" >&6
4126
4127
4128 # -----------------------------------------------------------
4129 # ----------------------------------------------------------
4130 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4131 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4132 if test "x$DISTNAME" != "x"
4133 then
4134         echo "distname set to $DISTNAME"
4135 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4136 then
4137         DISTNAME=alpha
4138 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4139 then
4140         DISTNAME=aix
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4142 then
4143         DISTNAME=hpux
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4145 then
4146         DISTNAME=solaris
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4148 then
4149         DISTNAME=freebsd
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4151 then
4152         DISTNAME=netbsd
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4154 then
4155         DISTNAME=openbsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4157 then
4158         DISTNAME=irix
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4160 then
4161         DISTNAME=bsdi
4162 elif test -f /etc/SuSE-release
4163 then
4164         DISTNAME=suse
4165 elif test -d /etc/SuSEconfig
4166 then
4167         DISTNAME=suse5
4168 elif test -f /etc/mandrake-release
4169 then
4170         DISTNAME=mandrake
4171 elif test -f /etc/redhat-release
4172 then
4173         DISTNAME=redhat
4174 elif test -f /etc/gentoo-release
4175 then
4176         DISTNAME=gentoo
4177 elif test -f /etc/debian_version
4178 then
4179         DISTNAME=debian
4180 elif test -f /etc/slackware-version
4181 then
4182         DISTNAME=slackware
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4184 then
4185     DISTNAME=darwin
4186 elif test -f /etc/engarde-version
4187 then
4188         DISTNAME=engarde
4189 elif test "$CYGWIN" = yes
4190 then
4191         DISTNAME=cygwin
4192         cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_CYGWIN 1
4194 _ACEOF
4195
4196 else
4197         DISTNAME=unknown
4198 fi
4199 echo "$as_me:$LINENO: result: \" \"" >&5
4200 echo "${ECHO_T}\" \"" >&6
4201
4202
4203 # -----------------------------------------------------------
4204 # ----------------------------------------------------------
4205
4206
4207
4208 if false; then
4209   INSIDE_GNOME_COMMON_TRUE=
4210   INSIDE_GNOME_COMMON_FALSE='#'
4211 else
4212   INSIDE_GNOME_COMMON_TRUE='#'
4213   INSIDE_GNOME_COMMON_FALSE=
4214 fi
4215
4216         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4217
4218         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4219
4220
4221 # ------------------------------------------------------------------
4222 #  If the user has not set --prefix, we set our default to nothing.
4223 #  In this case, if the user has not set --sysconfdir, we set it
4224 #  to the package default of /etc/bacula.  If either --prefix or
4225 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4226 # ------------------------------------------------------------------
4227 if test x${prefix} = xNONE ; then
4228     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4229         sysconfdir=/etc/bacula
4230     fi
4231     prefix=
4232 fi
4233 sysconfdir=`eval echo ${sysconfdir}`
4234
4235 # -------------------------------------------------------------------------
4236 #  If the user has not set --exec-prefix, we default to ${prefix}
4237 # -------------------------------------------------------------------------
4238 if test x${exec_prefix} = xNONE ; then
4239     exec_prefix=${prefix}
4240 fi
4241
4242 # ------------------------------------------------------------------
4243 # If the user has not set --sbindir, we set our default as /sbin
4244 # ------------------------------------------------------------------
4245 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4246     sbindir=${exec_prefix}/sbin
4247 fi
4248 sbindir=`eval echo ${sbindir}`
4249
4250 # ------------------------------------------------------------------
4251 # All list of languages for which a translation exist. Each
4252 #  language is separated by a space.
4253 # ------------------------------------------------------------------
4254 ALL_LINGUAS=""
4255
4256 for ac_prog in msgfmt
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_MSGFMT+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   case $MSGFMT in
4266   [\\/]* | ?:[\\/]*)
4267   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4268   ;;
4269   *)
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283
4284   ;;
4285 esac
4286 fi
4287 MSGFMT=$ac_cv_path_MSGFMT
4288
4289 if test -n "$MSGFMT"; then
4290   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4291 echo "${ECHO_T}$MSGFMT" >&6
4292 else
4293   echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295 fi
4296
4297   test -n "$MSGFMT" && break
4298 done
4299 test -n "$MSGFMT" || MSGFMT="no"
4300
4301 if test "$MSGFMT" = "no"
4302 then
4303    echo 'msgfmt program not found, disabling NLS !'
4304    USE_NLS=no
4305    USE_INCLUDED_LIBINTL=no
4306 #else
4307 #   AM_GNU_GETTEXT
4308 fi
4309
4310
4311 support_mysql=no
4312 support_sqlite=no
4313 support_smartalloc=yes
4314 support_readline=yes
4315 support_gnome=no
4316 support_static_tools=no
4317 support_static_fd=no
4318 support_static_sd=no
4319 support_static_dir=no
4320 support_static_cons=no
4321 build_client_only=no
4322 cats=
4323 db_name=Internal
4324 DB_NAME=bdb
4325
4326
4327 # -------------------------------------------
4328 # gnome (default off)
4329 # -------------------------------------------
4330 # Check whether --enable-gnome or --disable-gnome was given.
4331 if test "${enable_gnome+set}" = set; then
4332   enableval="$enable_gnome"
4333   if test x$enableval = xyes; then
4334     support_gnome=yes
4335   fi
4336 fi;
4337
4338 GNOME_DIR=
4339 if test x$support_gnome = xyes; then
4340   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4341   pkg=$?
4342   if test $pkg = 0; then
4343      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4344      GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
4345      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4346      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4347
4348
4349
4350
4351      GNOME_DIR=src/gnome-console
4352   else
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4365 if test "${with_gnome_includes+set}" = set; then
4366   withval="$with_gnome_includes"
4367
4368         CFLAGS="$CFLAGS -I$withval"
4369
4370 fi;
4371
4372
4373 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4374 if test "${with_gnome_libs+set}" = set; then
4375   withval="$with_gnome_libs"
4376
4377         LDFLAGS="$LDFLAGS -L$withval"
4378         gnome_prefix=$withval
4379
4380 fi;
4381
4382
4383 # Check whether --with-gnome or --without-gnome was given.
4384 if test "${with_gnome+set}" = set; then
4385   withval="$with_gnome"
4386   if test x$withval = xyes; then
4387                         want_gnome=yes
4388                                                                         :
4389                 else
4390                         if test "x$withval" = xno; then
4391                                 want_gnome=no
4392                         else
4393                                 want_gnome=yes
4394                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4395                                 CFLAGS="$CFLAGS -I$withval/include"
4396                                 gnome_prefix=$withval/lib
4397                         fi
4398                 fi
4399 else
4400   want_gnome=yes
4401 fi;
4402
4403         if test "x$want_gnome" = xyes; then
4404
4405             # Extract the first word of "gnome-config", so it can be a program name with args.
4406 set dummy gnome-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   case $GNOME_CONFIG in
4413   [\\/]* | ?:[\\/]*)
4414   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4415   ;;
4416   *)
4417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430
4431   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4432   ;;
4433 esac
4434 fi
4435 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4436
4437 if test -n "$GNOME_CONFIG"; then
4438   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4439 echo "${ECHO_T}$GNOME_CONFIG" >&6
4440 else
4441   echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4443 fi
4444
4445             if test "$GNOME_CONFIG" = "no"; then
4446               no_gnome_config="yes"
4447             else
4448               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4449 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4450               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4451                 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4453
4454
4455         # Extract the first word of "orbit-config", so it can be a program name with args.
4456 set dummy orbit-config; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   case $ORBIT_CONFIG in
4463   [\\/]* | ?:[\\/]*)
4464   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4465   ;;
4466   *)
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479 done
4480
4481   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4482   ;;
4483 esac
4484 fi
4485 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4486
4487 if test -n "$ORBIT_CONFIG"; then
4488   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4489 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495         # Extract the first word of "orbit-idl", so it can be a program name with args.
4496 set dummy orbit-idl; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   case $ORBIT_IDL in
4503   [\\/]* | ?:[\\/]*)
4504   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4505   ;;
4506   *)
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4522   ;;
4523 esac
4524 fi
4525 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4526
4527 if test -n "$ORBIT_IDL"; then
4528   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4529 echo "${ECHO_T}$ORBIT_IDL" >&6
4530 else
4531   echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4536 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4537 if test "${gnome_cv_orbit_found+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540
4541                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4542                         gnome_cv_orbit_found=no
4543                 else
4544                         gnome_cv_orbit_found=yes
4545                 fi
4546
4547 fi
4548 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4549 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4550
4551
4552 if test x$gnome_cv_orbit_found = xyes; then
4553   HAVE_ORBIT_TRUE=
4554   HAVE_ORBIT_FALSE='#'
4555 else
4556   HAVE_ORBIT_TRUE='#'
4557   HAVE_ORBIT_FALSE=
4558 fi
4559         if test x$gnome_cv_orbit_found = xyes; then
4560
4561                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4562                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4563
4564
4565         else
4566                 if test xfail = xfailure; then
4567                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4568 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4569    { (exit 1); exit 1; }; }
4570                 fi
4571         fi
4572
4573         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4574 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4575 if test "${gnome_cv_gnorba_found+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578
4579                 gnome_cv_gnorba_found=no
4580                 if test x$gnome_cv_orbit_found = xyes; then
4581                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4582                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4583                         if test -n "$GNORBA_LIBS"; then
4584                                 gnome_cv_gnorba_found=yes
4585                         fi
4586                 fi
4587
4588 fi
4589 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4590 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4591
4592
4593 if test x$gnome_cv_gnorba_found = xyes; then
4594   HAVE_GNORBA_TRUE=
4595   HAVE_GNORBA_FALSE='#'
4596 else
4597   HAVE_GNORBA_TRUE='#'
4598   HAVE_GNORBA_FALSE=
4599 fi
4600         if test x$gnome_cv_orbit_found = xyes; then
4601
4602                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4603                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4604
4605
4606         else
4607                 if test xfail = xfailure; then
4608                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4609 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4610    { (exit 1); exit 1; }; }
4611                 fi
4612         fi
4613
4614                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4615                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4616                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4617                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4618                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4619                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4620                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4621
4622               else
4623                 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625                 no_gnome_config="yes"
4626               fi
4627             fi
4628
4629             if test x$exec_prefix = xNONE; then
4630                 if test x$prefix = xNONE; then
4631                     gnome_prefix=$ac_default_prefix/lib
4632                 else
4633                     gnome_prefix=$prefix/lib
4634                 fi
4635             else
4636                 gnome_prefix=`eval echo \`echo $libdir\``
4637             fi
4638
4639             if test "$no_gnome_config" = "yes"; then
4640               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4641 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4642               if test -f $gnome_prefix/gnomeConf.sh; then
4643                 echo "$as_me:$LINENO: result: found" >&5
4644 echo "${ECHO_T}found" >&6
4645                 echo "loading gnome configuration from" \
4646                      "$gnome_prefix/gnomeConf.sh"
4647                 . $gnome_prefix/gnomeConf.sh
4648
4649               else
4650                 echo "$as_me:$LINENO: result: not found" >&5
4651 echo "${ECHO_T}not found" >&6
4652                 if test xfail = xfail; then
4653                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4654 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4655    { (exit 1); exit 1; }; }
4656                 fi
4657               fi
4658             fi
4659         fi
4660
4661         if test -n ""; then
4662           n=""
4663           for i in $n; do
4664             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4665 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4666             case $i in
4667               applets)
4668
4669                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4670                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4671 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4672               docklets)
4673
4674                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4675                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4676 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4677               capplet)
4678
4679                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4680                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4681 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4682               *)
4683                 echo "$as_me:$LINENO: result: unknown library" >&5
4684 echo "${ECHO_T}unknown library" >&6
4685             esac
4686             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4687             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4688           done
4689         fi
4690
4691
4692     GNOME_DIR=src/gnome-console
4693   fi
4694 fi
4695
4696
4697
4698 # -------------------------------------------
4699 # smartalloc (default off)
4700 # -------------------------------------------
4701 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4702 if test "${enable_smartalloc+set}" = set; then
4703   enableval="$enable_smartalloc"
4704   if test x$enableval = xno; then
4705     support_smartalloc=no
4706   fi
4707 fi;
4708
4709 if test x$support_smartalloc = xyes; then
4710    cat >>confdefs.h <<\_ACEOF
4711 #define SMARTALLOC 1
4712 _ACEOF
4713
4714 fi
4715
4716 # -------------------------------------------
4717 # static-tools (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-static-tools or --disable-static-tools was given.
4720 if test "${enable_static_tools+set}" = set; then
4721   enableval="$enable_static_tools"
4722   if test x$enableval = xyes; then
4723      support_static_tools=yes
4724    fi
4725 fi;
4726
4727 TTOOL_LDFLAGS=
4728 if test x$support_static_tools = xyes; then
4729    TTOOL_LDFLAGS="-static"
4730 fi
4731
4732
4733 # -------------------------------------------
4734 # static-fd    (default off)
4735 # -------------------------------------------
4736 # Check whether --enable-static-fd or --disable-static-fd was given.
4737 if test "${enable_static_fd+set}" = set; then
4738   enableval="$enable_static_fd"
4739   if test x$enableval = xyes; then
4740      support_static_fd=yes
4741    fi
4742 fi;
4743
4744 STATIC_FD=
4745 if test x$support_static_fd = xyes; then
4746    STATIC_FD="static-bacula-fd"
4747 fi
4748
4749
4750 # -------------------------------------------
4751 # static-sd    (default off)
4752 # -------------------------------------------
4753 # Check whether --enable-static-sd or --disable-static-sd was given.
4754 if test "${enable_static_sd+set}" = set; then
4755   enableval="$enable_static_sd"
4756   if test x$enableval = xyes; then
4757      support_static_sd=yes
4758    fi
4759 fi;
4760
4761 STATIC_SD=
4762 if test x$support_static_sd = xyes; then
4763    STATIC_SD="static-bacula-sd"
4764 fi
4765
4766
4767 # -------------------------------------------
4768 # static-dir   (default off)
4769 # -------------------------------------------
4770 # Check whether --enable-static-dir or --disable-static-dir was given.
4771 if test "${enable_static_dir+set}" = set; then
4772   enableval="$enable_static_dir"
4773   if test x$enableval = xyes; then
4774      support_static_dir=yes
4775    fi
4776 fi;
4777
4778 STATIC_DIR=
4779 if test x$support_static_dir = xyes; then
4780    STATIC_DIR="static-bacula-dir"
4781 fi
4782
4783
4784 # -------------------------------------------
4785 # static-cons  (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-static-cons or --disable-static-cons was given.
4788 if test "${enable_static_cons+set}" = set; then
4789   enableval="$enable_static_cons"
4790   if test x$enableval = xyes; then
4791      support_static_cons=yes
4792    fi
4793 fi;
4794
4795 STATIC_CONS=
4796 if test x$support_static_cons = xyes; then
4797    STATIC_CONS="static-console"
4798 fi
4799
4800
4801 # -------------------------------------------
4802 # client_only  (default off)
4803 # -------------------------------------------
4804 # Check whether --enable-client-only or --disable-client-only was given.
4805 if test "${enable_client_only+set}" = set; then
4806   enableval="$enable_client_only"
4807   if test x$enableval = xyes; then
4808      build_client_only=yes
4809    fi
4810 fi;
4811 if test x$build_client_only = xno; then
4812    ALL_DIRS="subdirs"
4813 else
4814    ALL_DIRS=""
4815 fi
4816
4817
4818 # ---------------------------------------------------
4819 # Check for readline support/directory (default on)
4820 # ---------------------------------------------------
4821 # this allows you to turn it completely off
4822 # Check whether --enable-readline or --disable-readline was given.
4823 if test "${enable_readline+set}" = set; then
4824   enableval="$enable_readline"
4825   if test x$enableval = xno; then
4826     support_readline=no
4827   fi
4828 fi;
4829
4830 got_readline="no"
4831 READLINE_SRC=
4832 if test x$support_readline = xyes; then
4833    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4835 if test "${ac_cv_header_stdc+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <stdlib.h>
4846 #include <stdarg.h>
4847 #include <string.h>
4848 #include <float.h>
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860   (eval $ac_compile) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -s conftest.$ac_objext'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; }; then
4870   ac_cv_header_stdc=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 ac_cv_header_stdc=no
4876 fi
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4878
4879 if test $ac_cv_header_stdc = yes; then
4880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881   cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <string.h>
4889
4890 _ACEOF
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892   $EGREP "memchr" >/dev/null 2>&1; then
4893   :
4894 else
4895   ac_cv_header_stdc=no
4896 fi
4897 rm -f conftest*
4898
4899 fi
4900
4901 if test $ac_cv_header_stdc = yes; then
4902   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 #include <stdlib.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914   $EGREP "free" >/dev/null 2>&1; then
4915   :
4916 else
4917   ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
4923 if test $ac_cv_header_stdc = yes; then
4924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925   if test "$cross_compiling" = yes; then
4926   :
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 #include <ctype.h>
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939 #else
4940 # define ISLOWER(c) \
4941                    (('a' <= (c) && (c) <= 'i') \
4942                      || ('j' <= (c) && (c) <= 'r') \
4943                      || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4945 #endif
4946
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4948 int
4949 main ()
4950 {
4951   int i;
4952   for (i = 0; i < 256; i++)
4953     if (XOR (islower (i), ISLOWER (i))
4954         || toupper (i) != TOUPPER (i))
4955       exit(2);
4956   exit (0);
4957 }
4958 _ACEOF
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961   (eval $ac_link) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; }; then
4970   :
4971 else
4972   echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ( exit $ac_status )
4977 ac_cv_header_stdc=no
4978 fi
4979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 fi
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4985 if test $ac_cv_header_stdc = yes; then
4986
4987 cat >>confdefs.h <<\_ACEOF
4988 #define STDC_HEADERS 1
4989 _ACEOF
4990
4991 fi
4992
4993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5004                   inttypes.h stdint.h unistd.h
5005 do
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 $ac_includes_default
5020
5021 #include <$ac_header>
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025   (eval $ac_compile) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   eval "$as_ac_Header=yes"
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 eval "$as_ac_Header=no"
5041 fi
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047   cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 _ACEOF
5050
5051 fi
5052
5053 done
5054
5055
5056
5057 # Check whether --with-readline or --without-readline was given.
5058 if test "${with_readline+set}" = set; then
5059   withval="$with_readline"
5060
5061         case "$with_readline" in
5062         no) : ;;
5063         yes|*)
5064           if test "$with_readline" != "yes"; then
5065             CONS_INC="-I${with_readline}"
5066             CONS_LDFLAGS="-L$with_readline"
5067           else
5068              with_readline="/usr/include/readline"
5069           fi
5070           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 fi
5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5079 else
5080   # Is the header compilable?
5081 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5082 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091 #include <${with_readline}/readline.h>
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } &&
5099          { ac_try='test -s conftest.$ac_objext'
5100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101   (eval $ac_try) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; }; then
5105   ac_header_compiler=yes
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ac_header_compiler=no
5111 fi
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5115
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5118 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 #include <${with_readline}/readline.h>
5127 _ACEOF
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null; then
5136   if test -s conftest.err; then
5137     ac_cpp_err=$ac_c_preproc_warn_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   ac_header_preproc=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   ac_header_preproc=no
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5155
5156 # So?  What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5158   yes:no )
5159     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5163     (
5164       cat <<\_ASBOX
5165 ## ------------------------------------ ##
5166 ## Report this to bug-autoconf@gnu.org. ##
5167 ## ------------------------------------ ##
5168 _ASBOX
5169     ) |
5170       sed "s/^/$as_me: WARNING:     /" >&2
5171     ;;
5172   no:yes )
5173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5175     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5177     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5179     (
5180       cat <<\_ASBOX
5181 ## ------------------------------------ ##
5182 ## Report this to bug-autoconf@gnu.org. ##
5183 ## ------------------------------------ ##
5184 _ASBOX
5185     ) |
5186       sed "s/^/$as_me: WARNING:     /" >&2
5187     ;;
5188 esac
5189 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   eval "$as_ac_Header=$ac_header_preproc"
5195 fi
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5198
5199 fi
5200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201    cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_READLINE 1
5203 _ACEOF
5204
5205                CONS_LIBS="-lreadline -ltermcap"
5206                got_readline="yes"
5207
5208 else
5209    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5210 echo "$as_me: error: *** readline library missing" >&2;}
5211    { (exit 1); exit 1; }; }
5212
5213
5214 fi
5215
5216
5217           ;;
5218         esac
5219
5220 else
5221
5222        # check for standard readline library
5223        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5224   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5231 else
5232   # Is the header compilable?
5233 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 $ac_includes_default
5243 #include </usr/include/readline/readline.h>
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247   (eval $ac_compile) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_header_compiler=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_header_compiler=no
5263 fi
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6
5267
5268 # Is the header present?
5269 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5270 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 #include </usr/include/readline/readline.h>
5279 _ACEOF
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } >/dev/null; then
5288   if test -s conftest.err; then
5289     ac_cpp_err=$ac_c_preproc_warn_flag
5290   else
5291     ac_cpp_err=
5292   fi
5293 else
5294   ac_cpp_err=yes
5295 fi
5296 if test -z "$ac_cpp_err"; then
5297   ac_header_preproc=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302   ac_header_preproc=no
5303 fi
5304 rm -f conftest.err conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6
5307
5308 # So?  What about this header?
5309 case $ac_header_compiler:$ac_header_preproc in
5310   yes:no )
5311     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5315     (
5316       cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5321     ) |
5322       sed "s/^/$as_me: WARNING:     /" >&2
5323     ;;
5324   no:yes )
5325     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5327     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5329     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5331     (
5332       cat <<\_ASBOX
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5336 _ASBOX
5337     ) |
5338       sed "s/^/$as_me: WARNING:     /" >&2
5339     ;;
5340 esac
5341 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5342 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5343 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5347 fi
5348 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5349 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5350
5351 fi
5352 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5353    cat >>confdefs.h <<\_ACEOF
5354 #define HAVE_READLINE 1
5355 _ACEOF
5356
5357            got_readline="yes"
5358            CONS_INC="-I/usr/include/readline"
5359            CONS_LIBS="-lreadline -ltermcap"
5360
5361 else
5362
5363            # Did not find standard library, so try Bacula's default
5364             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 fi
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373 else
5374   # Is the header compilable?
5375 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5376 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385 #include <${TOP_DIR}/depkgs/readline/readline.h>
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_header_compiler=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_header_compiler=no
5405 fi
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5408 echo "${ECHO_T}$ac_header_compiler" >&6
5409
5410 # Is the header present?
5411 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5412 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 #include <${TOP_DIR}/depkgs/readline/readline.h>
5421 _ACEOF
5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } >/dev/null; then
5430   if test -s conftest.err; then
5431     ac_cpp_err=$ac_c_preproc_warn_flag
5432   else
5433     ac_cpp_err=
5434   fi
5435 else
5436   ac_cpp_err=yes
5437 fi
5438 if test -z "$ac_cpp_err"; then
5439   ac_header_preproc=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444   ac_header_preproc=no
5445 fi
5446 rm -f conftest.err conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5448 echo "${ECHO_T}$ac_header_preproc" >&6
5449
5450 # So?  What about this header?
5451 case $ac_header_compiler:$ac_header_preproc in
5452   yes:no )
5453     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5454 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5455     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5457     (
5458       cat <<\_ASBOX
5459 ## ------------------------------------ ##
5460 ## Report this to bug-autoconf@gnu.org. ##
5461 ## ------------------------------------ ##
5462 _ASBOX
5463     ) |
5464       sed "s/^/$as_me: WARNING:     /" >&2
5465     ;;
5466   no:yes )
5467     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5469     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5471     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5473     (
5474       cat <<\_ASBOX
5475 ## ------------------------------------ ##
5476 ## Report this to bug-autoconf@gnu.org. ##
5477 ## ------------------------------------ ##
5478 _ASBOX
5479     ) |
5480       sed "s/^/$as_me: WARNING:     /" >&2
5481     ;;
5482 esac
5483 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5484 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   eval "$as_ac_Header=$ac_header_preproc"
5489 fi
5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5492
5493 fi
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495    cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_READLINE 1
5497 _ACEOF
5498
5499                  got_readline="yes"
5500                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5501                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5502                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5503                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5504
5505 else
5506    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5507 echo "$as_me: error: *** readline library missing" >&2;}
5508    { (exit 1); exit 1; }; }
5509
5510
5511 fi
5512
5513
5514
5515
5516 fi
5517
5518
5519
5520
5521 fi;
5522 fi
5523
5524
5525
5526
5527
5528 # Minimal stuff for readline Makefile configuration
5529 MAKE_SHELL=/bin/sh
5530
5531
5532 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5534 if test "${ac_cv_header_stat_broken+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544 #include <sys/types.h>
5545 #include <sys/stat.h>
5546
5547 #if defined(S_ISBLK) && defined(S_IFDIR)
5548 # if S_ISBLK (S_IFDIR)
5549 You lose.
5550 # endif
5551 #endif
5552
5553 #if defined(S_ISBLK) && defined(S_IFCHR)
5554 # if S_ISBLK (S_IFCHR)
5555 You lose.
5556 # endif
5557 #endif
5558
5559 #if defined(S_ISLNK) && defined(S_IFREG)
5560 # if S_ISLNK (S_IFREG)
5561 You lose.
5562 # endif
5563 #endif
5564
5565 #if defined(S_ISSOCK) && defined(S_IFREG)
5566 # if S_ISSOCK (S_IFREG)
5567 You lose.
5568 # endif
5569 #endif
5570
5571 _ACEOF
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573   $EGREP "You lose" >/dev/null 2>&1; then
5574   ac_cv_header_stat_broken=yes
5575 else
5576   ac_cv_header_stat_broken=no
5577 fi
5578 rm -f conftest*
5579
5580 fi
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5582 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5583 if test $ac_cv_header_stat_broken = yes; then
5584
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STAT_MACROS_BROKEN 1
5587 _ACEOF
5588
5589 fi
5590
5591
5592
5593
5594
5595
5596 ac_header_dirent=no
5597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5598   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 #include <sys/types.h>
5612 #include <$ac_hdr>
5613
5614 int
5615 main ()
5616 {
5617 if ((DIR *) 0)
5618 return 0;
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); } &&
5629          { ac_try='test -s conftest.$ac_objext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   eval "$as_ac_Header=yes"
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 eval "$as_ac_Header=no"
5641 fi
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647   cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5649 _ACEOF
5650
5651 ac_header_dirent=$ac_hdr; break
5652 fi
5653
5654 done
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5659 if test "${ac_cv_search_opendir+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_func_search_save_LIBS=$LIBS
5663 ac_cv_search_opendir=no
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671
5672 /* Override any gcc2 internal prototype to avoid an error.  */
5673 #ifdef __cplusplus
5674 extern "C"
5675 #endif
5676 /* We use char because int might match the return type of a gcc2
5677    builtin and then its argument prototype would still apply.  */
5678 char opendir ();
5679 int
5680 main ()
5681 {
5682 opendir ();
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689   (eval $ac_link) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -s conftest$ac_exeext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   ac_cv_search_opendir="none required"
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 fi
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_opendir" = no; then
5707   for ac_lib in dir; do
5708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5709     cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716
5717 /* Override any gcc2 internal prototype to avoid an error.  */
5718 #ifdef __cplusplus
5719 extern "C"
5720 #endif
5721 /* We use char because int might match the return type of a gcc2
5722    builtin and then its argument prototype would still apply.  */
5723 char opendir ();
5724 int
5725 main ()
5726 {
5727 opendir ();
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734   (eval $ac_link) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -s conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_search_opendir="-l$ac_lib"
5745 break
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 fi
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752   done
5753 fi
5754 LIBS=$ac_func_search_save_LIBS
5755 fi
5756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5758 if test "$ac_cv_search_opendir" != no; then
5759   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5760
5761 fi
5762
5763 else
5764   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5766 if test "${ac_cv_search_opendir+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_opendir=no
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778
5779 /* Override any gcc2 internal prototype to avoid an error.  */
5780 #ifdef __cplusplus
5781 extern "C"
5782 #endif
5783 /* We use char because int might match the return type of a gcc2
5784    builtin and then its argument prototype would still apply.  */
5785 char opendir ();
5786 int
5787 main ()
5788 {
5789 opendir ();
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796   (eval $ac_link) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -s conftest$ac_exeext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_cv_search_opendir="none required"
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 fi
5812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5813 if test "$ac_cv_search_opendir" = no; then
5814   for ac_lib in x; do
5815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5816     cat >conftest.$ac_ext <<_ACEOF
5817 #line $LINENO "configure"
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823
5824 /* Override any gcc2 internal prototype to avoid an error.  */
5825 #ifdef __cplusplus
5826 extern "C"
5827 #endif
5828 /* We use char because int might match the return type of a gcc2
5829    builtin and then its argument prototype would still apply.  */
5830 char opendir ();
5831 int
5832 main ()
5833 {
5834 opendir ();
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -s conftest$ac_exeext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_search_opendir="-l$ac_lib"
5852 break
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 fi
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5859   done
5860 fi
5861 LIBS=$ac_func_search_save_LIBS
5862 fi
5863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5865 if test "$ac_cv_search_opendir" != no; then
5866   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5867
5868 fi
5869
5870 fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5882 do
5883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5884 echo "$as_me:$LINENO: checking for $ac_func" >&5
5885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5886 if eval "test \"\${$as_ac_var+set}\" = set"; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 /* System header to define __stub macros and hopefully few prototypes,
5897     which can conflict with char $ac_func (); below.
5898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899     <limits.h> exists even on freestanding compilers.  */
5900 #ifdef __STDC__
5901 # include <limits.h>
5902 #else
5903 # include <assert.h>
5904 #endif
5905 /* Override any gcc2 internal prototype to avoid an error.  */
5906 #ifdef __cplusplus
5907 extern "C"
5908 {
5909 #endif
5910 /* We use char because int might match the return type of a gcc2
5911    builtin and then its argument prototype would still apply.  */
5912 char $ac_func ();
5913 /* The GNU C library defines this for functions which it implements
5914     to always fail with ENOSYS.  Some functions are actually named
5915     something starting with __ and the normal name is an alias.  */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5917 choke me
5918 #else
5919 char (*f) () = $ac_func;
5920 #endif
5921 #ifdef __cplusplus
5922 }
5923 #endif
5924
5925 int
5926 main ()
5927 {
5928 return f != $ac_func;
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -s conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   eval "$as_ac_var=yes"
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 eval "$as_ac_var=no"
5951 fi
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5956 if test `eval echo '${'$as_ac_var'}'` = yes; then
5957   cat >>confdefs.h <<_ACEOF
5958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5959 _ACEOF
5960
5961 fi
5962 done
5963
5964
5965 for ac_func in nanosleep
5966 do
5967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 /* System header to define __stub macros and hopefully few prototypes,
5981     which can conflict with char $ac_func (); below.
5982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983     <limits.h> exists even on freestanding compilers.  */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5989 /* Override any gcc2 internal prototype to avoid an error.  */
5990 #ifdef __cplusplus
5991 extern "C"
5992 {
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996 char $ac_func ();
5997 /* The GNU C library defines this for functions which it implements
5998     to always fail with ENOSYS.  Some functions are actually named
5999     something starting with __ and the normal name is an alias.  */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 choke me
6002 #else
6003 char (*f) () = $ac_func;
6004 #endif
6005 #ifdef __cplusplus
6006 }
6007 #endif
6008
6009 int
6010 main ()
6011 {
6012 return f != $ac_func;
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   eval "$as_ac_var=yes"
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 eval "$as_ac_var=no"
6035 fi
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6040 if test `eval echo '${'$as_ac_var'}'` = yes; then
6041   cat >>confdefs.h <<_ACEOF
6042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6043 _ACEOF
6044
6045 fi
6046 done
6047
6048
6049
6050 for ac_header in varargs.h
6051 do
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054   echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 fi
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061 else
6062   # Is the header compilable?
6063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072 $ac_includes_default
6073 #include <$ac_header>
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077   (eval $ac_compile) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -s conftest.$ac_objext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_header_compiler=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_header_compiler=no
6093 fi
6094 rm -f conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6
6097
6098 # Is the header present?
6099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108 #include <$ac_header>
6109 _ACEOF
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6112   ac_status=$?
6113   grep -v '^ *+' conftest.er1 >conftest.err
6114   rm -f conftest.er1
6115   cat conftest.err >&5
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } >/dev/null; then
6118   if test -s conftest.err; then
6119     ac_cpp_err=$ac_c_preproc_warn_flag
6120   else
6121     ac_cpp_err=
6122   fi
6123 else
6124   ac_cpp_err=yes
6125 fi
6126 if test -z "$ac_cpp_err"; then
6127   ac_header_preproc=yes
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132   ac_header_preproc=no
6133 fi
6134 rm -f conftest.err conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6136 echo "${ECHO_T}$ac_header_preproc" >&6
6137
6138 # So?  What about this header?
6139 case $ac_header_compiler:$ac_header_preproc in
6140   yes:no )
6141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6145     (
6146       cat <<\_ASBOX
6147 ## ------------------------------------ ##
6148 ## Report this to bug-autoconf@gnu.org. ##
6149 ## ------------------------------------ ##
6150 _ASBOX
6151     ) |
6152       sed "s/^/$as_me: WARNING:     /" >&2
6153     ;;
6154   no:yes )
6155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6161     (
6162       cat <<\_ASBOX
6163 ## ------------------------------------ ##
6164 ## Report this to bug-autoconf@gnu.org. ##
6165 ## ------------------------------------ ##
6166 _ASBOX
6167     ) |
6168       sed "s/^/$as_me: WARNING:     /" >&2
6169     ;;
6170 esac
6171 echo "$as_me:$LINENO: checking for $ac_header" >&5
6172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   eval "$as_ac_Header=$ac_header_preproc"
6177 fi
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6180
6181 fi
6182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183   cat >>confdefs.h <<_ACEOF
6184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185 _ACEOF
6186
6187 fi
6188
6189 done
6190
6191
6192 # End of readline stuff
6193 # -----------------------------------------------------------------------
6194
6195
6196 # ---------------------------------------------------
6197 # Check for GMP support/directory
6198 # ---------------------------------------------------
6199 #GMP_SRC=
6200 #local_gmp="no"
6201 #AC_ARG_WITH(gmp,
6202 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6203 #  [
6204 #     case "$with_gmp" in
6205 #     no) : ;;
6206 #     yes|*)
6207 #       if test "$with_gmp" != "yes"; then
6208 #         GMP_INC="-I$with_gmp"
6209 #         GMP_LIBS="-lgmp"
6210 #         GMP_LDFLAGS="-L$with_gmp"
6211 #       else
6212 #          with_gmp="/usr/include"
6213 #       fi
6214 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6215 #          [ AC_MSG_RESULT(yes)
6216 #            AC_DEFINE(HAVE_GMP)
6217 #            GMP_LIBS="-lgmp"
6218 #            got_gmp="yes"
6219 #          ],
6220 #          [ AC_MSG_ERROR([*** gmp library missing])
6221 #          ]
6222 #       )
6223 #       ;;
6224 #     esac
6225 #  ],[
6226 #    # check for standard gmp library
6227 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6228 #    [ AC_MSG_RESULT(yes)
6229 #      AC_DEFINE(HAVE_GMP)
6230 #      got_gmp="yes"
6231 #      GMP_INC=
6232 #      GMP_LIBS="-lgmp"
6233 #    ], [
6234 #      # Did not find standard library, so use our own
6235 #      AC_MSG_RESULT(yes)
6236 #      AC_DEFINE(HAVE_GMP)
6237 #      got_gmp="yes"
6238 #      local_gmp="yes"
6239 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6240 #      GMP_LIBS="-lgmp"
6241 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6242 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6243 #    ])
6244 #  ]
6245 #)
6246 #AC_SUBST(GMP_INC)
6247 #AC_SUBST(GMP_LIBS)
6248 #AC_SUBST(GMP_LDFLAGS)
6249 #AC_SUBST(GMP_SRC)
6250
6251 # End of GMP stuff
6252 # -----------------------------------------------------------------------
6253
6254
6255 # ---------------------------------------------------
6256 # Check for CWEB support/directory
6257 # ---------------------------------------------------
6258 #CWEB_SRC=
6259 #CWEB=/bin
6260 #local_cweb="no"
6261 #AC_ARG_WITH(cweb,
6262 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6263 #  [
6264 #     case "$with_cweb" in
6265 #     no) : ;;
6266 #     yes|*)
6267 #       if test "$with_cweb" != "yes"; then
6268 #         CWEB_INC="-I$with_cweb"
6269 #         CWEB_LIBS="-lcweb"
6270 #         CWEB_LDFLAGS="-L$with_cweb"
6271 #       else
6272 #          with_cweb="/usr/include"
6273 #       fi
6274 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6275 #          [ AC_MSG_RESULT(yes)
6276 #            AC_DEFINE(HAVE_CWEB)
6277 #            CWEB_LIBS="-lcweb"
6278 #            got_cweb="yes"
6279 #          ],
6280 #          [ AC_MSG_ERROR([*** cweb library missing])
6281 #          ]
6282 #       )
6283 #       ;;
6284 #     esac
6285 #  ],[
6286 #    # check for standard cweb library
6287 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6288 #    [ AC_MSG_RESULT(yes)
6289 #      AC_DEFINE(HAVE_CWEB)
6290 #      got_cweb="yes"
6291 #      CWEB_INC=
6292 #      CWEB_LIBS="-lcweb"
6293 #    ], [
6294 #      # Did not find starndard library, so use our own
6295 #      AC_MSG_RESULT(yes)
6296 #      AC_DEFINE(HAVE_CWEB)
6297 #      got_cweb="yes"
6298 #      local_cweb="yes"
6299 #      CWEB=${TOP_DIR}/depkgs/cweb
6300 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6301 #      CWEB_LIBS="-lcweb"
6302 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6303 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6304 #    ])
6305 #  ]
6306 #)
6307 #AC_SUBST(CWEB)
6308 #AC_SUBST(CWEB_INC)
6309 #AC_SUBST(CWEB_LIBS)
6310 #AC_SUBST(CWEB_LDFLAGS)
6311 #AC_SUBST(CWEB_SRC)
6312
6313 # End of CWEB stuff
6314 # -----------------------------------------------------------------------
6315
6316
6317
6318 # -----------------------------------------------------------
6319 # Check whether user wants TCP wrappers support (default off)
6320 # -----------------------------------------------------------
6321 TCPW_MSG="no"
6322
6323 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6324 if test "${with_tcp_wrappers+set}" = set; then
6325   withval="$with_tcp_wrappers"
6326
6327     if test "x$withval" != "xno" ; then
6328        saved_LIBS="$LIBS"
6329        LIBS="$saved_LIBS -lwrap"
6330        echo "$as_me:$LINENO: checking for libwrap" >&5
6331 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6332        cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339  #include <tcpd.h>
6340              int deny_severity = 0;
6341              int allow_severity = 0;
6342              struct request_info *req;
6343 int
6344 main ()
6345 {
6346  hosts_access(req);
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353   (eval $ac_link) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363
6364             echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6
6366             cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_LIBWRAP 1
6368 _ACEOF
6369
6370             TCPW_MSG="yes"
6371
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376
6377             LIBS="$saved_LIBS -lwrap -lnsl"
6378             cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6380 /* confdefs.h.  */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h.  */
6385  #include <tcpd.h>
6386                  int deny_severity = 0;
6387                  int allow_severity = 0;
6388                  struct request_info *req;
6389 int
6390 main ()
6391 {
6392  hosts_access(req);
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399   (eval $ac_link) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } &&
6403          { ac_try='test -s conftest$ac_exeext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409
6410                  echo "$as_me:$LINENO: result: yes" >&5
6411 echo "${ECHO_T}yes" >&6
6412                  cat >>confdefs.h <<\_ACEOF
6413 #define HAVE_LIBWRAP 1
6414 _ACEOF
6415
6416                  TCPW_MSG="yes"
6417
6418 else
6419   echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6423 echo "$as_me: error: *** libwrap missing" >&2;}
6424    { (exit 1); exit 1; }; }
6425
6426 fi
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6428
6429 fi
6430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6431     fi
6432
6433
6434 fi;
6435
6436 # ------------------------------------------
6437 # Where to place working dir
6438 # ------------------------------------------
6439 working_dir=`eval echo ${sysconfdir}/working`
6440
6441 # Check whether --with-working-dir or --without-working-dir was given.
6442 if test "${with_working_dir+set}" = set; then
6443   withval="$with_working_dir"
6444
6445        if test "x$withval" != "xno" ; then
6446               working_dir=$withval
6447        fi
6448
6449
6450 fi;
6451
6452
6453
6454
6455 # ------------------------------------------
6456 # Where to place scriptdir (script files)
6457 # ------------------------------------------
6458 scriptdir=`eval echo ${sysconfdir}`
6459
6460 # Check whether --with-scriptdir or --without-scriptdir was given.
6461 if test "${with_scriptdir+set}" = set; then
6462   withval="$with_scriptdir"
6463
6464        if test "x$withval" != "xno" ; then
6465               scriptdir=$withval
6466        fi
6467
6468
6469 fi;
6470
6471
6472
6473
6474 # ------------------------------------------
6475 # Where to send dump email
6476 # ------------------------------------------
6477 dump_email=root@localhost
6478
6479 # Check whether --with-dump-email or --without-dump-email was given.
6480 if test "${with_dump_email+set}" = set; then
6481   withval="$with_dump_email"
6482
6483        if test "x$withval" != "xno" ; then
6484               dump_email=$withval
6485        fi
6486
6487
6488 fi;
6489
6490
6491
6492 # ------------------------------------------
6493 # Where to send job email
6494 # ------------------------------------------
6495 job_email=root@localhost
6496
6497 # Check whether --with-job-email or --without-job-email was given.
6498 if test "${with_job_email+set}" = set; then
6499   withval="$with_job_email"
6500
6501        if test "x$withval" != "xno" ; then
6502               job_email=$withval
6503        fi
6504
6505
6506 fi;
6507
6508
6509
6510 # ------------------------------------------
6511 # Where to find smtp host
6512 # ------------------------------------------
6513 smtp_host=localhost
6514
6515 # Check whether --with-smtp_host or --without-smtp_host was given.
6516 if test "${with_smtp_host+set}" = set; then
6517   withval="$with_smtp_host"
6518
6519        if test "x$withval" != "xno" ; then
6520               smtp_host=$withval
6521        fi
6522
6523
6524 fi;
6525
6526
6527
6528
6529 # ------------------------------------
6530 # Where to place pid files
6531 # ------------------------------------
6532 piddir=/var/run
6533
6534 # Check whether --with-pid-dir or --without-pid-dir was given.
6535 if test "${with_pid_dir+set}" = set; then
6536   withval="$with_pid_dir"
6537
6538         if test "x$withval" != "xno" ; then
6539             piddir=$withval
6540         fi
6541
6542
6543 fi;
6544
6545 cat >>confdefs.h <<_ACEOF
6546 #define _PATH_BACULA_PIDDIR "$piddir"
6547 _ACEOF
6548
6549
6550
6551
6552 # ------------------------------------
6553 # Where to place subsys "lock file"
6554 # ------------------------------------
6555 subsysdir=/var/run/subsys
6556
6557 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6558 if test "${with_subsys_dir+set}" = set; then
6559   withval="$with_subsys_dir"
6560
6561         if test "x$withval" != "xno" ; then
6562             subsysdir=$withval
6563         fi
6564
6565
6566 fi;
6567
6568
6569
6570
6571
6572 # ------------------------------------
6573 # Where to start assigning ports
6574 # ------------------------------------
6575 baseport=9101
6576
6577 # Check whether --with-baseport or --without-baseport was given.
6578 if test "${with_baseport+set}" = set; then
6579   withval="$with_baseport"
6580
6581         if test "x$withval" != "xno" ; then
6582              baseport=$withval
6583         fi
6584
6585
6586 fi;
6587
6588
6589 dir_port=`expr $baseport`
6590 fd_port=`expr $baseport + 1`
6591 sd_port=`expr $fd_port + 1`
6592
6593
6594
6595
6596
6597
6598 # ------------------------------------------
6599 # Generate passwords
6600 # ------------------------------------------
6601 dir_password=
6602
6603 # Check whether --with-dir-password or --without-dir-password was given.
6604 if test "${with_dir_password+set}" = set; then
6605   withval="$with_dir_password"
6606
6607        if test "x$withval" != "xno" ; then
6608            dir_password=$withval
6609        fi
6610
6611
6612 fi;
6613
6614 if test "x$dir_password" = "x" ; then
6615    if test "x$OPENSSL" = "xnone" ; then
6616 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6617       key=`autoconf/randpass 33`
6618    else
6619       key=`openssl rand -base64 33`
6620    fi
6621    dir_password=$key
6622 fi
6623
6624 fd_password=
6625
6626 # Check whether --with-fd-password or --without-fd-password was given.
6627 if test "${with_fd_password+set}" = set; then
6628   withval="$with_fd_password"
6629
6630        if test "x$withval" != "xno" ; then
6631            fd_password=$withval
6632        fi
6633
6634
6635 fi;
6636
6637 if test "x$fd_password" = "x" ; then
6638    if test "x$OPENSSL" = "xnone" ; then
6639 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6640       key=`autoconf/randpass 37`
6641    else
6642       key=`openssl rand -base64 33`
6643    fi
6644    fd_password=$key
6645 fi
6646
6647 sd_password=
6648
6649 # Check whether --with-sd-password or --without-sd-password was given.
6650 if test "${with_sd_password+set}" = set; then
6651   withval="$with_sd_password"
6652
6653        if test "x$withval" != "xno" ; then
6654            sd_password=$withval
6655        fi
6656
6657
6658 fi;
6659
6660 if test "x$sd_password" = "x" ; then
6661    if test "x$OPENSSL" = "xnone" ; then
6662 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6663       key=`autoconf/randpass 41`
6664    else
6665       key=`openssl rand -base64 33`
6666    fi
6667    sd_password=$key
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 # ------------------------------------------------
6679 # Bacula check for various SQL database engines
6680 # ------------------------------------------------
6681
6682 db_found=no
6683 echo "$as_me:$LINENO: checking for MySQL support" >&5
6684 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6685
6686 # Check whether --with-mysql or --without-mysql was given.
6687 if test "${with_mysql+set}" = set; then
6688   withval="$with_mysql"
6689
6690   if test "$withval" != "no"; then
6691         if test "$withval" = "yes"; then
6692                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6693                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6694                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6695                         MYSQL_BINDIR=/usr/local/mysql/bin
6696                 elif test -f /usr/include/mysql/mysql.h; then
6697                         MYSQL_INCDIR=/usr/include/mysql
6698                         MYSQL_LIBDIR=/usr/lib/mysql
6699                         MYSQL_BINDIR=/usr/bin
6700                 elif test -f /usr/include/mysql.h; then
6701                         MYSQL_INCDIR=/usr/include
6702                         MYSQL_LIBDIR=/usr/lib
6703                         MYSQL_BINDIR=/usr/bin
6704                 elif test -f /usr/local/include/mysql/mysql.h; then
6705                         MYSQL_INCDIR=/usr/local/include/mysql
6706                         MYSQL_LIBDIR=/usr/local/lib/mysql
6707                         MYSQL_BINDIR=/usr/local/bin
6708                 elif test -f /usr/local/include/mysql.h; then
6709                         MYSQL_INCDIR=/usr/local/include
6710                         MYSQL_LIBDIR=/usr/local/lib
6711                         MYSQL_BINDIR=/usr/local/bin
6712                 else
6713                    echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6
6715                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6716 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6717    { (exit 1); exit 1; }; }
6718                 fi
6719         else
6720                 if test -f $withval/include/mysql/mysql.h; then
6721                         MYSQL_INCDIR=$withval/include/mysql
6722                         MYSQL_LIBDIR=$withval/lib/mysql
6723                         MYSQL_BINDIR=$withval/bin
6724                 elif test -f $withval/include/mysql.h; then
6725                         MYSQL_INCDIR=$withval/include
6726                         MYSQL_LIBDIR=$withval/lib
6727                         MYSQL_BINDIR=$withval/bin
6728                 else
6729                    echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6
6731                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6732 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6733    { (exit 1); exit 1; }; }
6734                 fi
6735         fi
6736     SQL_INCLUDE=-I$MYSQL_INCDIR
6737     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6738     SQL_BINDIR=$MYSQL_BINDIR
6739
6740     cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_MYSQL 1
6742 _ACEOF
6743
6744     echo "$as_me:$LINENO: result: yes" >&5
6745 echo "${ECHO_T}yes" >&6
6746     db_found=yes
6747     support_mysql=yes
6748     db_name=MySQL
6749     DB_NAME=mysql
6750
6751   else
6752         echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6
6754   fi
6755
6756 else
6757
6758     echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6760
6761 fi;
6762
6763
6764 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6765 if test "${with_embedded_mysql+set}" = set; then
6766   withval="$with_embedded_mysql"
6767
6768   if test "$withval" != "no"; then
6769         if test "$withval" = "yes"; then
6770                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6771                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6772                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6773                         MYSQL_BINDIR=/usr/local/mysql/bin
6774                 elif test -f /usr/include/mysql/mysql.h; then
6775                         MYSQL_INCDIR=/usr/include/mysql
6776                         MYSQL_LIBDIR=/usr/lib/mysql
6777                         MYSQL_BINDIR=/usr/bin
6778                 elif test -f /usr/include/mysql.h; then
6779                         MYSQL_INCDIR=/usr/include
6780                         MYSQL_LIBDIR=/usr/lib
6781                         MYSQL_BINDIR=/usr/bin
6782                 elif test -f /usr/local/include/mysql/mysql.h; then
6783                         MYSQL_INCDIR=/usr/local/include/mysql
6784                         MYSQL_LIBDIR=/usr/local/lib/mysql
6785                         MYSQL_BINDIR=/usr/local/bin
6786                 elif test -f /usr/local/include/mysql.h; then
6787                         MYSQL_INCDIR=/usr/local/include
6788                         MYSQL_LIBDIR=/usr/local/lib
6789                         MYSQL_BINDIR=/usr/local/bin
6790                 else
6791                    echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6
6793                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6794 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6795    { (exit 1); exit 1; }; }
6796                 fi
6797         else
6798                 if test -f $withval/include/mysql/mysql.h; then
6799                         MYSQL_INCDIR=$withval/include/mysql
6800                         MYSQL_LIBDIR=$withval/lib/mysql
6801                         MYSQL_BINDIR=$withval/bin
6802                 elif test -f $withval/include/mysql.h; then
6803                         MYSQL_INCDIR=$withval/include
6804                         MYSQL_LIBDIR=$withval/lib
6805                         MYSQL_BINDIR=$withval/bin
6806                 else
6807                    echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6
6809                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6810 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6811    { (exit 1); exit 1; }; }
6812                 fi
6813         fi
6814     SQL_INCLUDE=-I$MYSQL_INCDIR
6815     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6816     SQL_BINDIR=$MYSQL_BINDIR
6817
6818     cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_MYSQL 1
6820 _ACEOF
6821
6822     cat >>confdefs.h <<\_ACEOF
6823 #define HAVE_EMBEDDED_MYSQL 1
6824 _ACEOF
6825
6826     echo "$as_me:$LINENO: result: yes" >&5
6827 echo "${ECHO_T}yes" >&6
6828     db_found=yes
6829     support_mysql=yes
6830     db_name=MySQL
6831     DB_NAME=mysql
6832
6833   else
6834         echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6836   fi
6837
6838 else
6839
6840   echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6
6842
6843 fi;
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853 # ------------------------------------------------
6854 # Bacula check for various SQL database engines
6855 # ------------------------------------------------
6856
6857 db_found=no
6858 echo "$as_me:$LINENO: checking for SQLite support" >&5
6859 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6860
6861 # Check whether --with-sqlite or --without-sqlite was given.
6862 if test "${with_sqlite+set}" = set; then
6863   withval="$with_sqlite"
6864
6865   if test "$withval" != "no"; then
6866         if test "$withval" = "yes"; then
6867                 if test -f /usr/local/include/sqlite.h; then
6868                         SQLITE_INCDIR=/usr/local/include
6869                         SQLITE_LIBDIR=/usr/local/lib
6870                         SQLITE_BINDIR=/usr/local/bin
6871                 elif test -f /usr/include/sqlite.h; then
6872                         SQLITE_INCDIR=/usr/include
6873                         SQLITE_LIBDIR=/usr/lib
6874                         SQLITE_BINDIR=/usr/bin
6875                 else
6876                    echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6
6878                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6879 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6880    { (exit 1); exit 1; }; }
6881                 fi
6882         else
6883                 if test -f $withval/sqlite.h; then
6884                         SQLITE_INCDIR=$withval
6885                         SQLITE_LIBDIR=$withval
6886                         SQLITE_BINDIR=$withval
6887                 else
6888                    echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6
6890                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6891 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6892    { (exit 1); exit 1; }; }
6893                 fi
6894         fi
6895     SQL_INCLUDE=-I$SQLITE_INCDIR
6896     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6897     SQL_BINDIR=$SQLITE_BINDIR
6898
6899     cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_SQLITE 1
6901 _ACEOF
6902
6903     echo "$as_me:$LINENO: result: yes" >&5
6904 echo "${ECHO_T}yes" >&6
6905     db_found=yes
6906     support_sqlite=yes
6907     db_name=SQLite
6908     DB_NAME=sqlite
6909
6910   else
6911         echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6
6913   fi
6914
6915 else
6916
6917   echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6
6919
6920 fi;
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define PROTOTYPES 1
6932 _ACEOF
6933
6934
6935 if test -z "$CFLAGS"; then
6936     if test -z "$CCOPTS"; then
6937         CCOPTS='-g -O2'
6938     fi
6939     CFLAGS="$CCOPTS"
6940 fi
6941
6942
6943
6944
6945 largefile_support="no"
6946
6947    # Check whether --enable-largefile or --disable-largefile was given.
6948 if test "${enable_largefile+set}" = set; then
6949   enableval="$enable_largefile"
6950
6951 fi;
6952    if test "$enable_largefile" != no; then
6953      if test -n "$ac_tool_prefix"; then
6954   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
6955 set dummy ${ac_tool_prefix}getconf; ac_word=$2
6956 echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958 if test "${ac_cv_prog_GETCONF+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   if test -n "$GETCONF"; then
6962   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
6963 else
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 for as_dir in $PATH
6966 do
6967   IFS=$as_save_IFS
6968   test -z "$as_dir" && as_dir=.
6969   for ac_exec_ext in '' $ac_executable_extensions; do
6970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
6972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973     break 2
6974   fi
6975 done
6976 done
6977
6978 fi
6979 fi
6980 GETCONF=$ac_cv_prog_GETCONF
6981 if test -n "$GETCONF"; then
6982   echo "$as_me:$LINENO: result: $GETCONF" >&5
6983 echo "${ECHO_T}$GETCONF" >&6
6984 else
6985   echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6987 fi
6988
6989 fi
6990 if test -z "$ac_cv_prog_GETCONF"; then
6991   ac_ct_GETCONF=$GETCONF
6992   # Extract the first word of "getconf", so it can be a program name with args.
6993 set dummy getconf; ac_word=$2
6994 echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6996 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   if test -n "$ac_ct_GETCONF"; then
7000   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009     ac_cv_prog_ac_ct_GETCONF="getconf"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015
7016 fi
7017 fi
7018 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7019 if test -n "$ac_ct_GETCONF"; then
7020   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7021 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7022 else
7023   echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6
7025 fi
7026
7027   GETCONF=$ac_ct_GETCONF
7028 else
7029   GETCONF="$ac_cv_prog_GETCONF"
7030 fi
7031
7032      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7033 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7034 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7038         ac_cv_sys_largefile_CFLAGS=no
7039         case "$host_os" in
7040            # IRIX 6.2 and later require cc -n32.
7041            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7042              if test "$GCC" != yes; then
7043                ac_cv_sys_largefile_CFLAGS=-n32
7044              fi
7045              ac_save_CC="$CC"
7046              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7047              cat >conftest.$ac_ext <<_ACEOF
7048 #line $LINENO "configure"
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054
7055 int
7056 main ()
7057 {
7058
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065   (eval $ac_link) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } &&
7069          { ac_try='test -s conftest$ac_exeext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   :
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ac_cv_sys_largefile_CFLAGS=no
7081 fi
7082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7083              CC="$ac_save_CC"
7084            esac
7085       }
7086 fi
7087 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7088 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7089      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7090 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7091 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7095         ac_cv_sys_largefile_LDFLAGS=no
7096
7097       }
7098 fi
7099 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7100 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7101      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7102 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7103 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7107         ac_cv_sys_largefile_LIBS=no
7108
7109       }
7110 fi
7111 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7112 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7113
7114      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7115        case "$ac_flag" in
7116        no) ;;
7117        -D_FILE_OFFSET_BITS=*) ;;
7118        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7119        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7120        -D?* | -I?*)
7121          case "$ac_flag" in
7122    no) ;;
7123    ?*)
7124      case "$CPPFLAGS" in
7125      '') CPPFLAGS="$ac_flag" ;;
7126      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7127      esac ;;
7128    esac ;;
7129        *)
7130          case "$ac_flag" in
7131    no) ;;
7132    ?*)
7133      case "$CFLAGS" in
7134      '') CFLAGS="$ac_flag" ;;
7135      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7136      esac ;;
7137    esac ;;
7138        esac
7139      done
7140      case "$ac_cv_sys_largefile_LDFLAGS" in
7141    no) ;;
7142    ?*)
7143      case "$LDFLAGS" in
7144      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7145      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7146      esac ;;
7147    esac
7148      case "$ac_cv_sys_largefile_LIBS" in
7149    no) ;;
7150    ?*)
7151      case "$LIBS" in
7152      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7153      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7154      esac ;;
7155    esac
7156      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7157 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7158 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   ac_cv_sys_file_offset_bits=no
7162       case "$host_os" in
7163         # HP-UX 10.20 and later
7164         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7165           ac_cv_sys_file_offset_bits=64 ;;
7166         esac
7167       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7168         case "$ac_flag" in
7169         -D_FILE_OFFSET_BITS)
7170           ac_cv_sys_file_offset_bits=1 ;;
7171         -D_FILE_OFFSET_BITS=*)
7172           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7173         esac
7174       done
7175
7176 fi
7177 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7178 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7179    if test "$ac_cv_sys_file_offset_bits" != no; then
7180
7181 cat >>confdefs.h <<_ACEOF
7182 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7183 _ACEOF
7184
7185    fi
7186      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7187 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7188 if test "${ac_cv_sys_largefile_source+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   ac_cv_sys_largefile_source=no
7192       case "$host_os" in
7193         # HP-UX 10.20 and later
7194         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7195           ac_cv_sys_largefile_source=1 ;;
7196         esac
7197       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7198         case "$ac_flag" in
7199         -D_LARGEFILE_SOURCE)
7200           ac_cv_sys_largefile_source=1 ;;
7201         -D_LARGEFILE_SOURCE=*)
7202           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7203         esac
7204       done
7205
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7208 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7209    if test "$ac_cv_sys_largefile_source" != no; then
7210
7211 cat >>confdefs.h <<_ACEOF
7212 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7213 _ACEOF
7214
7215    fi
7216      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7217 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7218 if test "${ac_cv_sys_large_files+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   ac_cv_sys_large_files=no
7222       case "$host_os" in
7223         # AIX 4.2 and later
7224         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7225           ac_cv_sys_large_files=1 ;;
7226         esac
7227       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7228         case "$ac_flag" in
7229         -D_LARGE_FILES)
7230           ac_cv_sys_large_files=1 ;;
7231         -D_LARGE_FILES=*)
7232           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7233         esac
7234       done
7235
7236 fi
7237 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7238 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7239    if test "$ac_cv_sys_large_files" != no; then
7240
7241 cat >>confdefs.h <<_ACEOF
7242 #define _LARGE_FILES $ac_cv_sys_large_files
7243 _ACEOF
7244
7245    fi
7246    fi
7247
7248
7249
7250 echo "$as_me:$LINENO: checking for X" >&5
7251 echo $ECHO_N "checking for X... $ECHO_C" >&6
7252
7253
7254 # Check whether --with-x or --without-x was given.
7255 if test "${with_x+set}" = set; then
7256   withval="$with_x"
7257
7258 fi;
7259 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7260 if test "x$with_x" = xno; then
7261   # The user explicitly disabled X.
7262   have_x=disabled
7263 else
7264   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7265     # Both variables are already set.
7266     have_x=yes
7267   else
7268     if test "${ac_cv_have_x+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   # One or both of the vars are not set, and there is no cached value.
7272 ac_x_includes=no ac_x_libraries=no
7273 rm -fr conftest.dir
7274 if mkdir conftest.dir; then
7275   cd conftest.dir
7276   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7277   cat >Imakefile <<'_ACEOF'
7278 acfindx:
7279         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7280 _ACEOF
7281   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7282     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7283     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7284     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7285     for ac_extension in a so sl; do
7286       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7287          test -f $ac_im_libdir/libX11.$ac_extension; then
7288         ac_im_usrlibdir=$ac_im_libdir; break
7289       fi
7290     done
7291     # Screen out bogus values from the imake configuration.  They are
7292     # bogus both because they are the default anyway, and because
7293     # using them would break gcc on systems where it needs fixed includes.
7294     case $ac_im_incroot in
7295         /usr/include) ;;
7296         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7297     esac
7298     case $ac_im_usrlibdir in
7299         /usr/lib | /lib) ;;
7300         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7301     esac
7302   fi
7303   cd ..
7304   rm -fr conftest.dir
7305 fi
7306
7307 # Standard set of common directories for X headers.
7308 # Check X11 before X11Rn because it is often a symlink to the current release.
7309 ac_x_header_dirs='
7310 /usr/X11/include
7311 /usr/X11R6/include
7312 /usr/X11R5/include
7313 /usr/X11R4/include
7314
7315 /usr/include/X11
7316 /usr/include/X11R6
7317 /usr/include/X11R5
7318 /usr/include/X11R4
7319
7320 /usr/local/X11/include
7321 /usr/local/X11R6/include
7322 /usr/local/X11R5/include
7323 /usr/local/X11R4/include
7324
7325 /usr/local/include/X11
7326 /usr/local/include/X11R6
7327 /usr/local/include/X11R5
7328 /usr/local/include/X11R4
7329
7330 /usr/X386/include
7331 /usr/x386/include
7332 /usr/XFree86/include/X11
7333
7334 /usr/include
7335 /usr/local/include
7336 /usr/unsupported/include
7337 /usr/athena/include
7338 /usr/local/x11r5/include
7339 /usr/lpp/Xamples/include
7340
7341 /usr/openwin/include
7342 /usr/openwin/share/include'
7343
7344 if test "$ac_x_includes" = no; then
7345   # Guess where to find include files, by looking for Intrinsic.h.
7346   # First, try using that file with no special directory specified.
7347   cat >conftest.$ac_ext <<_ACEOF
7348 #line $LINENO "configure"
7349 /* confdefs.h.  */
7350 _ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h.  */
7354 #include <X11/Intrinsic.h>
7355 _ACEOF
7356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } >/dev/null; then
7364   if test -s conftest.err; then
7365     ac_cpp_err=$ac_c_preproc_warn_flag
7366   else
7367     ac_cpp_err=
7368   fi
7369 else
7370   ac_cpp_err=yes
7371 fi
7372 if test -z "$ac_cpp_err"; then
7373   # We can compile using X headers with no special include directory.
7374 ac_x_includes=
7375 else
7376   echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379   for ac_dir in $ac_x_header_dirs; do
7380   if test -r "$ac_dir/X11/Intrinsic.h"; then
7381     ac_x_includes=$ac_dir
7382     break
7383   fi
7384 done
7385 fi
7386 rm -f conftest.err conftest.$ac_ext
7387 fi # $ac_x_includes = no
7388
7389 if test "$ac_x_libraries" = no; then
7390   # Check for the libraries.
7391   # See if we find them without any special options.
7392   # Don't add to $LIBS permanently.
7393   ac_save_LIBS=$LIBS
7394   LIBS="-lXt $LIBS"
7395   cat >conftest.$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402 #include <X11/Intrinsic.h>
7403 int
7404 main ()
7405 {
7406 XtMalloc (0)
7407   ;
7408   return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext conftest$ac_exeext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413   (eval $ac_link) 2>&5
7414   ac_status=$?
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } &&
7417          { ac_try='test -s conftest$ac_exeext'
7418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419   (eval $ac_try) 2>&5
7420   ac_status=$?
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); }; }; then
7423   LIBS=$ac_save_LIBS
7424 # We can link X programs with no special library path.
7425 ac_x_libraries=
7426 else
7427   echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 LIBS=$ac_save_LIBS
7431 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7432 do
7433   # Don't even attempt the hair of trying to link an X program!
7434   for ac_extension in a so sl; do
7435     if test -r $ac_dir/libXt.$ac_extension; then
7436       ac_x_libraries=$ac_dir
7437       break 2
7438     fi
7439   done
7440 done
7441 fi
7442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7443 fi # $ac_x_libraries = no
7444
7445 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7446   # Didn't find X anywhere.  Cache the known absence of X.
7447   ac_cv_have_x="have_x=no"
7448 else
7449   # Record where we found X for the cache.
7450   ac_cv_have_x="have_x=yes \
7451                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7452 fi
7453 fi
7454
7455   fi
7456   eval "$ac_cv_have_x"
7457 fi # $with_x != no
7458
7459 if test "$have_x" != yes; then
7460   echo "$as_me:$LINENO: result: $have_x" >&5
7461 echo "${ECHO_T}$have_x" >&6
7462   no_x=yes
7463 else
7464   # If each of the values was on the command line, it overrides each guess.
7465   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7466   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7467   # Update the cache value to reflect the command line values.
7468   ac_cv_have_x="have_x=yes \
7469                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7470   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7471 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7472 fi
7473
7474 if test "$no_x" = yes; then
7475   # Not all programs may use this symbol, but it does not hurt to define it.
7476
7477 cat >>confdefs.h <<\_ACEOF
7478 #define X_DISPLAY_MISSING 1
7479 _ACEOF
7480
7481   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7482 else
7483   if test -n "$x_includes"; then
7484     X_CFLAGS="$X_CFLAGS -I$x_includes"
7485   fi
7486
7487   # It would also be nice to do this for all -L options, not just this one.
7488   if test -n "$x_libraries"; then
7489     X_LIBS="$X_LIBS -L$x_libraries"
7490     # For Solaris; some versions of Sun CC require a space after -R and
7491     # others require no space.  Words are not sufficient . . . .
7492     case `(uname -sr) 2>/dev/null` in
7493     "SunOS 5"*)
7494       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7495 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7496       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7497       cat >conftest.$ac_ext <<_ACEOF
7498 #line $LINENO "configure"
7499 /* confdefs.h.  */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h.  */
7504
7505 int
7506 main ()
7507 {
7508
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515   (eval $ac_link) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); } &&
7519          { ac_try='test -s conftest$ac_exeext'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   ac_R_nospace=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 ac_R_nospace=no
7531 fi
7532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7533       if test $ac_R_nospace = yes; then
7534         echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536         X_LIBS="$X_LIBS -R$x_libraries"
7537       else
7538         LIBS="$ac_xsave_LIBS -R $x_libraries"
7539         cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546
7547 int
7548 main ()
7549 {
7550
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557   (eval $ac_link) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } &&
7561          { ac_try='test -s conftest$ac_exeext'
7562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563   (eval $ac_try) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); }; }; then
7567   ac_R_space=yes
7568 else
7569   echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_R_space=no
7573 fi
7574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575         if test $ac_R_space = yes; then
7576           echo "$as_me:$LINENO: result: yes" >&5
7577 echo "${ECHO_T}yes" >&6
7578           X_LIBS="$X_LIBS -R $x_libraries"
7579         else
7580           echo "$as_me:$LINENO: result: neither works" >&5
7581 echo "${ECHO_T}neither works" >&6
7582         fi
7583       fi
7584       LIBS=$ac_xsave_LIBS
7585     esac
7586   fi
7587
7588   # Check for system-dependent libraries X programs must link with.
7589   # Do this before checking for the system-independent R6 libraries
7590   # (-lICE), since we may need -lsocket or whatever for X linking.
7591
7592   if test "$ISC" = yes; then
7593     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7594   else
7595     # Martyn Johnson says this is needed for Ultrix, if the X
7596     # libraries were built with DECnet support.  And Karl Berry says
7597     # the Alpha needs dnet_stub (dnet does not exist).
7598     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7599     cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606
7607 /* Override any gcc2 internal prototype to avoid an error.  */
7608 #ifdef __cplusplus
7609 extern "C"
7610 #endif
7611 /* We use char because int might match the return type of a gcc2
7612    builtin and then its argument prototype would still apply.  */
7613 char XOpenDisplay ();
7614 int
7615 main ()
7616 {
7617 XOpenDisplay ();
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624   (eval $ac_link) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); } &&
7628          { ac_try='test -s conftest$ac_exeext'
7629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630   (eval $ac_try) 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; }; then
7634   :
7635 else
7636   echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7638
7639 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7640 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7641 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-ldnet  $LIBS"
7646 cat >conftest.$ac_ext <<_ACEOF
7647 #line $LINENO "configure"
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653
7654 /* Override any gcc2 internal prototype to avoid an error.  */
7655 #ifdef __cplusplus
7656 extern "C"
7657 #endif
7658 /* We use char because int might match the return type of a gcc2
7659    builtin and then its argument prototype would still apply.  */
7660 char dnet_ntoa ();
7661 int
7662 main ()
7663 {
7664 dnet_ntoa ();
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671   (eval $ac_link) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } &&
7675          { ac_try='test -s conftest$ac_exeext'
7676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677   (eval $ac_try) 2>&5
7678   ac_status=$?
7679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680   (exit $ac_status); }; }; then
7681   ac_cv_lib_dnet_dnet_ntoa=yes
7682 else
7683   echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7685
7686 ac_cv_lib_dnet_dnet_ntoa=no
7687 fi
7688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7689 LIBS=$ac_check_lib_save_LIBS
7690 fi
7691 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7692 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7693 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7694   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7695 fi
7696
7697     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7698       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7699 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7700 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-ldnet_stub  $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7707 /* confdefs.h.  */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h.  */
7712
7713 /* Override any gcc2 internal prototype to avoid an error.  */
7714 #ifdef __cplusplus
7715 extern "C"
7716 #endif
7717 /* We use char because int might match the return type of a gcc2
7718    builtin and then its argument prototype would still apply.  */
7719 char dnet_ntoa ();
7720 int
7721 main ()
7722 {
7723 dnet_ntoa ();
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730   (eval $ac_link) 2>&5
7731   ac_status=$?
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -s conftest$ac_exeext'
7735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736   (eval $ac_try) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); }; }; then
7740   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7741 else
7742   echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745 ac_cv_lib_dnet_stub_dnet_ntoa=no
7746 fi
7747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7748 LIBS=$ac_check_lib_save_LIBS
7749 fi
7750 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7751 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7752 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7753   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7754 fi
7755
7756     fi
7757 fi
7758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7759     LIBS="$ac_xsave_LIBS"
7760
7761     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7762     # to get the SysV transport functions.
7763     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7764     # needs -lnsl.
7765     # The nsl library prevents programs from opening the X display
7766     # on Irix 5.2, according to T.E. Dickey.
7767     # The functions gethostbyname, getservbyname, and inet_addr are
7768     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7769     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7770 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7771 if test "${ac_cv_func_gethostbyname+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7776 /* confdefs.h.  */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h.  */
7781 /* System header to define __stub macros and hopefully few prototypes,
7782     which can conflict with char gethostbyname (); below.
7783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784     <limits.h> exists even on freestanding compilers.  */
7785 #ifdef __STDC__
7786 # include <limits.h>
7787 #else
7788 # include <assert.h>
7789 #endif
7790 /* Override any gcc2 internal prototype to avoid an error.  */
7791 #ifdef __cplusplus
7792 extern "C"
7793 {
7794 #endif
7795 /* We use char because int might match the return type of a gcc2
7796    builtin and then its argument prototype would still apply.  */
7797 char gethostbyname ();
7798 /* The GNU C library defines this for functions which it implements
7799     to always fail with ENOSYS.  Some functions are actually named
7800     something starting with __ and the normal name is an alias.  */
7801 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7802 choke me
7803 #else
7804 char (*f) () = gethostbyname;
7805 #endif
7806 #ifdef __cplusplus
7807 }
7808 #endif
7809
7810 int
7811 main ()
7812 {
7813 return f != gethostbyname;
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820   (eval $ac_link) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -s conftest$ac_exeext'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_cv_func_gethostbyname=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_cv_func_gethostbyname=no
7836 fi
7837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7838 fi
7839 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7840 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7841
7842     if test $ac_cv_func_gethostbyname = no; then
7843       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7844 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7845 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   ac_check_lib_save_LIBS=$LIBS
7849 LIBS="-lnsl  $LIBS"
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line $LINENO "configure"
7852 /* confdefs.h.  */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h.  */
7857
7858 /* Override any gcc2 internal prototype to avoid an error.  */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 /* We use char because int might match the return type of a gcc2
7863    builtin and then its argument prototype would still apply.  */
7864 char gethostbyname ();
7865 int
7866 main ()
7867 {
7868 gethostbyname ();
7869   ;
7870   return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875   (eval $ac_link) 2>&5
7876   ac_status=$?
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); } &&
7879          { ac_try='test -s conftest$ac_exeext'
7880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881   (eval $ac_try) 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); }; }; then
7885   ac_cv_lib_nsl_gethostbyname=yes
7886 else
7887   echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_cv_lib_nsl_gethostbyname=no
7891 fi
7892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS
7894 fi
7895 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7896 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7897 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7898   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7899 fi
7900
7901       if test $ac_cv_lib_nsl_gethostbyname = no; then
7902         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7903 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7904 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7905   echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907   ac_check_lib_save_LIBS=$LIBS
7908 LIBS="-lbsd  $LIBS"
7909 cat >conftest.$ac_ext <<_ACEOF
7910 #line $LINENO "configure"
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916
7917 /* Override any gcc2 internal prototype to avoid an error.  */
7918 #ifdef __cplusplus
7919 extern "C"
7920 #endif
7921 /* We use char because int might match the return type of a gcc2
7922    builtin and then its argument prototype would still apply.  */
7923 char gethostbyname ();
7924 int
7925 main ()
7926 {
7927 gethostbyname ();
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7934   (eval $ac_link) 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -s conftest$ac_exeext'
7939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940   (eval $ac_try) 2>&5
7941   ac_status=$?
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); }; }; then
7944   ac_cv_lib_bsd_gethostbyname=yes
7945 else
7946   echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 ac_cv_lib_bsd_gethostbyname=no
7950 fi
7951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7952 LIBS=$ac_check_lib_save_LIBS
7953 fi
7954 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7955 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7956 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7957   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7958 fi
7959
7960       fi
7961     fi
7962
7963     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7964     # socket/setsockopt and other routines are undefined under SCO ODT
7965     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7966     # on later versions), says Simon Leinen: it contains gethostby*
7967     # variants that don't use the name server (or something).  -lsocket
7968     # must be given before -lnsl if both are needed.  We assume that
7969     # if connect needs -lnsl, so does gethostbyname.
7970     echo "$as_me:$LINENO: checking for connect" >&5
7971 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7972 if test "${ac_cv_func_connect+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975   cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 /* System header to define __stub macros and hopefully few prototypes,
7983     which can conflict with char connect (); below.
7984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7985     <limits.h> exists even on freestanding compilers.  */
7986 #ifdef __STDC__
7987 # include <limits.h>
7988 #else
7989 # include <assert.h>
7990 #endif
7991 /* Override any gcc2 internal prototype to avoid an error.  */
7992 #ifdef __cplusplus
7993 extern "C"
7994 {
7995 #endif
7996 /* We use char because int might match the return type of a gcc2
7997    builtin and then its argument prototype would still apply.  */
7998 char connect ();
7999 /* The GNU C library defines this for functions which it implements
8000     to always fail with ENOSYS.  Some functions are actually named
8001     something starting with __ and the normal name is an alias.  */
8002 #if defined (__stub_connect) || defined (__stub___connect)
8003 choke me
8004 #else
8005 char (*f) () = connect;
8006 #endif
8007 #ifdef __cplusplus
8008 }
8009 #endif
8010
8011 int
8012 main ()
8013 {
8014 return f != connect;
8015   ;
8016   return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021   (eval $ac_link) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } &&
8025          { ac_try='test -s conftest$ac_exeext'
8026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8027   (eval $ac_try) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; }; then
8031   ac_cv_func_connect=yes
8032 else
8033   echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036 ac_cv_func_connect=no
8037 fi
8038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8039 fi
8040 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8041 echo "${ECHO_T}$ac_cv_func_connect" >&6
8042
8043     if test $ac_cv_func_connect = no; then
8044       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8045 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8046 if test "${ac_cv_lib_socket_connect+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049   ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8051 cat >conftest.$ac_ext <<_ACEOF
8052 #line $LINENO "configure"
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058
8059 /* Override any gcc2 internal prototype to avoid an error.  */
8060 #ifdef __cplusplus
8061 extern "C"
8062 #endif
8063 /* We use char because int might match the return type of a gcc2
8064    builtin and then its argument prototype would still apply.  */
8065 char connect ();
8066 int
8067 main ()
8068 {
8069 connect ();
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076   (eval $ac_link) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -s conftest$ac_exeext'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086   ac_cv_lib_socket_connect=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091 ac_cv_lib_socket_connect=no
8092 fi
8093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8094 LIBS=$ac_check_lib_save_LIBS
8095 fi
8096 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8097 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8098 if test $ac_cv_lib_socket_connect = yes; then
8099   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8100 fi
8101
8102     fi
8103
8104     # Guillermo Gomez says -lposix is necessary on A/UX.
8105     echo "$as_me:$LINENO: checking for remove" >&5
8106 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8107 if test "${ac_cv_func_remove+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   cat >conftest.$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8112 /* confdefs.h.  */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h.  */
8117 /* System header to define __stub macros and hopefully few prototypes,
8118     which can conflict with char remove (); below.
8119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8120     <limits.h> exists even on freestanding compilers.  */
8121 #ifdef __STDC__
8122 # include <limits.h>
8123 #else
8124 # include <assert.h>
8125 #endif
8126 /* Override any gcc2 internal prototype to avoid an error.  */
8127 #ifdef __cplusplus
8128 extern "C"
8129 {
8130 #endif
8131 /* We use char because int might match the return type of a gcc2
8132    builtin and then its argument prototype would still apply.  */
8133 char remove ();
8134 /* The GNU C library defines this for functions which it implements
8135     to always fail with ENOSYS.  Some functions are actually named
8136     something starting with __ and the normal name is an alias.  */
8137 #if defined (__stub_remove) || defined (__stub___remove)
8138 choke me
8139 #else
8140 char (*f) () = remove;
8141 #endif
8142 #ifdef __cplusplus
8143 }
8144 #endif
8145
8146 int
8147 main ()
8148 {
8149 return f != remove;
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156   (eval $ac_link) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -s conftest$ac_exeext'
8161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162   (eval $ac_try) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_cv_func_remove=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 ac_cv_func_remove=no
8172 fi
8173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8174 fi
8175 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8176 echo "${ECHO_T}$ac_cv_func_remove" >&6
8177
8178     if test $ac_cv_func_remove = no; then
8179       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8180 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8181 if test "${ac_cv_lib_posix_remove+set}" = set; then
8182   echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184   ac_check_lib_save_LIBS=$LIBS
8185 LIBS="-lposix  $LIBS"
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193
8194 /* Override any gcc2 internal prototype to avoid an error.  */
8195 #ifdef __cplusplus
8196 extern "C"
8197 #endif
8198 /* We use char because int might match the return type of a gcc2
8199    builtin and then its argument prototype would still apply.  */
8200 char remove ();
8201 int
8202 main ()
8203 {
8204 remove ();
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211   (eval $ac_link) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -s conftest$ac_exeext'
8216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217   (eval $ac_try) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; }; then
8221   ac_cv_lib_posix_remove=yes
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_cv_lib_posix_remove=no
8227 fi
8228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229 LIBS=$ac_check_lib_save_LIBS
8230 fi
8231 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8232 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8233 if test $ac_cv_lib_posix_remove = yes; then
8234   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8235 fi
8236
8237     fi
8238
8239     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8240     echo "$as_me:$LINENO: checking for shmat" >&5
8241 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8242 if test "${ac_cv_func_shmat+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   cat >conftest.$ac_ext <<_ACEOF
8246 #line $LINENO "configure"
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252 /* System header to define __stub macros and hopefully few prototypes,
8253     which can conflict with char shmat (); below.
8254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8255     <limits.h> exists even on freestanding compilers.  */
8256 #ifdef __STDC__
8257 # include <limits.h>
8258 #else
8259 # include <assert.h>
8260 #endif
8261 /* Override any gcc2 internal prototype to avoid an error.  */
8262 #ifdef __cplusplus
8263 extern "C"
8264 {
8265 #endif
8266 /* We use char because int might match the return type of a gcc2
8267    builtin and then its argument prototype would still apply.  */
8268 char shmat ();
8269 /* The GNU C library defines this for functions which it implements
8270     to always fail with ENOSYS.  Some functions are actually named
8271     something starting with __ and the normal name is an alias.  */
8272 #if defined (__stub_shmat) || defined (__stub___shmat)
8273 choke me
8274 #else
8275 char (*f) () = shmat;
8276 #endif
8277 #ifdef __cplusplus
8278 }
8279 #endif
8280
8281 int
8282 main ()
8283 {
8284 return f != shmat;
8285   ;
8286   return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291   (eval $ac_link) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } &&
8295          { ac_try='test -s conftest$ac_exeext'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   ac_cv_func_shmat=yes
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 ac_cv_func_shmat=no
8307 fi
8308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8309 fi
8310 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8311 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8312
8313     if test $ac_cv_func_shmat = no; then
8314       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8315 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8316 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   ac_check_lib_save_LIBS=$LIBS
8320 LIBS="-lipc  $LIBS"
8321 cat >conftest.$ac_ext <<_ACEOF
8322 #line $LINENO "configure"
8323 /* confdefs.h.  */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h.  */
8328
8329 /* Override any gcc2 internal prototype to avoid an error.  */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334    builtin and then its argument prototype would still apply.  */
8335 char shmat ();
8336 int
8337 main ()
8338 {
8339 shmat ();
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346   (eval $ac_link) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -s conftest$ac_exeext'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; }; then
8356   ac_cv_lib_ipc_shmat=yes
8357 else
8358   echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361 ac_cv_lib_ipc_shmat=no
8362 fi
8363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8364 LIBS=$ac_check_lib_save_LIBS
8365 fi
8366 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8367 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8368 if test $ac_cv_lib_ipc_shmat = yes; then
8369   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8370 fi
8371
8372     fi
8373   fi
8374
8375   # Check for libraries that X11R6 Xt/Xaw programs need.
8376   ac_save_LDFLAGS=$LDFLAGS
8377   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8378   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8379   # check for ICE first), but we must link in the order -lSM -lICE or
8380   # we get undefined symbols.  So assume we have SM if we have ICE.
8381   # These have to be linked with before -lX11, unlike the other
8382   # libraries we check for below, so use a different variable.
8383   # John Interrante, Karl Berry
8384   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8385 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8386 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 #line $LINENO "configure"
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398
8399 /* Override any gcc2 internal prototype to avoid an error.  */
8400 #ifdef __cplusplus
8401 extern "C"
8402 #endif
8403 /* We use char because int might match the return type of a gcc2
8404    builtin and then its argument prototype would still apply.  */
8405 char IceConnectionNumber ();
8406 int
8407 main ()
8408 {
8409 IceConnectionNumber ();
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416   (eval $ac_link) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_cv_lib_ICE_IceConnectionNumber=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_lib_ICE_IceConnectionNumber=no
8432 fi
8433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8437 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8438 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8439   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8440 fi
8441
8442   LDFLAGS=$ac_save_LDFLAGS
8443
8444 fi
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469 for ac_header in \
8470         assert.h \
8471         fcntl.h \
8472         grp.h \
8473         pwd.h \
8474         libc.h \
8475         limits.h \
8476         stdarg.h \
8477         stdlib.h \
8478         stdint.h \
8479         string.h \
8480         termios.h \
8481         unistd.h \
8482         sys/byteorder.h \
8483         sys/ioctl.h \
8484         sys/select.h \
8485         sys/sockio.h \
8486         sys/time.h \
8487         sys/socket.h \
8488         arpa/nameser.h \
8489         resolv.h \
8490         mtio.h \
8491         sys/mtio.h \
8492
8493 do
8494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8496   echo "$as_me:$LINENO: checking for $ac_header" >&5
8497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 fi
8501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8503 else
8504   # Is the header compilable?
8505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8507 cat >conftest.$ac_ext <<_ACEOF
8508 #line $LINENO "configure"
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514 $ac_includes_default
8515 #include <$ac_header>
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519   (eval $ac_compile) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -s conftest.$ac_objext'
8524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525   (eval $ac_try) 2>&5
8526   ac_status=$?
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); }; }; then
8529   ac_header_compiler=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_header_compiler=no
8535 fi
8536 rm -f conftest.$ac_objext conftest.$ac_ext
8537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8538 echo "${ECHO_T}$ac_header_compiler" >&6
8539
8540 # Is the header present?
8541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8545 /* confdefs.h.  */
8546 _ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h.  */
8550 #include <$ac_header>
8551 _ACEOF
8552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } >/dev/null; then
8560   if test -s conftest.err; then
8561     ac_cpp_err=$ac_c_preproc_warn_flag
8562   else
8563     ac_cpp_err=
8564   fi
8565 else
8566   ac_cpp_err=yes
8567 fi
8568 if test -z "$ac_cpp_err"; then
8569   ac_header_preproc=yes
8570 else
8571   echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
8574   ac_header_preproc=no
8575 fi
8576 rm -f conftest.err conftest.$ac_ext
8577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8578 echo "${ECHO_T}$ac_header_preproc" >&6
8579
8580 # So?  What about this header?
8581 case $ac_header_compiler:$ac_header_preproc in
8582   yes:no )
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587     (
8588       cat <<\_ASBOX
8589 ## ------------------------------------ ##
8590 ## Report this to bug-autoconf@gnu.org. ##
8591 ## ------------------------------------ ##
8592 _ASBOX
8593     ) |
8594       sed "s/^/$as_me: WARNING:     /" >&2
8595     ;;
8596   no:yes )
8597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8599     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8603     (
8604       cat <<\_ASBOX
8605 ## ------------------------------------ ##
8606 ## Report this to bug-autoconf@gnu.org. ##
8607 ## ------------------------------------ ##
8608 _ASBOX
8609     ) |
8610       sed "s/^/$as_me: WARNING:     /" >&2
8611     ;;
8612 esac
8613 echo "$as_me:$LINENO: checking for $ac_header" >&5
8614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   eval "$as_ac_Header=$ac_header_preproc"
8619 fi
8620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8622
8623 fi
8624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8625   cat >>confdefs.h <<_ACEOF
8626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8627 _ACEOF
8628
8629 fi
8630
8631 done
8632
8633 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8635 if test "${ac_cv_header_stdc+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8640 /* confdefs.h.  */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h.  */
8645 #include <stdlib.h>
8646 #include <stdarg.h>
8647 #include <string.h>
8648 #include <float.h>
8649
8650 int
8651 main ()
8652 {
8653
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660   (eval $ac_compile) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -s conftest.$ac_objext'
8665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666   (eval $ac_try) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); }; }; then
8670   ac_cv_header_stdc=yes
8671 else
8672   echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_cv_header_stdc=no
8676 fi
8677 rm -f conftest.$ac_objext conftest.$ac_ext
8678
8679 if test $ac_cv_header_stdc = yes; then
8680   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8681   cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8683 /* confdefs.h.  */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h.  */
8688 #include <string.h>
8689
8690 _ACEOF
8691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692   $EGREP "memchr" >/dev/null 2>&1; then
8693   :
8694 else
8695   ac_cv_header_stdc=no
8696 fi
8697 rm -f conftest*
8698
8699 fi
8700
8701 if test $ac_cv_header_stdc = yes; then
8702   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8703   cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8705 /* confdefs.h.  */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h.  */
8710 #include <stdlib.h>
8711
8712 _ACEOF
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714   $EGREP "free" >/dev/null 2>&1; then
8715   :
8716 else
8717   ac_cv_header_stdc=no
8718 fi
8719 rm -f conftest*
8720
8721 fi
8722
8723 if test $ac_cv_header_stdc = yes; then
8724   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8725   if test "$cross_compiling" = yes; then
8726   :
8727 else
8728   cat >conftest.$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 #include <ctype.h>
8736 #if ((' ' & 0x0FF) == 0x020)
8737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8739 #else
8740 # define ISLOWER(c) \
8741                    (('a' <= (c) && (c) <= 'i') \
8742                      || ('j' <= (c) && (c) <= 'r') \
8743                      || ('s' <= (c) && (c) <= 'z'))
8744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8745 #endif
8746
8747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8748 int
8749 main ()
8750 {
8751   int i;
8752   for (i = 0; i < 256; i++)
8753     if (XOR (islower (i), ISLOWER (i))
8754         || toupper (i) != TOUPPER (i))
8755       exit(2);
8756   exit (0);
8757 }
8758 _ACEOF
8759 rm -f conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761   (eval $ac_link) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   :
8771 else
8772   echo "$as_me: program exited with status $ac_status" >&5
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ( exit $ac_status )
8777 ac_cv_header_stdc=no
8778 fi
8779 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 fi
8782 fi
8783 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8784 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8785 if test $ac_cv_header_stdc = yes; then
8786
8787 cat >>confdefs.h <<\_ACEOF
8788 #define STDC_HEADERS 1
8789 _ACEOF
8790
8791 fi
8792
8793 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8794 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8795 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805 #include <sys/types.h>
8806 int
8807 main ()
8808 {
8809 return makedev(0, 0);
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -s conftest$ac_exeext'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; }; then
8826   ac_cv_header_sys_types_h_makedev=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_cv_header_sys_types_h_makedev=no
8832 fi
8833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8834
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8837 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8838
8839 if test $ac_cv_header_sys_types_h_makedev = no; then
8840 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8841   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8842 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8843 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 fi
8846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8847 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8848 else
8849   # Is the header compilable?
8850 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8851 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 $ac_includes_default
8860 #include <sys/mkdev.h>
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8864   (eval $ac_compile) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } &&
8868          { ac_try='test -s conftest.$ac_objext'
8869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870   (eval $ac_try) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   ac_header_compiler=yes
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 ac_header_compiler=no
8880 fi
8881 rm -f conftest.$ac_objext conftest.$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883 echo "${ECHO_T}$ac_header_compiler" >&6
8884
8885 # Is the header present?
8886 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8887 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 /* confdefs.h.  */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h.  */
8895 #include <sys/mkdev.h>
8896 _ACEOF
8897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8899   ac_status=$?
8900   grep -v '^ *+' conftest.er1 >conftest.err
8901   rm -f conftest.er1
8902   cat conftest.err >&5
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); } >/dev/null; then
8905   if test -s conftest.err; then
8906     ac_cpp_err=$ac_c_preproc_warn_flag
8907   else
8908     ac_cpp_err=
8909   fi
8910 else
8911   ac_cpp_err=yes
8912 fi
8913 if test -z "$ac_cpp_err"; then
8914   ac_header_preproc=yes
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919   ac_header_preproc=no
8920 fi
8921 rm -f conftest.err conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923 echo "${ECHO_T}$ac_header_preproc" >&6
8924
8925 # So?  What about this header?
8926 case $ac_header_compiler:$ac_header_preproc in
8927   yes:no )
8928     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8929 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8931 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8932     (
8933       cat <<\_ASBOX
8934 ## ------------------------------------ ##
8935 ## Report this to bug-autoconf@gnu.org. ##
8936 ## ------------------------------------ ##
8937 _ASBOX
8938     ) |
8939       sed "s/^/$as_me: WARNING:     /" >&2
8940     ;;
8941   no:yes )
8942     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8943 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8944     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8945 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8946     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8948     (
8949       cat <<\_ASBOX
8950 ## ------------------------------------ ##
8951 ## Report this to bug-autoconf@gnu.org. ##
8952 ## ------------------------------------ ##
8953 _ASBOX
8954     ) |
8955       sed "s/^/$as_me: WARNING:     /" >&2
8956     ;;
8957 esac
8958 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8959 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8960 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   ac_cv_header_sys_mkdev_h=$ac_header_preproc
8964 fi
8965 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8967
8968 fi
8969 if test $ac_cv_header_sys_mkdev_h = yes; then
8970
8971 cat >>confdefs.h <<\_ACEOF
8972 #define MAJOR_IN_MKDEV 1
8973 _ACEOF
8974
8975 fi
8976
8977
8978
8979   if test $ac_cv_header_sys_mkdev_h = no; then
8980     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8981   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8982 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8983 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8984   echo $ECHO_N "(cached) $ECHO_C" >&6
8985 fi
8986 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8987 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8988 else
8989   # Is the header compilable?
8990 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8991 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999 $ac_includes_default
9000 #include <sys/sysmacros.h>
9001 _ACEOF
9002 rm -f conftest.$ac_objext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9004   (eval $ac_compile) 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } &&
9008          { ac_try='test -s conftest.$ac_objext'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; }; then
9014   ac_header_compiler=yes
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019 ac_header_compiler=no
9020 fi
9021 rm -f conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9023 echo "${ECHO_T}$ac_header_compiler" >&6
9024
9025 # Is the header present?
9026 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9027 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 /* confdefs.h.  */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h.  */
9035 #include <sys/sysmacros.h>
9036 _ACEOF
9037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9039   ac_status=$?
9040   grep -v '^ *+' conftest.er1 >conftest.err
9041   rm -f conftest.er1
9042   cat conftest.err >&5
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } >/dev/null; then
9045   if test -s conftest.err; then
9046     ac_cpp_err=$ac_c_preproc_warn_flag
9047   else
9048     ac_cpp_err=
9049   fi
9050 else
9051   ac_cpp_err=yes
9052 fi
9053 if test -z "$ac_cpp_err"; then
9054   ac_header_preproc=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059   ac_header_preproc=no
9060 fi
9061 rm -f conftest.err conftest.$ac_ext
9062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9063 echo "${ECHO_T}$ac_header_preproc" >&6
9064
9065 # So?  What about this header?
9066 case $ac_header_compiler:$ac_header_preproc in
9067   yes:no )
9068     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9069 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9070     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9071 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9072     (
9073       cat <<\_ASBOX
9074 ## ------------------------------------ ##
9075 ## Report this to bug-autoconf@gnu.org. ##
9076 ## ------------------------------------ ##
9077 _ASBOX
9078     ) |
9079       sed "s/^/$as_me: WARNING:     /" >&2
9080     ;;
9081   no:yes )
9082     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9083 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9084     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9085 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9086     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9087 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9088     (
9089       cat <<\_ASBOX
9090 ## ------------------------------------ ##
9091 ## Report this to bug-autoconf@gnu.org. ##
9092 ## ------------------------------------ ##
9093 _ASBOX
9094     ) |
9095       sed "s/^/$as_me: WARNING:     /" >&2
9096     ;;
9097 esac
9098 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9099 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9100 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9104 fi
9105 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9107
9108 fi
9109 if test $ac_cv_header_sys_sysmacros_h = yes; then
9110
9111 cat >>confdefs.h <<\_ACEOF
9112 #define MAJOR_IN_SYSMACROS 1
9113 _ACEOF
9114
9115 fi
9116
9117
9118   fi
9119 fi
9120
9121
9122
9123
9124
9125
9126 ac_header_dirent=no
9127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9128   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9129 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   cat >conftest.$ac_ext <<_ACEOF
9135 #line $LINENO "configure"
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 #include <sys/types.h>
9142 #include <$ac_hdr>
9143
9144 int
9145 main ()
9146 {
9147 if ((DIR *) 0)
9148 return 0;
9149   ;
9150   return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155   (eval $ac_compile) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -s conftest.$ac_objext'
9160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161   (eval $ac_try) 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); }; }; then
9165   eval "$as_ac_Header=yes"
9166 else
9167   echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170 eval "$as_ac_Header=no"
9171 fi
9172 rm -f conftest.$ac_objext conftest.$ac_ext
9173 fi
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177   cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9179 _ACEOF
9180
9181 ac_header_dirent=$ac_hdr; break
9182 fi
9183
9184 done
9185 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9186 if test $ac_header_dirent = dirent.h; then
9187   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9188 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9189 if test "${ac_cv_search_opendir+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   ac_func_search_save_LIBS=$LIBS
9193 ac_cv_search_opendir=no
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201
9202 /* Override any gcc2 internal prototype to avoid an error.  */
9203 #ifdef __cplusplus
9204 extern "C"
9205 #endif
9206 /* We use char because int might match the return type of a gcc2
9207    builtin and then its argument prototype would still apply.  */
9208 char opendir ();
9209 int
9210 main ()
9211 {
9212 opendir ();
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219   (eval $ac_link) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); } &&
9223          { ac_try='test -s conftest$ac_exeext'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; }; then
9229   ac_cv_search_opendir="none required"
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 fi
9235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9236 if test "$ac_cv_search_opendir" = no; then
9237   for ac_lib in dir; do
9238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9239     cat >conftest.$ac_ext <<_ACEOF
9240 #line $LINENO "configure"
9241 /* confdefs.h.  */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h.  */
9246
9247 /* Override any gcc2 internal prototype to avoid an error.  */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 /* We use char because int might match the return type of a gcc2
9252    builtin and then its argument prototype would still apply.  */
9253 char opendir ();
9254 int
9255 main ()
9256 {
9257 opendir ();
9258   ;
9259   return 0;
9260 }
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264   (eval $ac_link) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } &&
9268          { ac_try='test -s conftest$ac_exeext'
9269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270   (eval $ac_try) 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); }; }; then
9274   ac_cv_search_opendir="-l$ac_lib"
9275 break
9276 else
9277   echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 fi
9281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9282   done
9283 fi
9284 LIBS=$ac_func_search_save_LIBS
9285 fi
9286 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9287 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9288 if test "$ac_cv_search_opendir" != no; then
9289   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9290
9291 fi
9292
9293 else
9294   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9295 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9296 if test "${ac_cv_search_opendir+set}" = set; then
9297   echo $ECHO_N "(cached) $ECHO_C" >&6
9298 else
9299   ac_func_search_save_LIBS=$LIBS
9300 ac_cv_search_opendir=no
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308
9309 /* Override any gcc2 internal prototype to avoid an error.  */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 /* We use char because int might match the return type of a gcc2
9314    builtin and then its argument prototype would still apply.  */
9315 char opendir ();
9316 int
9317 main ()
9318 {
9319 opendir ();
9320   ;
9321   return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326   (eval $ac_link) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); } &&
9330          { ac_try='test -s conftest$ac_exeext'
9331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332   (eval $ac_try) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); }; }; then
9336   ac_cv_search_opendir="none required"
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341 fi
9342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9343 if test "$ac_cv_search_opendir" = no; then
9344   for ac_lib in x; do
9345     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9346     cat >conftest.$ac_ext <<_ACEOF
9347 #line $LINENO "configure"
9348 /* confdefs.h.  */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h.  */
9353
9354 /* Override any gcc2 internal prototype to avoid an error.  */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 /* We use char because int might match the return type of a gcc2
9359    builtin and then its argument prototype would still apply.  */
9360 char opendir ();
9361 int
9362 main ()
9363 {
9364 opendir ();
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371   (eval $ac_link) 2>&5
9372   ac_status=$?
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -s conftest$ac_exeext'
9376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377   (eval $ac_try) 2>&5
9378   ac_status=$?
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); }; }; then
9381   ac_cv_search_opendir="-l$ac_lib"
9382 break
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 fi
9388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389   done
9390 fi
9391 LIBS=$ac_func_search_save_LIBS
9392 fi
9393 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9394 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9395 if test "$ac_cv_search_opendir" != no; then
9396   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9397
9398 fi
9399
9400 fi
9401
9402 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9403 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9404 if test "${ac_cv_header_stat_broken+set}" = set; then
9405   echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407   cat >conftest.$ac_ext <<_ACEOF
9408 #line $LINENO "configure"
9409 /* confdefs.h.  */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h.  */
9414 #include <sys/types.h>
9415 #include <sys/stat.h>
9416
9417 #if defined(S_ISBLK) && defined(S_IFDIR)
9418 # if S_ISBLK (S_IFDIR)
9419 You lose.
9420 # endif
9421 #endif
9422
9423 #if defined(S_ISBLK) && defined(S_IFCHR)
9424 # if S_ISBLK (S_IFCHR)
9425 You lose.
9426 # endif
9427 #endif
9428
9429 #if defined(S_ISLNK) && defined(S_IFREG)
9430 # if S_ISLNK (S_IFREG)
9431 You lose.
9432 # endif
9433 #endif
9434
9435 #if defined(S_ISSOCK) && defined(S_IFREG)
9436 # if S_ISSOCK (S_IFREG)
9437 You lose.
9438 # endif
9439 #endif
9440
9441 _ACEOF
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443   $EGREP "You lose" >/dev/null 2>&1; then
9444   ac_cv_header_stat_broken=yes
9445 else
9446   ac_cv_header_stat_broken=no
9447 fi
9448 rm -f conftest*
9449
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9452 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9453 if test $ac_cv_header_stat_broken = yes; then
9454
9455 cat >>confdefs.h <<\_ACEOF
9456 #define STAT_MACROS_BROKEN 1
9457 _ACEOF
9458
9459 fi
9460
9461 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9462 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9463 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466   cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473 #include <sys/types.h>
9474 #include <sys/wait.h>
9475 #ifndef WEXITSTATUS
9476 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9477 #endif
9478 #ifndef WIFEXITED
9479 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9480 #endif
9481
9482 int
9483 main ()
9484 {
9485   int s;
9486   wait (&s);
9487   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494   (eval $ac_compile) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } &&
9498          { ac_try='test -s conftest.$ac_objext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   ac_cv_header_sys_wait_h=yes
9505 else
9506   echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ac_cv_header_sys_wait_h=no
9510 fi
9511 rm -f conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9514 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9515 if test $ac_cv_header_sys_wait_h = yes; then
9516
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_SYS_WAIT_H 1
9519 _ACEOF
9520
9521 fi
9522
9523 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9525 if test "${ac_cv_header_time+set}" = set; then
9526   echo $ECHO_N "(cached) $ECHO_C" >&6
9527 else
9528   cat >conftest.$ac_ext <<_ACEOF
9529 #line $LINENO "configure"
9530 /* confdefs.h.  */
9531 _ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h.  */
9535 #include <sys/types.h>
9536 #include <sys/time.h>
9537 #include <time.h>
9538
9539 int
9540 main ()
9541 {
9542 if ((struct tm *) 0)
9543 return 0;
9544   ;
9545   return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550   (eval $ac_compile) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } &&
9554          { ac_try='test -s conftest.$ac_objext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_cv_header_time=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_header_time=no
9566 fi
9567 rm -f conftest.$ac_objext conftest.$ac_ext
9568 fi
9569 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9570 echo "${ECHO_T}$ac_cv_header_time" >&6
9571 if test $ac_cv_header_time = yes; then
9572
9573 cat >>confdefs.h <<\_ACEOF
9574 #define TIME_WITH_SYS_TIME 1
9575 _ACEOF
9576
9577 fi
9578
9579
9580 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9581 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9582 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9583   echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585   cat >conftest.$ac_ext <<_ACEOF
9586 #line $LINENO "configure"
9587 /* confdefs.h.  */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h.  */
9592 $ac_includes_default
9593 int
9594 main ()
9595 {
9596 static struct stat ac_aggr;
9597 if (ac_aggr.st_blksize)
9598 return 0;
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605   (eval $ac_compile) 2>&5
9606   ac_status=$?
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } &&
9609          { ac_try='test -s conftest.$ac_objext'
9610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611   (eval $ac_try) 2>&5
9612   ac_status=$?
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); }; }; then
9615   ac_cv_member_struct_stat_st_blksize=yes
9616 else
9617   echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620 cat >conftest.$ac_ext <<_ACEOF
9621 #line $LINENO "configure"
9622 /* confdefs.h.  */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h.  */
9627 $ac_includes_default
9628 int
9629 main ()
9630 {
9631 static struct stat ac_aggr;
9632 if (sizeof ac_aggr.st_blksize)
9633 return 0;
9634   ;
9635   return 0;
9636 }
9637 _ACEOF
9638 rm -f conftest.$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640   (eval $ac_compile) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); } &&
9644          { ac_try='test -s conftest.$ac_objext'
9645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646   (eval $ac_try) 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); }; }; then
9650   ac_cv_member_struct_stat_st_blksize=yes
9651 else
9652   echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 ac_cv_member_struct_stat_st_blksize=no
9656 fi
9657 rm -f conftest.$ac_objext conftest.$ac_ext
9658 fi
9659 rm -f conftest.$ac_objext conftest.$ac_ext
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9662 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9663 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9664
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9667 _ACEOF
9668
9669
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_ST_BLKSIZE 1
9672 _ACEOF
9673
9674 fi
9675
9676
9677 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9678 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9679 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9680   echo $ECHO_N "(cached) $ECHO_C" >&6
9681 else
9682   cat >conftest.$ac_ext <<_ACEOF
9683 #line $LINENO "configure"
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 $ac_includes_default
9690 int
9691 main ()
9692 {
9693 static struct stat ac_aggr;
9694 if (ac_aggr.st_blocks)
9695 return 0;
9696   ;
9697   return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702   (eval $ac_compile) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -s conftest.$ac_objext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   ac_cv_member_struct_stat_st_blocks=yes
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9719 /* confdefs.h.  */
9720 _ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h.  */
9724 $ac_includes_default
9725 int
9726 main ()
9727 {
9728 static struct stat ac_aggr;
9729 if (sizeof ac_aggr.st_blocks)
9730 return 0;
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737   (eval $ac_compile) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } &&
9741          { ac_try='test -s conftest.$ac_objext'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; }; then
9747   ac_cv_member_struct_stat_st_blocks=yes
9748 else
9749   echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_cv_member_struct_stat_st_blocks=no
9753 fi
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9755 fi
9756 rm -f conftest.$ac_objext conftest.$ac_ext
9757 fi
9758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9759 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9760 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9761
9762 cat >>confdefs.h <<_ACEOF
9763 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9764 _ACEOF
9765
9766
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_ST_BLOCKS 1
9769 _ACEOF
9770
9771 else
9772   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9773 fi
9774
9775
9776 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9777 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9778 if test "${ac_cv_struct_tm+set}" = set; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   cat >conftest.$ac_ext <<_ACEOF
9782 #line $LINENO "configure"
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788 #include <sys/types.h>
9789 #include <time.h>
9790
9791 int
9792 main ()
9793 {
9794 struct tm *tp; tp->tm_sec;
9795   ;
9796   return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801   (eval $ac_compile) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } &&
9805          { ac_try='test -s conftest.$ac_objext'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811   ac_cv_struct_tm=time.h
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_cv_struct_tm=sys/time.h
9817 fi
9818 rm -f conftest.$ac_objext conftest.$ac_ext
9819 fi
9820 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9821 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9822 if test $ac_cv_struct_tm = sys/time.h; then
9823
9824 cat >>confdefs.h <<\_ACEOF
9825 #define TM_IN_SYS_TIME 1
9826 _ACEOF
9827
9828 fi
9829
9830 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9831 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9832 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   cat >conftest.$ac_ext <<_ACEOF
9836 #line $LINENO "configure"
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842 #include <sys/types.h>
9843 #include <$ac_cv_struct_tm>
9844
9845
9846 int
9847 main ()
9848 {
9849 static struct tm ac_aggr;
9850 if (ac_aggr.tm_zone)
9851 return 0;
9852   ;
9853   return 0;
9854 }
9855 _ACEOF
9856 rm -f conftest.$ac_objext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9858   (eval $ac_compile) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); } &&
9862          { ac_try='test -s conftest.$ac_objext'
9863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864   (eval $ac_try) 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; }; then
9868   ac_cv_member_struct_tm_tm_zone=yes
9869 else
9870   echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 cat >conftest.$ac_ext <<_ACEOF
9874 #line $LINENO "configure"
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880 #include <sys/types.h>
9881 #include <$ac_cv_struct_tm>
9882
9883
9884 int
9885 main ()
9886 {
9887 static struct tm ac_aggr;
9888 if (sizeof ac_aggr.tm_zone)
9889 return 0;
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896   (eval $ac_compile) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -s conftest.$ac_objext'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_member_struct_tm_tm_zone=yes
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_cv_member_struct_tm_tm_zone=no
9912 fi
9913 rm -f conftest.$ac_objext conftest.$ac_ext
9914 fi
9915 rm -f conftest.$ac_objext conftest.$ac_ext
9916 fi
9917 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9918 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9919 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9920
9921 cat >>confdefs.h <<_ACEOF
9922 #define HAVE_STRUCT_TM_TM_ZONE 1
9923 _ACEOF
9924
9925
9926 fi
9927
9928 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9929
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_TM_ZONE 1
9932 _ACEOF
9933
9934 else
9935   echo "$as_me:$LINENO: checking for tzname" >&5
9936 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9937 if test "${ac_cv_var_tzname+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   cat >conftest.$ac_ext <<_ACEOF
9941 #line $LINENO "configure"
9942 /* confdefs.h.  */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h.  */
9947 #include <time.h>
9948 #ifndef tzname /* For SGI.  */
9949 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9950 #endif
9951
9952 int
9953 main ()
9954 {
9955 atoi(*tzname);
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962   (eval $ac_link) 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } &&
9966          { ac_try='test -s conftest$ac_exeext'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; }; then
9972   ac_cv_var_tzname=yes
9973 else
9974   echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 ac_cv_var_tzname=no
9978 fi
9979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9980 fi
9981 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9982 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9983   if test $ac_cv_var_tzname = yes; then
9984
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_TZNAME 1
9987 _ACEOF
9988
9989   fi
9990 fi
9991
9992
9993 echo "$as_me:$LINENO: checking for utime.h" >&5
9994 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9995 if test "${ba_cv_header_utime_h+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   cat >conftest.$ac_ext <<_ACEOF
9999 #line $LINENO "configure"
10000 /* confdefs.h.  */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h.  */
10005
10006 #include <sys/types.h>
10007 #include <utime.h>
10008 int
10009 main ()
10010 {
10011 struct utimbuf foo
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018   (eval $ac_compile) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -s conftest.$ac_objext'
10023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024   (eval $ac_try) 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; }; then
10028   ba_cv_header_utime_h=yes
10029 else
10030   echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 ba_cv_header_utime_h=no
10034 fi
10035 rm -f conftest.$ac_objext conftest.$ac_ext
10036 fi
10037 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10038 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10039 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_UTIME_H 1
10041 _ACEOF
10042
10043
10044 echo "$as_me:$LINENO: checking for socklen_t" >&5
10045 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10046 if test "${ba_cv_header_socklen_t+set}" = set; then
10047   echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049   cat >conftest.$ac_ext <<_ACEOF
10050 #line $LINENO "configure"
10051 /* confdefs.h.  */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h.  */
10056
10057 #include <sys/types.h>
10058 #include <sys/socket.h>
10059 int
10060 main ()
10061 {
10062 socklen_t x
10063   ;
10064   return 0;
10065 }
10066 _ACEOF
10067 rm -f conftest.$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069   (eval $ac_compile) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); } &&
10073          { ac_try='test -s conftest.$ac_objext'
10074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075   (eval $ac_try) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; }; then
10079   ba_cv_header_socklen_t=yes
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 ba_cv_header_socklen_t=no
10085 fi
10086 rm -f conftest.$ac_objext conftest.$ac_ext
10087 fi
10088 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10089 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10090 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_SOCKLEN_T 1
10092 _ACEOF
10093
10094
10095 echo "$as_me:$LINENO: checking for bigendian" >&5
10096 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10097 if test "${ba_cv_bigendian+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100   if test "$cross_compiling" = yes; then
10101   ba_cv_bigendian=no
10102 else
10103   cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10111 _ACEOF
10112 rm -f conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114   (eval $ac_link) 2>&5
10115   ac_status=$?
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; }; then
10123   ba_cv_bigendian=yes
10124 else
10125   echo "$as_me: program exited with status $ac_status" >&5
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 ( exit $ac_status )
10130 ba_cv_bigendian=no
10131 fi
10132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10133 fi
10134 fi
10135 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10136 echo "${ECHO_T}$ba_cv_bigendian" >&6
10137 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10138 #define HAVE_BIGENDIAN 1
10139 _ACEOF
10140
10141
10142
10143 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10144 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10145 if test "${ac_cv_c_const+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155
10156 int
10157 main ()
10158 {
10159 /* FIXME: Include the comments suggested by Paul. */
10160 #ifndef __cplusplus
10161   /* Ultrix mips cc rejects this.  */
10162   typedef int charset[2];
10163   const charset x;
10164   /* SunOS 4.1.1 cc rejects this.  */
10165   char const *const *ccp;
10166   char **p;
10167   /* NEC SVR4.0.2 mips cc rejects this.  */
10168   struct point {int x, y;};
10169   static struct point const zero = {0,0};
10170   /* AIX XL C 1.02.0.0 rejects this.
10171      It does not let you subtract one const X* pointer from another in
10172      an arm of an if-expression whose if-part is not a constant
10173      expression */
10174   const char *g = "string";
10175   ccp = &g + (g ? g-g : 0);
10176   /* HPUX 7.0 cc rejects these. */
10177   ++ccp;
10178   p = (char**) ccp;
10179   ccp = (char const *const *) p;
10180   { /* SCO 3.2v4 cc rejects this.  */
10181     char *t;
10182     char const *s = 0 ? (char *) 0 : (char const *) 0;
10183
10184     *t++ = 0;
10185   }
10186   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10187     int x[] = {25, 17};
10188     const int *foo = &x[0];
10189     ++foo;
10190   }
10191   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10192     typedef const int *iptr;
10193     iptr p = 0;
10194     ++p;
10195   }
10196   { /* AIX XL C 1.02.0.0 rejects this saying
10197        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10198     struct s { int j; const int *ap[3]; };
10199     struct s *b; b->j = 5;
10200   }
10201   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10202     const int foo = 10;
10203   }
10204 #endif
10205
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212   (eval $ac_compile) 2>&5
10213   ac_status=$?
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } &&
10216          { ac_try='test -s conftest.$ac_objext'
10217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218   (eval $ac_try) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }; }; then
10222   ac_cv_c_const=yes
10223 else
10224   echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 ac_cv_c_const=no
10228 fi
10229 rm -f conftest.$ac_objext conftest.$ac_ext
10230 fi
10231 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10232 echo "${ECHO_T}$ac_cv_c_const" >&6
10233 if test $ac_cv_c_const = no; then
10234
10235 cat >>confdefs.h <<\_ACEOF
10236 #define const
10237 _ACEOF
10238
10239 fi
10240
10241
10242
10243 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10244 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10245 fstype=no
10246 # The order of these tests is important.
10247 cat >conftest.$ac_ext <<_ACEOF
10248 #line $LINENO "configure"
10249 /* confdefs.h.  */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h.  */
10254 #include <sys/statvfs.h>
10255 #include <sys/fstyp.h>
10256 _ACEOF
10257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } >/dev/null; then
10265   if test -s conftest.err; then
10266     ac_cpp_err=$ac_c_preproc_warn_flag
10267   else
10268     ac_cpp_err=
10269   fi
10270 else
10271   ac_cpp_err=yes
10272 fi
10273 if test -z "$ac_cpp_err"; then
10274   cat >>confdefs.h <<\_ACEOF
10275 #define FSTYPE_STATVFS 1
10276 _ACEOF
10277  fstype=SVR4
10278 else
10279   echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282
10283 fi
10284 rm -f conftest.err conftest.$ac_ext
10285 if test $fstype = no; then
10286 cat >conftest.$ac_ext <<_ACEOF
10287 #line $LINENO "configure"
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #include <sys/statfs.h>
10294 #include <sys/fstyp.h>
10295 _ACEOF
10296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10297   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10298   ac_status=$?
10299   grep -v '^ *+' conftest.er1 >conftest.err
10300   rm -f conftest.er1
10301   cat conftest.err >&5
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } >/dev/null; then
10304   if test -s conftest.err; then
10305     ac_cpp_err=$ac_c_preproc_warn_flag
10306   else
10307     ac_cpp_err=
10308   fi
10309 else
10310   ac_cpp_err=yes
10311 fi
10312 if test -z "$ac_cpp_err"; then
10313   cat >>confdefs.h <<\_ACEOF
10314 #define FSTYPE_USG_STATFS 1
10315 _ACEOF
10316  fstype=SVR3
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321
10322 fi
10323 rm -f conftest.err conftest.$ac_ext
10324 fi
10325 if test $fstype = no; then
10326 cat >conftest.$ac_ext <<_ACEOF
10327 #line $LINENO "configure"
10328 /* confdefs.h.  */
10329 _ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h.  */
10333 #include <sys/statfs.h>
10334 #include <sys/vmount.h>
10335 _ACEOF
10336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10338   ac_status=$?
10339   grep -v '^ *+' conftest.er1 >conftest.err
10340   rm -f conftest.er1
10341   cat conftest.err >&5
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); } >/dev/null; then
10344   if test -s conftest.err; then
10345     ac_cpp_err=$ac_c_preproc_warn_flag
10346   else
10347     ac_cpp_err=
10348   fi
10349 else
10350   ac_cpp_err=yes
10351 fi
10352 if test -z "$ac_cpp_err"; then
10353   cat >>confdefs.h <<\_ACEOF
10354 #define FSTYPE_AIX_STATFS 1
10355 _ACEOF
10356  fstype=AIX
10357 else
10358   echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361
10362 fi
10363 rm -f conftest.err conftest.$ac_ext
10364 fi
10365 if test $fstype = no; then
10366 cat >conftest.$ac_ext <<_ACEOF
10367 #line $LINENO "configure"
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373 #include <mntent.h>
10374 _ACEOF
10375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10377   ac_status=$?
10378   grep -v '^ *+' conftest.er1 >conftest.err
10379   rm -f conftest.er1
10380   cat conftest.err >&5
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } >/dev/null; then
10383   if test -s conftest.err; then
10384     ac_cpp_err=$ac_c_preproc_warn_flag
10385   else
10386     ac_cpp_err=
10387   fi
10388 else
10389   ac_cpp_err=yes
10390 fi
10391 if test -z "$ac_cpp_err"; then
10392   cat >>confdefs.h <<\_ACEOF
10393 #define FSTYPE_MNTENT 1
10394 _ACEOF
10395  fstype=4.3BSD
10396 else
10397   echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400
10401 fi
10402 rm -f conftest.err conftest.$ac_ext
10403 fi
10404 if test $fstype = no; then
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10407 /* confdefs.h.  */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h.  */
10412 #include <sys/mount.h>
10413
10414 _ACEOF
10415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10416   $EGREP "f_type;" >/dev/null 2>&1; then
10417   cat >>confdefs.h <<\_ACEOF
10418 #define FSTYPE_STATFS 1
10419 _ACEOF
10420  fstype=4.4BSD/OSF1
10421 fi
10422 rm -f conftest*
10423
10424 fi
10425 if test $fstype = no; then
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line $LINENO "configure"
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433 #include <sys/mount.h>
10434 #include <sys/fs_types.h>
10435 _ACEOF
10436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } >/dev/null; then
10444   if test -s conftest.err; then
10445     ac_cpp_err=$ac_c_preproc_warn_flag
10446   else
10447     ac_cpp_err=
10448   fi
10449 else
10450   ac_cpp_err=yes
10451 fi
10452 if test -z "$ac_cpp_err"; then
10453   cat >>confdefs.h <<\_ACEOF
10454 #define FSTYPE_GETMNT 1
10455 _ACEOF
10456  fstype=Ultrix
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461
10462 fi
10463 rm -f conftest.err conftest.$ac_ext
10464 fi
10465 echo "$as_me:$LINENO: result: $fstype" >&5
10466 echo "${ECHO_T}$fstype" >&6
10467
10468 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10469 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10470 if test "${ac_cv_type_signal+set}" = set; then
10471   echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473   cat >conftest.$ac_ext <<_ACEOF
10474 #line $LINENO "configure"
10475 /* confdefs.h.  */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h.  */
10480 #include <sys/types.h>
10481 #include <signal.h>
10482 #ifdef signal
10483 # undef signal
10484 #endif
10485 #ifdef __cplusplus
10486 extern "C" void (*signal (int, void (*)(int)))(int);
10487 #else
10488 void (*signal ()) ();
10489 #endif
10490
10491 int
10492 main ()
10493 {
10494 int i;
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501   (eval $ac_compile) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); } &&
10505          { ac_try='test -s conftest.$ac_objext'
10506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507   (eval $ac_try) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; }; then
10511   ac_cv_type_signal=void
10512 else
10513   echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 ac_cv_type_signal=int
10517 fi
10518 rm -f conftest.$ac_objext conftest.$ac_ext
10519 fi
10520 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10521 echo "${ECHO_T}$ac_cv_type_signal" >&6
10522
10523 cat >>confdefs.h <<_ACEOF
10524 #define RETSIGTYPE $ac_cv_type_signal
10525 _ACEOF
10526
10527
10528
10529 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10530 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10531 if test "${bash_cv_signal_vintage+set}" = set; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534
10535   cat >conftest.$ac_ext <<_ACEOF
10536 #line $LINENO "configure"
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 #include <signal.h>
10543 int
10544 main ()
10545 {
10546
10547     sigset_t ss;
10548     struct sigaction sa;
10549     sigemptyset(&ss); sigsuspend(&ss);
10550     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10551     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10552
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559   (eval $ac_link) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); } &&
10563          { ac_try='test -s conftest$ac_exeext'
10564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565   (eval $ac_try) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   bash_cv_signal_vintage=posix
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574
10575     cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 #include <signal.h>
10583 int
10584 main ()
10585 {
10586
10587         int mask = sigmask(SIGINT);
10588         sigsetmask(mask); sigblock(mask); sigpause(mask);
10589
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596   (eval $ac_link) 2>&5
10597   ac_status=$?
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } &&
10600          { ac_try='test -s conftest$ac_exeext'
10601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602   (eval $ac_try) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); }; }; then
10606   bash_cv_signal_vintage=4.2bsd
10607 else
10608   echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611
10612       cat >conftest.$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619
10620         #include <signal.h>
10621         RETSIGTYPE foo() { }
10622 int
10623 main ()
10624 {
10625
10626                 int mask = sigmask(SIGINT);
10627                 sigset(SIGINT, foo); sigrelse(SIGINT);
10628                 sighold(SIGINT); sigpause(SIGINT);
10629
10630   ;
10631   return 0;
10632 }
10633 _ACEOF
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636   (eval $ac_link) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } &&
10640          { ac_try='test -s conftest$ac_exeext'
10641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642   (eval $ac_try) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); }; }; then
10646   bash_cv_signal_vintage=svr3
10647 else
10648   echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651 bash_cv_signal_vintage=v7
10652
10653 fi
10654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10655
10656 fi
10657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10658
10659 fi
10660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10661
10662 fi
10663
10664 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10665 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10666 if test "$bash_cv_signal_vintage" = posix; then
10667 cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_POSIX_SIGNALS 1
10669 _ACEOF
10670
10671 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10672 cat >>confdefs.h <<\_ACEOF
10673 #define HAVE_BSD_SIGNALS 1
10674 _ACEOF
10675
10676 elif test "$bash_cv_signal_vintage" = svr3; then
10677 cat >>confdefs.h <<\_ACEOF
10678 #define HAVE_USG_SIGHOLD 1
10679 _ACEOF
10680
10681 fi
10682
10683 echo "$as_me:$LINENO: checking for mode_t" >&5
10684 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10685 if test "${ac_cv_type_mode_t+set}" = set; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688   cat >conftest.$ac_ext <<_ACEOF
10689 #line $LINENO "configure"
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695 $ac_includes_default
10696 int
10697 main ()
10698 {
10699 if ((mode_t *) 0)
10700   return 0;
10701 if (sizeof (mode_t))
10702   return 0;
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709   (eval $ac_compile) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); } &&
10713          { ac_try='test -s conftest.$ac_objext'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   ac_cv_type_mode_t=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_cv_type_mode_t=no
10725 fi
10726 rm -f conftest.$ac_objext conftest.$ac_ext
10727 fi
10728 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10729 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10730 if test $ac_cv_type_mode_t = yes; then
10731   :
10732 else
10733
10734 cat >>confdefs.h <<_ACEOF
10735 #define mode_t int
10736 _ACEOF
10737
10738 fi
10739
10740 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10741 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10742 if test "${ac_cv_type_uid_t+set}" = set; then
10743   echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745   cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752 #include <sys/types.h>
10753
10754 _ACEOF
10755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10756   $EGREP "uid_t" >/dev/null 2>&1; then
10757   ac_cv_type_uid_t=yes
10758 else
10759   ac_cv_type_uid_t=no
10760 fi
10761 rm -f conftest*
10762
10763 fi
10764 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10765 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10766 if test $ac_cv_type_uid_t = no; then
10767
10768 cat >>confdefs.h <<\_ACEOF
10769 #define uid_t int
10770 _ACEOF
10771
10772
10773 cat >>confdefs.h <<\_ACEOF
10774 #define gid_t int
10775 _ACEOF
10776
10777 fi
10778
10779 echo "$as_me:$LINENO: checking for size_t" >&5
10780 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10781 if test "${ac_cv_type_size_t+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791 $ac_includes_default
10792 int
10793 main ()
10794 {
10795 if ((size_t *) 0)
10796   return 0;
10797 if (sizeof (size_t))
10798   return 0;
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10805   (eval $ac_compile) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); } &&
10809          { ac_try='test -s conftest.$ac_objext'
10810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811   (eval $ac_try) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); }; }; then
10815   ac_cv_type_size_t=yes
10816 else
10817   echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 ac_cv_type_size_t=no
10821 fi
10822 rm -f conftest.$ac_objext conftest.$ac_ext
10823 fi
10824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10826 if test $ac_cv_type_size_t = yes; then
10827   :
10828 else
10829
10830 cat >>confdefs.h <<_ACEOF
10831 #define size_t unsigned
10832 _ACEOF
10833
10834 fi
10835
10836 echo "$as_me:$LINENO: checking for pid_t" >&5
10837 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10838 if test "${ac_cv_type_pid_t+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10843 /* confdefs.h.  */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h.  */
10848 $ac_includes_default
10849 int
10850 main ()
10851 {
10852 if ((pid_t *) 0)
10853   return 0;
10854 if (sizeof (pid_t))
10855   return 0;
10856   ;
10857   return 0;
10858 }
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862   (eval $ac_compile) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } &&
10866          { ac_try='test -s conftest.$ac_objext'
10867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868   (eval $ac_try) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; }; then
10872   ac_cv_type_pid_t=yes
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 ac_cv_type_pid_t=no
10878 fi
10879 rm -f conftest.$ac_objext conftest.$ac_ext
10880 fi
10881 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10882 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10883 if test $ac_cv_type_pid_t = yes; then
10884   :
10885 else
10886
10887 cat >>confdefs.h <<_ACEOF
10888 #define pid_t int
10889 _ACEOF
10890
10891 fi
10892
10893 echo "$as_me:$LINENO: checking for off_t" >&5
10894 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10895 if test "${ac_cv_type_off_t+set}" = set; then
10896   echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898   cat >conftest.$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905 $ac_includes_default
10906 int
10907 main ()
10908 {
10909 if ((off_t *) 0)
10910   return 0;
10911 if (sizeof (off_t))
10912   return 0;
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919   (eval $ac_compile) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } &&
10923          { ac_try='test -s conftest.$ac_objext'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; }; then
10929   ac_cv_type_off_t=yes
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 ac_cv_type_off_t=no
10935 fi
10936 rm -f conftest.$ac_objext conftest.$ac_ext
10937 fi
10938 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10939 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10940 if test $ac_cv_type_off_t = yes; then
10941   :
10942 else
10943
10944 cat >>confdefs.h <<_ACEOF
10945 #define off_t long
10946 _ACEOF
10947
10948 fi
10949
10950 echo "$as_me:$LINENO: checking for ino_t" >&5
10951 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
10952 if test "${ac_cv_type_ino_t+set}" = set; then
10953   echo $ECHO_N "(cached) $ECHO_C" >&6
10954 else
10955   cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 $ac_includes_default
10963 int
10964 main ()
10965 {
10966 if ((ino_t *) 0)
10967   return 0;
10968 if (sizeof (ino_t))
10969   return 0;
10970   ;
10971   return 0;
10972 }
10973 _ACEOF
10974 rm -f conftest.$ac_objext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976   (eval $ac_compile) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); } &&
10980          { ac_try='test -s conftest.$ac_objext'
10981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982   (eval $ac_try) 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; }; then
10986   ac_cv_type_ino_t=yes
10987 else
10988   echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 ac_cv_type_ino_t=no
10992 fi
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10994 fi
10995 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
10996 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
10997 if test $ac_cv_type_ino_t = yes; then
10998   :
10999 else
11000
11001 cat >>confdefs.h <<_ACEOF
11002 #define ino_t unsigned long
11003 _ACEOF
11004
11005 fi
11006
11007 echo "$as_me:$LINENO: checking for dev_t" >&5
11008 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11009 if test "${ac_cv_type_dev_t+set}" = set; then
11010   echo $ECHO_N "(cached) $ECHO_C" >&6
11011 else
11012   cat >conftest.$ac_ext <<_ACEOF
11013 #line $LINENO "configure"
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019 $ac_includes_default
11020 int
11021 main ()
11022 {
11023 if ((dev_t *) 0)
11024   return 0;
11025 if (sizeof (dev_t))
11026   return 0;
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033   (eval $ac_compile) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -s conftest.$ac_objext'
11038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039   (eval $ac_try) 2>&5
11040   ac_status=$?
11041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042   (exit $ac_status); }; }; then
11043   ac_cv_type_dev_t=yes
11044 else
11045   echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 ac_cv_type_dev_t=no
11049 fi
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11051 fi
11052 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11053 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11054 if test $ac_cv_type_dev_t = yes; then
11055   :
11056 else
11057
11058 cat >>confdefs.h <<_ACEOF
11059 #define dev_t unsigned long
11060 _ACEOF
11061
11062 fi
11063
11064 echo "$as_me:$LINENO: checking for daddr_t" >&5
11065 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11066 if test "${ac_cv_type_daddr_t+set}" = set; then
11067   echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069   cat >conftest.$ac_ext <<_ACEOF
11070 #line $LINENO "configure"
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 $ac_includes_default
11077 int
11078 main ()
11079 {
11080 if ((daddr_t *) 0)
11081   return 0;
11082 if (sizeof (daddr_t))
11083   return 0;
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090   (eval $ac_compile) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } &&
11094          { ac_try='test -s conftest.$ac_objext'
11095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096   (eval $ac_try) 2>&5
11097   ac_status=$?
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); }; }; then
11100   ac_cv_type_daddr_t=yes
11101 else
11102   echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11104
11105 ac_cv_type_daddr_t=no
11106 fi
11107 rm -f conftest.$ac_objext conftest.$ac_ext
11108 fi
11109 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11110 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11111 if test $ac_cv_type_daddr_t = yes; then
11112   :
11113 else
11114
11115 cat >>confdefs.h <<_ACEOF
11116 #define daddr_t long
11117 _ACEOF
11118
11119 fi
11120
11121 echo "$as_me:$LINENO: checking for major_t" >&5
11122 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11123 if test "${ac_cv_type_major_t+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 #line $LINENO "configure"
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133 $ac_includes_default
11134 int
11135 main ()
11136 {
11137 if ((major_t *) 0)
11138   return 0;
11139 if (sizeof (major_t))
11140   return 0;
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147   (eval $ac_compile) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); } &&
11151          { ac_try='test -s conftest.$ac_objext'
11152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153   (eval $ac_try) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   ac_cv_type_major_t=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162 ac_cv_type_major_t=no
11163 fi
11164 rm -f conftest.$ac_objext conftest.$ac_ext
11165 fi
11166 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11167 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11168 if test $ac_cv_type_major_t = yes; then
11169   :
11170 else
11171
11172 cat >>confdefs.h <<_ACEOF
11173 #define major_t int
11174 _ACEOF
11175
11176 fi
11177
11178 echo "$as_me:$LINENO: checking for minor_t" >&5
11179 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11180 if test "${ac_cv_type_minor_t+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   cat >conftest.$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11185 /* confdefs.h.  */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h.  */
11190 $ac_includes_default
11191 int
11192 main ()
11193 {
11194 if ((minor_t *) 0)
11195   return 0;
11196 if (sizeof (minor_t))
11197   return 0;
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11204   (eval $ac_compile) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } &&
11208          { ac_try='test -s conftest.$ac_objext'
11209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210   (eval $ac_try) 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; }; then
11214   ac_cv_type_minor_t=yes
11215 else
11216   echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_cv_type_minor_t=no
11220 fi
11221 rm -f conftest.$ac_objext conftest.$ac_ext
11222 fi
11223 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11224 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11225 if test $ac_cv_type_minor_t = yes; then
11226   :
11227 else
11228
11229 cat >>confdefs.h <<_ACEOF
11230 #define minor_t int
11231 _ACEOF
11232
11233 fi
11234
11235 echo "$as_me:$LINENO: checking for ssize_t" >&5
11236 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11237 if test "${ac_cv_type_ssize_t+set}" = set; then
11238   echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240   cat >conftest.$ac_ext <<_ACEOF
11241 #line $LINENO "configure"
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 $ac_includes_default
11248 int
11249 main ()
11250 {
11251 if ((ssize_t *) 0)
11252   return 0;
11253 if (sizeof (ssize_t))
11254   return 0;
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -s conftest.$ac_objext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   ac_cv_type_ssize_t=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276 ac_cv_type_ssize_t=no
11277 fi
11278 rm -f conftest.$ac_objext conftest.$ac_ext
11279 fi
11280 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11281 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11282 if test $ac_cv_type_ssize_t = yes; then
11283   :
11284 else
11285
11286 cat >>confdefs.h <<_ACEOF
11287 #define ssize_t int
11288 _ACEOF
11289
11290 fi
11291
11292 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11293 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11294 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11299 /* confdefs.h.  */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h.  */
11304 $ac_includes_default
11305 int
11306 main ()
11307 {
11308 static struct stat ac_aggr;
11309 if (ac_aggr.st_blocks)
11310 return 0;
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317   (eval $ac_compile) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } &&
11321          { ac_try='test -s conftest.$ac_objext'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   ac_cv_member_struct_stat_st_blocks=yes
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11334 /* confdefs.h.  */
11335 _ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h.  */
11339 $ac_includes_default
11340 int
11341 main ()
11342 {
11343 static struct stat ac_aggr;
11344 if (sizeof ac_aggr.st_blocks)
11345 return 0;
11346   ;
11347   return 0;
11348 }
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352   (eval $ac_compile) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } &&
11356          { ac_try='test -s conftest.$ac_objext'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; }; then
11362   ac_cv_member_struct_stat_st_blocks=yes
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 ac_cv_member_struct_stat_st_blocks=no
11368 fi
11369 rm -f conftest.$ac_objext conftest.$ac_ext
11370 fi
11371 rm -f conftest.$ac_objext conftest.$ac_ext
11372 fi
11373 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11374 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11375 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11376
11377 cat >>confdefs.h <<_ACEOF
11378 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11379 _ACEOF
11380
11381
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_ST_BLOCKS 1
11384 _ACEOF
11385
11386 else
11387   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11388 fi
11389
11390
11391
11392 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11393 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11394 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404 $ac_includes_default
11405 int
11406 main ()
11407 {
11408 static struct stat ac_aggr;
11409 if (ac_aggr.st_rdev)
11410 return 0;
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417   (eval $ac_compile) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } &&
11421          { ac_try='test -s conftest.$ac_objext'
11422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423   (eval $ac_try) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); }; }; then
11427   ac_cv_member_struct_stat_st_rdev=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11431
11432 cat >conftest.$ac_ext <<_ACEOF
11433 #line $LINENO "configure"
11434 /* confdefs.h.  */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h.  */
11439 $ac_includes_default
11440 int
11441 main ()
11442 {
11443 static struct stat ac_aggr;
11444 if (sizeof ac_aggr.st_rdev)
11445 return 0;
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452   (eval $ac_compile) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -s conftest.$ac_objext'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   ac_cv_member_struct_stat_st_rdev=yes
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 ac_cv_member_struct_stat_st_rdev=no
11468 fi
11469 rm -f conftest.$ac_objext conftest.$ac_ext
11470 fi
11471 rm -f conftest.$ac_objext conftest.$ac_ext
11472 fi
11473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11474 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11475 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11476
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_STRUCT_STAT_ST_RDEV 1
11479 _ACEOF
11480
11481
11482 cat >>confdefs.h <<\_ACEOF
11483 #define HAVE_ST_RDEV 1
11484 _ACEOF
11485
11486 fi
11487
11488
11489 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11490 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11491 if test "${ac_cv_struct_tm+set}" = set; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494   cat >conftest.$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <sys/types.h>
11502 #include <time.h>
11503
11504 int
11505 main ()
11506 {
11507 struct tm *tp; tp->tm_sec;
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514   (eval $ac_compile) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } &&
11518          { ac_try='test -s conftest.$ac_objext'
11519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520   (eval $ac_try) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; }; then
11524   ac_cv_struct_tm=time.h
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529 ac_cv_struct_tm=sys/time.h
11530 fi
11531 rm -f conftest.$ac_objext conftest.$ac_ext
11532 fi
11533 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11534 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11535 if test $ac_cv_struct_tm = sys/time.h; then
11536
11537 cat >>confdefs.h <<\_ACEOF
11538 #define TM_IN_SYS_TIME 1
11539 _ACEOF
11540
11541 fi
11542
11543 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11544 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11545 if test "${ac_cv_c_const+set}" = set; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   cat >conftest.$ac_ext <<_ACEOF
11549 #line $LINENO "configure"
11550 /* confdefs.h.  */
11551 _ACEOF
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h.  */
11555
11556 int
11557 main ()
11558 {
11559 /* FIXME: Include the comments suggested by Paul. */
11560 #ifndef __cplusplus
11561   /* Ultrix mips cc rejects this.  */
11562   typedef int charset[2];
11563   const charset x;
11564   /* SunOS 4.1.1 cc rejects this.  */
11565   char const *const *ccp;
11566   char **p;
11567   /* NEC SVR4.0.2 mips cc rejects this.  */
11568   struct point {int x, y;};
11569   static struct point const zero = {0,0};
11570   /* AIX XL C 1.02.0.0 rejects this.
11571      It does not let you subtract one const X* pointer from another in
11572      an arm of an if-expression whose if-part is not a constant
11573      expression */
11574   const char *g = "string";
11575   ccp = &g + (g ? g-g : 0);
11576   /* HPUX 7.0 cc rejects these. */
11577   ++ccp;
11578   p = (char**) ccp;
11579   ccp = (char const *const *) p;
11580   { /* SCO 3.2v4 cc rejects this.  */
11581     char *t;
11582     char const *s = 0 ? (char *) 0 : (char const *) 0;
11583
11584     *t++ = 0;
11585   }
11586   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11587     int x[] = {25, 17};
11588     const int *foo = &x[0];
11589     ++foo;
11590   }
11591   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11592     typedef const int *iptr;
11593     iptr p = 0;
11594     ++p;
11595   }
11596   { /* AIX XL C 1.02.0.0 rejects this saying
11597        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11598     struct s { int j; const int *ap[3]; };
11599     struct s *b; b->j = 5;
11600   }
11601   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11602     const int foo = 10;
11603   }
11604 #endif
11605
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612   (eval $ac_compile) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   ac_cv_c_const=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_cv_c_const=no
11628 fi
11629 rm -f conftest.$ac_objext conftest.$ac_ext
11630 fi
11631 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11632 echo "${ECHO_T}$ac_cv_c_const" >&6
11633 if test $ac_cv_c_const = no; then
11634
11635 cat >>confdefs.h <<\_ACEOF
11636 #define const
11637 _ACEOF
11638
11639 fi
11640
11641
11642
11643 echo "$as_me:$LINENO: checking for char" >&5
11644 echo $ECHO_N "checking for char... $ECHO_C" >&6
11645 if test "${ac_cv_type_char+set}" = set; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 $ac_includes_default
11656 int
11657 main ()
11658 {
11659 if ((char *) 0)
11660   return 0;
11661 if (sizeof (char))
11662   return 0;
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669   (eval $ac_compile) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -s conftest.$ac_objext'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   ac_cv_type_char=yes
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 ac_cv_type_char=no
11685 fi
11686 rm -f conftest.$ac_objext conftest.$ac_ext
11687 fi
11688 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11689 echo "${ECHO_T}$ac_cv_type_char" >&6
11690
11691 echo "$as_me:$LINENO: checking size of char" >&5
11692 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11693 if test "${ac_cv_sizeof_char+set}" = set; then
11694   echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696   if test "$ac_cv_type_char" = yes; then
11697   # The cast to unsigned long works around a bug in the HP C Compiler
11698   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11699   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11700   # This bug is HP SR number 8606223364.
11701   if test "$cross_compiling" = yes; then
11702   # Depending upon the size, compute the lo and hi bounds.
11703 cat >conftest.$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11710 $ac_includes_default
11711 int
11712 main ()
11713 {
11714 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11715 test_array [0] = 0
11716
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723   (eval $ac_compile) 2>&5
11724   ac_status=$?
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } &&
11727          { ac_try='test -s conftest.$ac_objext'
11728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729   (eval $ac_try) 2>&5
11730   ac_status=$?
11731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732   (exit $ac_status); }; }; then
11733   ac_lo=0 ac_mid=0
11734   while :; do
11735     cat >conftest.$ac_ext <<_ACEOF
11736 #line $LINENO "configure"
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 $ac_includes_default
11743 int
11744 main ()
11745 {
11746 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11747 test_array [0] = 0
11748
11749   ;
11750   return 0;
11751 }
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755   (eval $ac_compile) 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); } &&
11759          { ac_try='test -s conftest.$ac_objext'
11760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761   (eval $ac_try) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; }; then
11765   ac_hi=$ac_mid; break
11766 else
11767   echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 ac_lo=`expr $ac_mid + 1`
11771                     if test $ac_lo -le $ac_mid; then
11772                       ac_lo= ac_hi=
11773                       break
11774                     fi
11775                     ac_mid=`expr 2 '*' $ac_mid + 1`
11776 fi
11777 rm -f conftest.$ac_objext conftest.$ac_ext
11778   done
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783 cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 /* confdefs.h.  */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h.  */
11790 $ac_includes_default
11791 int
11792 main ()
11793 {
11794 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11795 test_array [0] = 0
11796
11797   ;
11798   return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11803   (eval $ac_compile) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } &&
11807          { ac_try='test -s conftest.$ac_objext'
11808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809   (eval $ac_try) 2>&5
11810   ac_status=$?
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); }; }; then
11813   ac_hi=-1 ac_mid=-1
11814   while :; do
11815     cat >conftest.$ac_ext <<_ACEOF
11816 #line $LINENO "configure"
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822 $ac_includes_default
11823 int
11824 main ()
11825 {
11826 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11827 test_array [0] = 0
11828
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835   (eval $ac_compile) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); } &&
11839          { ac_try='test -s conftest.$ac_objext'
11840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841   (eval $ac_try) 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; }; then
11845   ac_lo=$ac_mid; break
11846 else
11847   echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 ac_hi=`expr '(' $ac_mid ')' - 1`
11851                        if test $ac_mid -le $ac_hi; then
11852                          ac_lo= ac_hi=
11853                          break
11854                        fi
11855                        ac_mid=`expr 2 '*' $ac_mid`
11856 fi
11857 rm -f conftest.$ac_objext conftest.$ac_ext
11858   done
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 ac_lo= ac_hi=
11864 fi
11865 rm -f conftest.$ac_objext conftest.$ac_ext
11866 fi
11867 rm -f conftest.$ac_objext conftest.$ac_ext
11868 # Binary search between lo and hi bounds.
11869 while test "x$ac_lo" != "x$ac_hi"; do
11870   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11871   cat >conftest.$ac_ext <<_ACEOF
11872 #line $LINENO "configure"
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878 $ac_includes_default
11879 int
11880 main ()
11881 {
11882 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11883 test_array [0] = 0
11884
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891   (eval $ac_compile) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); } &&
11895          { ac_try='test -s conftest.$ac_objext'
11896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897   (eval $ac_try) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   ac_hi=$ac_mid
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 ac_lo=`expr '(' $ac_mid ')' + 1`
11907 fi
11908 rm -f conftest.$ac_objext conftest.$ac_ext
11909 done
11910 case $ac_lo in
11911 ?*) ac_cv_sizeof_char=$ac_lo;;
11912 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11913 See \`config.log' for more details." >&5
11914 echo "$as_me: error: cannot compute sizeof (char), 77
11915 See \`config.log' for more details." >&2;}
11916    { (exit 1); exit 1; }; } ;;
11917 esac
11918 else
11919   if test "$cross_compiling" = yes; then
11920   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11921 See \`config.log' for more details." >&5
11922 echo "$as_me: error: cannot run test program while cross compiling
11923 See \`config.log' for more details." >&2;}
11924    { (exit 1); exit 1; }; }
11925 else
11926   cat >conftest.$ac_ext <<_ACEOF
11927 #line $LINENO "configure"
11928 /* confdefs.h.  */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h.  */
11933 $ac_includes_default
11934 long longval () { return (long) (sizeof (char)); }
11935 unsigned long ulongval () { return (long) (sizeof (char)); }
11936 #include <stdio.h>
11937 #include <stdlib.h>
11938 int
11939 main ()
11940 {
11941
11942   FILE *f = fopen ("conftest.val", "w");
11943   if (! f)
11944     exit (1);
11945   if (((long) (sizeof (char))) < 0)
11946     {
11947       long i = longval ();
11948       if (i != ((long) (sizeof (char))))
11949         exit (1);
11950       fprintf (f, "%ld\n", i);
11951     }
11952   else
11953     {
11954       unsigned long i = ulongval ();
11955       if (i != ((long) (sizeof (char))))
11956         exit (1);
11957       fprintf (f, "%lu\n", i);
11958     }
11959   exit (ferror (f) || fclose (f) != 0);
11960
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest$ac_exeext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967   (eval $ac_link) 2>&5
11968   ac_status=$?
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972   (eval $ac_try) 2>&5
11973   ac_status=$?
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); }; }; then
11976   ac_cv_sizeof_char=`cat conftest.val`
11977 else
11978   echo "$as_me: program exited with status $ac_status" >&5
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982 ( exit $ac_status )
11983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11984 See \`config.log' for more details." >&5
11985 echo "$as_me: error: cannot compute sizeof (char), 77
11986 See \`config.log' for more details." >&2;}
11987    { (exit 1); exit 1; }; }
11988 fi
11989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11990 fi
11991 fi
11992 rm -f conftest.val
11993 else
11994   ac_cv_sizeof_char=0
11995 fi
11996 fi
11997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11998 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11999 cat >>confdefs.h <<_ACEOF
12000 #define SIZEOF_CHAR $ac_cv_sizeof_char
12001 _ACEOF
12002
12003
12004 echo "$as_me:$LINENO: checking for short int" >&5
12005 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12006 if test "${ac_cv_type_short_int+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 $ac_includes_default
12017 int
12018 main ()
12019 {
12020 if ((short int *) 0)
12021   return 0;
12022 if (sizeof (short int))
12023   return 0;
12024   ;
12025   return 0;
12026 }
12027 _ACEOF
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030   (eval $ac_compile) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); } &&
12034          { ac_try='test -s conftest.$ac_objext'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; }; then
12040   ac_cv_type_short_int=yes
12041 else
12042   echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 ac_cv_type_short_int=no
12046 fi
12047 rm -f conftest.$ac_objext conftest.$ac_ext
12048 fi
12049 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12050 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12051
12052 echo "$as_me:$LINENO: checking size of short int" >&5
12053 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12054 if test "${ac_cv_sizeof_short_int+set}" = set; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   if test "$ac_cv_type_short_int" = yes; then
12058   # The cast to unsigned long works around a bug in the HP C Compiler
12059   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12060   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12061   # This bug is HP SR number 8606223364.
12062   if test "$cross_compiling" = yes; then
12063   # Depending upon the size, compute the lo and hi bounds.
12064 cat >conftest.$ac_ext <<_ACEOF
12065 #line $LINENO "configure"
12066 /* confdefs.h.  */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h.  */
12071 $ac_includes_default
12072 int
12073 main ()
12074 {
12075 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12076 test_array [0] = 0
12077
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084   (eval $ac_compile) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -s conftest.$ac_objext'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   ac_lo=0 ac_mid=0
12095   while :; do
12096     cat >conftest.$ac_ext <<_ACEOF
12097 #line $LINENO "configure"
12098 /* confdefs.h.  */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h.  */
12103 $ac_includes_default
12104 int
12105 main ()
12106 {
12107 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12108 test_array [0] = 0
12109
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116   (eval $ac_compile) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -s conftest.$ac_objext'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126   ac_hi=$ac_mid; break
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 ac_lo=`expr $ac_mid + 1`
12132                     if test $ac_lo -le $ac_mid; then
12133                       ac_lo= ac_hi=
12134                       break
12135                     fi
12136                     ac_mid=`expr 2 '*' $ac_mid + 1`
12137 fi
12138 rm -f conftest.$ac_objext conftest.$ac_ext
12139   done
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144 cat >conftest.$ac_ext <<_ACEOF
12145 #line $LINENO "configure"
12146 /* confdefs.h.  */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h.  */
12151 $ac_includes_default
12152 int
12153 main ()
12154 {
12155 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12156 test_array [0] = 0
12157
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164   (eval $ac_compile) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -s conftest.$ac_objext'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   ac_hi=-1 ac_mid=-1
12175   while :; do
12176     cat >conftest.$ac_ext <<_ACEOF
12177 #line $LINENO "configure"
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183 $ac_includes_default
12184 int
12185 main ()
12186 {
12187 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12188 test_array [0] = 0
12189
12190   ;
12191   return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196   (eval $ac_compile) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -s conftest.$ac_objext'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_lo=$ac_mid; break
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ac_hi=`expr '(' $ac_mid ')' - 1`
12212                        if test $ac_mid -le $ac_hi; then
12213                          ac_lo= ac_hi=
12214                          break
12215                        fi
12216                        ac_mid=`expr 2 '*' $ac_mid`
12217 fi
12218 rm -f conftest.$ac_objext conftest.$ac_ext
12219   done
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_lo= ac_hi=
12225 fi
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12227 fi
12228 rm -f conftest.$ac_objext conftest.$ac_ext
12229 # Binary search between lo and hi bounds.
12230 while test "x$ac_lo" != "x$ac_hi"; do
12231   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12232   cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 /* confdefs.h.  */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h.  */
12239 $ac_includes_default
12240 int
12241 main ()
12242 {
12243 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12244 test_array [0] = 0
12245
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 rm -f conftest.$ac_objext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12252   (eval $ac_compile) 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } &&
12256          { ac_try='test -s conftest.$ac_objext'
12257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258   (eval $ac_try) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; }; then
12262   ac_hi=$ac_mid
12263 else
12264   echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12266
12267 ac_lo=`expr '(' $ac_mid ')' + 1`
12268 fi
12269 rm -f conftest.$ac_objext conftest.$ac_ext
12270 done
12271 case $ac_lo in
12272 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12273 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12274 See \`config.log' for more details." >&5
12275 echo "$as_me: error: cannot compute sizeof (short int), 77
12276 See \`config.log' for more details." >&2;}
12277    { (exit 1); exit 1; }; } ;;
12278 esac
12279 else
12280   if test "$cross_compiling" = yes; then
12281   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12282 See \`config.log' for more details." >&5
12283 echo "$as_me: error: cannot run test program while cross compiling
12284 See \`config.log' for more details." >&2;}
12285    { (exit 1); exit 1; }; }
12286 else
12287   cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 $ac_includes_default
12295 long longval () { return (long) (sizeof (short int)); }
12296 unsigned long ulongval () { return (long) (sizeof (short int)); }
12297 #include <stdio.h>
12298 #include <stdlib.h>
12299 int
12300 main ()
12301 {
12302
12303   FILE *f = fopen ("conftest.val", "w");
12304   if (! f)
12305     exit (1);
12306   if (((long) (sizeof (short int))) < 0)
12307     {
12308       long i = longval ();
12309       if (i != ((long) (sizeof (short int))))
12310         exit (1);
12311       fprintf (f, "%ld\n", i);
12312     }
12313   else
12314     {
12315       unsigned long i = ulongval ();
12316       if (i != ((long) (sizeof (short int))))
12317         exit (1);
12318       fprintf (f, "%lu\n", i);
12319     }
12320   exit (ferror (f) || fclose (f) != 0);
12321
12322   ;
12323   return 0;
12324 }
12325 _ACEOF
12326 rm -f conftest$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328   (eval $ac_link) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; }; then
12337   ac_cv_sizeof_short_int=`cat conftest.val`
12338 else
12339   echo "$as_me: program exited with status $ac_status" >&5
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 ( exit $ac_status )
12344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12345 See \`config.log' for more details." >&5
12346 echo "$as_me: error: cannot compute sizeof (short int), 77
12347 See \`config.log' for more details." >&2;}
12348    { (exit 1); exit 1; }; }
12349 fi
12350 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 fi
12353 rm -f conftest.val
12354 else
12355   ac_cv_sizeof_short_int=0
12356 fi
12357 fi
12358 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12359 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12360 cat >>confdefs.h <<_ACEOF
12361 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12362 _ACEOF
12363
12364
12365 echo "$as_me:$LINENO: checking for int" >&5
12366 echo $ECHO_N "checking for int... $ECHO_C" >&6
12367 if test "${ac_cv_type_int+set}" = set; then
12368   echo $ECHO_N "(cached) $ECHO_C" >&6
12369 else
12370   cat >conftest.$ac_ext <<_ACEOF
12371 #line $LINENO "configure"
12372 /* confdefs.h.  */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h.  */
12377 $ac_includes_default
12378 int
12379 main ()
12380 {
12381 if ((int *) 0)
12382   return 0;
12383 if (sizeof (int))
12384   return 0;
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -s conftest.$ac_objext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_type_int=yes
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_cv_type_int=no
12407 fi
12408 rm -f conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12411 echo "${ECHO_T}$ac_cv_type_int" >&6
12412
12413 echo "$as_me:$LINENO: checking size of int" >&5
12414 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12415 if test "${ac_cv_sizeof_int+set}" = set; then
12416   echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418   if test "$ac_cv_type_int" = yes; then
12419   # The cast to unsigned long works around a bug in the HP C Compiler
12420   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12421   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12422   # This bug is HP SR number 8606223364.
12423   if test "$cross_compiling" = yes; then
12424   # Depending upon the size, compute the lo and hi bounds.
12425 cat >conftest.$ac_ext <<_ACEOF
12426 #line $LINENO "configure"
12427 /* confdefs.h.  */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h.  */
12432 $ac_includes_default
12433 int
12434 main ()
12435 {
12436 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12437 test_array [0] = 0
12438
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445   (eval $ac_compile) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -s conftest.$ac_objext'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_lo=0 ac_mid=0
12456   while :; do
12457     cat >conftest.$ac_ext <<_ACEOF
12458 #line $LINENO "configure"
12459 /* confdefs.h.  */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h.  */
12464 $ac_includes_default
12465 int
12466 main ()
12467 {
12468 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12469 test_array [0] = 0
12470
12471   ;
12472   return 0;
12473 }
12474 _ACEOF
12475 rm -f conftest.$ac_objext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477   (eval $ac_compile) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } &&
12481          { ac_try='test -s conftest.$ac_objext'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; }; then
12487   ac_hi=$ac_mid; break
12488 else
12489   echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12491
12492 ac_lo=`expr $ac_mid + 1`
12493                     if test $ac_lo -le $ac_mid; then
12494                       ac_lo= ac_hi=
12495                       break
12496                     fi
12497                     ac_mid=`expr 2 '*' $ac_mid + 1`
12498 fi
12499 rm -f conftest.$ac_objext conftest.$ac_ext
12500   done
12501 else
12502   echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505 cat >conftest.$ac_ext <<_ACEOF
12506 #line $LINENO "configure"
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 $ac_includes_default
12513 int
12514 main ()
12515 {
12516 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12517 test_array [0] = 0
12518
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525   (eval $ac_compile) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } &&
12529          { ac_try='test -s conftest.$ac_objext'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; }; then
12535   ac_hi=-1 ac_mid=-1
12536   while :; do
12537     cat >conftest.$ac_ext <<_ACEOF
12538 #line $LINENO "configure"
12539 /* confdefs.h.  */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h.  */
12544 $ac_includes_default
12545 int
12546 main ()
12547 {
12548 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12549 test_array [0] = 0
12550
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557   (eval $ac_compile) 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } &&
12561          { ac_try='test -s conftest.$ac_objext'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; }; then
12567   ac_lo=$ac_mid; break
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572 ac_hi=`expr '(' $ac_mid ')' - 1`
12573                        if test $ac_mid -le $ac_hi; then
12574                          ac_lo= ac_hi=
12575                          break
12576                        fi
12577                        ac_mid=`expr 2 '*' $ac_mid`
12578 fi
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12580   done
12581 else
12582   echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 ac_lo= ac_hi=
12586 fi
12587 rm -f conftest.$ac_objext conftest.$ac_ext
12588 fi
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12590 # Binary search between lo and hi bounds.
12591 while test "x$ac_lo" != "x$ac_hi"; do
12592   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12593   cat >conftest.$ac_ext <<_ACEOF
12594 #line $LINENO "configure"
12595 /* confdefs.h.  */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h.  */
12600 $ac_includes_default
12601 int
12602 main ()
12603 {
12604 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12605 test_array [0] = 0
12606
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613   (eval $ac_compile) 2>&5
12614   ac_status=$?
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); } &&
12617          { ac_try='test -s conftest.$ac_objext'
12618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619   (eval $ac_try) 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); }; }; then
12623   ac_hi=$ac_mid
12624 else
12625   echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 ac_lo=`expr '(' $ac_mid ')' + 1`
12629 fi
12630 rm -f conftest.$ac_objext conftest.$ac_ext
12631 done
12632 case $ac_lo in
12633 ?*) ac_cv_sizeof_int=$ac_lo;;
12634 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12635 See \`config.log' for more details." >&5
12636 echo "$as_me: error: cannot compute sizeof (int), 77
12637 See \`config.log' for more details." >&2;}
12638    { (exit 1); exit 1; }; } ;;
12639 esac
12640 else
12641   if test "$cross_compiling" = yes; then
12642   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12643 See \`config.log' for more details." >&5
12644 echo "$as_me: error: cannot run test program while cross compiling
12645 See \`config.log' for more details." >&2;}
12646    { (exit 1); exit 1; }; }
12647 else
12648   cat >conftest.$ac_ext <<_ACEOF
12649 #line $LINENO "configure"
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655 $ac_includes_default
12656 long longval () { return (long) (sizeof (int)); }
12657 unsigned long ulongval () { return (long) (sizeof (int)); }
12658 #include <stdio.h>
12659 #include <stdlib.h>
12660 int
12661 main ()
12662 {
12663
12664   FILE *f = fopen ("conftest.val", "w");
12665   if (! f)
12666     exit (1);
12667   if (((long) (sizeof (int))) < 0)
12668     {
12669       long i = longval ();
12670       if (i != ((long) (sizeof (int))))
12671         exit (1);
12672       fprintf (f, "%ld\n", i);
12673     }
12674   else
12675     {
12676       unsigned long i = ulongval ();
12677       if (i != ((long) (sizeof (int))))
12678         exit (1);
12679       fprintf (f, "%lu\n", i);
12680     }
12681   exit (ferror (f) || fclose (f) != 0);
12682
12683   ;
12684   return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689   (eval $ac_link) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698   ac_cv_sizeof_int=`cat conftest.val`
12699 else
12700   echo "$as_me: program exited with status $ac_status" >&5
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 ( exit $ac_status )
12705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12706 See \`config.log' for more details." >&5
12707 echo "$as_me: error: cannot compute sizeof (int), 77
12708 See \`config.log' for more details." >&2;}
12709    { (exit 1); exit 1; }; }
12710 fi
12711 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12712 fi
12713 fi
12714 rm -f conftest.val
12715 else
12716   ac_cv_sizeof_int=0
12717 fi
12718 fi
12719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12720 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12721 cat >>confdefs.h <<_ACEOF
12722 #define SIZEOF_INT $ac_cv_sizeof_int
12723 _ACEOF
12724
12725
12726 echo "$as_me:$LINENO: checking for long int" >&5
12727 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12728 if test "${ac_cv_type_long_int+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   cat >conftest.$ac_ext <<_ACEOF
12732 #line $LINENO "configure"
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738 $ac_includes_default
12739 int
12740 main ()
12741 {
12742 if ((long int *) 0)
12743   return 0;
12744 if (sizeof (long int))
12745   return 0;
12746   ;
12747   return 0;
12748 }
12749 _ACEOF
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752   (eval $ac_compile) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -s conftest.$ac_objext'
12757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758   (eval $ac_try) 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; }; then
12762   ac_cv_type_long_int=yes
12763 else
12764   echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ac_cv_type_long_int=no
12768 fi
12769 rm -f conftest.$ac_objext conftest.$ac_ext
12770 fi
12771 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12772 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12773
12774 echo "$as_me:$LINENO: checking size of long int" >&5
12775 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12776 if test "${ac_cv_sizeof_long_int+set}" = set; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779   if test "$ac_cv_type_long_int" = yes; then
12780   # The cast to unsigned long works around a bug in the HP C Compiler
12781   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12782   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12783   # This bug is HP SR number 8606223364.
12784   if test "$cross_compiling" = yes; then
12785   # Depending upon the size, compute the lo and hi bounds.
12786 cat >conftest.$ac_ext <<_ACEOF
12787 #line $LINENO "configure"
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 $ac_includes_default
12794 int
12795 main ()
12796 {
12797 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12798 test_array [0] = 0
12799
12800   ;
12801   return 0;
12802 }
12803 _ACEOF
12804 rm -f conftest.$ac_objext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12806   (eval $ac_compile) 2>&5
12807   ac_status=$?
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); } &&
12810          { ac_try='test -s conftest.$ac_objext'
12811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812   (eval $ac_try) 2>&5
12813   ac_status=$?
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); }; }; then
12816   ac_lo=0 ac_mid=0
12817   while :; do
12818     cat >conftest.$ac_ext <<_ACEOF
12819 #line $LINENO "configure"
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825 $ac_includes_default
12826 int
12827 main ()
12828 {
12829 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12830 test_array [0] = 0
12831
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838   (eval $ac_compile) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } &&
12842          { ac_try='test -s conftest.$ac_objext'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848   ac_hi=$ac_mid; break
12849 else
12850   echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_lo=`expr $ac_mid + 1`
12854                     if test $ac_lo -le $ac_mid; then
12855                       ac_lo= ac_hi=
12856                       break
12857                     fi
12858                     ac_mid=`expr 2 '*' $ac_mid + 1`
12859 fi
12860 rm -f conftest.$ac_objext conftest.$ac_ext
12861   done
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 cat >conftest.$ac_ext <<_ACEOF
12867 #line $LINENO "configure"
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873 $ac_includes_default
12874 int
12875 main ()
12876 {
12877 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12878 test_array [0] = 0
12879
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886   (eval $ac_compile) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); } &&
12890          { ac_try='test -s conftest.$ac_objext'
12891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892   (eval $ac_try) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; }; then
12896   ac_hi=-1 ac_mid=-1
12897   while :; do
12898     cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 /* confdefs.h.  */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h.  */
12905 $ac_includes_default
12906 int
12907 main ()
12908 {
12909 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
12910 test_array [0] = 0
12911
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 rm -f conftest.$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918   (eval $ac_compile) 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); } &&
12922          { ac_try='test -s conftest.$ac_objext'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928   ac_lo=$ac_mid; break
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 ac_hi=`expr '(' $ac_mid ')' - 1`
12934                        if test $ac_mid -le $ac_hi; then
12935                          ac_lo= ac_hi=
12936                          break
12937                        fi
12938                        ac_mid=`expr 2 '*' $ac_mid`
12939 fi
12940 rm -f conftest.$ac_objext conftest.$ac_ext
12941   done
12942 else
12943   echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12945
12946 ac_lo= ac_hi=
12947 fi
12948 rm -f conftest.$ac_objext conftest.$ac_ext
12949 fi
12950 rm -f conftest.$ac_objext conftest.$ac_ext
12951 # Binary search between lo and hi bounds.
12952 while test "x$ac_lo" != "x$ac_hi"; do
12953   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12954   cat >conftest.$ac_ext <<_ACEOF
12955 #line $LINENO "configure"
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961 $ac_includes_default
12962 int
12963 main ()
12964 {
12965 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12966 test_array [0] = 0
12967
12968   ;
12969   return 0;
12970 }
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974   (eval $ac_compile) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); } &&
12978          { ac_try='test -s conftest.$ac_objext'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; }; then
12984   ac_hi=$ac_mid
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 ac_lo=`expr '(' $ac_mid ')' + 1`
12990 fi
12991 rm -f conftest.$ac_objext conftest.$ac_ext
12992 done
12993 case $ac_lo in
12994 ?*) ac_cv_sizeof_long_int=$ac_lo;;
12995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
12996 See \`config.log' for more details." >&5
12997 echo "$as_me: error: cannot compute sizeof (long int), 77
12998 See \`config.log' for more details." >&2;}
12999    { (exit 1); exit 1; }; } ;;
13000 esac
13001 else
13002   if test "$cross_compiling" = yes; then
13003   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13004 See \`config.log' for more details." >&5
13005 echo "$as_me: error: cannot run test program while cross compiling
13006 See \`config.log' for more details." >&2;}
13007    { (exit 1); exit 1; }; }
13008 else
13009   cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 /* confdefs.h.  */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h.  */
13016 $ac_includes_default
13017 long longval () { return (long) (sizeof (long int)); }
13018 unsigned long ulongval () { return (long) (sizeof (long int)); }
13019 #include <stdio.h>
13020 #include <stdlib.h>
13021 int
13022 main ()
13023 {
13024
13025   FILE *f = fopen ("conftest.val", "w");
13026   if (! f)
13027     exit (1);
13028   if (((long) (sizeof (long int))) < 0)
13029     {
13030       long i = longval ();
13031       if (i != ((long) (sizeof (long int))))
13032         exit (1);
13033       fprintf (f, "%ld\n", i);
13034     }
13035   else
13036     {
13037       unsigned long i = ulongval ();
13038       if (i != ((long) (sizeof (long int))))
13039         exit (1);
13040       fprintf (f, "%lu\n", i);
13041     }
13042   exit (ferror (f) || fclose (f) != 0);
13043
13044   ;
13045   return 0;
13046 }
13047 _ACEOF
13048 rm -f conftest$ac_exeext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050   (eval $ac_link) 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055   (eval $ac_try) 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; }; then
13059   ac_cv_sizeof_long_int=`cat conftest.val`
13060 else
13061   echo "$as_me: program exited with status $ac_status" >&5
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13064
13065 ( exit $ac_status )
13066 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13067 See \`config.log' for more details." >&5
13068 echo "$as_me: error: cannot compute sizeof (long int), 77
13069 See \`config.log' for more details." >&2;}
13070    { (exit 1); exit 1; }; }
13071 fi
13072 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13073 fi
13074 fi
13075 rm -f conftest.val
13076 else
13077   ac_cv_sizeof_long_int=0
13078 fi
13079 fi
13080 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13081 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13082 cat >>confdefs.h <<_ACEOF
13083 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13084 _ACEOF
13085
13086
13087 echo "$as_me:$LINENO: checking for long long int" >&5
13088 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13089 if test "${ac_cv_type_long_long_int+set}" = set; then
13090   echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092   cat >conftest.$ac_ext <<_ACEOF
13093 #line $LINENO "configure"
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099 $ac_includes_default
13100 int
13101 main ()
13102 {
13103 if ((long long int *) 0)
13104   return 0;
13105 if (sizeof (long long int))
13106   return 0;
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113   (eval $ac_compile) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -s conftest.$ac_objext'
13118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119   (eval $ac_try) 2>&5
13120   ac_status=$?
13121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122   (exit $ac_status); }; }; then
13123   ac_cv_type_long_long_int=yes
13124 else
13125   echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ac_cv_type_long_long_int=no
13129 fi
13130 rm -f conftest.$ac_objext conftest.$ac_ext
13131 fi
13132 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13133 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13134
13135 echo "$as_me:$LINENO: checking size of long long int" >&5
13136 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13137 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140   if test "$ac_cv_type_long_long_int" = yes; then
13141   # The cast to unsigned long works around a bug in the HP C Compiler
13142   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13143   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13144   # This bug is HP SR number 8606223364.
13145   if test "$cross_compiling" = yes; then
13146   # Depending upon the size, compute the lo and hi bounds.
13147 cat >conftest.$ac_ext <<_ACEOF
13148 #line $LINENO "configure"
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154 $ac_includes_default
13155 int
13156 main ()
13157 {
13158 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13159 test_array [0] = 0
13160
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167   (eval $ac_compile) 2>&5
13168   ac_status=$?
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); } &&
13171          { ac_try='test -s conftest.$ac_objext'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; }; then
13177   ac_lo=0 ac_mid=0
13178   while :; do
13179     cat >conftest.$ac_ext <<_ACEOF
13180 #line $LINENO "configure"
13181 /* confdefs.h.  */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h.  */
13186 $ac_includes_default
13187 int
13188 main ()
13189 {
13190 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13191 test_array [0] = 0
13192
13193   ;
13194   return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199   (eval $ac_compile) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); } &&
13203          { ac_try='test -s conftest.$ac_objext'
13204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205   (eval $ac_try) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }; }; then
13209   ac_hi=$ac_mid; break
13210 else
13211   echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_lo=`expr $ac_mid + 1`
13215                     if test $ac_lo -le $ac_mid; then
13216                       ac_lo= ac_hi=
13217                       break
13218                     fi
13219                     ac_mid=`expr 2 '*' $ac_mid + 1`
13220 fi
13221 rm -f conftest.$ac_objext conftest.$ac_ext
13222   done
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13229 /* confdefs.h.  */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h.  */
13234 $ac_includes_default
13235 int
13236 main ()
13237 {
13238 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13239 test_array [0] = 0
13240
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247   (eval $ac_compile) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } &&
13251          { ac_try='test -s conftest.$ac_objext'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; }; then
13257   ac_hi=-1 ac_mid=-1
13258   while :; do
13259     cat >conftest.$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 $ac_includes_default
13267 int
13268 main ()
13269 {
13270 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13271 test_array [0] = 0
13272
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279   (eval $ac_compile) 2>&5
13280   ac_status=$?
13281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282   (exit $ac_status); } &&
13283          { ac_try='test -s conftest.$ac_objext'
13284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285   (eval $ac_try) 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; }; then
13289   ac_lo=$ac_mid; break
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294 ac_hi=`expr '(' $ac_mid ')' - 1`
13295                        if test $ac_mid -le $ac_hi; then
13296                          ac_lo= ac_hi=
13297                          break
13298                        fi
13299                        ac_mid=`expr 2 '*' $ac_mid`
13300 fi
13301 rm -f conftest.$ac_objext conftest.$ac_ext
13302   done
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 ac_lo= ac_hi=
13308 fi
13309 rm -f conftest.$ac_objext conftest.$ac_ext
13310 fi
13311 rm -f conftest.$ac_objext conftest.$ac_ext
13312 # Binary search between lo and hi bounds.
13313 while test "x$ac_lo" != "x$ac_hi"; do
13314   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13315   cat >conftest.$ac_ext <<_ACEOF
13316 #line $LINENO "configure"
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322 $ac_includes_default
13323 int
13324 main ()
13325 {
13326 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13327 test_array [0] = 0
13328
13329   ;
13330   return 0;
13331 }
13332 _ACEOF
13333 rm -f conftest.$ac_objext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335   (eval $ac_compile) 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } &&
13339          { ac_try='test -s conftest.$ac_objext'
13340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341   (eval $ac_try) 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); }; }; then
13345   ac_hi=$ac_mid
13346 else
13347   echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13349
13350 ac_lo=`expr '(' $ac_mid ')' + 1`
13351 fi
13352 rm -f conftest.$ac_objext conftest.$ac_ext
13353 done
13354 case $ac_lo in
13355 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13356 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13357 See \`config.log' for more details." >&5
13358 echo "$as_me: error: cannot compute sizeof (long long int), 77
13359 See \`config.log' for more details." >&2;}
13360    { (exit 1); exit 1; }; } ;;
13361 esac
13362 else
13363   if test "$cross_compiling" = yes; then
13364   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13365 See \`config.log' for more details." >&5
13366 echo "$as_me: error: cannot run test program while cross compiling
13367 See \`config.log' for more details." >&2;}
13368    { (exit 1); exit 1; }; }
13369 else
13370   cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377 $ac_includes_default
13378 long longval () { return (long) (sizeof (long long int)); }
13379 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13380 #include <stdio.h>
13381 #include <stdlib.h>
13382 int
13383 main ()
13384 {
13385
13386   FILE *f = fopen ("conftest.val", "w");
13387   if (! f)
13388     exit (1);
13389   if (((long) (sizeof (long long int))) < 0)
13390     {
13391       long i = longval ();
13392       if (i != ((long) (sizeof (long long int))))
13393         exit (1);
13394       fprintf (f, "%ld\n", i);
13395     }
13396   else
13397     {
13398       unsigned long i = ulongval ();
13399       if (i != ((long) (sizeof (long long int))))
13400         exit (1);
13401       fprintf (f, "%lu\n", i);
13402     }
13403   exit (ferror (f) || fclose (f) != 0);
13404
13405   ;
13406   return 0;
13407 }
13408 _ACEOF
13409 rm -f conftest$ac_exeext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411   (eval $ac_link) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416   (eval $ac_try) 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); }; }; then
13420   ac_cv_sizeof_long_long_int=`cat conftest.val`
13421 else
13422   echo "$as_me: program exited with status $ac_status" >&5
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426 ( exit $ac_status )
13427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13428 See \`config.log' for more details." >&5
13429 echo "$as_me: error: cannot compute sizeof (long long int), 77
13430 See \`config.log' for more details." >&2;}
13431    { (exit 1); exit 1; }; }
13432 fi
13433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13434 fi
13435 fi
13436 rm -f conftest.val
13437 else
13438   ac_cv_sizeof_long_long_int=0
13439 fi
13440 fi
13441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13442 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13443 cat >>confdefs.h <<_ACEOF
13444 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13445 _ACEOF
13446
13447
13448 echo "$as_me:$LINENO: checking for int *" >&5
13449 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13450 if test "${ac_cv_type_int_p+set}" = set; then
13451   echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453   cat >conftest.$ac_ext <<_ACEOF
13454 #line $LINENO "configure"
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460 $ac_includes_default
13461 int
13462 main ()
13463 {
13464 if ((int * *) 0)
13465   return 0;
13466 if (sizeof (int *))
13467   return 0;
13468   ;
13469   return 0;
13470 }
13471 _ACEOF
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474   (eval $ac_compile) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } &&
13478          { ac_try='test -s conftest.$ac_objext'
13479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480   (eval $ac_try) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; }; then
13484   ac_cv_type_int_p=yes
13485 else
13486   echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ac_cv_type_int_p=no
13490 fi
13491 rm -f conftest.$ac_objext conftest.$ac_ext
13492 fi
13493 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13494 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13495
13496 echo "$as_me:$LINENO: checking size of int *" >&5
13497 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13498 if test "${ac_cv_sizeof_int_p+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501   if test "$ac_cv_type_int_p" = yes; then
13502   # The cast to unsigned long works around a bug in the HP C Compiler
13503   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13504   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13505   # This bug is HP SR number 8606223364.
13506   if test "$cross_compiling" = yes; then
13507   # Depending upon the size, compute the lo and hi bounds.
13508 cat >conftest.$ac_ext <<_ACEOF
13509 #line $LINENO "configure"
13510 /* confdefs.h.  */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h.  */
13515 $ac_includes_default
13516 int
13517 main ()
13518 {
13519 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13520 test_array [0] = 0
13521
13522   ;
13523   return 0;
13524 }
13525 _ACEOF
13526 rm -f conftest.$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528   (eval $ac_compile) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } &&
13532          { ac_try='test -s conftest.$ac_objext'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   ac_lo=0 ac_mid=0
13539   while :; do
13540     cat >conftest.$ac_ext <<_ACEOF
13541 #line $LINENO "configure"
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547 $ac_includes_default
13548 int
13549 main ()
13550 {
13551 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13552 test_array [0] = 0
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560   (eval $ac_compile) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -s conftest.$ac_objext'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; }; then
13570   ac_hi=$ac_mid; break
13571 else
13572   echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 ac_lo=`expr $ac_mid + 1`
13576                     if test $ac_lo -le $ac_mid; then
13577                       ac_lo= ac_hi=
13578                       break
13579                     fi
13580                     ac_mid=`expr 2 '*' $ac_mid + 1`
13581 fi
13582 rm -f conftest.$ac_objext conftest.$ac_ext
13583   done
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 cat >conftest.$ac_ext <<_ACEOF
13589 #line $LINENO "configure"
13590 /* confdefs.h.  */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h.  */
13595 $ac_includes_default
13596 int
13597 main ()
13598 {
13599 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13600 test_array [0] = 0
13601
13602   ;
13603   return 0;
13604 }
13605 _ACEOF
13606 rm -f conftest.$ac_objext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608   (eval $ac_compile) 2>&5
13609   ac_status=$?
13610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); } &&
13612          { ac_try='test -s conftest.$ac_objext'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; }; then
13618   ac_hi=-1 ac_mid=-1
13619   while :; do
13620     cat >conftest.$ac_ext <<_ACEOF
13621 #line $LINENO "configure"
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627 $ac_includes_default
13628 int
13629 main ()
13630 {
13631 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13632 test_array [0] = 0
13633
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640   (eval $ac_compile) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -s conftest.$ac_objext'
13645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646   (eval $ac_try) 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; }; then
13650   ac_lo=$ac_mid; break
13651 else
13652   echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13654
13655 ac_hi=`expr '(' $ac_mid ')' - 1`
13656                        if test $ac_mid -le $ac_hi; then
13657                          ac_lo= ac_hi=
13658                          break
13659                        fi
13660                        ac_mid=`expr 2 '*' $ac_mid`
13661 fi
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13663   done
13664 else
13665   echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13667
13668 ac_lo= ac_hi=
13669 fi
13670 rm -f conftest.$ac_objext conftest.$ac_ext
13671 fi
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13673 # Binary search between lo and hi bounds.
13674 while test "x$ac_lo" != "x$ac_hi"; do
13675   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13676   cat >conftest.$ac_ext <<_ACEOF
13677 #line $LINENO "configure"
13678 /* confdefs.h.  */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h.  */
13683 $ac_includes_default
13684 int
13685 main ()
13686 {
13687 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13688 test_array [0] = 0
13689
13690   ;
13691   return 0;
13692 }
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13696   (eval $ac_compile) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } &&
13700          { ac_try='test -s conftest.$ac_objext'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; }; then
13706   ac_hi=$ac_mid
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 ac_lo=`expr '(' $ac_mid ')' + 1`
13712 fi
13713 rm -f conftest.$ac_objext conftest.$ac_ext
13714 done
13715 case $ac_lo in
13716 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13717 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13718 See \`config.log' for more details." >&5
13719 echo "$as_me: error: cannot compute sizeof (int *), 77
13720 See \`config.log' for more details." >&2;}
13721    { (exit 1); exit 1; }; } ;;
13722 esac
13723 else
13724   if test "$cross_compiling" = yes; then
13725   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13726 See \`config.log' for more details." >&5
13727 echo "$as_me: error: cannot run test program while cross compiling
13728 See \`config.log' for more details." >&2;}
13729    { (exit 1); exit 1; }; }
13730 else
13731   cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 /* confdefs.h.  */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h.  */
13738 $ac_includes_default
13739 long longval () { return (long) (sizeof (int *)); }
13740 unsigned long ulongval () { return (long) (sizeof (int *)); }
13741 #include <stdio.h>
13742 #include <stdlib.h>
13743 int
13744 main ()
13745 {
13746
13747   FILE *f = fopen ("conftest.val", "w");
13748   if (! f)
13749     exit (1);
13750   if (((long) (sizeof (int *))) < 0)
13751     {
13752       long i = longval ();
13753       if (i != ((long) (sizeof (int *))))
13754         exit (1);
13755       fprintf (f, "%ld\n", i);
13756     }
13757   else
13758     {
13759       unsigned long i = ulongval ();
13760       if (i != ((long) (sizeof (int *))))
13761         exit (1);
13762       fprintf (f, "%lu\n", i);
13763     }
13764   exit (ferror (f) || fclose (f) != 0);
13765
13766   ;
13767   return 0;
13768 }
13769 _ACEOF
13770 rm -f conftest$ac_exeext
13771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13772   (eval $ac_link) 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777   (eval $ac_try) 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); }; }; then
13781   ac_cv_sizeof_int_p=`cat conftest.val`
13782 else
13783   echo "$as_me: program exited with status $ac_status" >&5
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13786
13787 ( exit $ac_status )
13788 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13789 See \`config.log' for more details." >&5
13790 echo "$as_me: error: cannot compute sizeof (int *), 77
13791 See \`config.log' for more details." >&2;}
13792    { (exit 1); exit 1; }; }
13793 fi
13794 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13795 fi
13796 fi
13797 rm -f conftest.val
13798 else
13799   ac_cv_sizeof_int_p=0
13800 fi
13801 fi
13802 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13803 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13804 cat >>confdefs.h <<_ACEOF
13805 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13806 _ACEOF
13807
13808
13809
13810 # Check for sys/types.h types
13811 echo "$as_me:$LINENO: checking for u_int type" >&5
13812 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13813 if test "${ac_cv_have_u_int+set}" = set; then
13814   echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816
13817     cat >conftest.$ac_ext <<_ACEOF
13818 #line $LINENO "configure"
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824  #include <sys/types.h>
13825 int
13826 main ()
13827 {
13828  u_int a; a = 1;
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835   (eval $ac_compile) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -s conftest.$ac_objext'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845    ac_cv_have_u_int="yes"
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850  ac_cv_have_u_int="no"
13851
13852 fi
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13854
13855 fi
13856 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13857 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13858 if test "x$ac_cv_have_u_int" = "xyes" ; then
13859    cat >>confdefs.h <<\_ACEOF
13860 #define HAVE_U_INT 1
13861 _ACEOF
13862
13863    have_u_int=1
13864 fi
13865
13866 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13867 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13868 if test "${ac_cv_have_intmax_t+set}" = set; then
13869   echo $ECHO_N "(cached) $ECHO_C" >&6
13870 else
13871
13872    cat >conftest.$ac_ext <<_ACEOF
13873 #line $LINENO "configure"
13874 /* confdefs.h.  */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h.  */
13879  #include <sys/types.h>
13880 int
13881 main ()
13882 {
13883  intmax_t a; a = 1;
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890   (eval $ac_compile) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -s conftest.$ac_objext'
13895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896   (eval $ac_try) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900    ac_cv_have_intmax_t="yes"
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905
13906          cat >conftest.$ac_ext <<_ACEOF
13907 #line $LINENO "configure"
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913  #include <stdint.h>
13914 int
13915 main ()
13916 {
13917  intmax_t a; a = 1;
13918   ;
13919   return 0;
13920 }
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924   (eval $ac_compile) 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } &&
13928          { ac_try='test -s conftest.$ac_objext'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }; then
13934    ac_cv_have_intmax_t="yes"
13935 else
13936   echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939  ac_cv_have_intmax_t="no"
13940
13941 fi
13942 rm -f conftest.$ac_objext conftest.$ac_ext
13943
13944
13945 fi
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13947
13948
13949 fi
13950 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
13951 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
13952 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
13953    cat >>confdefs.h <<\_ACEOF
13954 #define HAVE_INTMAX_T 1
13955 _ACEOF
13956
13957    have_intmax_t=1
13958 fi
13959
13960
13961 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
13962 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
13963 if test "${ac_cv_have_u_intmax_t+set}" = set; then
13964   echo $ECHO_N "(cached) $ECHO_C" >&6
13965 else
13966
13967    cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974  #include <sys/types.h>
13975 int
13976 main ()
13977 {
13978  u_intmax_t a; a = 1;
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985   (eval $ac_compile) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } &&
13989          { ac_try='test -s conftest.$ac_objext'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995    ac_cv_have_u_intmax_t="yes"
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000
14001          cat >conftest.$ac_ext <<_ACEOF
14002 #line $LINENO "configure"
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008  #include <stdint.h>
14009 int
14010 main ()
14011 {
14012  u_intmax_t a; a = 1;
14013   ;
14014   return 0;
14015 }
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019   (eval $ac_compile) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); } &&
14023          { ac_try='test -s conftest.$ac_objext'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; }; then
14029    ac_cv_have_u_intmax_t="yes"
14030 else
14031   echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034  ac_cv_have_u_intmax_t="no"
14035
14036 fi
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14038
14039
14040 fi
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14042
14043 fi
14044 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14045 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14046 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14047    cat >>confdefs.h <<\_ACEOF
14048 #define HAVE_U_INTMAX_T 1
14049 _ACEOF
14050
14051    have_u_intmax_t=1
14052 fi
14053
14054
14055 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14056 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14057 if test "${ac_cv_have_intxx_t+set}" = set; then
14058   echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060
14061    cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14063 /* confdefs.h.  */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h.  */
14068  #include <sys/types.h>
14069 int
14070 main ()
14071 {
14072  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14073   ;
14074   return 0;
14075 }
14076 _ACEOF
14077 rm -f conftest.$ac_objext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14079   (eval $ac_compile) 2>&5
14080   ac_status=$?
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } &&
14083          { ac_try='test -s conftest.$ac_objext'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }; then
14089    ac_cv_have_intxx_t="yes"
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14093
14094  ac_cv_have_intxx_t="no"
14095
14096 fi
14097 rm -f conftest.$ac_objext conftest.$ac_ext
14098
14099 fi
14100 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14101 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14102 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14103    cat >>confdefs.h <<\_ACEOF
14104 #define HAVE_INTXX_T 1
14105 _ACEOF
14106
14107    have_intxx_t=1
14108 fi
14109
14110 echo "$as_me:$LINENO: checking for int64_t type" >&5
14111 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14112 if test "${ac_cv_have_int64_t+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115
14116    cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14118 /* confdefs.h.  */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h.  */
14123  #include <sys/types.h>
14124 int
14125 main ()
14126 {
14127  int64_t a; a = 1;
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134   (eval $ac_compile) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -s conftest.$ac_objext'
14139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140   (eval $ac_try) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144    ac_cv_have_int64_t="yes"
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14148
14149  ac_cv_have_int64_t="no"
14150
14151 fi
14152 rm -f conftest.$ac_objext conftest.$ac_ext
14153
14154 fi
14155 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14156 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14157 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14158    cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_INT64_T 1
14160 _ACEOF
14161
14162    have_int64_t=1
14163 fi
14164
14165 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14166 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14167 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170
14171    cat >conftest.$ac_ext <<_ACEOF
14172 #line $LINENO "configure"
14173 /* confdefs.h.  */
14174 _ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h.  */
14178  #include <sys/types.h>
14179 int
14180 main ()
14181 {
14182  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189   (eval $ac_compile) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -s conftest.$ac_objext'
14194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195   (eval $ac_try) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; }; then
14199    ac_cv_have_u_intxx_t="yes"
14200 else
14201   echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204  ac_cv_have_u_intxx_t="no"
14205
14206 fi
14207 rm -f conftest.$ac_objext conftest.$ac_ext
14208
14209 fi
14210 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14211 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14212 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14213    cat >>confdefs.h <<\_ACEOF
14214 #define HAVE_U_INTXX_T 1
14215 _ACEOF
14216
14217    have_u_intxx_t=1
14218 fi
14219
14220 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14221 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14222 if test "${ac_cv_have_u_int64_t+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225
14226    cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233  #include <sys/types.h>
14234 int
14235 main ()
14236 {
14237  u_int64_t a; a = 1;
14238   ;
14239   return 0;
14240 }
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244   (eval $ac_compile) 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } &&
14248          { ac_try='test -s conftest.$ac_objext'
14249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250   (eval $ac_try) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); }; }; then
14254    ac_cv_have_u_int64_t="yes"
14255 else
14256   echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259  ac_cv_have_u_int64_t="no"
14260
14261 fi
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14263
14264 fi
14265 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14266 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14267 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14268    cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_U_INT64_T 1
14270 _ACEOF
14271
14272    have_u_int64_t=1
14273 fi
14274
14275 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14276            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14277 then
14278    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14279 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14280    cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14282 /* confdefs.h.  */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h.  */
14287  #include <sys/bitypes.h>
14288 int
14289 main ()
14290 {
14291  int8_t a; int16_t b; int32_t c;
14292         u_int8_t e; u_int16_t f; u_int32_t g;
14293         a = b = c = e = f = g = 1;
14294   ;
14295   return 0;
14296 }
14297 _ACEOF
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300   (eval $ac_compile) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } &&
14304          { ac_try='test -s conftest.$ac_objext'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; }; then
14310    cat >>confdefs.h <<\_ACEOF
14311 #define HAVE_U_INTXX_T 1
14312 _ACEOF
14313
14314         cat >>confdefs.h <<\_ACEOF
14315 #define HAVE_INTXX_T 1
14316 _ACEOF
14317
14318         cat >>confdefs.h <<\_ACEOF
14319 #define HAVE_SYS_BITYPES_H 1
14320 _ACEOF
14321
14322         echo "$as_me:$LINENO: result: yes" >&5
14323 echo "${ECHO_T}yes" >&6
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328  echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6
14330
14331 fi
14332 rm -f conftest.$ac_objext conftest.$ac_ext
14333 fi
14334
14335 if test -z "$have_u_intxx_t" ; then
14336    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14337 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14338 if test "${ac_cv_have_uintxx_t+set}" = set; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341
14342       cat >conftest.$ac_ext <<_ACEOF
14343 #line $LINENO "configure"
14344 /* confdefs.h.  */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h.  */
14349  #include <sys/types.h>
14350 int
14351 main ()
14352 {
14353  uint8_t a; uint16_t b;
14354            uint32_t c; a = b = c = 1;
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361   (eval $ac_compile) 2>&5
14362   ac_status=$?
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); } &&
14365          { ac_try='test -s conftest.$ac_objext'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371    ac_cv_have_uintxx_t="yes"
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376  ac_cv_have_uintxx_t="no"
14377
14378 fi
14379 rm -f conftest.$ac_objext conftest.$ac_ext
14380
14381 fi
14382 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14383 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14384    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14385       cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_UINTXX_T 1
14387 _ACEOF
14388
14389    fi
14390 fi
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406 for ac_func in \
14407         fork \
14408         getcwd \
14409         gethostname \
14410         getpid \
14411         gettimeofday \
14412         setpgid \
14413         setpgrp \
14414         setsid \
14415         signal \
14416         strerror \
14417         strncmp \
14418         strncpy \
14419         vfprintf \
14420
14421 do
14422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14423 echo "$as_me:$LINENO: checking for $ac_func" >&5
14424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14425 if eval "test \"\${$as_ac_var+set}\" = set"; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428   cat >conftest.$ac_ext <<_ACEOF
14429 #line $LINENO "configure"
14430 /* confdefs.h.  */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h.  */
14435 /* System header to define __stub macros and hopefully few prototypes,
14436     which can conflict with char $ac_func (); below.
14437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14438     <limits.h> exists even on freestanding compilers.  */
14439 #ifdef __STDC__
14440 # include <limits.h>
14441 #else
14442 # include <assert.h>
14443 #endif
14444 /* Override any gcc2 internal prototype to avoid an error.  */
14445 #ifdef __cplusplus
14446 extern "C"
14447 {
14448 #endif
14449 /* We use char because int might match the return type of a gcc2
14450    builtin and then its argument prototype would still apply.  */
14451 char $ac_func ();
14452 /* The GNU C library defines this for functions which it implements
14453     to always fail with ENOSYS.  Some functions are actually named
14454     something starting with __ and the normal name is an alias.  */
14455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14456 choke me
14457 #else
14458 char (*f) () = $ac_func;
14459 #endif
14460 #ifdef __cplusplus
14461 }
14462 #endif
14463
14464 int
14465 main ()
14466 {
14467 return f != $ac_func;
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474   (eval $ac_link) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); } &&
14478          { ac_try='test -s conftest$ac_exeext'
14479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480   (eval $ac_try) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; }; then
14484   eval "$as_ac_var=yes"
14485 else
14486   echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489 eval "$as_ac_var=no"
14490 fi
14491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14492 fi
14493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14495 if test `eval echo '${'$as_ac_var'}'` = yes; then
14496   cat >>confdefs.h <<_ACEOF
14497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14498 _ACEOF
14499
14500 else
14501   echo 'configure: cannot find needed function.'; exit 1
14502
14503 fi
14504 done
14505
14506
14507
14508 for ac_func in fchdir
14509 do
14510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511 echo "$as_me:$LINENO: checking for $ac_func" >&5
14512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14513 if eval "test \"\${$as_ac_var+set}\" = set"; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 /* System header to define __stub macros and hopefully few prototypes,
14524     which can conflict with char $ac_func (); below.
14525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14526     <limits.h> exists even on freestanding compilers.  */
14527 #ifdef __STDC__
14528 # include <limits.h>
14529 #else
14530 # include <assert.h>
14531 #endif
14532 /* Override any gcc2 internal prototype to avoid an error.  */
14533 #ifdef __cplusplus
14534 extern "C"
14535 {
14536 #endif
14537 /* We use char because int might match the return type of a gcc2
14538    builtin and then its argument prototype would still apply.  */
14539 char $ac_func ();
14540 /* The GNU C library defines this for functions which it implements
14541     to always fail with ENOSYS.  Some functions are actually named
14542     something starting with __ and the normal name is an alias.  */
14543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14544 choke me
14545 #else
14546 char (*f) () = $ac_func;
14547 #endif
14548 #ifdef __cplusplus
14549 }
14550 #endif
14551
14552 int
14553 main ()
14554 {
14555 return f != $ac_func;
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14562   (eval $ac_link) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); } &&
14566          { ac_try='test -s conftest$ac_exeext'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; }; then
14572   eval "$as_ac_var=yes"
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 eval "$as_ac_var=no"
14578 fi
14579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14580 fi
14581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14583 if test `eval echo '${'$as_ac_var'}'` = yes; then
14584   cat >>confdefs.h <<_ACEOF
14585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14586 _ACEOF
14587  cat >>confdefs.h <<\_ACEOF
14588 #define HAVE_FCHDIR 1
14589 _ACEOF
14590
14591 fi
14592 done
14593
14594
14595 for ac_func in strtoll
14596 do
14597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14598 echo "$as_me:$LINENO: checking for $ac_func" >&5
14599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14600 if eval "test \"\${$as_ac_var+set}\" = set"; then
14601   echo $ECHO_N "(cached) $ECHO_C" >&6
14602 else
14603   cat >conftest.$ac_ext <<_ACEOF
14604 #line $LINENO "configure"
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610 /* System header to define __stub macros and hopefully few prototypes,
14611     which can conflict with char $ac_func (); below.
14612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14613     <limits.h> exists even on freestanding compilers.  */
14614 #ifdef __STDC__
14615 # include <limits.h>
14616 #else
14617 # include <assert.h>
14618 #endif
14619 /* Override any gcc2 internal prototype to avoid an error.  */
14620 #ifdef __cplusplus
14621 extern "C"
14622 {
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625    builtin and then its argument prototype would still apply.  */
14626 char $ac_func ();
14627 /* The GNU C library defines this for functions which it implements
14628     to always fail with ENOSYS.  Some functions are actually named
14629     something starting with __ and the normal name is an alias.  */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 char (*f) () = $ac_func;
14634 #endif
14635 #ifdef __cplusplus
14636 }
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642 return f != $ac_func;
14643   ;
14644   return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649   (eval $ac_link) 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } &&
14653          { ac_try='test -s conftest$ac_exeext'
14654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655   (eval $ac_try) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; }; then
14659   eval "$as_ac_var=yes"
14660 else
14661   echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 eval "$as_ac_var=no"
14665 fi
14666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14667 fi
14668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14670 if test `eval echo '${'$as_ac_var'}'` = yes; then
14671   cat >>confdefs.h <<_ACEOF
14672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14673 _ACEOF
14674  cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_STRTOLL 1
14676 _ACEOF
14677
14678 fi
14679 done
14680
14681
14682
14683 for ac_func in chflags
14684 do
14685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14686 echo "$as_me:$LINENO: checking for $ac_func" >&5
14687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14688 if eval "test \"\${$as_ac_var+set}\" = set"; then
14689   echo $ECHO_N "(cached) $ECHO_C" >&6
14690 else
14691   cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 /* System header to define __stub macros and hopefully few prototypes,
14699     which can conflict with char $ac_func (); below.
14700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14701     <limits.h> exists even on freestanding compilers.  */
14702 #ifdef __STDC__
14703 # include <limits.h>
14704 #else
14705 # include <assert.h>
14706 #endif
14707 /* Override any gcc2 internal prototype to avoid an error.  */
14708 #ifdef __cplusplus
14709 extern "C"
14710 {
14711 #endif
14712 /* We use char because int might match the return type of a gcc2
14713    builtin and then its argument prototype would still apply.  */
14714 char $ac_func ();
14715 /* The GNU C library defines this for functions which it implements
14716     to always fail with ENOSYS.  Some functions are actually named
14717     something starting with __ and the normal name is an alias.  */
14718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14719 choke me
14720 #else
14721 char (*f) () = $ac_func;
14722 #endif
14723 #ifdef __cplusplus
14724 }
14725 #endif
14726
14727 int
14728 main ()
14729 {
14730 return f != $ac_func;
14731   ;
14732   return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737   (eval $ac_link) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); } &&
14741          { ac_try='test -s conftest$ac_exeext'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; }; then
14747   eval "$as_ac_var=yes"
14748 else
14749   echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14751
14752 eval "$as_ac_var=no"
14753 fi
14754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14755 fi
14756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14758 if test `eval echo '${'$as_ac_var'}'` = yes; then
14759   cat >>confdefs.h <<_ACEOF
14760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14761 _ACEOF
14762
14763 fi
14764 done
14765
14766
14767
14768
14769
14770
14771 for ac_func in snprintf vsnprintf gethostid getdomainname
14772 do
14773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14774 echo "$as_me:$LINENO: checking for $ac_func" >&5
14775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14776 if eval "test \"\${$as_ac_var+set}\" = set"; then
14777   echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779   cat >conftest.$ac_ext <<_ACEOF
14780 #line $LINENO "configure"
14781 /* confdefs.h.  */
14782 _ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h.  */
14786 /* System header to define __stub macros and hopefully few prototypes,
14787     which can conflict with char $ac_func (); below.
14788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14789     <limits.h> exists even on freestanding compilers.  */
14790 #ifdef __STDC__
14791 # include <limits.h>
14792 #else
14793 # include <assert.h>
14794 #endif
14795 /* Override any gcc2 internal prototype to avoid an error.  */
14796 #ifdef __cplusplus
14797 extern "C"
14798 {
14799 #endif
14800 /* We use char because int might match the return type of a gcc2
14801    builtin and then its argument prototype would still apply.  */
14802 char $ac_func ();
14803 /* The GNU C library defines this for functions which it implements
14804     to always fail with ENOSYS.  Some functions are actually named
14805     something starting with __ and the normal name is an alias.  */
14806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14807 choke me
14808 #else
14809 char (*f) () = $ac_func;
14810 #endif
14811 #ifdef __cplusplus
14812 }
14813 #endif
14814
14815 int
14816 main ()
14817 {
14818 return f != $ac_func;
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext conftest$ac_exeext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14825   (eval $ac_link) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); } &&
14829          { ac_try='test -s conftest$ac_exeext'
14830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831   (eval $ac_try) 2>&5
14832   ac_status=$?
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); }; }; then
14835   eval "$as_ac_var=yes"
14836 else
14837   echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14839
14840 eval "$as_ac_var=no"
14841 fi
14842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14843 fi
14844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14846 if test `eval echo '${'$as_ac_var'}'` = yes; then
14847   cat >>confdefs.h <<_ACEOF
14848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14849 _ACEOF
14850
14851 fi
14852 done
14853
14854
14855
14856
14857
14858
14859 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14860 do
14861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14862 echo "$as_me:$LINENO: checking for $ac_func" >&5
14863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14864 if eval "test \"\${$as_ac_var+set}\" = set"; then
14865   echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867   cat >conftest.$ac_ext <<_ACEOF
14868 #line $LINENO "configure"
14869 /* confdefs.h.  */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h.  */
14874 /* System header to define __stub macros and hopefully few prototypes,
14875     which can conflict with char $ac_func (); below.
14876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14877     <limits.h> exists even on freestanding compilers.  */
14878 #ifdef __STDC__
14879 # include <limits.h>
14880 #else
14881 # include <assert.h>
14882 #endif
14883 /* Override any gcc2 internal prototype to avoid an error.  */
14884 #ifdef __cplusplus
14885 extern "C"
14886 {
14887 #endif
14888 /* We use char because int might match the return type of a gcc2
14889    builtin and then its argument prototype would still apply.  */
14890 char $ac_func ();
14891 /* The GNU C library defines this for functions which it implements
14892     to always fail with ENOSYS.  Some functions are actually named
14893     something starting with __ and the normal name is an alias.  */
14894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14895 choke me
14896 #else
14897 char (*f) () = $ac_func;
14898 #endif
14899 #ifdef __cplusplus
14900 }
14901 #endif
14902
14903 int
14904 main ()
14905 {
14906 return f != $ac_func;
14907   ;
14908   return 0;
14909 }
14910 _ACEOF
14911 rm -f conftest.$ac_objext conftest$ac_exeext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913   (eval $ac_link) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } &&
14917          { ac_try='test -s conftest$ac_exeext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   eval "$as_ac_var=yes"
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 eval "$as_ac_var=no"
14929 fi
14930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14931 fi
14932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14934 if test `eval echo '${'$as_ac_var'}'` = yes; then
14935   cat >>confdefs.h <<_ACEOF
14936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14937 _ACEOF
14938
14939 fi
14940 done
14941
14942
14943 # If resolver functions are not in libc check for -lnsl or -lresolv.
14944 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14945 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14946 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14947   echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949   cat >conftest.$ac_ext <<_ACEOF
14950 #line $LINENO "configure"
14951 /* confdefs.h.  */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h.  */
14956 /* System header to define __stub macros and hopefully few prototypes,
14957     which can conflict with char gethostbyname_r (); below.
14958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14959     <limits.h> exists even on freestanding compilers.  */
14960 #ifdef __STDC__
14961 # include <limits.h>
14962 #else
14963 # include <assert.h>
14964 #endif
14965 /* Override any gcc2 internal prototype to avoid an error.  */
14966 #ifdef __cplusplus
14967 extern "C"
14968 {
14969 #endif
14970 /* We use char because int might match the return type of a gcc2
14971    builtin and then its argument prototype would still apply.  */
14972 char gethostbyname_r ();
14973 /* The GNU C library defines this for functions which it implements
14974     to always fail with ENOSYS.  Some functions are actually named
14975     something starting with __ and the normal name is an alias.  */
14976 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14977 choke me
14978 #else
14979 char (*f) () = gethostbyname_r;
14980 #endif
14981 #ifdef __cplusplus
14982 }
14983 #endif
14984
14985 int
14986 main ()
14987 {
14988 return f != gethostbyname_r;
14989   ;
14990   return 0;
14991 }
14992 _ACEOF
14993 rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14995   (eval $ac_link) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); } &&
14999          { ac_try='test -s conftest$ac_exeext'
15000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001   (eval $ac_try) 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   ac_cv_func_gethostbyname_r=yes
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010 ac_cv_func_gethostbyname_r=no
15011 fi
15012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15013 fi
15014 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15015 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15016 if test $ac_cv_func_gethostbyname_r = yes; then
15017   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15018 echo "${ECHO_T}using libc's resolver" >&6
15019 else
15020
15021 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15022 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15023 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   ac_check_lib_save_LIBS=$LIBS
15027 LIBS="-lnsl  $LIBS"
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035
15036 /* Override any gcc2 internal prototype to avoid an error.  */
15037 #ifdef __cplusplus
15038 extern "C"
15039 #endif
15040 /* We use char because int might match the return type of a gcc2
15041    builtin and then its argument prototype would still apply.  */
15042 char gethostbyname_r ();
15043 int
15044 main ()
15045 {
15046 gethostbyname_r ();
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15053   (eval $ac_link) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); } &&
15057          { ac_try='test -s conftest$ac_exeext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_cv_lib_nsl_gethostbyname_r=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 ac_cv_lib_nsl_gethostbyname_r=no
15069 fi
15070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15072 fi
15073 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15074 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15075 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15076   cat >>confdefs.h <<_ACEOF
15077 #define HAVE_LIBNSL 1
15078 _ACEOF
15079
15080   LIBS="-lnsl $LIBS"
15081
15082 fi
15083
15084
15085 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15086 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15087 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15088   echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090   ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-lresolv  $LIBS"
15092 cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099
15100 /* Override any gcc2 internal prototype to avoid an error.  */
15101 #ifdef __cplusplus
15102 extern "C"
15103 #endif
15104 /* We use char because int might match the return type of a gcc2
15105    builtin and then its argument prototype would still apply.  */
15106 char gethostbyname_r ();
15107 int
15108 main ()
15109 {
15110 gethostbyname_r ();
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117   (eval $ac_link) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); } &&
15121          { ac_try='test -s conftest$ac_exeext'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; }; then
15127   ac_cv_lib_resolv_gethostbyname_r=yes
15128 else
15129   echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 ac_cv_lib_resolv_gethostbyname_r=no
15133 fi
15134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15135 LIBS=$ac_check_lib_save_LIBS
15136 fi
15137 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15138 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15139 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15140   cat >>confdefs.h <<_ACEOF
15141 #define HAVE_LIBRESOLV 1
15142 _ACEOF
15143
15144   LIBS="-lresolv $LIBS"
15145
15146 fi
15147
15148 fi
15149
15150
15151
15152 # Find where sockets are (especially for Solaris)
15153 echo "$as_me:$LINENO: checking for socket" >&5
15154 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15155 if test "${ac_cv_func_socket+set}" = set; then
15156   echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158   cat >conftest.$ac_ext <<_ACEOF
15159 #line $LINENO "configure"
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165 /* System header to define __stub macros and hopefully few prototypes,
15166     which can conflict with char socket (); below.
15167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168     <limits.h> exists even on freestanding compilers.  */
15169 #ifdef __STDC__
15170 # include <limits.h>
15171 #else
15172 # include <assert.h>
15173 #endif
15174 /* Override any gcc2 internal prototype to avoid an error.  */
15175 #ifdef __cplusplus
15176 extern "C"
15177 {
15178 #endif
15179 /* We use char because int might match the return type of a gcc2
15180    builtin and then its argument prototype would still apply.  */
15181 char socket ();
15182 /* The GNU C library defines this for functions which it implements
15183     to always fail with ENOSYS.  Some functions are actually named
15184     something starting with __ and the normal name is an alias.  */
15185 #if defined (__stub_socket) || defined (__stub___socket)
15186 choke me
15187 #else
15188 char (*f) () = socket;
15189 #endif
15190 #ifdef __cplusplus
15191 }
15192 #endif
15193
15194 int
15195 main ()
15196 {
15197 return f != socket;
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15204   (eval $ac_link) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } &&
15208          { ac_try='test -s conftest$ac_exeext'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; }; then
15214   ac_cv_func_socket=yes
15215 else
15216   echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 ac_cv_func_socket=no
15220 fi
15221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15222 fi
15223 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15224 echo "${ECHO_T}$ac_cv_func_socket" >&6
15225 if test $ac_cv_func_socket = yes; then
15226   echo "$as_me:$LINENO: result: using libc's socket" >&5
15227 echo "${ECHO_T}using libc's socket" >&6
15228 else
15229
15230 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15231 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15232 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   ac_check_lib_save_LIBS=$LIBS
15236 LIBS="-lxnet  $LIBS"
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244
15245 /* Override any gcc2 internal prototype to avoid an error.  */
15246 #ifdef __cplusplus
15247 extern "C"
15248 #endif
15249 /* We use char because int might match the return type of a gcc2
15250    builtin and then its argument prototype would still apply.  */
15251 char socket ();
15252 int
15253 main ()
15254 {
15255 socket ();
15256   ;
15257   return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262   (eval $ac_link) 2>&5
15263   ac_status=$?
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } &&
15266          { ac_try='test -s conftest$ac_exeext'
15267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268   (eval $ac_try) 2>&5
15269   ac_status=$?
15270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271   (exit $ac_status); }; }; then
15272   ac_cv_lib_xnet_socket=yes
15273 else
15274   echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15276
15277 ac_cv_lib_xnet_socket=no
15278 fi
15279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15281 fi
15282 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15283 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15284 if test $ac_cv_lib_xnet_socket = yes; then
15285   cat >>confdefs.h <<_ACEOF
15286 #define HAVE_LIBXNET 1
15287 _ACEOF
15288
15289   LIBS="-lxnet $LIBS"
15290
15291 fi
15292
15293
15294 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15295 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15296 if test "${ac_cv_lib_socket_socket+set}" = set; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   ac_check_lib_save_LIBS=$LIBS
15300 LIBS="-lsocket  $LIBS"
15301 cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15303 /* confdefs.h.  */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h.  */
15308
15309 /* Override any gcc2 internal prototype to avoid an error.  */
15310 #ifdef __cplusplus
15311 extern "C"
15312 #endif
15313 /* We use char because int might match the return type of a gcc2
15314    builtin and then its argument prototype would still apply.  */
15315 char socket ();
15316 int
15317 main ()
15318 {
15319 socket ();
15320   ;
15321   return 0;
15322 }
15323 _ACEOF
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326   (eval $ac_link) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15336   ac_cv_lib_socket_socket=yes
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341 ac_cv_lib_socket_socket=no
15342 fi
15343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15345 fi
15346 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15347 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15348 if test $ac_cv_lib_socket_socket = yes; then
15349   cat >>confdefs.h <<_ACEOF
15350 #define HAVE_LIBSOCKET 1
15351 _ACEOF
15352
15353   LIBS="-lsocket $LIBS"
15354
15355 fi
15356
15357
15358 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15359 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15360 if test "${ac_cv_lib_inet_socket+set}" = set; then
15361   echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363   ac_check_lib_save_LIBS=$LIBS
15364 LIBS="-linet  $LIBS"
15365 cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15367 /* confdefs.h.  */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h.  */
15372
15373 /* Override any gcc2 internal prototype to avoid an error.  */
15374 #ifdef __cplusplus
15375 extern "C"
15376 #endif
15377 /* We use char because int might match the return type of a gcc2
15378    builtin and then its argument prototype would still apply.  */
15379 char socket ();
15380 int
15381 main ()
15382 {
15383 socket ();
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390   (eval $ac_link) 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -s conftest$ac_exeext'
15395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396   (eval $ac_try) 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; }; then
15400   ac_cv_lib_inet_socket=yes
15401 else
15402   echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15404
15405 ac_cv_lib_inet_socket=no
15406 fi
15407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15409 fi
15410 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15411 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15412 if test $ac_cv_lib_inet_socket = yes; then
15413   cat >>confdefs.h <<_ACEOF
15414 #define HAVE_LIBINET 1
15415 _ACEOF
15416
15417   LIBS="-linet $LIBS"
15418
15419 fi
15420
15421 fi
15422
15423
15424
15425 for ac_func in inet_pton
15426 do
15427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15428 echo "$as_me:$LINENO: checking for $ac_func" >&5
15429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15430 if eval "test \"\${$as_ac_var+set}\" = set"; then
15431   echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433   cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440 /* System header to define __stub macros and hopefully few prototypes,
15441     which can conflict with char $ac_func (); below.
15442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15443     <limits.h> exists even on freestanding compilers.  */
15444 #ifdef __STDC__
15445 # include <limits.h>
15446 #else
15447 # include <assert.h>
15448 #endif
15449 /* Override any gcc2 internal prototype to avoid an error.  */
15450 #ifdef __cplusplus
15451 extern "C"
15452 {
15453 #endif
15454 /* We use char because int might match the return type of a gcc2
15455    builtin and then its argument prototype would still apply.  */
15456 char $ac_func ();
15457 /* The GNU C library defines this for functions which it implements
15458     to always fail with ENOSYS.  Some functions are actually named
15459     something starting with __ and the normal name is an alias.  */
15460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15461 choke me
15462 #else
15463 char (*f) () = $ac_func;
15464 #endif
15465 #ifdef __cplusplus
15466 }
15467 #endif
15468
15469 int
15470 main ()
15471 {
15472 return f != $ac_func;
15473   ;
15474   return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext conftest$ac_exeext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15479   (eval $ac_link) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } &&
15483          { ac_try='test -s conftest$ac_exeext'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; }; then
15489   eval "$as_ac_var=yes"
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 eval "$as_ac_var=no"
15495 fi
15496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15497 fi
15498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15500 if test `eval echo '${'$as_ac_var'}'` = yes; then
15501   cat >>confdefs.h <<_ACEOF
15502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15503 _ACEOF
15504  cat >>confdefs.h <<\_ACEOF
15505 #define HAVE_INET_PTON 1
15506 _ACEOF
15507
15508 fi
15509 done
15510
15511
15512
15513 for ac_func in strftime
15514 do
15515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15516 echo "$as_me:$LINENO: checking for $ac_func" >&5
15517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15518 if eval "test \"\${$as_ac_var+set}\" = set"; then
15519   echo $ECHO_N "(cached) $ECHO_C" >&6
15520 else
15521   cat >conftest.$ac_ext <<_ACEOF
15522 #line $LINENO "configure"
15523 /* confdefs.h.  */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h.  */
15528 /* System header to define __stub macros and hopefully few prototypes,
15529     which can conflict with char $ac_func (); below.
15530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15531     <limits.h> exists even on freestanding compilers.  */
15532 #ifdef __STDC__
15533 # include <limits.h>
15534 #else
15535 # include <assert.h>
15536 #endif
15537 /* Override any gcc2 internal prototype to avoid an error.  */
15538 #ifdef __cplusplus
15539 extern "C"
15540 {
15541 #endif
15542 /* We use char because int might match the return type of a gcc2
15543    builtin and then its argument prototype would still apply.  */
15544 char $ac_func ();
15545 /* The GNU C library defines this for functions which it implements
15546     to always fail with ENOSYS.  Some functions are actually named
15547     something starting with __ and the normal name is an alias.  */
15548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15549 choke me
15550 #else
15551 char (*f) () = $ac_func;
15552 #endif
15553 #ifdef __cplusplus
15554 }
15555 #endif
15556
15557 int
15558 main ()
15559 {
15560 return f != $ac_func;
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15567   (eval $ac_link) 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } &&
15571          { ac_try='test -s conftest$ac_exeext'
15572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573   (eval $ac_try) 2>&5
15574   ac_status=$?
15575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576   (exit $ac_status); }; }; then
15577   eval "$as_ac_var=yes"
15578 else
15579   echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15581
15582 eval "$as_ac_var=no"
15583 fi
15584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15585 fi
15586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15588 if test `eval echo '${'$as_ac_var'}'` = yes; then
15589   cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15591 _ACEOF
15592
15593 else
15594   # strftime is in -lintl on SCO UNIX.
15595 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15596 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15597 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   ac_check_lib_save_LIBS=$LIBS
15601 LIBS="-lintl  $LIBS"
15602 cat >conftest.$ac_ext <<_ACEOF
15603 #line $LINENO "configure"
15604 /* confdefs.h.  */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h.  */
15609
15610 /* Override any gcc2 internal prototype to avoid an error.  */
15611 #ifdef __cplusplus
15612 extern "C"
15613 #endif
15614 /* We use char because int might match the return type of a gcc2
15615    builtin and then its argument prototype would still apply.  */
15616 char strftime ();
15617 int
15618 main ()
15619 {
15620 strftime ();
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627   (eval $ac_link) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } &&
15631          { ac_try='test -s conftest$ac_exeext'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637   ac_cv_lib_intl_strftime=yes
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642 ac_cv_lib_intl_strftime=no
15643 fi
15644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15646 fi
15647 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15648 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15649 if test $ac_cv_lib_intl_strftime = yes; then
15650   cat >>confdefs.h <<\_ACEOF
15651 #define HAVE_STRFTIME 1
15652 _ACEOF
15653
15654 LIBS="-lintl $LIBS"
15655 fi
15656
15657 fi
15658 done
15659
15660
15661 for ac_func in vprintf
15662 do
15663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15664 echo "$as_me:$LINENO: checking for $ac_func" >&5
15665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15666 if eval "test \"\${$as_ac_var+set}\" = set"; then
15667   echo $ECHO_N "(cached) $ECHO_C" >&6
15668 else
15669   cat >conftest.$ac_ext <<_ACEOF
15670 #line $LINENO "configure"
15671 /* confdefs.h.  */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h.  */
15676 /* System header to define __stub macros and hopefully few prototypes,
15677     which can conflict with char $ac_func (); below.
15678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679     <limits.h> exists even on freestanding compilers.  */
15680 #ifdef __STDC__
15681 # include <limits.h>
15682 #else
15683 # include <assert.h>
15684 #endif
15685 /* Override any gcc2 internal prototype to avoid an error.  */
15686 #ifdef __cplusplus
15687 extern "C"
15688 {
15689 #endif
15690 /* We use char because int might match the return type of a gcc2
15691    builtin and then its argument prototype would still apply.  */
15692 char $ac_func ();
15693 /* The GNU C library defines this for functions which it implements
15694     to always fail with ENOSYS.  Some functions are actually named
15695     something starting with __ and the normal name is an alias.  */
15696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15697 choke me
15698 #else
15699 char (*f) () = $ac_func;
15700 #endif
15701 #ifdef __cplusplus
15702 }
15703 #endif
15704
15705 int
15706 main ()
15707 {
15708 return f != $ac_func;
15709   ;
15710   return 0;
15711 }
15712 _ACEOF
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715   (eval $ac_link) 2>&5
15716   ac_status=$?
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   (exit $ac_status); } &&
15719          { ac_try='test -s conftest$ac_exeext'
15720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721   (eval $ac_try) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; }; then
15725   eval "$as_ac_var=yes"
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730 eval "$as_ac_var=no"
15731 fi
15732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15733 fi
15734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15736 if test `eval echo '${'$as_ac_var'}'` = yes; then
15737   cat >>confdefs.h <<_ACEOF
15738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15739 _ACEOF
15740
15741 echo "$as_me:$LINENO: checking for _doprnt" >&5
15742 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15743 if test "${ac_cv_func__doprnt+set}" = set; then
15744   echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746   cat >conftest.$ac_ext <<_ACEOF
15747 #line $LINENO "configure"
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753 /* System header to define __stub macros and hopefully few prototypes,
15754     which can conflict with char _doprnt (); below.
15755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15756     <limits.h> exists even on freestanding compilers.  */
15757 #ifdef __STDC__
15758 # include <limits.h>
15759 #else
15760 # include <assert.h>
15761 #endif
15762 /* Override any gcc2 internal prototype to avoid an error.  */
15763 #ifdef __cplusplus
15764 extern "C"
15765 {
15766 #endif
15767 /* We use char because int might match the return type of a gcc2
15768    builtin and then its argument prototype would still apply.  */
15769 char _doprnt ();
15770 /* The GNU C library defines this for functions which it implements
15771     to always fail with ENOSYS.  Some functions are actually named
15772     something starting with __ and the normal name is an alias.  */
15773 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15774 choke me
15775 #else
15776 char (*f) () = _doprnt;
15777 #endif
15778 #ifdef __cplusplus
15779 }
15780 #endif
15781
15782 int
15783 main ()
15784 {
15785 return f != _doprnt;
15786   ;
15787   return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792   (eval $ac_link) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); } &&
15796          { ac_try='test -s conftest$ac_exeext'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; }; then
15802   ac_cv_func__doprnt=yes
15803 else
15804   echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_cv_func__doprnt=no
15808 fi
15809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15810 fi
15811 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15812 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15813 if test $ac_cv_func__doprnt = yes; then
15814
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_DOPRNT 1
15817 _ACEOF
15818
15819 fi
15820
15821 fi
15822 done
15823
15824
15825 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15826 # for constant arguments.  Useless!
15827 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15828 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15829 if test "${ac_cv_working_alloca_h+set}" = set; then
15830   echo $ECHO_N "(cached) $ECHO_C" >&6
15831 else
15832   cat >conftest.$ac_ext <<_ACEOF
15833 #line $LINENO "configure"
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839 #include <alloca.h>
15840 int
15841 main ()
15842 {
15843 char *p = (char *) alloca (2 * sizeof (int));
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15850   (eval $ac_link) 2>&5
15851   ac_status=$?
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } &&
15854          { ac_try='test -s conftest$ac_exeext'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; }; then
15860   ac_cv_working_alloca_h=yes
15861 else
15862   echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15864
15865 ac_cv_working_alloca_h=no
15866 fi
15867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15868 fi
15869 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15870 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15871 if test $ac_cv_working_alloca_h = yes; then
15872
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_ALLOCA_H 1
15875 _ACEOF
15876
15877 fi
15878
15879 echo "$as_me:$LINENO: checking for alloca" >&5
15880 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15881 if test "${ac_cv_func_alloca_works+set}" = set; then
15882   echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884   cat >conftest.$ac_ext <<_ACEOF
15885 #line $LINENO "configure"
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891 #ifdef __GNUC__
15892 # define alloca __builtin_alloca
15893 #else
15894 # ifdef _MSC_VER
15895 #  include <malloc.h>
15896 #  define alloca _alloca
15897 # else
15898 #  if HAVE_ALLOCA_H
15899 #   include <alloca.h>
15900 #  else
15901 #   ifdef _AIX
15902  #pragma alloca
15903 #   else
15904 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15905 char *alloca ();
15906 #    endif
15907 #   endif
15908 #  endif
15909 # endif
15910 #endif
15911
15912 int
15913 main ()
15914 {
15915 char *p = (char *) alloca (1);
15916   ;
15917   return 0;
15918 }
15919 _ACEOF
15920 rm -f conftest.$ac_objext conftest$ac_exeext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922   (eval $ac_link) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } &&
15926          { ac_try='test -s conftest$ac_exeext'
15927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928   (eval $ac_try) 2>&5
15929   ac_status=$?
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); }; }; then
15932   ac_cv_func_alloca_works=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937 ac_cv_func_alloca_works=no
15938 fi
15939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15940 fi
15941 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15942 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15943
15944 if test $ac_cv_func_alloca_works = yes; then
15945
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE_ALLOCA 1
15948 _ACEOF
15949
15950 else
15951   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15952 # that cause trouble.  Some versions do not even contain alloca or
15953 # contain a buggy version.  If you still want to use their alloca,
15954 # use ar to extract alloca.o from them instead of compiling alloca.c.
15955
15956 ALLOCA=alloca.$ac_objext
15957
15958 cat >>confdefs.h <<\_ACEOF
15959 #define C_ALLOCA 1
15960 _ACEOF
15961
15962
15963 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15964 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15965 if test "${ac_cv_os_cray+set}" = set; then
15966   echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968   cat >conftest.$ac_ext <<_ACEOF
15969 #line $LINENO "configure"
15970 /* confdefs.h.  */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h.  */
15975 #if defined(CRAY) && ! defined(CRAY2)
15976 webecray
15977 #else
15978 wenotbecray
15979 #endif
15980
15981 _ACEOF
15982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15983   $EGREP "webecray" >/dev/null 2>&1; then
15984   ac_cv_os_cray=yes
15985 else
15986   ac_cv_os_cray=no
15987 fi
15988 rm -f conftest*
15989
15990 fi
15991 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15992 echo "${ECHO_T}$ac_cv_os_cray" >&6
15993 if test $ac_cv_os_cray = yes; then
15994   for ac_func in _getb67 GETB67 getb67; do
15995     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996 echo "$as_me:$LINENO: checking for $ac_func" >&5
15997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15998 if eval "test \"\${$as_ac_var+set}\" = set"; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   cat >conftest.$ac_ext <<_ACEOF
16002 #line $LINENO "configure"
16003 /* confdefs.h.  */
16004 _ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h.  */
16008 /* System header to define __stub macros and hopefully few prototypes,
16009     which can conflict with char $ac_func (); below.
16010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16011     <limits.h> exists even on freestanding compilers.  */
16012 #ifdef __STDC__
16013 # include <limits.h>
16014 #else
16015 # include <assert.h>
16016 #endif
16017 /* Override any gcc2 internal prototype to avoid an error.  */
16018 #ifdef __cplusplus
16019 extern "C"
16020 {
16021 #endif
16022 /* We use char because int might match the return type of a gcc2
16023    builtin and then its argument prototype would still apply.  */
16024 char $ac_func ();
16025 /* The GNU C library defines this for functions which it implements
16026     to always fail with ENOSYS.  Some functions are actually named
16027     something starting with __ and the normal name is an alias.  */
16028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16029 choke me
16030 #else
16031 char (*f) () = $ac_func;
16032 #endif
16033 #ifdef __cplusplus
16034 }
16035 #endif
16036
16037 int
16038 main ()
16039 {
16040 return f != $ac_func;
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047   (eval $ac_link) 2>&5
16048   ac_status=$?
16049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050   (exit $ac_status); } &&
16051          { ac_try='test -s conftest$ac_exeext'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; }; then
16057   eval "$as_ac_var=yes"
16058 else
16059   echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 eval "$as_ac_var=no"
16063 fi
16064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16065 fi
16066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16068 if test `eval echo '${'$as_ac_var'}'` = yes; then
16069
16070 cat >>confdefs.h <<_ACEOF
16071 #define CRAY_STACKSEG_END $ac_func
16072 _ACEOF
16073
16074     break
16075 fi
16076
16077   done
16078 fi
16079
16080 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16081 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16082 if test "${ac_cv_c_stack_direction+set}" = set; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085   if test "$cross_compiling" = yes; then
16086   ac_cv_c_stack_direction=0
16087 else
16088   cat >conftest.$ac_ext <<_ACEOF
16089 #line $LINENO "configure"
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095 int
16096 find_stack_direction ()
16097 {
16098   static char *addr = 0;
16099   auto char dummy;
16100   if (addr == 0)
16101     {
16102       addr = &dummy;
16103       return find_stack_direction ();
16104     }
16105   else
16106     return (&dummy > addr) ? 1 : -1;
16107 }
16108
16109 int
16110 main ()
16111 {
16112   exit (find_stack_direction () < 0);
16113 }
16114 _ACEOF
16115 rm -f conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117   (eval $ac_link) 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126   ac_cv_c_stack_direction=1
16127 else
16128   echo "$as_me: program exited with status $ac_status" >&5
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132 ( exit $ac_status )
16133 ac_cv_c_stack_direction=-1
16134 fi
16135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16136 fi
16137 fi
16138 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16139 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16140
16141 cat >>confdefs.h <<_ACEOF
16142 #define STACK_DIRECTION $ac_cv_c_stack_direction
16143 _ACEOF
16144
16145
16146 fi
16147
16148 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16149 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16150 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16151 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154   ac_check_lib_save_LIBS=$LIBS
16155 LIBS="-lsun  $LIBS"
16156 cat >conftest.$ac_ext <<_ACEOF
16157 #line $LINENO "configure"
16158 /* confdefs.h.  */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h.  */
16163
16164 /* Override any gcc2 internal prototype to avoid an error.  */
16165 #ifdef __cplusplus
16166 extern "C"
16167 #endif
16168 /* We use char because int might match the return type of a gcc2
16169    builtin and then its argument prototype would still apply.  */
16170 char getmntent ();
16171 int
16172 main ()
16173 {
16174 getmntent ();
16175   ;
16176   return 0;
16177 }
16178 _ACEOF
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181   (eval $ac_link) 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); } &&
16185          { ac_try='test -s conftest$ac_exeext'
16186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187   (eval $ac_try) 2>&5
16188   ac_status=$?
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); }; }; then
16191   ac_cv_lib_sun_getmntent=yes
16192 else
16193   echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ac_cv_lib_sun_getmntent=no
16197 fi
16198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_lib_save_LIBS
16200 fi
16201 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16202 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16203 if test $ac_cv_lib_sun_getmntent = yes; then
16204   LIBS="-lsun $LIBS"
16205 else
16206   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16207 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16208 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16209   echo $ECHO_N "(cached) $ECHO_C" >&6
16210 else
16211   ac_check_lib_save_LIBS=$LIBS
16212 LIBS="-lseq  $LIBS"
16213 cat >conftest.$ac_ext <<_ACEOF
16214 #line $LINENO "configure"
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220
16221 /* Override any gcc2 internal prototype to avoid an error.  */
16222 #ifdef __cplusplus
16223 extern "C"
16224 #endif
16225 /* We use char because int might match the return type of a gcc2
16226    builtin and then its argument prototype would still apply.  */
16227 char getmntent ();
16228 int
16229 main ()
16230 {
16231 getmntent ();
16232   ;
16233   return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16238   (eval $ac_link) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); } &&
16242          { ac_try='test -s conftest$ac_exeext'
16243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244   (eval $ac_try) 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   ac_cv_lib_seq_getmntent=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253 ac_cv_lib_seq_getmntent=no
16254 fi
16255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16256 LIBS=$ac_check_lib_save_LIBS
16257 fi
16258 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16259 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16260 if test $ac_cv_lib_seq_getmntent = yes; then
16261   LIBS="-lseq $LIBS"
16262 else
16263   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16264 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16265 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16266   echo $ECHO_N "(cached) $ECHO_C" >&6
16267 else
16268   ac_check_lib_save_LIBS=$LIBS
16269 LIBS="-lgen  $LIBS"
16270 cat >conftest.$ac_ext <<_ACEOF
16271 #line $LINENO "configure"
16272 /* confdefs.h.  */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h.  */
16277
16278 /* Override any gcc2 internal prototype to avoid an error.  */
16279 #ifdef __cplusplus
16280 extern "C"
16281 #endif
16282 /* We use char because int might match the return type of a gcc2
16283    builtin and then its argument prototype would still apply.  */
16284 char getmntent ();
16285 int
16286 main ()
16287 {
16288 getmntent ();
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16295   (eval $ac_link) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); } &&
16299          { ac_try='test -s conftest$ac_exeext'
16300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301   (eval $ac_try) 2>&5
16302   ac_status=$?
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); }; }; then
16305   ac_cv_lib_gen_getmntent=yes
16306 else
16307   echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310 ac_cv_lib_gen_getmntent=no
16311 fi
16312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16313 LIBS=$ac_check_lib_save_LIBS
16314 fi
16315 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16316 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16317 if test $ac_cv_lib_gen_getmntent = yes; then
16318   LIBS="-lgen $LIBS"
16319 fi
16320
16321 fi
16322
16323 fi
16324
16325
16326 for ac_func in getmntent
16327 do
16328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16329 echo "$as_me:$LINENO: checking for $ac_func" >&5
16330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16331 if eval "test \"\${$as_ac_var+set}\" = set"; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334   cat >conftest.$ac_ext <<_ACEOF
16335 #line $LINENO "configure"
16336 /* confdefs.h.  */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h.  */
16341 /* System header to define __stub macros and hopefully few prototypes,
16342     which can conflict with char $ac_func (); below.
16343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16344     <limits.h> exists even on freestanding compilers.  */
16345 #ifdef __STDC__
16346 # include <limits.h>
16347 #else
16348 # include <assert.h>
16349 #endif
16350 /* Override any gcc2 internal prototype to avoid an error.  */
16351 #ifdef __cplusplus
16352 extern "C"
16353 {
16354 #endif
16355 /* We use char because int might match the return type of a gcc2
16356    builtin and then its argument prototype would still apply.  */
16357 char $ac_func ();
16358 /* The GNU C library defines this for functions which it implements
16359     to always fail with ENOSYS.  Some functions are actually named
16360     something starting with __ and the normal name is an alias.  */
16361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16362 choke me
16363 #else
16364 char (*f) () = $ac_func;
16365 #endif
16366 #ifdef __cplusplus
16367 }
16368 #endif
16369
16370 int
16371 main ()
16372 {
16373 return f != $ac_func;
16374   ;
16375   return 0;
16376 }
16377 _ACEOF
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16380   (eval $ac_link) 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); } &&
16384          { ac_try='test -s conftest$ac_exeext'
16385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386   (eval $ac_try) 2>&5
16387   ac_status=$?
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); }; }; then
16390   eval "$as_ac_var=yes"
16391 else
16392   echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 eval "$as_ac_var=no"
16396 fi
16397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16398 fi
16399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16401 if test `eval echo '${'$as_ac_var'}'` = yes; then
16402   cat >>confdefs.h <<_ACEOF
16403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16404 _ACEOF
16405
16406 fi
16407 done
16408
16409
16410 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16411 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16412 if test "${ac_cv_func_closedir_void+set}" = set; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   if test "$cross_compiling" = yes; then
16416   ac_cv_func_closedir_void=yes
16417 else
16418   cat >conftest.$ac_ext <<_ACEOF
16419 #line $LINENO "configure"
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 $ac_includes_default
16426 #include <$ac_header_dirent>
16427 #ifndef __cplusplus
16428 int closedir ();
16429 #endif
16430
16431 int
16432 main ()
16433 {
16434 exit (closedir (opendir (".")) != 0);
16435   ;
16436   return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441   (eval $ac_link) 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446   (eval $ac_try) 2>&5
16447   ac_status=$?
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); }; }; then
16450   ac_cv_func_closedir_void=no
16451 else
16452   echo "$as_me: program exited with status $ac_status" >&5
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16455
16456 ( exit $ac_status )
16457 ac_cv_func_closedir_void=yes
16458 fi
16459 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16460 fi
16461 fi
16462 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16463 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16464 if test $ac_cv_func_closedir_void = yes; then
16465
16466 cat >>confdefs.h <<\_ACEOF
16467 #define CLOSEDIR_VOID 1
16468 _ACEOF
16469
16470 fi
16471
16472 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16473 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16474 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   if test "$cross_compiling" = yes; then
16478   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16479 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16480    { (exit 1); exit 1; }; }
16481 else
16482   cat >conftest.$ac_ext <<_ACEOF
16483 #line $LINENO "configure"
16484 /* confdefs.h.  */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h.  */
16489 #if HAVE_UNISTD_H
16490 # include <unistd.h>
16491 #endif
16492
16493 int
16494 main ()
16495 {
16496 /* If this system has a BSD-style setpgrp which takes arguments,
16497   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16498   exit successfully. */
16499   exit (setpgrp (1,1) == -1 ? 0 : 1);
16500   ;
16501   return 0;
16502 }
16503 _ACEOF
16504 rm -f conftest$ac_exeext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506   (eval $ac_link) 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
16515   ac_cv_func_setpgrp_void=no
16516 else
16517   echo "$as_me: program exited with status $ac_status" >&5
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ( exit $ac_status )
16522 ac_cv_func_setpgrp_void=yes
16523 fi
16524 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16525 fi
16526 fi
16527 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16528 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16529 if test $ac_cv_func_setpgrp_void = yes; then
16530
16531 cat >>confdefs.h <<\_ACEOF
16532 #define SETPGRP_VOID 1
16533 _ACEOF
16534
16535 fi
16536                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16537 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16538 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16539   echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541   # Some versions of Solaris, SCO, and the GNU C Library
16542    # have a broken or incompatible fnmatch.
16543    # So we run a test program.  If we are cross-compiling, take no chance.
16544    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16545    if test "$cross_compiling" = yes; then
16546   ac_cv_func_fnmatch_works=cross
16547 else
16548   cat >conftest.$ac_ext <<_ACEOF
16549 #line $LINENO "configure"
16550 /* confdefs.h.  */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h.  */
16555 #include <fnmatch.h>
16556 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16557 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16558
16559 int
16560 main ()
16561 {
16562 exit
16563            (!(y ("a*", "abc", 0)
16564               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16565               && y ("a\\\\bc", "abc", 0)
16566               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16567               && y ("*x", ".x", 0)
16568               && n ("*x", ".x", FNM_PERIOD)
16569               && 1));
16570   ;
16571   return 0;
16572 }
16573 _ACEOF
16574 rm -f conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576   (eval $ac_link) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; }; then
16585   ac_cv_func_fnmatch_works=yes
16586 else
16587   echo "$as_me: program exited with status $ac_status" >&5
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 ( exit $ac_status )
16592 ac_cv_func_fnmatch_works=no
16593 fi
16594 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16595 fi
16596 fi
16597 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16598 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16599 if test $ac_cv_func_fnmatch_works = yes; then
16600
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_FNMATCH 1
16603 _ACEOF
16604
16605 fi
16606
16607
16608
16609
16610
16611 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16612 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16613 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16614   echo $ECHO_N "(cached) $ECHO_C" >&6
16615 else
16616   ac_check_lib_save_LIBS=$LIBS
16617 LIBS="-lxpg4  $LIBS"
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625
16626 /* Override any gcc2 internal prototype to avoid an error.  */
16627 #ifdef __cplusplus
16628 extern "C"
16629 #endif
16630 /* We use char because int might match the return type of a gcc2
16631    builtin and then its argument prototype would still apply.  */
16632 char setlocale ();
16633 int
16634 main ()
16635 {
16636 setlocale ();
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643   (eval $ac_link) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -s conftest$ac_exeext'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   ac_cv_lib_xpg4_setlocale=yes
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_cv_lib_xpg4_setlocale=no
16659 fi
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16662 fi
16663 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16664 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16665 if test $ac_cv_lib_xpg4_setlocale = yes; then
16666   LIBS="$LIBS -lxpg4"
16667 fi
16668
16669
16670
16671
16672 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16673 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16674 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   ac_check_lib_save_LIBS=$LIBS
16678 LIBS="-lsun  $LIBS"
16679 cat >conftest.$ac_ext <<_ACEOF
16680 #line $LINENO "configure"
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686
16687 /* Override any gcc2 internal prototype to avoid an error.  */
16688 #ifdef __cplusplus
16689 extern "C"
16690 #endif
16691 /* We use char because int might match the return type of a gcc2
16692    builtin and then its argument prototype would still apply.  */
16693 char getpwnam ();
16694 int
16695 main ()
16696 {
16697 getpwnam ();
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704   (eval $ac_link) 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } &&
16708          { ac_try='test -s conftest$ac_exeext'
16709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710   (eval $ac_try) 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; }; then
16714   ac_cv_lib_sun_getpwnam=yes
16715 else
16716   echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16718
16719 ac_cv_lib_sun_getpwnam=no
16720 fi
16721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16723 fi
16724 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16725 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16726 if test $ac_cv_lib_sun_getpwnam = yes; then
16727   cat >>confdefs.h <<_ACEOF
16728 #define HAVE_LIBSUN 1
16729 _ACEOF
16730
16731   LIBS="-lsun $LIBS"
16732
16733 fi
16734
16735
16736
16737 for ac_header in zlib.h
16738 do
16739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16741   echo "$as_me:$LINENO: checking for $ac_header" >&5
16742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 fi
16746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16748 else
16749   # Is the header compilable?
16750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 $ac_includes_default
16760 #include <$ac_header>
16761 _ACEOF
16762 rm -f conftest.$ac_objext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764   (eval $ac_compile) 2>&5
16765   ac_status=$?
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); } &&
16768          { ac_try='test -s conftest.$ac_objext'
16769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770   (eval $ac_try) 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; }; then
16774   ac_header_compiler=yes
16775 else
16776   echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 ac_header_compiler=no
16780 fi
16781 rm -f conftest.$ac_objext conftest.$ac_ext
16782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16783 echo "${ECHO_T}$ac_header_compiler" >&6
16784
16785 # Is the header present?
16786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16788 cat >conftest.$ac_ext <<_ACEOF
16789 #line $LINENO "configure"
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 #include <$ac_header>
16796 _ACEOF
16797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } >/dev/null; then
16805   if test -s conftest.err; then
16806     ac_cpp_err=$ac_c_preproc_warn_flag
16807   else
16808     ac_cpp_err=
16809   fi
16810 else
16811   ac_cpp_err=yes
16812 fi
16813 if test -z "$ac_cpp_err"; then
16814   ac_header_preproc=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819   ac_header_preproc=no
16820 fi
16821 rm -f conftest.err conftest.$ac_ext
16822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16823 echo "${ECHO_T}$ac_header_preproc" >&6
16824
16825 # So?  What about this header?
16826 case $ac_header_compiler:$ac_header_preproc in
16827   yes:no )
16828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16832     (
16833       cat <<\_ASBOX
16834 ## ------------------------------------ ##
16835 ## Report this to bug-autoconf@gnu.org. ##
16836 ## ------------------------------------ ##
16837 _ASBOX
16838     ) |
16839       sed "s/^/$as_me: WARNING:     /" >&2
16840     ;;
16841   no:yes )
16842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16844     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16848     (
16849       cat <<\_ASBOX
16850 ## ------------------------------------ ##
16851 ## Report this to bug-autoconf@gnu.org. ##
16852 ## ------------------------------------ ##
16853 _ASBOX
16854     ) |
16855       sed "s/^/$as_me: WARNING:     /" >&2
16856     ;;
16857 esac
16858 echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 else
16863   eval "$as_ac_Header=$ac_header_preproc"
16864 fi
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16867
16868 fi
16869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16870   cat >>confdefs.h <<_ACEOF
16871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16872 _ACEOF
16873
16874 fi
16875
16876 done
16877
16878 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16879 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16880 if test "${ac_cv_lib_z_deflate+set}" = set; then
16881   echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883   ac_check_lib_save_LIBS=$LIBS
16884 LIBS="-lz  $LIBS"
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892
16893 /* Override any gcc2 internal prototype to avoid an error.  */
16894 #ifdef __cplusplus
16895 extern "C"
16896 #endif
16897 /* We use char because int might match the return type of a gcc2
16898    builtin and then its argument prototype would still apply.  */
16899 char deflate ();
16900 int
16901 main ()
16902 {
16903 deflate ();
16904   ;
16905   return 0;
16906 }
16907 _ACEOF
16908 rm -f conftest.$ac_objext conftest$ac_exeext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910   (eval $ac_link) 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916   (eval $ac_try) 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; }; then
16920   ac_cv_lib_z_deflate=yes
16921 else
16922   echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 ac_cv_lib_z_deflate=no
16926 fi
16927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16929 fi
16930 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
16931 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
16932 if test $ac_cv_lib_z_deflate = yes; then
16933   FDLIBS="-lz"
16934 fi
16935
16936 have_zlib=no
16937 if test x$FDLIBS = x-lz; then
16938   cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_LIBZ 1
16940 _ACEOF
16941
16942   have_zlib=yes
16943 fi
16944
16945 PTHREAD_LIB=""
16946 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16947 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
16948 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951   ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-lpthread  $LIBS"
16953 cat >conftest.$ac_ext <<_ACEOF
16954 #line $LINENO "configure"
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960
16961 /* Override any gcc2 internal prototype to avoid an error.  */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 /* We use char because int might match the return type of a gcc2
16966    builtin and then its argument prototype would still apply.  */
16967 char pthread_create ();
16968 int
16969 main ()
16970 {
16971 pthread_create ();
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978   (eval $ac_link) 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } &&
16982          { ac_try='test -s conftest$ac_exeext'
16983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984   (eval $ac_try) 2>&5
16985   ac_status=$?
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); }; }; then
16988   ac_cv_lib_pthread_pthread_create=yes
16989 else
16990   echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16992
16993 ac_cv_lib_pthread_pthread_create=no
16994 fi
16995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16996 LIBS=$ac_check_lib_save_LIBS
16997 fi
16998 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16999 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17000 if test $ac_cv_lib_pthread_pthread_create = yes; then
17001   PTHREAD_LIB="-lpthread"
17002 else
17003   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17004 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17005 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17006   echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008   ac_check_lib_save_LIBS=$LIBS
17009 LIBS="-lpthreads  $LIBS"
17010 cat >conftest.$ac_ext <<_ACEOF
17011 #line $LINENO "configure"
17012 /* confdefs.h.  */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h.  */
17017
17018 /* Override any gcc2 internal prototype to avoid an error.  */
17019 #ifdef __cplusplus
17020 extern "C"
17021 #endif
17022 /* We use char because int might match the return type of a gcc2
17023    builtin and then its argument prototype would still apply.  */
17024 char pthread_create ();
17025 int
17026 main ()
17027 {
17028 pthread_create ();
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035   (eval $ac_link) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } &&
17039          { ac_try='test -s conftest$ac_exeext'
17040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041   (eval $ac_try) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   ac_cv_lib_pthreads_pthread_create=yes
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 ac_cv_lib_pthreads_pthread_create=no
17051 fi
17052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17054 fi
17055 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17056 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17057 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17058   PTHREAD_LIB="-lpthreads"
17059 else
17060   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17061 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17062 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17063   echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065   ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-lc_r  $LIBS"
17067 cat >conftest.$ac_ext <<_ACEOF
17068 #line $LINENO "configure"
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074
17075 /* Override any gcc2 internal prototype to avoid an error.  */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 /* We use char because int might match the return type of a gcc2
17080    builtin and then its argument prototype would still apply.  */
17081 char pthread_create ();
17082 int
17083 main ()
17084 {
17085 pthread_create ();
17086   ;
17087   return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092   (eval $ac_link) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); } &&
17096          { ac_try='test -s conftest$ac_exeext'
17097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098   (eval $ac_try) 2>&5
17099   ac_status=$?
17100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); }; }; then
17102   ac_cv_lib_c_r_pthread_create=yes
17103 else
17104   echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17106
17107 ac_cv_lib_c_r_pthread_create=no
17108 fi
17109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17110 LIBS=$ac_check_lib_save_LIBS
17111 fi
17112 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17113 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17114 if test $ac_cv_lib_c_r_pthread_create = yes; then
17115   PTHREAD_LIB="-lc_r"
17116 else
17117   echo "$as_me:$LINENO: checking for pthread_create" >&5
17118 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17119 if test "${ac_cv_func_pthread_create+set}" = set; then
17120   echo $ECHO_N "(cached) $ECHO_C" >&6
17121 else
17122   cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17124 /* confdefs.h.  */
17125 _ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h.  */
17129 /* System header to define __stub macros and hopefully few prototypes,
17130     which can conflict with char pthread_create (); below.
17131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17132     <limits.h> exists even on freestanding compilers.  */
17133 #ifdef __STDC__
17134 # include <limits.h>
17135 #else
17136 # include <assert.h>
17137 #endif
17138 /* Override any gcc2 internal prototype to avoid an error.  */
17139 #ifdef __cplusplus
17140 extern "C"
17141 {
17142 #endif
17143 /* We use char because int might match the return type of a gcc2
17144    builtin and then its argument prototype would still apply.  */
17145 char pthread_create ();
17146 /* The GNU C library defines this for functions which it implements
17147     to always fail with ENOSYS.  Some functions are actually named
17148     something starting with __ and the normal name is an alias.  */
17149 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17150 choke me
17151 #else
17152 char (*f) () = pthread_create;
17153 #endif
17154 #ifdef __cplusplus
17155 }
17156 #endif
17157
17158 int
17159 main ()
17160 {
17161 return f != pthread_create;
17162   ;
17163   return 0;
17164 }
17165 _ACEOF
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17168   (eval $ac_link) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } &&
17172          { ac_try='test -s conftest$ac_exeext'
17173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174   (eval $ac_try) 2>&5
17175   ac_status=$?
17176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177   (exit $ac_status); }; }; then
17178   ac_cv_func_pthread_create=yes
17179 else
17180   echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 ac_cv_func_pthread_create=no
17184 fi
17185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17186 fi
17187 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17188 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17189
17190
17191 fi
17192
17193
17194 fi
17195
17196
17197 fi
17198
17199
17200
17201 cat >>confdefs.h <<\_ACEOF
17202 #define FDLIBS 1
17203 _ACEOF
17204
17205
17206
17207 CFLAGS=${CFLAGS--O}
17208 LDFLAGS=${LDFLAGS--O}
17209 DB_LIBS="${SQL_LFLAGS}"
17210
17211 CPPFLAGS="$CPPFLAGS"
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226 OBJLIST=
17227
17228
17229 lld="lld"
17230 llu="llu"
17231
17232 WCFLAGS=
17233 WLDFLAGS=
17234
17235 #
17236 # Finally we set appropriate distribution specific
17237 #  variables and defaults
17238 #
17239 # PFILES are platform specific files
17240 PFILES="platforms/Makefile"
17241 PSCMD="ps -e"
17242 WIN32=
17243 hostname=`uname -n`
17244 case "$DISTNAME" in
17245 aix)
17246         DISTVER=`uname -r`
17247         PSCMD="ps -e -o pid,comm"
17248         PFILES="${PFILES} \
17249            platforms/aix/Makefile"
17250         TAPEDRIVE="/dev/rmt0.1"
17251   ;;
17252 alpha)
17253         DISTVER=`uname -r`
17254         PTHREAD_LIB="-lpthread -lexc"
17255         if test "${CC}" = "gcc" ; then
17256            lld="lld"
17257            llu="llu"
17258         else
17259            lld="ld"
17260            llu="lu"
17261         fi
17262         TAPEDRIVE="/dev/nrmt0"
17263   ;;
17264 bsdi)
17265         DISTVER=`uname -a |awk '{print $3}'`
17266         TAPEDRIVE="/dev/nrmt0"
17267         PTHREAD_LIB="-pthread"
17268         CFLAGS="${CFLAGS} -pthread"
17269         PSCMD="ps -x -o pid,command"
17270         lld="qd"
17271         llu="qu"
17272         PFILES="${PFILES} \
17273             platforms/bsdi/Makefile \
17274             platforms/bsdi/bacula-fd \
17275             platforms/bsdi/bacula-sd \
17276             platforms/bsdi/bacula-dir"
17277         hostname=`hostname -s`
17278         largefile_support="yes"
17279   ;;
17280 cygwin)
17281         DISTVER=`uname -a |awk '{print $3}'`
17282         TAPEDRIVE="/dev/nrst0"
17283         WIN32=win32
17284         WCFLAGS="-mwindows"
17285         WLDFLAGS="-mwindows"
17286   ;;
17287 darwin)
17288         DISTVER=`uname -r`
17289         TAPEDRIVE="/dev/nst0"
17290         PSCMD="ps -e -o pid,command"
17291         hostname=`hostname -s`
17292         PFILES="${PFILES} \
17293            platforms/darwin/Makefile"
17294   ;;
17295 debian)
17296         DISTVER=`cat /etc/debian_version`
17297         TAPEDRIVE="/dev/nrst0"
17298         PSCMD="ps -e -o pid,command"
17299         hostname=`hostname -s`
17300   ;;
17301 freebsd)
17302         DISTVER=`uname -a |awk '{print $3}'`
17303         VER=`echo $DISTVER | cut -c 1`
17304         if test x$VER = x4 ; then
17305            PTHREAD_LIB="-pthread"
17306            CFLAGS="${CFLAGS} -pthread"
17307         fi
17308         lld="qd"
17309         llu="qu"
17310         TAPEDRIVE="/dev/nrsa0"
17311         PSCMD="ps -x -o pid,command"
17312         PFILES="${PFILES} \
17313             platforms/freebsd/Makefile \
17314             platforms/freebsd/bacula-fd \
17315             platforms/freebsd/bacula-sd \
17316             platforms/freebsd/bacula-dir"
17317         hostname=`hostname -s`
17318         largefile_support="yes"
17319   ;;
17320 hpux)
17321         DISTVER=`uname -r`
17322         TAPEDRIVE="/dev/rmt/0hnb"
17323   ;;
17324 irix)
17325         DISTVER=`uname -r`
17326         TAPEDRIVE="/dev/rmt/0cbn"
17327         PSCMD="ps -e -o pid,comm"
17328         PFILES="${PFILES} \
17329             platforms/irix/Makefile \
17330             platforms/irix/bacula-fd \
17331             platforms/irix/bacula-sd \
17332             platforms/irix/bacula-dir"
17333   ;;
17334 netbsd)
17335         DISTVER=`uname -a |awk '{print $3}'`
17336         lld="qd"
17337         llu="qu"
17338         TAPEDRIVE="/dev/nrst0"
17339         PSCMD="ps -a -o pid,command"
17340         PTHREAD_LIB="-pthread"
17341         CFLAGS="${CFLAGS} -pthread"
17342   ;;
17343 openbsd)
17344         DISTVER=`uname -a |awk '{print $3}'`
17345         lld="qd"
17346         llu="qu"
17347         TAPEDRIVE="/dev/nrst0"
17348         PSCMD="ps -a -o pid,command"
17349         PTHREAD_LIB="-pthread"
17350         CFLAGS="${CFLAGS} -pthread"
17351         PFILES="${PFILES} \
17352             platforms/openbsd/Makefile \
17353             platforms/openbsd/bacula-fd \
17354             platforms/openbsd/bacula-sd \
17355             platforms/openbsd/bacula-dir"
17356   ;;
17357 redhat)
17358         DISTVER=`cat /etc/redhat-release | grep release |\
17359            cut -f 5 -d ' '`
17360         TAPEDRIVE="/dev/nst0"
17361         PSCMD="ps -e -o pid,command"
17362         PFILES="${PFILES} \
17363             platforms/redhat/Makefile \
17364             platforms/redhat/bacula-fd \
17365             platforms/redhat/bacula-sd \
17366             platforms/redhat/bacula-dir \
17367             platforms/redhat/bacula.spec \
17368             "
17369         hostname=`hostname -s`
17370   ;;
17371 mandrake)
17372         DISTVER=`cat /etc/mandrake-release | grep release |\
17373            cut -f 5 -d ' '`
17374         TAPEDRIVE="/dev/nst0"
17375         PSCMD="ps -e -o pid,command"
17376         PFILES="${PFILES} \
17377             platforms/mandrake/Makefile \
17378             platforms/mandrake/bacula-fd \
17379             platforms/mandrake/bacula-sd \
17380             platforms/mandrake/bacula-dir \
17381             platforms/mandrake/bacula.spec \
17382             "
17383         hostname=`hostname -s`
17384   ;;
17385 gentoo)
17386         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17387         TAPEDRIVE="/dev/nst0"
17388         PSCMD="ps -e -o pid,command"
17389         PFILES="${PFILES} \
17390             platforms/gentoo/Makefile \
17391             platforms/gentoo/bacula-fd \
17392             platforms/gentoo/bacula-sd \
17393             platforms/gentoo/bacula-dir"
17394         hostname=`hostname -s`
17395   ;;
17396
17397 slackware)
17398         DISTVER=`cat /etc/slackware-version`
17399         TAPEDRIVE="/dev/nst0"
17400         PSCMD="ps -e -o pid,command"
17401         hostname=`hostname -s`
17402   ;;
17403 solaris)
17404         DISTVER=`uname -r`
17405         TAPEDRIVE="/dev/rmt/0cbn"
17406         PSCMD="ps -e -o pid,comm"
17407         PFILES="${PFILES} \
17408             platforms/solaris/Makefile \
17409             platforms/solaris/bacula-fd \
17410             platforms/solaris/bacula-sd \
17411             platforms/solaris/bacula-dir"
17412         if test x$DISTVER = x5.6 ; then
17413             cat >>confdefs.h <<\_ACEOF
17414 #define HAVE_OLD_SOCKOPT 1
17415 _ACEOF
17416
17417         fi
17418   ;;
17419 suse)
17420         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17421             cut -f 3 -d ' '`
17422         TAPEDRIVE="/dev/nst0"
17423         PSCMD="ps -e -o pid,command"
17424         hostname=`hostname -s`
17425   ;;
17426 suse5)
17427         DISTNAME=suse
17428         DISTVER=5.x
17429         TAPEDRIVE="/dev/nst0"
17430         PSCMD="ps -e -o pid,command"
17431         hostname=`hostname -s`
17432   ;;
17433 unknown)
17434         DISTVER=unknown
17435         TAPEDRIVE="/dev/nst0"
17436   ;;
17437 *)
17438   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17439   ;;
17440 esac
17441
17442
17443
17444 LIBS="$PTHREAD_LIB $LIBS"
17445
17446 cat >>confdefs.h <<_ACEOF
17447 #define lld "$lld"
17448 _ACEOF
17449
17450 cat >>confdefs.h <<_ACEOF
17451 #define llu "$llu"
17452 _ACEOF
17453
17454
17455
17456
17457
17458
17459
17460 MCOMMON=./autoconf/Make.common
17461
17462
17463 if test "x${subsysdir}" = "x${sbindir}" ; then
17464    echo " "
17465    echo " "
17466    echo "You have set both --sbindir and --with-subsys-dir"
17467    echo "  equal to: ${subsysdir} "
17468    echo "This is not permitted. Please reconfigure."
17469    echo " "
17470    echo "Aborting configuration ..."
17471    echo " "
17472    echo " "
17473    exit 1
17474 fi
17475
17476                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/console scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/console.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/tconsole/Makefile 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/alter_mysql_tables src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/alter_sqlite_tables src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17477           ac_config_commands="$ac_config_commands default"
17478 cat >confcache <<\_ACEOF
17479 # This file is a shell script that caches the results of configure
17480 # tests run on this system so they can be shared between configure
17481 # scripts and configure runs, see configure's option --config-cache.
17482 # It is not useful on other systems.  If it contains results you don't
17483 # want to keep, you may remove or edit it.
17484 #
17485 # config.status only pays attention to the cache file if you give it
17486 # the --recheck option to rerun configure.
17487 #
17488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17490 # following values.
17491
17492 _ACEOF
17493
17494 # The following way of writing the cache mishandles newlines in values,
17495 # but we know of no workaround that is simple, portable, and efficient.
17496 # So, don't put newlines in cache variables' values.
17497 # Ultrix sh set writes to stderr and can't be redirected directly,
17498 # and sets the high bit in the cache file unless we assign to the vars.
17499 {
17500   (set) 2>&1 |
17501     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17502     *ac_space=\ *)
17503       # `set' does not quote correctly, so add quotes (double-quote
17504       # substitution turns \\\\ into \\, and sed turns \\ into \).
17505       sed -n \
17506         "s/'/'\\\\''/g;
17507           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17508       ;;
17509     *)
17510       # `set' quotes correctly as required by POSIX, so do not add quotes.
17511       sed -n \
17512         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17513       ;;
17514     esac;
17515 } |
17516   sed '
17517      t clear
17518      : clear
17519      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17520      t end
17521      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17522      : end' >>confcache
17523 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17524   if test -w $cache_file; then
17525     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17526     cat confcache >$cache_file
17527   else
17528     echo "not updating unwritable cache $cache_file"
17529   fi
17530 fi
17531 rm -f confcache
17532
17533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17534 # Let make expand exec_prefix.
17535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17536
17537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17539 # trailing colons and then remove the whole line if VPATH becomes empty
17540 # (actually we leave an empty line to preserve line numbers).
17541 if test "x$srcdir" = x.; then
17542   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17543 s/:*\$(srcdir):*/:/;
17544 s/:*\${srcdir}:*/:/;
17545 s/:*@srcdir@:*/:/;
17546 s/^\([^=]*=[    ]*\):*/\1/;
17547 s/:*$//;
17548 s/^[^=]*=[      ]*$//;
17549 }'
17550 fi
17551
17552 DEFS=-DHAVE_CONFIG_H
17553
17554 ac_libobjs=
17555 ac_ltlibobjs=
17556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17557   # 1. Remove the extension, and $U if already installed.
17558   ac_i=`echo "$ac_i" |
17559          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17560   # 2. Add them.
17561   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17562   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17563 done
17564 LIBOBJS=$ac_libobjs
17565
17566 LTLIBOBJS=$ac_ltlibobjs
17567
17568
17569
17570 : ${CONFIG_STATUS=./config.status}
17571 ac_clean_files_save=$ac_clean_files
17572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17573 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17574 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17575 cat >$CONFIG_STATUS <<_ACEOF
17576 #! $SHELL
17577 # Generated by $as_me.
17578 # Run this file to recreate the current configuration.
17579 # Compiler output produced by configure, useful for debugging
17580 # configure, is in config.log if it exists.
17581
17582 debug=false
17583 ac_cs_recheck=false
17584 ac_cs_silent=false
17585 SHELL=\${CONFIG_SHELL-$SHELL}
17586 _ACEOF
17587
17588 cat >>$CONFIG_STATUS <<\_ACEOF
17589 ## --------------------- ##
17590 ## M4sh Initialization.  ##
17591 ## --------------------- ##
17592
17593 # Be Bourne compatible
17594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17595   emulate sh
17596   NULLCMD=:
17597   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17598   # is contrary to our usage.  Disable this feature.
17599   alias -g '${1+"$@"}'='"$@"'
17600 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17601   set -o posix
17602 fi
17603
17604 # Support unset when possible.
17605 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17606   as_unset=unset
17607 else
17608   as_unset=false
17609 fi
17610
17611
17612 # Work around bugs in pre-3.0 UWIN ksh.
17613 $as_unset ENV MAIL MAILPATH
17614 PS1='$ '
17615 PS2='> '
17616 PS4='+ '
17617
17618 # NLS nuisances.
17619 for as_var in \
17620   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17621   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17622   LC_TELEPHONE LC_TIME
17623 do
17624   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17625     eval $as_var=C; export $as_var
17626   else
17627     $as_unset $as_var
17628   fi
17629 done
17630
17631 # Required to use basename.
17632 if expr a : '\(a\)' >/dev/null 2>&1; then
17633   as_expr=expr
17634 else
17635   as_expr=false
17636 fi
17637
17638 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17639   as_basename=basename
17640 else
17641   as_basename=false
17642 fi
17643
17644
17645 # Name of the executable.
17646 as_me=`$as_basename "$0" ||
17647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17648          X"$0" : 'X\(//\)$' \| \
17649          X"$0" : 'X\(/\)$' \| \
17650          .     : '\(.\)' 2>/dev/null ||
17651 echo X/"$0" |
17652     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17653           /^X\/\(\/\/\)$/{ s//\1/; q; }
17654           /^X\/\(\/\).*/{ s//\1/; q; }
17655           s/.*/./; q'`
17656
17657
17658 # PATH needs CR, and LINENO needs CR and PATH.
17659 # Avoid depending upon Character Ranges.
17660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17663 as_cr_digits='0123456789'
17664 as_cr_alnum=$as_cr_Letters$as_cr_digits
17665
17666 # The user is always right.
17667 if test "${PATH_SEPARATOR+set}" != set; then
17668   echo "#! /bin/sh" >conf$$.sh
17669   echo  "exit 0"   >>conf$$.sh
17670   chmod +x conf$$.sh
17671   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17672     PATH_SEPARATOR=';'
17673   else
17674     PATH_SEPARATOR=:
17675   fi
17676   rm -f conf$$.sh
17677 fi
17678
17679
17680   as_lineno_1=$LINENO
17681   as_lineno_2=$LINENO
17682   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17683   test "x$as_lineno_1" != "x$as_lineno_2" &&
17684   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17685   # Find who we are.  Look in the path if we contain no path at all
17686   # relative or not.
17687   case $0 in
17688     *[\\/]* ) as_myself=$0 ;;
17689     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17690 for as_dir in $PATH
17691 do
17692   IFS=$as_save_IFS
17693   test -z "$as_dir" && as_dir=.
17694   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17695 done
17696
17697        ;;
17698   esac
17699   # We did not find ourselves, most probably we were run as `sh COMMAND'
17700   # in which case we are not to be found in the path.
17701   if test "x$as_myself" = x; then
17702     as_myself=$0
17703   fi
17704   if test ! -f "$as_myself"; then
17705     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17706 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17707    { (exit 1); exit 1; }; }
17708   fi
17709   case $CONFIG_SHELL in
17710   '')
17711     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17712 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17713 do
17714   IFS=$as_save_IFS
17715   test -z "$as_dir" && as_dir=.
17716   for as_base in sh bash ksh sh5; do
17717          case $as_dir in
17718          /*)
17719            if ("$as_dir/$as_base" -c '
17720   as_lineno_1=$LINENO
17721   as_lineno_2=$LINENO
17722   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17723   test "x$as_lineno_1" != "x$as_lineno_2" &&
17724   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17725              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17726              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17727              CONFIG_SHELL=$as_dir/$as_base
17728              export CONFIG_SHELL
17729              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17730            fi;;
17731          esac
17732        done
17733 done
17734 ;;
17735   esac
17736
17737   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17738   # uniformly replaced by the line number.  The first 'sed' inserts a
17739   # line-number line before each line; the second 'sed' does the real
17740   # work.  The second script uses 'N' to pair each line-number line
17741   # with the numbered line, and appends trailing '-' during
17742   # substitution so that $LINENO is not a special case at line end.
17743   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17744   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17745   sed '=' <$as_myself |
17746     sed '
17747       N
17748       s,$,-,
17749       : loop
17750       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17751       t loop
17752       s,-$,,
17753       s,^['$as_cr_digits']*\n,,
17754     ' >$as_me.lineno &&
17755   chmod +x $as_me.lineno ||
17756     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17757 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17758    { (exit 1); exit 1; }; }
17759
17760   # Don't try to exec as it changes $[0], causing all sort of problems
17761   # (the dirname of $[0] is not the place where we might find the
17762   # original and so on.  Autoconf is especially sensible to this).
17763   . ./$as_me.lineno
17764   # Exit status is that of the last command.
17765   exit
17766 }
17767
17768
17769 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17770   *c*,-n*) ECHO_N= ECHO_C='
17771 ' ECHO_T='      ' ;;
17772   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17773   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17774 esac
17775
17776 if expr a : '\(a\)' >/dev/null 2>&1; then
17777   as_expr=expr
17778 else
17779   as_expr=false
17780 fi
17781
17782 rm -f conf$$ conf$$.exe conf$$.file
17783 echo >conf$$.file
17784 if ln -s conf$$.file conf$$ 2>/dev/null; then
17785   # We could just check for DJGPP; but this test a) works b) is more generic
17786   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17787   if test -f conf$$.exe; then
17788     # Don't use ln at all; we don't have any links
17789     as_ln_s='cp -p'
17790   else
17791     as_ln_s='ln -s'
17792   fi
17793 elif ln conf$$.file conf$$ 2>/dev/null; then
17794   as_ln_s=ln
17795 else
17796   as_ln_s='cp -p'
17797 fi
17798 rm -f conf$$ conf$$.exe conf$$.file
17799
17800 if mkdir -p . 2>/dev/null; then
17801   as_mkdir_p=:
17802 else
17803   as_mkdir_p=false
17804 fi
17805
17806 as_executable_p="test -f"
17807
17808 # Sed expression to map a string onto a valid CPP name.
17809 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17810
17811 # Sed expression to map a string onto a valid variable name.
17812 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17813
17814
17815 # IFS
17816 # We need space, tab and new line, in precisely that order.
17817 as_nl='
17818 '
17819 IFS="   $as_nl"
17820
17821 # CDPATH.
17822 $as_unset CDPATH
17823
17824 exec 6>&1
17825
17826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17827 # report actual input values of CONFIG_FILES etc. instead of their
17828 # values after options handling.  Logging --version etc. is OK.
17829 exec 5>>config.log
17830 {
17831   echo
17832   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17833 ## Running $as_me. ##
17834 _ASBOX
17835 } >&5
17836 cat >&5 <<_CSEOF
17837
17838 This file was extended by $as_me, which was
17839 generated by GNU Autoconf 2.57.  Invocation command line was
17840
17841   CONFIG_FILES    = $CONFIG_FILES
17842   CONFIG_HEADERS  = $CONFIG_HEADERS
17843   CONFIG_LINKS    = $CONFIG_LINKS
17844   CONFIG_COMMANDS = $CONFIG_COMMANDS
17845   $ $0 $@
17846
17847 _CSEOF
17848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17849 echo >&5
17850 _ACEOF
17851
17852 # Files that config.status was made for.
17853 if test -n "$ac_config_files"; then
17854   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17855 fi
17856
17857 if test -n "$ac_config_headers"; then
17858   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17859 fi
17860
17861 if test -n "$ac_config_links"; then
17862   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17863 fi
17864
17865 if test -n "$ac_config_commands"; then
17866   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17867 fi
17868
17869 cat >>$CONFIG_STATUS <<\_ACEOF
17870
17871 ac_cs_usage="\
17872 \`$as_me' instantiates files from templates according to the
17873 current configuration.
17874
17875 Usage: $0 [OPTIONS] [FILE]...
17876
17877   -h, --help       print this help, then exit
17878   -V, --version    print version number, then exit
17879   -q, --quiet      do not print progress messages
17880   -d, --debug      don't remove temporary files
17881       --recheck    update $as_me by reconfiguring in the same conditions
17882   --file=FILE[:TEMPLATE]
17883                    instantiate the configuration file FILE
17884   --header=FILE[:TEMPLATE]
17885                    instantiate the configuration header FILE
17886
17887 Configuration files:
17888 $config_files
17889
17890 Configuration headers:
17891 $config_headers
17892
17893 Configuration commands:
17894 $config_commands
17895
17896 Report bugs to <bug-autoconf@gnu.org>."
17897 _ACEOF
17898
17899 cat >>$CONFIG_STATUS <<_ACEOF
17900 ac_cs_version="\\
17901 config.status
17902 configured by $0, generated by GNU Autoconf 2.57,
17903   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17904
17905 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17906 Free Software Foundation, Inc.
17907 This config.status script is free software; the Free Software Foundation
17908 gives unlimited permission to copy, distribute and modify it."
17909 srcdir=$srcdir
17910 INSTALL="$INSTALL"
17911 _ACEOF
17912
17913 cat >>$CONFIG_STATUS <<\_ACEOF
17914 # If no file are specified by the user, then we need to provide default
17915 # value.  By we need to know if files were specified by the user.
17916 ac_need_defaults=:
17917 while test $# != 0
17918 do
17919   case $1 in
17920   --*=*)
17921     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17922     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17923     ac_shift=:
17924     ;;
17925   -*)
17926     ac_option=$1
17927     ac_optarg=$2
17928     ac_shift=shift
17929     ;;
17930   *) # This is not an option, so the user has probably given explicit
17931      # arguments.
17932      ac_option=$1
17933      ac_need_defaults=false;;
17934   esac
17935
17936   case $ac_option in
17937   # Handling of the options.
17938 _ACEOF
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17940   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17941     ac_cs_recheck=: ;;
17942   --version | --vers* | -V )
17943     echo "$ac_cs_version"; exit 0 ;;
17944   --he | --h)
17945     # Conflict between --help and --header
17946     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17947 Try \`$0 --help' for more information." >&5
17948 echo "$as_me: error: ambiguous option: $1
17949 Try \`$0 --help' for more information." >&2;}
17950    { (exit 1); exit 1; }; };;
17951   --help | --hel | -h )
17952     echo "$ac_cs_usage"; exit 0 ;;
17953   --debug | --d* | -d )
17954     debug=: ;;
17955   --file | --fil | --fi | --f )
17956     $ac_shift
17957     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17958     ac_need_defaults=false;;
17959   --header | --heade | --head | --hea )
17960     $ac_shift
17961     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17962     ac_need_defaults=false;;
17963   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17964   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17965     ac_cs_silent=: ;;
17966
17967   # This is an error.
17968   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17969 Try \`$0 --help' for more information." >&5
17970 echo "$as_me: error: unrecognized option: $1
17971 Try \`$0 --help' for more information." >&2;}
17972    { (exit 1); exit 1; }; } ;;
17973
17974   *) ac_config_targets="$ac_config_targets $1" ;;
17975
17976   esac
17977   shift
17978 done
17979
17980 ac_configure_extra_args=
17981
17982 if $ac_cs_silent; then
17983   exec 6>/dev/null
17984   ac_configure_extra_args="$ac_configure_extra_args --silent"
17985 fi
17986
17987 _ACEOF
17988 cat >>$CONFIG_STATUS <<_ACEOF
17989 if \$ac_cs_recheck; then
17990   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17991   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17992 fi
17993
17994 _ACEOF
17995
17996
17997
17998
17999
18000 cat >>$CONFIG_STATUS <<\_ACEOF
18001 for ac_config_target in $ac_config_targets
18002 do
18003   case "$ac_config_target" in
18004   # Handling of arguments.
18005   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18006   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18007   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18008   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18009   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18010   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18011   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18012   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18013   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18014   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18015   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18016   "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18017   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18018   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18019   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18020   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18021   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18022   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18023   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18024   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18025   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18026   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18027   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18028   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18029   "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18030   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18031   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18032   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18033   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18034   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18035   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18036   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18037   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18038   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18039   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18040   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18041   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18042   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18043   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18044   "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
18045   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18046   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18047   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18048   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18049   "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18050   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18051   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18052   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18053   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18054   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18055   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18056   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18057   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18058   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18059   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18060   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18061   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18062   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18063   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18064   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18065   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18066 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18067    { (exit 1); exit 1; }; };;
18068   esac
18069 done
18070
18071 # If the user did not use the arguments to specify the items to instantiate,
18072 # then the envvar interface is used.  Set only those that are not.
18073 # We use the long form for the default assignment because of an extremely
18074 # bizarre bug on SunOS 4.1.3.
18075 if $ac_need_defaults; then
18076   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18077   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18078   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18079 fi
18080
18081 # Have a temporary directory for convenience.  Make it in the build tree
18082 # simply because there is no reason to put it here, and in addition,
18083 # creating and moving files from /tmp can sometimes cause problems.
18084 # Create a temporary directory, and hook for its removal unless debugging.
18085 $debug ||
18086 {
18087   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18088   trap '{ (exit 1); exit 1; }' 1 2 13 15
18089 }
18090
18091 # Create a (secure) tmp directory for tmp files.
18092
18093 {
18094   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18095   test -n "$tmp" && test -d "$tmp"
18096 }  ||
18097 {
18098   tmp=./confstat$$-$RANDOM
18099   (umask 077 && mkdir $tmp)
18100 } ||
18101 {
18102    echo "$me: cannot create a temporary directory in ." >&2
18103    { (exit 1); exit 1; }
18104 }
18105
18106 _ACEOF
18107
18108 cat >>$CONFIG_STATUS <<_ACEOF
18109
18110 #
18111 # CONFIG_FILES section.
18112 #
18113
18114 # No need to generate the scripts if there are no CONFIG_FILES.
18115 # This happens for instance when ./config.status config.h
18116 if test -n "\$CONFIG_FILES"; then
18117   # Protect against being on the right side of a sed subst in config.status.
18118   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18119    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18120 s,@SHELL@,$SHELL,;t t
18121 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18122 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18123 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18124 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18125 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18126 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18127 s,@exec_prefix@,$exec_prefix,;t t
18128 s,@prefix@,$prefix,;t t
18129 s,@program_transform_name@,$program_transform_name,;t t
18130 s,@bindir@,$bindir,;t t
18131 s,@sbindir@,$sbindir,;t t
18132 s,@libexecdir@,$libexecdir,;t t
18133 s,@datadir@,$datadir,;t t
18134 s,@sysconfdir@,$sysconfdir,;t t
18135 s,@sharedstatedir@,$sharedstatedir,;t t
18136 s,@localstatedir@,$localstatedir,;t t
18137 s,@libdir@,$libdir,;t t
18138 s,@includedir@,$includedir,;t t
18139 s,@oldincludedir@,$oldincludedir,;t t
18140 s,@infodir@,$infodir,;t t
18141 s,@mandir@,$mandir,;t t
18142 s,@build_alias@,$build_alias,;t t
18143 s,@host_alias@,$host_alias,;t t
18144 s,@target_alias@,$target_alias,;t t
18145 s,@DEFS@,$DEFS,;t t
18146 s,@ECHO_C@,$ECHO_C,;t t
18147 s,@ECHO_N@,$ECHO_N,;t t
18148 s,@ECHO_T@,$ECHO_T,;t t
18149 s,@LIBS@,$LIBS,;t t
18150 s,@BUILD_DIR@,$BUILD_DIR,;t t
18151 s,@TRUEPRG@,$TRUEPRG,;t t
18152 s,@FALSEPRG@,$FALSEPRG,;t t
18153 s,@build@,$build,;t t
18154 s,@build_cpu@,$build_cpu,;t t
18155 s,@build_vendor@,$build_vendor,;t t
18156 s,@build_os@,$build_os,;t t
18157 s,@host@,$host,;t t
18158 s,@host_cpu@,$host_cpu,;t t
18159 s,@host_vendor@,$host_vendor,;t t
18160 s,@host_os@,$host_os,;t t
18161 s,@VERSION@,$VERSION,;t t
18162 s,@DATE@,$DATE,;t t
18163 s,@LSMDATE@,$LSMDATE,;t t
18164 s,@CC@,$CC,;t t
18165 s,@CFLAGS@,$CFLAGS,;t t
18166 s,@LDFLAGS@,$LDFLAGS,;t t
18167 s,@CPPFLAGS@,$CPPFLAGS,;t t
18168 s,@ac_ct_CC@,$ac_ct_CC,;t t
18169 s,@EXEEXT@,$EXEEXT,;t t
18170 s,@OBJEXT@,$OBJEXT,;t t
18171 s,@CXX@,$CXX,;t t
18172 s,@CXXFLAGS@,$CXXFLAGS,;t t
18173 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18174 s,@CPP@,$CPP,;t t
18175 s,@EGREP@,$EGREP,;t t
18176 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18177 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18178 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18179 s,@RANLIB@,$RANLIB,;t t
18180 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18181 s,@MV@,$MV,;t t
18182 s,@RM@,$RM,;t t
18183 s,@CP@,$CP,;t t
18184 s,@SED@,$SED,;t t
18185 s,@AWK@,$AWK,;t t
18186 s,@ECHO@,$ECHO,;t t
18187 s,@CMP@,$CMP,;t t
18188 s,@TBL@,$TBL,;t t
18189 s,@AR@,$AR,;t t
18190 s,@OPENSSL@,$OPENSSL,;t t
18191 s,@MTX@,$MTX,;t t
18192 s,@PKGCONFIG@,$PKGCONFIG,;t t
18193 s,@ARFLAGS@,$ARFLAGS,;t t
18194 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18195 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18196 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18197 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18198 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18199 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18200 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18201 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18202 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18203 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18204 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18205 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18206 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18207 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18208 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18209 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18210 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18211 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18212 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18213 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18214 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18215 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18216 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18217 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18218 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18219 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18220 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18221 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18222 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18223 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18224 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18225 s,@MSGFMT@,$MSGFMT,;t t
18226 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18227 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18228 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18229 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18230 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18231 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18232 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18233 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18234 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18235 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18236 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18237 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18238 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18239 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18240 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18241 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18242 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18243 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18244 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18245 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18246 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18247 s,@GNOME_DIR@,$GNOME_DIR,;t t
18248 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18249 s,@STATIC_FD@,$STATIC_FD,;t t
18250 s,@STATIC_SD@,$STATIC_SD,;t t
18251 s,@STATIC_DIR@,$STATIC_DIR,;t t
18252 s,@STATIC_CONS@,$STATIC_CONS,;t t
18253 s,@ALL_DIRS@,$ALL_DIRS,;t t
18254 s,@CONS_INC@,$CONS_INC,;t t
18255 s,@CONS_LIBS@,$CONS_LIBS,;t t
18256 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18257 s,@READLINE_SRC@,$READLINE_SRC,;t t
18258 s,@working_dir@,$working_dir,;t t
18259 s,@scriptdir@,$scriptdir,;t t
18260 s,@dump_email@,$dump_email,;t t
18261 s,@job_email@,$job_email,;t t
18262 s,@smtp_host@,$smtp_host,;t t
18263 s,@piddir@,$piddir,;t t
18264 s,@subsysdir@,$subsysdir,;t t
18265 s,@baseport@,$baseport,;t t
18266 s,@dir_port@,$dir_port,;t t
18267 s,@fd_port@,$fd_port,;t t
18268 s,@sd_port@,$sd_port,;t t
18269 s,@dir_password@,$dir_password,;t t
18270 s,@fd_password@,$fd_password,;t t
18271 s,@sd_password@,$sd_password,;t t
18272 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18273 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18274 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18275 s,@cats@,$cats,;t t
18276 s,@DB_NAME@,$DB_NAME,;t t
18277 s,@GETCONF@,$GETCONF,;t t
18278 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18279 s,@X_CFLAGS@,$X_CFLAGS,;t t
18280 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18281 s,@X_LIBS@,$X_LIBS,;t t
18282 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18283 s,@LIBOBJS@,$LIBOBJS,;t t
18284 s,@ALLOCA@,$ALLOCA,;t t
18285 s,@FDLIBS@,$FDLIBS,;t t
18286 s,@DEBUG@,$DEBUG,;t t
18287 s,@DINCLUDE@,$DINCLUDE,;t t
18288 s,@DLIB@,$DLIB,;t t
18289 s,@DB_LIBS@,$DB_LIBS,;t t
18290 s,@WCFLAGS@,$WCFLAGS,;t t
18291 s,@WLDFLAGS@,$WLDFLAGS,;t t
18292 s,@OBJLIST@,$OBJLIST,;t t
18293 s,@hostname@,$hostname,;t t
18294 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18295 s,@PSCMD@,$PSCMD,;t t
18296 s,@WIN32@,$WIN32,;t t
18297 s,@DISTNAME@,$DISTNAME,;t t
18298 s,@DISTVER@,$DISTVER,;t t
18299 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18300 /@MCOMMON@/r $MCOMMON
18301 s,@MCOMMON@,,;t t
18302 CEOF
18303
18304 _ACEOF
18305
18306   cat >>$CONFIG_STATUS <<\_ACEOF
18307   # Split the substitutions into bite-sized pieces for seds with
18308   # small command number limits, like on Digital OSF/1 and HP-UX.
18309   ac_max_sed_lines=48
18310   ac_sed_frag=1 # Number of current file.
18311   ac_beg=1 # First line for current file.
18312   ac_end=$ac_max_sed_lines # Line after last line for current file.
18313   ac_more_lines=:
18314   ac_sed_cmds=
18315   while $ac_more_lines; do
18316     if test $ac_beg -gt 1; then
18317       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18318     else
18319       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18320     fi
18321     if test ! -s $tmp/subs.frag; then
18322       ac_more_lines=false
18323     else
18324       # The purpose of the label and of the branching condition is to
18325       # speed up the sed processing (if there are no `@' at all, there
18326       # is no need to browse any of the substitutions).
18327       # These are the two extra sed commands mentioned above.
18328       (echo ':t
18329   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18330       if test -z "$ac_sed_cmds"; then
18331         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18332       else
18333         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18334       fi
18335       ac_sed_frag=`expr $ac_sed_frag + 1`
18336       ac_beg=$ac_end
18337       ac_end=`expr $ac_end + $ac_max_sed_lines`
18338     fi
18339   done
18340   if test -z "$ac_sed_cmds"; then
18341     ac_sed_cmds=cat
18342   fi
18343 fi # test -n "$CONFIG_FILES"
18344
18345 _ACEOF
18346 cat >>$CONFIG_STATUS <<\_ACEOF
18347 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18348   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18349   case $ac_file in
18350   - | *:- | *:-:* ) # input from stdin
18351         cat >$tmp/stdin
18352         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18353         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18354   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18355         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18356   * )   ac_file_in=$ac_file.in ;;
18357   esac
18358
18359   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18360   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18362          X"$ac_file" : 'X\(//\)[^/]' \| \
18363          X"$ac_file" : 'X\(//\)$' \| \
18364          X"$ac_file" : 'X\(/\)' \| \
18365          .     : '\(.\)' 2>/dev/null ||
18366 echo X"$ac_file" |
18367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18368           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18369           /^X\(\/\/\)$/{ s//\1/; q; }
18370           /^X\(\/\).*/{ s//\1/; q; }
18371           s/.*/./; q'`
18372   { if $as_mkdir_p; then
18373     mkdir -p "$ac_dir"
18374   else
18375     as_dir="$ac_dir"
18376     as_dirs=
18377     while test ! -d "$as_dir"; do
18378       as_dirs="$as_dir $as_dirs"
18379       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381          X"$as_dir" : 'X\(//\)[^/]' \| \
18382          X"$as_dir" : 'X\(//\)$' \| \
18383          X"$as_dir" : 'X\(/\)' \| \
18384          .     : '\(.\)' 2>/dev/null ||
18385 echo X"$as_dir" |
18386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18387           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18388           /^X\(\/\/\)$/{ s//\1/; q; }
18389           /^X\(\/\).*/{ s//\1/; q; }
18390           s/.*/./; q'`
18391     done
18392     test ! -n "$as_dirs" || mkdir $as_dirs
18393   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18395    { (exit 1); exit 1; }; }; }
18396
18397   ac_builddir=.
18398
18399 if test "$ac_dir" != .; then
18400   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18401   # A "../" for each directory in $ac_dir_suffix.
18402   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18403 else
18404   ac_dir_suffix= ac_top_builddir=
18405 fi
18406
18407 case $srcdir in
18408   .)  # No --srcdir option.  We are building in place.
18409     ac_srcdir=.
18410     if test -z "$ac_top_builddir"; then
18411        ac_top_srcdir=.
18412     else
18413        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18414     fi ;;
18415   [\\/]* | ?:[\\/]* )  # Absolute path.
18416     ac_srcdir=$srcdir$ac_dir_suffix;
18417     ac_top_srcdir=$srcdir ;;
18418   *) # Relative path.
18419     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18420     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18421 esac
18422 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18423 # absolute.
18424 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18425 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18426 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18427 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18428
18429
18430   case $INSTALL in
18431   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18432   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18433   esac
18434
18435   if test x"$ac_file" != x-; then
18436     { echo "$as_me:$LINENO: creating $ac_file" >&5
18437 echo "$as_me: creating $ac_file" >&6;}
18438     rm -f "$ac_file"
18439   fi
18440   # Let's still pretend it is `configure' which instantiates (i.e., don't
18441   # use $as_me), people would be surprised to read:
18442   #    /* config.h.  Generated by config.status.  */
18443   if test x"$ac_file" = x-; then
18444     configure_input=
18445   else
18446     configure_input="$ac_file.  "
18447   fi
18448   configure_input=$configure_input"Generated from `echo $ac_file_in |
18449                                      sed 's,.*/,,'` by configure."
18450
18451   # First look for the input files in the build tree, otherwise in the
18452   # src tree.
18453   ac_file_inputs=`IFS=:
18454     for f in $ac_file_in; do
18455       case $f in
18456       -) echo $tmp/stdin ;;
18457       [\\/$]*)
18458          # Absolute (can't be DOS-style, as IFS=:)
18459          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18460 echo "$as_me: error: cannot find input file: $f" >&2;}
18461    { (exit 1); exit 1; }; }
18462          echo $f;;
18463       *) # Relative
18464          if test -f "$f"; then
18465            # Build tree
18466            echo $f
18467          elif test -f "$srcdir/$f"; then
18468            # Source tree
18469            echo $srcdir/$f
18470          else
18471            # /dev/null tree
18472            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18473 echo "$as_me: error: cannot find input file: $f" >&2;}
18474    { (exit 1); exit 1; }; }
18475          fi;;
18476       esac
18477     done` || { (exit 1); exit 1; }
18478 _ACEOF
18479 cat >>$CONFIG_STATUS <<_ACEOF
18480   sed "$ac_vpsub
18481 $extrasub
18482 _ACEOF
18483 cat >>$CONFIG_STATUS <<\_ACEOF
18484 :t
18485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18486 s,@configure_input@,$configure_input,;t t
18487 s,@srcdir@,$ac_srcdir,;t t
18488 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18489 s,@top_srcdir@,$ac_top_srcdir,;t t
18490 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18491 s,@builddir@,$ac_builddir,;t t
18492 s,@abs_builddir@,$ac_abs_builddir,;t t
18493 s,@top_builddir@,$ac_top_builddir,;t t
18494 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18495 s,@INSTALL@,$ac_INSTALL,;t t
18496 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18497   rm -f $tmp/stdin
18498   if test x"$ac_file" != x-; then
18499     mv $tmp/out $ac_file
18500   else
18501     cat $tmp/out
18502     rm -f $tmp/out
18503   fi
18504
18505 done
18506 _ACEOF
18507 cat >>$CONFIG_STATUS <<\_ACEOF
18508
18509 #
18510 # CONFIG_HEADER section.
18511 #
18512
18513 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18514 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18515 #
18516 # ac_d sets the value in "#define NAME VALUE" lines.
18517 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18518 ac_dB='[        ].*$,\1#\2'
18519 ac_dC=' '
18520 ac_dD=',;t'
18521 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18522 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18523 ac_uB='$,\1#\2define\3'
18524 ac_uC=' '
18525 ac_uD=',;t'
18526
18527 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18528   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18529   case $ac_file in
18530   - | *:- | *:-:* ) # input from stdin
18531         cat >$tmp/stdin
18532         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18533         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18534   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18535         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18536   * )   ac_file_in=$ac_file.in ;;
18537   esac
18538
18539   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18540 echo "$as_me: creating $ac_file" >&6;}
18541
18542   # First look for the input files in the build tree, otherwise in the
18543   # src tree.
18544   ac_file_inputs=`IFS=:
18545     for f in $ac_file_in; do
18546       case $f in
18547       -) echo $tmp/stdin ;;
18548       [\\/$]*)
18549          # Absolute (can't be DOS-style, as IFS=:)
18550          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18551 echo "$as_me: error: cannot find input file: $f" >&2;}
18552    { (exit 1); exit 1; }; }
18553          echo $f;;
18554       *) # Relative
18555          if test -f "$f"; then
18556            # Build tree
18557            echo $f
18558          elif test -f "$srcdir/$f"; then
18559            # Source tree
18560            echo $srcdir/$f
18561          else
18562            # /dev/null tree
18563            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18564 echo "$as_me: error: cannot find input file: $f" >&2;}
18565    { (exit 1); exit 1; }; }
18566          fi;;
18567       esac
18568     done` || { (exit 1); exit 1; }
18569   # Remove the trailing spaces.
18570   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18571
18572 _ACEOF
18573
18574 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18575 # `conftest.undefs', that substitutes the proper values into
18576 # config.h.in to produce config.h.  The first handles `#define'
18577 # templates, and the second `#undef' templates.
18578 # And first: Protect against being on the right side of a sed subst in
18579 # config.status.  Protect against being in an unquoted here document
18580 # in config.status.
18581 rm -f conftest.defines conftest.undefs
18582 # Using a here document instead of a string reduces the quoting nightmare.
18583 # Putting comments in sed scripts is not portable.
18584 #
18585 # `end' is used to avoid that the second main sed command (meant for
18586 # 0-ary CPP macros) applies to n-ary macro definitions.
18587 # See the Autoconf documentation for `clear'.
18588 cat >confdef2sed.sed <<\_ACEOF
18589 s/[\\&,]/\\&/g
18590 s,[\\$`],\\&,g
18591 t clear
18592 : clear
18593 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18594 t end
18595 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18596 : end
18597 _ACEOF
18598 # If some macros were called several times there might be several times
18599 # the same #defines, which is useless.  Nevertheless, we may not want to
18600 # sort them, since we want the *last* AC-DEFINE to be honored.
18601 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18602 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18603 rm -f confdef2sed.sed
18604
18605 # This sed command replaces #undef with comments.  This is necessary, for
18606 # example, in the case of _POSIX_SOURCE, which is predefined and required
18607 # on some systems where configure will not decide to define it.
18608 cat >>conftest.undefs <<\_ACEOF
18609 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18610 _ACEOF
18611
18612 # Break up conftest.defines because some shells have a limit on the size
18613 # of here documents, and old seds have small limits too (100 cmds).
18614 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18615 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18616 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18617 echo '  :' >>$CONFIG_STATUS
18618 rm -f conftest.tail
18619 while grep . conftest.defines >/dev/null
18620 do
18621   # Write a limited-size here document to $tmp/defines.sed.
18622   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18623   # Speed up: don't consider the non `#define' lines.
18624   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18625   # Work around the forget-to-reset-the-flag bug.
18626   echo 't clr' >>$CONFIG_STATUS
18627   echo ': clr' >>$CONFIG_STATUS
18628   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18629   echo 'CEOF
18630   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18631   rm -f $tmp/in
18632   mv $tmp/out $tmp/in
18633 ' >>$CONFIG_STATUS
18634   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18635   rm -f conftest.defines
18636   mv conftest.tail conftest.defines
18637 done
18638 rm -f conftest.defines
18639 echo '  fi # grep' >>$CONFIG_STATUS
18640 echo >>$CONFIG_STATUS
18641
18642 # Break up conftest.undefs because some shells have a limit on the size
18643 # of here documents, and old seds have small limits too (100 cmds).
18644 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18645 rm -f conftest.tail
18646 while grep . conftest.undefs >/dev/null
18647 do
18648   # Write a limited-size here document to $tmp/undefs.sed.
18649   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18650   # Speed up: don't consider the non `#undef'
18651   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18652   # Work around the forget-to-reset-the-flag bug.
18653   echo 't clr' >>$CONFIG_STATUS
18654   echo ': clr' >>$CONFIG_STATUS
18655   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18656   echo 'CEOF
18657   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18658   rm -f $tmp/in
18659   mv $tmp/out $tmp/in
18660 ' >>$CONFIG_STATUS
18661   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18662   rm -f conftest.undefs
18663   mv conftest.tail conftest.undefs
18664 done
18665 rm -f conftest.undefs
18666
18667 cat >>$CONFIG_STATUS <<\_ACEOF
18668   # Let's still pretend it is `configure' which instantiates (i.e., don't
18669   # use $as_me), people would be surprised to read:
18670   #    /* config.h.  Generated by config.status.  */
18671   if test x"$ac_file" = x-; then
18672     echo "/* Generated by configure.  */" >$tmp/config.h
18673   else
18674     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18675   fi
18676   cat $tmp/in >>$tmp/config.h
18677   rm -f $tmp/in
18678   if test x"$ac_file" != x-; then
18679     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18680       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18681 echo "$as_me: $ac_file is unchanged" >&6;}
18682     else
18683       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18685          X"$ac_file" : 'X\(//\)[^/]' \| \
18686          X"$ac_file" : 'X\(//\)$' \| \
18687          X"$ac_file" : 'X\(/\)' \| \
18688          .     : '\(.\)' 2>/dev/null ||
18689 echo X"$ac_file" |
18690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18691           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18692           /^X\(\/\/\)$/{ s//\1/; q; }
18693           /^X\(\/\).*/{ s//\1/; q; }
18694           s/.*/./; q'`
18695       { if $as_mkdir_p; then
18696     mkdir -p "$ac_dir"
18697   else
18698     as_dir="$ac_dir"
18699     as_dirs=
18700     while test ! -d "$as_dir"; do
18701       as_dirs="$as_dir $as_dirs"
18702       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18704          X"$as_dir" : 'X\(//\)[^/]' \| \
18705          X"$as_dir" : 'X\(//\)$' \| \
18706          X"$as_dir" : 'X\(/\)' \| \
18707          .     : '\(.\)' 2>/dev/null ||
18708 echo X"$as_dir" |
18709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18711           /^X\(\/\/\)$/{ s//\1/; q; }
18712           /^X\(\/\).*/{ s//\1/; q; }
18713           s/.*/./; q'`
18714     done
18715     test ! -n "$as_dirs" || mkdir $as_dirs
18716   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18717 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18718    { (exit 1); exit 1; }; }; }
18719
18720       rm -f $ac_file
18721       mv $tmp/config.h $ac_file
18722     fi
18723   else
18724     cat $tmp/config.h
18725     rm -f $tmp/config.h
18726   fi
18727 done
18728 _ACEOF
18729 cat >>$CONFIG_STATUS <<\_ACEOF
18730
18731 #
18732 # CONFIG_COMMANDS section.
18733 #
18734 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18735   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18736   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18737   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18738 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18739          X"$ac_dest" : 'X\(//\)[^/]' \| \
18740          X"$ac_dest" : 'X\(//\)$' \| \
18741          X"$ac_dest" : 'X\(/\)' \| \
18742          .     : '\(.\)' 2>/dev/null ||
18743 echo X"$ac_dest" |
18744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18745           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18746           /^X\(\/\/\)$/{ s//\1/; q; }
18747           /^X\(\/\).*/{ s//\1/; q; }
18748           s/.*/./; q'`
18749   ac_builddir=.
18750
18751 if test "$ac_dir" != .; then
18752   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18753   # A "../" for each directory in $ac_dir_suffix.
18754   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18755 else
18756   ac_dir_suffix= ac_top_builddir=
18757 fi
18758
18759 case $srcdir in
18760   .)  # No --srcdir option.  We are building in place.
18761     ac_srcdir=.
18762     if test -z "$ac_top_builddir"; then
18763        ac_top_srcdir=.
18764     else
18765        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18766     fi ;;
18767   [\\/]* | ?:[\\/]* )  # Absolute path.
18768     ac_srcdir=$srcdir$ac_dir_suffix;
18769     ac_top_srcdir=$srcdir ;;
18770   *) # Relative path.
18771     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18772     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18773 esac
18774 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18775 # absolute.
18776 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18777 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18778 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18779 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18780
18781
18782   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18783 echo "$as_me: executing $ac_dest commands" >&6;}
18784   case $ac_dest in
18785     default ) (echo "Doing make of dependencies"; make depend;)
18786  ;;
18787   esac
18788 done
18789 _ACEOF
18790
18791 cat >>$CONFIG_STATUS <<\_ACEOF
18792
18793 { (exit 0); exit 0; }
18794 _ACEOF
18795 chmod +x $CONFIG_STATUS
18796 ac_clean_files=$ac_clean_files_save
18797
18798
18799 # configure is writing to config.log, and then calls config.status.
18800 # config.status does its own redirection, appending to config.log.
18801 # Unfortunately, on DOS this fails, as config.log is still kept open
18802 # by configure, so config.status won't be able to write to it; its
18803 # output is simply discarded.  So we exec the FD to /dev/null,
18804 # effectively closing config.log, so it can be properly (re)opened and
18805 # appended to by config.status.  When coming back to configure, we
18806 # need to make the FD available again.
18807 if test "$no_create" != yes; then
18808   ac_cs_success=:
18809   ac_config_status_args=
18810   test "$silent" = yes &&
18811     ac_config_status_args="$ac_config_status_args --quiet"
18812   exec 5>/dev/null
18813   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18814   exec 5>>config.log
18815   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18816   # would make configure fail if this is the last instruction.
18817   $ac_cs_success || { (exit 1); exit 1; }
18818 fi
18819
18820
18821 cd scripts
18822 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18823 chmod 755 console gconsole mtx-changer
18824 cd ..
18825 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18826 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18827 chmod 755 src/cats/create_mysql_database
18828 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18829 chmod 755 src/cats/alter_mysql_tables
18830 chmod 755 src/cats/grant_mysql_privileges
18831 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18832 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18833 chmod 755 src/cats/create_sqlite_database
18834 chmod 755 src/cats/alter_sqlite_tables
18835 chmod 755 src/cats/sqlite
18836 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18837 chmod 755 src/cats/create_bdb_database
18838
18839 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18840    largefile_support="yes"
18841 fi
18842
18843 #
18844 # A whole lot of hand springs to get the compiler version.
18845 #  This is because gcc changed the output in version 3.0
18846 #
18847 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18848 if test "x${CCVERSION}" = "x" ; then
18849   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18850 fi
18851 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18852 if test x"${CXXVERSION}" = x ; then
18853   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18854 fi
18855
18856 if test "x${subsysdir}" = "x${sbindir}" ; then
18857    echo " "
18858    echo " "
18859    echo "You have set --sbindir and --with-subsys-dir"
18860    echo "  both equal to: ${subsysdir} "
18861    echo "  This is not permitted. Please reconfigure."
18862    echo "Aborting configuration ..."
18863    echo " "
18864    echo " "
18865    exit 1
18866 fi
18867
18868 echo "
18869 Configuration on `date`:
18870
18871   Host:                       $host -- ${DISTNAME} ${DISTVER}
18872   Bacula version:             ${VERSION} (${DATE})
18873   Source code location:       ${srcdir}
18874   Install binaries:           ${sbindir}
18875   Install config files:       ${sysconfdir}
18876   Scripts directory:          ${scriptdir}
18877   Working directory:          ${working_dir}
18878   PID directory:              ${piddir}
18879   Subsys directory:           ${subsysdir}
18880   C Compiler:                 ${CC} ${CCVERSION}
18881   C++ Compiler:               ${CXX} ${CXXVERSION}
18882   Compiler flags:             ${WCFLAGS} ${CFLAGS}
18883   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
18884   Libraries:                  ${LIBS}
18885   Statically Linked Tools:    ${support_static_tools}
18886   Statically Linked FD:       ${support_static_fd}
18887   Statically Linked SD:       ${support_static_sd}
18888   Statically Linked DIR:      ${support_static_dir}
18889   Statically Linked CONS:     ${support_static_cons}
18890   Database type:              ${db_name}
18891   Database lib:               ${DB_LIBS}
18892
18893   Job Output Email:           ${job_email}
18894   Traceback Email:            ${dump_email}
18895   SMTP Host Address:          ${smtp_host}
18896   Director Port               ${dir_port}
18897   File daemon Port            ${fd_port}
18898   Storage daemon Port         ${sd_port}
18899   SQL binaries Directory      ${SQL_BINDIR}
18900
18901   Large file support:         $largefile_support
18902   readline support:           ${got_readline} ${PRTREADLINE_SRC}
18903   TCP Wrappers support:       ${TCPW_MSG}
18904   ZLIB support:               ${have_zlib}
18905   enable-smartalloc:          ${support_smartalloc}
18906   enable-gnome:               ${support_gnome}
18907   client-only:                ${build_client_only}
18908
18909   " > config.out
18910
18911 cat config.out
18912
18913 # old stuff
18914 # cweb support:               ${got_cweb} ${CWEB_SRC}
18915 # gmp support:                ${got_gmp} ${GMP_SRC}