]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
make bconsole and bstmp
[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 dir_user dir_group sd_user sd_group fd_user fd_group 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   --with-dir-user=USER           specify user for Director daemon
890   --with-dir-group=GROUP                 specify group for Director daemon
891   --with-sd-user=USER            specify user for Storage daemon
892   --with-sd-group=GROUP          specify group for Storage daemon
893   --with-fd-user=USER            specify user for File daemon
894   --with-fd-group=GROUP          specify group for File daemon
895
896 Which DBMS do you want to use (please select only one):
897   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
898                           install directory, default is to search through
899                           a number of common places for the MySQL files.
900
901 Which DBMS do you want to use (please select only one):
902   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906 Which DBMS do you want to use (please select only one):
907   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
908                           install directory, default is to search through
909                           a number of common places for the SQLite files.
910   --with-x                use the X Window System
911
912 Some influential environment variables:
913   CC          C compiler command
914   CFLAGS      C compiler flags
915   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
916               nonstandard directory <lib dir>
917   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
918               headers in a nonstandard directory <include dir>
919   CXX         C++ compiler command
920   CXXFLAGS    C++ compiler flags
921   CPP         C preprocessor
922
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
925
926 _ACEOF
927 fi
928
929 if test "$ac_init_help" = "recursive"; then
930   # If there are subdirs, report their specific --help.
931   ac_popdir=`pwd`
932   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933     test -d $ac_dir || continue
934     ac_builddir=.
935
936 if test "$ac_dir" != .; then
937   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938   # A "../" for each directory in $ac_dir_suffix.
939   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
940 else
941   ac_dir_suffix= ac_top_builddir=
942 fi
943
944 case $srcdir in
945   .)  # No --srcdir option.  We are building in place.
946     ac_srcdir=.
947     if test -z "$ac_top_builddir"; then
948        ac_top_srcdir=.
949     else
950        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951     fi ;;
952   [\\/]* | ?:[\\/]* )  # Absolute path.
953     ac_srcdir=$srcdir$ac_dir_suffix;
954     ac_top_srcdir=$srcdir ;;
955   *) # Relative path.
956     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957     ac_top_srcdir=$ac_top_builddir$srcdir ;;
958 esac
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
960 # absolute.
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
965
966     cd $ac_dir
967     # Check for guested configure; otherwise get Cygnus style configure.
968     if test -f $ac_srcdir/configure.gnu; then
969       echo
970       $SHELL $ac_srcdir/configure.gnu  --help=recursive
971     elif test -f $ac_srcdir/configure; then
972       echo
973       $SHELL $ac_srcdir/configure  --help=recursive
974     elif test -f $ac_srcdir/configure.ac ||
975            test -f $ac_srcdir/configure.in; then
976       echo
977       $ac_configure --help
978     else
979       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980     fi
981     cd $ac_popdir
982   done
983 fi
984
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987   cat <<\_ACEOF
988
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core core.* *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329 BUILD_DIR=`pwd`
1330 cd ..
1331 TOP_DIR=`pwd`
1332 cd ${BUILD_DIR}
1333
1334 ac_aux_dir=
1335 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1336   if test -f $ac_dir/install-sh; then
1337     ac_aux_dir=$ac_dir
1338     ac_install_sh="$ac_aux_dir/install-sh -c"
1339     break
1340   elif test -f $ac_dir/install.sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install.sh -c"
1343     break
1344   elif test -f $ac_dir/shtool; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/shtool install -c"
1347     break
1348   fi
1349 done
1350 if test -z "$ac_aux_dir"; then
1351   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1353    { (exit 1); exit 1; }; }
1354 fi
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358
1359           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1360
1361
1362
1363
1364
1365 for ac_prog in true
1366 do
1367   # Extract the first word of "$ac_prog", so it can be a program name with args.
1368 set dummy $ac_prog; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1372   echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374   case $TRUEPRG in
1375   [\\/]* | ?:[\\/]*)
1376   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1377   ;;
1378   *)
1379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380 for as_dir in $PATH
1381 do
1382   IFS=$as_save_IFS
1383   test -z "$as_dir" && as_dir=.
1384   for ac_exec_ext in '' $ac_executable_extensions; do
1385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1386     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388     break 2
1389   fi
1390 done
1391 done
1392
1393   ;;
1394 esac
1395 fi
1396 TRUEPRG=$ac_cv_path_TRUEPRG
1397
1398 if test -n "$TRUEPRG"; then
1399   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1400 echo "${ECHO_T}$TRUEPRG" >&6
1401 else
1402   echo "$as_me:$LINENO: result: no" >&5
1403 echo "${ECHO_T}no" >&6
1404 fi
1405
1406   test -n "$TRUEPRG" && break
1407 done
1408 test -n "$TRUEPRG" || TRUEPRG=":"
1409
1410 for ac_prog in false
1411 do
1412   # Extract the first word of "$ac_prog", so it can be a program name with args.
1413 set dummy $ac_prog; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   case $FALSEPRG in
1420   [\\/]* | ?:[\\/]*)
1421   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1422   ;;
1423   *)
1424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1426 do
1427   IFS=$as_save_IFS
1428   test -z "$as_dir" && as_dir=.
1429   for ac_exec_ext in '' $ac_executable_extensions; do
1430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433     break 2
1434   fi
1435 done
1436 done
1437
1438   ;;
1439 esac
1440 fi
1441 FALSEPRG=$ac_cv_path_FALSEPRG
1442
1443 if test -n "$FALSEPRG"; then
1444   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1445 echo "${ECHO_T}$FALSEPRG" >&6
1446 else
1447   echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449 fi
1450
1451   test -n "$FALSEPRG" && break
1452 done
1453 test -n "$FALSEPRG" || FALSEPRG=":"
1454
1455
1456 # Make sure we can run config.sub.
1457 $ac_config_sub sun4 >/dev/null 2>&1 ||
1458   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1459 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1460    { (exit 1); exit 1; }; }
1461
1462 echo "$as_me:$LINENO: checking build system type" >&5
1463 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1464 if test "${ac_cv_build+set}" = set; then
1465   echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467   ac_cv_build_alias=$build_alias
1468 test -z "$ac_cv_build_alias" &&
1469   ac_cv_build_alias=`$ac_config_guess`
1470 test -z "$ac_cv_build_alias" &&
1471   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1472 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1473    { (exit 1); exit 1; }; }
1474 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1475   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1477    { (exit 1); exit 1; }; }
1478
1479 fi
1480 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1481 echo "${ECHO_T}$ac_cv_build" >&6
1482 build=$ac_cv_build
1483 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486
1487
1488 echo "$as_me:$LINENO: checking host system type" >&5
1489 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1490 if test "${ac_cv_host+set}" = set; then
1491   echo $ECHO_N "(cached) $ECHO_C" >&6
1492 else
1493   ac_cv_host_alias=$host_alias
1494 test -z "$ac_cv_host_alias" &&
1495   ac_cv_host_alias=$ac_cv_build_alias
1496 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1497   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1498 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1499    { (exit 1); exit 1; }; }
1500
1501 fi
1502 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1503 echo "${ECHO_T}$ac_cv_host" >&6
1504 host=$ac_cv_host
1505 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1506 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1507 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1508
1509
1510
1511 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1512 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 echo "configuring for bacula $VERSION ($DATE)"
1515
1516
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$CC"; then
1532   ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537   IFS=$as_save_IFS
1538   test -z "$as_dir" && as_dir=.
1539   for ac_exec_ext in '' $ac_executable_extensions; do
1540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543     break 2
1544   fi
1545 done
1546 done
1547
1548 fi
1549 fi
1550 CC=$ac_cv_prog_CC
1551 if test -n "$CC"; then
1552   echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 fi
1560 if test -z "$ac_cv_prog_CC"; then
1561   ac_ct_CC=$CC
1562   # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$ac_ct_CC"; then
1570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_ac_ct_CC="gcc"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597   CC=$ac_ct_CC
1598 else
1599   CC="$ac_cv_prog_CC"
1600 fi
1601
1602 if test -z "$CC"; then
1603   if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}cc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="cc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684   # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694   ac_prog_rejected=no
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703        ac_prog_rejected=yes
1704        continue
1705      fi
1706     ac_cv_prog_CC="cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 if test $ac_prog_rejected = yes; then
1714   # We found a bogon in the path, so make sure we never use it.
1715   set dummy $ac_cv_prog_CC
1716   shift
1717   if test $# != 0; then
1718     # We chose a different compiler from the bogus one.
1719     # However, it has the same basename, so the bogon will be chosen
1720     # first if we set CC to just the basename; use the full file name.
1721     shift
1722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1723   fi
1724 fi
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729   echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 fi
1737 if test -z "$CC"; then
1738   if test -n "$ac_tool_prefix"; then
1739   for ac_prog in cl
1740   do
1741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776     test -n "$CC" && break
1777   done
1778 fi
1779 if test -z "$CC"; then
1780   ac_ct_CC=$CC
1781   for ac_prog in cl
1782 do
1783   # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_CC"; then
1791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_CC="$ac_prog"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   test -n "$ac_ct_CC" && break
1819 done
1820
1821   CC=$ac_ct_CC
1822 fi
1823
1824 fi
1825
1826
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835      "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838   (eval $ac_compiler --version </dev/null >&5) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843   (eval $ac_compiler -v </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848   (eval $ac_compiler -V </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1875 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 #line $LINENO "configure"
2012 /* confdefs.h.  */
2013 _ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h.  */
2017
2018 int
2019 main ()
2020 {
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; then
2032   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033   case $ac_file in
2034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036        break;;
2037   esac
2038 done
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047    { (exit 1); exit 1; }; }
2048 fi
2049
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2055 ac_objext=$OBJEXT
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072 #ifndef __GNUC__
2073        choke me
2074 #endif
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_compiler_gnu=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_compiler_gnu=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101
2102 fi
2103 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2104 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2105 GCC=`test $ac_compiler_gnu = yes && echo yes`
2106 ac_test_CFLAGS=${CFLAGS+set}
2107 ac_save_CFLAGS=$CFLAGS
2108 CFLAGS="-g"
2109 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2110 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2111 if test "${ac_cv_prog_cc_g+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 /* confdefs.h.  */
2117 _ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h.  */
2121
2122 int
2123 main ()
2124 {
2125
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132   (eval $ac_compile) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -s conftest.$ac_objext'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; }; then
2142   ac_cv_prog_cc_g=yes
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_cv_prog_cc_g=no
2148 fi
2149 rm -f conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154   CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156   if test "$GCC" = yes; then
2157     CFLAGS="-g -O2"
2158   else
2159     CFLAGS="-g"
2160   fi
2161 else
2162   if test "$GCC" = yes; then
2163     CFLAGS="-O2"
2164   else
2165     CFLAGS=
2166   fi
2167 fi
2168 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2169 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   ac_cv_prog_cc_stdc=no
2174 ac_save_CC=$CC
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2177 /* confdefs.h.  */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h.  */
2182 #include <stdarg.h>
2183 #include <stdio.h>
2184 #include <sys/types.h>
2185 #include <sys/stat.h>
2186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2187 struct buf { int x; };
2188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2189 static char *e (p, i)
2190      char **p;
2191      int i;
2192 {
2193   return p[i];
2194 }
2195 static char *f (char * (*g) (char **, int), char **p, ...)
2196 {
2197   char *s;
2198   va_list v;
2199   va_start (v,p);
2200   s = g (p, va_arg (v,int));
2201   va_end (v);
2202   return s;
2203 }
2204 int test (int i, double x);
2205 struct s1 {int (*f) (int a);};
2206 struct s2 {int (*f) (double a);};
2207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2208 int argc;
2209 char **argv;
2210 int
2211 main ()
2212 {
2213 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 # Don't try gcc -ansi; that turns off useful extensions and
2219 # breaks some systems' header files.
2220 # AIX                   -qlanglvl=ansi
2221 # Ultrix and OSF/1      -std1
2222 # HP-UX 10.20 and later -Ae
2223 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2224 # SVR4                  -Xc -D__EXTENSIONS__
2225 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2226 do
2227   CC="$ac_save_CC $ac_arg"
2228   rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230   (eval $ac_compile) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); } &&
2234          { ac_try='test -s conftest.$ac_objext'
2235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236   (eval $ac_try) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240   ac_cv_prog_cc_stdc=$ac_arg
2241 break
2242 else
2243   echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 fi
2247 rm -f conftest.$ac_objext
2248 done
2249 rm -f conftest.$ac_ext conftest.$ac_objext
2250 CC=$ac_save_CC
2251
2252 fi
2253
2254 case "x$ac_cv_prog_cc_stdc" in
2255   x|xno)
2256     echo "$as_me:$LINENO: result: none needed" >&5
2257 echo "${ECHO_T}none needed" >&6 ;;
2258   *)
2259     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2260 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2261     CC="$CC $ac_cv_prog_cc_stdc" ;;
2262 esac
2263
2264 # Some people use a C++ compiler to compile C.  Since we use `exit',
2265 # in C++ we need to declare it.  In case someone uses the same compiler
2266 # for both compiling C and C++ we need to have the C++ compiler decide
2267 # the declaration of exit, since it's the most demanding environment.
2268 cat >conftest.$ac_ext <<_ACEOF
2269 #ifndef __cplusplus
2270   choke me
2271 #endif
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275   (eval $ac_compile) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); } &&
2279          { ac_try='test -s conftest.$ac_objext'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285   for ac_declaration in \
2286    ''\
2287    '#include <stdlib.h>' \
2288    'extern "C" void std::exit (int) throw (); using std::exit;' \
2289    'extern "C" void std::exit (int); using std::exit;' \
2290    'extern "C" void exit (int) throw ();' \
2291    'extern "C" void exit (int);' \
2292    'void exit (int);'
2293 do
2294   cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301 #include <stdlib.h>
2302 $ac_declaration
2303 int
2304 main ()
2305 {
2306 exit (42);
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); } &&
2317          { ac_try='test -s conftest.$ac_objext'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323   :
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 continue
2329 fi
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331   cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338 $ac_declaration
2339 int
2340 main ()
2341 {
2342 exit (42);
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   (eval $ac_compile) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -s conftest.$ac_objext'
2354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355   (eval $ac_try) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; }; then
2359   break
2360 else
2361   echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 fi
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2366 done
2367 rm -f conftest*
2368 if test -n "$ac_declaration"; then
2369   echo '#ifdef __cplusplus' >>confdefs.h
2370   echo $ac_declaration      >>confdefs.h
2371   echo '#endif'             >>confdefs.h
2372 fi
2373
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 fi
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386 ac_ext=cc
2387 ac_cpp='$CXXCPP $CPPFLAGS'
2388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2393   do
2394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2396 echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398 if test "${ac_cv_prog_CXX+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   if test -n "$CXX"; then
2402   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409   for ac_exec_ext in '' $ac_executable_extensions; do
2410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416 done
2417
2418 fi
2419 fi
2420 CXX=$ac_cv_prog_CXX
2421 if test -n "$CXX"; then
2422   echo "$as_me:$LINENO: result: $CXX" >&5
2423 echo "${ECHO_T}$CXX" >&6
2424 else
2425   echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2427 fi
2428
2429     test -n "$CXX" && break
2430   done
2431 fi
2432 if test -z "$CXX"; then
2433   ac_ct_CXX=$CXX
2434   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2435 do
2436   # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$ac_ct_CXX"; then
2444   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453     ac_cv_prog_ac_ct_CXX="$ac_prog"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459
2460 fi
2461 fi
2462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2463 if test -n "$ac_ct_CXX"; then
2464   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2465 echo "${ECHO_T}$ac_ct_CXX" >&6
2466 else
2467   echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2469 fi
2470
2471   test -n "$ac_ct_CXX" && break
2472 done
2473 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2474
2475   CXX=$ac_ct_CXX
2476 fi
2477
2478
2479 # Provide some information about the compiler.
2480 echo "$as_me:$LINENO:" \
2481      "checking for C++ compiler version" >&5
2482 ac_compiler=`set X $ac_compile; echo $2`
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2484   (eval $ac_compiler --version </dev/null >&5) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2489   (eval $ac_compiler -v </dev/null >&5) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2494   (eval $ac_compiler -V </dev/null >&5) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }
2498
2499 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2500 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2501 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   cat >conftest.$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511
2512 int
2513 main ()
2514 {
2515 #ifndef __GNUC__
2516        choke me
2517 #endif
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_compiler_gnu=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_compiler_gnu=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2544
2545 fi
2546 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2548 GXX=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CXXFLAGS=${CXXFLAGS+set}
2550 ac_save_CXXFLAGS=$CXXFLAGS
2551 CXXFLAGS="-g"
2552 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2553 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cxx_g+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575   (eval $ac_compile) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -s conftest.$ac_objext'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585   ac_cv_prog_cxx_g=yes
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 ac_cv_prog_cxx_g=no
2591 fi
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2593 fi
2594 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2596 if test "$ac_test_CXXFLAGS" = set; then
2597   CXXFLAGS=$ac_save_CXXFLAGS
2598 elif test $ac_cv_prog_cxx_g = yes; then
2599   if test "$GXX" = yes; then
2600     CXXFLAGS="-g -O2"
2601   else
2602     CXXFLAGS="-g"
2603   fi
2604 else
2605   if test "$GXX" = yes; then
2606     CXXFLAGS="-O2"
2607   else
2608     CXXFLAGS=
2609   fi
2610 fi
2611 for ac_declaration in \
2612    ''\
2613    '#include <stdlib.h>' \
2614    'extern "C" void std::exit (int) throw (); using std::exit;' \
2615    'extern "C" void std::exit (int); using std::exit;' \
2616    'extern "C" void exit (int) throw ();' \
2617    'extern "C" void exit (int);' \
2618    'void exit (int);'
2619 do
2620   cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627 #include <stdlib.h>
2628 $ac_declaration
2629 int
2630 main ()
2631 {
2632 exit (42);
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639   (eval $ac_compile) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   :
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 continue
2655 fi
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657   cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664 $ac_declaration
2665 int
2666 main ()
2667 {
2668 exit (42);
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675   (eval $ac_compile) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   break
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 fi
2691 rm -f conftest.$ac_objext conftest.$ac_ext
2692 done
2693 rm -f conftest*
2694 if test -n "$ac_declaration"; then
2695   echo '#ifdef __cplusplus' >>confdefs.h
2696   echo $ac_declaration      >>confdefs.h
2697   echo '#endif'             >>confdefs.h
2698 fi
2699
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705
2706 if test "x$CC" != xcc; then
2707   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2708 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2709 else
2710   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2711 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2712 fi
2713 set dummy $CC; ac_cc=`echo $2 |
2714                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2715 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   cat >conftest.$ac_ext <<_ACEOF
2719 #line $LINENO "configure"
2720 /* confdefs.h.  */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h.  */
2725
2726 int
2727 main ()
2728 {
2729
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 # Make sure it works both with $CC and with simple cc.
2735 # We do the test twice because some compilers refuse to overwrite an
2736 # existing .o file with -o, though they will create one.
2737 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2738 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); };
2748 then
2749   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2750   if test "x$CC" != xcc; then
2751     # Test first that cc exists at all.
2752     if { ac_try='cc -c conftest.$ac_ext >&5'
2753   { (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); }; }; then
2758       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2759       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); };
2769       then
2770         # cc works too.
2771         :
2772       else
2773         # cc exists but doesn't like -o.
2774         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2775       fi
2776     fi
2777   fi
2778 else
2779   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2780 fi
2781 rm -f conftest*
2782
2783 fi
2784 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2785   echo "$as_me:$LINENO: result: yes" >&5
2786 echo "${ECHO_T}yes" >&6
2787 else
2788   echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790
2791 cat >>confdefs.h <<\_ACEOF
2792 #define NO_MINUS_C_MINUS_O 1
2793 _ACEOF
2794
2795 fi
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2804 # On Suns, sometimes $CPP names a directory.
2805 if test -n "$CPP" && test -d "$CPP"; then
2806   CPP=
2807 fi
2808 if test -z "$CPP"; then
2809   if test "${ac_cv_prog_CPP+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812       # Double quotes because CPP needs to be expanded
2813     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2814     do
2815       ac_preproc_ok=false
2816 for ac_c_preproc_warn_flag in '' yes
2817 do
2818   # Use a header file that comes with gcc, so configuring glibc
2819   # with a fresh cross-compiler works.
2820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2821   # <limits.h> exists even on freestanding compilers.
2822   # On the NeXT, cc -E runs the code through the compiler's parser,
2823   # not just through cpp. "Syntax error" is here to catch this case.
2824   cat >conftest.$ac_ext <<_ACEOF
2825 #line $LINENO "configure"
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831 #ifdef __STDC__
2832 # include <limits.h>
2833 #else
2834 # include <assert.h>
2835 #endif
2836                      Syntax error
2837 _ACEOF
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } >/dev/null; then
2846   if test -s conftest.err; then
2847     ac_cpp_err=$ac_c_preproc_warn_flag
2848   else
2849     ac_cpp_err=
2850   fi
2851 else
2852   ac_cpp_err=yes
2853 fi
2854 if test -z "$ac_cpp_err"; then
2855   :
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860   # Broken: fails on valid input.
2861 continue
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865   # OK, works on sane cases.  Now check whether non-existent headers
2866   # can be detected and how.
2867   cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874 #include <ac_nonexistent.h>
2875 _ACEOF
2876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2878   ac_status=$?
2879   grep -v '^ *+' conftest.er1 >conftest.err
2880   rm -f conftest.er1
2881   cat conftest.err >&5
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); } >/dev/null; then
2884   if test -s conftest.err; then
2885     ac_cpp_err=$ac_c_preproc_warn_flag
2886   else
2887     ac_cpp_err=
2888   fi
2889 else
2890   ac_cpp_err=yes
2891 fi
2892 if test -z "$ac_cpp_err"; then
2893   # Broken: success on invalid input.
2894 continue
2895 else
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899   # Passes both tests.
2900 ac_preproc_ok=:
2901 break
2902 fi
2903 rm -f conftest.err conftest.$ac_ext
2904
2905 done
2906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2907 rm -f conftest.err conftest.$ac_ext
2908 if $ac_preproc_ok; then
2909   break
2910 fi
2911
2912     done
2913     ac_cv_prog_CPP=$CPP
2914
2915 fi
2916   CPP=$ac_cv_prog_CPP
2917 else
2918   ac_cv_prog_CPP=$CPP
2919 fi
2920 echo "$as_me:$LINENO: result: $CPP" >&5
2921 echo "${ECHO_T}$CPP" >&6
2922 ac_preproc_ok=false
2923 for ac_c_preproc_warn_flag in '' yes
2924 do
2925   # Use a header file that comes with gcc, so configuring glibc
2926   # with a fresh cross-compiler works.
2927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928   # <limits.h> exists even on freestanding compilers.
2929   # On the NeXT, cc -E runs the code through the compiler's parser,
2930   # not just through cpp. "Syntax error" is here to catch this case.
2931   cat >conftest.$ac_ext <<_ACEOF
2932 #line $LINENO "configure"
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938 #ifdef __STDC__
2939 # include <limits.h>
2940 #else
2941 # include <assert.h>
2942 #endif
2943                      Syntax error
2944 _ACEOF
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } >/dev/null; then
2953   if test -s conftest.err; then
2954     ac_cpp_err=$ac_c_preproc_warn_flag
2955   else
2956     ac_cpp_err=
2957   fi
2958 else
2959   ac_cpp_err=yes
2960 fi
2961 if test -z "$ac_cpp_err"; then
2962   :
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967   # Broken: fails on valid input.
2968 continue
2969 fi
2970 rm -f conftest.err conftest.$ac_ext
2971
2972   # OK, works on sane cases.  Now check whether non-existent headers
2973   # can be detected and how.
2974   cat >conftest.$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #include <ac_nonexistent.h>
2982 _ACEOF
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } >/dev/null; then
2991   if test -s conftest.err; then
2992     ac_cpp_err=$ac_c_preproc_warn_flag
2993   else
2994     ac_cpp_err=
2995   fi
2996 else
2997   ac_cpp_err=yes
2998 fi
2999 if test -z "$ac_cpp_err"; then
3000   # Broken: success on invalid input.
3001 continue
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006   # Passes both tests.
3007 ac_preproc_ok=:
3008 break
3009 fi
3010 rm -f conftest.err conftest.$ac_ext
3011
3012 done
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3016   :
3017 else
3018   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&2;}
3022    { (exit 1); exit 1; }; }
3023 fi
3024
3025 ac_ext=c
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031
3032 echo "$as_me:$LINENO: checking for egrep" >&5
3033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3034 if test "${ac_cv_prog_egrep+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3038     then ac_cv_prog_egrep='grep -E'
3039     else ac_cv_prog_egrep='egrep'
3040     fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3043 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3044  EGREP=$ac_cv_prog_egrep
3045
3046
3047 if test $ac_cv_c_compiler_gnu = yes; then
3048     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3049 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3050 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053     ac_pattern="Autoconf.*'x'"
3054   cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #include <sgtty.h>
3062 Autoconf TIOCGETP
3063 _ACEOF
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3066   ac_cv_prog_gcc_traditional=yes
3067 else
3068   ac_cv_prog_gcc_traditional=no
3069 fi
3070 rm -f conftest*
3071
3072
3073   if test $ac_cv_prog_gcc_traditional = no; then
3074     cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #include <termio.h>
3082 Autoconf TCGETA
3083 _ACEOF
3084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3085   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3086   ac_cv_prog_gcc_traditional=yes
3087 fi
3088 rm -f conftest*
3089
3090   fi
3091 fi
3092 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3093 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3094   if test $ac_cv_prog_gcc_traditional = yes; then
3095     CC="$CC -traditional"
3096   fi
3097 fi
3098
3099 if test x$CC = xgcc
3100 then
3101    cat >>confdefs.h <<\_ACEOF
3102 #define HAVE_GCC 1
3103 _ACEOF
3104
3105 fi
3106
3107 # Find a good install program.  We prefer a C program (faster),
3108 # so one script is as good as another.  But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3113 # AIX /bin/install
3114 # AmigaOS /C/install, which installs bootblocks on floppy discs
3115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3118 # ./install, which can be erroneously created by make from ./install.sh.
3119 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3121 if test -z "$INSTALL"; then
3122 if test "${ac_cv_path_install+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130   # Account for people who put trailing slashes in PATH elements.
3131 case $as_dir/ in
3132   ./ | .// | /cC/* | \
3133   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3134   /usr/ucb/* ) ;;
3135   *)
3136     # OSF1 and SCO ODT 3.0 have their own names for install.
3137     # Don't use installbsd from OSF since it installs stuff as root
3138     # by default.
3139     for ac_prog in ginstall scoinst install; do
3140       for ac_exec_ext in '' $ac_executable_extensions; do
3141         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3142           if test $ac_prog = install &&
3143             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3144             # AIX install.  It has an incompatible calling convention.
3145             :
3146           elif test $ac_prog = install &&
3147             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148             # program-specific install script used by HP pwplus--don't use.
3149             :
3150           else
3151             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3152             break 3
3153           fi
3154         fi
3155       done
3156     done
3157     ;;
3158 esac
3159 done
3160
3161
3162 fi
3163   if test "${ac_cv_path_install+set}" = set; then
3164     INSTALL=$ac_cv_path_install
3165   else
3166     # As a last resort, use the slow shell script.  We don't cache a
3167     # path for INSTALL within a source directory, because that will
3168     # break other packages using the cache if that directory is
3169     # removed, or if the path is relative.
3170     INSTALL=$ac_install_sh
3171   fi
3172 fi
3173 echo "$as_me:$LINENO: result: $INSTALL" >&5
3174 echo "${ECHO_T}$INSTALL" >&6
3175
3176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3177 # It thinks the first close brace ends the variable substitution.
3178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3179
3180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3181
3182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3183
3184 if test -n "$ac_tool_prefix"; then
3185   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3187 echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189 if test "${ac_cv_prog_RANLIB+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   if test -n "$RANLIB"; then
3193   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   test -z "$as_dir" && as_dir=.
3200   for ac_exec_ext in '' $ac_executable_extensions; do
3201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204     break 2
3205   fi
3206 done
3207 done
3208
3209 fi
3210 fi
3211 RANLIB=$ac_cv_prog_RANLIB
3212 if test -n "$RANLIB"; then
3213   echo "$as_me:$LINENO: result: $RANLIB" >&5
3214 echo "${ECHO_T}$RANLIB" >&6
3215 else
3216   echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3218 fi
3219
3220 fi
3221 if test -z "$ac_cv_prog_RANLIB"; then
3222   ac_ct_RANLIB=$RANLIB
3223   # Extract the first word of "ranlib", so it can be a program name with args.
3224 set dummy ranlib; ac_word=$2
3225 echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   if test -n "$ac_ct_RANLIB"; then
3231   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238   for ac_exec_ext in '' $ac_executable_extensions; do
3239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240     ac_cv_prog_ac_ct_RANLIB="ranlib"
3241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245 done
3246
3247   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3248 fi
3249 fi
3250 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3251 if test -n "$ac_ct_RANLIB"; then
3252   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3253 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3254 else
3255   echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3257 fi
3258
3259   RANLIB=$ac_ct_RANLIB
3260 else
3261   RANLIB="$ac_cv_prog_RANLIB"
3262 fi
3263
3264 # Extract the first word of "mv", so it can be a program name with args.
3265 set dummy mv; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_path_MV+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   case $MV in
3272   [\\/]* | ?:[\\/]*)
3273   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3274   ;;
3275   *)
3276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_exec_ext in '' $ac_executable_extensions; do
3282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288 done
3289
3290   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3291   ;;
3292 esac
3293 fi
3294 MV=$ac_cv_path_MV
3295
3296 if test -n "$MV"; then
3297   echo "$as_me:$LINENO: result: $MV" >&5
3298 echo "${ECHO_T}$MV" >&6
3299 else
3300   echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3302 fi
3303
3304 # Extract the first word of "rm", so it can be a program name with args.
3305 set dummy rm; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_RM+set}" = set; then
3309   echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311   case $RM in
3312   [\\/]* | ?:[\\/]*)
3313   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3314   ;;
3315   *)
3316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329
3330   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3331   ;;
3332 esac
3333 fi
3334 RM=$ac_cv_path_RM
3335
3336 if test -n "$RM"; then
3337   echo "$as_me:$LINENO: result: $RM" >&5
3338 echo "${ECHO_T}$RM" >&6
3339 else
3340   echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3342 fi
3343
3344 # Extract the first word of "cp", so it can be a program name with args.
3345 set dummy cp; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_CP+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   case $CP in
3352   [\\/]* | ?:[\\/]*)
3353   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3354   ;;
3355   *)
3356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361   for ac_exec_ext in '' $ac_executable_extensions; do
3362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368 done
3369
3370   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3371   ;;
3372 esac
3373 fi
3374 CP=$ac_cv_path_CP
3375
3376 if test -n "$CP"; then
3377   echo "$as_me:$LINENO: result: $CP" >&5
3378 echo "${ECHO_T}$CP" >&6
3379 else
3380   echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3382 fi
3383
3384 # Extract the first word of "sed", so it can be a program name with args.
3385 set dummy sed; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_SED+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   case $SED in
3392   [\\/]* | ?:[\\/]*)
3393   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3394   ;;
3395   *)
3396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409
3410   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3411   ;;
3412 esac
3413 fi
3414 SED=$ac_cv_path_SED
3415
3416 if test -n "$SED"; then
3417   echo "$as_me:$LINENO: result: $SED" >&5
3418 echo "${ECHO_T}$SED" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424 # Extract the first word of "awk", so it can be a program name with args.
3425 set dummy awk; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_AWK+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   case $AWK in
3432   [\\/]* | ?:[\\/]*)
3433   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3434   ;;
3435   *)
3436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for ac_exec_ext in '' $ac_executable_extensions; do
3442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448 done
3449
3450   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3451   ;;
3452 esac
3453 fi
3454 AWK=$ac_cv_path_AWK
3455
3456 if test -n "$AWK"; then
3457   echo "$as_me:$LINENO: result: $AWK" >&5
3458 echo "${ECHO_T}$AWK" >&6
3459 else
3460   echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462 fi
3463
3464 # Extract the first word of "echo", so it can be a program name with args.
3465 set dummy echo; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_ECHO+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   case $ECHO in
3472   [\\/]* | ?:[\\/]*)
3473   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3474   ;;
3475   *)
3476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3491   ;;
3492 esac
3493 fi
3494 ECHO=$ac_cv_path_ECHO
3495
3496 if test -n "$ECHO"; then
3497   echo "$as_me:$LINENO: result: $ECHO" >&5
3498 echo "${ECHO_T}$ECHO" >&6
3499 else
3500   echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3502 fi
3503
3504 # Extract the first word of "cmp", so it can be a program name with args.
3505 set dummy cmp; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_CMP+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   case $CMP in
3512   [\\/]* | ?:[\\/]*)
3513   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3514   ;;
3515   *)
3516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529
3530   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3531   ;;
3532 esac
3533 fi
3534 CMP=$ac_cv_path_CMP
3535
3536 if test -n "$CMP"; then
3537   echo "$as_me:$LINENO: result: $CMP" >&5
3538 echo "${ECHO_T}$CMP" >&6
3539 else
3540   echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 fi
3543
3544 # Extract the first word of "tbl", so it can be a program name with args.
3545 set dummy tbl; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_TBL+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   case $TBL in
3552   [\\/]* | ?:[\\/]*)
3553   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3554   ;;
3555   *)
3556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   for ac_exec_ext in '' $ac_executable_extensions; do
3562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568 done
3569
3570   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3571   ;;
3572 esac
3573 fi
3574 TBL=$ac_cv_path_TBL
3575
3576 if test -n "$TBL"; then
3577   echo "$as_me:$LINENO: result: $TBL" >&5
3578 echo "${ECHO_T}$TBL" >&6
3579 else
3580   echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3582 fi
3583
3584 # Extract the first word of "ar", so it can be a program name with args.
3585 set dummy ar; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_AR+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   case $AR in
3592   [\\/]* | ?:[\\/]*)
3593   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3594   ;;
3595   *)
3596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_exec_ext in '' $ac_executable_extensions; do
3602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608 done
3609
3610   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3611   ;;
3612 esac
3613 fi
3614 AR=$ac_cv_path_AR
3615
3616 if test -n "$AR"; then
3617   echo "$as_me:$LINENO: result: $AR" >&5
3618 echo "${ECHO_T}$AR" >&6
3619 else
3620   echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3622 fi
3623
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625 set dummy ranlib; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_RANLIB+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   case $RANLIB in
3632   [\\/]* | ?:[\\/]*)
3633   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3634   ;;
3635   *)
3636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_exec_ext in '' $ac_executable_extensions; do
3642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648 done
3649
3650   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3651   ;;
3652 esac
3653 fi
3654 RANLIB=$ac_cv_path_RANLIB
3655
3656 if test -n "$RANLIB"; then
3657   echo "$as_me:$LINENO: result: $RANLIB" >&5
3658 echo "${ECHO_T}$RANLIB" >&6
3659 else
3660   echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662 fi
3663
3664 # Extract the first word of "openssl", so it can be a program name with args.
3665 set dummy openssl; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_OPENSSL+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   case $OPENSSL in
3672   [\\/]* | ?:[\\/]*)
3673   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3674   ;;
3675   *)
3676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   for ac_exec_ext in '' $ac_executable_extensions; do
3682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688 done
3689
3690   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3691   ;;
3692 esac
3693 fi
3694 OPENSSL=$ac_cv_path_OPENSSL
3695
3696 if test -n "$OPENSSL"; then
3697   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3698 echo "${ECHO_T}$OPENSSL" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703
3704 # Extract the first word of "mtx", so it can be a program name with args.
3705 set dummy mtx; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_MTX+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   case $MTX in
3712   [\\/]* | ?:[\\/]*)
3713   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3714   ;;
3715   *)
3716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728 done
3729
3730   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3731   ;;
3732 esac
3733 fi
3734 MTX=$ac_cv_path_MTX
3735
3736 if test -n "$MTX"; then
3737   echo "$as_me:$LINENO: result: $MTX" >&5
3738 echo "${ECHO_T}$MTX" >&6
3739 else
3740   echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3742 fi
3743
3744 # Extract the first word of "pkg-config", so it can be a program name with args.
3745 set dummy pkg-config; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   case $PKGCONFIG in
3752   [\\/]* | ?:[\\/]*)
3753   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3754   ;;
3755   *)
3756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761   for ac_exec_ext in '' $ac_executable_extensions; do
3762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768 done
3769
3770   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3771   ;;
3772 esac
3773 fi
3774 PKGCONFIG=$ac_cv_path_PKGCONFIG
3775
3776 if test -n "$PKGCONFIG"; then
3777   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3778 echo "${ECHO_T}$PKGCONFIG" >&6
3779 else
3780   echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 test -n "$ARFLAG" || ARFLAGS="cr"
3786
3787
3788 MAKE_SHELL=/bin/sh
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798 echo "$as_me:$LINENO: checking for Operating System" >&5
3799 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3800
3801 case $host_os in
3802   *cygwin* ) CYGWIN=yes;;
3803          * ) CYGWIN=no;;
3804 esac
3805
3806 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3807 then
3808
3809
3810 if $TRUEPRG; then
3811   HAVE_SUN_OS_TRUE=
3812   HAVE_SUN_OS_FALSE='#'
3813 else
3814   HAVE_SUN_OS_TRUE='#'
3815   HAVE_SUN_OS_FALSE=
3816 fi
3817         cat >>confdefs.h <<\_ACEOF
3818 #define HAVE_SUN_OS 1
3819 _ACEOF
3820
3821 else
3822
3823
3824 if $FALSEPRG; then
3825   HAVE_SUN_OS_TRUE=
3826   HAVE_SUN_OS_FALSE='#'
3827 else
3828   HAVE_SUN_OS_TRUE='#'
3829   HAVE_SUN_OS_FALSE=
3830 fi
3831 fi
3832
3833 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3834 then
3835
3836
3837 if $TRUEPRG; then
3838   HAVE_OSF1_OS_TRUE=
3839   HAVE_OSF1_OS_FALSE='#'
3840 else
3841   HAVE_OSF1_OS_TRUE='#'
3842   HAVE_OSF1_OS_FALSE=
3843 fi
3844         cat >>confdefs.h <<\_ACEOF
3845 #define HAVE_OSF1_OS 1
3846 _ACEOF
3847
3848 else
3849
3850
3851 if $FALSEPRG; then
3852   HAVE_OSF1_OS_TRUE=
3853   HAVE_OSF1_OS_FALSE='#'
3854 else
3855   HAVE_OSF1_OS_TRUE='#'
3856   HAVE_OSF1_OS_FALSE=
3857 fi
3858 fi
3859
3860 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3861 then
3862
3863
3864 if $TRUEPRG; then
3865   HAVE_AIX_OS_TRUE=
3866   HAVE_AIX_OS_FALSE='#'
3867 else
3868   HAVE_AIX_OS_TRUE='#'
3869   HAVE_AIX_OS_FALSE=
3870 fi
3871         cat >>confdefs.h <<\_ACEOF
3872 #define HAVE_AIX_OS 1
3873 _ACEOF
3874
3875 else
3876
3877
3878 if $FALSEPRG; then
3879   HAVE_AIX_OS_TRUE=
3880   HAVE_AIX_OS_FALSE='#'
3881 else
3882   HAVE_AIX_OS_TRUE='#'
3883   HAVE_AIX_OS_FALSE=
3884 fi
3885 fi
3886
3887 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3888 then
3889
3890
3891 if $TRUEPRG; then
3892   HAVE_HPUX_OS_TRUE=
3893   HAVE_HPUX_OS_FALSE='#'
3894 else
3895   HAVE_HPUX_OS_TRUE='#'
3896   HAVE_HPUX_OS_FALSE=
3897 fi
3898         cat >>confdefs.h <<\_ACEOF
3899 #define HAVE_HPUX_OS 1
3900 _ACEOF
3901
3902 else
3903
3904
3905 if $FALSEPRG; then
3906   HAVE_HPUX_OS_TRUE=
3907   HAVE_HPUX_OS_FALSE='#'
3908 else
3909   HAVE_HPUX_OS_TRUE='#'
3910   HAVE_HPUX_OS_FALSE=
3911 fi
3912 fi
3913
3914 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3915 then
3916
3917
3918 if $TRUEPRG; then
3919   HAVE_LINUX_OS_TRUE=
3920   HAVE_LINUX_OS_FALSE='#'
3921 else
3922   HAVE_LINUX_OS_TRUE='#'
3923   HAVE_LINUX_OS_FALSE=
3924 fi
3925         cat >>confdefs.h <<\_ACEOF
3926 #define HAVE_LINUX_OS 1
3927 _ACEOF
3928
3929 else
3930
3931
3932 if $FALSEPRG; then
3933   HAVE_LINUX_OS_TRUE=
3934   HAVE_LINUX_OS_FALSE='#'
3935 else
3936   HAVE_LINUX_OS_TRUE='#'
3937   HAVE_LINUX_OS_FALSE=
3938 fi
3939 fi
3940
3941 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3942 then
3943
3944
3945 if $TRUEPRG; then
3946   HAVE_FREEBSD_OS_TRUE=
3947   HAVE_FREEBSD_OS_FALSE='#'
3948 else
3949   HAVE_FREEBSD_OS_TRUE='#'
3950   HAVE_FREEBSD_OS_FALSE=
3951 fi
3952         cat >>confdefs.h <<\_ACEOF
3953 #define HAVE_FREEBSD_OS 1
3954 _ACEOF
3955
3956 else
3957
3958
3959 if $FALSEPRG; then
3960   HAVE_FREEBSD_OS_TRUE=
3961   HAVE_FREEBSD_OS_FALSE='#'
3962 else
3963   HAVE_FREEBSD_OS_TRUE='#'
3964   HAVE_FREEBSD_OS_FALSE=
3965 fi
3966 fi
3967
3968 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3969 then
3970
3971
3972 if $TRUEPRG; then
3973   HAVE_NETBSD_OS_TRUE=
3974   HAVE_NETBSD_OS_FALSE='#'
3975 else
3976   HAVE_NETBSD_OS_TRUE='#'
3977   HAVE_NETBSD_OS_FALSE=
3978 fi
3979         cat >>confdefs.h <<\_ACEOF
3980 #define HAVE_NETBSD_OS 1
3981 _ACEOF
3982
3983 else
3984
3985
3986 if $FALSEPRG; then
3987   HAVE_NETBSD_OS_TRUE=
3988   HAVE_NETBSD_OS_FALSE='#'
3989 else
3990   HAVE_NETBSD_OS_TRUE='#'
3991   HAVE_NETBSD_OS_FALSE=
3992 fi
3993 fi
3994
3995 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3996 then
3997
3998
3999 if $TRUEPRG; then
4000   HAVE_OPENBSD_OS_TRUE=
4001   HAVE_OPENBSD_OS_FALSE='#'
4002 else
4003   HAVE_OPENBSD_OS_TRUE='#'
4004   HAVE_OPENBSD_OS_FALSE=
4005 fi
4006         cat >>confdefs.h <<\_ACEOF
4007 #define HAVE_OPENBSD_OS 1
4008 _ACEOF
4009
4010 else
4011
4012
4013 if $FALSEPRG; then
4014   HAVE_OPENBSD_OS_TRUE=
4015   HAVE_OPENBSD_OS_FALSE='#'
4016 else
4017   HAVE_OPENBSD_OS_TRUE='#'
4018   HAVE_OPENBSD_OS_FALSE=
4019 fi
4020 fi
4021
4022 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4023 then
4024
4025
4026 if $TRUEPRG; then
4027   HAVE_BSDI_OS_TRUE=
4028   HAVE_BSDI_OS_FALSE='#'
4029 else
4030   HAVE_BSDI_OS_TRUE='#'
4031   HAVE_BSDI_OS_FALSE=
4032 fi
4033         cat >>confdefs.h <<\_ACEOF
4034 #define HAVE_BSDI_OS 1
4035 _ACEOF
4036
4037 else
4038
4039
4040 if $FALSEPRG; then
4041   HAVE_BSDI_OS_TRUE=
4042   HAVE_BSDI_OS_FALSE='#'
4043 else
4044   HAVE_BSDI_OS_TRUE='#'
4045   HAVE_BSDI_OS_FALSE=
4046 fi
4047 fi
4048
4049 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4050 then
4051
4052
4053 if $TRUEPRG; then
4054   HAVE_SGI_OS_TRUE=
4055   HAVE_SGI_OS_FALSE='#'
4056 else
4057   HAVE_SGI_OS_TRUE='#'
4058   HAVE_SGI_OS_FALSE=
4059 fi
4060         cat >>confdefs.h <<\_ACEOF
4061 #define HAVE_SGI_OS 1
4062 _ACEOF
4063
4064 else
4065
4066
4067 if $FALSEPRG; then
4068   HAVE_SGI_OS_TRUE=
4069   HAVE_SGI_OS_FALSE='#'
4070 else
4071   HAVE_SGI_OS_TRUE='#'
4072   HAVE_SGI_OS_FALSE=
4073 fi
4074 fi
4075
4076 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4077 then
4078
4079
4080 if $TRUEPRG; then
4081   HAVE_IRIX_OS_TRUE=
4082   HAVE_IRIX_OS_FALSE='#'
4083 else
4084   HAVE_IRIX_OS_TRUE='#'
4085   HAVE_IRIX_OS_FALSE=
4086 fi
4087         cat >>confdefs.h <<\_ACEOF
4088 #define HAVE_IRIX_OS 1
4089 _ACEOF
4090
4091 else
4092
4093
4094 if $FALSEPRG; then
4095   HAVE_IRIX_OS_TRUE=
4096   HAVE_IRIX_OS_FALSE='#'
4097 else
4098   HAVE_IRIX_OS_TRUE='#'
4099   HAVE_IRIX_OS_FALSE=
4100 fi
4101 fi
4102
4103 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4104 then
4105
4106
4107 if $TRUEPRG; then
4108   HAVE_DARWIN_OS_TRUE=
4109   HAVE_DARWIN_OS_FALSE='#'
4110 else
4111   HAVE_DARWIN_OS_TRUE='#'
4112   HAVE_DARWIN_OS_FALSE=
4113 fi
4114     cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_DARWIN_OS 1
4116 _ACEOF
4117
4118 else
4119
4120
4121 if $FALSEPRG; then
4122   HAVE_DARWIN_OS_TRUE=
4123   HAVE_DARWIN_OS_FALSE='#'
4124 else
4125   HAVE_DARWIN_OS_TRUE='#'
4126   HAVE_DARWIN_OS_FALSE=
4127 fi
4128 fi
4129
4130 echo "$as_me:$LINENO: result: \" \"" >&5
4131 echo "${ECHO_T}\" \"" >&6
4132
4133
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4139 then
4140         echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4142 then
4143         DISTNAME=alpha
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4145 then
4146         DISTNAME=aix
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4148 then
4149         DISTNAME=hpux
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4151 then
4152         DISTNAME=solaris
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4154 then
4155         DISTNAME=freebsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4157 then
4158         DISTNAME=netbsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4160 then
4161         DISTNAME=openbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4163 then
4164         DISTNAME=irix
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4166 then
4167         DISTNAME=bsdi
4168 elif test -f /etc/SuSE-release
4169 then
4170         DISTNAME=suse
4171 elif test -d /etc/SuSEconfig
4172 then
4173         DISTNAME=suse5
4174 elif test -f /etc/mandrake-release
4175 then
4176         DISTNAME=mandrake
4177 elif test -f /etc/redhat-release
4178 then
4179         DISTNAME=redhat
4180 elif test -f /etc/gentoo-release
4181 then
4182         DISTNAME=gentoo
4183 elif test -f /etc/debian_version
4184 then
4185         DISTNAME=debian
4186 elif test -f /etc/slackware-version
4187 then
4188         DISTNAME=slackware
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4190 then
4191     DISTNAME=darwin
4192 elif test -f /etc/engarde-version
4193 then
4194         DISTNAME=engarde
4195 elif test "$CYGWIN" = yes
4196 then
4197         DISTNAME=cygwin
4198         cat >>confdefs.h <<\_ACEOF
4199 #define HAVE_CYGWIN 1
4200 _ACEOF
4201
4202 else
4203         DISTNAME=unknown
4204 fi
4205 echo "$as_me:$LINENO: result: \" \"" >&5
4206 echo "${ECHO_T}\" \"" >&6
4207
4208
4209 # -----------------------------------------------------------
4210 # ----------------------------------------------------------
4211
4212
4213
4214 if false; then
4215   INSIDE_GNOME_COMMON_TRUE=
4216   INSIDE_GNOME_COMMON_FALSE='#'
4217 else
4218   INSIDE_GNOME_COMMON_TRUE='#'
4219   INSIDE_GNOME_COMMON_FALSE=
4220 fi
4221
4222         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4223
4224         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4225
4226
4227 # ------------------------------------------------------------------
4228 #  If the user has not set --prefix, we set our default to nothing.
4229 #  In this case, if the user has not set --sysconfdir, we set it
4230 #  to the package default of /etc/bacula.  If either --prefix or
4231 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4232 # ------------------------------------------------------------------
4233 if test x${prefix} = xNONE ; then
4234     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4235         sysconfdir=/etc/bacula
4236     fi
4237     prefix=
4238 fi
4239 sysconfdir=`eval echo ${sysconfdir}`
4240
4241 # -------------------------------------------------------------------------
4242 #  If the user has not set --exec-prefix, we default to ${prefix}
4243 # -------------------------------------------------------------------------
4244 if test x${exec_prefix} = xNONE ; then
4245     exec_prefix=${prefix}
4246 fi
4247
4248 # ------------------------------------------------------------------
4249 # If the user has not set --sbindir, we set our default as /sbin
4250 # ------------------------------------------------------------------
4251 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4252     sbindir=${exec_prefix}/sbin
4253 fi
4254 sbindir=`eval echo ${sbindir}`
4255
4256 # ------------------------------------------------------------------
4257 # All list of languages for which a translation exist. Each
4258 #  language is separated by a space.
4259 # ------------------------------------------------------------------
4260 ALL_LINGUAS=""
4261
4262 for ac_prog in msgfmt
4263 do
4264   # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268 if test "${ac_cv_path_MSGFMT+set}" = set; then
4269   echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271   case $MSGFMT in
4272   [\\/]* | ?:[\\/]*)
4273   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4274   ;;
4275   *)
4276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281   for ac_exec_ext in '' $ac_executable_extensions; do
4282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288 done
4289
4290   ;;
4291 esac
4292 fi
4293 MSGFMT=$ac_cv_path_MSGFMT
4294
4295 if test -n "$MSGFMT"; then
4296   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4297 echo "${ECHO_T}$MSGFMT" >&6
4298 else
4299   echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4301 fi
4302
4303   test -n "$MSGFMT" && break
4304 done
4305 test -n "$MSGFMT" || MSGFMT="no"
4306
4307 if test "$MSGFMT" = "no"
4308 then
4309    echo 'msgfmt program not found, disabling NLS !'
4310    USE_NLS=no
4311    USE_INCLUDED_LIBINTL=no
4312 #else
4313 #   AM_GNU_GETTEXT
4314 fi
4315
4316
4317 support_mysql=no
4318 support_sqlite=no
4319 support_smartalloc=yes
4320 support_readline=yes
4321 support_gnome=no
4322 support_static_tools=no
4323 support_static_fd=no
4324 support_static_sd=no
4325 support_static_dir=no
4326 support_static_cons=no
4327 build_client_only=no
4328 cats=
4329 db_name=Internal
4330 DB_NAME=bdb
4331
4332
4333 # -------------------------------------------
4334 # gnome (default off)
4335 # -------------------------------------------
4336 # Check whether --enable-gnome or --disable-gnome was given.
4337 if test "${enable_gnome+set}" = set; then
4338   enableval="$enable_gnome"
4339   if test x$enableval = xyes; then
4340     support_gnome=yes
4341   fi
4342 fi;
4343
4344 GNOME_DIR=
4345 if test x$support_gnome = xyes; then
4346   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4347   pkg=$?
4348   if test $pkg = 0; then
4349      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4350      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4351      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4352      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4353
4354
4355
4356
4357      GNOME_DIR=src/gnome2-console
4358   else
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4371 if test "${with_gnome_includes+set}" = set; then
4372   withval="$with_gnome_includes"
4373
4374         CFLAGS="$CFLAGS -I$withval"
4375
4376 fi;
4377
4378
4379 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4380 if test "${with_gnome_libs+set}" = set; then
4381   withval="$with_gnome_libs"
4382
4383         LDFLAGS="$LDFLAGS -L$withval"
4384         gnome_prefix=$withval
4385
4386 fi;
4387
4388
4389 # Check whether --with-gnome or --without-gnome was given.
4390 if test "${with_gnome+set}" = set; then
4391   withval="$with_gnome"
4392   if test x$withval = xyes; then
4393                         want_gnome=yes
4394                                                                         :
4395                 else
4396                         if test "x$withval" = xno; then
4397                                 want_gnome=no
4398                         else
4399                                 want_gnome=yes
4400                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4401                                 CFLAGS="$CFLAGS -I$withval/include"
4402                                 gnome_prefix=$withval/lib
4403                         fi
4404                 fi
4405 else
4406   want_gnome=yes
4407 fi;
4408
4409         if test "x$want_gnome" = xyes; then
4410
4411             # Extract the first word of "gnome-config", so it can be a program name with args.
4412 set dummy gnome-config; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   case $GNOME_CONFIG in
4419   [\\/]* | ?:[\\/]*)
4420   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4421   ;;
4422   *)
4423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428   for ac_exec_ext in '' $ac_executable_extensions; do
4429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435 done
4436
4437   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4438   ;;
4439 esac
4440 fi
4441 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4442
4443 if test -n "$GNOME_CONFIG"; then
4444   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4445 echo "${ECHO_T}$GNOME_CONFIG" >&6
4446 else
4447   echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4449 fi
4450
4451             if test "$GNOME_CONFIG" = "no"; then
4452               no_gnome_config="yes"
4453             else
4454               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4455 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4456               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4457                 echo "$as_me:$LINENO: result: yes" >&5
4458 echo "${ECHO_T}yes" >&6
4459
4460
4461         # Extract the first word of "orbit-config", so it can be a program name with args.
4462 set dummy orbit-config; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   case $ORBIT_CONFIG in
4469   [\\/]* | ?:[\\/]*)
4470   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4471   ;;
4472   *)
4473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486
4487   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4488   ;;
4489 esac
4490 fi
4491 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4492
4493 if test -n "$ORBIT_CONFIG"; then
4494   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4495 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4496 else
4497   echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 fi
4500
4501         # Extract the first word of "orbit-idl", so it can be a program name with args.
4502 set dummy orbit-idl; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   case $ORBIT_IDL in
4509   [\\/]* | ?:[\\/]*)
4510   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4511   ;;
4512   *)
4513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516   IFS=$as_save_IFS
4517   test -z "$as_dir" && as_dir=.
4518   for ac_exec_ext in '' $ac_executable_extensions; do
4519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522     break 2
4523   fi
4524 done
4525 done
4526
4527   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4528   ;;
4529 esac
4530 fi
4531 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4532
4533 if test -n "$ORBIT_IDL"; then
4534   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4535 echo "${ECHO_T}$ORBIT_IDL" >&6
4536 else
4537   echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4539 fi
4540
4541         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4542 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4543 if test "${gnome_cv_orbit_found+set}" = set; then
4544   echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546
4547                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4548                         gnome_cv_orbit_found=no
4549                 else
4550                         gnome_cv_orbit_found=yes
4551                 fi
4552
4553 fi
4554 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4555 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4556
4557
4558 if test x$gnome_cv_orbit_found = xyes; then
4559   HAVE_ORBIT_TRUE=
4560   HAVE_ORBIT_FALSE='#'
4561 else
4562   HAVE_ORBIT_TRUE='#'
4563   HAVE_ORBIT_FALSE=
4564 fi
4565         if test x$gnome_cv_orbit_found = xyes; then
4566
4567                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4568                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4569
4570
4571         else
4572                 if test xfail = xfailure; then
4573                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4574 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4575    { (exit 1); exit 1; }; }
4576                 fi
4577         fi
4578
4579         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4580 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4581 if test "${gnome_cv_gnorba_found+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584
4585                 gnome_cv_gnorba_found=no
4586                 if test x$gnome_cv_orbit_found = xyes; then
4587                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4588                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4589                         if test -n "$GNORBA_LIBS"; then
4590                                 gnome_cv_gnorba_found=yes
4591                         fi
4592                 fi
4593
4594 fi
4595 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4596 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4597
4598
4599 if test x$gnome_cv_gnorba_found = xyes; then
4600   HAVE_GNORBA_TRUE=
4601   HAVE_GNORBA_FALSE='#'
4602 else
4603   HAVE_GNORBA_TRUE='#'
4604   HAVE_GNORBA_FALSE=
4605 fi
4606         if test x$gnome_cv_orbit_found = xyes; then
4607
4608                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4609                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4610
4611
4612         else
4613                 if test xfail = xfailure; then
4614                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4615 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4616    { (exit 1); exit 1; }; }
4617                 fi
4618         fi
4619
4620                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4621                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4622                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4623                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4624                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4625                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4626                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4627
4628               else
4629                 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4631                 no_gnome_config="yes"
4632               fi
4633             fi
4634
4635             if test x$exec_prefix = xNONE; then
4636                 if test x$prefix = xNONE; then
4637                     gnome_prefix=$ac_default_prefix/lib
4638                 else
4639                     gnome_prefix=$prefix/lib
4640                 fi
4641             else
4642                 gnome_prefix=`eval echo \`echo $libdir\``
4643             fi
4644
4645             if test "$no_gnome_config" = "yes"; then
4646               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4647 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4648               if test -f $gnome_prefix/gnomeConf.sh; then
4649                 echo "$as_me:$LINENO: result: found" >&5
4650 echo "${ECHO_T}found" >&6
4651                 echo "loading gnome configuration from" \
4652                      "$gnome_prefix/gnomeConf.sh"
4653                 . $gnome_prefix/gnomeConf.sh
4654
4655               else
4656                 echo "$as_me:$LINENO: result: not found" >&5
4657 echo "${ECHO_T}not found" >&6
4658                 if test xfail = xfail; then
4659                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4660 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4661    { (exit 1); exit 1; }; }
4662                 fi
4663               fi
4664             fi
4665         fi
4666
4667         if test -n ""; then
4668           n=""
4669           for i in $n; do
4670             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4671 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4672             case $i in
4673               applets)
4674
4675                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4676                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4677 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4678               docklets)
4679
4680                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4681                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4682 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4683               capplet)
4684
4685                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4686                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4687 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4688               *)
4689                 echo "$as_me:$LINENO: result: unknown library" >&5
4690 echo "${ECHO_T}unknown library" >&6
4691             esac
4692             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4693             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4694           done
4695         fi
4696
4697
4698     GNOME_DIR=src/gnome-console
4699   fi
4700 fi
4701
4702
4703
4704 # -------------------------------------------
4705 # smartalloc (default off)
4706 # -------------------------------------------
4707 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4708 if test "${enable_smartalloc+set}" = set; then
4709   enableval="$enable_smartalloc"
4710   if test x$enableval = xno; then
4711     support_smartalloc=no
4712   fi
4713 fi;
4714
4715 if test x$support_smartalloc = xyes; then
4716    cat >>confdefs.h <<\_ACEOF
4717 #define SMARTALLOC 1
4718 _ACEOF
4719
4720 fi
4721
4722 # -------------------------------------------
4723 # static-tools (default off)
4724 # -------------------------------------------
4725 # Check whether --enable-static-tools or --disable-static-tools was given.
4726 if test "${enable_static_tools+set}" = set; then
4727   enableval="$enable_static_tools"
4728   if test x$enableval = xyes; then
4729      support_static_tools=yes
4730    fi
4731 fi;
4732
4733 TTOOL_LDFLAGS=
4734 if test x$support_static_tools = xyes; then
4735    TTOOL_LDFLAGS="-static"
4736 fi
4737
4738
4739 # -------------------------------------------
4740 # static-fd    (default off)
4741 # -------------------------------------------
4742 # Check whether --enable-static-fd or --disable-static-fd was given.
4743 if test "${enable_static_fd+set}" = set; then
4744   enableval="$enable_static_fd"
4745   if test x$enableval = xyes; then
4746      support_static_fd=yes
4747    fi
4748 fi;
4749
4750 STATIC_FD=
4751 if test x$support_static_fd = xyes; then
4752    STATIC_FD="static-bacula-fd"
4753 fi
4754
4755
4756 # -------------------------------------------
4757 # static-sd    (default off)
4758 # -------------------------------------------
4759 # Check whether --enable-static-sd or --disable-static-sd was given.
4760 if test "${enable_static_sd+set}" = set; then
4761   enableval="$enable_static_sd"
4762   if test x$enableval = xyes; then
4763      support_static_sd=yes
4764    fi
4765 fi;
4766
4767 STATIC_SD=
4768 if test x$support_static_sd = xyes; then
4769    STATIC_SD="static-bacula-sd"
4770 fi
4771
4772
4773 # -------------------------------------------
4774 # static-dir   (default off)
4775 # -------------------------------------------
4776 # Check whether --enable-static-dir or --disable-static-dir was given.
4777 if test "${enable_static_dir+set}" = set; then
4778   enableval="$enable_static_dir"
4779   if test x$enableval = xyes; then
4780      support_static_dir=yes
4781    fi
4782 fi;
4783
4784 STATIC_DIR=
4785 if test x$support_static_dir = xyes; then
4786    STATIC_DIR="static-bacula-dir"
4787 fi
4788
4789
4790 # -------------------------------------------
4791 # static-cons  (default off)
4792 # -------------------------------------------
4793 # Check whether --enable-static-cons or --disable-static-cons was given.
4794 if test "${enable_static_cons+set}" = set; then
4795   enableval="$enable_static_cons"
4796   if test x$enableval = xyes; then
4797      support_static_cons=yes
4798    fi
4799 fi;
4800
4801 STATIC_CONS=
4802 if test x$support_static_cons = xyes; then
4803    STATIC_CONS="static-bconsole"
4804 fi
4805
4806
4807 # -------------------------------------------
4808 # client_only  (default off)
4809 # -------------------------------------------
4810 # Check whether --enable-client-only or --disable-client-only was given.
4811 if test "${enable_client_only+set}" = set; then
4812   enableval="$enable_client_only"
4813   if test x$enableval = xyes; then
4814      build_client_only=yes
4815    fi
4816 fi;
4817 if test x$build_client_only = xno; then
4818    ALL_DIRS="subdirs"
4819 else
4820    ALL_DIRS=""
4821 fi
4822
4823
4824 # ---------------------------------------------------
4825 # Check for readline support/directory (default on)
4826 # ---------------------------------------------------
4827 # this allows you to turn it completely off
4828 # Check whether --enable-readline or --disable-readline was given.
4829 if test "${enable_readline+set}" = set; then
4830   enableval="$enable_readline"
4831   if test x$enableval = xno; then
4832     support_readline=no
4833   fi
4834 fi;
4835
4836 got_readline="no"
4837 READLINE_SRC=
4838 if test x$support_readline = xyes; then
4839    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4840 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4841 if test "${ac_cv_header_stdc+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   cat >conftest.$ac_ext <<_ACEOF
4845 #line $LINENO "configure"
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #include <stdlib.h>
4852 #include <stdarg.h>
4853 #include <string.h>
4854 #include <float.h>
4855
4856 int
4857 main ()
4858 {
4859
4860   ;
4861   return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866   (eval $ac_compile) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } &&
4870          { ac_try='test -s conftest.$ac_objext'
4871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872   (eval $ac_try) 2>&5
4873   ac_status=$?
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); }; }; then
4876   ac_cv_header_stdc=yes
4877 else
4878   echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ac_cv_header_stdc=no
4882 fi
4883 rm -f conftest.$ac_objext conftest.$ac_ext
4884
4885 if test $ac_cv_header_stdc = yes; then
4886   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4887   cat >conftest.$ac_ext <<_ACEOF
4888 #line $LINENO "configure"
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 #include <string.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898   $EGREP "memchr" >/dev/null 2>&1; then
4899   :
4900 else
4901   ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909   cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916 #include <stdlib.h>
4917
4918 _ACEOF
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920   $EGREP "free" >/dev/null 2>&1; then
4921   :
4922 else
4923   ac_cv_header_stdc=no
4924 fi
4925 rm -f conftest*
4926
4927 fi
4928
4929 if test $ac_cv_header_stdc = yes; then
4930   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4931   if test "$cross_compiling" = yes; then
4932   :
4933 else
4934   cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #include <ctype.h>
4942 #if ((' ' & 0x0FF) == 0x020)
4943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4945 #else
4946 # define ISLOWER(c) \
4947                    (('a' <= (c) && (c) <= 'i') \
4948                      || ('j' <= (c) && (c) <= 'r') \
4949                      || ('s' <= (c) && (c) <= 'z'))
4950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4951 #endif
4952
4953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4954 int
4955 main ()
4956 {
4957   int i;
4958   for (i = 0; i < 256; i++)
4959     if (XOR (islower (i), ISLOWER (i))
4960         || toupper (i) != TOUPPER (i))
4961       exit(2);
4962   exit (0);
4963 }
4964 _ACEOF
4965 rm -f conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967   (eval $ac_link) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; }; then
4976   :
4977 else
4978   echo "$as_me: program exited with status $ac_status" >&5
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982 ( exit $ac_status )
4983 ac_cv_header_stdc=no
4984 fi
4985 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4986 fi
4987 fi
4988 fi
4989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4991 if test $ac_cv_header_stdc = yes; then
4992
4993 cat >>confdefs.h <<\_ACEOF
4994 #define STDC_HEADERS 1
4995 _ACEOF
4996
4997 fi
4998
4999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5010                   inttypes.h stdint.h unistd.h
5011 do
5012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5013 echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 $ac_includes_default
5026
5027 #include <$ac_header>
5028 _ACEOF
5029 rm -f conftest.$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031   (eval $ac_compile) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -s conftest.$ac_objext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   eval "$as_ac_Header=yes"
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 eval "$as_ac_Header=no"
5047 fi
5048 rm -f conftest.$ac_objext conftest.$ac_ext
5049 fi
5050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5053   cat >>confdefs.h <<_ACEOF
5054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5055 _ACEOF
5056
5057 fi
5058
5059 done
5060
5061
5062
5063 # Check whether --with-readline or --without-readline was given.
5064 if test "${with_readline+set}" = set; then
5065   withval="$with_readline"
5066
5067         case "$with_readline" in
5068         no) : ;;
5069         yes|*)
5070           if test "$with_readline" != "yes"; then
5071             CONS_INC="-I${with_readline}"
5072             CONS_LDFLAGS="-L$with_readline"
5073           else
5074              with_readline="/usr/include/readline"
5075           fi
5076           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5078   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5079 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 fi
5083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5085 else
5086   # Is the header compilable?
5087 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5088 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 $ac_includes_default
5097 #include <${with_readline}/readline.h>
5098 _ACEOF
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101   (eval $ac_compile) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } &&
5105          { ac_try='test -s conftest.$ac_objext'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_header_compiler=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 ac_header_compiler=no
5117 fi
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5121
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5124 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 #include <${with_readline}/readline.h>
5133 _ACEOF
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } >/dev/null; then
5142   if test -s conftest.err; then
5143     ac_cpp_err=$ac_c_preproc_warn_flag
5144   else
5145     ac_cpp_err=
5146   fi
5147 else
5148   ac_cpp_err=yes
5149 fi
5150 if test -z "$ac_cpp_err"; then
5151   ac_header_preproc=yes
5152 else
5153   echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156   ac_header_preproc=no
5157 fi
5158 rm -f conftest.err conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5160 echo "${ECHO_T}$ac_header_preproc" >&6
5161
5162 # So?  What about this header?
5163 case $ac_header_compiler:$ac_header_preproc in
5164   yes:no )
5165     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5166 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5168 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5169     (
5170       cat <<\_ASBOX
5171 ## ------------------------------------ ##
5172 ## Report this to bug-autoconf@gnu.org. ##
5173 ## ------------------------------------ ##
5174 _ASBOX
5175     ) |
5176       sed "s/^/$as_me: WARNING:     /" >&2
5177     ;;
5178   no:yes )
5179     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5181     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5183     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5185     (
5186       cat <<\_ASBOX
5187 ## ------------------------------------ ##
5188 ## Report this to bug-autoconf@gnu.org. ##
5189 ## ------------------------------------ ##
5190 _ASBOX
5191     ) |
5192       sed "s/^/$as_me: WARNING:     /" >&2
5193     ;;
5194 esac
5195 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5196 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   eval "$as_ac_Header=$ac_header_preproc"
5201 fi
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204
5205 fi
5206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5207    cat >>confdefs.h <<\_ACEOF
5208 #define HAVE_READLINE 1
5209 _ACEOF
5210
5211                CONS_LIBS="-lreadline -ltermcap"
5212                got_readline="yes"
5213
5214 else
5215    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5216 echo "$as_me: error: *** readline library missing" >&2;}
5217    { (exit 1); exit 1; }; }
5218
5219
5220 fi
5221
5222
5223           ;;
5224         esac
5225
5226 else
5227
5228        # check for standard readline library
5229        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5230   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5231 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5232 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 fi
5235 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5236 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5237 else
5238   # Is the header compilable?
5239 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5240 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 $ac_includes_default
5249 #include </usr/include/readline/readline.h>
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253   (eval $ac_compile) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } &&
5257          { ac_try='test -s conftest.$ac_objext'
5258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259   (eval $ac_try) 2>&5
5260   ac_status=$?
5261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262   (exit $ac_status); }; }; then
5263   ac_header_compiler=yes
5264 else
5265   echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268 ac_header_compiler=no
5269 fi
5270 rm -f conftest.$ac_objext conftest.$ac_ext
5271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5272 echo "${ECHO_T}$ac_header_compiler" >&6
5273
5274 # Is the header present?
5275 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5276 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5277 cat >conftest.$ac_ext <<_ACEOF
5278 #line $LINENO "configure"
5279 /* confdefs.h.  */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h.  */
5284 #include </usr/include/readline/readline.h>
5285 _ACEOF
5286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5288   ac_status=$?
5289   grep -v '^ *+' conftest.er1 >conftest.err
5290   rm -f conftest.er1
5291   cat conftest.err >&5
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } >/dev/null; then
5294   if test -s conftest.err; then
5295     ac_cpp_err=$ac_c_preproc_warn_flag
5296   else
5297     ac_cpp_err=
5298   fi
5299 else
5300   ac_cpp_err=yes
5301 fi
5302 if test -z "$ac_cpp_err"; then
5303   ac_header_preproc=yes
5304 else
5305   echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5307
5308   ac_header_preproc=no
5309 fi
5310 rm -f conftest.err conftest.$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5312 echo "${ECHO_T}$ac_header_preproc" >&6
5313
5314 # So?  What about this header?
5315 case $ac_header_compiler:$ac_header_preproc in
5316   yes:no )
5317     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5318 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5319     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5320 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5321     (
5322       cat <<\_ASBOX
5323 ## ------------------------------------ ##
5324 ## Report this to bug-autoconf@gnu.org. ##
5325 ## ------------------------------------ ##
5326 _ASBOX
5327     ) |
5328       sed "s/^/$as_me: WARNING:     /" >&2
5329     ;;
5330   no:yes )
5331     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5332 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5333     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5334 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5335     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5336 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5337     (
5338       cat <<\_ASBOX
5339 ## ------------------------------------ ##
5340 ## Report this to bug-autoconf@gnu.org. ##
5341 ## ------------------------------------ ##
5342 _ASBOX
5343     ) |
5344       sed "s/^/$as_me: WARNING:     /" >&2
5345     ;;
5346 esac
5347 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5348 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5349 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5353 fi
5354 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5355 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5356
5357 fi
5358 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5359    cat >>confdefs.h <<\_ACEOF
5360 #define HAVE_READLINE 1
5361 _ACEOF
5362
5363            got_readline="yes"
5364            CONS_INC="-I/usr/include/readline"
5365            CONS_LIBS="-lreadline -ltermcap"
5366
5367 else
5368
5369            # Did not find standard library, so try Bacula's default
5370             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5372   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5373 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 fi
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5379 else
5380   # Is the header compilable?
5381 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5382 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 /* confdefs.h.  */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h.  */
5390 $ac_includes_default
5391 #include <${TOP_DIR}/depkgs/readline/readline.h>
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395   (eval $ac_compile) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } &&
5399          { ac_try='test -s conftest.$ac_objext'
5400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401   (eval $ac_try) 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); }; }; then
5405   ac_header_compiler=yes
5406 else
5407   echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 ac_header_compiler=no
5411 fi
5412 rm -f conftest.$ac_objext conftest.$ac_ext
5413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5414 echo "${ECHO_T}$ac_header_compiler" >&6
5415
5416 # Is the header present?
5417 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5418 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5419 cat >conftest.$ac_ext <<_ACEOF
5420 #line $LINENO "configure"
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 #include <${TOP_DIR}/depkgs/readline/readline.h>
5427 _ACEOF
5428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } >/dev/null; then
5436   if test -s conftest.err; then
5437     ac_cpp_err=$ac_c_preproc_warn_flag
5438   else
5439     ac_cpp_err=
5440   fi
5441 else
5442   ac_cpp_err=yes
5443 fi
5444 if test -z "$ac_cpp_err"; then
5445   ac_header_preproc=yes
5446 else
5447   echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5449
5450   ac_header_preproc=no
5451 fi
5452 rm -f conftest.err conftest.$ac_ext
5453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5454 echo "${ECHO_T}$ac_header_preproc" >&6
5455
5456 # So?  What about this header?
5457 case $ac_header_compiler:$ac_header_preproc in
5458   yes:no )
5459     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5460 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5461     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5462 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5463     (
5464       cat <<\_ASBOX
5465 ## ------------------------------------ ##
5466 ## Report this to bug-autoconf@gnu.org. ##
5467 ## ------------------------------------ ##
5468 _ASBOX
5469     ) |
5470       sed "s/^/$as_me: WARNING:     /" >&2
5471     ;;
5472   no:yes )
5473     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5475     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5477     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5478 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5479     (
5480       cat <<\_ASBOX
5481 ## ------------------------------------ ##
5482 ## Report this to bug-autoconf@gnu.org. ##
5483 ## ------------------------------------ ##
5484 _ASBOX
5485     ) |
5486       sed "s/^/$as_me: WARNING:     /" >&2
5487     ;;
5488 esac
5489 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5490 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   eval "$as_ac_Header=$ac_header_preproc"
5495 fi
5496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5498
5499 fi
5500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5501    cat >>confdefs.h <<\_ACEOF
5502 #define HAVE_READLINE 1
5503 _ACEOF
5504
5505                  got_readline="yes"
5506                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5507                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5508                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5509                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5510
5511 else
5512    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5513 echo "$as_me: error: *** readline library missing" >&2;}
5514    { (exit 1); exit 1; }; }
5515
5516
5517 fi
5518
5519
5520
5521
5522 fi
5523
5524
5525
5526
5527 fi;
5528 fi
5529
5530
5531
5532
5533
5534 # Minimal stuff for readline Makefile configuration
5535 MAKE_SHELL=/bin/sh
5536
5537
5538 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5540 if test "${ac_cv_header_stat_broken+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550 #include <sys/types.h>
5551 #include <sys/stat.h>
5552
5553 #if defined(S_ISBLK) && defined(S_IFDIR)
5554 # if S_ISBLK (S_IFDIR)
5555 You lose.
5556 # endif
5557 #endif
5558
5559 #if defined(S_ISBLK) && defined(S_IFCHR)
5560 # if S_ISBLK (S_IFCHR)
5561 You lose.
5562 # endif
5563 #endif
5564
5565 #if defined(S_ISLNK) && defined(S_IFREG)
5566 # if S_ISLNK (S_IFREG)
5567 You lose.
5568 # endif
5569 #endif
5570
5571 #if defined(S_ISSOCK) && defined(S_IFREG)
5572 # if S_ISSOCK (S_IFREG)
5573 You lose.
5574 # endif
5575 #endif
5576
5577 _ACEOF
5578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579   $EGREP "You lose" >/dev/null 2>&1; then
5580   ac_cv_header_stat_broken=yes
5581 else
5582   ac_cv_header_stat_broken=no
5583 fi
5584 rm -f conftest*
5585
5586 fi
5587 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5588 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5589 if test $ac_cv_header_stat_broken = yes; then
5590
5591 cat >>confdefs.h <<\_ACEOF
5592 #define STAT_MACROS_BROKEN 1
5593 _ACEOF
5594
5595 fi
5596
5597
5598
5599
5600
5601
5602 ac_header_dirent=no
5603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5604   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5605 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5606 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   cat >conftest.$ac_ext <<_ACEOF
5611 #line $LINENO "configure"
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617 #include <sys/types.h>
5618 #include <$ac_hdr>
5619
5620 int
5621 main ()
5622 {
5623 if ((DIR *) 0)
5624 return 0;
5625   ;
5626   return 0;
5627 }
5628 _ACEOF
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631   (eval $ac_compile) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -s conftest.$ac_objext'
5636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637   (eval $ac_try) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; }; then
5641   eval "$as_ac_Header=yes"
5642 else
5643   echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 eval "$as_ac_Header=no"
5647 fi
5648 rm -f conftest.$ac_objext conftest.$ac_ext
5649 fi
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653   cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5655 _ACEOF
5656
5657 ac_header_dirent=$ac_hdr; break
5658 fi
5659
5660 done
5661 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5662 if test $ac_header_dirent = dirent.h; then
5663   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5664 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5665 if test "${ac_cv_search_opendir+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   ac_func_search_save_LIBS=$LIBS
5669 ac_cv_search_opendir=no
5670 cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 /* confdefs.h.  */
5673 _ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h.  */
5677
5678 /* Override any gcc2 internal prototype to avoid an error.  */
5679 #ifdef __cplusplus
5680 extern "C"
5681 #endif
5682 /* We use char because int might match the return type of a gcc2
5683    builtin and then its argument prototype would still apply.  */
5684 char opendir ();
5685 int
5686 main ()
5687 {
5688 opendir ();
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695   (eval $ac_link) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); } &&
5699          { ac_try='test -s conftest$ac_exeext'
5700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701   (eval $ac_try) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   ac_cv_search_opendir="none required"
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 fi
5711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5712 if test "$ac_cv_search_opendir" = no; then
5713   for ac_lib in dir; do
5714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5715     cat >conftest.$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722
5723 /* Override any gcc2 internal prototype to avoid an error.  */
5724 #ifdef __cplusplus
5725 extern "C"
5726 #endif
5727 /* We use char because int might match the return type of a gcc2
5728    builtin and then its argument prototype would still apply.  */
5729 char opendir ();
5730 int
5731 main ()
5732 {
5733 opendir ();
5734   ;
5735   return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740   (eval $ac_link) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); } &&
5744          { ac_try='test -s conftest$ac_exeext'
5745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746   (eval $ac_try) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   ac_cv_search_opendir="-l$ac_lib"
5751 break
5752 else
5753   echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5755
5756 fi
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758   done
5759 fi
5760 LIBS=$ac_func_search_save_LIBS
5761 fi
5762 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5763 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5764 if test "$ac_cv_search_opendir" != no; then
5765   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5766
5767 fi
5768
5769 else
5770   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5772 if test "${ac_cv_search_opendir+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   ac_func_search_save_LIBS=$LIBS
5776 ac_cv_search_opendir=no
5777 cat >conftest.$ac_ext <<_ACEOF
5778 #line $LINENO "configure"
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784
5785 /* Override any gcc2 internal prototype to avoid an error.  */
5786 #ifdef __cplusplus
5787 extern "C"
5788 #endif
5789 /* We use char because int might match the return type of a gcc2
5790    builtin and then its argument prototype would still apply.  */
5791 char opendir ();
5792 int
5793 main ()
5794 {
5795 opendir ();
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802   (eval $ac_link) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); } &&
5806          { ac_try='test -s conftest$ac_exeext'
5807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808   (eval $ac_try) 2>&5
5809   ac_status=$?
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); }; }; then
5812   ac_cv_search_opendir="none required"
5813 else
5814   echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 fi
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 if test "$ac_cv_search_opendir" = no; then
5820   for ac_lib in x; do
5821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5822     cat >conftest.$ac_ext <<_ACEOF
5823 #line $LINENO "configure"
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829
5830 /* Override any gcc2 internal prototype to avoid an error.  */
5831 #ifdef __cplusplus
5832 extern "C"
5833 #endif
5834 /* We use char because int might match the return type of a gcc2
5835    builtin and then its argument prototype would still apply.  */
5836 char opendir ();
5837 int
5838 main ()
5839 {
5840 opendir ();
5841   ;
5842   return 0;
5843 }
5844 _ACEOF
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5847   (eval $ac_link) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); } &&
5851          { ac_try='test -s conftest$ac_exeext'
5852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853   (eval $ac_try) 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_cv_search_opendir="-l$ac_lib"
5858 break
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863 fi
5864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5865   done
5866 fi
5867 LIBS=$ac_func_search_save_LIBS
5868 fi
5869 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5870 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5871 if test "$ac_cv_search_opendir" != no; then
5872   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5873
5874 fi
5875
5876 fi
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5888 do
5889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5890 echo "$as_me:$LINENO: checking for $ac_func" >&5
5891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5892 if eval "test \"\${$as_ac_var+set}\" = set"; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 /* System header to define __stub macros and hopefully few prototypes,
5903     which can conflict with char $ac_func (); below.
5904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905     <limits.h> exists even on freestanding compilers.  */
5906 #ifdef __STDC__
5907 # include <limits.h>
5908 #else
5909 # include <assert.h>
5910 #endif
5911 /* Override any gcc2 internal prototype to avoid an error.  */
5912 #ifdef __cplusplus
5913 extern "C"
5914 {
5915 #endif
5916 /* We use char because int might match the return type of a gcc2
5917    builtin and then its argument prototype would still apply.  */
5918 char $ac_func ();
5919 /* The GNU C library defines this for functions which it implements
5920     to always fail with ENOSYS.  Some functions are actually named
5921     something starting with __ and the normal name is an alias.  */
5922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5923 choke me
5924 #else
5925 char (*f) () = $ac_func;
5926 #endif
5927 #ifdef __cplusplus
5928 }
5929 #endif
5930
5931 int
5932 main ()
5933 {
5934 return f != $ac_func;
5935   ;
5936   return 0;
5937 }
5938 _ACEOF
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941   (eval $ac_link) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } &&
5945          { ac_try='test -s conftest$ac_exeext'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   eval "$as_ac_var=yes"
5952 else
5953   echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 eval "$as_ac_var=no"
5957 fi
5958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5959 fi
5960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5962 if test `eval echo '${'$as_ac_var'}'` = yes; then
5963   cat >>confdefs.h <<_ACEOF
5964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5965 _ACEOF
5966
5967 fi
5968 done
5969
5970
5971 for ac_func in nanosleep
5972 do
5973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5974 echo "$as_me:$LINENO: checking for $ac_func" >&5
5975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5976 if eval "test \"\${$as_ac_var+set}\" = set"; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   cat >conftest.$ac_ext <<_ACEOF
5980 #line $LINENO "configure"
5981 /* confdefs.h.  */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h.  */
5986 /* System header to define __stub macros and hopefully few prototypes,
5987     which can conflict with char $ac_func (); below.
5988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989     <limits.h> exists even on freestanding compilers.  */
5990 #ifdef __STDC__
5991 # include <limits.h>
5992 #else
5993 # include <assert.h>
5994 #endif
5995 /* Override any gcc2 internal prototype to avoid an error.  */
5996 #ifdef __cplusplus
5997 extern "C"
5998 {
5999 #endif
6000 /* We use char because int might match the return type of a gcc2
6001    builtin and then its argument prototype would still apply.  */
6002 char $ac_func ();
6003 /* The GNU C library defines this for functions which it implements
6004     to always fail with ENOSYS.  Some functions are actually named
6005     something starting with __ and the normal name is an alias.  */
6006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6007 choke me
6008 #else
6009 char (*f) () = $ac_func;
6010 #endif
6011 #ifdef __cplusplus
6012 }
6013 #endif
6014
6015 int
6016 main ()
6017 {
6018 return f != $ac_func;
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025   (eval $ac_link) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -s conftest$ac_exeext'
6030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031   (eval $ac_try) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   eval "$as_ac_var=yes"
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 eval "$as_ac_var=no"
6041 fi
6042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6043 fi
6044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6046 if test `eval echo '${'$as_ac_var'}'` = yes; then
6047   cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6049 _ACEOF
6050
6051 fi
6052 done
6053
6054
6055
6056 for ac_header in varargs.h
6057 do
6058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060   echo "$as_me:$LINENO: checking for $ac_header" >&5
6061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063   echo $ECHO_N "(cached) $ECHO_C" >&6
6064 fi
6065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6067 else
6068   # Is the header compilable?
6069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6072 #line $LINENO "configure"
6073 /* confdefs.h.  */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h.  */
6078 $ac_includes_default
6079 #include <$ac_header>
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083   (eval $ac_compile) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } &&
6087          { ac_try='test -s conftest.$ac_objext'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; }; then
6093   ac_header_compiler=yes
6094 else
6095   echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ac_header_compiler=no
6099 fi
6100 rm -f conftest.$ac_objext conftest.$ac_ext
6101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6102 echo "${ECHO_T}$ac_header_compiler" >&6
6103
6104 # Is the header present?
6105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 #include <$ac_header>
6115 _ACEOF
6116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } >/dev/null; then
6124   if test -s conftest.err; then
6125     ac_cpp_err=$ac_c_preproc_warn_flag
6126   else
6127     ac_cpp_err=
6128   fi
6129 else
6130   ac_cpp_err=yes
6131 fi
6132 if test -z "$ac_cpp_err"; then
6133   ac_header_preproc=yes
6134 else
6135   echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138   ac_header_preproc=no
6139 fi
6140 rm -f conftest.err conftest.$ac_ext
6141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6142 echo "${ECHO_T}$ac_header_preproc" >&6
6143
6144 # So?  What about this header?
6145 case $ac_header_compiler:$ac_header_preproc in
6146   yes:no )
6147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6151     (
6152       cat <<\_ASBOX
6153 ## ------------------------------------ ##
6154 ## Report this to bug-autoconf@gnu.org. ##
6155 ## ------------------------------------ ##
6156 _ASBOX
6157     ) |
6158       sed "s/^/$as_me: WARNING:     /" >&2
6159     ;;
6160   no:yes )
6161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6163     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6167     (
6168       cat <<\_ASBOX
6169 ## ------------------------------------ ##
6170 ## Report this to bug-autoconf@gnu.org. ##
6171 ## ------------------------------------ ##
6172 _ASBOX
6173     ) |
6174       sed "s/^/$as_me: WARNING:     /" >&2
6175     ;;
6176 esac
6177 echo "$as_me:$LINENO: checking for $ac_header" >&5
6178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6180   echo $ECHO_N "(cached) $ECHO_C" >&6
6181 else
6182   eval "$as_ac_Header=$ac_header_preproc"
6183 fi
6184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6186
6187 fi
6188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6189   cat >>confdefs.h <<_ACEOF
6190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6191 _ACEOF
6192
6193 fi
6194
6195 done
6196
6197
6198 # End of readline stuff
6199 # -----------------------------------------------------------------------
6200
6201
6202 # ---------------------------------------------------
6203 # Check for GMP support/directory
6204 # ---------------------------------------------------
6205 #GMP_SRC=
6206 #local_gmp="no"
6207 #AC_ARG_WITH(gmp,
6208 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6209 #  [
6210 #     case "$with_gmp" in
6211 #     no) : ;;
6212 #     yes|*)
6213 #       if test "$with_gmp" != "yes"; then
6214 #         GMP_INC="-I$with_gmp"
6215 #         GMP_LIBS="-lgmp"
6216 #         GMP_LDFLAGS="-L$with_gmp"
6217 #       else
6218 #          with_gmp="/usr/include"
6219 #       fi
6220 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6221 #          [ AC_MSG_RESULT(yes)
6222 #            AC_DEFINE(HAVE_GMP)
6223 #            GMP_LIBS="-lgmp"
6224 #            got_gmp="yes"
6225 #          ],
6226 #          [ AC_MSG_ERROR([*** gmp library missing])
6227 #          ]
6228 #       )
6229 #       ;;
6230 #     esac
6231 #  ],[
6232 #    # check for standard gmp library
6233 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6234 #    [ AC_MSG_RESULT(yes)
6235 #      AC_DEFINE(HAVE_GMP)
6236 #      got_gmp="yes"
6237 #      GMP_INC=
6238 #      GMP_LIBS="-lgmp"
6239 #    ], [
6240 #      # Did not find standard library, so use our own
6241 #      AC_MSG_RESULT(yes)
6242 #      AC_DEFINE(HAVE_GMP)
6243 #      got_gmp="yes"
6244 #      local_gmp="yes"
6245 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6246 #      GMP_LIBS="-lgmp"
6247 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6248 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6249 #    ])
6250 #  ]
6251 #)
6252 #AC_SUBST(GMP_INC)
6253 #AC_SUBST(GMP_LIBS)
6254 #AC_SUBST(GMP_LDFLAGS)
6255 #AC_SUBST(GMP_SRC)
6256
6257 # End of GMP stuff
6258 # -----------------------------------------------------------------------
6259
6260
6261 # ---------------------------------------------------
6262 # Check for CWEB support/directory
6263 # ---------------------------------------------------
6264 #CWEB_SRC=
6265 #CWEB=/bin
6266 #local_cweb="no"
6267 #AC_ARG_WITH(cweb,
6268 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6269 #  [
6270 #     case "$with_cweb" in
6271 #     no) : ;;
6272 #     yes|*)
6273 #       if test "$with_cweb" != "yes"; then
6274 #         CWEB_INC="-I$with_cweb"
6275 #         CWEB_LIBS="-lcweb"
6276 #         CWEB_LDFLAGS="-L$with_cweb"
6277 #       else
6278 #          with_cweb="/usr/include"
6279 #       fi
6280 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6281 #          [ AC_MSG_RESULT(yes)
6282 #            AC_DEFINE(HAVE_CWEB)
6283 #            CWEB_LIBS="-lcweb"
6284 #            got_cweb="yes"
6285 #          ],
6286 #          [ AC_MSG_ERROR([*** cweb library missing])
6287 #          ]
6288 #       )
6289 #       ;;
6290 #     esac
6291 #  ],[
6292 #    # check for standard cweb library
6293 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6294 #    [ AC_MSG_RESULT(yes)
6295 #      AC_DEFINE(HAVE_CWEB)
6296 #      got_cweb="yes"
6297 #      CWEB_INC=
6298 #      CWEB_LIBS="-lcweb"
6299 #    ], [
6300 #      # Did not find starndard library, so use our own
6301 #      AC_MSG_RESULT(yes)
6302 #      AC_DEFINE(HAVE_CWEB)
6303 #      got_cweb="yes"
6304 #      local_cweb="yes"
6305 #      CWEB=${TOP_DIR}/depkgs/cweb
6306 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6307 #      CWEB_LIBS="-lcweb"
6308 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6309 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6310 #    ])
6311 #  ]
6312 #)
6313 #AC_SUBST(CWEB)
6314 #AC_SUBST(CWEB_INC)
6315 #AC_SUBST(CWEB_LIBS)
6316 #AC_SUBST(CWEB_LDFLAGS)
6317 #AC_SUBST(CWEB_SRC)
6318
6319 # End of CWEB stuff
6320 # -----------------------------------------------------------------------
6321
6322
6323
6324 # -----------------------------------------------------------
6325 # Check whether user wants TCP wrappers support (default off)
6326 # -----------------------------------------------------------
6327 TCPW_MSG="no"
6328
6329 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6330 if test "${with_tcp_wrappers+set}" = set; then
6331   withval="$with_tcp_wrappers"
6332
6333     if test "x$withval" != "xno" ; then
6334        saved_LIBS="$LIBS"
6335        LIBS="$saved_LIBS -lwrap"
6336        echo "$as_me:$LINENO: checking for libwrap" >&5
6337 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6338        cat >conftest.$ac_ext <<_ACEOF
6339 #line $LINENO "configure"
6340 /* confdefs.h.  */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h.  */
6345  #include <tcpd.h>
6346              int deny_severity = 0;
6347              int allow_severity = 0;
6348              struct request_info *req;
6349 int
6350 main ()
6351 {
6352  hosts_access(req);
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359   (eval $ac_link) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -s conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369
6370             echo "$as_me:$LINENO: result: yes" >&5
6371 echo "${ECHO_T}yes" >&6
6372             cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_LIBWRAP 1
6374 _ACEOF
6375
6376             TCPW_MSG="yes"
6377
6378 else
6379   echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382
6383             LIBS="$saved_LIBS -lwrap -lnsl"
6384             cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391  #include <tcpd.h>
6392                  int deny_severity = 0;
6393                  int allow_severity = 0;
6394                  struct request_info *req;
6395 int
6396 main ()
6397 {
6398  hosts_access(req);
6399   ;
6400   return 0;
6401 }
6402 _ACEOF
6403 rm -f conftest.$ac_objext conftest$ac_exeext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6405   (eval $ac_link) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } &&
6409          { ac_try='test -s conftest$ac_exeext'
6410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411   (eval $ac_try) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }; }; then
6415
6416                  echo "$as_me:$LINENO: result: yes" >&5
6417 echo "${ECHO_T}yes" >&6
6418                  cat >>confdefs.h <<\_ACEOF
6419 #define HAVE_LIBWRAP 1
6420 _ACEOF
6421
6422                  TCPW_MSG="yes"
6423
6424 else
6425   echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6427
6428 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6429 echo "$as_me: error: *** libwrap missing" >&2;}
6430    { (exit 1); exit 1; }; }
6431
6432 fi
6433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6434
6435 fi
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437     fi
6438
6439
6440 fi;
6441
6442 # ------------------------------------------
6443 # Where to place working dir
6444 # ------------------------------------------
6445 working_dir=`eval echo ${sysconfdir}/working`
6446
6447 # Check whether --with-working-dir or --without-working-dir was given.
6448 if test "${with_working_dir+set}" = set; then
6449   withval="$with_working_dir"
6450
6451        if test "x$withval" != "xno" ; then
6452               working_dir=$withval
6453        fi
6454
6455
6456 fi;
6457
6458
6459
6460
6461 # ------------------------------------------
6462 # Where to place scriptdir (script files)
6463 # ------------------------------------------
6464 scriptdir=`eval echo ${sysconfdir}`
6465
6466 # Check whether --with-scriptdir or --without-scriptdir was given.
6467 if test "${with_scriptdir+set}" = set; then
6468   withval="$with_scriptdir"
6469
6470        if test "x$withval" != "xno" ; then
6471               scriptdir=$withval
6472        fi
6473
6474
6475 fi;
6476
6477
6478
6479
6480 # ------------------------------------------
6481 # Where to send dump email
6482 # ------------------------------------------
6483 dump_email=root@localhost
6484
6485 # Check whether --with-dump-email or --without-dump-email was given.
6486 if test "${with_dump_email+set}" = set; then
6487   withval="$with_dump_email"
6488
6489        if test "x$withval" != "xno" ; then
6490               dump_email=$withval
6491        fi
6492
6493
6494 fi;
6495
6496
6497
6498 # ------------------------------------------
6499 # Where to send job email
6500 # ------------------------------------------
6501 job_email=root@localhost
6502
6503 # Check whether --with-job-email or --without-job-email was given.
6504 if test "${with_job_email+set}" = set; then
6505   withval="$with_job_email"
6506
6507        if test "x$withval" != "xno" ; then
6508               job_email=$withval
6509        fi
6510
6511
6512 fi;
6513
6514
6515
6516 # ------------------------------------------
6517 # Where to find smtp host
6518 # ------------------------------------------
6519 smtp_host=localhost
6520
6521 # Check whether --with-smtp_host or --without-smtp_host was given.
6522 if test "${with_smtp_host+set}" = set; then
6523   withval="$with_smtp_host"
6524
6525        if test "x$withval" != "xno" ; then
6526               smtp_host=$withval
6527        fi
6528
6529
6530 fi;
6531
6532
6533
6534
6535 # ------------------------------------
6536 # Where to place pid files
6537 # ------------------------------------
6538 piddir=/var/run
6539
6540 # Check whether --with-pid-dir or --without-pid-dir was given.
6541 if test "${with_pid_dir+set}" = set; then
6542   withval="$with_pid_dir"
6543
6544         if test "x$withval" != "xno" ; then
6545             piddir=$withval
6546         fi
6547
6548
6549 fi;
6550
6551 cat >>confdefs.h <<_ACEOF
6552 #define _PATH_BACULA_PIDDIR "$piddir"
6553 _ACEOF
6554
6555
6556
6557
6558 # ------------------------------------
6559 # Where to place subsys "lock file"
6560 # ------------------------------------
6561 subsysdir=/var/run/subsys
6562
6563 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6564 if test "${with_subsys_dir+set}" = set; then
6565   withval="$with_subsys_dir"
6566
6567         if test "x$withval" != "xno" ; then
6568             subsysdir=$withval
6569         fi
6570
6571
6572 fi;
6573
6574
6575
6576
6577
6578 # ------------------------------------
6579 # Where to start assigning ports
6580 # ------------------------------------
6581 baseport=9101
6582
6583 # Check whether --with-baseport or --without-baseport was given.
6584 if test "${with_baseport+set}" = set; then
6585   withval="$with_baseport"
6586
6587         if test "x$withval" != "xno" ; then
6588              baseport=$withval
6589         fi
6590
6591
6592 fi;
6593
6594
6595 dir_port=`expr $baseport`
6596 fd_port=`expr $baseport + 1`
6597 sd_port=`expr $fd_port + 1`
6598
6599
6600
6601
6602
6603
6604 # ------------------------------------------
6605 # Generate passwords
6606 # ------------------------------------------
6607 dir_password=
6608
6609 # Check whether --with-dir-password or --without-dir-password was given.
6610 if test "${with_dir_password+set}" = set; then
6611   withval="$with_dir_password"
6612
6613        if test "x$withval" != "xno" ; then
6614            dir_password=$withval
6615        fi
6616
6617
6618 fi;
6619
6620 if test "x$dir_password" = "x" ; then
6621    if test "x$OPENSSL" = "xnone" ; then
6622 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6623       key=`autoconf/randpass 33`
6624    else
6625       key=`openssl rand -base64 33`
6626    fi
6627    dir_password=$key
6628 fi
6629
6630 fd_password=
6631
6632 # Check whether --with-fd-password or --without-fd-password was given.
6633 if test "${with_fd_password+set}" = set; then
6634   withval="$with_fd_password"
6635
6636        if test "x$withval" != "xno" ; then
6637            fd_password=$withval
6638        fi
6639
6640
6641 fi;
6642
6643 if test "x$fd_password" = "x" ; then
6644    if test "x$OPENSSL" = "xnone" ; then
6645 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6646       key=`autoconf/randpass 37`
6647    else
6648       key=`openssl rand -base64 33`
6649    fi
6650    fd_password=$key
6651 fi
6652
6653 sd_password=
6654
6655 # Check whether --with-sd-password or --without-sd-password was given.
6656 if test "${with_sd_password+set}" = set; then
6657   withval="$with_sd_password"
6658
6659        if test "x$withval" != "xno" ; then
6660            sd_password=$withval
6661        fi
6662
6663
6664 fi;
6665
6666 if test "x$sd_password" = "x" ; then
6667    if test "x$OPENSSL" = "xnone" ; then
6668 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6669       key=`autoconf/randpass 41`
6670    else
6671       key=`openssl rand -base64 33`
6672    fi
6673    sd_password=$key
6674 fi
6675
6676
6677
6678
6679
6680
6681
6682 #
6683 # Handle users and groups for each daemon
6684 #
6685 dir_user=
6686
6687 # Check whether --with-dir_user or --without-dir_user was given.
6688 if test "${with_dir_user+set}" = set; then
6689   withval="$with_dir_user"
6690
6691         if test "x$withval" != "x" ; then
6692              dir_user=$withval
6693         fi
6694
6695
6696 fi;
6697
6698 dir_group=
6699
6700 # Check whether --with-dir_group or --without-dir_group was given.
6701 if test "${with_dir_group+set}" = set; then
6702   withval="$with_dir_group"
6703
6704         if test "x$withval" != "x" ; then
6705              dir_group=$withval
6706         fi
6707
6708
6709 fi;
6710
6711 sd_user=
6712
6713 # Check whether --with-sd_user or --without-sd_user was given.
6714 if test "${with_sd_user+set}" = set; then
6715   withval="$with_sd_user"
6716
6717         if test "x$withval" != "x" ; then
6718              sd_user=$withval
6719         fi
6720
6721
6722 fi;
6723
6724 sd_group=
6725
6726 # Check whether --with-sd_group or --without-sd_group was given.
6727 if test "${with_sd_group+set}" = set; then
6728   withval="$with_sd_group"
6729
6730         if test "x$withval" != "x" ; then
6731              sd_group=$withval
6732         fi
6733
6734
6735 fi;
6736
6737 fd_user=
6738
6739 # Check whether --with-fd_user or --without-fd_user was given.
6740 if test "${with_fd_user+set}" = set; then
6741   withval="$with_fd_user"
6742
6743         if test "x$withval" != "x" ; then
6744              fd_user=$withval
6745         fi
6746
6747
6748 fi;
6749
6750 fd_group=
6751
6752 # Check whether --with-fd_group or --without-fd_group was given.
6753 if test "${with_fd_group+set}" = set; then
6754   withval="$with_fd_group"
6755
6756         if test "x$withval" != "x" ; then
6757              fd_group=$withval
6758         fi
6759
6760
6761 fi;
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773 # ------------------------------------------------
6774 # Bacula check for various SQL database engines
6775 # ------------------------------------------------
6776
6777 db_found=no
6778 echo "$as_me:$LINENO: checking for MySQL support" >&5
6779 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6780
6781 # Check whether --with-mysql or --without-mysql was given.
6782 if test "${with_mysql+set}" = set; then
6783   withval="$with_mysql"
6784
6785   if test "$withval" != "no"; then
6786         if test "$withval" = "yes"; then
6787                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6788                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6789                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6790                         MYSQL_BINDIR=/usr/local/mysql/bin
6791                 elif test -f /usr/include/mysql/mysql.h; then
6792                         MYSQL_INCDIR=/usr/include/mysql
6793                         MYSQL_LIBDIR=/usr/lib/mysql
6794                         MYSQL_BINDIR=/usr/bin
6795                 elif test -f /usr/include/mysql.h; then
6796                         MYSQL_INCDIR=/usr/include
6797                         MYSQL_LIBDIR=/usr/lib
6798                         MYSQL_BINDIR=/usr/bin
6799                 elif test -f /usr/local/include/mysql/mysql.h; then
6800                         MYSQL_INCDIR=/usr/local/include/mysql
6801                         MYSQL_LIBDIR=/usr/local/lib/mysql
6802                         MYSQL_BINDIR=/usr/local/bin
6803                 elif test -f /usr/local/include/mysql.h; then
6804                         MYSQL_INCDIR=/usr/local/include
6805                         MYSQL_LIBDIR=/usr/local/lib
6806                         MYSQL_BINDIR=/usr/local/bin
6807                 else
6808                    echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6
6810                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6811 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6812    { (exit 1); exit 1; }; }
6813                 fi
6814         else
6815                 if test -f $withval/include/mysql/mysql.h; then
6816                         MYSQL_INCDIR=$withval/include/mysql
6817                         MYSQL_LIBDIR=$withval/lib/mysql
6818                         MYSQL_BINDIR=$withval/bin
6819                 elif test -f $withval/include/mysql.h; then
6820                         MYSQL_INCDIR=$withval/include
6821                         MYSQL_LIBDIR=$withval/lib
6822                         MYSQL_BINDIR=$withval/bin
6823                 else
6824                    echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6826                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6827 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6828    { (exit 1); exit 1; }; }
6829                 fi
6830         fi
6831     SQL_INCLUDE=-I$MYSQL_INCDIR
6832     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
6833        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6834        cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_THREAD_SAFE_MYSQL 1
6836 _ACEOF
6837
6838     else
6839        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
6840     fi
6841     SQL_BINDIR=$MYSQL_BINDIR
6842
6843     cat >>confdefs.h <<\_ACEOF
6844 #define HAVE_MYSQL 1
6845 _ACEOF
6846
6847     echo "$as_me:$LINENO: result: yes" >&5
6848 echo "${ECHO_T}yes" >&6
6849     db_found=yes
6850     support_mysql=yes
6851     db_name=MySQL
6852     DB_NAME=mysql
6853
6854   else
6855         echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6
6857   fi
6858
6859 else
6860
6861     echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6863
6864 fi;
6865
6866
6867 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6868 if test "${with_embedded_mysql+set}" = set; then
6869   withval="$with_embedded_mysql"
6870
6871   if test "$withval" != "no"; then
6872         if test "$withval" = "yes"; then
6873                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6874                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6875                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6876                         MYSQL_BINDIR=/usr/local/mysql/bin
6877                 elif test -f /usr/include/mysql/mysql.h; then
6878                         MYSQL_INCDIR=/usr/include/mysql
6879                         MYSQL_LIBDIR=/usr/lib/mysql
6880                         MYSQL_BINDIR=/usr/bin
6881                 elif test -f /usr/include/mysql.h; then
6882                         MYSQL_INCDIR=/usr/include
6883                         MYSQL_LIBDIR=/usr/lib
6884                         MYSQL_BINDIR=/usr/bin
6885                 elif test -f /usr/local/include/mysql/mysql.h; then
6886                         MYSQL_INCDIR=/usr/local/include/mysql
6887                         MYSQL_LIBDIR=/usr/local/lib/mysql
6888                         MYSQL_BINDIR=/usr/local/bin
6889                 elif test -f /usr/local/include/mysql.h; then
6890                         MYSQL_INCDIR=/usr/local/include
6891                         MYSQL_LIBDIR=/usr/local/lib
6892                         MYSQL_BINDIR=/usr/local/bin
6893                 else
6894                    echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6
6896                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6897 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6898    { (exit 1); exit 1; }; }
6899                 fi
6900         else
6901                 if test -f $withval/include/mysql/mysql.h; then
6902                         MYSQL_INCDIR=$withval/include/mysql
6903                         MYSQL_LIBDIR=$withval/lib/mysql
6904                         MYSQL_BINDIR=$withval/bin
6905                 elif test -f $withval/include/mysql.h; then
6906                         MYSQL_INCDIR=$withval/include
6907                         MYSQL_LIBDIR=$withval/lib
6908                         MYSQL_BINDIR=$withval/bin
6909                 else
6910                    echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6
6912                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6913 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6914    { (exit 1); exit 1; }; }
6915                 fi
6916         fi
6917     SQL_INCLUDE=-I$MYSQL_INCDIR
6918     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6919     SQL_BINDIR=$MYSQL_BINDIR
6920
6921     cat >>confdefs.h <<\_ACEOF
6922 #define HAVE_MYSQL 1
6923 _ACEOF
6924
6925     cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_EMBEDDED_MYSQL 1
6927 _ACEOF
6928
6929     echo "$as_me:$LINENO: result: yes" >&5
6930 echo "${ECHO_T}yes" >&6
6931     db_found=yes
6932     support_mysql=yes
6933     db_name=MySQL
6934     DB_NAME=mysql
6935
6936   else
6937         echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6
6939   fi
6940
6941 else
6942
6943   echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6
6945
6946 fi;
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 # ------------------------------------------------
6957 # Bacula check for various SQL database engines
6958 # ------------------------------------------------
6959
6960 db_found=no
6961 echo "$as_me:$LINENO: checking for SQLite support" >&5
6962 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6963
6964 # Check whether --with-sqlite or --without-sqlite was given.
6965 if test "${with_sqlite+set}" = set; then
6966   withval="$with_sqlite"
6967
6968   if test "$withval" != "no"; then
6969         if test "$withval" = "yes"; then
6970                 if test -f /usr/local/include/sqlite.h; then
6971                         SQLITE_INCDIR=/usr/local/include
6972                         SQLITE_LIBDIR=/usr/local/lib
6973                         SQLITE_BINDIR=/usr/local/bin
6974                 elif test -f /usr/include/sqlite.h; then
6975                         SQLITE_INCDIR=/usr/include
6976                         SQLITE_LIBDIR=/usr/lib
6977                         SQLITE_BINDIR=/usr/bin
6978                 else
6979                    echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6981                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6982 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6983    { (exit 1); exit 1; }; }
6984                 fi
6985         else
6986                 if test -f $withval/sqlite.h; then
6987                         SQLITE_INCDIR=$withval
6988                         SQLITE_LIBDIR=$withval
6989                         SQLITE_BINDIR=$withval
6990                 else
6991                    echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6
6993                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6994 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6995    { (exit 1); exit 1; }; }
6996                 fi
6997         fi
6998     SQL_INCLUDE=-I$SQLITE_INCDIR
6999     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7000     SQL_BINDIR=$SQLITE_BINDIR
7001
7002     cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_SQLITE 1
7004 _ACEOF
7005
7006     echo "$as_me:$LINENO: result: yes" >&5
7007 echo "${ECHO_T}yes" >&6
7008     db_found=yes
7009     support_sqlite=yes
7010     db_name=SQLite
7011     DB_NAME=sqlite
7012
7013   else
7014         echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6
7016   fi
7017
7018 else
7019
7020   echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6
7022
7023 fi;
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033 cat >>confdefs.h <<\_ACEOF
7034 #define PROTOTYPES 1
7035 _ACEOF
7036
7037
7038 if test -z "$CFLAGS"; then
7039     if test -z "$CCOPTS"; then
7040         CCOPTS='-g -O2'
7041     fi
7042     CFLAGS="$CCOPTS"
7043 fi
7044
7045
7046
7047
7048 largefile_support="no"
7049
7050    # Check whether --enable-largefile or --disable-largefile was given.
7051 if test "${enable_largefile+set}" = set; then
7052   enableval="$enable_largefile"
7053
7054 fi;
7055    if test "$enable_largefile" != no; then
7056      if test -n "$ac_tool_prefix"; then
7057   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7059 echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7061 if test "${ac_cv_prog_GETCONF+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   if test -n "$GETCONF"; then
7065   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072   for ac_exec_ext in '' $ac_executable_extensions; do
7073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079 done
7080
7081 fi
7082 fi
7083 GETCONF=$ac_cv_prog_GETCONF
7084 if test -n "$GETCONF"; then
7085   echo "$as_me:$LINENO: result: $GETCONF" >&5
7086 echo "${ECHO_T}$GETCONF" >&6
7087 else
7088   echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7090 fi
7091
7092 fi
7093 if test -z "$ac_cv_prog_GETCONF"; then
7094   ac_ct_GETCONF=$GETCONF
7095   # Extract the first word of "getconf", so it can be a program name with args.
7096 set dummy getconf; ac_word=$2
7097 echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7099 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   if test -n "$ac_ct_GETCONF"; then
7103   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110   for ac_exec_ext in '' $ac_executable_extensions; do
7111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112     ac_cv_prog_ac_ct_GETCONF="getconf"
7113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117 done
7118
7119 fi
7120 fi
7121 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7122 if test -n "$ac_ct_GETCONF"; then
7123   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7124 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7125 else
7126   echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6
7128 fi
7129
7130   GETCONF=$ac_ct_GETCONF
7131 else
7132   GETCONF="$ac_cv_prog_GETCONF"
7133 fi
7134
7135      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7136 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7137 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7141         ac_cv_sys_largefile_CFLAGS=no
7142         case "$host_os" in
7143            # IRIX 6.2 and later require cc -n32.
7144            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7145              if test "$GCC" != yes; then
7146                ac_cv_sys_largefile_CFLAGS=-n32
7147              fi
7148              ac_save_CC="$CC"
7149              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7150              cat >conftest.$ac_ext <<_ACEOF
7151 #line $LINENO "configure"
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157
7158 int
7159 main ()
7160 {
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168   (eval $ac_link) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); } &&
7172          { ac_try='test -s conftest$ac_exeext'
7173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174   (eval $ac_try) 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; }; then
7178   :
7179 else
7180   echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ac_cv_sys_largefile_CFLAGS=no
7184 fi
7185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7186              CC="$ac_save_CC"
7187            esac
7188       }
7189 fi
7190 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7191 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7192      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7193 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7194 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7198         ac_cv_sys_largefile_LDFLAGS=no
7199
7200       }
7201 fi
7202 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7203 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7204      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7205 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7206 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7210         ac_cv_sys_largefile_LIBS=no
7211
7212       }
7213 fi
7214 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7215 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7216
7217      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7218        case "$ac_flag" in
7219        no) ;;
7220        -D_FILE_OFFSET_BITS=*) ;;
7221        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7222        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7223        -D?* | -I?*)
7224          case "$ac_flag" in
7225    no) ;;
7226    ?*)
7227      case "$CPPFLAGS" in
7228      '') CPPFLAGS="$ac_flag" ;;
7229      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7230      esac ;;
7231    esac ;;
7232        *)
7233          case "$ac_flag" in
7234    no) ;;
7235    ?*)
7236      case "$CFLAGS" in
7237      '') CFLAGS="$ac_flag" ;;
7238      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7239      esac ;;
7240    esac ;;
7241        esac
7242      done
7243      case "$ac_cv_sys_largefile_LDFLAGS" in
7244    no) ;;
7245    ?*)
7246      case "$LDFLAGS" in
7247      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7248      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7249      esac ;;
7250    esac
7251      case "$ac_cv_sys_largefile_LIBS" in
7252    no) ;;
7253    ?*)
7254      case "$LIBS" in
7255      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7256      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7257      esac ;;
7258    esac
7259      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7260 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7261 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   ac_cv_sys_file_offset_bits=no
7265       case "$host_os" in
7266         # HP-UX 10.20 and later
7267         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7268           ac_cv_sys_file_offset_bits=64 ;;
7269         esac
7270       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7271         case "$ac_flag" in
7272         -D_FILE_OFFSET_BITS)
7273           ac_cv_sys_file_offset_bits=1 ;;
7274         -D_FILE_OFFSET_BITS=*)
7275           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7276         esac
7277       done
7278
7279 fi
7280 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7281 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7282    if test "$ac_cv_sys_file_offset_bits" != no; then
7283
7284 cat >>confdefs.h <<_ACEOF
7285 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7286 _ACEOF
7287
7288    fi
7289      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7290 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7291 if test "${ac_cv_sys_largefile_source+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   ac_cv_sys_largefile_source=no
7295       case "$host_os" in
7296         # HP-UX 10.20 and later
7297         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7298           ac_cv_sys_largefile_source=1 ;;
7299         esac
7300       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7301         case "$ac_flag" in
7302         -D_LARGEFILE_SOURCE)
7303           ac_cv_sys_largefile_source=1 ;;
7304         -D_LARGEFILE_SOURCE=*)
7305           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7306         esac
7307       done
7308
7309 fi
7310 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7312    if test "$ac_cv_sys_largefile_source" != no; then
7313
7314 cat >>confdefs.h <<_ACEOF
7315 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7316 _ACEOF
7317
7318    fi
7319      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7320 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7321 if test "${ac_cv_sys_large_files+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   ac_cv_sys_large_files=no
7325       case "$host_os" in
7326         # AIX 4.2 and later
7327         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7328           ac_cv_sys_large_files=1 ;;
7329         esac
7330       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7331         case "$ac_flag" in
7332         -D_LARGE_FILES)
7333           ac_cv_sys_large_files=1 ;;
7334         -D_LARGE_FILES=*)
7335           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7336         esac
7337       done
7338
7339 fi
7340 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7341 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7342    if test "$ac_cv_sys_large_files" != no; then
7343
7344 cat >>confdefs.h <<_ACEOF
7345 #define _LARGE_FILES $ac_cv_sys_large_files
7346 _ACEOF
7347
7348    fi
7349    fi
7350
7351
7352
7353 echo "$as_me:$LINENO: checking for X" >&5
7354 echo $ECHO_N "checking for X... $ECHO_C" >&6
7355
7356
7357 # Check whether --with-x or --without-x was given.
7358 if test "${with_x+set}" = set; then
7359   withval="$with_x"
7360
7361 fi;
7362 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7363 if test "x$with_x" = xno; then
7364   # The user explicitly disabled X.
7365   have_x=disabled
7366 else
7367   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7368     # Both variables are already set.
7369     have_x=yes
7370   else
7371     if test "${ac_cv_have_x+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   # One or both of the vars are not set, and there is no cached value.
7375 ac_x_includes=no ac_x_libraries=no
7376 rm -fr conftest.dir
7377 if mkdir conftest.dir; then
7378   cd conftest.dir
7379   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7380   cat >Imakefile <<'_ACEOF'
7381 acfindx:
7382         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7383 _ACEOF
7384   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7385     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7386     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7387     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7388     for ac_extension in a so sl; do
7389       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7390          test -f $ac_im_libdir/libX11.$ac_extension; then
7391         ac_im_usrlibdir=$ac_im_libdir; break
7392       fi
7393     done
7394     # Screen out bogus values from the imake configuration.  They are
7395     # bogus both because they are the default anyway, and because
7396     # using them would break gcc on systems where it needs fixed includes.
7397     case $ac_im_incroot in
7398         /usr/include) ;;
7399         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7400     esac
7401     case $ac_im_usrlibdir in
7402         /usr/lib | /lib) ;;
7403         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7404     esac
7405   fi
7406   cd ..
7407   rm -fr conftest.dir
7408 fi
7409
7410 # Standard set of common directories for X headers.
7411 # Check X11 before X11Rn because it is often a symlink to the current release.
7412 ac_x_header_dirs='
7413 /usr/X11/include
7414 /usr/X11R6/include
7415 /usr/X11R5/include
7416 /usr/X11R4/include
7417
7418 /usr/include/X11
7419 /usr/include/X11R6
7420 /usr/include/X11R5
7421 /usr/include/X11R4
7422
7423 /usr/local/X11/include
7424 /usr/local/X11R6/include
7425 /usr/local/X11R5/include
7426 /usr/local/X11R4/include
7427
7428 /usr/local/include/X11
7429 /usr/local/include/X11R6
7430 /usr/local/include/X11R5
7431 /usr/local/include/X11R4
7432
7433 /usr/X386/include
7434 /usr/x386/include
7435 /usr/XFree86/include/X11
7436
7437 /usr/include
7438 /usr/local/include
7439 /usr/unsupported/include
7440 /usr/athena/include
7441 /usr/local/x11r5/include
7442 /usr/lpp/Xamples/include
7443
7444 /usr/openwin/include
7445 /usr/openwin/share/include'
7446
7447 if test "$ac_x_includes" = no; then
7448   # Guess where to find include files, by looking for Intrinsic.h.
7449   # First, try using that file with no special directory specified.
7450   cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7452 /* confdefs.h.  */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h.  */
7457 #include <X11/Intrinsic.h>
7458 _ACEOF
7459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } >/dev/null; then
7467   if test -s conftest.err; then
7468     ac_cpp_err=$ac_c_preproc_warn_flag
7469   else
7470     ac_cpp_err=
7471   fi
7472 else
7473   ac_cpp_err=yes
7474 fi
7475 if test -z "$ac_cpp_err"; then
7476   # We can compile using X headers with no special include directory.
7477 ac_x_includes=
7478 else
7479   echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482   for ac_dir in $ac_x_header_dirs; do
7483   if test -r "$ac_dir/X11/Intrinsic.h"; then
7484     ac_x_includes=$ac_dir
7485     break
7486   fi
7487 done
7488 fi
7489 rm -f conftest.err conftest.$ac_ext
7490 fi # $ac_x_includes = no
7491
7492 if test "$ac_x_libraries" = no; then
7493   # Check for the libraries.
7494   # See if we find them without any special options.
7495   # Don't add to $LIBS permanently.
7496   ac_save_LIBS=$LIBS
7497   LIBS="-lXt $LIBS"
7498   cat >conftest.$ac_ext <<_ACEOF
7499 #line $LINENO "configure"
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 #include <X11/Intrinsic.h>
7506 int
7507 main ()
7508 {
7509 XtMalloc (0)
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } &&
7520          { ac_try='test -s conftest$ac_exeext'
7521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522   (eval $ac_try) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); }; }; then
7526   LIBS=$ac_save_LIBS
7527 # We can link X programs with no special library path.
7528 ac_x_libraries=
7529 else
7530   echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533 LIBS=$ac_save_LIBS
7534 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7535 do
7536   # Don't even attempt the hair of trying to link an X program!
7537   for ac_extension in a so sl; do
7538     if test -r $ac_dir/libXt.$ac_extension; then
7539       ac_x_libraries=$ac_dir
7540       break 2
7541     fi
7542   done
7543 done
7544 fi
7545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7546 fi # $ac_x_libraries = no
7547
7548 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7549   # Didn't find X anywhere.  Cache the known absence of X.
7550   ac_cv_have_x="have_x=no"
7551 else
7552   # Record where we found X for the cache.
7553   ac_cv_have_x="have_x=yes \
7554                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7555 fi
7556 fi
7557
7558   fi
7559   eval "$ac_cv_have_x"
7560 fi # $with_x != no
7561
7562 if test "$have_x" != yes; then
7563   echo "$as_me:$LINENO: result: $have_x" >&5
7564 echo "${ECHO_T}$have_x" >&6
7565   no_x=yes
7566 else
7567   # If each of the values was on the command line, it overrides each guess.
7568   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7569   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7570   # Update the cache value to reflect the command line values.
7571   ac_cv_have_x="have_x=yes \
7572                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7573   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7574 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7575 fi
7576
7577 if test "$no_x" = yes; then
7578   # Not all programs may use this symbol, but it does not hurt to define it.
7579
7580 cat >>confdefs.h <<\_ACEOF
7581 #define X_DISPLAY_MISSING 1
7582 _ACEOF
7583
7584   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7585 else
7586   if test -n "$x_includes"; then
7587     X_CFLAGS="$X_CFLAGS -I$x_includes"
7588   fi
7589
7590   # It would also be nice to do this for all -L options, not just this one.
7591   if test -n "$x_libraries"; then
7592     X_LIBS="$X_LIBS -L$x_libraries"
7593     # For Solaris; some versions of Sun CC require a space after -R and
7594     # others require no space.  Words are not sufficient . . . .
7595     case `(uname -sr) 2>/dev/null` in
7596     "SunOS 5"*)
7597       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7598 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7599       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7600       cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7602 /* confdefs.h.  */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h.  */
7607
7608 int
7609 main ()
7610 {
7611
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -s conftest$ac_exeext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   ac_R_nospace=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ac_R_nospace=no
7634 fi
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7636       if test $ac_R_nospace = yes; then
7637         echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6
7639         X_LIBS="$X_LIBS -R$x_libraries"
7640       else
7641         LIBS="$ac_xsave_LIBS -R $x_libraries"
7642         cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 /* confdefs.h.  */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h.  */
7649
7650 int
7651 main ()
7652 {
7653
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660   (eval $ac_link) 2>&5
7661   ac_status=$?
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } &&
7664          { ac_try='test -s conftest$ac_exeext'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; }; then
7670   ac_R_space=yes
7671 else
7672   echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 ac_R_space=no
7676 fi
7677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7678         if test $ac_R_space = yes; then
7679           echo "$as_me:$LINENO: result: yes" >&5
7680 echo "${ECHO_T}yes" >&6
7681           X_LIBS="$X_LIBS -R $x_libraries"
7682         else
7683           echo "$as_me:$LINENO: result: neither works" >&5
7684 echo "${ECHO_T}neither works" >&6
7685         fi
7686       fi
7687       LIBS=$ac_xsave_LIBS
7688     esac
7689   fi
7690
7691   # Check for system-dependent libraries X programs must link with.
7692   # Do this before checking for the system-independent R6 libraries
7693   # (-lICE), since we may need -lsocket or whatever for X linking.
7694
7695   if test "$ISC" = yes; then
7696     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7697   else
7698     # Martyn Johnson says this is needed for Ultrix, if the X
7699     # libraries were built with DECnet support.  And Karl Berry says
7700     # the Alpha needs dnet_stub (dnet does not exist).
7701     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7702     cat >conftest.$ac_ext <<_ACEOF
7703 #line $LINENO "configure"
7704 /* confdefs.h.  */
7705 _ACEOF
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h.  */
7709
7710 /* Override any gcc2 internal prototype to avoid an error.  */
7711 #ifdef __cplusplus
7712 extern "C"
7713 #endif
7714 /* We use char because int might match the return type of a gcc2
7715    builtin and then its argument prototype would still apply.  */
7716 char XOpenDisplay ();
7717 int
7718 main ()
7719 {
7720 XOpenDisplay ();
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727   (eval $ac_link) 2>&5
7728   ac_status=$?
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); } &&
7731          { ac_try='test -s conftest$ac_exeext'
7732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733   (eval $ac_try) 2>&5
7734   ac_status=$?
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); }; }; then
7737   :
7738 else
7739   echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7741
7742 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7743 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7744 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   ac_check_lib_save_LIBS=$LIBS
7748 LIBS="-ldnet  $LIBS"
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7751 /* confdefs.h.  */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h.  */
7756
7757 /* Override any gcc2 internal prototype to avoid an error.  */
7758 #ifdef __cplusplus
7759 extern "C"
7760 #endif
7761 /* We use char because int might match the return type of a gcc2
7762    builtin and then its argument prototype would still apply.  */
7763 char dnet_ntoa ();
7764 int
7765 main ()
7766 {
7767 dnet_ntoa ();
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774   (eval $ac_link) 2>&5
7775   ac_status=$?
7776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } &&
7778          { ac_try='test -s conftest$ac_exeext'
7779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780   (eval $ac_try) 2>&5
7781   ac_status=$?
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); }; }; then
7784   ac_cv_lib_dnet_dnet_ntoa=yes
7785 else
7786   echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789 ac_cv_lib_dnet_dnet_ntoa=no
7790 fi
7791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7792 LIBS=$ac_check_lib_save_LIBS
7793 fi
7794 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7795 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7796 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7797   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7798 fi
7799
7800     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7801       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7802 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7803 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   ac_check_lib_save_LIBS=$LIBS
7807 LIBS="-ldnet_stub  $LIBS"
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815
7816 /* Override any gcc2 internal prototype to avoid an error.  */
7817 #ifdef __cplusplus
7818 extern "C"
7819 #endif
7820 /* We use char because int might match the return type of a gcc2
7821    builtin and then its argument prototype would still apply.  */
7822 char dnet_ntoa ();
7823 int
7824 main ()
7825 {
7826 dnet_ntoa ();
7827   ;
7828   return 0;
7829 }
7830 _ACEOF
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833   (eval $ac_link) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } &&
7837          { ac_try='test -s conftest$ac_exeext'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; }; then
7843   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7844 else
7845   echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7847
7848 ac_cv_lib_dnet_stub_dnet_ntoa=no
7849 fi
7850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7852 fi
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7854 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7855 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7856   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7857 fi
7858
7859     fi
7860 fi
7861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7862     LIBS="$ac_xsave_LIBS"
7863
7864     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7865     # to get the SysV transport functions.
7866     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7867     # needs -lnsl.
7868     # The nsl library prevents programs from opening the X display
7869     # on Irix 5.2, according to T.E. Dickey.
7870     # The functions gethostbyname, getservbyname, and inet_addr are
7871     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7872     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7873 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7874 if test "${ac_cv_func_gethostbyname+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   cat >conftest.$ac_ext <<_ACEOF
7878 #line $LINENO "configure"
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884 /* System header to define __stub macros and hopefully few prototypes,
7885     which can conflict with char gethostbyname (); below.
7886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7887     <limits.h> exists even on freestanding compilers.  */
7888 #ifdef __STDC__
7889 # include <limits.h>
7890 #else
7891 # include <assert.h>
7892 #endif
7893 /* Override any gcc2 internal prototype to avoid an error.  */
7894 #ifdef __cplusplus
7895 extern "C"
7896 {
7897 #endif
7898 /* We use char because int might match the return type of a gcc2
7899    builtin and then its argument prototype would still apply.  */
7900 char gethostbyname ();
7901 /* The GNU C library defines this for functions which it implements
7902     to always fail with ENOSYS.  Some functions are actually named
7903     something starting with __ and the normal name is an alias.  */
7904 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7905 choke me
7906 #else
7907 char (*f) () = gethostbyname;
7908 #endif
7909 #ifdef __cplusplus
7910 }
7911 #endif
7912
7913 int
7914 main ()
7915 {
7916 return f != gethostbyname;
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7923   (eval $ac_link) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -s conftest$ac_exeext'
7928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929   (eval $ac_try) 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); }; }; then
7933   ac_cv_func_gethostbyname=yes
7934 else
7935   echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 ac_cv_func_gethostbyname=no
7939 fi
7940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7941 fi
7942 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7943 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7944
7945     if test $ac_cv_func_gethostbyname = no; then
7946       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7947 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7948 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7949   echo $ECHO_N "(cached) $ECHO_C" >&6
7950 else
7951   ac_check_lib_save_LIBS=$LIBS
7952 LIBS="-lnsl  $LIBS"
7953 cat >conftest.$ac_ext <<_ACEOF
7954 #line $LINENO "configure"
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 /* Override any gcc2 internal prototype to avoid an error.  */
7962 #ifdef __cplusplus
7963 extern "C"
7964 #endif
7965 /* We use char because int might match the return type of a gcc2
7966    builtin and then its argument prototype would still apply.  */
7967 char gethostbyname ();
7968 int
7969 main ()
7970 {
7971 gethostbyname ();
7972   ;
7973   return 0;
7974 }
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978   (eval $ac_link) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); } &&
7982          { ac_try='test -s conftest$ac_exeext'
7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   ac_cv_lib_nsl_gethostbyname=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 ac_cv_lib_nsl_gethostbyname=no
7994 fi
7995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7997 fi
7998 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7999 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8000 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8001   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8002 fi
8003
8004       if test $ac_cv_lib_nsl_gethostbyname = no; then
8005         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8006 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8007 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8008   echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010   ac_check_lib_save_LIBS=$LIBS
8011 LIBS="-lbsd  $LIBS"
8012 cat >conftest.$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019
8020 /* Override any gcc2 internal prototype to avoid an error.  */
8021 #ifdef __cplusplus
8022 extern "C"
8023 #endif
8024 /* We use char because int might match the return type of a gcc2
8025    builtin and then its argument prototype would still apply.  */
8026 char gethostbyname ();
8027 int
8028 main ()
8029 {
8030 gethostbyname ();
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037   (eval $ac_link) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); } &&
8041          { ac_try='test -s conftest$ac_exeext'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; }; then
8047   ac_cv_lib_bsd_gethostbyname=yes
8048 else
8049   echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_cv_lib_bsd_gethostbyname=no
8053 fi
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8056 fi
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8058 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8059 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8060   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8061 fi
8062
8063       fi
8064     fi
8065
8066     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8067     # socket/setsockopt and other routines are undefined under SCO ODT
8068     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8069     # on later versions), says Simon Leinen: it contains gethostby*
8070     # variants that don't use the name server (or something).  -lsocket
8071     # must be given before -lnsl if both are needed.  We assume that
8072     # if connect needs -lnsl, so does gethostbyname.
8073     echo "$as_me:$LINENO: checking for connect" >&5
8074 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8075 if test "${ac_cv_func_connect+set}" = set; then
8076   echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078   cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 /* System header to define __stub macros and hopefully few prototypes,
8086     which can conflict with char connect (); below.
8087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088     <limits.h> exists even on freestanding compilers.  */
8089 #ifdef __STDC__
8090 # include <limits.h>
8091 #else
8092 # include <assert.h>
8093 #endif
8094 /* Override any gcc2 internal prototype to avoid an error.  */
8095 #ifdef __cplusplus
8096 extern "C"
8097 {
8098 #endif
8099 /* We use char because int might match the return type of a gcc2
8100    builtin and then its argument prototype would still apply.  */
8101 char connect ();
8102 /* The GNU C library defines this for functions which it implements
8103     to always fail with ENOSYS.  Some functions are actually named
8104     something starting with __ and the normal name is an alias.  */
8105 #if defined (__stub_connect) || defined (__stub___connect)
8106 choke me
8107 #else
8108 char (*f) () = connect;
8109 #endif
8110 #ifdef __cplusplus
8111 }
8112 #endif
8113
8114 int
8115 main ()
8116 {
8117 return f != connect;
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124   (eval $ac_link) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -s conftest$ac_exeext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_cv_func_connect=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_func_connect=no
8140 fi
8141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8142 fi
8143 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8144 echo "${ECHO_T}$ac_cv_func_connect" >&6
8145
8146     if test $ac_cv_func_connect = no; then
8147       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8149 if test "${ac_cv_lib_socket_connect+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   ac_check_lib_save_LIBS=$LIBS
8153 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161
8162 /* Override any gcc2 internal prototype to avoid an error.  */
8163 #ifdef __cplusplus
8164 extern "C"
8165 #endif
8166 /* We use char because int might match the return type of a gcc2
8167    builtin and then its argument prototype would still apply.  */
8168 char connect ();
8169 int
8170 main ()
8171 {
8172 connect ();
8173   ;
8174   return 0;
8175 }
8176 _ACEOF
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179   (eval $ac_link) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); } &&
8183          { ac_try='test -s conftest$ac_exeext'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_lib_socket_connect=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_lib_socket_connect=no
8195 fi
8196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_lib_save_LIBS
8198 fi
8199 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8200 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8201 if test $ac_cv_lib_socket_connect = yes; then
8202   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8203 fi
8204
8205     fi
8206
8207     # Guillermo Gomez says -lposix is necessary on A/UX.
8208     echo "$as_me:$LINENO: checking for remove" >&5
8209 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8210 if test "${ac_cv_func_remove+set}" = set; then
8211   echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213   cat >conftest.$ac_ext <<_ACEOF
8214 #line $LINENO "configure"
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 /* System header to define __stub macros and hopefully few prototypes,
8221     which can conflict with char remove (); below.
8222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8223     <limits.h> exists even on freestanding compilers.  */
8224 #ifdef __STDC__
8225 # include <limits.h>
8226 #else
8227 # include <assert.h>
8228 #endif
8229 /* Override any gcc2 internal prototype to avoid an error.  */
8230 #ifdef __cplusplus
8231 extern "C"
8232 {
8233 #endif
8234 /* We use char because int might match the return type of a gcc2
8235    builtin and then its argument prototype would still apply.  */
8236 char remove ();
8237 /* The GNU C library defines this for functions which it implements
8238     to always fail with ENOSYS.  Some functions are actually named
8239     something starting with __ and the normal name is an alias.  */
8240 #if defined (__stub_remove) || defined (__stub___remove)
8241 choke me
8242 #else
8243 char (*f) () = remove;
8244 #endif
8245 #ifdef __cplusplus
8246 }
8247 #endif
8248
8249 int
8250 main ()
8251 {
8252 return f != remove;
8253   ;
8254   return 0;
8255 }
8256 _ACEOF
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259   (eval $ac_link) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } &&
8263          { ac_try='test -s conftest$ac_exeext'
8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265   (eval $ac_try) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; }; then
8269   ac_cv_func_remove=yes
8270 else
8271   echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_cv_func_remove=no
8275 fi
8276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8277 fi
8278 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8279 echo "${ECHO_T}$ac_cv_func_remove" >&6
8280
8281     if test $ac_cv_func_remove = no; then
8282       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8283 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8284 if test "${ac_cv_lib_posix_remove+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-lposix  $LIBS"
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 /* confdefs.h.  */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h.  */
8296
8297 /* Override any gcc2 internal prototype to avoid an error.  */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 /* We use char because int might match the return type of a gcc2
8302    builtin and then its argument prototype would still apply.  */
8303 char remove ();
8304 int
8305 main ()
8306 {
8307 remove ();
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314   (eval $ac_link) 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } &&
8318          { ac_try='test -s conftest$ac_exeext'
8319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320   (eval $ac_try) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324   ac_cv_lib_posix_remove=yes
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 ac_cv_lib_posix_remove=no
8330 fi
8331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8333 fi
8334 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8335 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8336 if test $ac_cv_lib_posix_remove = yes; then
8337   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8338 fi
8339
8340     fi
8341
8342     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8343     echo "$as_me:$LINENO: checking for shmat" >&5
8344 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8345 if test "${ac_cv_func_shmat+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355 /* System header to define __stub macros and hopefully few prototypes,
8356     which can conflict with char shmat (); below.
8357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8358     <limits.h> exists even on freestanding compilers.  */
8359 #ifdef __STDC__
8360 # include <limits.h>
8361 #else
8362 # include <assert.h>
8363 #endif
8364 /* Override any gcc2 internal prototype to avoid an error.  */
8365 #ifdef __cplusplus
8366 extern "C"
8367 {
8368 #endif
8369 /* We use char because int might match the return type of a gcc2
8370    builtin and then its argument prototype would still apply.  */
8371 char shmat ();
8372 /* The GNU C library defines this for functions which it implements
8373     to always fail with ENOSYS.  Some functions are actually named
8374     something starting with __ and the normal name is an alias.  */
8375 #if defined (__stub_shmat) || defined (__stub___shmat)
8376 choke me
8377 #else
8378 char (*f) () = shmat;
8379 #endif
8380 #ifdef __cplusplus
8381 }
8382 #endif
8383
8384 int
8385 main ()
8386 {
8387 return f != shmat;
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394   (eval $ac_link) 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -s conftest$ac_exeext'
8399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; }; then
8404   ac_cv_func_shmat=yes
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409 ac_cv_func_shmat=no
8410 fi
8411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8412 fi
8413 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8414 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8415
8416     if test $ac_cv_func_shmat = no; then
8417       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8418 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8419 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   ac_check_lib_save_LIBS=$LIBS
8423 LIBS="-lipc  $LIBS"
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431
8432 /* Override any gcc2 internal prototype to avoid an error.  */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437    builtin and then its argument prototype would still apply.  */
8438 char shmat ();
8439 int
8440 main ()
8441 {
8442 shmat ();
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449   (eval $ac_link) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } &&
8453          { ac_try='test -s conftest$ac_exeext'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; }; then
8459   ac_cv_lib_ipc_shmat=yes
8460 else
8461   echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_lib_ipc_shmat=no
8465 fi
8466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8467 LIBS=$ac_check_lib_save_LIBS
8468 fi
8469 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8470 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8471 if test $ac_cv_lib_ipc_shmat = yes; then
8472   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8473 fi
8474
8475     fi
8476   fi
8477
8478   # Check for libraries that X11R6 Xt/Xaw programs need.
8479   ac_save_LDFLAGS=$LDFLAGS
8480   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8481   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8482   # check for ICE first), but we must link in the order -lSM -lICE or
8483   # we get undefined symbols.  So assume we have SM if we have ICE.
8484   # These have to be linked with before -lX11, unlike the other
8485   # libraries we check for below, so use a different variable.
8486   # John Interrante, Karl Berry
8487   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8488 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8489 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   ac_check_lib_save_LIBS=$LIBS
8493 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8494 cat >conftest.$ac_ext <<_ACEOF
8495 #line $LINENO "configure"
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 /* Override any gcc2 internal prototype to avoid an error.  */
8503 #ifdef __cplusplus
8504 extern "C"
8505 #endif
8506 /* We use char because int might match the return type of a gcc2
8507    builtin and then its argument prototype would still apply.  */
8508 char IceConnectionNumber ();
8509 int
8510 main ()
8511 {
8512 IceConnectionNumber ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519   (eval $ac_link) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -s conftest$ac_exeext'
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_cv_lib_ICE_IceConnectionNumber=yes
8530 else
8531   echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_cv_lib_ICE_IceConnectionNumber=no
8535 fi
8536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8537 LIBS=$ac_check_lib_save_LIBS
8538 fi
8539 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8540 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8541 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8542   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8543 fi
8544
8545   LDFLAGS=$ac_save_LDFLAGS
8546
8547 fi
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572 for ac_header in \
8573         assert.h \
8574         fcntl.h \
8575         grp.h \
8576         pwd.h \
8577         libc.h \
8578         limits.h \
8579         stdarg.h \
8580         stdlib.h \
8581         stdint.h \
8582         string.h \
8583         termios.h \
8584         unistd.h \
8585         sys/byteorder.h \
8586         sys/ioctl.h \
8587         sys/select.h \
8588         sys/sockio.h \
8589         sys/time.h \
8590         sys/socket.h \
8591         arpa/nameser.h \
8592         resolv.h \
8593         mtio.h \
8594         sys/mtio.h \
8595
8596 do
8597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599   echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 fi
8604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8606 else
8607   # Is the header compilable?
8608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8611 #line $LINENO "configure"
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617 $ac_includes_default
8618 #include <$ac_header>
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622   (eval $ac_compile) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } &&
8626          { ac_try='test -s conftest.$ac_objext'
8627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628   (eval $ac_try) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632   ac_header_compiler=yes
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_header_compiler=no
8638 fi
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8642
8643 # Is the header present?
8644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653 #include <$ac_header>
8654 _ACEOF
8655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8657   ac_status=$?
8658   grep -v '^ *+' conftest.er1 >conftest.err
8659   rm -f conftest.er1
8660   cat conftest.err >&5
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); } >/dev/null; then
8663   if test -s conftest.err; then
8664     ac_cpp_err=$ac_c_preproc_warn_flag
8665   else
8666     ac_cpp_err=
8667   fi
8668 else
8669   ac_cpp_err=yes
8670 fi
8671 if test -z "$ac_cpp_err"; then
8672   ac_header_preproc=yes
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677   ac_header_preproc=no
8678 fi
8679 rm -f conftest.err conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8681 echo "${ECHO_T}$ac_header_preproc" >&6
8682
8683 # So?  What about this header?
8684 case $ac_header_compiler:$ac_header_preproc in
8685   yes:no )
8686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8690     (
8691       cat <<\_ASBOX
8692 ## ------------------------------------ ##
8693 ## Report this to bug-autoconf@gnu.org. ##
8694 ## ------------------------------------ ##
8695 _ASBOX
8696     ) |
8697       sed "s/^/$as_me: WARNING:     /" >&2
8698     ;;
8699   no:yes )
8700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8702     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8706     (
8707       cat <<\_ASBOX
8708 ## ------------------------------------ ##
8709 ## Report this to bug-autoconf@gnu.org. ##
8710 ## ------------------------------------ ##
8711 _ASBOX
8712     ) |
8713       sed "s/^/$as_me: WARNING:     /" >&2
8714     ;;
8715 esac
8716 echo "$as_me:$LINENO: checking for $ac_header" >&5
8717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8719   echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721   eval "$as_ac_Header=$ac_header_preproc"
8722 fi
8723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8725
8726 fi
8727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8728   cat >>confdefs.h <<_ACEOF
8729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8730 _ACEOF
8731
8732 fi
8733
8734 done
8735
8736 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8738 if test "${ac_cv_header_stdc+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748 #include <stdlib.h>
8749 #include <stdarg.h>
8750 #include <string.h>
8751 #include <float.h>
8752
8753 int
8754 main ()
8755 {
8756
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763   (eval $ac_compile) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -s conftest.$ac_objext'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; }; then
8773   ac_cv_header_stdc=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778 ac_cv_header_stdc=no
8779 fi
8780 rm -f conftest.$ac_objext conftest.$ac_ext
8781
8782 if test $ac_cv_header_stdc = yes; then
8783   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8784   cat >conftest.$ac_ext <<_ACEOF
8785 #line $LINENO "configure"
8786 /* confdefs.h.  */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h.  */
8791 #include <string.h>
8792
8793 _ACEOF
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795   $EGREP "memchr" >/dev/null 2>&1; then
8796   :
8797 else
8798   ac_cv_header_stdc=no
8799 fi
8800 rm -f conftest*
8801
8802 fi
8803
8804 if test $ac_cv_header_stdc = yes; then
8805   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8806   cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 #include <stdlib.h>
8814
8815 _ACEOF
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817   $EGREP "free" >/dev/null 2>&1; then
8818   :
8819 else
8820   ac_cv_header_stdc=no
8821 fi
8822 rm -f conftest*
8823
8824 fi
8825
8826 if test $ac_cv_header_stdc = yes; then
8827   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8828   if test "$cross_compiling" = yes; then
8829   :
8830 else
8831   cat >conftest.$ac_ext <<_ACEOF
8832 #line $LINENO "configure"
8833 /* confdefs.h.  */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h.  */
8838 #include <ctype.h>
8839 #if ((' ' & 0x0FF) == 0x020)
8840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8842 #else
8843 # define ISLOWER(c) \
8844                    (('a' <= (c) && (c) <= 'i') \
8845                      || ('j' <= (c) && (c) <= 'r') \
8846                      || ('s' <= (c) && (c) <= 'z'))
8847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8848 #endif
8849
8850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8851 int
8852 main ()
8853 {
8854   int i;
8855   for (i = 0; i < 256; i++)
8856     if (XOR (islower (i), ISLOWER (i))
8857         || toupper (i) != TOUPPER (i))
8858       exit(2);
8859   exit (0);
8860 }
8861 _ACEOF
8862 rm -f conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869   (eval $ac_try) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; }; then
8873   :
8874 else
8875   echo "$as_me: program exited with status $ac_status" >&5
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 ( exit $ac_status )
8880 ac_cv_header_stdc=no
8881 fi
8882 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 fi
8885 fi
8886 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8887 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8888 if test $ac_cv_header_stdc = yes; then
8889
8890 cat >>confdefs.h <<\_ACEOF
8891 #define STDC_HEADERS 1
8892 _ACEOF
8893
8894 fi
8895
8896 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8897 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8898 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901   cat >conftest.$ac_ext <<_ACEOF
8902 #line $LINENO "configure"
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 #include <sys/types.h>
8909 int
8910 main ()
8911 {
8912 return makedev(0, 0);
8913   ;
8914   return 0;
8915 }
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919   (eval $ac_link) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -s conftest$ac_exeext'
8924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925   (eval $ac_try) 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); }; }; then
8929   ac_cv_header_sys_types_h_makedev=yes
8930 else
8931   echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 ac_cv_header_sys_types_h_makedev=no
8935 fi
8936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8937
8938 fi
8939 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8940 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8941
8942 if test $ac_cv_header_sys_types_h_makedev = no; then
8943 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8944   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8945 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8946 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8947   echo $ECHO_N "(cached) $ECHO_C" >&6
8948 fi
8949 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8950 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8951 else
8952   # Is the header compilable?
8953 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8954 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 $ac_includes_default
8963 #include <sys/mkdev.h>
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967   (eval $ac_compile) 2>&5
8968   ac_status=$?
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -s conftest.$ac_objext'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; }; then
8977   ac_header_compiler=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 ac_header_compiler=no
8983 fi
8984 rm -f conftest.$ac_objext conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8986 echo "${ECHO_T}$ac_header_compiler" >&6
8987
8988 # Is the header present?
8989 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8990 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 /* confdefs.h.  */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h.  */
8998 #include <sys/mkdev.h>
8999 _ACEOF
9000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } >/dev/null; then
9008   if test -s conftest.err; then
9009     ac_cpp_err=$ac_c_preproc_warn_flag
9010   else
9011     ac_cpp_err=
9012   fi
9013 else
9014   ac_cpp_err=yes
9015 fi
9016 if test -z "$ac_cpp_err"; then
9017   ac_header_preproc=yes
9018 else
9019   echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022   ac_header_preproc=no
9023 fi
9024 rm -f conftest.err conftest.$ac_ext
9025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9026 echo "${ECHO_T}$ac_header_preproc" >&6
9027
9028 # So?  What about this header?
9029 case $ac_header_compiler:$ac_header_preproc in
9030   yes:no )
9031     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9032 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9033     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9034 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9035     (
9036       cat <<\_ASBOX
9037 ## ------------------------------------ ##
9038 ## Report this to bug-autoconf@gnu.org. ##
9039 ## ------------------------------------ ##
9040 _ASBOX
9041     ) |
9042       sed "s/^/$as_me: WARNING:     /" >&2
9043     ;;
9044   no:yes )
9045     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9046 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9047     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9048 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9049     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9051     (
9052       cat <<\_ASBOX
9053 ## ------------------------------------ ##
9054 ## Report this to bug-autoconf@gnu.org. ##
9055 ## ------------------------------------ ##
9056 _ASBOX
9057     ) |
9058       sed "s/^/$as_me: WARNING:     /" >&2
9059     ;;
9060 esac
9061 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9062 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9067 fi
9068 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9069 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9070
9071 fi
9072 if test $ac_cv_header_sys_mkdev_h = yes; then
9073
9074 cat >>confdefs.h <<\_ACEOF
9075 #define MAJOR_IN_MKDEV 1
9076 _ACEOF
9077
9078 fi
9079
9080
9081
9082   if test $ac_cv_header_sys_mkdev_h = no; then
9083     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9084   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9085 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9086 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9087   echo $ECHO_N "(cached) $ECHO_C" >&6
9088 fi
9089 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9090 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9091 else
9092   # Is the header compilable?
9093 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9094 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9097 /* confdefs.h.  */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h.  */
9102 $ac_includes_default
9103 #include <sys/sysmacros.h>
9104 _ACEOF
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107   (eval $ac_compile) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } &&
9111          { ac_try='test -s conftest.$ac_objext'
9112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113   (eval $ac_try) 2>&5
9114   ac_status=$?
9115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116   (exit $ac_status); }; }; then
9117   ac_header_compiler=yes
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_header_compiler=no
9123 fi
9124 rm -f conftest.$ac_objext conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9126 echo "${ECHO_T}$ac_header_compiler" >&6
9127
9128 # Is the header present?
9129 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9130 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9132 #line $LINENO "configure"
9133 /* confdefs.h.  */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h.  */
9138 #include <sys/sysmacros.h>
9139 _ACEOF
9140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9142   ac_status=$?
9143   grep -v '^ *+' conftest.er1 >conftest.err
9144   rm -f conftest.er1
9145   cat conftest.err >&5
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); } >/dev/null; then
9148   if test -s conftest.err; then
9149     ac_cpp_err=$ac_c_preproc_warn_flag
9150   else
9151     ac_cpp_err=
9152   fi
9153 else
9154   ac_cpp_err=yes
9155 fi
9156 if test -z "$ac_cpp_err"; then
9157   ac_header_preproc=yes
9158 else
9159   echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9161
9162   ac_header_preproc=no
9163 fi
9164 rm -f conftest.err conftest.$ac_ext
9165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9166 echo "${ECHO_T}$ac_header_preproc" >&6
9167
9168 # So?  What about this header?
9169 case $ac_header_compiler:$ac_header_preproc in
9170   yes:no )
9171     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9172 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9173     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9174 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9175     (
9176       cat <<\_ASBOX
9177 ## ------------------------------------ ##
9178 ## Report this to bug-autoconf@gnu.org. ##
9179 ## ------------------------------------ ##
9180 _ASBOX
9181     ) |
9182       sed "s/^/$as_me: WARNING:     /" >&2
9183     ;;
9184   no:yes )
9185     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9186 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9187     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9188 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9189     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9191     (
9192       cat <<\_ASBOX
9193 ## ------------------------------------ ##
9194 ## Report this to bug-autoconf@gnu.org. ##
9195 ## ------------------------------------ ##
9196 _ASBOX
9197     ) |
9198       sed "s/^/$as_me: WARNING:     /" >&2
9199     ;;
9200 esac
9201 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9202 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9203 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9207 fi
9208 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9209 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9210
9211 fi
9212 if test $ac_cv_header_sys_sysmacros_h = yes; then
9213
9214 cat >>confdefs.h <<\_ACEOF
9215 #define MAJOR_IN_SYSMACROS 1
9216 _ACEOF
9217
9218 fi
9219
9220
9221   fi
9222 fi
9223
9224
9225
9226
9227
9228
9229 ac_header_dirent=no
9230 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9231   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9232 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9233 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9235   echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237   cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244 #include <sys/types.h>
9245 #include <$ac_hdr>
9246
9247 int
9248 main ()
9249 {
9250 if ((DIR *) 0)
9251 return 0;
9252   ;
9253   return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258   (eval $ac_compile) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); } &&
9262          { ac_try='test -s conftest.$ac_objext'
9263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264   (eval $ac_try) 2>&5
9265   ac_status=$?
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); }; }; then
9268   eval "$as_ac_Header=yes"
9269 else
9270   echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9272
9273 eval "$as_ac_Header=no"
9274 fi
9275 rm -f conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9280   cat >>confdefs.h <<_ACEOF
9281 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9282 _ACEOF
9283
9284 ac_header_dirent=$ac_hdr; break
9285 fi
9286
9287 done
9288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9289 if test $ac_header_dirent = dirent.h; then
9290   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9291 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9292 if test "${ac_cv_search_opendir+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   ac_func_search_save_LIBS=$LIBS
9296 ac_cv_search_opendir=no
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9299 /* confdefs.h.  */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h.  */
9304
9305 /* Override any gcc2 internal prototype to avoid an error.  */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 /* We use char because int might match the return type of a gcc2
9310    builtin and then its argument prototype would still apply.  */
9311 char opendir ();
9312 int
9313 main ()
9314 {
9315 opendir ();
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322   (eval $ac_link) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } &&
9326          { ac_try='test -s conftest$ac_exeext'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; }; then
9332   ac_cv_search_opendir="none required"
9333 else
9334   echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 fi
9338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9339 if test "$ac_cv_search_opendir" = no; then
9340   for ac_lib in dir; do
9341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9342     cat >conftest.$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9344 /* confdefs.h.  */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h.  */
9349
9350 /* Override any gcc2 internal prototype to avoid an error.  */
9351 #ifdef __cplusplus
9352 extern "C"
9353 #endif
9354 /* We use char because int might match the return type of a gcc2
9355    builtin and then its argument prototype would still apply.  */
9356 char opendir ();
9357 int
9358 main ()
9359 {
9360 opendir ();
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367   (eval $ac_link) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } &&
9371          { ac_try='test -s conftest$ac_exeext'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; }; then
9377   ac_cv_search_opendir="-l$ac_lib"
9378 break
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 fi
9384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9385   done
9386 fi
9387 LIBS=$ac_func_search_save_LIBS
9388 fi
9389 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9390 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9391 if test "$ac_cv_search_opendir" != no; then
9392   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9393
9394 fi
9395
9396 else
9397   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9398 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9399 if test "${ac_cv_search_opendir+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   ac_func_search_save_LIBS=$LIBS
9403 ac_cv_search_opendir=no
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411
9412 /* Override any gcc2 internal prototype to avoid an error.  */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 /* We use char because int might match the return type of a gcc2
9417    builtin and then its argument prototype would still apply.  */
9418 char opendir ();
9419 int
9420 main ()
9421 {
9422 opendir ();
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429   (eval $ac_link) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); } &&
9433          { ac_try='test -s conftest$ac_exeext'
9434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9435   (eval $ac_try) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); }; }; then
9439   ac_cv_search_opendir="none required"
9440 else
9441   echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444 fi
9445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9446 if test "$ac_cv_search_opendir" = no; then
9447   for ac_lib in x; do
9448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9449     cat >conftest.$ac_ext <<_ACEOF
9450 #line $LINENO "configure"
9451 /* confdefs.h.  */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h.  */
9456
9457 /* Override any gcc2 internal prototype to avoid an error.  */
9458 #ifdef __cplusplus
9459 extern "C"
9460 #endif
9461 /* We use char because int might match the return type of a gcc2
9462    builtin and then its argument prototype would still apply.  */
9463 char opendir ();
9464 int
9465 main ()
9466 {
9467 opendir ();
9468   ;
9469   return 0;
9470 }
9471 _ACEOF
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474   (eval $ac_link) 2>&5
9475   ac_status=$?
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); } &&
9478          { ac_try='test -s conftest$ac_exeext'
9479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480   (eval $ac_try) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_search_opendir="-l$ac_lib"
9485 break
9486 else
9487   echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9489
9490 fi
9491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9492   done
9493 fi
9494 LIBS=$ac_func_search_save_LIBS
9495 fi
9496 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9497 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9498 if test "$ac_cv_search_opendir" != no; then
9499   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9500
9501 fi
9502
9503 fi
9504
9505 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9506 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9507 if test "${ac_cv_header_stat_broken+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   cat >conftest.$ac_ext <<_ACEOF
9511 #line $LINENO "configure"
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9517 #include <sys/types.h>
9518 #include <sys/stat.h>
9519
9520 #if defined(S_ISBLK) && defined(S_IFDIR)
9521 # if S_ISBLK (S_IFDIR)
9522 You lose.
9523 # endif
9524 #endif
9525
9526 #if defined(S_ISBLK) && defined(S_IFCHR)
9527 # if S_ISBLK (S_IFCHR)
9528 You lose.
9529 # endif
9530 #endif
9531
9532 #if defined(S_ISLNK) && defined(S_IFREG)
9533 # if S_ISLNK (S_IFREG)
9534 You lose.
9535 # endif
9536 #endif
9537
9538 #if defined(S_ISSOCK) && defined(S_IFREG)
9539 # if S_ISSOCK (S_IFREG)
9540 You lose.
9541 # endif
9542 #endif
9543
9544 _ACEOF
9545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9546   $EGREP "You lose" >/dev/null 2>&1; then
9547   ac_cv_header_stat_broken=yes
9548 else
9549   ac_cv_header_stat_broken=no
9550 fi
9551 rm -f conftest*
9552
9553 fi
9554 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9555 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9556 if test $ac_cv_header_stat_broken = yes; then
9557
9558 cat >>confdefs.h <<\_ACEOF
9559 #define STAT_MACROS_BROKEN 1
9560 _ACEOF
9561
9562 fi
9563
9564 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9565 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9566 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576 #include <sys/types.h>
9577 #include <sys/wait.h>
9578 #ifndef WEXITSTATUS
9579 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9580 #endif
9581 #ifndef WIFEXITED
9582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9583 #endif
9584
9585 int
9586 main ()
9587 {
9588   int s;
9589   wait (&s);
9590   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9591   ;
9592   return 0;
9593 }
9594 _ACEOF
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597   (eval $ac_compile) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } &&
9601          { ac_try='test -s conftest.$ac_objext'
9602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603   (eval $ac_try) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; }; then
9607   ac_cv_header_sys_wait_h=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612 ac_cv_header_sys_wait_h=no
9613 fi
9614 rm -f conftest.$ac_objext conftest.$ac_ext
9615 fi
9616 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9617 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9618 if test $ac_cv_header_sys_wait_h = yes; then
9619
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_SYS_WAIT_H 1
9622 _ACEOF
9623
9624 fi
9625
9626 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9627 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9628 if test "${ac_cv_header_time+set}" = set; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631   cat >conftest.$ac_ext <<_ACEOF
9632 #line $LINENO "configure"
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638 #include <sys/types.h>
9639 #include <sys/time.h>
9640 #include <time.h>
9641
9642 int
9643 main ()
9644 {
9645 if ((struct tm *) 0)
9646 return 0;
9647   ;
9648   return 0;
9649 }
9650 _ACEOF
9651 rm -f conftest.$ac_objext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9653   (eval $ac_compile) 2>&5
9654   ac_status=$?
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } &&
9657          { ac_try='test -s conftest.$ac_objext'
9658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659   (eval $ac_try) 2>&5
9660   ac_status=$?
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); }; }; then
9663   ac_cv_header_time=yes
9664 else
9665   echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9667
9668 ac_cv_header_time=no
9669 fi
9670 rm -f conftest.$ac_objext conftest.$ac_ext
9671 fi
9672 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9673 echo "${ECHO_T}$ac_cv_header_time" >&6
9674 if test $ac_cv_header_time = yes; then
9675
9676 cat >>confdefs.h <<\_ACEOF
9677 #define TIME_WITH_SYS_TIME 1
9678 _ACEOF
9679
9680 fi
9681
9682
9683 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9684 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9685 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   cat >conftest.$ac_ext <<_ACEOF
9689 #line $LINENO "configure"
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695 $ac_includes_default
9696 int
9697 main ()
9698 {
9699 static struct stat ac_aggr;
9700 if (ac_aggr.st_blksize)
9701 return 0;
9702   ;
9703   return 0;
9704 }
9705 _ACEOF
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708   (eval $ac_compile) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -s conftest.$ac_objext'
9713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714   (eval $ac_try) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   ac_cv_member_struct_stat_st_blksize=yes
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 $ac_includes_default
9731 int
9732 main ()
9733 {
9734 static struct stat ac_aggr;
9735 if (sizeof ac_aggr.st_blksize)
9736 return 0;
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743   (eval $ac_compile) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } &&
9747          { ac_try='test -s conftest.$ac_objext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   ac_cv_member_struct_stat_st_blksize=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_cv_member_struct_stat_st_blksize=no
9759 fi
9760 rm -f conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9763 fi
9764 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9765 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9766 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9767
9768 cat >>confdefs.h <<_ACEOF
9769 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9770 _ACEOF
9771
9772
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_ST_BLKSIZE 1
9775 _ACEOF
9776
9777 fi
9778
9779
9780 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9781 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9782 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9783   echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785   cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 $ac_includes_default
9793 int
9794 main ()
9795 {
9796 static struct stat ac_aggr;
9797 if (ac_aggr.st_blocks)
9798 return 0;
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805   (eval $ac_compile) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } &&
9809          { ac_try='test -s conftest.$ac_objext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   ac_cv_member_struct_stat_st_blocks=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 cat >conftest.$ac_ext <<_ACEOF
9821 #line $LINENO "configure"
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827 $ac_includes_default
9828 int
9829 main ()
9830 {
9831 static struct stat ac_aggr;
9832 if (sizeof ac_aggr.st_blocks)
9833 return 0;
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840   (eval $ac_compile) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -s conftest.$ac_objext'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; }; then
9850   ac_cv_member_struct_stat_st_blocks=yes
9851 else
9852   echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 ac_cv_member_struct_stat_st_blocks=no
9856 fi
9857 rm -f conftest.$ac_objext conftest.$ac_ext
9858 fi
9859 rm -f conftest.$ac_objext conftest.$ac_ext
9860 fi
9861 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9862 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9863 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9864
9865 cat >>confdefs.h <<_ACEOF
9866 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9867 _ACEOF
9868
9869
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_ST_BLOCKS 1
9872 _ACEOF
9873
9874 else
9875   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9876 fi
9877
9878
9879 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9880 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9881 if test "${ac_cv_struct_tm+set}" = set; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884   cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891 #include <sys/types.h>
9892 #include <time.h>
9893
9894 int
9895 main ()
9896 {
9897 struct tm *tp; tp->tm_sec;
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904   (eval $ac_compile) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -s conftest.$ac_objext'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   ac_cv_struct_tm=time.h
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919 ac_cv_struct_tm=sys/time.h
9920 fi
9921 rm -f conftest.$ac_objext conftest.$ac_ext
9922 fi
9923 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9924 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9925 if test $ac_cv_struct_tm = sys/time.h; then
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define TM_IN_SYS_TIME 1
9929 _ACEOF
9930
9931 fi
9932
9933 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9934 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9935 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9936   echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938   cat >conftest.$ac_ext <<_ACEOF
9939 #line $LINENO "configure"
9940 /* confdefs.h.  */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h.  */
9945 #include <sys/types.h>
9946 #include <$ac_cv_struct_tm>
9947
9948
9949 int
9950 main ()
9951 {
9952 static struct tm ac_aggr;
9953 if (ac_aggr.tm_zone)
9954 return 0;
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest.$ac_objext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9961   (eval $ac_compile) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -s conftest.$ac_objext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_cv_member_struct_tm_tm_zone=yes
9972 else
9973   echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983 #include <sys/types.h>
9984 #include <$ac_cv_struct_tm>
9985
9986
9987 int
9988 main ()
9989 {
9990 static struct tm ac_aggr;
9991 if (sizeof ac_aggr.tm_zone)
9992 return 0;
9993   ;
9994   return 0;
9995 }
9996 _ACEOF
9997 rm -f conftest.$ac_objext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9999   (eval $ac_compile) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -s conftest.$ac_objext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   ac_cv_member_struct_tm_tm_zone=yes
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 ac_cv_member_struct_tm_tm_zone=no
10015 fi
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10017 fi
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10019 fi
10020 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10021 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10022 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10023
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_STRUCT_TM_TM_ZONE 1
10026 _ACEOF
10027
10028
10029 fi
10030
10031 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10032
10033 cat >>confdefs.h <<\_ACEOF
10034 #define HAVE_TM_ZONE 1
10035 _ACEOF
10036
10037 else
10038   echo "$as_me:$LINENO: checking for tzname" >&5
10039 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10040 if test "${ac_cv_var_tzname+set}" = set; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043   cat >conftest.$ac_ext <<_ACEOF
10044 #line $LINENO "configure"
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050 #include <time.h>
10051 #ifndef tzname /* For SGI.  */
10052 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10053 #endif
10054
10055 int
10056 main ()
10057 {
10058 atoi(*tzname);
10059   ;
10060   return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065   (eval $ac_link) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } &&
10069          { ac_try='test -s conftest$ac_exeext'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; }; then
10075   ac_cv_var_tzname=yes
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080 ac_cv_var_tzname=no
10081 fi
10082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10083 fi
10084 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10085 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10086   if test $ac_cv_var_tzname = yes; then
10087
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_TZNAME 1
10090 _ACEOF
10091
10092   fi
10093 fi
10094
10095
10096 echo "$as_me:$LINENO: checking for utime.h" >&5
10097 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10098 if test "${ba_cv_header_utime_h+set}" = set; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10103 /* confdefs.h.  */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h.  */
10108
10109 #include <sys/types.h>
10110 #include <utime.h>
10111 int
10112 main ()
10113 {
10114 struct utimbuf foo
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121   (eval $ac_compile) 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } &&
10125          { ac_try='test -s conftest.$ac_objext'
10126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127   (eval $ac_try) 2>&5
10128   ac_status=$?
10129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130   (exit $ac_status); }; }; then
10131   ba_cv_header_utime_h=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136 ba_cv_header_utime_h=no
10137 fi
10138 rm -f conftest.$ac_objext conftest.$ac_ext
10139 fi
10140 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10141 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10142 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_UTIME_H 1
10144 _ACEOF
10145
10146
10147 echo "$as_me:$LINENO: checking for socklen_t" >&5
10148 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10149 if test "${ba_cv_header_socklen_t+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159
10160 #include <sys/types.h>
10161 #include <sys/socket.h>
10162 int
10163 main ()
10164 {
10165 socklen_t x
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172   (eval $ac_compile) 2>&5
10173   ac_status=$?
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } &&
10176          { ac_try='test -s conftest.$ac_objext'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; }; then
10182   ba_cv_header_socklen_t=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 ba_cv_header_socklen_t=no
10188 fi
10189 rm -f conftest.$ac_objext conftest.$ac_ext
10190 fi
10191 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10192 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10193 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_SOCKLEN_T 1
10195 _ACEOF
10196
10197
10198 echo "$as_me:$LINENO: checking for bigendian" >&5
10199 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10200 if test "${ba_cv_bigendian+set}" = set; then
10201   echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203   if test "$cross_compiling" = yes; then
10204   ba_cv_bigendian=no
10205 else
10206   cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10214 _ACEOF
10215 rm -f conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217   (eval $ac_link) 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; }; then
10226   ba_cv_bigendian=yes
10227 else
10228   echo "$as_me: program exited with status $ac_status" >&5
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232 ( exit $ac_status )
10233 ba_cv_bigendian=no
10234 fi
10235 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10236 fi
10237 fi
10238 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10239 echo "${ECHO_T}$ba_cv_bigendian" >&6
10240 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_BIGENDIAN 1
10242 _ACEOF
10243
10244
10245
10246 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10247 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10248 if test "${ac_cv_c_const+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258
10259 int
10260 main ()
10261 {
10262 /* FIXME: Include the comments suggested by Paul. */
10263 #ifndef __cplusplus
10264   /* Ultrix mips cc rejects this.  */
10265   typedef int charset[2];
10266   const charset x;
10267   /* SunOS 4.1.1 cc rejects this.  */
10268   char const *const *ccp;
10269   char **p;
10270   /* NEC SVR4.0.2 mips cc rejects this.  */
10271   struct point {int x, y;};
10272   static struct point const zero = {0,0};
10273   /* AIX XL C 1.02.0.0 rejects this.
10274      It does not let you subtract one const X* pointer from another in
10275      an arm of an if-expression whose if-part is not a constant
10276      expression */
10277   const char *g = "string";
10278   ccp = &g + (g ? g-g : 0);
10279   /* HPUX 7.0 cc rejects these. */
10280   ++ccp;
10281   p = (char**) ccp;
10282   ccp = (char const *const *) p;
10283   { /* SCO 3.2v4 cc rejects this.  */
10284     char *t;
10285     char const *s = 0 ? (char *) 0 : (char const *) 0;
10286
10287     *t++ = 0;
10288   }
10289   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10290     int x[] = {25, 17};
10291     const int *foo = &x[0];
10292     ++foo;
10293   }
10294   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10295     typedef const int *iptr;
10296     iptr p = 0;
10297     ++p;
10298   }
10299   { /* AIX XL C 1.02.0.0 rejects this saying
10300        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10301     struct s { int j; const int *ap[3]; };
10302     struct s *b; b->j = 5;
10303   }
10304   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10305     const int foo = 10;
10306   }
10307 #endif
10308
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315   (eval $ac_compile) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -s conftest.$ac_objext'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; }; then
10325   ac_cv_c_const=yes
10326 else
10327   echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10329
10330 ac_cv_c_const=no
10331 fi
10332 rm -f conftest.$ac_objext conftest.$ac_ext
10333 fi
10334 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10335 echo "${ECHO_T}$ac_cv_c_const" >&6
10336 if test $ac_cv_c_const = no; then
10337
10338 cat >>confdefs.h <<\_ACEOF
10339 #define const
10340 _ACEOF
10341
10342 fi
10343
10344
10345
10346 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10347 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10348 fstype=no
10349 # The order of these tests is important.
10350 cat >conftest.$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10352 /* confdefs.h.  */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h.  */
10357 #include <sys/statvfs.h>
10358 #include <sys/fstyp.h>
10359 _ACEOF
10360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10362   ac_status=$?
10363   grep -v '^ *+' conftest.er1 >conftest.err
10364   rm -f conftest.er1
10365   cat conftest.err >&5
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } >/dev/null; then
10368   if test -s conftest.err; then
10369     ac_cpp_err=$ac_c_preproc_warn_flag
10370   else
10371     ac_cpp_err=
10372   fi
10373 else
10374   ac_cpp_err=yes
10375 fi
10376 if test -z "$ac_cpp_err"; then
10377   cat >>confdefs.h <<\_ACEOF
10378 #define FSTYPE_STATVFS 1
10379 _ACEOF
10380  fstype=SVR4
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385
10386 fi
10387 rm -f conftest.err conftest.$ac_ext
10388 if test $fstype = no; then
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396 #include <sys/statfs.h>
10397 #include <sys/fstyp.h>
10398 _ACEOF
10399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10400   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } >/dev/null; then
10407   if test -s conftest.err; then
10408     ac_cpp_err=$ac_c_preproc_warn_flag
10409   else
10410     ac_cpp_err=
10411   fi
10412 else
10413   ac_cpp_err=yes
10414 fi
10415 if test -z "$ac_cpp_err"; then
10416   cat >>confdefs.h <<\_ACEOF
10417 #define FSTYPE_USG_STATFS 1
10418 _ACEOF
10419  fstype=SVR3
10420 else
10421   echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424
10425 fi
10426 rm -f conftest.err conftest.$ac_ext
10427 fi
10428 if test $fstype = no; then
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10431 /* confdefs.h.  */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h.  */
10436 #include <sys/statfs.h>
10437 #include <sys/vmount.h>
10438 _ACEOF
10439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10441   ac_status=$?
10442   grep -v '^ *+' conftest.er1 >conftest.err
10443   rm -f conftest.er1
10444   cat conftest.err >&5
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); } >/dev/null; then
10447   if test -s conftest.err; then
10448     ac_cpp_err=$ac_c_preproc_warn_flag
10449   else
10450     ac_cpp_err=
10451   fi
10452 else
10453   ac_cpp_err=yes
10454 fi
10455 if test -z "$ac_cpp_err"; then
10456   cat >>confdefs.h <<\_ACEOF
10457 #define FSTYPE_AIX_STATFS 1
10458 _ACEOF
10459  fstype=AIX
10460 else
10461   echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464
10465 fi
10466 rm -f conftest.err conftest.$ac_ext
10467 fi
10468 if test $fstype = no; then
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 /* confdefs.h.  */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h.  */
10476 #include <mntent.h>
10477 _ACEOF
10478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } >/dev/null; then
10486   if test -s conftest.err; then
10487     ac_cpp_err=$ac_c_preproc_warn_flag
10488   else
10489     ac_cpp_err=
10490   fi
10491 else
10492   ac_cpp_err=yes
10493 fi
10494 if test -z "$ac_cpp_err"; then
10495   cat >>confdefs.h <<\_ACEOF
10496 #define FSTYPE_MNTENT 1
10497 _ACEOF
10498  fstype=4.3BSD
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503
10504 fi
10505 rm -f conftest.err conftest.$ac_ext
10506 fi
10507 if test $fstype = no; then
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 #include <sys/mount.h>
10516
10517 _ACEOF
10518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10519   $EGREP "f_type;" >/dev/null 2>&1; then
10520   cat >>confdefs.h <<\_ACEOF
10521 #define FSTYPE_STATFS 1
10522 _ACEOF
10523  fstype=4.4BSD/OSF1
10524 fi
10525 rm -f conftest*
10526
10527 fi
10528 if test $fstype = no; then
10529 cat >conftest.$ac_ext <<_ACEOF
10530 #line $LINENO "configure"
10531 /* confdefs.h.  */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h.  */
10536 #include <sys/mount.h>
10537 #include <sys/fs_types.h>
10538 _ACEOF
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } >/dev/null; then
10547   if test -s conftest.err; then
10548     ac_cpp_err=$ac_c_preproc_warn_flag
10549   else
10550     ac_cpp_err=
10551   fi
10552 else
10553   ac_cpp_err=yes
10554 fi
10555 if test -z "$ac_cpp_err"; then
10556   cat >>confdefs.h <<\_ACEOF
10557 #define FSTYPE_GETMNT 1
10558 _ACEOF
10559  fstype=Ultrix
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564
10565 fi
10566 rm -f conftest.err conftest.$ac_ext
10567 fi
10568 echo "$as_me:$LINENO: result: $fstype" >&5
10569 echo "${ECHO_T}$fstype" >&6
10570
10571 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10572 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10573 if test "${ac_cv_type_signal+set}" = set; then
10574   echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576   cat >conftest.$ac_ext <<_ACEOF
10577 #line $LINENO "configure"
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583 #include <sys/types.h>
10584 #include <signal.h>
10585 #ifdef signal
10586 # undef signal
10587 #endif
10588 #ifdef __cplusplus
10589 extern "C" void (*signal (int, void (*)(int)))(int);
10590 #else
10591 void (*signal ()) ();
10592 #endif
10593
10594 int
10595 main ()
10596 {
10597 int i;
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604   (eval $ac_compile) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); } &&
10608          { ac_try='test -s conftest.$ac_objext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614   ac_cv_type_signal=void
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 ac_cv_type_signal=int
10620 fi
10621 rm -f conftest.$ac_objext conftest.$ac_ext
10622 fi
10623 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10624 echo "${ECHO_T}$ac_cv_type_signal" >&6
10625
10626 cat >>confdefs.h <<_ACEOF
10627 #define RETSIGTYPE $ac_cv_type_signal
10628 _ACEOF
10629
10630
10631
10632 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10633 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10634 if test "${bash_cv_signal_vintage+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637
10638   cat >conftest.$ac_ext <<_ACEOF
10639 #line $LINENO "configure"
10640 /* confdefs.h.  */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h.  */
10645 #include <signal.h>
10646 int
10647 main ()
10648 {
10649
10650     sigset_t ss;
10651     struct sigaction sa;
10652     sigemptyset(&ss); sigsuspend(&ss);
10653     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10654     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10655
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662   (eval $ac_link) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } &&
10666          { ac_try='test -s conftest$ac_exeext'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; }; then
10672   bash_cv_signal_vintage=posix
10673 else
10674   echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10676
10677
10678     cat >conftest.$ac_ext <<_ACEOF
10679 #line $LINENO "configure"
10680 /* confdefs.h.  */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h.  */
10685 #include <signal.h>
10686 int
10687 main ()
10688 {
10689
10690         int mask = sigmask(SIGINT);
10691         sigsetmask(mask); sigblock(mask); sigpause(mask);
10692
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699   (eval $ac_link) 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } &&
10703          { ac_try='test -s conftest$ac_exeext'
10704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705   (eval $ac_try) 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; }; then
10709   bash_cv_signal_vintage=4.2bsd
10710 else
10711   echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10713
10714
10715       cat >conftest.$ac_ext <<_ACEOF
10716 #line $LINENO "configure"
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722
10723         #include <signal.h>
10724         RETSIGTYPE foo() { }
10725 int
10726 main ()
10727 {
10728
10729                 int mask = sigmask(SIGINT);
10730                 sigset(SIGINT, foo); sigrelse(SIGINT);
10731                 sighold(SIGINT); sigpause(SIGINT);
10732
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739   (eval $ac_link) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } &&
10743          { ac_try='test -s conftest$ac_exeext'
10744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745   (eval $ac_try) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); }; }; then
10749   bash_cv_signal_vintage=svr3
10750 else
10751   echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 bash_cv_signal_vintage=v7
10755
10756 fi
10757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10758
10759 fi
10760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10761
10762 fi
10763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10764
10765 fi
10766
10767 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10768 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10769 if test "$bash_cv_signal_vintage" = posix; then
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_POSIX_SIGNALS 1
10772 _ACEOF
10773
10774 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_BSD_SIGNALS 1
10777 _ACEOF
10778
10779 elif test "$bash_cv_signal_vintage" = svr3; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_USG_SIGHOLD 1
10782 _ACEOF
10783
10784 fi
10785
10786 echo "$as_me:$LINENO: checking for mode_t" >&5
10787 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10788 if test "${ac_cv_type_mode_t+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 $ac_includes_default
10799 int
10800 main ()
10801 {
10802 if ((mode_t *) 0)
10803   return 0;
10804 if (sizeof (mode_t))
10805   return 0;
10806   ;
10807   return 0;
10808 }
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812   (eval $ac_compile) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } &&
10816          { ac_try='test -s conftest.$ac_objext'
10817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818   (eval $ac_try) 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); }; }; then
10822   ac_cv_type_mode_t=yes
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 ac_cv_type_mode_t=no
10828 fi
10829 rm -f conftest.$ac_objext conftest.$ac_ext
10830 fi
10831 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10832 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10833 if test $ac_cv_type_mode_t = yes; then
10834   :
10835 else
10836
10837 cat >>confdefs.h <<_ACEOF
10838 #define mode_t int
10839 _ACEOF
10840
10841 fi
10842
10843 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10844 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10845 if test "${ac_cv_type_uid_t+set}" = set; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   cat >conftest.$ac_ext <<_ACEOF
10849 #line $LINENO "configure"
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855 #include <sys/types.h>
10856
10857 _ACEOF
10858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10859   $EGREP "uid_t" >/dev/null 2>&1; then
10860   ac_cv_type_uid_t=yes
10861 else
10862   ac_cv_type_uid_t=no
10863 fi
10864 rm -f conftest*
10865
10866 fi
10867 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10868 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10869 if test $ac_cv_type_uid_t = no; then
10870
10871 cat >>confdefs.h <<\_ACEOF
10872 #define uid_t int
10873 _ACEOF
10874
10875
10876 cat >>confdefs.h <<\_ACEOF
10877 #define gid_t int
10878 _ACEOF
10879
10880 fi
10881
10882 echo "$as_me:$LINENO: checking for size_t" >&5
10883 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10884 if test "${ac_cv_type_size_t+set}" = set; then
10885   echo $ECHO_N "(cached) $ECHO_C" >&6
10886 else
10887   cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 /* confdefs.h.  */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h.  */
10894 $ac_includes_default
10895 int
10896 main ()
10897 {
10898 if ((size_t *) 0)
10899   return 0;
10900 if (sizeof (size_t))
10901   return 0;
10902   ;
10903   return 0;
10904 }
10905 _ACEOF
10906 rm -f conftest.$ac_objext
10907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10908   (eval $ac_compile) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } &&
10912          { ac_try='test -s conftest.$ac_objext'
10913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914   (eval $ac_try) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; }; then
10918   ac_cv_type_size_t=yes
10919 else
10920   echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_cv_type_size_t=no
10924 fi
10925 rm -f conftest.$ac_objext conftest.$ac_ext
10926 fi
10927 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10928 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10929 if test $ac_cv_type_size_t = yes; then
10930   :
10931 else
10932
10933 cat >>confdefs.h <<_ACEOF
10934 #define size_t unsigned
10935 _ACEOF
10936
10937 fi
10938
10939 echo "$as_me:$LINENO: checking for pid_t" >&5
10940 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10941 if test "${ac_cv_type_pid_t+set}" = set; then
10942   echo $ECHO_N "(cached) $ECHO_C" >&6
10943 else
10944   cat >conftest.$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10946 /* confdefs.h.  */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h.  */
10951 $ac_includes_default
10952 int
10953 main ()
10954 {
10955 if ((pid_t *) 0)
10956   return 0;
10957 if (sizeof (pid_t))
10958   return 0;
10959   ;
10960   return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965   (eval $ac_compile) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } &&
10969          { ac_try='test -s conftest.$ac_objext'
10970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971   (eval $ac_try) 2>&5
10972   ac_status=$?
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); }; }; then
10975   ac_cv_type_pid_t=yes
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980 ac_cv_type_pid_t=no
10981 fi
10982 rm -f conftest.$ac_objext conftest.$ac_ext
10983 fi
10984 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10985 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10986 if test $ac_cv_type_pid_t = yes; then
10987   :
10988 else
10989
10990 cat >>confdefs.h <<_ACEOF
10991 #define pid_t int
10992 _ACEOF
10993
10994 fi
10995
10996 echo "$as_me:$LINENO: checking for off_t" >&5
10997 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10998 if test "${ac_cv_type_off_t+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   cat >conftest.$ac_ext <<_ACEOF
11002 #line $LINENO "configure"
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008 $ac_includes_default
11009 int
11010 main ()
11011 {
11012 if ((off_t *) 0)
11013   return 0;
11014 if (sizeof (off_t))
11015   return 0;
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022   (eval $ac_compile) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); } &&
11026          { ac_try='test -s conftest.$ac_objext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   ac_cv_type_off_t=yes
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11036
11037 ac_cv_type_off_t=no
11038 fi
11039 rm -f conftest.$ac_objext conftest.$ac_ext
11040 fi
11041 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11042 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11043 if test $ac_cv_type_off_t = yes; then
11044   :
11045 else
11046
11047 cat >>confdefs.h <<_ACEOF
11048 #define off_t long
11049 _ACEOF
11050
11051 fi
11052
11053 echo "$as_me:$LINENO: checking for ino_t" >&5
11054 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11055 if test "${ac_cv_type_ino_t+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   cat >conftest.$ac_ext <<_ACEOF
11059 #line $LINENO "configure"
11060 /* confdefs.h.  */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h.  */
11065 $ac_includes_default
11066 int
11067 main ()
11068 {
11069 if ((ino_t *) 0)
11070   return 0;
11071 if (sizeof (ino_t))
11072   return 0;
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11079   (eval $ac_compile) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } &&
11083          { ac_try='test -s conftest.$ac_objext'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; }; then
11089   ac_cv_type_ino_t=yes
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 ac_cv_type_ino_t=no
11095 fi
11096 rm -f conftest.$ac_objext conftest.$ac_ext
11097 fi
11098 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11099 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11100 if test $ac_cv_type_ino_t = yes; then
11101   :
11102 else
11103
11104 cat >>confdefs.h <<_ACEOF
11105 #define ino_t unsigned long
11106 _ACEOF
11107
11108 fi
11109
11110 echo "$as_me:$LINENO: checking for dev_t" >&5
11111 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11112 if test "${ac_cv_type_dev_t+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   cat >conftest.$ac_ext <<_ACEOF
11116 #line $LINENO "configure"
11117 /* confdefs.h.  */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h.  */
11122 $ac_includes_default
11123 int
11124 main ()
11125 {
11126 if ((dev_t *) 0)
11127   return 0;
11128 if (sizeof (dev_t))
11129   return 0;
11130   ;
11131   return 0;
11132 }
11133 _ACEOF
11134 rm -f conftest.$ac_objext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11136   (eval $ac_compile) 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); } &&
11140          { ac_try='test -s conftest.$ac_objext'
11141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142   (eval $ac_try) 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; }; then
11146   ac_cv_type_dev_t=yes
11147 else
11148   echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 ac_cv_type_dev_t=no
11152 fi
11153 rm -f conftest.$ac_objext conftest.$ac_ext
11154 fi
11155 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11156 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11157 if test $ac_cv_type_dev_t = yes; then
11158   :
11159 else
11160
11161 cat >>confdefs.h <<_ACEOF
11162 #define dev_t unsigned long
11163 _ACEOF
11164
11165 fi
11166
11167 echo "$as_me:$LINENO: checking for daddr_t" >&5
11168 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11169 if test "${ac_cv_type_daddr_t+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 #line $LINENO "configure"
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 $ac_includes_default
11180 int
11181 main ()
11182 {
11183 if ((daddr_t *) 0)
11184   return 0;
11185 if (sizeof (daddr_t))
11186   return 0;
11187   ;
11188   return 0;
11189 }
11190 _ACEOF
11191 rm -f conftest.$ac_objext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11193   (eval $ac_compile) 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); } &&
11197          { ac_try='test -s conftest.$ac_objext'
11198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199   (eval $ac_try) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); }; }; then
11203   ac_cv_type_daddr_t=yes
11204 else
11205   echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11207
11208 ac_cv_type_daddr_t=no
11209 fi
11210 rm -f conftest.$ac_objext conftest.$ac_ext
11211 fi
11212 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11213 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11214 if test $ac_cv_type_daddr_t = yes; then
11215   :
11216 else
11217
11218 cat >>confdefs.h <<_ACEOF
11219 #define daddr_t long
11220 _ACEOF
11221
11222 fi
11223
11224 echo "$as_me:$LINENO: checking for major_t" >&5
11225 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11226 if test "${ac_cv_type_major_t+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229   cat >conftest.$ac_ext <<_ACEOF
11230 #line $LINENO "configure"
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236 $ac_includes_default
11237 int
11238 main ()
11239 {
11240 if ((major_t *) 0)
11241   return 0;
11242 if (sizeof (major_t))
11243   return 0;
11244   ;
11245   return 0;
11246 }
11247 _ACEOF
11248 rm -f conftest.$ac_objext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11250   (eval $ac_compile) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } &&
11254          { ac_try='test -s conftest.$ac_objext'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; }; then
11260   ac_cv_type_major_t=yes
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 ac_cv_type_major_t=no
11266 fi
11267 rm -f conftest.$ac_objext conftest.$ac_ext
11268 fi
11269 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11270 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11271 if test $ac_cv_type_major_t = yes; then
11272   :
11273 else
11274
11275 cat >>confdefs.h <<_ACEOF
11276 #define major_t int
11277 _ACEOF
11278
11279 fi
11280
11281 echo "$as_me:$LINENO: checking for minor_t" >&5
11282 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11283 if test "${ac_cv_type_minor_t+set}" = set; then
11284   echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286   cat >conftest.$ac_ext <<_ACEOF
11287 #line $LINENO "configure"
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293 $ac_includes_default
11294 int
11295 main ()
11296 {
11297 if ((minor_t *) 0)
11298   return 0;
11299 if (sizeof (minor_t))
11300   return 0;
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 rm -f conftest.$ac_objext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11307   (eval $ac_compile) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } &&
11311          { ac_try='test -s conftest.$ac_objext'
11312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313   (eval $ac_try) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); }; }; then
11317   ac_cv_type_minor_t=yes
11318 else
11319   echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 ac_cv_type_minor_t=no
11323 fi
11324 rm -f conftest.$ac_objext conftest.$ac_ext
11325 fi
11326 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11327 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11328 if test $ac_cv_type_minor_t = yes; then
11329   :
11330 else
11331
11332 cat >>confdefs.h <<_ACEOF
11333 #define minor_t int
11334 _ACEOF
11335
11336 fi
11337
11338 echo "$as_me:$LINENO: checking for ssize_t" >&5
11339 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11340 if test "${ac_cv_type_ssize_t+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343   cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 $ac_includes_default
11351 int
11352 main ()
11353 {
11354 if ((ssize_t *) 0)
11355   return 0;
11356 if (sizeof (ssize_t))
11357   return 0;
11358   ;
11359   return 0;
11360 }
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11364   (eval $ac_compile) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } &&
11368          { ac_try='test -s conftest.$ac_objext'
11369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370   (eval $ac_try) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; }; then
11374   ac_cv_type_ssize_t=yes
11375 else
11376   echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 ac_cv_type_ssize_t=no
11380 fi
11381 rm -f conftest.$ac_objext conftest.$ac_ext
11382 fi
11383 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11384 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11385 if test $ac_cv_type_ssize_t = yes; then
11386   :
11387 else
11388
11389 cat >>confdefs.h <<_ACEOF
11390 #define ssize_t int
11391 _ACEOF
11392
11393 fi
11394
11395 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11396 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11397 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   cat >conftest.$ac_ext <<_ACEOF
11401 #line $LINENO "configure"
11402 /* confdefs.h.  */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h.  */
11407 $ac_includes_default
11408 int
11409 main ()
11410 {
11411 static struct stat ac_aggr;
11412 if (ac_aggr.st_blocks)
11413 return 0;
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420   (eval $ac_compile) 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } &&
11424          { ac_try='test -s conftest.$ac_objext'
11425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426   (eval $ac_try) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; }; then
11430   ac_cv_member_struct_stat_st_blocks=yes
11431 else
11432   echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11434
11435 cat >conftest.$ac_ext <<_ACEOF
11436 #line $LINENO "configure"
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442 $ac_includes_default
11443 int
11444 main ()
11445 {
11446 static struct stat ac_aggr;
11447 if (sizeof ac_aggr.st_blocks)
11448 return 0;
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455   (eval $ac_compile) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } &&
11459          { ac_try='test -s conftest.$ac_objext'
11460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461   (eval $ac_try) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; }; then
11465   ac_cv_member_struct_stat_st_blocks=yes
11466 else
11467   echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11469
11470 ac_cv_member_struct_stat_st_blocks=no
11471 fi
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11473 fi
11474 rm -f conftest.$ac_objext conftest.$ac_ext
11475 fi
11476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11477 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11478 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11479
11480 cat >>confdefs.h <<_ACEOF
11481 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11482 _ACEOF
11483
11484
11485 cat >>confdefs.h <<\_ACEOF
11486 #define HAVE_ST_BLOCKS 1
11487 _ACEOF
11488
11489 else
11490   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11491 fi
11492
11493
11494
11495 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11496 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11497 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   cat >conftest.$ac_ext <<_ACEOF
11501 #line $LINENO "configure"
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 $ac_includes_default
11508 int
11509 main ()
11510 {
11511 static struct stat ac_aggr;
11512 if (ac_aggr.st_rdev)
11513 return 0;
11514   ;
11515   return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520   (eval $ac_compile) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } &&
11524          { ac_try='test -s conftest.$ac_objext'
11525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526   (eval $ac_try) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); }; }; then
11530   ac_cv_member_struct_stat_st_rdev=yes
11531 else
11532   echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 cat >conftest.$ac_ext <<_ACEOF
11536 #line $LINENO "configure"
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 $ac_includes_default
11543 int
11544 main ()
11545 {
11546 static struct stat ac_aggr;
11547 if (sizeof ac_aggr.st_rdev)
11548 return 0;
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555   (eval $ac_compile) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -s conftest.$ac_objext'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }; then
11565   ac_cv_member_struct_stat_st_rdev=yes
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570 ac_cv_member_struct_stat_st_rdev=no
11571 fi
11572 rm -f conftest.$ac_objext conftest.$ac_ext
11573 fi
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11575 fi
11576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11578 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11579
11580 cat >>confdefs.h <<_ACEOF
11581 #define HAVE_STRUCT_STAT_ST_RDEV 1
11582 _ACEOF
11583
11584
11585 cat >>confdefs.h <<\_ACEOF
11586 #define HAVE_ST_RDEV 1
11587 _ACEOF
11588
11589 fi
11590
11591
11592 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11593 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11594 if test "${ac_cv_struct_tm+set}" = set; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11599 /* confdefs.h.  */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h.  */
11604 #include <sys/types.h>
11605 #include <time.h>
11606
11607 int
11608 main ()
11609 {
11610 struct tm *tp; tp->tm_sec;
11611   ;
11612   return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617   (eval $ac_compile) 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } &&
11621          { ac_try='test -s conftest.$ac_objext'
11622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623   (eval $ac_try) 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; }; then
11627   ac_cv_struct_tm=time.h
11628 else
11629   echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 ac_cv_struct_tm=sys/time.h
11633 fi
11634 rm -f conftest.$ac_objext conftest.$ac_ext
11635 fi
11636 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11637 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11638 if test $ac_cv_struct_tm = sys/time.h; then
11639
11640 cat >>confdefs.h <<\_ACEOF
11641 #define TM_IN_SYS_TIME 1
11642 _ACEOF
11643
11644 fi
11645
11646 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11647 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11648 if test "${ac_cv_c_const+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   cat >conftest.$ac_ext <<_ACEOF
11652 #line $LINENO "configure"
11653 /* confdefs.h.  */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h.  */
11658
11659 int
11660 main ()
11661 {
11662 /* FIXME: Include the comments suggested by Paul. */
11663 #ifndef __cplusplus
11664   /* Ultrix mips cc rejects this.  */
11665   typedef int charset[2];
11666   const charset x;
11667   /* SunOS 4.1.1 cc rejects this.  */
11668   char const *const *ccp;
11669   char **p;
11670   /* NEC SVR4.0.2 mips cc rejects this.  */
11671   struct point {int x, y;};
11672   static struct point const zero = {0,0};
11673   /* AIX XL C 1.02.0.0 rejects this.
11674      It does not let you subtract one const X* pointer from another in
11675      an arm of an if-expression whose if-part is not a constant
11676      expression */
11677   const char *g = "string";
11678   ccp = &g + (g ? g-g : 0);
11679   /* HPUX 7.0 cc rejects these. */
11680   ++ccp;
11681   p = (char**) ccp;
11682   ccp = (char const *const *) p;
11683   { /* SCO 3.2v4 cc rejects this.  */
11684     char *t;
11685     char const *s = 0 ? (char *) 0 : (char const *) 0;
11686
11687     *t++ = 0;
11688   }
11689   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11690     int x[] = {25, 17};
11691     const int *foo = &x[0];
11692     ++foo;
11693   }
11694   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11695     typedef const int *iptr;
11696     iptr p = 0;
11697     ++p;
11698   }
11699   { /* AIX XL C 1.02.0.0 rejects this saying
11700        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11701     struct s { int j; const int *ap[3]; };
11702     struct s *b; b->j = 5;
11703   }
11704   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11705     const int foo = 10;
11706   }
11707 #endif
11708
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715   (eval $ac_compile) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -s conftest.$ac_objext'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725   ac_cv_c_const=yes
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730 ac_cv_c_const=no
11731 fi
11732 rm -f conftest.$ac_objext conftest.$ac_ext
11733 fi
11734 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11735 echo "${ECHO_T}$ac_cv_c_const" >&6
11736 if test $ac_cv_c_const = no; then
11737
11738 cat >>confdefs.h <<\_ACEOF
11739 #define const
11740 _ACEOF
11741
11742 fi
11743
11744
11745
11746 echo "$as_me:$LINENO: checking for char" >&5
11747 echo $ECHO_N "checking for char... $ECHO_C" >&6
11748 if test "${ac_cv_type_char+set}" = set; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751   cat >conftest.$ac_ext <<_ACEOF
11752 #line $LINENO "configure"
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 $ac_includes_default
11759 int
11760 main ()
11761 {
11762 if ((char *) 0)
11763   return 0;
11764 if (sizeof (char))
11765   return 0;
11766   ;
11767   return 0;
11768 }
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772   (eval $ac_compile) 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); } &&
11776          { ac_try='test -s conftest.$ac_objext'
11777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778   (eval $ac_try) 2>&5
11779   ac_status=$?
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); }; }; then
11782   ac_cv_type_char=yes
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787 ac_cv_type_char=no
11788 fi
11789 rm -f conftest.$ac_objext conftest.$ac_ext
11790 fi
11791 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11792 echo "${ECHO_T}$ac_cv_type_char" >&6
11793
11794 echo "$as_me:$LINENO: checking size of char" >&5
11795 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11796 if test "${ac_cv_sizeof_char+set}" = set; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799   if test "$ac_cv_type_char" = yes; then
11800   # The cast to unsigned long works around a bug in the HP C Compiler
11801   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11802   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11803   # This bug is HP SR number 8606223364.
11804   if test "$cross_compiling" = yes; then
11805   # Depending upon the size, compute the lo and hi bounds.
11806 cat >conftest.$ac_ext <<_ACEOF
11807 #line $LINENO "configure"
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813 $ac_includes_default
11814 int
11815 main ()
11816 {
11817 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11818 test_array [0] = 0
11819
11820   ;
11821   return 0;
11822 }
11823 _ACEOF
11824 rm -f conftest.$ac_objext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11826   (eval $ac_compile) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); } &&
11830          { ac_try='test -s conftest.$ac_objext'
11831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832   (eval $ac_try) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }; }; then
11836   ac_lo=0 ac_mid=0
11837   while :; do
11838     cat >conftest.$ac_ext <<_ACEOF
11839 #line $LINENO "configure"
11840 /* confdefs.h.  */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h.  */
11845 $ac_includes_default
11846 int
11847 main ()
11848 {
11849 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11850 test_array [0] = 0
11851
11852   ;
11853   return 0;
11854 }
11855 _ACEOF
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858   (eval $ac_compile) 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } &&
11862          { ac_try='test -s conftest.$ac_objext'
11863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864   (eval $ac_try) 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); }; }; then
11868   ac_hi=$ac_mid; break
11869 else
11870   echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873 ac_lo=`expr $ac_mid + 1`
11874                     if test $ac_lo -le $ac_mid; then
11875                       ac_lo= ac_hi=
11876                       break
11877                     fi
11878                     ac_mid=`expr 2 '*' $ac_mid + 1`
11879 fi
11880 rm -f conftest.$ac_objext conftest.$ac_ext
11881   done
11882 else
11883   echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11885
11886 cat >conftest.$ac_ext <<_ACEOF
11887 #line $LINENO "configure"
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893 $ac_includes_default
11894 int
11895 main ()
11896 {
11897 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11898 test_array [0] = 0
11899
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906   (eval $ac_compile) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } &&
11910          { ac_try='test -s conftest.$ac_objext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   ac_hi=-1 ac_mid=-1
11917   while :; do
11918     cat >conftest.$ac_ext <<_ACEOF
11919 #line $LINENO "configure"
11920 /* confdefs.h.  */
11921 _ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h.  */
11925 $ac_includes_default
11926 int
11927 main ()
11928 {
11929 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11930 test_array [0] = 0
11931
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938   (eval $ac_compile) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } &&
11942          { ac_try='test -s conftest.$ac_objext'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_lo=$ac_mid; break
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_hi=`expr '(' $ac_mid ')' - 1`
11954                        if test $ac_mid -le $ac_hi; then
11955                          ac_lo= ac_hi=
11956                          break
11957                        fi
11958                        ac_mid=`expr 2 '*' $ac_mid`
11959 fi
11960 rm -f conftest.$ac_objext conftest.$ac_ext
11961   done
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_lo= ac_hi=
11967 fi
11968 rm -f conftest.$ac_objext conftest.$ac_ext
11969 fi
11970 rm -f conftest.$ac_objext conftest.$ac_ext
11971 # Binary search between lo and hi bounds.
11972 while test "x$ac_lo" != "x$ac_hi"; do
11973   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11974   cat >conftest.$ac_ext <<_ACEOF
11975 #line $LINENO "configure"
11976 /* confdefs.h.  */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h.  */
11981 $ac_includes_default
11982 int
11983 main ()
11984 {
11985 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11986 test_array [0] = 0
11987
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994   (eval $ac_compile) 2>&5
11995   ac_status=$?
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } &&
11998          { ac_try='test -s conftest.$ac_objext'
11999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000   (eval $ac_try) 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; }; then
12004   ac_hi=$ac_mid
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 ac_lo=`expr '(' $ac_mid ')' + 1`
12010 fi
12011 rm -f conftest.$ac_objext conftest.$ac_ext
12012 done
12013 case $ac_lo in
12014 ?*) ac_cv_sizeof_char=$ac_lo;;
12015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12016 See \`config.log' for more details." >&5
12017 echo "$as_me: error: cannot compute sizeof (char), 77
12018 See \`config.log' for more details." >&2;}
12019    { (exit 1); exit 1; }; } ;;
12020 esac
12021 else
12022   if test "$cross_compiling" = yes; then
12023   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12024 See \`config.log' for more details." >&5
12025 echo "$as_me: error: cannot run test program while cross compiling
12026 See \`config.log' for more details." >&2;}
12027    { (exit 1); exit 1; }; }
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 #line $LINENO "configure"
12031 /* confdefs.h.  */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h.  */
12036 $ac_includes_default
12037 long longval () { return (long) (sizeof (char)); }
12038 unsigned long ulongval () { return (long) (sizeof (char)); }
12039 #include <stdio.h>
12040 #include <stdlib.h>
12041 int
12042 main ()
12043 {
12044
12045   FILE *f = fopen ("conftest.val", "w");
12046   if (! f)
12047     exit (1);
12048   if (((long) (sizeof (char))) < 0)
12049     {
12050       long i = longval ();
12051       if (i != ((long) (sizeof (char))))
12052         exit (1);
12053       fprintf (f, "%ld\n", i);
12054     }
12055   else
12056     {
12057       unsigned long i = ulongval ();
12058       if (i != ((long) (sizeof (char))))
12059         exit (1);
12060       fprintf (f, "%lu\n", i);
12061     }
12062   exit (ferror (f) || fclose (f) != 0);
12063
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070   (eval $ac_link) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075   (eval $ac_try) 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); }; }; then
12079   ac_cv_sizeof_char=`cat conftest.val`
12080 else
12081   echo "$as_me: program exited with status $ac_status" >&5
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085 ( exit $ac_status )
12086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12087 See \`config.log' for more details." >&5
12088 echo "$as_me: error: cannot compute sizeof (char), 77
12089 See \`config.log' for more details." >&2;}
12090    { (exit 1); exit 1; }; }
12091 fi
12092 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12093 fi
12094 fi
12095 rm -f conftest.val
12096 else
12097   ac_cv_sizeof_char=0
12098 fi
12099 fi
12100 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12101 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12102 cat >>confdefs.h <<_ACEOF
12103 #define SIZEOF_CHAR $ac_cv_sizeof_char
12104 _ACEOF
12105
12106
12107 echo "$as_me:$LINENO: checking for short int" >&5
12108 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12109 if test "${ac_cv_type_short_int+set}" = set; then
12110   echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112   cat >conftest.$ac_ext <<_ACEOF
12113 #line $LINENO "configure"
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119 $ac_includes_default
12120 int
12121 main ()
12122 {
12123 if ((short int *) 0)
12124   return 0;
12125 if (sizeof (short int))
12126   return 0;
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133   (eval $ac_compile) 2>&5
12134   ac_status=$?
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } &&
12137          { ac_try='test -s conftest.$ac_objext'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; }; then
12143   ac_cv_type_short_int=yes
12144 else
12145   echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_cv_type_short_int=no
12149 fi
12150 rm -f conftest.$ac_objext conftest.$ac_ext
12151 fi
12152 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12153 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12154
12155 echo "$as_me:$LINENO: checking size of short int" >&5
12156 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12157 if test "${ac_cv_sizeof_short_int+set}" = set; then
12158   echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160   if test "$ac_cv_type_short_int" = yes; then
12161   # The cast to unsigned long works around a bug in the HP C Compiler
12162   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12163   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12164   # This bug is HP SR number 8606223364.
12165   if test "$cross_compiling" = yes; then
12166   # Depending upon the size, compute the lo and hi bounds.
12167 cat >conftest.$ac_ext <<_ACEOF
12168 #line $LINENO "configure"
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 $ac_includes_default
12175 int
12176 main ()
12177 {
12178 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12179 test_array [0] = 0
12180
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187   (eval $ac_compile) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); } &&
12191          { ac_try='test -s conftest.$ac_objext'
12192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193   (eval $ac_try) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; }; then
12197   ac_lo=0 ac_mid=0
12198   while :; do
12199     cat >conftest.$ac_ext <<_ACEOF
12200 #line $LINENO "configure"
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206 $ac_includes_default
12207 int
12208 main ()
12209 {
12210 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12211 test_array [0] = 0
12212
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219   (eval $ac_compile) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } &&
12223          { ac_try='test -s conftest.$ac_objext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   ac_hi=$ac_mid; break
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_lo=`expr $ac_mid + 1`
12235                     if test $ac_lo -le $ac_mid; then
12236                       ac_lo= ac_hi=
12237                       break
12238                     fi
12239                     ac_mid=`expr 2 '*' $ac_mid + 1`
12240 fi
12241 rm -f conftest.$ac_objext conftest.$ac_ext
12242   done
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254 $ac_includes_default
12255 int
12256 main ()
12257 {
12258 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12259 test_array [0] = 0
12260
12261   ;
12262   return 0;
12263 }
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267   (eval $ac_compile) 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); } &&
12271          { ac_try='test -s conftest.$ac_objext'
12272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273   (eval $ac_try) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); }; }; then
12277   ac_hi=-1 ac_mid=-1
12278   while :; do
12279     cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12281 /* confdefs.h.  */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h.  */
12286 $ac_includes_default
12287 int
12288 main ()
12289 {
12290 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12291 test_array [0] = 0
12292
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299   (eval $ac_compile) 2>&5
12300   ac_status=$?
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -s conftest.$ac_objext'
12304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305   (eval $ac_try) 2>&5
12306   ac_status=$?
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); }; }; then
12309   ac_lo=$ac_mid; break
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_hi=`expr '(' $ac_mid ')' - 1`
12315                        if test $ac_mid -le $ac_hi; then
12316                          ac_lo= ac_hi=
12317                          break
12318                        fi
12319                        ac_mid=`expr 2 '*' $ac_mid`
12320 fi
12321 rm -f conftest.$ac_objext conftest.$ac_ext
12322   done
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327 ac_lo= ac_hi=
12328 fi
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12330 fi
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12332 # Binary search between lo and hi bounds.
12333 while test "x$ac_lo" != "x$ac_hi"; do
12334   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12335   cat >conftest.$ac_ext <<_ACEOF
12336 #line $LINENO "configure"
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342 $ac_includes_default
12343 int
12344 main ()
12345 {
12346 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12347 test_array [0] = 0
12348
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355   (eval $ac_compile) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -s conftest.$ac_objext'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; }; then
12365   ac_hi=$ac_mid
12366 else
12367   echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 ac_lo=`expr '(' $ac_mid ')' + 1`
12371 fi
12372 rm -f conftest.$ac_objext conftest.$ac_ext
12373 done
12374 case $ac_lo in
12375 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12377 See \`config.log' for more details." >&5
12378 echo "$as_me: error: cannot compute sizeof (short int), 77
12379 See \`config.log' for more details." >&2;}
12380    { (exit 1); exit 1; }; } ;;
12381 esac
12382 else
12383   if test "$cross_compiling" = yes; then
12384   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12385 See \`config.log' for more details." >&5
12386 echo "$as_me: error: cannot run test program while cross compiling
12387 See \`config.log' for more details." >&2;}
12388    { (exit 1); exit 1; }; }
12389 else
12390   cat >conftest.$ac_ext <<_ACEOF
12391 #line $LINENO "configure"
12392 /* confdefs.h.  */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h.  */
12397 $ac_includes_default
12398 long longval () { return (long) (sizeof (short int)); }
12399 unsigned long ulongval () { return (long) (sizeof (short int)); }
12400 #include <stdio.h>
12401 #include <stdlib.h>
12402 int
12403 main ()
12404 {
12405
12406   FILE *f = fopen ("conftest.val", "w");
12407   if (! f)
12408     exit (1);
12409   if (((long) (sizeof (short int))) < 0)
12410     {
12411       long i = longval ();
12412       if (i != ((long) (sizeof (short int))))
12413         exit (1);
12414       fprintf (f, "%ld\n", i);
12415     }
12416   else
12417     {
12418       unsigned long i = ulongval ();
12419       if (i != ((long) (sizeof (short int))))
12420         exit (1);
12421       fprintf (f, "%lu\n", i);
12422     }
12423   exit (ferror (f) || fclose (f) != 0);
12424
12425   ;
12426   return 0;
12427 }
12428 _ACEOF
12429 rm -f conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431   (eval $ac_link) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436   (eval $ac_try) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); }; }; then
12440   ac_cv_sizeof_short_int=`cat conftest.val`
12441 else
12442   echo "$as_me: program exited with status $ac_status" >&5
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 ( exit $ac_status )
12447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12448 See \`config.log' for more details." >&5
12449 echo "$as_me: error: cannot compute sizeof (short int), 77
12450 See \`config.log' for more details." >&2;}
12451    { (exit 1); exit 1; }; }
12452 fi
12453 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12454 fi
12455 fi
12456 rm -f conftest.val
12457 else
12458   ac_cv_sizeof_short_int=0
12459 fi
12460 fi
12461 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12462 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12463 cat >>confdefs.h <<_ACEOF
12464 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12465 _ACEOF
12466
12467
12468 echo "$as_me:$LINENO: checking for int" >&5
12469 echo $ECHO_N "checking for int... $ECHO_C" >&6
12470 if test "${ac_cv_type_int+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   cat >conftest.$ac_ext <<_ACEOF
12474 #line $LINENO "configure"
12475 /* confdefs.h.  */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h.  */
12480 $ac_includes_default
12481 int
12482 main ()
12483 {
12484 if ((int *) 0)
12485   return 0;
12486 if (sizeof (int))
12487   return 0;
12488   ;
12489   return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494   (eval $ac_compile) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -s conftest.$ac_objext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   ac_cv_type_int=yes
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 ac_cv_type_int=no
12510 fi
12511 rm -f conftest.$ac_objext conftest.$ac_ext
12512 fi
12513 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12514 echo "${ECHO_T}$ac_cv_type_int" >&6
12515
12516 echo "$as_me:$LINENO: checking size of int" >&5
12517 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12518 if test "${ac_cv_sizeof_int+set}" = set; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   if test "$ac_cv_type_int" = yes; then
12522   # The cast to unsigned long works around a bug in the HP C Compiler
12523   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12524   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12525   # This bug is HP SR number 8606223364.
12526   if test "$cross_compiling" = yes; then
12527   # Depending upon the size, compute the lo and hi bounds.
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12530 /* confdefs.h.  */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h.  */
12535 $ac_includes_default
12536 int
12537 main ()
12538 {
12539 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12540 test_array [0] = 0
12541
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548   (eval $ac_compile) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } &&
12552          { ac_try='test -s conftest.$ac_objext'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; }; then
12558   ac_lo=0 ac_mid=0
12559   while :; do
12560     cat >conftest.$ac_ext <<_ACEOF
12561 #line $LINENO "configure"
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567 $ac_includes_default
12568 int
12569 main ()
12570 {
12571 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12572 test_array [0] = 0
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580   (eval $ac_compile) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } &&
12584          { ac_try='test -s conftest.$ac_objext'
12585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586   (eval $ac_try) 2>&5
12587   ac_status=$?
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); }; }; then
12590   ac_hi=$ac_mid; break
12591 else
12592   echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 ac_lo=`expr $ac_mid + 1`
12596                     if test $ac_lo -le $ac_mid; then
12597                       ac_lo= ac_hi=
12598                       break
12599                     fi
12600                     ac_mid=`expr 2 '*' $ac_mid + 1`
12601 fi
12602 rm -f conftest.$ac_objext conftest.$ac_ext
12603   done
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615 $ac_includes_default
12616 int
12617 main ()
12618 {
12619 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12620 test_array [0] = 0
12621
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628   (eval $ac_compile) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -s conftest.$ac_objext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638   ac_hi=-1 ac_mid=-1
12639   while :; do
12640     cat >conftest.$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12642 /* confdefs.h.  */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h.  */
12647 $ac_includes_default
12648 int
12649 main ()
12650 {
12651 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12652 test_array [0] = 0
12653
12654   ;
12655   return 0;
12656 }
12657 _ACEOF
12658 rm -f conftest.$ac_objext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660   (eval $ac_compile) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } &&
12664          { ac_try='test -s conftest.$ac_objext'
12665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666   (eval $ac_try) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; }; then
12670   ac_lo=$ac_mid; break
12671 else
12672   echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 ac_hi=`expr '(' $ac_mid ')' - 1`
12676                        if test $ac_mid -le $ac_hi; then
12677                          ac_lo= ac_hi=
12678                          break
12679                        fi
12680                        ac_mid=`expr 2 '*' $ac_mid`
12681 fi
12682 rm -f conftest.$ac_objext conftest.$ac_ext
12683   done
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 ac_lo= ac_hi=
12689 fi
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12691 fi
12692 rm -f conftest.$ac_objext conftest.$ac_ext
12693 # Binary search between lo and hi bounds.
12694 while test "x$ac_lo" != "x$ac_hi"; do
12695   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12696   cat >conftest.$ac_ext <<_ACEOF
12697 #line $LINENO "configure"
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703 $ac_includes_default
12704 int
12705 main ()
12706 {
12707 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12708 test_array [0] = 0
12709
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716   (eval $ac_compile) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -s conftest.$ac_objext'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; }; then
12726   ac_hi=$ac_mid
12727 else
12728   echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 ac_lo=`expr '(' $ac_mid ')' + 1`
12732 fi
12733 rm -f conftest.$ac_objext conftest.$ac_ext
12734 done
12735 case $ac_lo in
12736 ?*) ac_cv_sizeof_int=$ac_lo;;
12737 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12738 See \`config.log' for more details." >&5
12739 echo "$as_me: error: cannot compute sizeof (int), 77
12740 See \`config.log' for more details." >&2;}
12741    { (exit 1); exit 1; }; } ;;
12742 esac
12743 else
12744   if test "$cross_compiling" = yes; then
12745   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12746 See \`config.log' for more details." >&5
12747 echo "$as_me: error: cannot run test program while cross compiling
12748 See \`config.log' for more details." >&2;}
12749    { (exit 1); exit 1; }; }
12750 else
12751   cat >conftest.$ac_ext <<_ACEOF
12752 #line $LINENO "configure"
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758 $ac_includes_default
12759 long longval () { return (long) (sizeof (int)); }
12760 unsigned long ulongval () { return (long) (sizeof (int)); }
12761 #include <stdio.h>
12762 #include <stdlib.h>
12763 int
12764 main ()
12765 {
12766
12767   FILE *f = fopen ("conftest.val", "w");
12768   if (! f)
12769     exit (1);
12770   if (((long) (sizeof (int))) < 0)
12771     {
12772       long i = longval ();
12773       if (i != ((long) (sizeof (int))))
12774         exit (1);
12775       fprintf (f, "%ld\n", i);
12776     }
12777   else
12778     {
12779       unsigned long i = ulongval ();
12780       if (i != ((long) (sizeof (int))))
12781         exit (1);
12782       fprintf (f, "%lu\n", i);
12783     }
12784   exit (ferror (f) || fclose (f) != 0);
12785
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 rm -f conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792   (eval $ac_link) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; }; then
12801   ac_cv_sizeof_int=`cat conftest.val`
12802 else
12803   echo "$as_me: program exited with status $ac_status" >&5
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 ( exit $ac_status )
12808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12809 See \`config.log' for more details." >&5
12810 echo "$as_me: error: cannot compute sizeof (int), 77
12811 See \`config.log' for more details." >&2;}
12812    { (exit 1); exit 1; }; }
12813 fi
12814 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12815 fi
12816 fi
12817 rm -f conftest.val
12818 else
12819   ac_cv_sizeof_int=0
12820 fi
12821 fi
12822 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12823 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12824 cat >>confdefs.h <<_ACEOF
12825 #define SIZEOF_INT $ac_cv_sizeof_int
12826 _ACEOF
12827
12828
12829 echo "$as_me:$LINENO: checking for long int" >&5
12830 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12831 if test "${ac_cv_type_long_int+set}" = set; then
12832   echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834   cat >conftest.$ac_ext <<_ACEOF
12835 #line $LINENO "configure"
12836 /* confdefs.h.  */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h.  */
12841 $ac_includes_default
12842 int
12843 main ()
12844 {
12845 if ((long int *) 0)
12846   return 0;
12847 if (sizeof (long int))
12848   return 0;
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 rm -f conftest.$ac_objext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855   (eval $ac_compile) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); } &&
12859          { ac_try='test -s conftest.$ac_objext'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; }; then
12865   ac_cv_type_long_int=yes
12866 else
12867   echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_cv_type_long_int=no
12871 fi
12872 rm -f conftest.$ac_objext conftest.$ac_ext
12873 fi
12874 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12875 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12876
12877 echo "$as_me:$LINENO: checking size of long int" >&5
12878 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12879 if test "${ac_cv_sizeof_long_int+set}" = set; then
12880   echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882   if test "$ac_cv_type_long_int" = yes; then
12883   # The cast to unsigned long works around a bug in the HP C Compiler
12884   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12885   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12886   # This bug is HP SR number 8606223364.
12887   if test "$cross_compiling" = yes; then
12888   # Depending upon the size, compute the lo and hi bounds.
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12891 /* confdefs.h.  */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h.  */
12896 $ac_includes_default
12897 int
12898 main ()
12899 {
12900 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12901 test_array [0] = 0
12902
12903   ;
12904   return 0;
12905 }
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909   (eval $ac_compile) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -s conftest.$ac_objext'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; }; then
12919   ac_lo=0 ac_mid=0
12920   while :; do
12921     cat >conftest.$ac_ext <<_ACEOF
12922 #line $LINENO "configure"
12923 /* confdefs.h.  */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h.  */
12928 $ac_includes_default
12929 int
12930 main ()
12931 {
12932 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12933 test_array [0] = 0
12934
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 rm -f conftest.$ac_objext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941   (eval $ac_compile) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); } &&
12945          { ac_try='test -s conftest.$ac_objext'
12946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947   (eval $ac_try) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; }; then
12951   ac_hi=$ac_mid; break
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 ac_lo=`expr $ac_mid + 1`
12957                     if test $ac_lo -le $ac_mid; then
12958                       ac_lo= ac_hi=
12959                       break
12960                     fi
12961                     ac_mid=`expr 2 '*' $ac_mid + 1`
12962 fi
12963 rm -f conftest.$ac_objext conftest.$ac_ext
12964   done
12965 else
12966   echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969 cat >conftest.$ac_ext <<_ACEOF
12970 #line $LINENO "configure"
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 $ac_includes_default
12977 int
12978 main ()
12979 {
12980 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12981 test_array [0] = 0
12982
12983   ;
12984   return 0;
12985 }
12986 _ACEOF
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989   (eval $ac_compile) 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); } &&
12993          { ac_try='test -s conftest.$ac_objext'
12994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995   (eval $ac_try) 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); }; }; then
12999   ac_hi=-1 ac_mid=-1
13000   while :; do
13001     cat >conftest.$ac_ext <<_ACEOF
13002 #line $LINENO "configure"
13003 /* confdefs.h.  */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h.  */
13008 $ac_includes_default
13009 int
13010 main ()
13011 {
13012 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13013 test_array [0] = 0
13014
13015   ;
13016   return 0;
13017 }
13018 _ACEOF
13019 rm -f conftest.$ac_objext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13021   (eval $ac_compile) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } &&
13025          { ac_try='test -s conftest.$ac_objext'
13026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027   (eval $ac_try) 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); }; }; then
13031   ac_lo=$ac_mid; break
13032 else
13033   echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13035
13036 ac_hi=`expr '(' $ac_mid ')' - 1`
13037                        if test $ac_mid -le $ac_hi; then
13038                          ac_lo= ac_hi=
13039                          break
13040                        fi
13041                        ac_mid=`expr 2 '*' $ac_mid`
13042 fi
13043 rm -f conftest.$ac_objext conftest.$ac_ext
13044   done
13045 else
13046   echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049 ac_lo= ac_hi=
13050 fi
13051 rm -f conftest.$ac_objext conftest.$ac_ext
13052 fi
13053 rm -f conftest.$ac_objext conftest.$ac_ext
13054 # Binary search between lo and hi bounds.
13055 while test "x$ac_lo" != "x$ac_hi"; do
13056   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13057   cat >conftest.$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13059 /* confdefs.h.  */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h.  */
13064 $ac_includes_default
13065 int
13066 main ()
13067 {
13068 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13069 test_array [0] = 0
13070
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077   (eval $ac_compile) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -s conftest.$ac_objext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087   ac_hi=$ac_mid
13088 else
13089   echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13091
13092 ac_lo=`expr '(' $ac_mid ')' + 1`
13093 fi
13094 rm -f conftest.$ac_objext conftest.$ac_ext
13095 done
13096 case $ac_lo in
13097 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13099 See \`config.log' for more details." >&5
13100 echo "$as_me: error: cannot compute sizeof (long int), 77
13101 See \`config.log' for more details." >&2;}
13102    { (exit 1); exit 1; }; } ;;
13103 esac
13104 else
13105   if test "$cross_compiling" = yes; then
13106   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13107 See \`config.log' for more details." >&5
13108 echo "$as_me: error: cannot run test program while cross compiling
13109 See \`config.log' for more details." >&2;}
13110    { (exit 1); exit 1; }; }
13111 else
13112   cat >conftest.$ac_ext <<_ACEOF
13113 #line $LINENO "configure"
13114 /* confdefs.h.  */
13115 _ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h.  */
13119 $ac_includes_default
13120 long longval () { return (long) (sizeof (long int)); }
13121 unsigned long ulongval () { return (long) (sizeof (long int)); }
13122 #include <stdio.h>
13123 #include <stdlib.h>
13124 int
13125 main ()
13126 {
13127
13128   FILE *f = fopen ("conftest.val", "w");
13129   if (! f)
13130     exit (1);
13131   if (((long) (sizeof (long int))) < 0)
13132     {
13133       long i = longval ();
13134       if (i != ((long) (sizeof (long int))))
13135         exit (1);
13136       fprintf (f, "%ld\n", i);
13137     }
13138   else
13139     {
13140       unsigned long i = ulongval ();
13141       if (i != ((long) (sizeof (long int))))
13142         exit (1);
13143       fprintf (f, "%lu\n", i);
13144     }
13145   exit (ferror (f) || fclose (f) != 0);
13146
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 rm -f conftest$ac_exeext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153   (eval $ac_link) 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; }; then
13162   ac_cv_sizeof_long_int=`cat conftest.val`
13163 else
13164   echo "$as_me: program exited with status $ac_status" >&5
13165 echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13167
13168 ( exit $ac_status )
13169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13170 See \`config.log' for more details." >&5
13171 echo "$as_me: error: cannot compute sizeof (long int), 77
13172 See \`config.log' for more details." >&2;}
13173    { (exit 1); exit 1; }; }
13174 fi
13175 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13176 fi
13177 fi
13178 rm -f conftest.val
13179 else
13180   ac_cv_sizeof_long_int=0
13181 fi
13182 fi
13183 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13184 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13185 cat >>confdefs.h <<_ACEOF
13186 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13187 _ACEOF
13188
13189
13190 echo "$as_me:$LINENO: checking for long long int" >&5
13191 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13192 if test "${ac_cv_type_long_long_int+set}" = set; then
13193   echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195   cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13197 /* confdefs.h.  */
13198 _ACEOF
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h.  */
13202 $ac_includes_default
13203 int
13204 main ()
13205 {
13206 if ((long long int *) 0)
13207   return 0;
13208 if (sizeof (long long int))
13209   return 0;
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214 rm -f conftest.$ac_objext
13215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216   (eval $ac_compile) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); } &&
13220          { ac_try='test -s conftest.$ac_objext'
13221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222   (eval $ac_try) 2>&5
13223   ac_status=$?
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); }; }; then
13226   ac_cv_type_long_long_int=yes
13227 else
13228   echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13230
13231 ac_cv_type_long_long_int=no
13232 fi
13233 rm -f conftest.$ac_objext conftest.$ac_ext
13234 fi
13235 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13236 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13237
13238 echo "$as_me:$LINENO: checking size of long long int" >&5
13239 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13240 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13241   echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243   if test "$ac_cv_type_long_long_int" = yes; then
13244   # The cast to unsigned long works around a bug in the HP C Compiler
13245   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13246   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13247   # This bug is HP SR number 8606223364.
13248   if test "$cross_compiling" = yes; then
13249   # Depending upon the size, compute the lo and hi bounds.
13250 cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257 $ac_includes_default
13258 int
13259 main ()
13260 {
13261 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13262 test_array [0] = 0
13263
13264   ;
13265   return 0;
13266 }
13267 _ACEOF
13268 rm -f conftest.$ac_objext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13270   (eval $ac_compile) 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } &&
13274          { ac_try='test -s conftest.$ac_objext'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280   ac_lo=0 ac_mid=0
13281   while :; do
13282     cat >conftest.$ac_ext <<_ACEOF
13283 #line $LINENO "configure"
13284 /* confdefs.h.  */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h.  */
13289 $ac_includes_default
13290 int
13291 main ()
13292 {
13293 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13294 test_array [0] = 0
13295
13296   ;
13297   return 0;
13298 }
13299 _ACEOF
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302   (eval $ac_compile) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } &&
13306          { ac_try='test -s conftest.$ac_objext'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_hi=$ac_mid; break
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317 ac_lo=`expr $ac_mid + 1`
13318                     if test $ac_lo -le $ac_mid; then
13319                       ac_lo= ac_hi=
13320                       break
13321                     fi
13322                     ac_mid=`expr 2 '*' $ac_mid + 1`
13323 fi
13324 rm -f conftest.$ac_objext conftest.$ac_ext
13325   done
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 cat >conftest.$ac_ext <<_ACEOF
13331 #line $LINENO "configure"
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 $ac_includes_default
13338 int
13339 main ()
13340 {
13341 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13342 test_array [0] = 0
13343
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350   (eval $ac_compile) 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); } &&
13354          { ac_try='test -s conftest.$ac_objext'
13355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356   (eval $ac_try) 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; }; then
13360   ac_hi=-1 ac_mid=-1
13361   while :; do
13362     cat >conftest.$ac_ext <<_ACEOF
13363 #line $LINENO "configure"
13364 /* confdefs.h.  */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h.  */
13369 $ac_includes_default
13370 int
13371 main ()
13372 {
13373 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13374 test_array [0] = 0
13375
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13382   (eval $ac_compile) 2>&5
13383   ac_status=$?
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); } &&
13386          { ac_try='test -s conftest.$ac_objext'
13387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388   (eval $ac_try) 2>&5
13389   ac_status=$?
13390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); }; }; then
13392   ac_lo=$ac_mid; break
13393 else
13394   echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13396
13397 ac_hi=`expr '(' $ac_mid ')' - 1`
13398                        if test $ac_mid -le $ac_hi; then
13399                          ac_lo= ac_hi=
13400                          break
13401                        fi
13402                        ac_mid=`expr 2 '*' $ac_mid`
13403 fi
13404 rm -f conftest.$ac_objext conftest.$ac_ext
13405   done
13406 else
13407   echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13409
13410 ac_lo= ac_hi=
13411 fi
13412 rm -f conftest.$ac_objext conftest.$ac_ext
13413 fi
13414 rm -f conftest.$ac_objext conftest.$ac_ext
13415 # Binary search between lo and hi bounds.
13416 while test "x$ac_lo" != "x$ac_hi"; do
13417   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13418   cat >conftest.$ac_ext <<_ACEOF
13419 #line $LINENO "configure"
13420 /* confdefs.h.  */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h.  */
13425 $ac_includes_default
13426 int
13427 main ()
13428 {
13429 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13430 test_array [0] = 0
13431
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438   (eval $ac_compile) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -s conftest.$ac_objext'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   ac_hi=$ac_mid
13449 else
13450   echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 ac_lo=`expr '(' $ac_mid ')' + 1`
13454 fi
13455 rm -f conftest.$ac_objext conftest.$ac_ext
13456 done
13457 case $ac_lo in
13458 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13459 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13460 See \`config.log' for more details." >&5
13461 echo "$as_me: error: cannot compute sizeof (long long int), 77
13462 See \`config.log' for more details." >&2;}
13463    { (exit 1); exit 1; }; } ;;
13464 esac
13465 else
13466   if test "$cross_compiling" = yes; then
13467   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13468 See \`config.log' for more details." >&5
13469 echo "$as_me: error: cannot run test program while cross compiling
13470 See \`config.log' for more details." >&2;}
13471    { (exit 1); exit 1; }; }
13472 else
13473   cat >conftest.$ac_ext <<_ACEOF
13474 #line $LINENO "configure"
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480 $ac_includes_default
13481 long longval () { return (long) (sizeof (long long int)); }
13482 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13483 #include <stdio.h>
13484 #include <stdlib.h>
13485 int
13486 main ()
13487 {
13488
13489   FILE *f = fopen ("conftest.val", "w");
13490   if (! f)
13491     exit (1);
13492   if (((long) (sizeof (long long int))) < 0)
13493     {
13494       long i = longval ();
13495       if (i != ((long) (sizeof (long long int))))
13496         exit (1);
13497       fprintf (f, "%ld\n", i);
13498     }
13499   else
13500     {
13501       unsigned long i = ulongval ();
13502       if (i != ((long) (sizeof (long long int))))
13503         exit (1);
13504       fprintf (f, "%lu\n", i);
13505     }
13506   exit (ferror (f) || fclose (f) != 0);
13507
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514   (eval $ac_link) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   ac_cv_sizeof_long_long_int=`cat conftest.val`
13524 else
13525   echo "$as_me: program exited with status $ac_status" >&5
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ( exit $ac_status )
13530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13531 See \`config.log' for more details." >&5
13532 echo "$as_me: error: cannot compute sizeof (long long int), 77
13533 See \`config.log' for more details." >&2;}
13534    { (exit 1); exit 1; }; }
13535 fi
13536 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13537 fi
13538 fi
13539 rm -f conftest.val
13540 else
13541   ac_cv_sizeof_long_long_int=0
13542 fi
13543 fi
13544 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13545 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13546 cat >>confdefs.h <<_ACEOF
13547 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13548 _ACEOF
13549
13550
13551 echo "$as_me:$LINENO: checking for int *" >&5
13552 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13553 if test "${ac_cv_type_int_p+set}" = set; then
13554   echo $ECHO_N "(cached) $ECHO_C" >&6
13555 else
13556   cat >conftest.$ac_ext <<_ACEOF
13557 #line $LINENO "configure"
13558 /* confdefs.h.  */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h.  */
13563 $ac_includes_default
13564 int
13565 main ()
13566 {
13567 if ((int * *) 0)
13568   return 0;
13569 if (sizeof (int *))
13570   return 0;
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577   (eval $ac_compile) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } &&
13581          { ac_try='test -s conftest.$ac_objext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   ac_cv_type_int_p=yes
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_cv_type_int_p=no
13593 fi
13594 rm -f conftest.$ac_objext conftest.$ac_ext
13595 fi
13596 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13597 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13598
13599 echo "$as_me:$LINENO: checking size of int *" >&5
13600 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13601 if test "${ac_cv_sizeof_int_p+set}" = set; then
13602   echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604   if test "$ac_cv_type_int_p" = yes; then
13605   # The cast to unsigned long works around a bug in the HP C Compiler
13606   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13607   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13608   # This bug is HP SR number 8606223364.
13609   if test "$cross_compiling" = yes; then
13610   # Depending upon the size, compute the lo and hi bounds.
13611 cat >conftest.$ac_ext <<_ACEOF
13612 #line $LINENO "configure"
13613 /* confdefs.h.  */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h.  */
13618 $ac_includes_default
13619 int
13620 main ()
13621 {
13622 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13623 test_array [0] = 0
13624
13625   ;
13626   return 0;
13627 }
13628 _ACEOF
13629 rm -f conftest.$ac_objext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13631   (eval $ac_compile) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); } &&
13635          { ac_try='test -s conftest.$ac_objext'
13636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637   (eval $ac_try) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; }; then
13641   ac_lo=0 ac_mid=0
13642   while :; do
13643     cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13645 /* confdefs.h.  */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h.  */
13650 $ac_includes_default
13651 int
13652 main ()
13653 {
13654 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13655 test_array [0] = 0
13656
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663   (eval $ac_compile) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); } &&
13667          { ac_try='test -s conftest.$ac_objext'
13668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669   (eval $ac_try) 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; }; then
13673   ac_hi=$ac_mid; break
13674 else
13675   echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13677
13678 ac_lo=`expr $ac_mid + 1`
13679                     if test $ac_lo -le $ac_mid; then
13680                       ac_lo= ac_hi=
13681                       break
13682                     fi
13683                     ac_mid=`expr 2 '*' $ac_mid + 1`
13684 fi
13685 rm -f conftest.$ac_objext conftest.$ac_ext
13686   done
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 cat >conftest.$ac_ext <<_ACEOF
13692 #line $LINENO "configure"
13693 /* confdefs.h.  */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h.  */
13698 $ac_includes_default
13699 int
13700 main ()
13701 {
13702 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13703 test_array [0] = 0
13704
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711   (eval $ac_compile) 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } &&
13715          { ac_try='test -s conftest.$ac_objext'
13716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717   (eval $ac_try) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; }; then
13721   ac_hi=-1 ac_mid=-1
13722   while :; do
13723     cat >conftest.$ac_ext <<_ACEOF
13724 #line $LINENO "configure"
13725 /* confdefs.h.  */
13726 _ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h.  */
13730 $ac_includes_default
13731 int
13732 main ()
13733 {
13734 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13735 test_array [0] = 0
13736
13737   ;
13738   return 0;
13739 }
13740 _ACEOF
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743   (eval $ac_compile) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); } &&
13747          { ac_try='test -s conftest.$ac_objext'
13748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749   (eval $ac_try) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; }; then
13753   ac_lo=$ac_mid; break
13754 else
13755   echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 ac_hi=`expr '(' $ac_mid ')' - 1`
13759                        if test $ac_mid -le $ac_hi; then
13760                          ac_lo= ac_hi=
13761                          break
13762                        fi
13763                        ac_mid=`expr 2 '*' $ac_mid`
13764 fi
13765 rm -f conftest.$ac_objext conftest.$ac_ext
13766   done
13767 else
13768   echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 ac_lo= ac_hi=
13772 fi
13773 rm -f conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 rm -f conftest.$ac_objext conftest.$ac_ext
13776 # Binary search between lo and hi bounds.
13777 while test "x$ac_lo" != "x$ac_hi"; do
13778   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13779   cat >conftest.$ac_ext <<_ACEOF
13780 #line $LINENO "configure"
13781 /* confdefs.h.  */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h.  */
13786 $ac_includes_default
13787 int
13788 main ()
13789 {
13790 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13791 test_array [0] = 0
13792
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799   (eval $ac_compile) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } &&
13803          { ac_try='test -s conftest.$ac_objext'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; }; then
13809   ac_hi=$ac_mid
13810 else
13811   echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 ac_lo=`expr '(' $ac_mid ')' + 1`
13815 fi
13816 rm -f conftest.$ac_objext conftest.$ac_ext
13817 done
13818 case $ac_lo in
13819 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13820 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13821 See \`config.log' for more details." >&5
13822 echo "$as_me: error: cannot compute sizeof (int *), 77
13823 See \`config.log' for more details." >&2;}
13824    { (exit 1); exit 1; }; } ;;
13825 esac
13826 else
13827   if test "$cross_compiling" = yes; then
13828   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13829 See \`config.log' for more details." >&5
13830 echo "$as_me: error: cannot run test program while cross compiling
13831 See \`config.log' for more details." >&2;}
13832    { (exit 1); exit 1; }; }
13833 else
13834   cat >conftest.$ac_ext <<_ACEOF
13835 #line $LINENO "configure"
13836 /* confdefs.h.  */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h.  */
13841 $ac_includes_default
13842 long longval () { return (long) (sizeof (int *)); }
13843 unsigned long ulongval () { return (long) (sizeof (int *)); }
13844 #include <stdio.h>
13845 #include <stdlib.h>
13846 int
13847 main ()
13848 {
13849
13850   FILE *f = fopen ("conftest.val", "w");
13851   if (! f)
13852     exit (1);
13853   if (((long) (sizeof (int *))) < 0)
13854     {
13855       long i = longval ();
13856       if (i != ((long) (sizeof (int *))))
13857         exit (1);
13858       fprintf (f, "%ld\n", i);
13859     }
13860   else
13861     {
13862       unsigned long i = ulongval ();
13863       if (i != ((long) (sizeof (int *))))
13864         exit (1);
13865       fprintf (f, "%lu\n", i);
13866     }
13867   exit (ferror (f) || fclose (f) != 0);
13868
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest$ac_exeext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875   (eval $ac_link) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880   (eval $ac_try) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); }; }; then
13884   ac_cv_sizeof_int_p=`cat conftest.val`
13885 else
13886   echo "$as_me: program exited with status $ac_status" >&5
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ( exit $ac_status )
13891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13892 See \`config.log' for more details." >&5
13893 echo "$as_me: error: cannot compute sizeof (int *), 77
13894 See \`config.log' for more details." >&2;}
13895    { (exit 1); exit 1; }; }
13896 fi
13897 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13898 fi
13899 fi
13900 rm -f conftest.val
13901 else
13902   ac_cv_sizeof_int_p=0
13903 fi
13904 fi
13905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13906 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13907 cat >>confdefs.h <<_ACEOF
13908 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13909 _ACEOF
13910
13911
13912
13913 # Check for sys/types.h types
13914 echo "$as_me:$LINENO: checking for u_int type" >&5
13915 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13916 if test "${ac_cv_have_u_int+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919
13920     cat >conftest.$ac_ext <<_ACEOF
13921 #line $LINENO "configure"
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927  #include <sys/types.h>
13928 int
13929 main ()
13930 {
13931  u_int a; a = 1;
13932   ;
13933   return 0;
13934 }
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938   (eval $ac_compile) 2>&5
13939   ac_status=$?
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } &&
13942          { ac_try='test -s conftest.$ac_objext'
13943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944   (eval $ac_try) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); }; }; then
13948    ac_cv_have_u_int="yes"
13949 else
13950   echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953  ac_cv_have_u_int="no"
13954
13955 fi
13956 rm -f conftest.$ac_objext conftest.$ac_ext
13957
13958 fi
13959 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13960 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13961 if test "x$ac_cv_have_u_int" = "xyes" ; then
13962    cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_U_INT 1
13964 _ACEOF
13965
13966    have_u_int=1
13967 fi
13968
13969 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13970 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13971 if test "${ac_cv_have_intmax_t+set}" = set; then
13972   echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974
13975    cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982  #include <sys/types.h>
13983 int
13984 main ()
13985 {
13986  intmax_t a; a = 1;
13987   ;
13988   return 0;
13989 }
13990 _ACEOF
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993   (eval $ac_compile) 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); } &&
13997          { ac_try='test -s conftest.$ac_objext'
13998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999   (eval $ac_try) 2>&5
14000   ac_status=$?
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); }; }; then
14003    ac_cv_have_intmax_t="yes"
14004 else
14005   echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008
14009          cat >conftest.$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016  #include <stdint.h>
14017 int
14018 main ()
14019 {
14020  intmax_t a; a = 1;
14021   ;
14022   return 0;
14023 }
14024 _ACEOF
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027   (eval $ac_compile) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -s conftest.$ac_objext'
14032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033   (eval $ac_try) 2>&5
14034   ac_status=$?
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); }; }; then
14037    ac_cv_have_intmax_t="yes"
14038 else
14039   echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14041
14042  ac_cv_have_intmax_t="no"
14043
14044 fi
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14046
14047
14048 fi
14049 rm -f conftest.$ac_objext conftest.$ac_ext
14050
14051
14052 fi
14053 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14054 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14055 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14056    cat >>confdefs.h <<\_ACEOF
14057 #define HAVE_INTMAX_T 1
14058 _ACEOF
14059
14060    have_intmax_t=1
14061 fi
14062
14063
14064 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14065 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14066 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069
14070    cat >conftest.$ac_ext <<_ACEOF
14071 #line $LINENO "configure"
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077  #include <sys/types.h>
14078 int
14079 main ()
14080 {
14081  u_intmax_t a; a = 1;
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 rm -f conftest.$ac_objext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088   (eval $ac_compile) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } &&
14092          { ac_try='test -s conftest.$ac_objext'
14093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094   (eval $ac_try) 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); }; }; then
14098    ac_cv_have_u_intmax_t="yes"
14099 else
14100   echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103
14104          cat >conftest.$ac_ext <<_ACEOF
14105 #line $LINENO "configure"
14106 /* confdefs.h.  */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h.  */
14111  #include <stdint.h>
14112 int
14113 main ()
14114 {
14115  u_intmax_t a; a = 1;
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122   (eval $ac_compile) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); } &&
14126          { ac_try='test -s conftest.$ac_objext'
14127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128   (eval $ac_try) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; }; then
14132    ac_cv_have_u_intmax_t="yes"
14133 else
14134   echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137  ac_cv_have_u_intmax_t="no"
14138
14139 fi
14140 rm -f conftest.$ac_objext conftest.$ac_ext
14141
14142
14143 fi
14144 rm -f conftest.$ac_objext conftest.$ac_ext
14145
14146 fi
14147 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14148 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14149 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14150    cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_U_INTMAX_T 1
14152 _ACEOF
14153
14154    have_u_intmax_t=1
14155 fi
14156
14157
14158 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14159 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14160 if test "${ac_cv_have_intxx_t+set}" = set; then
14161   echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163
14164    cat >conftest.$ac_ext <<_ACEOF
14165 #line $LINENO "configure"
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171  #include <sys/types.h>
14172 int
14173 main ()
14174 {
14175  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182   (eval $ac_compile) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); } &&
14186          { ac_try='test -s conftest.$ac_objext'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192    ac_cv_have_intxx_t="yes"
14193 else
14194   echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14196
14197  ac_cv_have_intxx_t="no"
14198
14199 fi
14200 rm -f conftest.$ac_objext conftest.$ac_ext
14201
14202 fi
14203 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14204 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14205 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14206    cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_INTXX_T 1
14208 _ACEOF
14209
14210    have_intxx_t=1
14211 fi
14212
14213 echo "$as_me:$LINENO: checking for int64_t type" >&5
14214 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14215 if test "${ac_cv_have_int64_t+set}" = set; then
14216   echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218
14219    cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 /* confdefs.h.  */
14222 _ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h.  */
14226  #include <sys/types.h>
14227 int
14228 main ()
14229 {
14230  int64_t a; a = 1;
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237   (eval $ac_compile) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -s conftest.$ac_objext'
14242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243   (eval $ac_try) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); }; }; then
14247    ac_cv_have_int64_t="yes"
14248 else
14249   echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14251
14252  ac_cv_have_int64_t="no"
14253
14254 fi
14255 rm -f conftest.$ac_objext conftest.$ac_ext
14256
14257 fi
14258 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14259 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14260 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14261    cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_INT64_T 1
14263 _ACEOF
14264
14265    have_int64_t=1
14266 fi
14267
14268 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14269 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14270 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14271   echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273
14274    cat >conftest.$ac_ext <<_ACEOF
14275 #line $LINENO "configure"
14276 /* confdefs.h.  */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h.  */
14281  #include <sys/types.h>
14282 int
14283 main ()
14284 {
14285  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292   (eval $ac_compile) 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); } &&
14296          { ac_try='test -s conftest.$ac_objext'
14297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298   (eval $ac_try) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; }; then
14302    ac_cv_have_u_intxx_t="yes"
14303 else
14304   echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14306
14307  ac_cv_have_u_intxx_t="no"
14308
14309 fi
14310 rm -f conftest.$ac_objext conftest.$ac_ext
14311
14312 fi
14313 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14314 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14315 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14316    cat >>confdefs.h <<\_ACEOF
14317 #define HAVE_U_INTXX_T 1
14318 _ACEOF
14319
14320    have_u_intxx_t=1
14321 fi
14322
14323 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14324 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14325 if test "${ac_cv_have_u_int64_t+set}" = set; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328
14329    cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336  #include <sys/types.h>
14337 int
14338 main ()
14339 {
14340  u_int64_t a; a = 1;
14341   ;
14342   return 0;
14343 }
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347   (eval $ac_compile) 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -s conftest.$ac_objext'
14352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353   (eval $ac_try) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; }; then
14357    ac_cv_have_u_int64_t="yes"
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362  ac_cv_have_u_int64_t="no"
14363
14364 fi
14365 rm -f conftest.$ac_objext conftest.$ac_ext
14366
14367 fi
14368 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14369 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14370 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14371    cat >>confdefs.h <<\_ACEOF
14372 #define HAVE_U_INT64_T 1
14373 _ACEOF
14374
14375    have_u_int64_t=1
14376 fi
14377
14378 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14379            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14380 then
14381    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14382 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14383    cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14385 /* confdefs.h.  */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h.  */
14390  #include <sys/bitypes.h>
14391 int
14392 main ()
14393 {
14394  int8_t a; int16_t b; int32_t c;
14395         u_int8_t e; u_int16_t f; u_int32_t g;
14396         a = b = c = e = f = g = 1;
14397   ;
14398   return 0;
14399 }
14400 _ACEOF
14401 rm -f conftest.$ac_objext
14402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14403   (eval $ac_compile) 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } &&
14407          { ac_try='test -s conftest.$ac_objext'
14408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409   (eval $ac_try) 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; }; then
14413    cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_U_INTXX_T 1
14415 _ACEOF
14416
14417         cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_INTXX_T 1
14419 _ACEOF
14420
14421         cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_SYS_BITYPES_H 1
14423 _ACEOF
14424
14425         echo "$as_me:$LINENO: result: yes" >&5
14426 echo "${ECHO_T}yes" >&6
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431  echo "$as_me:$LINENO: result: no" >&5
14432 echo "${ECHO_T}no" >&6
14433
14434 fi
14435 rm -f conftest.$ac_objext conftest.$ac_ext
14436 fi
14437
14438 if test -z "$have_u_intxx_t" ; then
14439    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14440 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14441 if test "${ac_cv_have_uintxx_t+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444
14445       cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 /* confdefs.h.  */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h.  */
14452  #include <sys/types.h>
14453 int
14454 main ()
14455 {
14456  uint8_t a; uint16_t b;
14457            uint32_t c; a = b = c = 1;
14458   ;
14459   return 0;
14460 }
14461 _ACEOF
14462 rm -f conftest.$ac_objext
14463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14464   (eval $ac_compile) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); } &&
14468          { ac_try='test -s conftest.$ac_objext'
14469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470   (eval $ac_try) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); }; }; then
14474    ac_cv_have_uintxx_t="yes"
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479  ac_cv_have_uintxx_t="no"
14480
14481 fi
14482 rm -f conftest.$ac_objext conftest.$ac_ext
14483
14484 fi
14485 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14486 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14487    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14488       cat >>confdefs.h <<\_ACEOF
14489 #define HAVE_UINTXX_T 1
14490 _ACEOF
14491
14492    fi
14493 fi
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509 for ac_func in \
14510         fork \
14511         getcwd \
14512         gethostname \
14513         getpid \
14514         gettimeofday \
14515         setpgid \
14516         setpgrp \
14517         setsid \
14518         signal \
14519         strerror \
14520         strncmp \
14521         strncpy \
14522         vfprintf \
14523
14524 do
14525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14526 echo "$as_me:$LINENO: checking for $ac_func" >&5
14527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14528 if eval "test \"\${$as_ac_var+set}\" = set"; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 else
14531   cat >conftest.$ac_ext <<_ACEOF
14532 #line $LINENO "configure"
14533 /* confdefs.h.  */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h.  */
14538 /* System header to define __stub macros and hopefully few prototypes,
14539     which can conflict with char $ac_func (); below.
14540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14541     <limits.h> exists even on freestanding compilers.  */
14542 #ifdef __STDC__
14543 # include <limits.h>
14544 #else
14545 # include <assert.h>
14546 #endif
14547 /* Override any gcc2 internal prototype to avoid an error.  */
14548 #ifdef __cplusplus
14549 extern "C"
14550 {
14551 #endif
14552 /* We use char because int might match the return type of a gcc2
14553    builtin and then its argument prototype would still apply.  */
14554 char $ac_func ();
14555 /* The GNU C library defines this for functions which it implements
14556     to always fail with ENOSYS.  Some functions are actually named
14557     something starting with __ and the normal name is an alias.  */
14558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14559 choke me
14560 #else
14561 char (*f) () = $ac_func;
14562 #endif
14563 #ifdef __cplusplus
14564 }
14565 #endif
14566
14567 int
14568 main ()
14569 {
14570 return f != $ac_func;
14571   ;
14572   return 0;
14573 }
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577   (eval $ac_link) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } &&
14581          { ac_try='test -s conftest$ac_exeext'
14582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583   (eval $ac_try) 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587   eval "$as_ac_var=yes"
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592 eval "$as_ac_var=no"
14593 fi
14594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14595 fi
14596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14598 if test `eval echo '${'$as_ac_var'}'` = yes; then
14599   cat >>confdefs.h <<_ACEOF
14600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14601 _ACEOF
14602
14603 else
14604   echo 'configure: cannot find needed function.'; exit 1
14605
14606 fi
14607 done
14608
14609
14610
14611 for ac_func in fchdir
14612 do
14613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14614 echo "$as_me:$LINENO: checking for $ac_func" >&5
14615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14616 if eval "test \"\${$as_ac_var+set}\" = set"; then
14617   echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619   cat >conftest.$ac_ext <<_ACEOF
14620 #line $LINENO "configure"
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626 /* System header to define __stub macros and hopefully few prototypes,
14627     which can conflict with char $ac_func (); below.
14628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629     <limits.h> exists even on freestanding compilers.  */
14630 #ifdef __STDC__
14631 # include <limits.h>
14632 #else
14633 # include <assert.h>
14634 #endif
14635 /* Override any gcc2 internal prototype to avoid an error.  */
14636 #ifdef __cplusplus
14637 extern "C"
14638 {
14639 #endif
14640 /* We use char because int might match the return type of a gcc2
14641    builtin and then its argument prototype would still apply.  */
14642 char $ac_func ();
14643 /* The GNU C library defines this for functions which it implements
14644     to always fail with ENOSYS.  Some functions are actually named
14645     something starting with __ and the normal name is an alias.  */
14646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14647 choke me
14648 #else
14649 char (*f) () = $ac_func;
14650 #endif
14651 #ifdef __cplusplus
14652 }
14653 #endif
14654
14655 int
14656 main ()
14657 {
14658 return f != $ac_func;
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665   (eval $ac_link) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -s conftest$ac_exeext'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; }; then
14675   eval "$as_ac_var=yes"
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680 eval "$as_ac_var=no"
14681 fi
14682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14683 fi
14684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14686 if test `eval echo '${'$as_ac_var'}'` = yes; then
14687   cat >>confdefs.h <<_ACEOF
14688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14689 _ACEOF
14690  cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_FCHDIR 1
14692 _ACEOF
14693
14694 fi
14695 done
14696
14697
14698 for ac_func in strtoll
14699 do
14700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14701 echo "$as_me:$LINENO: checking for $ac_func" >&5
14702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14703 if eval "test \"\${$as_ac_var+set}\" = set"; then
14704   echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706   cat >conftest.$ac_ext <<_ACEOF
14707 #line $LINENO "configure"
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 /* System header to define __stub macros and hopefully few prototypes,
14714     which can conflict with char $ac_func (); below.
14715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14716     <limits.h> exists even on freestanding compilers.  */
14717 #ifdef __STDC__
14718 # include <limits.h>
14719 #else
14720 # include <assert.h>
14721 #endif
14722 /* Override any gcc2 internal prototype to avoid an error.  */
14723 #ifdef __cplusplus
14724 extern "C"
14725 {
14726 #endif
14727 /* We use char because int might match the return type of a gcc2
14728    builtin and then its argument prototype would still apply.  */
14729 char $ac_func ();
14730 /* The GNU C library defines this for functions which it implements
14731     to always fail with ENOSYS.  Some functions are actually named
14732     something starting with __ and the normal name is an alias.  */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14734 choke me
14735 #else
14736 char (*f) () = $ac_func;
14737 #endif
14738 #ifdef __cplusplus
14739 }
14740 #endif
14741
14742 int
14743 main ()
14744 {
14745 return f != $ac_func;
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14752   (eval $ac_link) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -s conftest$ac_exeext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   eval "$as_ac_var=yes"
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 eval "$as_ac_var=no"
14768 fi
14769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14770 fi
14771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14773 if test `eval echo '${'$as_ac_var'}'` = yes; then
14774   cat >>confdefs.h <<_ACEOF
14775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776 _ACEOF
14777  cat >>confdefs.h <<\_ACEOF
14778 #define HAVE_STRTOLL 1
14779 _ACEOF
14780
14781 fi
14782 done
14783
14784
14785
14786 for ac_func in chflags
14787 do
14788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 echo "$as_me:$LINENO: checking for $ac_func" >&5
14790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_var+set}\" = set"; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   cat >conftest.$ac_ext <<_ACEOF
14795 #line $LINENO "configure"
14796 /* confdefs.h.  */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h.  */
14801 /* System header to define __stub macros and hopefully few prototypes,
14802     which can conflict with char $ac_func (); below.
14803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14804     <limits.h> exists even on freestanding compilers.  */
14805 #ifdef __STDC__
14806 # include <limits.h>
14807 #else
14808 # include <assert.h>
14809 #endif
14810 /* Override any gcc2 internal prototype to avoid an error.  */
14811 #ifdef __cplusplus
14812 extern "C"
14813 {
14814 #endif
14815 /* We use char because int might match the return type of a gcc2
14816    builtin and then its argument prototype would still apply.  */
14817 char $ac_func ();
14818 /* The GNU C library defines this for functions which it implements
14819     to always fail with ENOSYS.  Some functions are actually named
14820     something starting with __ and the normal name is an alias.  */
14821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14822 choke me
14823 #else
14824 char (*f) () = $ac_func;
14825 #endif
14826 #ifdef __cplusplus
14827 }
14828 #endif
14829
14830 int
14831 main ()
14832 {
14833 return f != $ac_func;
14834   ;
14835   return 0;
14836 }
14837 _ACEOF
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840   (eval $ac_link) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); } &&
14844          { ac_try='test -s conftest$ac_exeext'
14845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846   (eval $ac_try) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; }; then
14850   eval "$as_ac_var=yes"
14851 else
14852   echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 eval "$as_ac_var=no"
14856 fi
14857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14858 fi
14859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14861 if test `eval echo '${'$as_ac_var'}'` = yes; then
14862   cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14864 _ACEOF
14865
14866 fi
14867 done
14868
14869
14870
14871
14872
14873
14874 for ac_func in snprintf vsnprintf gethostid getdomainname
14875 do
14876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14877 echo "$as_me:$LINENO: checking for $ac_func" >&5
14878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14879 if eval "test \"\${$as_ac_var+set}\" = set"; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   cat >conftest.$ac_ext <<_ACEOF
14883 #line $LINENO "configure"
14884 /* confdefs.h.  */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h.  */
14889 /* System header to define __stub macros and hopefully few prototypes,
14890     which can conflict with char $ac_func (); below.
14891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892     <limits.h> exists even on freestanding compilers.  */
14893 #ifdef __STDC__
14894 # include <limits.h>
14895 #else
14896 # include <assert.h>
14897 #endif
14898 /* Override any gcc2 internal prototype to avoid an error.  */
14899 #ifdef __cplusplus
14900 extern "C"
14901 {
14902 #endif
14903 /* We use char because int might match the return type of a gcc2
14904    builtin and then its argument prototype would still apply.  */
14905 char $ac_func ();
14906 /* The GNU C library defines this for functions which it implements
14907     to always fail with ENOSYS.  Some functions are actually named
14908     something starting with __ and the normal name is an alias.  */
14909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14910 choke me
14911 #else
14912 char (*f) () = $ac_func;
14913 #endif
14914 #ifdef __cplusplus
14915 }
14916 #endif
14917
14918 int
14919 main ()
14920 {
14921 return f != $ac_func;
14922   ;
14923   return 0;
14924 }
14925 _ACEOF
14926 rm -f conftest.$ac_objext conftest$ac_exeext
14927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14928   (eval $ac_link) 2>&5
14929   ac_status=$?
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); } &&
14932          { ac_try='test -s conftest$ac_exeext'
14933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934   (eval $ac_try) 2>&5
14935   ac_status=$?
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); }; }; then
14938   eval "$as_ac_var=yes"
14939 else
14940   echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14942
14943 eval "$as_ac_var=no"
14944 fi
14945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14946 fi
14947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14949 if test `eval echo '${'$as_ac_var'}'` = yes; then
14950   cat >>confdefs.h <<_ACEOF
14951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14952 _ACEOF
14953
14954 fi
14955 done
14956
14957
14958
14959
14960
14961
14962 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14963 do
14964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14965 echo "$as_me:$LINENO: checking for $ac_func" >&5
14966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14967 if eval "test \"\${$as_ac_var+set}\" = set"; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   cat >conftest.$ac_ext <<_ACEOF
14971 #line $LINENO "configure"
14972 /* confdefs.h.  */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h.  */
14977 /* System header to define __stub macros and hopefully few prototypes,
14978     which can conflict with char $ac_func (); below.
14979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14980     <limits.h> exists even on freestanding compilers.  */
14981 #ifdef __STDC__
14982 # include <limits.h>
14983 #else
14984 # include <assert.h>
14985 #endif
14986 /* Override any gcc2 internal prototype to avoid an error.  */
14987 #ifdef __cplusplus
14988 extern "C"
14989 {
14990 #endif
14991 /* We use char because int might match the return type of a gcc2
14992    builtin and then its argument prototype would still apply.  */
14993 char $ac_func ();
14994 /* The GNU C library defines this for functions which it implements
14995     to always fail with ENOSYS.  Some functions are actually named
14996     something starting with __ and the normal name is an alias.  */
14997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14998 choke me
14999 #else
15000 char (*f) () = $ac_func;
15001 #endif
15002 #ifdef __cplusplus
15003 }
15004 #endif
15005
15006 int
15007 main ()
15008 {
15009 return f != $ac_func;
15010   ;
15011   return 0;
15012 }
15013 _ACEOF
15014 rm -f conftest.$ac_objext conftest$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016   (eval $ac_link) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -s conftest$ac_exeext'
15021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022   (eval $ac_try) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); }; }; then
15026   eval "$as_ac_var=yes"
15027 else
15028   echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 eval "$as_ac_var=no"
15032 fi
15033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15034 fi
15035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15040 _ACEOF
15041
15042 fi
15043 done
15044
15045
15046 # If resolver functions are not in libc check for -lnsl or -lresolv.
15047 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15048 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15049 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   cat >conftest.$ac_ext <<_ACEOF
15053 #line $LINENO "configure"
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059 /* System header to define __stub macros and hopefully few prototypes,
15060     which can conflict with char gethostbyname_r (); below.
15061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15062     <limits.h> exists even on freestanding compilers.  */
15063 #ifdef __STDC__
15064 # include <limits.h>
15065 #else
15066 # include <assert.h>
15067 #endif
15068 /* Override any gcc2 internal prototype to avoid an error.  */
15069 #ifdef __cplusplus
15070 extern "C"
15071 {
15072 #endif
15073 /* We use char because int might match the return type of a gcc2
15074    builtin and then its argument prototype would still apply.  */
15075 char gethostbyname_r ();
15076 /* The GNU C library defines this for functions which it implements
15077     to always fail with ENOSYS.  Some functions are actually named
15078     something starting with __ and the normal name is an alias.  */
15079 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15080 choke me
15081 #else
15082 char (*f) () = gethostbyname_r;
15083 #endif
15084 #ifdef __cplusplus
15085 }
15086 #endif
15087
15088 int
15089 main ()
15090 {
15091 return f != gethostbyname_r;
15092   ;
15093   return 0;
15094 }
15095 _ACEOF
15096 rm -f conftest.$ac_objext conftest$ac_exeext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15098   (eval $ac_link) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } &&
15102          { ac_try='test -s conftest$ac_exeext'
15103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104   (eval $ac_try) 2>&5
15105   ac_status=$?
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); }; }; then
15108   ac_cv_func_gethostbyname_r=yes
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113 ac_cv_func_gethostbyname_r=no
15114 fi
15115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15116 fi
15117 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15118 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15119 if test $ac_cv_func_gethostbyname_r = yes; then
15120   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15121 echo "${ECHO_T}using libc's resolver" >&6
15122 else
15123
15124 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15125 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15126 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15127   echo $ECHO_N "(cached) $ECHO_C" >&6
15128 else
15129   ac_check_lib_save_LIBS=$LIBS
15130 LIBS="-lnsl  $LIBS"
15131 cat >conftest.$ac_ext <<_ACEOF
15132 #line $LINENO "configure"
15133 /* confdefs.h.  */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h.  */
15138
15139 /* Override any gcc2 internal prototype to avoid an error.  */
15140 #ifdef __cplusplus
15141 extern "C"
15142 #endif
15143 /* We use char because int might match the return type of a gcc2
15144    builtin and then its argument prototype would still apply.  */
15145 char gethostbyname_r ();
15146 int
15147 main ()
15148 {
15149 gethostbyname_r ();
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156   (eval $ac_link) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); } &&
15160          { ac_try='test -s conftest$ac_exeext'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; }; then
15166   ac_cv_lib_nsl_gethostbyname_r=yes
15167 else
15168   echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ac_cv_lib_nsl_gethostbyname_r=no
15172 fi
15173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15174 LIBS=$ac_check_lib_save_LIBS
15175 fi
15176 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15177 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15178 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15179   cat >>confdefs.h <<_ACEOF
15180 #define HAVE_LIBNSL 1
15181 _ACEOF
15182
15183   LIBS="-lnsl $LIBS"
15184
15185 fi
15186
15187
15188 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15189 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15190 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-lresolv  $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15196 #line $LINENO "configure"
15197 /* confdefs.h.  */
15198 _ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h.  */
15202
15203 /* Override any gcc2 internal prototype to avoid an error.  */
15204 #ifdef __cplusplus
15205 extern "C"
15206 #endif
15207 /* We use char because int might match the return type of a gcc2
15208    builtin and then its argument prototype would still apply.  */
15209 char gethostbyname_r ();
15210 int
15211 main ()
15212 {
15213 gethostbyname_r ();
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220   (eval $ac_link) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -s conftest$ac_exeext'
15225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226   (eval $ac_try) 2>&5
15227   ac_status=$?
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); }; }; then
15230   ac_cv_lib_resolv_gethostbyname_r=yes
15231 else
15232   echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ac_cv_lib_resolv_gethostbyname_r=no
15236 fi
15237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15238 LIBS=$ac_check_lib_save_LIBS
15239 fi
15240 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15241 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15242 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15243   cat >>confdefs.h <<_ACEOF
15244 #define HAVE_LIBRESOLV 1
15245 _ACEOF
15246
15247   LIBS="-lresolv $LIBS"
15248
15249 fi
15250
15251 fi
15252
15253
15254
15255 # Find where sockets are (especially for Solaris)
15256 echo "$as_me:$LINENO: checking for socket" >&5
15257 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15258 if test "${ac_cv_func_socket+set}" = set; then
15259   echo $ECHO_N "(cached) $ECHO_C" >&6
15260 else
15261   cat >conftest.$ac_ext <<_ACEOF
15262 #line $LINENO "configure"
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 /* System header to define __stub macros and hopefully few prototypes,
15269     which can conflict with char socket (); below.
15270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15271     <limits.h> exists even on freestanding compilers.  */
15272 #ifdef __STDC__
15273 # include <limits.h>
15274 #else
15275 # include <assert.h>
15276 #endif
15277 /* Override any gcc2 internal prototype to avoid an error.  */
15278 #ifdef __cplusplus
15279 extern "C"
15280 {
15281 #endif
15282 /* We use char because int might match the return type of a gcc2
15283    builtin and then its argument prototype would still apply.  */
15284 char socket ();
15285 /* The GNU C library defines this for functions which it implements
15286     to always fail with ENOSYS.  Some functions are actually named
15287     something starting with __ and the normal name is an alias.  */
15288 #if defined (__stub_socket) || defined (__stub___socket)
15289 choke me
15290 #else
15291 char (*f) () = socket;
15292 #endif
15293 #ifdef __cplusplus
15294 }
15295 #endif
15296
15297 int
15298 main ()
15299 {
15300 return f != socket;
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15307   (eval $ac_link) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } &&
15311          { ac_try='test -s conftest$ac_exeext'
15312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313   (eval $ac_try) 2>&5
15314   ac_status=$?
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); }; }; then
15317   ac_cv_func_socket=yes
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 ac_cv_func_socket=no
15323 fi
15324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15325 fi
15326 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15327 echo "${ECHO_T}$ac_cv_func_socket" >&6
15328 if test $ac_cv_func_socket = yes; then
15329   echo "$as_me:$LINENO: result: using libc's socket" >&5
15330 echo "${ECHO_T}using libc's socket" >&6
15331 else
15332
15333 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15334 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15335 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   ac_check_lib_save_LIBS=$LIBS
15339 LIBS="-lxnet  $LIBS"
15340 cat >conftest.$ac_ext <<_ACEOF
15341 #line $LINENO "configure"
15342 /* confdefs.h.  */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h.  */
15347
15348 /* Override any gcc2 internal prototype to avoid an error.  */
15349 #ifdef __cplusplus
15350 extern "C"
15351 #endif
15352 /* We use char because int might match the return type of a gcc2
15353    builtin and then its argument prototype would still apply.  */
15354 char socket ();
15355 int
15356 main ()
15357 {
15358 socket ();
15359   ;
15360   return 0;
15361 }
15362 _ACEOF
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365   (eval $ac_link) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); } &&
15369          { ac_try='test -s conftest$ac_exeext'
15370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371   (eval $ac_try) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; }; then
15375   ac_cv_lib_xnet_socket=yes
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380 ac_cv_lib_xnet_socket=no
15381 fi
15382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15384 fi
15385 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15386 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15387 if test $ac_cv_lib_xnet_socket = yes; then
15388   cat >>confdefs.h <<_ACEOF
15389 #define HAVE_LIBXNET 1
15390 _ACEOF
15391
15392   LIBS="-lxnet $LIBS"
15393
15394 fi
15395
15396
15397 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15398 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15399 if test "${ac_cv_lib_socket_socket+set}" = set; then
15400   echo $ECHO_N "(cached) $ECHO_C" >&6
15401 else
15402   ac_check_lib_save_LIBS=$LIBS
15403 LIBS="-lsocket  $LIBS"
15404 cat >conftest.$ac_ext <<_ACEOF
15405 #line $LINENO "configure"
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411
15412 /* Override any gcc2 internal prototype to avoid an error.  */
15413 #ifdef __cplusplus
15414 extern "C"
15415 #endif
15416 /* We use char because int might match the return type of a gcc2
15417    builtin and then its argument prototype would still apply.  */
15418 char socket ();
15419 int
15420 main ()
15421 {
15422 socket ();
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429   (eval $ac_link) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); } &&
15433          { ac_try='test -s conftest$ac_exeext'
15434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435   (eval $ac_try) 2>&5
15436   ac_status=$?
15437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438   (exit $ac_status); }; }; then
15439   ac_cv_lib_socket_socket=yes
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443
15444 ac_cv_lib_socket_socket=no
15445 fi
15446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15448 fi
15449 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15450 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15451 if test $ac_cv_lib_socket_socket = yes; then
15452   cat >>confdefs.h <<_ACEOF
15453 #define HAVE_LIBSOCKET 1
15454 _ACEOF
15455
15456   LIBS="-lsocket $LIBS"
15457
15458 fi
15459
15460
15461 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15462 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15463 if test "${ac_cv_lib_inet_socket+set}" = set; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466   ac_check_lib_save_LIBS=$LIBS
15467 LIBS="-linet  $LIBS"
15468 cat >conftest.$ac_ext <<_ACEOF
15469 #line $LINENO "configure"
15470 /* confdefs.h.  */
15471 _ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h.  */
15475
15476 /* Override any gcc2 internal prototype to avoid an error.  */
15477 #ifdef __cplusplus
15478 extern "C"
15479 #endif
15480 /* We use char because int might match the return type of a gcc2
15481    builtin and then its argument prototype would still apply.  */
15482 char socket ();
15483 int
15484 main ()
15485 {
15486 socket ();
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493   (eval $ac_link) 2>&5
15494   ac_status=$?
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); } &&
15497          { ac_try='test -s conftest$ac_exeext'
15498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499   (eval $ac_try) 2>&5
15500   ac_status=$?
15501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502   (exit $ac_status); }; }; then
15503   ac_cv_lib_inet_socket=yes
15504 else
15505   echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15507
15508 ac_cv_lib_inet_socket=no
15509 fi
15510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15511 LIBS=$ac_check_lib_save_LIBS
15512 fi
15513 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15514 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15515 if test $ac_cv_lib_inet_socket = yes; then
15516   cat >>confdefs.h <<_ACEOF
15517 #define HAVE_LIBINET 1
15518 _ACEOF
15519
15520   LIBS="-linet $LIBS"
15521
15522 fi
15523
15524 fi
15525
15526
15527
15528 for ac_func in inet_pton
15529 do
15530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15531 echo "$as_me:$LINENO: checking for $ac_func" >&5
15532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15533 if eval "test \"\${$as_ac_var+set}\" = set"; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   cat >conftest.$ac_ext <<_ACEOF
15537 #line $LINENO "configure"
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543 /* System header to define __stub macros and hopefully few prototypes,
15544     which can conflict with char $ac_func (); below.
15545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15546     <limits.h> exists even on freestanding compilers.  */
15547 #ifdef __STDC__
15548 # include <limits.h>
15549 #else
15550 # include <assert.h>
15551 #endif
15552 /* Override any gcc2 internal prototype to avoid an error.  */
15553 #ifdef __cplusplus
15554 extern "C"
15555 {
15556 #endif
15557 /* We use char because int might match the return type of a gcc2
15558    builtin and then its argument prototype would still apply.  */
15559 char $ac_func ();
15560 /* The GNU C library defines this for functions which it implements
15561     to always fail with ENOSYS.  Some functions are actually named
15562     something starting with __ and the normal name is an alias.  */
15563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15564 choke me
15565 #else
15566 char (*f) () = $ac_func;
15567 #endif
15568 #ifdef __cplusplus
15569 }
15570 #endif
15571
15572 int
15573 main ()
15574 {
15575 return f != $ac_func;
15576   ;
15577   return 0;
15578 }
15579 _ACEOF
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15582   (eval $ac_link) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } &&
15586          { ac_try='test -s conftest$ac_exeext'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; }; then
15592   eval "$as_ac_var=yes"
15593 else
15594   echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 eval "$as_ac_var=no"
15598 fi
15599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15600 fi
15601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15603 if test `eval echo '${'$as_ac_var'}'` = yes; then
15604   cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15606 _ACEOF
15607  cat >>confdefs.h <<\_ACEOF
15608 #define HAVE_INET_PTON 1
15609 _ACEOF
15610
15611 fi
15612 done
15613
15614
15615
15616 for ac_func in strftime
15617 do
15618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15619 echo "$as_me:$LINENO: checking for $ac_func" >&5
15620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15621 if eval "test \"\${$as_ac_var+set}\" = set"; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624   cat >conftest.$ac_ext <<_ACEOF
15625 #line $LINENO "configure"
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631 /* System header to define __stub macros and hopefully few prototypes,
15632     which can conflict with char $ac_func (); below.
15633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634     <limits.h> exists even on freestanding compilers.  */
15635 #ifdef __STDC__
15636 # include <limits.h>
15637 #else
15638 # include <assert.h>
15639 #endif
15640 /* Override any gcc2 internal prototype to avoid an error.  */
15641 #ifdef __cplusplus
15642 extern "C"
15643 {
15644 #endif
15645 /* We use char because int might match the return type of a gcc2
15646    builtin and then its argument prototype would still apply.  */
15647 char $ac_func ();
15648 /* The GNU C library defines this for functions which it implements
15649     to always fail with ENOSYS.  Some functions are actually named
15650     something starting with __ and the normal name is an alias.  */
15651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15652 choke me
15653 #else
15654 char (*f) () = $ac_func;
15655 #endif
15656 #ifdef __cplusplus
15657 }
15658 #endif
15659
15660 int
15661 main ()
15662 {
15663 return f != $ac_func;
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670   (eval $ac_link) 2>&5
15671   ac_status=$?
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); } &&
15674          { ac_try='test -s conftest$ac_exeext'
15675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676   (eval $ac_try) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; }; then
15680   eval "$as_ac_var=yes"
15681 else
15682   echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15684
15685 eval "$as_ac_var=no"
15686 fi
15687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15688 fi
15689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15691 if test `eval echo '${'$as_ac_var'}'` = yes; then
15692   cat >>confdefs.h <<_ACEOF
15693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15694 _ACEOF
15695
15696 else
15697   # strftime is in -lintl on SCO UNIX.
15698 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15699 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15700 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703   ac_check_lib_save_LIBS=$LIBS
15704 LIBS="-lintl  $LIBS"
15705 cat >conftest.$ac_ext <<_ACEOF
15706 #line $LINENO "configure"
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712
15713 /* Override any gcc2 internal prototype to avoid an error.  */
15714 #ifdef __cplusplus
15715 extern "C"
15716 #endif
15717 /* We use char because int might match the return type of a gcc2
15718    builtin and then its argument prototype would still apply.  */
15719 char strftime ();
15720 int
15721 main ()
15722 {
15723 strftime ();
15724   ;
15725   return 0;
15726 }
15727 _ACEOF
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15730   (eval $ac_link) 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } &&
15734          { ac_try='test -s conftest$ac_exeext'
15735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736   (eval $ac_try) 2>&5
15737   ac_status=$?
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); }; }; then
15740   ac_cv_lib_intl_strftime=yes
15741 else
15742   echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 ac_cv_lib_intl_strftime=no
15746 fi
15747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15749 fi
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15751 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15752 if test $ac_cv_lib_intl_strftime = yes; then
15753   cat >>confdefs.h <<\_ACEOF
15754 #define HAVE_STRFTIME 1
15755 _ACEOF
15756
15757 LIBS="-lintl $LIBS"
15758 fi
15759
15760 fi
15761 done
15762
15763
15764 for ac_func in vprintf
15765 do
15766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767 echo "$as_me:$LINENO: checking for $ac_func" >&5
15768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15769 if eval "test \"\${$as_ac_var+set}\" = set"; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   cat >conftest.$ac_ext <<_ACEOF
15773 #line $LINENO "configure"
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779 /* System header to define __stub macros and hopefully few prototypes,
15780     which can conflict with char $ac_func (); below.
15781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782     <limits.h> exists even on freestanding compilers.  */
15783 #ifdef __STDC__
15784 # include <limits.h>
15785 #else
15786 # include <assert.h>
15787 #endif
15788 /* Override any gcc2 internal prototype to avoid an error.  */
15789 #ifdef __cplusplus
15790 extern "C"
15791 {
15792 #endif
15793 /* We use char because int might match the return type of a gcc2
15794    builtin and then its argument prototype would still apply.  */
15795 char $ac_func ();
15796 /* The GNU C library defines this for functions which it implements
15797     to always fail with ENOSYS.  Some functions are actually named
15798     something starting with __ and the normal name is an alias.  */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15800 choke me
15801 #else
15802 char (*f) () = $ac_func;
15803 #endif
15804 #ifdef __cplusplus
15805 }
15806 #endif
15807
15808 int
15809 main ()
15810 {
15811 return f != $ac_func;
15812   ;
15813   return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818   (eval $ac_link) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } &&
15822          { ac_try='test -s conftest$ac_exeext'
15823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824   (eval $ac_try) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; }; then
15828   eval "$as_ac_var=yes"
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833 eval "$as_ac_var=no"
15834 fi
15835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15836 fi
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840   cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15842 _ACEOF
15843
15844 echo "$as_me:$LINENO: checking for _doprnt" >&5
15845 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15846 if test "${ac_cv_func__doprnt+set}" = set; then
15847   echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849   cat >conftest.$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15851 /* confdefs.h.  */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h.  */
15856 /* System header to define __stub macros and hopefully few prototypes,
15857     which can conflict with char _doprnt (); below.
15858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15859     <limits.h> exists even on freestanding compilers.  */
15860 #ifdef __STDC__
15861 # include <limits.h>
15862 #else
15863 # include <assert.h>
15864 #endif
15865 /* Override any gcc2 internal prototype to avoid an error.  */
15866 #ifdef __cplusplus
15867 extern "C"
15868 {
15869 #endif
15870 /* We use char because int might match the return type of a gcc2
15871    builtin and then its argument prototype would still apply.  */
15872 char _doprnt ();
15873 /* The GNU C library defines this for functions which it implements
15874     to always fail with ENOSYS.  Some functions are actually named
15875     something starting with __ and the normal name is an alias.  */
15876 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15877 choke me
15878 #else
15879 char (*f) () = _doprnt;
15880 #endif
15881 #ifdef __cplusplus
15882 }
15883 #endif
15884
15885 int
15886 main ()
15887 {
15888 return f != _doprnt;
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15895   (eval $ac_link) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } &&
15899          { ac_try='test -s conftest$ac_exeext'
15900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901   (eval $ac_try) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; }; then
15905   ac_cv_func__doprnt=yes
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 ac_cv_func__doprnt=no
15911 fi
15912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15913 fi
15914 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15915 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15916 if test $ac_cv_func__doprnt = yes; then
15917
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_DOPRNT 1
15920 _ACEOF
15921
15922 fi
15923
15924 fi
15925 done
15926
15927
15928 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15929 # for constant arguments.  Useless!
15930 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15931 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15932 if test "${ac_cv_working_alloca_h+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   cat >conftest.$ac_ext <<_ACEOF
15936 #line $LINENO "configure"
15937 /* confdefs.h.  */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h.  */
15942 #include <alloca.h>
15943 int
15944 main ()
15945 {
15946 char *p = (char *) alloca (2 * sizeof (int));
15947   ;
15948   return 0;
15949 }
15950 _ACEOF
15951 rm -f conftest.$ac_objext conftest$ac_exeext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15953   (eval $ac_link) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } &&
15957          { ac_try='test -s conftest$ac_exeext'
15958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959   (eval $ac_try) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; }; then
15963   ac_cv_working_alloca_h=yes
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 ac_cv_working_alloca_h=no
15969 fi
15970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15971 fi
15972 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15973 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15974 if test $ac_cv_working_alloca_h = yes; then
15975
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_ALLOCA_H 1
15978 _ACEOF
15979
15980 fi
15981
15982 echo "$as_me:$LINENO: checking for alloca" >&5
15983 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15984 if test "${ac_cv_func_alloca_works+set}" = set; then
15985   echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987   cat >conftest.$ac_ext <<_ACEOF
15988 #line $LINENO "configure"
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994 #ifdef __GNUC__
15995 # define alloca __builtin_alloca
15996 #else
15997 # ifdef _MSC_VER
15998 #  include <malloc.h>
15999 #  define alloca _alloca
16000 # else
16001 #  if HAVE_ALLOCA_H
16002 #   include <alloca.h>
16003 #  else
16004 #   ifdef _AIX
16005  #pragma alloca
16006 #   else
16007 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16008 char *alloca ();
16009 #    endif
16010 #   endif
16011 #  endif
16012 # endif
16013 #endif
16014
16015 int
16016 main ()
16017 {
16018 char *p = (char *) alloca (1);
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 rm -f conftest.$ac_objext conftest$ac_exeext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16025   (eval $ac_link) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); } &&
16029          { ac_try='test -s conftest$ac_exeext'
16030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031   (eval $ac_try) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); }; }; then
16035   ac_cv_func_alloca_works=yes
16036 else
16037   echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16039
16040 ac_cv_func_alloca_works=no
16041 fi
16042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16043 fi
16044 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16045 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16046
16047 if test $ac_cv_func_alloca_works = yes; then
16048
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_ALLOCA 1
16051 _ACEOF
16052
16053 else
16054   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16055 # that cause trouble.  Some versions do not even contain alloca or
16056 # contain a buggy version.  If you still want to use their alloca,
16057 # use ar to extract alloca.o from them instead of compiling alloca.c.
16058
16059 ALLOCA=alloca.$ac_objext
16060
16061 cat >>confdefs.h <<\_ACEOF
16062 #define C_ALLOCA 1
16063 _ACEOF
16064
16065
16066 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16067 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16068 if test "${ac_cv_os_cray+set}" = set; then
16069   echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071   cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078 #if defined(CRAY) && ! defined(CRAY2)
16079 webecray
16080 #else
16081 wenotbecray
16082 #endif
16083
16084 _ACEOF
16085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16086   $EGREP "webecray" >/dev/null 2>&1; then
16087   ac_cv_os_cray=yes
16088 else
16089   ac_cv_os_cray=no
16090 fi
16091 rm -f conftest*
16092
16093 fi
16094 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16095 echo "${ECHO_T}$ac_cv_os_cray" >&6
16096 if test $ac_cv_os_cray = yes; then
16097   for ac_func in _getb67 GETB67 getb67; do
16098     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16099 echo "$as_me:$LINENO: checking for $ac_func" >&5
16100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16101 if eval "test \"\${$as_ac_var+set}\" = set"; then
16102   echo $ECHO_N "(cached) $ECHO_C" >&6
16103 else
16104   cat >conftest.$ac_ext <<_ACEOF
16105 #line $LINENO "configure"
16106 /* confdefs.h.  */
16107 _ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h.  */
16111 /* System header to define __stub macros and hopefully few prototypes,
16112     which can conflict with char $ac_func (); below.
16113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16114     <limits.h> exists even on freestanding compilers.  */
16115 #ifdef __STDC__
16116 # include <limits.h>
16117 #else
16118 # include <assert.h>
16119 #endif
16120 /* Override any gcc2 internal prototype to avoid an error.  */
16121 #ifdef __cplusplus
16122 extern "C"
16123 {
16124 #endif
16125 /* We use char because int might match the return type of a gcc2
16126    builtin and then its argument prototype would still apply.  */
16127 char $ac_func ();
16128 /* The GNU C library defines this for functions which it implements
16129     to always fail with ENOSYS.  Some functions are actually named
16130     something starting with __ and the normal name is an alias.  */
16131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16132 choke me
16133 #else
16134 char (*f) () = $ac_func;
16135 #endif
16136 #ifdef __cplusplus
16137 }
16138 #endif
16139
16140 int
16141 main ()
16142 {
16143 return f != $ac_func;
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150   (eval $ac_link) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); } &&
16154          { ac_try='test -s conftest$ac_exeext'
16155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156   (eval $ac_try) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; }; then
16160   eval "$as_ac_var=yes"
16161 else
16162   echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 eval "$as_ac_var=no"
16166 fi
16167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16168 fi
16169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16171 if test `eval echo '${'$as_ac_var'}'` = yes; then
16172
16173 cat >>confdefs.h <<_ACEOF
16174 #define CRAY_STACKSEG_END $ac_func
16175 _ACEOF
16176
16177     break
16178 fi
16179
16180   done
16181 fi
16182
16183 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16184 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16185 if test "${ac_cv_c_stack_direction+set}" = set; then
16186   echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188   if test "$cross_compiling" = yes; then
16189   ac_cv_c_stack_direction=0
16190 else
16191   cat >conftest.$ac_ext <<_ACEOF
16192 #line $LINENO "configure"
16193 /* confdefs.h.  */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h.  */
16198 int
16199 find_stack_direction ()
16200 {
16201   static char *addr = 0;
16202   auto char dummy;
16203   if (addr == 0)
16204     {
16205       addr = &dummy;
16206       return find_stack_direction ();
16207     }
16208   else
16209     return (&dummy > addr) ? 1 : -1;
16210 }
16211
16212 int
16213 main ()
16214 {
16215   exit (find_stack_direction () < 0);
16216 }
16217 _ACEOF
16218 rm -f conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220   (eval $ac_link) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225   (eval $ac_try) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; }; then
16229   ac_cv_c_stack_direction=1
16230 else
16231   echo "$as_me: program exited with status $ac_status" >&5
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235 ( exit $ac_status )
16236 ac_cv_c_stack_direction=-1
16237 fi
16238 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 fi
16241 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16242 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define STACK_DIRECTION $ac_cv_c_stack_direction
16246 _ACEOF
16247
16248
16249 fi
16250
16251 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16252 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16253 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16254 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   ac_check_lib_save_LIBS=$LIBS
16258 LIBS="-lsun  $LIBS"
16259 cat >conftest.$ac_ext <<_ACEOF
16260 #line $LINENO "configure"
16261 /* confdefs.h.  */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h.  */
16266
16267 /* Override any gcc2 internal prototype to avoid an error.  */
16268 #ifdef __cplusplus
16269 extern "C"
16270 #endif
16271 /* We use char because int might match the return type of a gcc2
16272    builtin and then its argument prototype would still apply.  */
16273 char getmntent ();
16274 int
16275 main ()
16276 {
16277 getmntent ();
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284   (eval $ac_link) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); } &&
16288          { ac_try='test -s conftest$ac_exeext'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294   ac_cv_lib_sun_getmntent=yes
16295 else
16296   echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16298
16299 ac_cv_lib_sun_getmntent=no
16300 fi
16301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16302 LIBS=$ac_check_lib_save_LIBS
16303 fi
16304 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16305 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16306 if test $ac_cv_lib_sun_getmntent = yes; then
16307   LIBS="-lsun $LIBS"
16308 else
16309   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16310 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16311 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   ac_check_lib_save_LIBS=$LIBS
16315 LIBS="-lseq  $LIBS"
16316 cat >conftest.$ac_ext <<_ACEOF
16317 #line $LINENO "configure"
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323
16324 /* Override any gcc2 internal prototype to avoid an error.  */
16325 #ifdef __cplusplus
16326 extern "C"
16327 #endif
16328 /* We use char because int might match the return type of a gcc2
16329    builtin and then its argument prototype would still apply.  */
16330 char getmntent ();
16331 int
16332 main ()
16333 {
16334 getmntent ();
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341   (eval $ac_link) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -s conftest$ac_exeext'
16346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347   (eval $ac_try) 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; }; then
16351   ac_cv_lib_seq_getmntent=yes
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 ac_cv_lib_seq_getmntent=no
16357 fi
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359 LIBS=$ac_check_lib_save_LIBS
16360 fi
16361 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16362 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16363 if test $ac_cv_lib_seq_getmntent = yes; then
16364   LIBS="-lseq $LIBS"
16365 else
16366   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16367 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16368 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16369   echo $ECHO_N "(cached) $ECHO_C" >&6
16370 else
16371   ac_check_lib_save_LIBS=$LIBS
16372 LIBS="-lgen  $LIBS"
16373 cat >conftest.$ac_ext <<_ACEOF
16374 #line $LINENO "configure"
16375 /* confdefs.h.  */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h.  */
16380
16381 /* Override any gcc2 internal prototype to avoid an error.  */
16382 #ifdef __cplusplus
16383 extern "C"
16384 #endif
16385 /* We use char because int might match the return type of a gcc2
16386    builtin and then its argument prototype would still apply.  */
16387 char getmntent ();
16388 int
16389 main ()
16390 {
16391 getmntent ();
16392   ;
16393   return 0;
16394 }
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16398   (eval $ac_link) 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } &&
16402          { ac_try='test -s conftest$ac_exeext'
16403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404   (eval $ac_try) 2>&5
16405   ac_status=$?
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); }; }; then
16408   ac_cv_lib_gen_getmntent=yes
16409 else
16410   echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 ac_cv_lib_gen_getmntent=no
16414 fi
16415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16416 LIBS=$ac_check_lib_save_LIBS
16417 fi
16418 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16419 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16420 if test $ac_cv_lib_gen_getmntent = yes; then
16421   LIBS="-lgen $LIBS"
16422 fi
16423
16424 fi
16425
16426 fi
16427
16428
16429 for ac_func in getmntent
16430 do
16431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16432 echo "$as_me:$LINENO: checking for $ac_func" >&5
16433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16434 if eval "test \"\${$as_ac_var+set}\" = set"; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   cat >conftest.$ac_ext <<_ACEOF
16438 #line $LINENO "configure"
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444 /* System header to define __stub macros and hopefully few prototypes,
16445     which can conflict with char $ac_func (); below.
16446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16447     <limits.h> exists even on freestanding compilers.  */
16448 #ifdef __STDC__
16449 # include <limits.h>
16450 #else
16451 # include <assert.h>
16452 #endif
16453 /* Override any gcc2 internal prototype to avoid an error.  */
16454 #ifdef __cplusplus
16455 extern "C"
16456 {
16457 #endif
16458 /* We use char because int might match the return type of a gcc2
16459    builtin and then its argument prototype would still apply.  */
16460 char $ac_func ();
16461 /* The GNU C library defines this for functions which it implements
16462     to always fail with ENOSYS.  Some functions are actually named
16463     something starting with __ and the normal name is an alias.  */
16464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16465 choke me
16466 #else
16467 char (*f) () = $ac_func;
16468 #endif
16469 #ifdef __cplusplus
16470 }
16471 #endif
16472
16473 int
16474 main ()
16475 {
16476 return f != $ac_func;
16477   ;
16478   return 0;
16479 }
16480 _ACEOF
16481 rm -f conftest.$ac_objext conftest$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483   (eval $ac_link) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); } &&
16487          { ac_try='test -s conftest$ac_exeext'
16488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489   (eval $ac_try) 2>&5
16490   ac_status=$?
16491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492   (exit $ac_status); }; }; then
16493   eval "$as_ac_var=yes"
16494 else
16495   echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498 eval "$as_ac_var=no"
16499 fi
16500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16501 fi
16502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16504 if test `eval echo '${'$as_ac_var'}'` = yes; then
16505   cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16507 _ACEOF
16508
16509 fi
16510 done
16511
16512
16513 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16514 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16515 if test "${ac_cv_func_closedir_void+set}" = set; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   if test "$cross_compiling" = yes; then
16519   ac_cv_func_closedir_void=yes
16520 else
16521   cat >conftest.$ac_ext <<_ACEOF
16522 #line $LINENO "configure"
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528 $ac_includes_default
16529 #include <$ac_header_dirent>
16530 #ifndef __cplusplus
16531 int closedir ();
16532 #endif
16533
16534 int
16535 main ()
16536 {
16537 exit (closedir (opendir (".")) != 0);
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest$ac_exeext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16544   (eval $ac_link) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_func_closedir_void=no
16554 else
16555   echo "$as_me: program exited with status $ac_status" >&5
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ( exit $ac_status )
16560 ac_cv_func_closedir_void=yes
16561 fi
16562 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16563 fi
16564 fi
16565 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16566 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16567 if test $ac_cv_func_closedir_void = yes; then
16568
16569 cat >>confdefs.h <<\_ACEOF
16570 #define CLOSEDIR_VOID 1
16571 _ACEOF
16572
16573 fi
16574
16575 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16576 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16577 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   if test "$cross_compiling" = yes; then
16581   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16582 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16583    { (exit 1); exit 1; }; }
16584 else
16585   cat >conftest.$ac_ext <<_ACEOF
16586 #line $LINENO "configure"
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592 #if HAVE_UNISTD_H
16593 # include <unistd.h>
16594 #endif
16595
16596 int
16597 main ()
16598 {
16599 /* If this system has a BSD-style setpgrp which takes arguments,
16600   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16601   exit successfully. */
16602   exit (setpgrp (1,1) == -1 ? 0 : 1);
16603   ;
16604   return 0;
16605 }
16606 _ACEOF
16607 rm -f conftest$ac_exeext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16609   (eval $ac_link) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614   (eval $ac_try) 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; }; then
16618   ac_cv_func_setpgrp_void=no
16619 else
16620   echo "$as_me: program exited with status $ac_status" >&5
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624 ( exit $ac_status )
16625 ac_cv_func_setpgrp_void=yes
16626 fi
16627 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16628 fi
16629 fi
16630 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16631 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16632 if test $ac_cv_func_setpgrp_void = yes; then
16633
16634 cat >>confdefs.h <<\_ACEOF
16635 #define SETPGRP_VOID 1
16636 _ACEOF
16637
16638 fi
16639                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16640 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16641 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16642   echo $ECHO_N "(cached) $ECHO_C" >&6
16643 else
16644   # Some versions of Solaris, SCO, and the GNU C Library
16645    # have a broken or incompatible fnmatch.
16646    # So we run a test program.  If we are cross-compiling, take no chance.
16647    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16648    if test "$cross_compiling" = yes; then
16649   ac_cv_func_fnmatch_works=cross
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 #line $LINENO "configure"
16653 /* confdefs.h.  */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h.  */
16658 #include <fnmatch.h>
16659 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16660 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16661
16662 int
16663 main ()
16664 {
16665 exit
16666            (!(y ("a*", "abc", 0)
16667               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16668               && y ("a\\\\bc", "abc", 0)
16669               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16670               && y ("*x", ".x", 0)
16671               && n ("*x", ".x", FNM_PERIOD)
16672               && 1));
16673   ;
16674   return 0;
16675 }
16676 _ACEOF
16677 rm -f conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679   (eval $ac_link) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684   (eval $ac_try) 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); }; }; then
16688   ac_cv_func_fnmatch_works=yes
16689 else
16690   echo "$as_me: program exited with status $ac_status" >&5
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16693
16694 ( exit $ac_status )
16695 ac_cv_func_fnmatch_works=no
16696 fi
16697 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16698 fi
16699 fi
16700 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16701 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16702 if test $ac_cv_func_fnmatch_works = yes; then
16703
16704 cat >>confdefs.h <<\_ACEOF
16705 #define HAVE_FNMATCH 1
16706 _ACEOF
16707
16708 fi
16709
16710
16711
16712
16713
16714 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16715 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16716 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16717   echo $ECHO_N "(cached) $ECHO_C" >&6
16718 else
16719   ac_check_lib_save_LIBS=$LIBS
16720 LIBS="-lxpg4  $LIBS"
16721 cat >conftest.$ac_ext <<_ACEOF
16722 #line $LINENO "configure"
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728
16729 /* Override any gcc2 internal prototype to avoid an error.  */
16730 #ifdef __cplusplus
16731 extern "C"
16732 #endif
16733 /* We use char because int might match the return type of a gcc2
16734    builtin and then its argument prototype would still apply.  */
16735 char setlocale ();
16736 int
16737 main ()
16738 {
16739 setlocale ();
16740   ;
16741   return 0;
16742 }
16743 _ACEOF
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16746   (eval $ac_link) 2>&5
16747   ac_status=$?
16748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749   (exit $ac_status); } &&
16750          { ac_try='test -s conftest$ac_exeext'
16751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752   (eval $ac_try) 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; }; then
16756   ac_cv_lib_xpg4_setlocale=yes
16757 else
16758   echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761 ac_cv_lib_xpg4_setlocale=no
16762 fi
16763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16764 LIBS=$ac_check_lib_save_LIBS
16765 fi
16766 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16767 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16768 if test $ac_cv_lib_xpg4_setlocale = yes; then
16769   LIBS="$LIBS -lxpg4"
16770 fi
16771
16772
16773
16774
16775 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16776 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16777 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16778   echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780   ac_check_lib_save_LIBS=$LIBS
16781 LIBS="-lsun  $LIBS"
16782 cat >conftest.$ac_ext <<_ACEOF
16783 #line $LINENO "configure"
16784 /* confdefs.h.  */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h.  */
16789
16790 /* Override any gcc2 internal prototype to avoid an error.  */
16791 #ifdef __cplusplus
16792 extern "C"
16793 #endif
16794 /* We use char because int might match the return type of a gcc2
16795    builtin and then its argument prototype would still apply.  */
16796 char getpwnam ();
16797 int
16798 main ()
16799 {
16800 getpwnam ();
16801   ;
16802   return 0;
16803 }
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16807   (eval $ac_link) 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } &&
16811          { ac_try='test -s conftest$ac_exeext'
16812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813   (eval $ac_try) 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); }; }; then
16817   ac_cv_lib_sun_getpwnam=yes
16818 else
16819   echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822 ac_cv_lib_sun_getpwnam=no
16823 fi
16824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_check_lib_save_LIBS
16826 fi
16827 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16828 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16829 if test $ac_cv_lib_sun_getpwnam = yes; then
16830   cat >>confdefs.h <<_ACEOF
16831 #define HAVE_LIBSUN 1
16832 _ACEOF
16833
16834   LIBS="-lsun $LIBS"
16835
16836 fi
16837
16838
16839
16840 for ac_header in zlib.h
16841 do
16842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844   echo "$as_me:$LINENO: checking for $ac_header" >&5
16845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 fi
16849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16851 else
16852   # Is the header compilable?
16853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16855 cat >conftest.$ac_ext <<_ACEOF
16856 #line $LINENO "configure"
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862 $ac_includes_default
16863 #include <$ac_header>
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867   (eval $ac_compile) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } &&
16871          { ac_try='test -s conftest.$ac_objext'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; }; then
16877   ac_header_compiler=yes
16878 else
16879   echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16881
16882 ac_header_compiler=no
16883 fi
16884 rm -f conftest.$ac_objext conftest.$ac_ext
16885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16886 echo "${ECHO_T}$ac_header_compiler" >&6
16887
16888 # Is the header present?
16889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16892 #line $LINENO "configure"
16893 /* confdefs.h.  */
16894 _ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h.  */
16898 #include <$ac_header>
16899 _ACEOF
16900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } >/dev/null; then
16908   if test -s conftest.err; then
16909     ac_cpp_err=$ac_c_preproc_warn_flag
16910   else
16911     ac_cpp_err=
16912   fi
16913 else
16914   ac_cpp_err=yes
16915 fi
16916 if test -z "$ac_cpp_err"; then
16917   ac_header_preproc=yes
16918 else
16919   echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922   ac_header_preproc=no
16923 fi
16924 rm -f conftest.err conftest.$ac_ext
16925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16926 echo "${ECHO_T}$ac_header_preproc" >&6
16927
16928 # So?  What about this header?
16929 case $ac_header_compiler:$ac_header_preproc in
16930   yes:no )
16931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16935     (
16936       cat <<\_ASBOX
16937 ## ------------------------------------ ##
16938 ## Report this to bug-autoconf@gnu.org. ##
16939 ## ------------------------------------ ##
16940 _ASBOX
16941     ) |
16942       sed "s/^/$as_me: WARNING:     /" >&2
16943     ;;
16944   no:yes )
16945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16947     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16951     (
16952       cat <<\_ASBOX
16953 ## ------------------------------------ ##
16954 ## Report this to bug-autoconf@gnu.org. ##
16955 ## ------------------------------------ ##
16956 _ASBOX
16957     ) |
16958       sed "s/^/$as_me: WARNING:     /" >&2
16959     ;;
16960 esac
16961 echo "$as_me:$LINENO: checking for $ac_header" >&5
16962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16964   echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966   eval "$as_ac_Header=$ac_header_preproc"
16967 fi
16968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16970
16971 fi
16972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16973   cat >>confdefs.h <<_ACEOF
16974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16975 _ACEOF
16976
16977 fi
16978
16979 done
16980
16981 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16982 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16983 if test "${ac_cv_lib_z_deflate+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   ac_check_lib_save_LIBS=$LIBS
16987 LIBS="-lz  $LIBS"
16988 cat >conftest.$ac_ext <<_ACEOF
16989 #line $LINENO "configure"
16990 /* confdefs.h.  */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h.  */
16995
16996 /* Override any gcc2 internal prototype to avoid an error.  */
16997 #ifdef __cplusplus
16998 extern "C"
16999 #endif
17000 /* We use char because int might match the return type of a gcc2
17001    builtin and then its argument prototype would still apply.  */
17002 char deflate ();
17003 int
17004 main ()
17005 {
17006 deflate ();
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013   (eval $ac_link) 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -s conftest$ac_exeext'
17018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019   (eval $ac_try) 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; }; then
17023   ac_cv_lib_z_deflate=yes
17024 else
17025   echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 ac_cv_lib_z_deflate=no
17029 fi
17030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17031 LIBS=$ac_check_lib_save_LIBS
17032 fi
17033 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17034 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17035 if test $ac_cv_lib_z_deflate = yes; then
17036   FDLIBS="-lz"
17037 fi
17038
17039 have_zlib=no
17040 if test x$FDLIBS = x-lz; then
17041   cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_LIBZ 1
17043 _ACEOF
17044
17045   have_zlib=yes
17046 fi
17047
17048 PTHREAD_LIB=""
17049 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17050 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17051 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-lpthread  $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17057 #line $LINENO "configure"
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063
17064 /* Override any gcc2 internal prototype to avoid an error.  */
17065 #ifdef __cplusplus
17066 extern "C"
17067 #endif
17068 /* We use char because int might match the return type of a gcc2
17069    builtin and then its argument prototype would still apply.  */
17070 char pthread_create ();
17071 int
17072 main ()
17073 {
17074 pthread_create ();
17075   ;
17076   return 0;
17077 }
17078 _ACEOF
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17081   (eval $ac_link) 2>&5
17082   ac_status=$?
17083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } &&
17085          { ac_try='test -s conftest$ac_exeext'
17086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087   (eval $ac_try) 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; }; then
17091   ac_cv_lib_pthread_pthread_create=yes
17092 else
17093   echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17095
17096 ac_cv_lib_pthread_pthread_create=no
17097 fi
17098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17100 fi
17101 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17102 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17103 if test $ac_cv_lib_pthread_pthread_create = yes; then
17104   PTHREAD_LIB="-lpthread"
17105 else
17106   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17107 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17108 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17109   echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111   ac_check_lib_save_LIBS=$LIBS
17112 LIBS="-lpthreads  $LIBS"
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line $LINENO "configure"
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120
17121 /* Override any gcc2 internal prototype to avoid an error.  */
17122 #ifdef __cplusplus
17123 extern "C"
17124 #endif
17125 /* We use char because int might match the return type of a gcc2
17126    builtin and then its argument prototype would still apply.  */
17127 char pthread_create ();
17128 int
17129 main ()
17130 {
17131 pthread_create ();
17132   ;
17133   return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138   (eval $ac_link) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); } &&
17142          { ac_try='test -s conftest$ac_exeext'
17143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144   (eval $ac_try) 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; }; then
17148   ac_cv_lib_pthreads_pthread_create=yes
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 ac_cv_lib_pthreads_pthread_create=no
17154 fi
17155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17157 fi
17158 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17159 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17160 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17161   PTHREAD_LIB="-lpthreads"
17162 else
17163   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17164 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17165 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-lc_r  $LIBS"
17170 cat >conftest.$ac_ext <<_ACEOF
17171 #line $LINENO "configure"
17172 /* confdefs.h.  */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h.  */
17177
17178 /* Override any gcc2 internal prototype to avoid an error.  */
17179 #ifdef __cplusplus
17180 extern "C"
17181 #endif
17182 /* We use char because int might match the return type of a gcc2
17183    builtin and then its argument prototype would still apply.  */
17184 char pthread_create ();
17185 int
17186 main ()
17187 {
17188 pthread_create ();
17189   ;
17190   return 0;
17191 }
17192 _ACEOF
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17195   (eval $ac_link) 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); } &&
17199          { ac_try='test -s conftest$ac_exeext'
17200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201   (eval $ac_try) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; }; then
17205   ac_cv_lib_c_r_pthread_create=yes
17206 else
17207   echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210 ac_cv_lib_c_r_pthread_create=no
17211 fi
17212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17214 fi
17215 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17216 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17217 if test $ac_cv_lib_c_r_pthread_create = yes; then
17218   PTHREAD_LIB="-lc_r"
17219 else
17220   echo "$as_me:$LINENO: checking for pthread_create" >&5
17221 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17222 if test "${ac_cv_func_pthread_create+set}" = set; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   cat >conftest.$ac_ext <<_ACEOF
17226 #line $LINENO "configure"
17227 /* confdefs.h.  */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h.  */
17232 /* System header to define __stub macros and hopefully few prototypes,
17233     which can conflict with char pthread_create (); below.
17234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17235     <limits.h> exists even on freestanding compilers.  */
17236 #ifdef __STDC__
17237 # include <limits.h>
17238 #else
17239 # include <assert.h>
17240 #endif
17241 /* Override any gcc2 internal prototype to avoid an error.  */
17242 #ifdef __cplusplus
17243 extern "C"
17244 {
17245 #endif
17246 /* We use char because int might match the return type of a gcc2
17247    builtin and then its argument prototype would still apply.  */
17248 char pthread_create ();
17249 /* The GNU C library defines this for functions which it implements
17250     to always fail with ENOSYS.  Some functions are actually named
17251     something starting with __ and the normal name is an alias.  */
17252 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17253 choke me
17254 #else
17255 char (*f) () = pthread_create;
17256 #endif
17257 #ifdef __cplusplus
17258 }
17259 #endif
17260
17261 int
17262 main ()
17263 {
17264 return f != pthread_create;
17265   ;
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271   (eval $ac_link) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277   (eval $ac_try) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; }; then
17281   ac_cv_func_pthread_create=yes
17282 else
17283   echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286 ac_cv_func_pthread_create=no
17287 fi
17288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17289 fi
17290 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17291 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17292
17293
17294 fi
17295
17296
17297 fi
17298
17299
17300 fi
17301
17302
17303
17304 cat >>confdefs.h <<\_ACEOF
17305 #define FDLIBS 1
17306 _ACEOF
17307
17308
17309
17310 CFLAGS=${CFLAGS--O}
17311 LDFLAGS=${LDFLAGS--O}
17312 DB_LIBS="${SQL_LFLAGS}"
17313
17314 CPPFLAGS="$CPPFLAGS"
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329 OBJLIST=
17330
17331
17332 lld="lld"
17333 llu="llu"
17334
17335 WCFLAGS=
17336 WLDFLAGS=
17337
17338 #
17339 # Finally we set appropriate distribution specific
17340 #  variables and defaults
17341 #
17342 # PFILES are platform specific files
17343 PFILES="platforms/Makefile"
17344 PSCMD="ps -e"
17345 WIN32=
17346 hostname=`uname -n`
17347 case "$DISTNAME" in
17348 aix)
17349         DISTVER=`uname -r`
17350         PSCMD="ps -e -o pid,comm"
17351         PFILES="${PFILES} \
17352            platforms/aix/Makefile"
17353         TAPEDRIVE="/dev/rmt0.1"
17354   ;;
17355 alpha)
17356         DISTVER=`uname -r`
17357         PTHREAD_LIB="-lpthread -lexc"
17358         if test "${CC}" = "gcc" ; then
17359            lld="lld"
17360            llu="llu"
17361         else
17362            lld="ld"
17363            llu="lu"
17364         fi
17365         TAPEDRIVE="/dev/nrmt0"
17366   ;;
17367 bsdi)
17368         DISTVER=`uname -a |awk '{print $3}'`
17369         TAPEDRIVE="/dev/nrmt0"
17370         PTHREAD_LIB="-pthread"
17371         CFLAGS="${CFLAGS} -pthread"
17372         PSCMD="ps -x -o pid,command"
17373         lld="qd"
17374         llu="qu"
17375         PFILES="${PFILES} \
17376             platforms/bsdi/Makefile \
17377             platforms/bsdi/bacula-fd \
17378             platforms/bsdi/bacula-sd \
17379             platforms/bsdi/bacula-dir"
17380         hostname=`hostname -s`
17381         largefile_support="yes"
17382   ;;
17383 cygwin)
17384         DISTVER=`uname -a |awk '{print $3}'`
17385         TAPEDRIVE="/dev/nrst0"
17386         WIN32=win32
17387         WCFLAGS="-mwindows"
17388         WLDFLAGS="-mwindows"
17389   ;;
17390 darwin)
17391         DISTVER=`uname -r`
17392         TAPEDRIVE="/dev/nst0"
17393         PSCMD="ps -e -o pid,command"
17394         hostname=`hostname -s`
17395         PFILES="${PFILES} \
17396            platforms/darwin/Makefile"
17397   ;;
17398 debian)
17399         DISTVER=`cat /etc/debian_version`
17400         TAPEDRIVE="/dev/nrst0"
17401         PSCMD="ps -e -o pid,command"
17402         hostname=`hostname -s`
17403   ;;
17404 freebsd)
17405         DISTVER=`uname -a |awk '{print $3}'`
17406         VER=`echo $DISTVER | cut -c 1`
17407         if test x$VER = x4 ; then
17408            PTHREAD_LIB="-pthread"
17409            CFLAGS="${CFLAGS} -pthread"
17410         fi
17411         lld="qd"
17412         llu="qu"
17413         TAPEDRIVE="/dev/nrsa0"
17414         PSCMD="ps -x -o pid,command"
17415         PFILES="${PFILES} \
17416             platforms/freebsd/Makefile \
17417             platforms/freebsd/bacula-fd \
17418             platforms/freebsd/bacula-sd \
17419             platforms/freebsd/bacula-dir"
17420         hostname=`hostname -s`
17421         largefile_support="yes"
17422   ;;
17423 hpux)
17424         DISTVER=`uname -r`
17425         TAPEDRIVE="/dev/rmt/0hnb"
17426   ;;
17427 irix)
17428         DISTVER=`uname -r`
17429         TAPEDRIVE="/dev/rmt/0cbn"
17430         PSCMD="ps -e -o pid,comm"
17431         PFILES="${PFILES} \
17432             platforms/irix/Makefile \
17433             platforms/irix/bacula-fd \
17434             platforms/irix/bacula-sd \
17435             platforms/irix/bacula-dir"
17436   ;;
17437 netbsd)
17438         DISTVER=`uname -a |awk '{print $3}'`
17439         lld="qd"
17440         llu="qu"
17441         TAPEDRIVE="/dev/nrst0"
17442         PSCMD="ps -a -o pid,command"
17443         PTHREAD_LIB="-pthread"
17444         CFLAGS="${CFLAGS} -pthread"
17445   ;;
17446 openbsd)
17447         DISTVER=`uname -a |awk '{print $3}'`
17448         lld="qd"
17449         llu="qu"
17450         TAPEDRIVE="/dev/nrst0"
17451         PSCMD="ps -a -o pid,command"
17452         PTHREAD_LIB="-pthread"
17453         CFLAGS="${CFLAGS} -pthread"
17454         PFILES="${PFILES} \
17455             platforms/openbsd/Makefile \
17456             platforms/openbsd/bacula-fd \
17457             platforms/openbsd/bacula-sd \
17458             platforms/openbsd/bacula-dir"
17459   ;;
17460 redhat)
17461         DISTVER=`cat /etc/redhat-release | grep release |\
17462            cut -f 5 -d ' '`
17463         TAPEDRIVE="/dev/nst0"
17464         PSCMD="ps -e -o pid,command"
17465         PFILES="${PFILES} \
17466             platforms/redhat/Makefile \
17467             platforms/redhat/bacula-fd \
17468             platforms/redhat/bacula-sd \
17469             platforms/redhat/bacula-dir \
17470             platforms/redhat/bacula.spec \
17471             "
17472         hostname=`hostname -s`
17473   ;;
17474 mandrake)
17475         DISTVER=`cat /etc/mandrake-release | grep release |\
17476            cut -f 5 -d ' '`
17477         TAPEDRIVE="/dev/nst0"
17478         PSCMD="ps -e -o pid,command"
17479         PFILES="${PFILES} \
17480             platforms/mandrake/Makefile \
17481             platforms/mandrake/bacula-fd \
17482             platforms/mandrake/bacula-sd \
17483             platforms/mandrake/bacula-dir \
17484             platforms/mandrake/bacula.spec \
17485             "
17486         hostname=`hostname -s`
17487   ;;
17488 gentoo)
17489         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17490         TAPEDRIVE="/dev/nst0"
17491         PSCMD="ps -e -o pid,command"
17492         PFILES="${PFILES} \
17493             platforms/gentoo/Makefile \
17494             platforms/gentoo/bacula-fd \
17495             platforms/gentoo/bacula-sd \
17496             platforms/gentoo/bacula-dir"
17497         hostname=`hostname -s`
17498   ;;
17499
17500 slackware)
17501         DISTVER=`cat /etc/slackware-version`
17502         TAPEDRIVE="/dev/nst0"
17503         PSCMD="ps -e -o pid,command"
17504         hostname=`hostname -s`
17505   ;;
17506 solaris)
17507         DISTVER=`uname -r`
17508         TAPEDRIVE="/dev/rmt/0cbn"
17509         PSCMD="ps -e -o pid,comm"
17510         PFILES="${PFILES} \
17511             platforms/solaris/Makefile \
17512             platforms/solaris/bacula-fd \
17513             platforms/solaris/bacula-sd \
17514             platforms/solaris/bacula-dir"
17515         if test x$DISTVER = x5.6 ; then
17516             cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_OLD_SOCKOPT 1
17518 _ACEOF
17519
17520         fi
17521   ;;
17522 suse)
17523         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17524             cut -f 3 -d ' '`
17525         TAPEDRIVE="/dev/nst0"
17526         PSCMD="ps -e -o pid,command"
17527         hostname=`hostname -s`
17528   ;;
17529 suse5)
17530         DISTNAME=suse
17531         DISTVER=5.x
17532         TAPEDRIVE="/dev/nst0"
17533         PSCMD="ps -e -o pid,command"
17534         hostname=`hostname -s`
17535   ;;
17536 unknown)
17537         DISTVER=unknown
17538         TAPEDRIVE="/dev/nst0"
17539   ;;
17540 *)
17541   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17542   ;;
17543 esac
17544
17545
17546
17547 LIBS="$PTHREAD_LIB $LIBS"
17548
17549 cat >>confdefs.h <<_ACEOF
17550 #define lld "$lld"
17551 _ACEOF
17552
17553 cat >>confdefs.h <<_ACEOF
17554 #define llu "$llu"
17555 _ACEOF
17556
17557
17558
17559
17560
17561
17562
17563 MCOMMON=./autoconf/Make.common
17564
17565
17566 if test "x${subsysdir}" = "x${sbindir}" ; then
17567    echo " "
17568    echo " "
17569    echo "You have set both --sbindir and --with-subsys-dir"
17570    echo "  equal to: ${subsysdir} "
17571    echo "This is not permitted. Please reconfigure."
17572    echo " "
17573    echo "Aborting configuration ..."
17574    echo " "
17575    echo " "
17576    exit 1
17577 fi
17578
17579                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         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/bconsole 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/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-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"
17580           ac_config_commands="$ac_config_commands default"
17581 cat >confcache <<\_ACEOF
17582 # This file is a shell script that caches the results of configure
17583 # tests run on this system so they can be shared between configure
17584 # scripts and configure runs, see configure's option --config-cache.
17585 # It is not useful on other systems.  If it contains results you don't
17586 # want to keep, you may remove or edit it.
17587 #
17588 # config.status only pays attention to the cache file if you give it
17589 # the --recheck option to rerun configure.
17590 #
17591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17593 # following values.
17594
17595 _ACEOF
17596
17597 # The following way of writing the cache mishandles newlines in values,
17598 # but we know of no workaround that is simple, portable, and efficient.
17599 # So, don't put newlines in cache variables' values.
17600 # Ultrix sh set writes to stderr and can't be redirected directly,
17601 # and sets the high bit in the cache file unless we assign to the vars.
17602 {
17603   (set) 2>&1 |
17604     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17605     *ac_space=\ *)
17606       # `set' does not quote correctly, so add quotes (double-quote
17607       # substitution turns \\\\ into \\, and sed turns \\ into \).
17608       sed -n \
17609         "s/'/'\\\\''/g;
17610           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17611       ;;
17612     *)
17613       # `set' quotes correctly as required by POSIX, so do not add quotes.
17614       sed -n \
17615         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17616       ;;
17617     esac;
17618 } |
17619   sed '
17620      t clear
17621      : clear
17622      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17623      t end
17624      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17625      : end' >>confcache
17626 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17627   if test -w $cache_file; then
17628     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17629     cat confcache >$cache_file
17630   else
17631     echo "not updating unwritable cache $cache_file"
17632   fi
17633 fi
17634 rm -f confcache
17635
17636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17637 # Let make expand exec_prefix.
17638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17639
17640 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17641 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17642 # trailing colons and then remove the whole line if VPATH becomes empty
17643 # (actually we leave an empty line to preserve line numbers).
17644 if test "x$srcdir" = x.; then
17645   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17646 s/:*\$(srcdir):*/:/;
17647 s/:*\${srcdir}:*/:/;
17648 s/:*@srcdir@:*/:/;
17649 s/^\([^=]*=[    ]*\):*/\1/;
17650 s/:*$//;
17651 s/^[^=]*=[      ]*$//;
17652 }'
17653 fi
17654
17655 DEFS=-DHAVE_CONFIG_H
17656
17657 ac_libobjs=
17658 ac_ltlibobjs=
17659 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17660   # 1. Remove the extension, and $U if already installed.
17661   ac_i=`echo "$ac_i" |
17662          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17663   # 2. Add them.
17664   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17665   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17666 done
17667 LIBOBJS=$ac_libobjs
17668
17669 LTLIBOBJS=$ac_ltlibobjs
17670
17671
17672
17673 : ${CONFIG_STATUS=./config.status}
17674 ac_clean_files_save=$ac_clean_files
17675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17676 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17677 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17678 cat >$CONFIG_STATUS <<_ACEOF
17679 #! $SHELL
17680 # Generated by $as_me.
17681 # Run this file to recreate the current configuration.
17682 # Compiler output produced by configure, useful for debugging
17683 # configure, is in config.log if it exists.
17684
17685 debug=false
17686 ac_cs_recheck=false
17687 ac_cs_silent=false
17688 SHELL=\${CONFIG_SHELL-$SHELL}
17689 _ACEOF
17690
17691 cat >>$CONFIG_STATUS <<\_ACEOF
17692 ## --------------------- ##
17693 ## M4sh Initialization.  ##
17694 ## --------------------- ##
17695
17696 # Be Bourne compatible
17697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17698   emulate sh
17699   NULLCMD=:
17700   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17701   # is contrary to our usage.  Disable this feature.
17702   alias -g '${1+"$@"}'='"$@"'
17703 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17704   set -o posix
17705 fi
17706
17707 # Support unset when possible.
17708 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17709   as_unset=unset
17710 else
17711   as_unset=false
17712 fi
17713
17714
17715 # Work around bugs in pre-3.0 UWIN ksh.
17716 $as_unset ENV MAIL MAILPATH
17717 PS1='$ '
17718 PS2='> '
17719 PS4='+ '
17720
17721 # NLS nuisances.
17722 for as_var in \
17723   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17724   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17725   LC_TELEPHONE LC_TIME
17726 do
17727   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17728     eval $as_var=C; export $as_var
17729   else
17730     $as_unset $as_var
17731   fi
17732 done
17733
17734 # Required to use basename.
17735 if expr a : '\(a\)' >/dev/null 2>&1; then
17736   as_expr=expr
17737 else
17738   as_expr=false
17739 fi
17740
17741 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17742   as_basename=basename
17743 else
17744   as_basename=false
17745 fi
17746
17747
17748 # Name of the executable.
17749 as_me=`$as_basename "$0" ||
17750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17751          X"$0" : 'X\(//\)$' \| \
17752          X"$0" : 'X\(/\)$' \| \
17753          .     : '\(.\)' 2>/dev/null ||
17754 echo X/"$0" |
17755     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17756           /^X\/\(\/\/\)$/{ s//\1/; q; }
17757           /^X\/\(\/\).*/{ s//\1/; q; }
17758           s/.*/./; q'`
17759
17760
17761 # PATH needs CR, and LINENO needs CR and PATH.
17762 # Avoid depending upon Character Ranges.
17763 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17764 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17765 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17766 as_cr_digits='0123456789'
17767 as_cr_alnum=$as_cr_Letters$as_cr_digits
17768
17769 # The user is always right.
17770 if test "${PATH_SEPARATOR+set}" != set; then
17771   echo "#! /bin/sh" >conf$$.sh
17772   echo  "exit 0"   >>conf$$.sh
17773   chmod +x conf$$.sh
17774   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17775     PATH_SEPARATOR=';'
17776   else
17777     PATH_SEPARATOR=:
17778   fi
17779   rm -f conf$$.sh
17780 fi
17781
17782
17783   as_lineno_1=$LINENO
17784   as_lineno_2=$LINENO
17785   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17786   test "x$as_lineno_1" != "x$as_lineno_2" &&
17787   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17788   # Find who we are.  Look in the path if we contain no path at all
17789   # relative or not.
17790   case $0 in
17791     *[\\/]* ) as_myself=$0 ;;
17792     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17793 for as_dir in $PATH
17794 do
17795   IFS=$as_save_IFS
17796   test -z "$as_dir" && as_dir=.
17797   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17798 done
17799
17800        ;;
17801   esac
17802   # We did not find ourselves, most probably we were run as `sh COMMAND'
17803   # in which case we are not to be found in the path.
17804   if test "x$as_myself" = x; then
17805     as_myself=$0
17806   fi
17807   if test ! -f "$as_myself"; then
17808     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17809 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17810    { (exit 1); exit 1; }; }
17811   fi
17812   case $CONFIG_SHELL in
17813   '')
17814     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17815 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17816 do
17817   IFS=$as_save_IFS
17818   test -z "$as_dir" && as_dir=.
17819   for as_base in sh bash ksh sh5; do
17820          case $as_dir in
17821          /*)
17822            if ("$as_dir/$as_base" -c '
17823   as_lineno_1=$LINENO
17824   as_lineno_2=$LINENO
17825   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17826   test "x$as_lineno_1" != "x$as_lineno_2" &&
17827   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17828              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17829              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17830              CONFIG_SHELL=$as_dir/$as_base
17831              export CONFIG_SHELL
17832              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17833            fi;;
17834          esac
17835        done
17836 done
17837 ;;
17838   esac
17839
17840   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17841   # uniformly replaced by the line number.  The first 'sed' inserts a
17842   # line-number line before each line; the second 'sed' does the real
17843   # work.  The second script uses 'N' to pair each line-number line
17844   # with the numbered line, and appends trailing '-' during
17845   # substitution so that $LINENO is not a special case at line end.
17846   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17847   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17848   sed '=' <$as_myself |
17849     sed '
17850       N
17851       s,$,-,
17852       : loop
17853       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17854       t loop
17855       s,-$,,
17856       s,^['$as_cr_digits']*\n,,
17857     ' >$as_me.lineno &&
17858   chmod +x $as_me.lineno ||
17859     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17860 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17861    { (exit 1); exit 1; }; }
17862
17863   # Don't try to exec as it changes $[0], causing all sort of problems
17864   # (the dirname of $[0] is not the place where we might find the
17865   # original and so on.  Autoconf is especially sensible to this).
17866   . ./$as_me.lineno
17867   # Exit status is that of the last command.
17868   exit
17869 }
17870
17871
17872 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17873   *c*,-n*) ECHO_N= ECHO_C='
17874 ' ECHO_T='      ' ;;
17875   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17876   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17877 esac
17878
17879 if expr a : '\(a\)' >/dev/null 2>&1; then
17880   as_expr=expr
17881 else
17882   as_expr=false
17883 fi
17884
17885 rm -f conf$$ conf$$.exe conf$$.file
17886 echo >conf$$.file
17887 if ln -s conf$$.file conf$$ 2>/dev/null; then
17888   # We could just check for DJGPP; but this test a) works b) is more generic
17889   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17890   if test -f conf$$.exe; then
17891     # Don't use ln at all; we don't have any links
17892     as_ln_s='cp -p'
17893   else
17894     as_ln_s='ln -s'
17895   fi
17896 elif ln conf$$.file conf$$ 2>/dev/null; then
17897   as_ln_s=ln
17898 else
17899   as_ln_s='cp -p'
17900 fi
17901 rm -f conf$$ conf$$.exe conf$$.file
17902
17903 if mkdir -p . 2>/dev/null; then
17904   as_mkdir_p=:
17905 else
17906   as_mkdir_p=false
17907 fi
17908
17909 as_executable_p="test -f"
17910
17911 # Sed expression to map a string onto a valid CPP name.
17912 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17913
17914 # Sed expression to map a string onto a valid variable name.
17915 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17916
17917
17918 # IFS
17919 # We need space, tab and new line, in precisely that order.
17920 as_nl='
17921 '
17922 IFS="   $as_nl"
17923
17924 # CDPATH.
17925 $as_unset CDPATH
17926
17927 exec 6>&1
17928
17929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17930 # report actual input values of CONFIG_FILES etc. instead of their
17931 # values after options handling.  Logging --version etc. is OK.
17932 exec 5>>config.log
17933 {
17934   echo
17935   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17936 ## Running $as_me. ##
17937 _ASBOX
17938 } >&5
17939 cat >&5 <<_CSEOF
17940
17941 This file was extended by $as_me, which was
17942 generated by GNU Autoconf 2.57.  Invocation command line was
17943
17944   CONFIG_FILES    = $CONFIG_FILES
17945   CONFIG_HEADERS  = $CONFIG_HEADERS
17946   CONFIG_LINKS    = $CONFIG_LINKS
17947   CONFIG_COMMANDS = $CONFIG_COMMANDS
17948   $ $0 $@
17949
17950 _CSEOF
17951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17952 echo >&5
17953 _ACEOF
17954
17955 # Files that config.status was made for.
17956 if test -n "$ac_config_files"; then
17957   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17958 fi
17959
17960 if test -n "$ac_config_headers"; then
17961   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17962 fi
17963
17964 if test -n "$ac_config_links"; then
17965   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17966 fi
17967
17968 if test -n "$ac_config_commands"; then
17969   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17970 fi
17971
17972 cat >>$CONFIG_STATUS <<\_ACEOF
17973
17974 ac_cs_usage="\
17975 \`$as_me' instantiates files from templates according to the
17976 current configuration.
17977
17978 Usage: $0 [OPTIONS] [FILE]...
17979
17980   -h, --help       print this help, then exit
17981   -V, --version    print version number, then exit
17982   -q, --quiet      do not print progress messages
17983   -d, --debug      don't remove temporary files
17984       --recheck    update $as_me by reconfiguring in the same conditions
17985   --file=FILE[:TEMPLATE]
17986                    instantiate the configuration file FILE
17987   --header=FILE[:TEMPLATE]
17988                    instantiate the configuration header FILE
17989
17990 Configuration files:
17991 $config_files
17992
17993 Configuration headers:
17994 $config_headers
17995
17996 Configuration commands:
17997 $config_commands
17998
17999 Report bugs to <bug-autoconf@gnu.org>."
18000 _ACEOF
18001
18002 cat >>$CONFIG_STATUS <<_ACEOF
18003 ac_cs_version="\\
18004 config.status
18005 configured by $0, generated by GNU Autoconf 2.57,
18006   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18007
18008 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18009 Free Software Foundation, Inc.
18010 This config.status script is free software; the Free Software Foundation
18011 gives unlimited permission to copy, distribute and modify it."
18012 srcdir=$srcdir
18013 INSTALL="$INSTALL"
18014 _ACEOF
18015
18016 cat >>$CONFIG_STATUS <<\_ACEOF
18017 # If no file are specified by the user, then we need to provide default
18018 # value.  By we need to know if files were specified by the user.
18019 ac_need_defaults=:
18020 while test $# != 0
18021 do
18022   case $1 in
18023   --*=*)
18024     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18025     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18026     ac_shift=:
18027     ;;
18028   -*)
18029     ac_option=$1
18030     ac_optarg=$2
18031     ac_shift=shift
18032     ;;
18033   *) # This is not an option, so the user has probably given explicit
18034      # arguments.
18035      ac_option=$1
18036      ac_need_defaults=false;;
18037   esac
18038
18039   case $ac_option in
18040   # Handling of the options.
18041 _ACEOF
18042 cat >>$CONFIG_STATUS <<\_ACEOF
18043   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18044     ac_cs_recheck=: ;;
18045   --version | --vers* | -V )
18046     echo "$ac_cs_version"; exit 0 ;;
18047   --he | --h)
18048     # Conflict between --help and --header
18049     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18050 Try \`$0 --help' for more information." >&5
18051 echo "$as_me: error: ambiguous option: $1
18052 Try \`$0 --help' for more information." >&2;}
18053    { (exit 1); exit 1; }; };;
18054   --help | --hel | -h )
18055     echo "$ac_cs_usage"; exit 0 ;;
18056   --debug | --d* | -d )
18057     debug=: ;;
18058   --file | --fil | --fi | --f )
18059     $ac_shift
18060     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18061     ac_need_defaults=false;;
18062   --header | --heade | --head | --hea )
18063     $ac_shift
18064     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18065     ac_need_defaults=false;;
18066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18067   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18068     ac_cs_silent=: ;;
18069
18070   # This is an error.
18071   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18072 Try \`$0 --help' for more information." >&5
18073 echo "$as_me: error: unrecognized option: $1
18074 Try \`$0 --help' for more information." >&2;}
18075    { (exit 1); exit 1; }; } ;;
18076
18077   *) ac_config_targets="$ac_config_targets $1" ;;
18078
18079   esac
18080   shift
18081 done
18082
18083 ac_configure_extra_args=
18084
18085 if $ac_cs_silent; then
18086   exec 6>/dev/null
18087   ac_configure_extra_args="$ac_configure_extra_args --silent"
18088 fi
18089
18090 _ACEOF
18091 cat >>$CONFIG_STATUS <<_ACEOF
18092 if \$ac_cs_recheck; then
18093   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18094   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18095 fi
18096
18097 _ACEOF
18098
18099
18100
18101
18102
18103 cat >>$CONFIG_STATUS <<\_ACEOF
18104 for ac_config_target in $ac_config_targets
18105 do
18106   case "$ac_config_target" in
18107   # Handling of arguments.
18108   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18109   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18110   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18111   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18112   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18113   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18114   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18115   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18116   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18117   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18118   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18119   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18120   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18121   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18122   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18123   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18124   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18125   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18126   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18127   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18128   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18129   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18130   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18131   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18132   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18133   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18134   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18135   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18136   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18137   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18138   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18139   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18140   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18141   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18142   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18143   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18144   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18145   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18146   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18147   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18148   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18149   "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
18150   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18151   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18152   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18153   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18154   "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18155   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18156   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18157   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18158   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18159   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18160   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18161   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18162   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18163   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18164   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18165   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18166   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18167   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18168   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18169   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18170   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18171 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18172    { (exit 1); exit 1; }; };;
18173   esac
18174 done
18175
18176 # If the user did not use the arguments to specify the items to instantiate,
18177 # then the envvar interface is used.  Set only those that are not.
18178 # We use the long form for the default assignment because of an extremely
18179 # bizarre bug on SunOS 4.1.3.
18180 if $ac_need_defaults; then
18181   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18182   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18183   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18184 fi
18185
18186 # Have a temporary directory for convenience.  Make it in the build tree
18187 # simply because there is no reason to put it here, and in addition,
18188 # creating and moving files from /tmp can sometimes cause problems.
18189 # Create a temporary directory, and hook for its removal unless debugging.
18190 $debug ||
18191 {
18192   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18193   trap '{ (exit 1); exit 1; }' 1 2 13 15
18194 }
18195
18196 # Create a (secure) tmp directory for tmp files.
18197
18198 {
18199   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18200   test -n "$tmp" && test -d "$tmp"
18201 }  ||
18202 {
18203   tmp=./confstat$$-$RANDOM
18204   (umask 077 && mkdir $tmp)
18205 } ||
18206 {
18207    echo "$me: cannot create a temporary directory in ." >&2
18208    { (exit 1); exit 1; }
18209 }
18210
18211 _ACEOF
18212
18213 cat >>$CONFIG_STATUS <<_ACEOF
18214
18215 #
18216 # CONFIG_FILES section.
18217 #
18218
18219 # No need to generate the scripts if there are no CONFIG_FILES.
18220 # This happens for instance when ./config.status config.h
18221 if test -n "\$CONFIG_FILES"; then
18222   # Protect against being on the right side of a sed subst in config.status.
18223   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18224    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18225 s,@SHELL@,$SHELL,;t t
18226 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18227 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18228 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18229 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18230 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18231 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18232 s,@exec_prefix@,$exec_prefix,;t t
18233 s,@prefix@,$prefix,;t t
18234 s,@program_transform_name@,$program_transform_name,;t t
18235 s,@bindir@,$bindir,;t t
18236 s,@sbindir@,$sbindir,;t t
18237 s,@libexecdir@,$libexecdir,;t t
18238 s,@datadir@,$datadir,;t t
18239 s,@sysconfdir@,$sysconfdir,;t t
18240 s,@sharedstatedir@,$sharedstatedir,;t t
18241 s,@localstatedir@,$localstatedir,;t t
18242 s,@libdir@,$libdir,;t t
18243 s,@includedir@,$includedir,;t t
18244 s,@oldincludedir@,$oldincludedir,;t t
18245 s,@infodir@,$infodir,;t t
18246 s,@mandir@,$mandir,;t t
18247 s,@build_alias@,$build_alias,;t t
18248 s,@host_alias@,$host_alias,;t t
18249 s,@target_alias@,$target_alias,;t t
18250 s,@DEFS@,$DEFS,;t t
18251 s,@ECHO_C@,$ECHO_C,;t t
18252 s,@ECHO_N@,$ECHO_N,;t t
18253 s,@ECHO_T@,$ECHO_T,;t t
18254 s,@LIBS@,$LIBS,;t t
18255 s,@BUILD_DIR@,$BUILD_DIR,;t t
18256 s,@TRUEPRG@,$TRUEPRG,;t t
18257 s,@FALSEPRG@,$FALSEPRG,;t t
18258 s,@build@,$build,;t t
18259 s,@build_cpu@,$build_cpu,;t t
18260 s,@build_vendor@,$build_vendor,;t t
18261 s,@build_os@,$build_os,;t t
18262 s,@host@,$host,;t t
18263 s,@host_cpu@,$host_cpu,;t t
18264 s,@host_vendor@,$host_vendor,;t t
18265 s,@host_os@,$host_os,;t t
18266 s,@VERSION@,$VERSION,;t t
18267 s,@DATE@,$DATE,;t t
18268 s,@LSMDATE@,$LSMDATE,;t t
18269 s,@CC@,$CC,;t t
18270 s,@CFLAGS@,$CFLAGS,;t t
18271 s,@LDFLAGS@,$LDFLAGS,;t t
18272 s,@CPPFLAGS@,$CPPFLAGS,;t t
18273 s,@ac_ct_CC@,$ac_ct_CC,;t t
18274 s,@EXEEXT@,$EXEEXT,;t t
18275 s,@OBJEXT@,$OBJEXT,;t t
18276 s,@CXX@,$CXX,;t t
18277 s,@CXXFLAGS@,$CXXFLAGS,;t t
18278 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18279 s,@CPP@,$CPP,;t t
18280 s,@EGREP@,$EGREP,;t t
18281 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18282 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18283 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18284 s,@RANLIB@,$RANLIB,;t t
18285 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18286 s,@MV@,$MV,;t t
18287 s,@RM@,$RM,;t t
18288 s,@CP@,$CP,;t t
18289 s,@SED@,$SED,;t t
18290 s,@AWK@,$AWK,;t t
18291 s,@ECHO@,$ECHO,;t t
18292 s,@CMP@,$CMP,;t t
18293 s,@TBL@,$TBL,;t t
18294 s,@AR@,$AR,;t t
18295 s,@OPENSSL@,$OPENSSL,;t t
18296 s,@MTX@,$MTX,;t t
18297 s,@PKGCONFIG@,$PKGCONFIG,;t t
18298 s,@ARFLAGS@,$ARFLAGS,;t t
18299 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18300 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18301 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18302 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18303 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18304 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18305 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18306 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18307 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18308 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18309 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18310 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18311 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18312 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18313 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18314 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18315 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18316 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18317 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18318 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18319 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18320 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18321 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18322 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18323 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18324 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18325 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18326 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18327 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18328 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18329 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18330 s,@MSGFMT@,$MSGFMT,;t t
18331 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18332 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18333 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18334 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18335 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18336 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18337 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18338 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18339 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18340 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18341 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18342 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18343 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18344 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18345 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18346 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18347 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18348 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18349 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18350 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18351 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18352 s,@GNOME_DIR@,$GNOME_DIR,;t t
18353 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18354 s,@STATIC_FD@,$STATIC_FD,;t t
18355 s,@STATIC_SD@,$STATIC_SD,;t t
18356 s,@STATIC_DIR@,$STATIC_DIR,;t t
18357 s,@STATIC_CONS@,$STATIC_CONS,;t t
18358 s,@ALL_DIRS@,$ALL_DIRS,;t t
18359 s,@CONS_INC@,$CONS_INC,;t t
18360 s,@CONS_LIBS@,$CONS_LIBS,;t t
18361 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18362 s,@READLINE_SRC@,$READLINE_SRC,;t t
18363 s,@working_dir@,$working_dir,;t t
18364 s,@scriptdir@,$scriptdir,;t t
18365 s,@dump_email@,$dump_email,;t t
18366 s,@job_email@,$job_email,;t t
18367 s,@smtp_host@,$smtp_host,;t t
18368 s,@piddir@,$piddir,;t t
18369 s,@subsysdir@,$subsysdir,;t t
18370 s,@baseport@,$baseport,;t t
18371 s,@dir_port@,$dir_port,;t t
18372 s,@fd_port@,$fd_port,;t t
18373 s,@sd_port@,$sd_port,;t t
18374 s,@dir_password@,$dir_password,;t t
18375 s,@fd_password@,$fd_password,;t t
18376 s,@sd_password@,$sd_password,;t t
18377 s,@dir_user@,$dir_user,;t t
18378 s,@dir_group@,$dir_group,;t t
18379 s,@sd_user@,$sd_user,;t t
18380 s,@sd_group@,$sd_group,;t t
18381 s,@fd_user@,$fd_user,;t t
18382 s,@fd_group@,$fd_group,;t t
18383 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18384 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18385 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18386 s,@cats@,$cats,;t t
18387 s,@DB_NAME@,$DB_NAME,;t t
18388 s,@GETCONF@,$GETCONF,;t t
18389 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18390 s,@X_CFLAGS@,$X_CFLAGS,;t t
18391 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18392 s,@X_LIBS@,$X_LIBS,;t t
18393 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18394 s,@LIBOBJS@,$LIBOBJS,;t t
18395 s,@ALLOCA@,$ALLOCA,;t t
18396 s,@FDLIBS@,$FDLIBS,;t t
18397 s,@DEBUG@,$DEBUG,;t t
18398 s,@DINCLUDE@,$DINCLUDE,;t t
18399 s,@DLIB@,$DLIB,;t t
18400 s,@DB_LIBS@,$DB_LIBS,;t t
18401 s,@WCFLAGS@,$WCFLAGS,;t t
18402 s,@WLDFLAGS@,$WLDFLAGS,;t t
18403 s,@OBJLIST@,$OBJLIST,;t t
18404 s,@hostname@,$hostname,;t t
18405 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18406 s,@PSCMD@,$PSCMD,;t t
18407 s,@WIN32@,$WIN32,;t t
18408 s,@DISTNAME@,$DISTNAME,;t t
18409 s,@DISTVER@,$DISTVER,;t t
18410 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18411 /@MCOMMON@/r $MCOMMON
18412 s,@MCOMMON@,,;t t
18413 CEOF
18414
18415 _ACEOF
18416
18417   cat >>$CONFIG_STATUS <<\_ACEOF
18418   # Split the substitutions into bite-sized pieces for seds with
18419   # small command number limits, like on Digital OSF/1 and HP-UX.
18420   ac_max_sed_lines=48
18421   ac_sed_frag=1 # Number of current file.
18422   ac_beg=1 # First line for current file.
18423   ac_end=$ac_max_sed_lines # Line after last line for current file.
18424   ac_more_lines=:
18425   ac_sed_cmds=
18426   while $ac_more_lines; do
18427     if test $ac_beg -gt 1; then
18428       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18429     else
18430       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18431     fi
18432     if test ! -s $tmp/subs.frag; then
18433       ac_more_lines=false
18434     else
18435       # The purpose of the label and of the branching condition is to
18436       # speed up the sed processing (if there are no `@' at all, there
18437       # is no need to browse any of the substitutions).
18438       # These are the two extra sed commands mentioned above.
18439       (echo ':t
18440   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18441       if test -z "$ac_sed_cmds"; then
18442         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18443       else
18444         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18445       fi
18446       ac_sed_frag=`expr $ac_sed_frag + 1`
18447       ac_beg=$ac_end
18448       ac_end=`expr $ac_end + $ac_max_sed_lines`
18449     fi
18450   done
18451   if test -z "$ac_sed_cmds"; then
18452     ac_sed_cmds=cat
18453   fi
18454 fi # test -n "$CONFIG_FILES"
18455
18456 _ACEOF
18457 cat >>$CONFIG_STATUS <<\_ACEOF
18458 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18459   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18460   case $ac_file in
18461   - | *:- | *:-:* ) # input from stdin
18462         cat >$tmp/stdin
18463         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18464         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18465   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18466         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18467   * )   ac_file_in=$ac_file.in ;;
18468   esac
18469
18470   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18471   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18472 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18473          X"$ac_file" : 'X\(//\)[^/]' \| \
18474          X"$ac_file" : 'X\(//\)$' \| \
18475          X"$ac_file" : 'X\(/\)' \| \
18476          .     : '\(.\)' 2>/dev/null ||
18477 echo X"$ac_file" |
18478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18479           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18480           /^X\(\/\/\)$/{ s//\1/; q; }
18481           /^X\(\/\).*/{ s//\1/; q; }
18482           s/.*/./; q'`
18483   { if $as_mkdir_p; then
18484     mkdir -p "$ac_dir"
18485   else
18486     as_dir="$ac_dir"
18487     as_dirs=
18488     while test ! -d "$as_dir"; do
18489       as_dirs="$as_dir $as_dirs"
18490       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18492          X"$as_dir" : 'X\(//\)[^/]' \| \
18493          X"$as_dir" : 'X\(//\)$' \| \
18494          X"$as_dir" : 'X\(/\)' \| \
18495          .     : '\(.\)' 2>/dev/null ||
18496 echo X"$as_dir" |
18497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18498           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18499           /^X\(\/\/\)$/{ s//\1/; q; }
18500           /^X\(\/\).*/{ s//\1/; q; }
18501           s/.*/./; q'`
18502     done
18503     test ! -n "$as_dirs" || mkdir $as_dirs
18504   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18505 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18506    { (exit 1); exit 1; }; }; }
18507
18508   ac_builddir=.
18509
18510 if test "$ac_dir" != .; then
18511   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18512   # A "../" for each directory in $ac_dir_suffix.
18513   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18514 else
18515   ac_dir_suffix= ac_top_builddir=
18516 fi
18517
18518 case $srcdir in
18519   .)  # No --srcdir option.  We are building in place.
18520     ac_srcdir=.
18521     if test -z "$ac_top_builddir"; then
18522        ac_top_srcdir=.
18523     else
18524        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18525     fi ;;
18526   [\\/]* | ?:[\\/]* )  # Absolute path.
18527     ac_srcdir=$srcdir$ac_dir_suffix;
18528     ac_top_srcdir=$srcdir ;;
18529   *) # Relative path.
18530     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18531     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18532 esac
18533 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18534 # absolute.
18535 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18536 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18537 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18538 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18539
18540
18541   case $INSTALL in
18542   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18543   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18544   esac
18545
18546   if test x"$ac_file" != x-; then
18547     { echo "$as_me:$LINENO: creating $ac_file" >&5
18548 echo "$as_me: creating $ac_file" >&6;}
18549     rm -f "$ac_file"
18550   fi
18551   # Let's still pretend it is `configure' which instantiates (i.e., don't
18552   # use $as_me), people would be surprised to read:
18553   #    /* config.h.  Generated by config.status.  */
18554   if test x"$ac_file" = x-; then
18555     configure_input=
18556   else
18557     configure_input="$ac_file.  "
18558   fi
18559   configure_input=$configure_input"Generated from `echo $ac_file_in |
18560                                      sed 's,.*/,,'` by configure."
18561
18562   # First look for the input files in the build tree, otherwise in the
18563   # src tree.
18564   ac_file_inputs=`IFS=:
18565     for f in $ac_file_in; do
18566       case $f in
18567       -) echo $tmp/stdin ;;
18568       [\\/$]*)
18569          # Absolute (can't be DOS-style, as IFS=:)
18570          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18571 echo "$as_me: error: cannot find input file: $f" >&2;}
18572    { (exit 1); exit 1; }; }
18573          echo $f;;
18574       *) # Relative
18575          if test -f "$f"; then
18576            # Build tree
18577            echo $f
18578          elif test -f "$srcdir/$f"; then
18579            # Source tree
18580            echo $srcdir/$f
18581          else
18582            # /dev/null tree
18583            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18584 echo "$as_me: error: cannot find input file: $f" >&2;}
18585    { (exit 1); exit 1; }; }
18586          fi;;
18587       esac
18588     done` || { (exit 1); exit 1; }
18589 _ACEOF
18590 cat >>$CONFIG_STATUS <<_ACEOF
18591   sed "$ac_vpsub
18592 $extrasub
18593 _ACEOF
18594 cat >>$CONFIG_STATUS <<\_ACEOF
18595 :t
18596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18597 s,@configure_input@,$configure_input,;t t
18598 s,@srcdir@,$ac_srcdir,;t t
18599 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18600 s,@top_srcdir@,$ac_top_srcdir,;t t
18601 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18602 s,@builddir@,$ac_builddir,;t t
18603 s,@abs_builddir@,$ac_abs_builddir,;t t
18604 s,@top_builddir@,$ac_top_builddir,;t t
18605 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18606 s,@INSTALL@,$ac_INSTALL,;t t
18607 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18608   rm -f $tmp/stdin
18609   if test x"$ac_file" != x-; then
18610     mv $tmp/out $ac_file
18611   else
18612     cat $tmp/out
18613     rm -f $tmp/out
18614   fi
18615
18616 done
18617 _ACEOF
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619
18620 #
18621 # CONFIG_HEADER section.
18622 #
18623
18624 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18625 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18626 #
18627 # ac_d sets the value in "#define NAME VALUE" lines.
18628 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18629 ac_dB='[        ].*$,\1#\2'
18630 ac_dC=' '
18631 ac_dD=',;t'
18632 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18633 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18634 ac_uB='$,\1#\2define\3'
18635 ac_uC=' '
18636 ac_uD=',;t'
18637
18638 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18639   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18640   case $ac_file in
18641   - | *:- | *:-:* ) # input from stdin
18642         cat >$tmp/stdin
18643         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18644         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18645   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18646         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18647   * )   ac_file_in=$ac_file.in ;;
18648   esac
18649
18650   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18651 echo "$as_me: creating $ac_file" >&6;}
18652
18653   # First look for the input files in the build tree, otherwise in the
18654   # src tree.
18655   ac_file_inputs=`IFS=:
18656     for f in $ac_file_in; do
18657       case $f in
18658       -) echo $tmp/stdin ;;
18659       [\\/$]*)
18660          # Absolute (can't be DOS-style, as IFS=:)
18661          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18662 echo "$as_me: error: cannot find input file: $f" >&2;}
18663    { (exit 1); exit 1; }; }
18664          echo $f;;
18665       *) # Relative
18666          if test -f "$f"; then
18667            # Build tree
18668            echo $f
18669          elif test -f "$srcdir/$f"; then
18670            # Source tree
18671            echo $srcdir/$f
18672          else
18673            # /dev/null tree
18674            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18675 echo "$as_me: error: cannot find input file: $f" >&2;}
18676    { (exit 1); exit 1; }; }
18677          fi;;
18678       esac
18679     done` || { (exit 1); exit 1; }
18680   # Remove the trailing spaces.
18681   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18682
18683 _ACEOF
18684
18685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18686 # `conftest.undefs', that substitutes the proper values into
18687 # config.h.in to produce config.h.  The first handles `#define'
18688 # templates, and the second `#undef' templates.
18689 # And first: Protect against being on the right side of a sed subst in
18690 # config.status.  Protect against being in an unquoted here document
18691 # in config.status.
18692 rm -f conftest.defines conftest.undefs
18693 # Using a here document instead of a string reduces the quoting nightmare.
18694 # Putting comments in sed scripts is not portable.
18695 #
18696 # `end' is used to avoid that the second main sed command (meant for
18697 # 0-ary CPP macros) applies to n-ary macro definitions.
18698 # See the Autoconf documentation for `clear'.
18699 cat >confdef2sed.sed <<\_ACEOF
18700 s/[\\&,]/\\&/g
18701 s,[\\$`],\\&,g
18702 t clear
18703 : clear
18704 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18705 t end
18706 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18707 : end
18708 _ACEOF
18709 # If some macros were called several times there might be several times
18710 # the same #defines, which is useless.  Nevertheless, we may not want to
18711 # sort them, since we want the *last* AC-DEFINE to be honored.
18712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18714 rm -f confdef2sed.sed
18715
18716 # This sed command replaces #undef with comments.  This is necessary, for
18717 # example, in the case of _POSIX_SOURCE, which is predefined and required
18718 # on some systems where configure will not decide to define it.
18719 cat >>conftest.undefs <<\_ACEOF
18720 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18721 _ACEOF
18722
18723 # Break up conftest.defines because some shells have a limit on the size
18724 # of here documents, and old seds have small limits too (100 cmds).
18725 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18726 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18727 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18728 echo '  :' >>$CONFIG_STATUS
18729 rm -f conftest.tail
18730 while grep . conftest.defines >/dev/null
18731 do
18732   # Write a limited-size here document to $tmp/defines.sed.
18733   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18734   # Speed up: don't consider the non `#define' lines.
18735   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18736   # Work around the forget-to-reset-the-flag bug.
18737   echo 't clr' >>$CONFIG_STATUS
18738   echo ': clr' >>$CONFIG_STATUS
18739   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18740   echo 'CEOF
18741   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18742   rm -f $tmp/in
18743   mv $tmp/out $tmp/in
18744 ' >>$CONFIG_STATUS
18745   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18746   rm -f conftest.defines
18747   mv conftest.tail conftest.defines
18748 done
18749 rm -f conftest.defines
18750 echo '  fi # grep' >>$CONFIG_STATUS
18751 echo >>$CONFIG_STATUS
18752
18753 # Break up conftest.undefs because some shells have a limit on the size
18754 # of here documents, and old seds have small limits too (100 cmds).
18755 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18756 rm -f conftest.tail
18757 while grep . conftest.undefs >/dev/null
18758 do
18759   # Write a limited-size here document to $tmp/undefs.sed.
18760   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18761   # Speed up: don't consider the non `#undef'
18762   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18763   # Work around the forget-to-reset-the-flag bug.
18764   echo 't clr' >>$CONFIG_STATUS
18765   echo ': clr' >>$CONFIG_STATUS
18766   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18767   echo 'CEOF
18768   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18769   rm -f $tmp/in
18770   mv $tmp/out $tmp/in
18771 ' >>$CONFIG_STATUS
18772   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18773   rm -f conftest.undefs
18774   mv conftest.tail conftest.undefs
18775 done
18776 rm -f conftest.undefs
18777
18778 cat >>$CONFIG_STATUS <<\_ACEOF
18779   # Let's still pretend it is `configure' which instantiates (i.e., don't
18780   # use $as_me), people would be surprised to read:
18781   #    /* config.h.  Generated by config.status.  */
18782   if test x"$ac_file" = x-; then
18783     echo "/* Generated by configure.  */" >$tmp/config.h
18784   else
18785     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18786   fi
18787   cat $tmp/in >>$tmp/config.h
18788   rm -f $tmp/in
18789   if test x"$ac_file" != x-; then
18790     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18791       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18792 echo "$as_me: $ac_file is unchanged" >&6;}
18793     else
18794       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18796          X"$ac_file" : 'X\(//\)[^/]' \| \
18797          X"$ac_file" : 'X\(//\)$' \| \
18798          X"$ac_file" : 'X\(/\)' \| \
18799          .     : '\(.\)' 2>/dev/null ||
18800 echo X"$ac_file" |
18801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18803           /^X\(\/\/\)$/{ s//\1/; q; }
18804           /^X\(\/\).*/{ s//\1/; q; }
18805           s/.*/./; q'`
18806       { if $as_mkdir_p; then
18807     mkdir -p "$ac_dir"
18808   else
18809     as_dir="$ac_dir"
18810     as_dirs=
18811     while test ! -d "$as_dir"; do
18812       as_dirs="$as_dir $as_dirs"
18813       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18815          X"$as_dir" : 'X\(//\)[^/]' \| \
18816          X"$as_dir" : 'X\(//\)$' \| \
18817          X"$as_dir" : 'X\(/\)' \| \
18818          .     : '\(.\)' 2>/dev/null ||
18819 echo X"$as_dir" |
18820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18822           /^X\(\/\/\)$/{ s//\1/; q; }
18823           /^X\(\/\).*/{ s//\1/; q; }
18824           s/.*/./; q'`
18825     done
18826     test ! -n "$as_dirs" || mkdir $as_dirs
18827   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18829    { (exit 1); exit 1; }; }; }
18830
18831       rm -f $ac_file
18832       mv $tmp/config.h $ac_file
18833     fi
18834   else
18835     cat $tmp/config.h
18836     rm -f $tmp/config.h
18837   fi
18838 done
18839 _ACEOF
18840 cat >>$CONFIG_STATUS <<\_ACEOF
18841
18842 #
18843 # CONFIG_COMMANDS section.
18844 #
18845 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18846   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18847   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18848   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18849 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18850          X"$ac_dest" : 'X\(//\)[^/]' \| \
18851          X"$ac_dest" : 'X\(//\)$' \| \
18852          X"$ac_dest" : 'X\(/\)' \| \
18853          .     : '\(.\)' 2>/dev/null ||
18854 echo X"$ac_dest" |
18855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18856           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18857           /^X\(\/\/\)$/{ s//\1/; q; }
18858           /^X\(\/\).*/{ s//\1/; q; }
18859           s/.*/./; q'`
18860   ac_builddir=.
18861
18862 if test "$ac_dir" != .; then
18863   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18864   # A "../" for each directory in $ac_dir_suffix.
18865   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18866 else
18867   ac_dir_suffix= ac_top_builddir=
18868 fi
18869
18870 case $srcdir in
18871   .)  # No --srcdir option.  We are building in place.
18872     ac_srcdir=.
18873     if test -z "$ac_top_builddir"; then
18874        ac_top_srcdir=.
18875     else
18876        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18877     fi ;;
18878   [\\/]* | ?:[\\/]* )  # Absolute path.
18879     ac_srcdir=$srcdir$ac_dir_suffix;
18880     ac_top_srcdir=$srcdir ;;
18881   *) # Relative path.
18882     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18883     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18884 esac
18885 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18886 # absolute.
18887 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18888 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18889 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18890 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18891
18892
18893   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18894 echo "$as_me: executing $ac_dest commands" >&6;}
18895   case $ac_dest in
18896     default ) (echo "Doing make of dependencies"; make depend;)
18897  ;;
18898   esac
18899 done
18900 _ACEOF
18901
18902 cat >>$CONFIG_STATUS <<\_ACEOF
18903
18904 { (exit 0); exit 0; }
18905 _ACEOF
18906 chmod +x $CONFIG_STATUS
18907 ac_clean_files=$ac_clean_files_save
18908
18909
18910 # configure is writing to config.log, and then calls config.status.
18911 # config.status does its own redirection, appending to config.log.
18912 # Unfortunately, on DOS this fails, as config.log is still kept open
18913 # by configure, so config.status won't be able to write to it; its
18914 # output is simply discarded.  So we exec the FD to /dev/null,
18915 # effectively closing config.log, so it can be properly (re)opened and
18916 # appended to by config.status.  When coming back to configure, we
18917 # need to make the FD available again.
18918 if test "$no_create" != yes; then
18919   ac_cs_success=:
18920   ac_config_status_args=
18921   test "$silent" = yes &&
18922     ac_config_status_args="$ac_config_status_args --quiet"
18923   exec 5>/dev/null
18924   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18925   exec 5>>config.log
18926   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18927   # would make configure fail if this is the last instruction.
18928   $ac_cs_success || { (exit 1); exit 1; }
18929 fi
18930
18931
18932 cd scripts
18933 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18934 chmod 755 bconsole gconsole mtx-changer
18935 cd ..
18936 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18937 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18938 chmod 755 src/cats/create_mysql_database
18939 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18940 chmod 755 src/cats/alter_mysql_tables
18941 chmod 755 src/cats/grant_mysql_privileges
18942 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18943 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18944 chmod 755 src/cats/create_sqlite_database
18945 chmod 755 src/cats/alter_sqlite_tables
18946 chmod 755 src/cats/sqlite
18947 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18948 chmod 755 src/cats/create_bdb_database
18949
18950 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18951    largefile_support="yes"
18952 fi
18953
18954 #
18955 # A whole lot of hand springs to get the compiler version.
18956 #  This is because gcc changed the output in version 3.0
18957 #
18958 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18959 if test "x${CCVERSION}" = "x" ; then
18960   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18961 fi
18962 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18963 if test x"${CXXVERSION}" = x ; then
18964   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18965 fi
18966
18967 if test "x${subsysdir}" = "x${sbindir}" ; then
18968    echo " "
18969    echo " "
18970    echo "You have set --sbindir and --with-subsys-dir"
18971    echo "  both equal to: ${subsysdir} "
18972    echo "  This is not permitted. Please reconfigure."
18973    echo "Aborting configuration ..."
18974    echo " "
18975    echo " "
18976    exit 1
18977 fi
18978
18979 echo "
18980 Configuration on `date`:
18981
18982   Host:                       $host -- ${DISTNAME} ${DISTVER}
18983   Bacula version:             ${VERSION} (${DATE})
18984   Source code location:       ${srcdir}
18985   Install binaries:           ${sbindir}
18986   Install config files:       ${sysconfdir}
18987   Scripts directory:          ${scriptdir}
18988   Working directory:          ${working_dir}
18989   PID directory:              ${piddir}
18990   Subsys directory:           ${subsysdir}
18991   C Compiler:                 ${CC} ${CCVERSION}
18992   C++ Compiler:               ${CXX} ${CXXVERSION}
18993   Compiler flags:             ${WCFLAGS} ${CFLAGS}
18994   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
18995   Libraries:                  ${LIBS}
18996   Statically Linked Tools:    ${support_static_tools}
18997   Statically Linked FD:       ${support_static_fd}
18998   Statically Linked SD:       ${support_static_sd}
18999   Statically Linked DIR:      ${support_static_dir}
19000   Statically Linked CONS:     ${support_static_cons}
19001   Database type:              ${db_name}
19002   Database lib:               ${DB_LIBS}
19003
19004   Job Output Email:           ${job_email}
19005   Traceback Email:            ${dump_email}
19006   SMTP Host Address:          ${smtp_host}
19007
19008   Director Port:              ${dir_port}
19009   File daemon Port:           ${fd_port}
19010   Storage daemon Port:        ${sd_port}
19011
19012   Director User:            ${dir_user}
19013   Director Group:           ${dir_group}
19014   Storage Daemon User:      ${dir_user}
19015   Storage DaemonGroup:      ${dir_group}
19016   File Daemon User:         ${dir_user}
19017   File Daemon Group:        ${dir_group}
19018
19019   SQL binaries Directory      ${SQL_BINDIR}
19020
19021   Large file support:         $largefile_support
19022   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19023   TCP Wrappers support:       ${TCPW_MSG}
19024   ZLIB support:               ${have_zlib}
19025   enable-smartalloc:          ${support_smartalloc}
19026   enable-gnome:               ${support_gnome}
19027   client-only:                ${build_client_only}
19028
19029   " > config.out
19030
19031 cat config.out
19032
19033 # old stuff
19034 # cweb support:               ${got_cweb} ${CWEB_SRC}
19035 # gmp support:                ${got_gmp} ${GMP_SRC}