]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
89b636774c14396cedcef9590c5faeb24029650b
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-readline      disable readline support enabled
867
868   --disable-largefile     omit support for large files
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-gnome-includes   Specify location of GNOME headers
874   --with-gnome-libs       Specify location of GNOME libs
875   --with-gnome            Specify prefix for GNOME files
876  --with-readline=DIR             specify readline library directory
877   --with-tcp-wrappers=DIR        enable tcpwrappers support
878   --with-working-dir=PATH        specify path of Bacula working directory
879   --with-scriptdir=PATH    specify path of Bacula scripts directory
880   --with-dump-email=EMAIL        dump email address
881   --with-job-email=EMAIL         job output email address
882   --with-smtp-host=HOST          SMTP mail host address
883   --with-pid-dir=PATH            specify location of Bacula pid files
884   --with-subsys-dir=PATH         specify location of Bacula subsys file
885   --with-baseport=PORT           specify base port address for daemons
886   --with-dir-password=PASSWORD   specify Director's password
887   --with-fd-password=PASSWORD    specify Client's password
888   --with-sd-password=PASSWORD    specify Storage daemon's password
889
890 Which DBMS do you want to use (please select only one):
891   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
892                           install directory, default is to search through
893                           a number of common places for the MySQL files.
894
895 Which DBMS do you want to use (please select only one):
896   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
897                           install directory, default is to search through
898                           a number of common places for the MySQL files.
899
900 Which DBMS do you want to use (please select only one):
901   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
902                           install directory, default is to search through
903                           a number of common places for the SQLite files.
904   --with-x                use the X Window System
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CXX         C++ compiler command
914   CXXFLAGS    C++ compiler flags
915   CPP         C preprocessor
916
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
919
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924   # If there are subdirs, report their specific --help.
925   ac_popdir=`pwd`
926   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927     test -d $ac_dir || continue
928     ac_builddir=.
929
930 if test "$ac_dir" != .; then
931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932   # A "../" for each directory in $ac_dir_suffix.
933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935   ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939   .)  # No --srcdir option.  We are building in place.
940     ac_srcdir=.
941     if test -z "$ac_top_builddir"; then
942        ac_top_srcdir=.
943     else
944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945     fi ;;
946   [\\/]* | ?:[\\/]* )  # Absolute path.
947     ac_srcdir=$srcdir$ac_dir_suffix;
948     ac_top_srcdir=$srcdir ;;
949   *) # Relative path.
950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
954 # absolute.
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd $ac_popdir
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982
983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
984 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988   exit 0
989 fi
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
994
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.57.  Invocation command line was
997
998   $ $0 $@
999
1000 _ACEOF
1001 {
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1006
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024 _ASUNAME
1025
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1028 do
1029   IFS=$as_save_IFS
1030   test -z "$as_dir" && as_dir=.
1031   echo "PATH: $as_dir"
1032 done
1033
1034 } >&5
1035
1036 cat >&5 <<_ACEOF
1037
1038
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1042
1043 _ACEOF
1044
1045
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1057 do
1058   for ac_arg
1059   do
1060     case $ac_arg in
1061     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063     | -silent | --silent | --silen | --sile | --sil)
1064       continue ;;
1065     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067     esac
1068     case $ac_pass in
1069     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070     2)
1071       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072       if test $ac_must_keep_next = true; then
1073         ac_must_keep_next=false # Got value, back to normal.
1074       else
1075         case $ac_arg in
1076           *=* | --config-cache | -C | -disable-* | --disable-* \
1077           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079           | -with-* | --with-* | -without-* | --without-* | --x)
1080             case "$ac_configure_args0 " in
1081               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082             esac
1083             ;;
1084           -* ) ac_must_keep_next=true ;;
1085         esac
1086       fi
1087       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088       # Get rid of the leading space.
1089       ac_sep=" "
1090       ;;
1091     esac
1092   done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log.  We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103   # Save into config.log some information that might help in debugging.
1104   {
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112     echo
1113     # The following way of writing the cache mishandles newlines in values,
1114 {
1115   (set) 2>&1 |
1116     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117     *ac_space=\ *)
1118       sed -n \
1119         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121       ;;
1122     *)
1123       sed -n \
1124         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125       ;;
1126     esac;
1127 }
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135     echo
1136     for ac_var in $ac_subst_vars
1137     do
1138       eval ac_val=$`echo $ac_var`
1139       echo "$ac_var='"'"'$ac_val'"'"'"
1140     done | sort
1141     echo
1142
1143     if test -n "$ac_subst_files"; then
1144       cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149       echo
1150       for ac_var in $ac_subst_files
1151       do
1152         eval ac_val=$`echo $ac_var`
1153         echo "$ac_var='"'"'$ac_val'"'"'"
1154       done | sort
1155       echo
1156     fi
1157
1158     if test -s confdefs.h; then
1159       cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164       echo
1165       sed "/^$/d" confdefs.h | sort
1166       echo
1167     fi
1168     test "$ac_signal" != 0 &&
1169       echo "$as_me: caught signal $ac_signal"
1170     echo "$as_me: exit $exit_status"
1171   } >&5
1172   rm -f core core.* *.core &&
1173   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174     exit $exit_status
1175      ' 0
1176 for ac_signal in 1 2 13 15; do
1177   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1180
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1185
1186 # Predefined preprocessor variables.
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1211
1212
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216   if test "x$prefix" != xNONE; then
1217     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218   else
1219     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220   fi
1221 fi
1222 for ac_site_file in $CONFIG_SITE; do
1223   if test -r "$ac_site_file"; then
1224     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226     sed 's/^/| /' "$ac_site_file" >&5
1227     . "$ac_site_file"
1228   fi
1229 done
1230
1231 if test -r "$cache_file"; then
1232   # Some versions of bash will fail to source /dev/null (special
1233   # files actually), so we avoid doing that.
1234   if test -f "$cache_file"; then
1235     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237     case $cache_file in
1238       [\\/]* | ?:[\\/]* ) . $cache_file;;
1239       *)                      . ./$cache_file;;
1240     esac
1241   fi
1242 else
1243   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245   >$cache_file
1246 fi
1247
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254   eval ac_new_set=\$ac_env_${ac_var}_set
1255   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256   eval ac_new_val="\$ac_env_${ac_var}_value"
1257   case $ac_old_set,$ac_new_set in
1258     set,)
1259       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261       ac_cache_corrupted=: ;;
1262     ,set)
1263       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265       ac_cache_corrupted=: ;;
1266     ,);;
1267     *)
1268       if test "x$ac_old_val" != "x$ac_new_val"; then
1269         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272 echo "$as_me:   former value:  $ac_old_val" >&2;}
1273         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274 echo "$as_me:   current value: $ac_new_val" >&2;}
1275         ac_cache_corrupted=:
1276       fi;;
1277   esac
1278   # Pass precious variables to config.status.
1279   if test "$ac_new_set" = set; then
1280     case $ac_new_val in
1281     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283     *) ac_arg=$ac_var=$ac_new_val ;;
1284     esac
1285     case " $ac_configure_args " in
1286       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288     esac
1289   fi
1290 done
1291 if $ac_cache_corrupted; then
1292   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296    { (exit 1); exit 1; }; }
1297 fi
1298
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 BUILD_DIR=`pwd`
1324 cd ..
1325 TOP_DIR=`pwd`
1326 cd ${BUILD_DIR}
1327
1328 ac_aux_dir=
1329 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1330   if test -f $ac_dir/install-sh; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/install-sh -c"
1333     break
1334   elif test -f $ac_dir/install.sh; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/install.sh -c"
1337     break
1338   elif test -f $ac_dir/shtool; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/shtool install -c"
1341     break
1342   fi
1343 done
1344 if test -z "$ac_aux_dir"; then
1345   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352
1353           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1354
1355
1356
1357
1358
1359 for ac_prog in true
1360 do
1361   # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1366   echo $ECHO_N "(cached) $ECHO_C" >&6
1367 else
1368   case $TRUEPRG in
1369   [\\/]* | ?:[\\/]*)
1370   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1371   ;;
1372   *)
1373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 for as_dir in $PATH
1375 do
1376   IFS=$as_save_IFS
1377   test -z "$as_dir" && as_dir=.
1378   for ac_exec_ext in '' $ac_executable_extensions; do
1379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382     break 2
1383   fi
1384 done
1385 done
1386
1387   ;;
1388 esac
1389 fi
1390 TRUEPRG=$ac_cv_path_TRUEPRG
1391
1392 if test -n "$TRUEPRG"; then
1393   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1394 echo "${ECHO_T}$TRUEPRG" >&6
1395 else
1396   echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1398 fi
1399
1400   test -n "$TRUEPRG" && break
1401 done
1402 test -n "$TRUEPRG" || TRUEPRG=":"
1403
1404 for ac_prog in false
1405 do
1406   # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1411   echo $ECHO_N "(cached) $ECHO_C" >&6
1412 else
1413   case $FALSEPRG in
1414   [\\/]* | ?:[\\/]*)
1415   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1416   ;;
1417   *)
1418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 for as_dir in $PATH
1420 do
1421   IFS=$as_save_IFS
1422   test -z "$as_dir" && as_dir=.
1423   for ac_exec_ext in '' $ac_executable_extensions; do
1424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427     break 2
1428   fi
1429 done
1430 done
1431
1432   ;;
1433 esac
1434 fi
1435 FALSEPRG=$ac_cv_path_FALSEPRG
1436
1437 if test -n "$FALSEPRG"; then
1438   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1439 echo "${ECHO_T}$FALSEPRG" >&6
1440 else
1441   echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1443 fi
1444
1445   test -n "$FALSEPRG" && break
1446 done
1447 test -n "$FALSEPRG" || FALSEPRG=":"
1448
1449
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454    { (exit 1); exit 1; }; }
1455
1456 echo "$as_me:$LINENO: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463   ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467    { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1476 build=$ac_cv_build
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489   ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1498 host=$ac_cv_host
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504
1505 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1508 echo "configuring for bacula $VERSION ($DATE)"
1509
1510
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 if test -n "$ac_tool_prefix"; then
1518   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523   echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525   if test -n "$CC"; then
1526   ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531   IFS=$as_save_IFS
1532   test -z "$as_dir" && as_dir=.
1533   for ac_exec_ext in '' $ac_executable_extensions; do
1534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537     break 2
1538   fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546   echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549   echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 fi
1554 if test -z "$ac_cv_prog_CC"; then
1555   ac_ct_CC=$CC
1556   # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561   echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563   if test -n "$ac_ct_CC"; then
1564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   for ac_exec_ext in '' $ac_executable_extensions; do
1572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573     ac_cv_prog_ac_ct_CC="gcc"
1574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575     break 2
1576   fi
1577 done
1578 done
1579
1580 fi
1581 fi
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587   echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1589 fi
1590
1591   CC=$ac_ct_CC
1592 else
1593   CC="$ac_cv_prog_CC"
1594 fi
1595
1596 if test -z "$CC"; then
1597   if test -n "$ac_tool_prefix"; then
1598   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603   echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605   if test -n "$CC"; then
1606   ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   for ac_exec_ext in '' $ac_executable_extensions; do
1614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615     ac_cv_prog_CC="${ac_tool_prefix}cc"
1616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617     break 2
1618   fi
1619 done
1620 done
1621
1622 fi
1623 fi
1624 CC=$ac_cv_prog_CC
1625 if test -n "$CC"; then
1626   echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1628 else
1629   echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1631 fi
1632
1633 fi
1634 if test -z "$ac_cv_prog_CC"; then
1635   ac_ct_CC=$CC
1636   # Extract the first word of "cc", so it can be a program name with args.
1637 set dummy cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$ac_ct_CC"; then
1644   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_ac_ct_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671   CC=$ac_ct_CC
1672 else
1673   CC="$ac_cv_prog_CC"
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678   # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   if test -n "$CC"; then
1686   ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688   ac_prog_rejected=no
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1697        ac_prog_rejected=yes
1698        continue
1699      fi
1700     ac_cv_prog_CC="cc"
1701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702     break 2
1703   fi
1704 done
1705 done
1706
1707 if test $ac_prog_rejected = yes; then
1708   # We found a bogon in the path, so make sure we never use it.
1709   set dummy $ac_cv_prog_CC
1710   shift
1711   if test $# != 0; then
1712     # We chose a different compiler from the bogus one.
1713     # However, it has the same basename, so the bogon will be chosen
1714     # first if we set CC to just the basename; use the full file name.
1715     shift
1716     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1717   fi
1718 fi
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if test -z "$CC"; then
1732   if test -n "$ac_tool_prefix"; then
1733   for ac_prog in cl
1734   do
1735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   if test -n "$CC"; then
1743   ac_cv_prog_CC="$CC" # Let the user override the test.
1744 else
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1747 do
1748   IFS=$as_save_IFS
1749   test -z "$as_dir" && as_dir=.
1750   for ac_exec_ext in '' $ac_executable_extensions; do
1751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754     break 2
1755   fi
1756 done
1757 done
1758
1759 fi
1760 fi
1761 CC=$ac_cv_prog_CC
1762 if test -n "$CC"; then
1763   echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1765 else
1766   echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1768 fi
1769
1770     test -n "$CC" && break
1771   done
1772 fi
1773 if test -z "$CC"; then
1774   ac_ct_CC=$CC
1775   for ac_prog in cl
1776 do
1777   # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782   echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784   if test -n "$ac_ct_CC"; then
1785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1789 do
1790   IFS=$as_save_IFS
1791   test -z "$as_dir" && as_dir=.
1792   for ac_exec_ext in '' $ac_executable_extensions; do
1793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794     ac_cv_prog_ac_ct_CC="$ac_prog"
1795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796     break 2
1797   fi
1798 done
1799 done
1800
1801 fi
1802 fi
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1807 else
1808   echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1810 fi
1811
1812   test -n "$ac_ct_CC" && break
1813 done
1814
1815   CC=$ac_ct_CC
1816 fi
1817
1818 fi
1819
1820
1821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: no acceptable C compiler found in \$PATH
1824 See \`config.log' for more details." >&2;}
1825    { (exit 1); exit 1; }; }
1826
1827 # Provide some information about the compiler.
1828 echo "$as_me:$LINENO:" \
1829      "checking for C compiler version" >&5
1830 ac_compiler=`set X $ac_compile; echo $2`
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832   (eval $ac_compiler --version </dev/null >&5) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }
1836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837   (eval $ac_compiler -v </dev/null >&5) 2>&5
1838   ac_status=$?
1839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840   (exit $ac_status); }
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842   (eval $ac_compiler -V </dev/null >&5) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }
1846
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1849 /* confdefs.h.  */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h.  */
1854
1855 int
1856 main ()
1857 {
1858
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1867 # of exeext.
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872   (eval $ac_link_default) 2>&5
1873   ac_status=$?
1874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875   (exit $ac_status); }; then
1876   # Find the output, starting from the most likely.  This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1878 # resort.
1879
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1882 ac_cv_exeext=
1883 # b.out is created by i960 compilers.
1884 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1885 do
1886   test -f "$ac_file" || continue
1887   case $ac_file in
1888     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1889         ;;
1890     conftest.$ac_ext )
1891         # This is the source file.
1892         ;;
1893     [ab].out )
1894         # We found the default executable, but exeext='' is most
1895         # certainly right.
1896         break;;
1897     *.* )
1898         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899         # FIXME: I believe we export ac_cv_exeext for Libtool,
1900         # but it would be cool to find out if it's true.  Does anybody
1901         # maintain Libtool? --akim.
1902         export ac_cv_exeext
1903         break;;
1904     * )
1905         break;;
1906   esac
1907 done
1908 else
1909   echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&2;}
1916    { (exit 77); exit 77; }; }
1917 fi
1918
1919 ac_exeext=$ac_cv_exeext
1920 echo "$as_me:$LINENO: result: $ac_file" >&5
1921 echo "${ECHO_T}$ac_file" >&6
1922
1923 # Check the compiler produces executables we can run.  If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1928 # If not cross compiling, check that we can run a simple program.
1929 if test "$cross_compiling" != yes; then
1930   if { ac_try='./$ac_file'
1931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932   (eval $ac_try) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; }; then
1936     cross_compiling=no
1937   else
1938     if test "$cross_compiling" = maybe; then
1939         cross_compiling=yes
1940     else
1941         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot run C compiled programs.
1945 If you meant to cross compile, use \`--host'.
1946 See \`config.log' for more details." >&2;}
1947    { (exit 1); exit 1; }; }
1948     fi
1949   fi
1950 fi
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1953
1954 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1955 ac_clean_files=$ac_clean_files_save
1956 # Check the compiler produces executables we can run.  If not, either
1957 # the compiler is broken, or we cross compile.
1958 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1959 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1960 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1961 echo "${ECHO_T}$cross_compiling" >&6
1962
1963 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1964 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1966   (eval $ac_link) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; then
1970   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1971 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1972 # work properly (i.e., refer to `conftest.exe'), while it won't with
1973 # `rm'.
1974 for ac_file in conftest.exe conftest conftest.*; do
1975   test -f "$ac_file" || continue
1976   case $ac_file in
1977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1978     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1979           export ac_cv_exeext
1980           break;;
1981     * ) break;;
1982   esac
1983 done
1984 else
1985   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 rm -f conftest$ac_cv_exeext
1993 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1994 echo "${ECHO_T}$ac_cv_exeext" >&6
1995
1996 rm -f conftest.$ac_ext
1997 EXEEXT=$ac_cv_exeext
1998 ac_exeext=$EXEEXT
1999 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2000 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2001 if test "${ac_cv_objext+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 /* confdefs.h.  */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h.  */
2011
2012 int
2013 main ()
2014 {
2015
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022   (eval $ac_compile) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2027   case $ac_file in
2028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2029     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2030        break;;
2031   esac
2032 done
2033 else
2034   echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2040 See \`config.log' for more details." >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2045 fi
2046 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2047 echo "${ECHO_T}$ac_cv_objext" >&6
2048 OBJEXT=$ac_cv_objext
2049 ac_objext=$OBJEXT
2050 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   cat >conftest.$ac_ext <<_ACEOF
2056 #line $LINENO "configure"
2057 /* confdefs.h.  */
2058 _ACEOF
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h.  */
2062
2063 int
2064 main ()
2065 {
2066 #ifndef __GNUC__
2067        choke me
2068 #endif
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076   (eval $ac_compile) 2>&5
2077   ac_status=$?
2078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079   (exit $ac_status); } &&
2080          { ac_try='test -s conftest.$ac_objext'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086   ac_compiler_gnu=yes
2087 else
2088   echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2090
2091 ac_compiler_gnu=no
2092 fi
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2095
2096 fi
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2102 CFLAGS="-g"
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2110 /* confdefs.h.  */
2111 _ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h.  */
2115
2116 int
2117 main ()
2118 {
2119
2120   ;
2121   return 0;
2122 }
2123 _ACEOF
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126   (eval $ac_compile) 2>&5
2127   ac_status=$?
2128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129   (exit $ac_status); } &&
2130          { ac_try='test -s conftest.$ac_objext'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; }; then
2136   ac_cv_prog_cc_g=yes
2137 else
2138   echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 ac_cv_prog_cc_g=no
2142 fi
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2147 if test "$ac_test_CFLAGS" = set; then
2148   CFLAGS=$ac_save_CFLAGS
2149 elif test $ac_cv_prog_cc_g = yes; then
2150   if test "$GCC" = yes; then
2151     CFLAGS="-g -O2"
2152   else
2153     CFLAGS="-g"
2154   fi
2155 else
2156   if test "$GCC" = yes; then
2157     CFLAGS="-O2"
2158   else
2159     CFLAGS=
2160   fi
2161 fi
2162 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2163 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2164 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   ac_cv_prog_cc_stdc=no
2168 ac_save_CC=$CC
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 /* confdefs.h.  */
2172 _ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h.  */
2176 #include <stdarg.h>
2177 #include <stdio.h>
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2181 struct buf { int x; };
2182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (p, i)
2184      char **p;
2185      int i;
2186 {
2187   return p[i];
2188 }
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2190 {
2191   char *s;
2192   va_list v;
2193   va_start (v,p);
2194   s = g (p, va_arg (v,int));
2195   va_end (v);
2196   return s;
2197 }
2198 int test (int i, double x);
2199 struct s1 {int (*f) (int a);};
2200 struct s2 {int (*f) (double a);};
2201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2202 int argc;
2203 char **argv;
2204 int
2205 main ()
2206 {
2207 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2208   ;
2209   return 0;
2210 }
2211 _ACEOF
2212 # Don't try gcc -ansi; that turns off useful extensions and
2213 # breaks some systems' header files.
2214 # AIX                   -qlanglvl=ansi
2215 # Ultrix and OSF/1      -std1
2216 # HP-UX 10.20 and later -Ae
2217 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2218 # SVR4                  -Xc -D__EXTENSIONS__
2219 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2220 do
2221   CC="$ac_save_CC $ac_arg"
2222   rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); } &&
2228          { ac_try='test -s conftest.$ac_objext'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234   ac_cv_prog_cc_stdc=$ac_arg
2235 break
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 fi
2241 rm -f conftest.$ac_objext
2242 done
2243 rm -f conftest.$ac_ext conftest.$ac_objext
2244 CC=$ac_save_CC
2245
2246 fi
2247
2248 case "x$ac_cv_prog_cc_stdc" in
2249   x|xno)
2250     echo "$as_me:$LINENO: result: none needed" >&5
2251 echo "${ECHO_T}none needed" >&6 ;;
2252   *)
2253     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2255     CC="$CC $ac_cv_prog_cc_stdc" ;;
2256 esac
2257
2258 # Some people use a C++ compiler to compile C.  Since we use `exit',
2259 # in C++ we need to declare it.  In case someone uses the same compiler
2260 # for both compiling C and C++ we need to have the C++ compiler decide
2261 # the declaration of exit, since it's the most demanding environment.
2262 cat >conftest.$ac_ext <<_ACEOF
2263 #ifndef __cplusplus
2264   choke me
2265 #endif
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   for ac_declaration in \
2280    ''\
2281    '#include <stdlib.h>' \
2282    'extern "C" void std::exit (int) throw (); using std::exit;' \
2283    'extern "C" void std::exit (int); using std::exit;' \
2284    'extern "C" void exit (int) throw ();' \
2285    'extern "C" void exit (int);' \
2286    'void exit (int);'
2287 do
2288   cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295 #include <stdlib.h>
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   :
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 continue
2323 fi
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325   cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2327 /* confdefs.h.  */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h.  */
2332 $ac_declaration
2333 int
2334 main ()
2335 {
2336 exit (42);
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   break
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 done
2361 rm -f conftest*
2362 if test -n "$ac_declaration"; then
2363   echo '#ifdef __cplusplus' >>confdefs.h
2364   echo $ac_declaration      >>confdefs.h
2365   echo '#endif'             >>confdefs.h
2366 fi
2367
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 fi
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379
2380 ac_ext=cc
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2387   do
2388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$CXX"; then
2396   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411
2412 fi
2413 fi
2414 CXX=$ac_cv_prog_CXX
2415 if test -n "$CXX"; then
2416   echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2418 else
2419   echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2421 fi
2422
2423     test -n "$CXX" && break
2424   done
2425 fi
2426 if test -z "$CXX"; then
2427   ac_ct_CXX=$CXX
2428   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2429 do
2430   # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$ac_ct_CXX"; then
2438   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_ac_ct_CXX="$ac_prog"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453
2454 fi
2455 fi
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2460 else
2461   echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2463 fi
2464
2465   test -n "$ac_ct_CXX" && break
2466 done
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2468
2469   CXX=$ac_ct_CXX
2470 fi
2471
2472
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475      "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478   (eval $ac_compiler --version </dev/null >&5) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483   (eval $ac_compiler -v </dev/null >&5) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488   (eval $ac_compiler -V </dev/null >&5) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505
2506 int
2507 main ()
2508 {
2509 #ifndef __GNUC__
2510        choke me
2511 #endif
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519   (eval $ac_compile) 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -s conftest.$ac_objext'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529   ac_compiler_gnu=yes
2530 else
2531   echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 ac_compiler_gnu=no
2535 fi
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2538
2539 fi
2540 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2542 GXX=`test $ac_compiler_gnu = yes && echo yes`
2543 ac_test_CXXFLAGS=${CXXFLAGS+set}
2544 ac_save_CXXFLAGS=$CXXFLAGS
2545 CXXFLAGS="-g"
2546 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2548 if test "${ac_cv_prog_cxx_g+set}" = set; then
2549   echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551   cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2553 /* confdefs.h.  */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h.  */
2558
2559 int
2560 main ()
2561 {
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } &&
2573          { ac_try='test -s conftest.$ac_objext'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   ac_cv_prog_cxx_g=yes
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 ac_cv_prog_cxx_g=no
2585 fi
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590 if test "$ac_test_CXXFLAGS" = set; then
2591   CXXFLAGS=$ac_save_CXXFLAGS
2592 elif test $ac_cv_prog_cxx_g = yes; then
2593   if test "$GXX" = yes; then
2594     CXXFLAGS="-g -O2"
2595   else
2596     CXXFLAGS="-g"
2597   fi
2598 else
2599   if test "$GXX" = yes; then
2600     CXXFLAGS="-O2"
2601   else
2602     CXXFLAGS=
2603   fi
2604 fi
2605 for ac_declaration in \
2606    ''\
2607    '#include <stdlib.h>' \
2608    'extern "C" void std::exit (int) throw (); using std::exit;' \
2609    'extern "C" void std::exit (int); using std::exit;' \
2610    'extern "C" void exit (int) throw ();' \
2611    'extern "C" void exit (int);' \
2612    'void exit (int);'
2613 do
2614   cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621 #include <stdlib.h>
2622 $ac_declaration
2623 int
2624 main ()
2625 {
2626 exit (42);
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633   (eval $ac_compile) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   :
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 continue
2649 fi
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651   cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 /* confdefs.h.  */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h.  */
2658 $ac_declaration
2659 int
2660 main ()
2661 {
2662 exit (42);
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669   (eval $ac_compile) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   break
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 fi
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2686 done
2687 rm -f conftest*
2688 if test -n "$ac_declaration"; then
2689   echo '#ifdef __cplusplus' >>confdefs.h
2690   echo $ac_declaration      >>confdefs.h
2691   echo '#endif'             >>confdefs.h
2692 fi
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700 if test "x$CC" != xcc; then
2701   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2702 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2703 else
2704   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2705 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2706 fi
2707 set dummy $CC; ac_cc=`echo $2 |
2708                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2709 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719
2720 int
2721 main ()
2722 {
2723
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 # Make sure it works both with $CC and with simple cc.
2729 # We do the test twice because some compilers refuse to overwrite an
2730 # existing .o file with -o, though they will create one.
2731 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2732 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733   (eval $ac_try) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); } &&
2737    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); };
2742 then
2743   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2744   if test "x$CC" != xcc; then
2745     # Test first that cc exists at all.
2746     if { ac_try='cc -c conftest.$ac_ext >&5'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2753       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } &&
2758          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759   (eval $ac_try) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); };
2763       then
2764         # cc works too.
2765         :
2766       else
2767         # cc exists but doesn't like -o.
2768         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2769       fi
2770     fi
2771   fi
2772 else
2773   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2774 fi
2775 rm -f conftest*
2776
2777 fi
2778 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2779   echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2781 else
2782   echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2784
2785 cat >>confdefs.h <<\_ACEOF
2786 #define NO_MINUS_C_MINUS_O 1
2787 _ACEOF
2788
2789 fi
2790
2791 ac_ext=c
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2800   CPP=
2801 fi
2802 if test -z "$CPP"; then
2803   if test "${ac_cv_prog_CPP+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806       # Double quotes because CPP needs to be expanded
2807     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2808     do
2809       ac_preproc_ok=false
2810 for ac_c_preproc_warn_flag in '' yes
2811 do
2812   # Use a header file that comes with gcc, so configuring glibc
2813   # with a fresh cross-compiler works.
2814   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815   # <limits.h> exists even on freestanding compilers.
2816   # On the NeXT, cc -E runs the code through the compiler's parser,
2817   # not just through cpp. "Syntax error" is here to catch this case.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830                      Syntax error
2831 _ACEOF
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } >/dev/null; then
2840   if test -s conftest.err; then
2841     ac_cpp_err=$ac_c_preproc_warn_flag
2842   else
2843     ac_cpp_err=
2844   fi
2845 else
2846   ac_cpp_err=yes
2847 fi
2848 if test -z "$ac_cpp_err"; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854   # Broken: fails on valid input.
2855 continue
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859   # OK, works on sane cases.  Now check whether non-existent headers
2860   # can be detected and how.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2863 /* confdefs.h.  */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h.  */
2868 #include <ac_nonexistent.h>
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } >/dev/null; then
2878   if test -s conftest.err; then
2879     ac_cpp_err=$ac_c_preproc_warn_flag
2880   else
2881     ac_cpp_err=
2882   fi
2883 else
2884   ac_cpp_err=yes
2885 fi
2886 if test -z "$ac_cpp_err"; then
2887   # Broken: success on invalid input.
2888 continue
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893   # Passes both tests.
2894 ac_preproc_ok=:
2895 break
2896 fi
2897 rm -f conftest.err conftest.$ac_ext
2898
2899 done
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2903   break
2904 fi
2905
2906     done
2907     ac_cv_prog_CPP=$CPP
2908
2909 fi
2910   CPP=$ac_cv_prog_CPP
2911 else
2912   ac_cv_prog_CPP=$CPP
2913 fi
2914 echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6
2916 ac_preproc_ok=false
2917 for ac_c_preproc_warn_flag in '' yes
2918 do
2919   # Use a header file that comes with gcc, so configuring glibc
2920   # with a fresh cross-compiler works.
2921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922   # <limits.h> exists even on freestanding compilers.
2923   # On the NeXT, cc -E runs the code through the compiler's parser,
2924   # not just through cpp. "Syntax error" is here to catch this case.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #ifdef __STDC__
2933 # include <limits.h>
2934 #else
2935 # include <assert.h>
2936 #endif
2937                      Syntax error
2938 _ACEOF
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941   ac_status=$?
2942   grep -v '^ *+' conftest.er1 >conftest.err
2943   rm -f conftest.er1
2944   cat conftest.err >&5
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } >/dev/null; then
2947   if test -s conftest.err; then
2948     ac_cpp_err=$ac_c_preproc_warn_flag
2949   else
2950     ac_cpp_err=
2951   fi
2952 else
2953   ac_cpp_err=yes
2954 fi
2955 if test -z "$ac_cpp_err"; then
2956   :
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961   # Broken: fails on valid input.
2962 continue
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966   # OK, works on sane cases.  Now check whether non-existent headers
2967   # can be detected and how.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2970 /* confdefs.h.  */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h.  */
2975 #include <ac_nonexistent.h>
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979   ac_status=$?
2980   grep -v '^ *+' conftest.er1 >conftest.err
2981   rm -f conftest.er1
2982   cat conftest.err >&5
2983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984   (exit $ac_status); } >/dev/null; then
2985   if test -s conftest.err; then
2986     ac_cpp_err=$ac_c_preproc_warn_flag
2987   else
2988     ac_cpp_err=
2989   fi
2990 else
2991   ac_cpp_err=yes
2992 fi
2993 if test -z "$ac_cpp_err"; then
2994   # Broken: success on invalid input.
2995 continue
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000   # Passes both tests.
3001 ac_preproc_ok=:
3002 break
3003 fi
3004 rm -f conftest.err conftest.$ac_ext
3005
3006 done
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3010   :
3011 else
3012   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&2;}
3016    { (exit 1); exit 1; }; }
3017 fi
3018
3019 ac_ext=c
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024
3025
3026 echo "$as_me:$LINENO: checking for egrep" >&5
3027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3028 if test "${ac_cv_prog_egrep+set}" = set; then
3029   echo $ECHO_N "(cached) $ECHO_C" >&6
3030 else
3031   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3032     then ac_cv_prog_egrep='grep -E'
3033     else ac_cv_prog_egrep='egrep'
3034     fi
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3038  EGREP=$ac_cv_prog_egrep
3039
3040
3041 if test $ac_cv_c_compiler_gnu = yes; then
3042     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3043 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3044 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047     ac_pattern="Autoconf.*'x'"
3048   cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #include <sgtty.h>
3056 Autoconf TIOCGETP
3057 _ACEOF
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3060   ac_cv_prog_gcc_traditional=yes
3061 else
3062   ac_cv_prog_gcc_traditional=no
3063 fi
3064 rm -f conftest*
3065
3066
3067   if test $ac_cv_prog_gcc_traditional = no; then
3068     cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075 #include <termio.h>
3076 Autoconf TCGETA
3077 _ACEOF
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3080   ac_cv_prog_gcc_traditional=yes
3081 fi
3082 rm -f conftest*
3083
3084   fi
3085 fi
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3088   if test $ac_cv_prog_gcc_traditional = yes; then
3089     CC="$CC -traditional"
3090   fi
3091 fi
3092
3093 if test x$CC = xgcc
3094 then
3095    cat >>confdefs.h <<\_ACEOF
3096 #define HAVE_GCC 1
3097 _ACEOF
3098
3099 fi
3100
3101 # Find a good install program.  We prefer a C program (faster),
3102 # so one script is as good as another.  But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3107 # AIX /bin/install
3108 # AmigaOS /C/install, which installs bootblocks on floppy discs
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3115 if test -z "$INSTALL"; then
3116 if test "${ac_cv_path_install+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122   IFS=$as_save_IFS
3123   test -z "$as_dir" && as_dir=.
3124   # Account for people who put trailing slashes in PATH elements.
3125 case $as_dir/ in
3126   ./ | .// | /cC/* | \
3127   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3128   /usr/ucb/* ) ;;
3129   *)
3130     # OSF1 and SCO ODT 3.0 have their own names for install.
3131     # Don't use installbsd from OSF since it installs stuff as root
3132     # by default.
3133     for ac_prog in ginstall scoinst install; do
3134       for ac_exec_ext in '' $ac_executable_extensions; do
3135         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136           if test $ac_prog = install &&
3137             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138             # AIX install.  It has an incompatible calling convention.
3139             :
3140           elif test $ac_prog = install &&
3141             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142             # program-specific install script used by HP pwplus--don't use.
3143             :
3144           else
3145             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3146             break 3
3147           fi
3148         fi
3149       done
3150     done
3151     ;;
3152 esac
3153 done
3154
3155
3156 fi
3157   if test "${ac_cv_path_install+set}" = set; then
3158     INSTALL=$ac_cv_path_install
3159   else
3160     # As a last resort, use the slow shell script.  We don't cache a
3161     # path for INSTALL within a source directory, because that will
3162     # break other packages using the cache if that directory is
3163     # removed, or if the path is relative.
3164     INSTALL=$ac_install_sh
3165   fi
3166 fi
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3169
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3173
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3175
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3177
3178 if test -n "$ac_tool_prefix"; then
3179   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_RANLIB+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$RANLIB"; then
3187   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194   for ac_exec_ext in '' $ac_executable_extensions; do
3195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201 done
3202
3203 fi
3204 fi
3205 RANLIB=$ac_cv_prog_RANLIB
3206 if test -n "$RANLIB"; then
3207   echo "$as_me:$LINENO: result: $RANLIB" >&5
3208 echo "${ECHO_T}$RANLIB" >&6
3209 else
3210   echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3212 fi
3213
3214 fi
3215 if test -z "$ac_cv_prog_RANLIB"; then
3216   ac_ct_RANLIB=$RANLIB
3217   # Extract the first word of "ranlib", so it can be a program name with args.
3218 set dummy ranlib; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   if test -n "$ac_ct_RANLIB"; then
3225   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_prog_ac_ct_RANLIB="ranlib"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3242 fi
3243 fi
3244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3245 if test -n "$ac_ct_RANLIB"; then
3246   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253   RANLIB=$ac_ct_RANLIB
3254 else
3255   RANLIB="$ac_cv_prog_RANLIB"
3256 fi
3257
3258 # Extract the first word of "mv", so it can be a program name with args.
3259 set dummy mv; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_MV+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $MV in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3285   ;;
3286 esac
3287 fi
3288 MV=$ac_cv_path_MV
3289
3290 if test -n "$MV"; then
3291   echo "$as_me:$LINENO: result: $MV" >&5
3292 echo "${ECHO_T}$MV" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "rm", so it can be a program name with args.
3299 set dummy rm; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_RM+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $RM in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3325   ;;
3326 esac
3327 fi
3328 RM=$ac_cv_path_RM
3329
3330 if test -n "$RM"; then
3331   echo "$as_me:$LINENO: result: $RM" >&5
3332 echo "${ECHO_T}$RM" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "cp", so it can be a program name with args.
3339 set dummy cp; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_CP+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $CP in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3365   ;;
3366 esac
3367 fi
3368 CP=$ac_cv_path_CP
3369
3370 if test -n "$CP"; then
3371   echo "$as_me:$LINENO: result: $CP" >&5
3372 echo "${ECHO_T}$CP" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "sed", so it can be a program name with args.
3379 set dummy sed; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_SED+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $SED in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3405   ;;
3406 esac
3407 fi
3408 SED=$ac_cv_path_SED
3409
3410 if test -n "$SED"; then
3411   echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "awk", so it can be a program name with args.
3419 set dummy awk; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_AWK+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $AWK in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3445   ;;
3446 esac
3447 fi
3448 AWK=$ac_cv_path_AWK
3449
3450 if test -n "$AWK"; then
3451   echo "$as_me:$LINENO: result: $AWK" >&5
3452 echo "${ECHO_T}$AWK" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "echo", so it can be a program name with args.
3459 set dummy echo; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ECHO+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $ECHO in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3485   ;;
3486 esac
3487 fi
3488 ECHO=$ac_cv_path_ECHO
3489
3490 if test -n "$ECHO"; then
3491   echo "$as_me:$LINENO: result: $ECHO" >&5
3492 echo "${ECHO_T}$ECHO" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "cmp", so it can be a program name with args.
3499 set dummy cmp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CMP+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $CMP in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3525   ;;
3526 esac
3527 fi
3528 CMP=$ac_cv_path_CMP
3529
3530 if test -n "$CMP"; then
3531   echo "$as_me:$LINENO: result: $CMP" >&5
3532 echo "${ECHO_T}$CMP" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "tbl", so it can be a program name with args.
3539 set dummy tbl; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_TBL+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $TBL in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3565   ;;
3566 esac
3567 fi
3568 TBL=$ac_cv_path_TBL
3569
3570 if test -n "$TBL"; then
3571   echo "$as_me:$LINENO: result: $TBL" >&5
3572 echo "${ECHO_T}$TBL" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "ar", so it can be a program name with args.
3579 set dummy ar; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_AR+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $AR in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3605   ;;
3606 esac
3607 fi
3608 AR=$ac_cv_path_AR
3609
3610 if test -n "$AR"; then
3611   echo "$as_me:$LINENO: result: $AR" >&5
3612 echo "${ECHO_T}$AR" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_RANLIB+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $RANLIB in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3645   ;;
3646 esac
3647 fi
3648 RANLIB=$ac_cv_path_RANLIB
3649
3650 if test -n "$RANLIB"; then
3651   echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "openssl", so it can be a program name with args.
3659 set dummy openssl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_OPENSSL+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $OPENSSL in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3685   ;;
3686 esac
3687 fi
3688 OPENSSL=$ac_cv_path_OPENSSL
3689
3690 if test -n "$OPENSSL"; then
3691   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3692 echo "${ECHO_T}$OPENSSL" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "mtx", so it can be a program name with args.
3699 set dummy mtx; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_MTX+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $MTX in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3725   ;;
3726 esac
3727 fi
3728 MTX=$ac_cv_path_MTX
3729
3730 if test -n "$MTX"; then
3731   echo "$as_me:$LINENO: result: $MTX" >&5
3732 echo "${ECHO_T}$MTX" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "pkg-config", so it can be a program name with args.
3739 set dummy pkg-config; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $PKGCONFIG in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3765   ;;
3766 esac
3767 fi
3768 PKGCONFIG=$ac_cv_path_PKGCONFIG
3769
3770 if test -n "$PKGCONFIG"; then
3771   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3772 echo "${ECHO_T}$PKGCONFIG" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778
3779 test -n "$ARFLAG" || ARFLAGS="cr"
3780
3781
3782 MAKE_SHELL=/bin/sh
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792 echo "$as_me:$LINENO: checking for Operating System" >&5
3793 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3794
3795 case $host_os in
3796   *cygwin* ) CYGWIN=yes;;
3797          * ) CYGWIN=no;;
3798 esac
3799
3800 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3801 then
3802
3803
3804 if $TRUEPRG; then
3805   HAVE_SUN_OS_TRUE=
3806   HAVE_SUN_OS_FALSE='#'
3807 else
3808   HAVE_SUN_OS_TRUE='#'
3809   HAVE_SUN_OS_FALSE=
3810 fi
3811         cat >>confdefs.h <<\_ACEOF
3812 #define HAVE_SUN_OS 1
3813 _ACEOF
3814
3815 else
3816
3817
3818 if $FALSEPRG; then
3819   HAVE_SUN_OS_TRUE=
3820   HAVE_SUN_OS_FALSE='#'
3821 else
3822   HAVE_SUN_OS_TRUE='#'
3823   HAVE_SUN_OS_FALSE=
3824 fi
3825 fi
3826
3827 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3828 then
3829
3830
3831 if $TRUEPRG; then
3832   HAVE_OSF1_OS_TRUE=
3833   HAVE_OSF1_OS_FALSE='#'
3834 else
3835   HAVE_OSF1_OS_TRUE='#'
3836   HAVE_OSF1_OS_FALSE=
3837 fi
3838         cat >>confdefs.h <<\_ACEOF
3839 #define HAVE_OSF1_OS 1
3840 _ACEOF
3841
3842 else
3843
3844
3845 if $FALSEPRG; then
3846   HAVE_OSF1_OS_TRUE=
3847   HAVE_OSF1_OS_FALSE='#'
3848 else
3849   HAVE_OSF1_OS_TRUE='#'
3850   HAVE_OSF1_OS_FALSE=
3851 fi
3852 fi
3853
3854 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3855 then
3856
3857
3858 if $TRUEPRG; then
3859   HAVE_AIX_OS_TRUE=
3860   HAVE_AIX_OS_FALSE='#'
3861 else
3862   HAVE_AIX_OS_TRUE='#'
3863   HAVE_AIX_OS_FALSE=
3864 fi
3865         cat >>confdefs.h <<\_ACEOF
3866 #define HAVE_AIX_OS 1
3867 _ACEOF
3868
3869 else
3870
3871
3872 if $FALSEPRG; then
3873   HAVE_AIX_OS_TRUE=
3874   HAVE_AIX_OS_FALSE='#'
3875 else
3876   HAVE_AIX_OS_TRUE='#'
3877   HAVE_AIX_OS_FALSE=
3878 fi
3879 fi
3880
3881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3882 then
3883
3884
3885 if $TRUEPRG; then
3886   HAVE_HPUX_OS_TRUE=
3887   HAVE_HPUX_OS_FALSE='#'
3888 else
3889   HAVE_HPUX_OS_TRUE='#'
3890   HAVE_HPUX_OS_FALSE=
3891 fi
3892         cat >>confdefs.h <<\_ACEOF
3893 #define HAVE_HPUX_OS 1
3894 _ACEOF
3895
3896 else
3897
3898
3899 if $FALSEPRG; then
3900   HAVE_HPUX_OS_TRUE=
3901   HAVE_HPUX_OS_FALSE='#'
3902 else
3903   HAVE_HPUX_OS_TRUE='#'
3904   HAVE_HPUX_OS_FALSE=
3905 fi
3906 fi
3907
3908 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3909 then
3910
3911
3912 if $TRUEPRG; then
3913   HAVE_LINUX_OS_TRUE=
3914   HAVE_LINUX_OS_FALSE='#'
3915 else
3916   HAVE_LINUX_OS_TRUE='#'
3917   HAVE_LINUX_OS_FALSE=
3918 fi
3919         cat >>confdefs.h <<\_ACEOF
3920 #define HAVE_LINUX_OS 1
3921 _ACEOF
3922
3923 else
3924
3925
3926 if $FALSEPRG; then
3927   HAVE_LINUX_OS_TRUE=
3928   HAVE_LINUX_OS_FALSE='#'
3929 else
3930   HAVE_LINUX_OS_TRUE='#'
3931   HAVE_LINUX_OS_FALSE=
3932 fi
3933 fi
3934
3935 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3936 then
3937
3938
3939 if $TRUEPRG; then
3940   HAVE_FREEBSD_OS_TRUE=
3941   HAVE_FREEBSD_OS_FALSE='#'
3942 else
3943   HAVE_FREEBSD_OS_TRUE='#'
3944   HAVE_FREEBSD_OS_FALSE=
3945 fi
3946         cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_FREEBSD_OS 1
3948 _ACEOF
3949
3950 else
3951
3952
3953 if $FALSEPRG; then
3954   HAVE_FREEBSD_OS_TRUE=
3955   HAVE_FREEBSD_OS_FALSE='#'
3956 else
3957   HAVE_FREEBSD_OS_TRUE='#'
3958   HAVE_FREEBSD_OS_FALSE=
3959 fi
3960 fi
3961
3962 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3963 then
3964
3965
3966 if $TRUEPRG; then
3967   HAVE_NETBSD_OS_TRUE=
3968   HAVE_NETBSD_OS_FALSE='#'
3969 else
3970   HAVE_NETBSD_OS_TRUE='#'
3971   HAVE_NETBSD_OS_FALSE=
3972 fi
3973         cat >>confdefs.h <<\_ACEOF
3974 #define HAVE_NETBSD_OS 1
3975 _ACEOF
3976
3977 else
3978
3979
3980 if $FALSEPRG; then
3981   HAVE_NETBSD_OS_TRUE=
3982   HAVE_NETBSD_OS_FALSE='#'
3983 else
3984   HAVE_NETBSD_OS_TRUE='#'
3985   HAVE_NETBSD_OS_FALSE=
3986 fi
3987 fi
3988
3989 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3990 then
3991
3992
3993 if $TRUEPRG; then
3994   HAVE_OPENBSD_OS_TRUE=
3995   HAVE_OPENBSD_OS_FALSE='#'
3996 else
3997   HAVE_OPENBSD_OS_TRUE='#'
3998   HAVE_OPENBSD_OS_FALSE=
3999 fi
4000         cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_OPENBSD_OS 1
4002 _ACEOF
4003
4004 else
4005
4006
4007 if $FALSEPRG; then
4008   HAVE_OPENBSD_OS_TRUE=
4009   HAVE_OPENBSD_OS_FALSE='#'
4010 else
4011   HAVE_OPENBSD_OS_TRUE='#'
4012   HAVE_OPENBSD_OS_FALSE=
4013 fi
4014 fi
4015
4016 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4017 then
4018
4019
4020 if $TRUEPRG; then
4021   HAVE_BSDI_OS_TRUE=
4022   HAVE_BSDI_OS_FALSE='#'
4023 else
4024   HAVE_BSDI_OS_TRUE='#'
4025   HAVE_BSDI_OS_FALSE=
4026 fi
4027         cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_BSDI_OS 1
4029 _ACEOF
4030
4031 else
4032
4033
4034 if $FALSEPRG; then
4035   HAVE_BSDI_OS_TRUE=
4036   HAVE_BSDI_OS_FALSE='#'
4037 else
4038   HAVE_BSDI_OS_TRUE='#'
4039   HAVE_BSDI_OS_FALSE=
4040 fi
4041 fi
4042
4043 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4044 then
4045
4046
4047 if $TRUEPRG; then
4048   HAVE_SGI_OS_TRUE=
4049   HAVE_SGI_OS_FALSE='#'
4050 else
4051   HAVE_SGI_OS_TRUE='#'
4052   HAVE_SGI_OS_FALSE=
4053 fi
4054         cat >>confdefs.h <<\_ACEOF
4055 #define HAVE_SGI_OS 1
4056 _ACEOF
4057
4058 else
4059
4060
4061 if $FALSEPRG; then
4062   HAVE_SGI_OS_TRUE=
4063   HAVE_SGI_OS_FALSE='#'
4064 else
4065   HAVE_SGI_OS_TRUE='#'
4066   HAVE_SGI_OS_FALSE=
4067 fi
4068 fi
4069
4070 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4071 then
4072
4073
4074 if $TRUEPRG; then
4075   HAVE_IRIX_OS_TRUE=
4076   HAVE_IRIX_OS_FALSE='#'
4077 else
4078   HAVE_IRIX_OS_TRUE='#'
4079   HAVE_IRIX_OS_FALSE=
4080 fi
4081         cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_IRIX_OS 1
4083 _ACEOF
4084
4085 else
4086
4087
4088 if $FALSEPRG; then
4089   HAVE_IRIX_OS_TRUE=
4090   HAVE_IRIX_OS_FALSE='#'
4091 else
4092   HAVE_IRIX_OS_TRUE='#'
4093   HAVE_IRIX_OS_FALSE=
4094 fi
4095 fi
4096
4097 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4098 then
4099
4100
4101 if $TRUEPRG; then
4102   HAVE_DARWIN_OS_TRUE=
4103   HAVE_DARWIN_OS_FALSE='#'
4104 else
4105   HAVE_DARWIN_OS_TRUE='#'
4106   HAVE_DARWIN_OS_FALSE=
4107 fi
4108     cat >>confdefs.h <<\_ACEOF
4109 #define HAVE_DARWIN_OS 1
4110 _ACEOF
4111
4112 else
4113
4114
4115 if $FALSEPRG; then
4116   HAVE_DARWIN_OS_TRUE=
4117   HAVE_DARWIN_OS_FALSE='#'
4118 else
4119   HAVE_DARWIN_OS_TRUE='#'
4120   HAVE_DARWIN_OS_FALSE=
4121 fi
4122 fi
4123
4124 echo "$as_me:$LINENO: result: \" \"" >&5
4125 echo "${ECHO_T}\" \"" >&6
4126
4127
4128 # -----------------------------------------------------------
4129 # ----------------------------------------------------------
4130 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4131 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4132 if test "x$DISTNAME" != "x"
4133 then
4134         echo "distname set to $DISTNAME"
4135 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4136 then
4137         DISTNAME=alpha
4138 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4139 then
4140         DISTNAME=aix
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4142 then
4143         DISTNAME=hpux
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4145 then
4146         DISTNAME=solaris
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4148 then
4149         DISTNAME=freebsd
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4151 then
4152         DISTNAME=netbsd
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4154 then
4155         DISTNAME=openbsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4157 then
4158         DISTNAME=irix
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4160 then
4161         DISTNAME=bsdi
4162 elif test -f /etc/SuSE-release
4163 then
4164         DISTNAME=suse
4165 elif test -d /etc/SuSEconfig
4166 then
4167         DISTNAME=suse5
4168 elif test -f /etc/mandrake-release
4169 then
4170         DISTNAME=mandrake
4171 elif test -f /etc/redhat-release
4172 then
4173         DISTNAME=redhat
4174 elif test -f /etc/gentoo-release
4175 then
4176         DISTNAME=gentoo
4177 elif test -f /etc/debian_version
4178 then
4179         DISTNAME=debian
4180 elif test -f /etc/slackware-version
4181 then
4182         DISTNAME=slackware
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4184 then
4185     DISTNAME=darwin
4186 elif test -f /etc/engarde-version
4187 then
4188         DISTNAME=engarde
4189 elif test "$CYGWIN" = yes
4190 then
4191         DISTNAME=cygwin
4192         cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_CYGWIN 1
4194 _ACEOF
4195
4196 else
4197         DISTNAME=unknown
4198 fi
4199 echo "$as_me:$LINENO: result: \" \"" >&5
4200 echo "${ECHO_T}\" \"" >&6
4201
4202
4203 # -----------------------------------------------------------
4204 # ----------------------------------------------------------
4205
4206
4207
4208 if false; then
4209   INSIDE_GNOME_COMMON_TRUE=
4210   INSIDE_GNOME_COMMON_FALSE='#'
4211 else
4212   INSIDE_GNOME_COMMON_TRUE='#'
4213   INSIDE_GNOME_COMMON_FALSE=
4214 fi
4215
4216         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4217
4218         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4219
4220
4221 # ------------------------------------------------------------------
4222 #  If the user has not set --prefix, we set our default to nothing.
4223 #  In this case, if the user has not set --sysconfdir, we set it
4224 #  to the package default of /etc/bacula.  If either --prefix or
4225 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4226 # ------------------------------------------------------------------
4227 if test x${prefix} = xNONE ; then
4228     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4229         sysconfdir=/etc/bacula
4230     fi
4231     prefix=
4232 fi
4233 sysconfdir=`eval echo ${sysconfdir}`
4234
4235 # -------------------------------------------------------------------------
4236 #  If the user has not set --exec-prefix, we default to ${prefix}
4237 # -------------------------------------------------------------------------
4238 if test x${exec_prefix} = xNONE ; then
4239     exec_prefix=${prefix}
4240 fi
4241
4242 # ------------------------------------------------------------------
4243 # If the user has not set --sbindir, we set our default as /sbin
4244 # ------------------------------------------------------------------
4245 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4246     sbindir=${exec_prefix}/sbin
4247 fi
4248 sbindir=`eval echo ${sbindir}`
4249
4250 # ------------------------------------------------------------------
4251 # All list of languages for which a translation exist. Each
4252 #  language is separated by a space.
4253 # ------------------------------------------------------------------
4254 ALL_LINGUAS=""
4255
4256 for ac_prog in msgfmt
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_MSGFMT+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   case $MSGFMT in
4266   [\\/]* | ?:[\\/]*)
4267   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4268   ;;
4269   *)
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283
4284   ;;
4285 esac
4286 fi
4287 MSGFMT=$ac_cv_path_MSGFMT
4288
4289 if test -n "$MSGFMT"; then
4290   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4291 echo "${ECHO_T}$MSGFMT" >&6
4292 else
4293   echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4295 fi
4296
4297   test -n "$MSGFMT" && break
4298 done
4299 test -n "$MSGFMT" || MSGFMT="no"
4300
4301 if test "$MSGFMT" = "no"
4302 then
4303    echo 'msgfmt program not found, disabling NLS !'
4304    USE_NLS=no
4305    USE_INCLUDED_LIBINTL=no
4306 #else
4307 #   AM_GNU_GETTEXT
4308 fi
4309
4310
4311 support_mysql=no
4312 support_sqlite=no
4313 support_smartalloc=yes
4314 support_readline=yes
4315 support_gnome=no
4316 support_static_tools=no
4317 support_static_fd=no
4318 support_static_sd=no
4319 support_static_dir=no
4320 support_static_cons=no
4321 build_client_only=no
4322 cats=
4323 db_name=Internal
4324 DB_NAME=bdb
4325
4326
4327 # -------------------------------------------
4328 # gnome (default off)
4329 # -------------------------------------------
4330 # Check whether --enable-gnome or --disable-gnome was given.
4331 if test "${enable_gnome+set}" = set; then
4332   enableval="$enable_gnome"
4333   if test x$enableval = xyes; then
4334     support_gnome=yes
4335   fi
4336 fi;
4337
4338 GNOME_DIR=
4339 if test x$support_gnome = xyes; then
4340   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4341   pkg=$?
4342   if test $pkg = 0; then
4343      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4344      GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
4345      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4346      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4347
4348
4349
4350
4351      GNOME_DIR=src/gnome-console
4352   else
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4365 if test "${with_gnome_includes+set}" = set; then
4366   withval="$with_gnome_includes"
4367
4368         CFLAGS="$CFLAGS -I$withval"
4369
4370 fi;
4371
4372
4373 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4374 if test "${with_gnome_libs+set}" = set; then
4375   withval="$with_gnome_libs"
4376
4377         LDFLAGS="$LDFLAGS -L$withval"
4378         gnome_prefix=$withval
4379
4380 fi;
4381
4382
4383 # Check whether --with-gnome or --without-gnome was given.
4384 if test "${with_gnome+set}" = set; then
4385   withval="$with_gnome"
4386   if test x$withval = xyes; then
4387                         want_gnome=yes
4388                                                                         :
4389                 else
4390                         if test "x$withval" = xno; then
4391                                 want_gnome=no
4392                         else
4393                                 want_gnome=yes
4394                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4395                                 CFLAGS="$CFLAGS -I$withval/include"
4396                                 gnome_prefix=$withval/lib
4397                         fi
4398                 fi
4399 else
4400   want_gnome=yes
4401 fi;
4402
4403         if test "x$want_gnome" = xyes; then
4404
4405             # Extract the first word of "gnome-config", so it can be a program name with args.
4406 set dummy gnome-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   case $GNOME_CONFIG in
4413   [\\/]* | ?:[\\/]*)
4414   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4415   ;;
4416   *)
4417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422   for ac_exec_ext in '' $ac_executable_extensions; do
4423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426     break 2
4427   fi
4428 done
4429 done
4430
4431   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4432   ;;
4433 esac
4434 fi
4435 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4436
4437 if test -n "$GNOME_CONFIG"; then
4438   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4439 echo "${ECHO_T}$GNOME_CONFIG" >&6
4440 else
4441   echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4443 fi
4444
4445             if test "$GNOME_CONFIG" = "no"; then
4446               no_gnome_config="yes"
4447             else
4448               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4449 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4450               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4451                 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4453
4454
4455         # Extract the first word of "orbit-config", so it can be a program name with args.
4456 set dummy orbit-config; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   case $ORBIT_CONFIG in
4463   [\\/]* | ?:[\\/]*)
4464   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4465   ;;
4466   *)
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472   for ac_exec_ext in '' $ac_executable_extensions; do
4473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479 done
4480
4481   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4482   ;;
4483 esac
4484 fi
4485 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4486
4487 if test -n "$ORBIT_CONFIG"; then
4488   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4489 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495         # Extract the first word of "orbit-idl", so it can be a program name with args.
4496 set dummy orbit-idl; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   case $ORBIT_IDL in
4503   [\\/]* | ?:[\\/]*)
4504   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4505   ;;
4506   *)
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512   for ac_exec_ext in '' $ac_executable_extensions; do
4513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519 done
4520
4521   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4522   ;;
4523 esac
4524 fi
4525 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4526
4527 if test -n "$ORBIT_IDL"; then
4528   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4529 echo "${ECHO_T}$ORBIT_IDL" >&6
4530 else
4531   echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4536 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4537 if test "${gnome_cv_orbit_found+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540
4541                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4542                         gnome_cv_orbit_found=no
4543                 else
4544                         gnome_cv_orbit_found=yes
4545                 fi
4546
4547 fi
4548 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4549 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4550
4551
4552 if test x$gnome_cv_orbit_found = xyes; then
4553   HAVE_ORBIT_TRUE=
4554   HAVE_ORBIT_FALSE='#'
4555 else
4556   HAVE_ORBIT_TRUE='#'
4557   HAVE_ORBIT_FALSE=
4558 fi
4559         if test x$gnome_cv_orbit_found = xyes; then
4560
4561                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4562                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4563
4564
4565         else
4566                 if test xfail = xfailure; then
4567                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4568 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4569    { (exit 1); exit 1; }; }
4570                 fi
4571         fi
4572
4573         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4574 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4575 if test "${gnome_cv_gnorba_found+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578
4579                 gnome_cv_gnorba_found=no
4580                 if test x$gnome_cv_orbit_found = xyes; then
4581                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4582                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4583                         if test -n "$GNORBA_LIBS"; then
4584                                 gnome_cv_gnorba_found=yes
4585                         fi
4586                 fi
4587
4588 fi
4589 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4590 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4591
4592
4593 if test x$gnome_cv_gnorba_found = xyes; then
4594   HAVE_GNORBA_TRUE=
4595   HAVE_GNORBA_FALSE='#'
4596 else
4597   HAVE_GNORBA_TRUE='#'
4598   HAVE_GNORBA_FALSE=
4599 fi
4600         if test x$gnome_cv_orbit_found = xyes; then
4601
4602                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4603                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4604
4605
4606         else
4607                 if test xfail = xfailure; then
4608                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4609 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4610    { (exit 1); exit 1; }; }
4611                 fi
4612         fi
4613
4614                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4615                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4616                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4617                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4618                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4619                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4620                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4621
4622               else
4623                 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625                 no_gnome_config="yes"
4626               fi
4627             fi
4628
4629             if test x$exec_prefix = xNONE; then
4630                 if test x$prefix = xNONE; then
4631                     gnome_prefix=$ac_default_prefix/lib
4632                 else
4633                     gnome_prefix=$prefix/lib
4634                 fi
4635             else
4636                 gnome_prefix=`eval echo \`echo $libdir\``
4637             fi
4638
4639             if test "$no_gnome_config" = "yes"; then
4640               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4641 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4642               if test -f $gnome_prefix/gnomeConf.sh; then
4643                 echo "$as_me:$LINENO: result: found" >&5
4644 echo "${ECHO_T}found" >&6
4645                 echo "loading gnome configuration from" \
4646                      "$gnome_prefix/gnomeConf.sh"
4647                 . $gnome_prefix/gnomeConf.sh
4648
4649               else
4650                 echo "$as_me:$LINENO: result: not found" >&5
4651 echo "${ECHO_T}not found" >&6
4652                 if test xfail = xfail; then
4653                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4654 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4655    { (exit 1); exit 1; }; }
4656                 fi
4657               fi
4658             fi
4659         fi
4660
4661         if test -n ""; then
4662           n=""
4663           for i in $n; do
4664             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4665 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4666             case $i in
4667               applets)
4668
4669                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4670                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4671 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4672               docklets)
4673
4674                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4675                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4676 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4677               capplet)
4678
4679                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4680                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4681 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4682               *)
4683                 echo "$as_me:$LINENO: result: unknown library" >&5
4684 echo "${ECHO_T}unknown library" >&6
4685             esac
4686             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4687             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4688           done
4689         fi
4690
4691
4692     GNOME_DIR=src/gnome-console
4693   fi
4694 fi
4695
4696
4697
4698 # -------------------------------------------
4699 # smartalloc (default off)
4700 # -------------------------------------------
4701 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4702 if test "${enable_smartalloc+set}" = set; then
4703   enableval="$enable_smartalloc"
4704   if test x$enableval = xno; then
4705     support_smartalloc=no
4706   fi
4707 fi;
4708
4709 if test x$support_smartalloc = xyes; then
4710    cat >>confdefs.h <<\_ACEOF
4711 #define SMARTALLOC 1
4712 _ACEOF
4713
4714 fi
4715
4716 # -------------------------------------------
4717 # static-tools (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-static-tools or --disable-static-tools was given.
4720 if test "${enable_static_tools+set}" = set; then
4721   enableval="$enable_static_tools"
4722   if test x$enableval = xyes; then
4723      support_static_tools=yes
4724    fi
4725 fi;
4726
4727 TTOOL_LDFLAGS=
4728 if test x$support_static_tools = xyes; then
4729    TTOOL_LDFLAGS="-static"
4730 fi
4731
4732
4733 # -------------------------------------------
4734 # static-fd    (default off)
4735 # -------------------------------------------
4736 # Check whether --enable-static-fd or --disable-static-fd was given.
4737 if test "${enable_static_fd+set}" = set; then
4738   enableval="$enable_static_fd"
4739   if test x$enableval = xyes; then
4740      support_static_fd=yes
4741    fi
4742 fi;
4743
4744 STATIC_FD=
4745 if test x$support_static_fd = xyes; then
4746    STATIC_FD="static-bacula-fd"
4747 fi
4748
4749
4750 # -------------------------------------------
4751 # static-sd    (default off)
4752 # -------------------------------------------
4753 # Check whether --enable-static-sd or --disable-static-sd was given.
4754 if test "${enable_static_sd+set}" = set; then
4755   enableval="$enable_static_sd"
4756   if test x$enableval = xyes; then
4757      support_static_sd=yes
4758    fi
4759 fi;
4760
4761 STATIC_SD=
4762 if test x$support_static_sd = xyes; then
4763    STATIC_SD="static-bacula-sd"
4764 fi
4765
4766
4767 # -------------------------------------------
4768 # static-dir   (default off)
4769 # -------------------------------------------
4770 # Check whether --enable-static-dir or --disable-static-dir was given.
4771 if test "${enable_static_dir+set}" = set; then
4772   enableval="$enable_static_dir"
4773   if test x$enableval = xyes; then
4774      support_static_dir=yes
4775    fi
4776 fi;
4777
4778 STATIC_DIR=
4779 if test x$support_static_dir = xyes; then
4780    STATIC_DIR="static-bacula-dir"
4781 fi
4782
4783
4784 # -------------------------------------------
4785 # static-cons  (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-static-cons or --disable-static-cons was given.
4788 if test "${enable_static_cons+set}" = set; then
4789   enableval="$enable_static_cons"
4790   if test x$enableval = xyes; then
4791      support_static_cons=yes
4792    fi
4793 fi;
4794
4795 STATIC_CONS=
4796 if test x$support_static_cons = xyes; then
4797    STATIC_CONS="static-console"
4798 fi
4799
4800
4801 # -------------------------------------------
4802 # client_only  (default off)
4803 # -------------------------------------------
4804 # Check whether --enable-client-only or --disable-client-only was given.
4805 if test "${enable_client_only+set}" = set; then
4806   enableval="$enable_client_only"
4807   if test x$enableval = xyes; then
4808      build_client_only=yes
4809    fi
4810 fi;
4811 if test x$build_client_only = xno; then
4812    ALL_DIRS="subdirs"
4813 else
4814    ALL_DIRS=""
4815 fi
4816
4817
4818 # ---------------------------------------------------
4819 # Check for readline support/directory (default on)
4820 # ---------------------------------------------------
4821 # this allows you to turn it completely off
4822 # Check whether --enable-readline or --disable-readline was given.
4823 if test "${enable_readline+set}" = set; then
4824   enableval="$enable_readline"
4825   if test x$enableval = xno; then
4826     support_readline=no
4827   fi
4828 fi;
4829
4830 got_readline="no"
4831 READLINE_SRC=
4832 if test x$support_readline = xyes; then
4833    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4835 if test "${ac_cv_header_stdc+set}" = set; then
4836   echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838   cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4840 /* confdefs.h.  */
4841 _ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h.  */
4845 #include <stdlib.h>
4846 #include <stdarg.h>
4847 #include <string.h>
4848 #include <float.h>
4849
4850 int
4851 main ()
4852 {
4853
4854   ;
4855   return 0;
4856 }
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860   (eval $ac_compile) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -s conftest.$ac_objext'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; }; then
4870   ac_cv_header_stdc=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 ac_cv_header_stdc=no
4876 fi
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4878
4879 if test $ac_cv_header_stdc = yes; then
4880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881   cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <string.h>
4889
4890 _ACEOF
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892   $EGREP "memchr" >/dev/null 2>&1; then
4893   :
4894 else
4895   ac_cv_header_stdc=no
4896 fi
4897 rm -f conftest*
4898
4899 fi
4900
4901 if test $ac_cv_header_stdc = yes; then
4902   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903   cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 #include <stdlib.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914   $EGREP "free" >/dev/null 2>&1; then
4915   :
4916 else
4917   ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
4923 if test $ac_cv_header_stdc = yes; then
4924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925   if test "$cross_compiling" = yes; then
4926   :
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 /* confdefs.h.  */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h.  */
4935 #include <ctype.h>
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4939 #else
4940 # define ISLOWER(c) \
4941                    (('a' <= (c) && (c) <= 'i') \
4942                      || ('j' <= (c) && (c) <= 'r') \
4943                      || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4945 #endif
4946
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4948 int
4949 main ()
4950 {
4951   int i;
4952   for (i = 0; i < 256; i++)
4953     if (XOR (islower (i), ISLOWER (i))
4954         || toupper (i) != TOUPPER (i))
4955       exit(2);
4956   exit (0);
4957 }
4958 _ACEOF
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961   (eval $ac_link) 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; }; then
4970   :
4971 else
4972   echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 ( exit $ac_status )
4977 ac_cv_header_stdc=no
4978 fi
4979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4980 fi
4981 fi
4982 fi
4983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4985 if test $ac_cv_header_stdc = yes; then
4986
4987 cat >>confdefs.h <<\_ACEOF
4988 #define STDC_HEADERS 1
4989 _ACEOF
4990
4991 fi
4992
4993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5004                   inttypes.h stdint.h unistd.h
5005 do
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010   echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012   cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 $ac_includes_default
5020
5021 #include <$ac_header>
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025   (eval $ac_compile) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } &&
5029          { ac_try='test -s conftest.$ac_objext'
5030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031   (eval $ac_try) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); }; }; then
5035   eval "$as_ac_Header=yes"
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 eval "$as_ac_Header=no"
5041 fi
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047   cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5049 _ACEOF
5050
5051 fi
5052
5053 done
5054
5055
5056
5057 # Check whether --with-readline or --without-readline was given.
5058 if test "${with_readline+set}" = set; then
5059   withval="$with_readline"
5060
5061         case "$with_readline" in
5062         no) : ;;
5063         yes|*)
5064           if test "$with_readline" != "yes"; then
5065             CONS_INC="-I${with_readline}"
5066             CONS_LDFLAGS="-L$with_readline"
5067           else
5068              with_readline="/usr/include/readline"
5069           fi
5070           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 fi
5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5079 else
5080   # Is the header compilable?
5081 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5082 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091 #include <${with_readline}/readline.h>
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } &&
5099          { ac_try='test -s conftest.$ac_objext'
5100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101   (eval $ac_try) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; }; then
5105   ac_header_compiler=yes
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ac_header_compiler=no
5111 fi
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5115
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5118 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 /* confdefs.h.  */
5122 _ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h.  */
5126 #include <${with_readline}/readline.h>
5127 _ACEOF
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130   ac_status=$?
5131   grep -v '^ *+' conftest.er1 >conftest.err
5132   rm -f conftest.er1
5133   cat conftest.err >&5
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); } >/dev/null; then
5136   if test -s conftest.err; then
5137     ac_cpp_err=$ac_c_preproc_warn_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   ac_header_preproc=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   ac_header_preproc=no
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5155
5156 # So?  What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5158   yes:no )
5159     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5163     (
5164       cat <<\_ASBOX
5165 ## ------------------------------------ ##
5166 ## Report this to bug-autoconf@gnu.org. ##
5167 ## ------------------------------------ ##
5168 _ASBOX
5169     ) |
5170       sed "s/^/$as_me: WARNING:     /" >&2
5171     ;;
5172   no:yes )
5173     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5175     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5177     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5179     (
5180       cat <<\_ASBOX
5181 ## ------------------------------------ ##
5182 ## Report this to bug-autoconf@gnu.org. ##
5183 ## ------------------------------------ ##
5184 _ASBOX
5185     ) |
5186       sed "s/^/$as_me: WARNING:     /" >&2
5187     ;;
5188 esac
5189 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   eval "$as_ac_Header=$ac_header_preproc"
5195 fi
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5198
5199 fi
5200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201    cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_READLINE 1
5203 _ACEOF
5204
5205                CONS_LIBS="-lreadline -ltermcap"
5206                got_readline="yes"
5207
5208 else
5209    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5210 echo "$as_me: error: *** readline library missing" >&2;}
5211    { (exit 1); exit 1; }; }
5212
5213
5214 fi
5215
5216
5217           ;;
5218         esac
5219
5220 else
5221
5222        # check for standard readline library
5223        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5224   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5231 else
5232   # Is the header compilable?
5233 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 $ac_includes_default
5243 #include </usr/include/readline/readline.h>
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247   (eval $ac_compile) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_header_compiler=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_header_compiler=no
5263 fi
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6
5267
5268 # Is the header present?
5269 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5270 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 #include </usr/include/readline/readline.h>
5279 _ACEOF
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282   ac_status=$?
5283   grep -v '^ *+' conftest.er1 >conftest.err
5284   rm -f conftest.er1
5285   cat conftest.err >&5
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); } >/dev/null; then
5288   if test -s conftest.err; then
5289     ac_cpp_err=$ac_c_preproc_warn_flag
5290   else
5291     ac_cpp_err=
5292   fi
5293 else
5294   ac_cpp_err=yes
5295 fi
5296 if test -z "$ac_cpp_err"; then
5297   ac_header_preproc=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302   ac_header_preproc=no
5303 fi
5304 rm -f conftest.err conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6
5307
5308 # So?  What about this header?
5309 case $ac_header_compiler:$ac_header_preproc in
5310   yes:no )
5311     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5315     (
5316       cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5321     ) |
5322       sed "s/^/$as_me: WARNING:     /" >&2
5323     ;;
5324   no:yes )
5325     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5327     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5329     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5331     (
5332       cat <<\_ASBOX
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5336 _ASBOX
5337     ) |
5338       sed "s/^/$as_me: WARNING:     /" >&2
5339     ;;
5340 esac
5341 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5342 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5343 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5347 fi
5348 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5349 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5350
5351 fi
5352 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5353    cat >>confdefs.h <<\_ACEOF
5354 #define HAVE_READLINE 1
5355 _ACEOF
5356
5357            got_readline="yes"
5358            CONS_INC="-I/usr/include/readline"
5359            CONS_LIBS="-lreadline -ltermcap"
5360
5361 else
5362
5363            # Did not find standard library, so try Bacula's default
5364             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 fi
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373 else
5374   # Is the header compilable?
5375 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5376 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385 #include <${TOP_DIR}/depkgs/readline/readline.h>
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_header_compiler=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_header_compiler=no
5405 fi
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5408 echo "${ECHO_T}$ac_header_compiler" >&6
5409
5410 # Is the header present?
5411 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5412 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420 #include <${TOP_DIR}/depkgs/readline/readline.h>
5421 _ACEOF
5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5424   ac_status=$?
5425   grep -v '^ *+' conftest.er1 >conftest.err
5426   rm -f conftest.er1
5427   cat conftest.err >&5
5428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429   (exit $ac_status); } >/dev/null; then
5430   if test -s conftest.err; then
5431     ac_cpp_err=$ac_c_preproc_warn_flag
5432   else
5433     ac_cpp_err=
5434   fi
5435 else
5436   ac_cpp_err=yes
5437 fi
5438 if test -z "$ac_cpp_err"; then
5439   ac_header_preproc=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444   ac_header_preproc=no
5445 fi
5446 rm -f conftest.err conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5448 echo "${ECHO_T}$ac_header_preproc" >&6
5449
5450 # So?  What about this header?
5451 case $ac_header_compiler:$ac_header_preproc in
5452   yes:no )
5453     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5454 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5455     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5457     (
5458       cat <<\_ASBOX
5459 ## ------------------------------------ ##
5460 ## Report this to bug-autoconf@gnu.org. ##
5461 ## ------------------------------------ ##
5462 _ASBOX
5463     ) |
5464       sed "s/^/$as_me: WARNING:     /" >&2
5465     ;;
5466   no:yes )
5467     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5469     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5471     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5473     (
5474       cat <<\_ASBOX
5475 ## ------------------------------------ ##
5476 ## Report this to bug-autoconf@gnu.org. ##
5477 ## ------------------------------------ ##
5478 _ASBOX
5479     ) |
5480       sed "s/^/$as_me: WARNING:     /" >&2
5481     ;;
5482 esac
5483 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5484 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   eval "$as_ac_Header=$ac_header_preproc"
5489 fi
5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5492
5493 fi
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495    cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_READLINE 1
5497 _ACEOF
5498
5499                  got_readline="yes"
5500                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5501                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5502                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5503                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5504
5505 else
5506    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5507 echo "$as_me: error: *** readline library missing" >&2;}
5508    { (exit 1); exit 1; }; }
5509
5510
5511 fi
5512
5513
5514
5515
5516 fi
5517
5518
5519
5520
5521 fi;
5522 fi
5523
5524
5525
5526
5527
5528 # Minimal stuff for readline Makefile configuration
5529 MAKE_SHELL=/bin/sh
5530
5531
5532 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5534 if test "${ac_cv_header_stat_broken+set}" = set; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544 #include <sys/types.h>
5545 #include <sys/stat.h>
5546
5547 #if defined(S_ISBLK) && defined(S_IFDIR)
5548 # if S_ISBLK (S_IFDIR)
5549 You lose.
5550 # endif
5551 #endif
5552
5553 #if defined(S_ISBLK) && defined(S_IFCHR)
5554 # if S_ISBLK (S_IFCHR)
5555 You lose.
5556 # endif
5557 #endif
5558
5559 #if defined(S_ISLNK) && defined(S_IFREG)
5560 # if S_ISLNK (S_IFREG)
5561 You lose.
5562 # endif
5563 #endif
5564
5565 #if defined(S_ISSOCK) && defined(S_IFREG)
5566 # if S_ISSOCK (S_IFREG)
5567 You lose.
5568 # endif
5569 #endif
5570
5571 _ACEOF
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573   $EGREP "You lose" >/dev/null 2>&1; then
5574   ac_cv_header_stat_broken=yes
5575 else
5576   ac_cv_header_stat_broken=no
5577 fi
5578 rm -f conftest*
5579
5580 fi
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5582 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5583 if test $ac_cv_header_stat_broken = yes; then
5584
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STAT_MACROS_BROKEN 1
5587 _ACEOF
5588
5589 fi
5590
5591
5592
5593
5594
5595
5596 ac_header_dirent=no
5597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5598   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602   echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604   cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 #include <sys/types.h>
5612 #include <$ac_hdr>
5613
5614 int
5615 main ()
5616 {
5617 if ((DIR *) 0)
5618 return 0;
5619   ;
5620   return 0;
5621 }
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625   (eval $ac_compile) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); } &&
5629          { ac_try='test -s conftest.$ac_objext'
5630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631   (eval $ac_try) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); }; }; then
5635   eval "$as_ac_Header=yes"
5636 else
5637   echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 eval "$as_ac_Header=no"
5641 fi
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647   cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5649 _ACEOF
5650
5651 ac_header_dirent=$ac_hdr; break
5652 fi
5653
5654 done
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5659 if test "${ac_cv_search_opendir+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_func_search_save_LIBS=$LIBS
5663 ac_cv_search_opendir=no
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5666 /* confdefs.h.  */
5667 _ACEOF
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h.  */
5671
5672 /* Override any gcc2 internal prototype to avoid an error.  */
5673 #ifdef __cplusplus
5674 extern "C"
5675 #endif
5676 /* We use char because int might match the return type of a gcc2
5677    builtin and then its argument prototype would still apply.  */
5678 char opendir ();
5679 int
5680 main ()
5681 {
5682 opendir ();
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689   (eval $ac_link) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); } &&
5693          { ac_try='test -s conftest$ac_exeext'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; }; then
5699   ac_cv_search_opendir="none required"
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5703
5704 fi
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_opendir" = no; then
5707   for ac_lib in dir; do
5708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5709     cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716
5717 /* Override any gcc2 internal prototype to avoid an error.  */
5718 #ifdef __cplusplus
5719 extern "C"
5720 #endif
5721 /* We use char because int might match the return type of a gcc2
5722    builtin and then its argument prototype would still apply.  */
5723 char opendir ();
5724 int
5725 main ()
5726 {
5727 opendir ();
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734   (eval $ac_link) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } &&
5738          { ac_try='test -s conftest$ac_exeext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_search_opendir="-l$ac_lib"
5745 break
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 fi
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752   done
5753 fi
5754 LIBS=$ac_func_search_save_LIBS
5755 fi
5756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5758 if test "$ac_cv_search_opendir" != no; then
5759   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5760
5761 fi
5762
5763 else
5764   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5766 if test "${ac_cv_search_opendir+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_opendir=no
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778
5779 /* Override any gcc2 internal prototype to avoid an error.  */
5780 #ifdef __cplusplus
5781 extern "C"
5782 #endif
5783 /* We use char because int might match the return type of a gcc2
5784    builtin and then its argument prototype would still apply.  */
5785 char opendir ();
5786 int
5787 main ()
5788 {
5789 opendir ();
5790   ;
5791   return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796   (eval $ac_link) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -s conftest$ac_exeext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_cv_search_opendir="none required"
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 fi
5812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5813 if test "$ac_cv_search_opendir" = no; then
5814   for ac_lib in x; do
5815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5816     cat >conftest.$ac_ext <<_ACEOF
5817 #line $LINENO "configure"
5818 /* confdefs.h.  */
5819 _ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h.  */
5823
5824 /* Override any gcc2 internal prototype to avoid an error.  */
5825 #ifdef __cplusplus
5826 extern "C"
5827 #endif
5828 /* We use char because int might match the return type of a gcc2
5829    builtin and then its argument prototype would still apply.  */
5830 char opendir ();
5831 int
5832 main ()
5833 {
5834 opendir ();
5835   ;
5836   return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841   (eval $ac_link) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); } &&
5845          { ac_try='test -s conftest$ac_exeext'
5846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847   (eval $ac_try) 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }; }; then
5851   ac_cv_search_opendir="-l$ac_lib"
5852 break
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 fi
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5859   done
5860 fi
5861 LIBS=$ac_func_search_save_LIBS
5862 fi
5863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5865 if test "$ac_cv_search_opendir" != no; then
5866   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5867
5868 fi
5869
5870 fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5882 do
5883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5884 echo "$as_me:$LINENO: checking for $ac_func" >&5
5885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5886 if eval "test \"\${$as_ac_var+set}\" = set"; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 /* confdefs.h.  */
5892 _ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h.  */
5896 /* System header to define __stub macros and hopefully few prototypes,
5897     which can conflict with char $ac_func (); below.
5898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899     <limits.h> exists even on freestanding compilers.  */
5900 #ifdef __STDC__
5901 # include <limits.h>
5902 #else
5903 # include <assert.h>
5904 #endif
5905 /* Override any gcc2 internal prototype to avoid an error.  */
5906 #ifdef __cplusplus
5907 extern "C"
5908 {
5909 #endif
5910 /* We use char because int might match the return type of a gcc2
5911    builtin and then its argument prototype would still apply.  */
5912 char $ac_func ();
5913 /* The GNU C library defines this for functions which it implements
5914     to always fail with ENOSYS.  Some functions are actually named
5915     something starting with __ and the normal name is an alias.  */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5917 choke me
5918 #else
5919 char (*f) () = $ac_func;
5920 #endif
5921 #ifdef __cplusplus
5922 }
5923 #endif
5924
5925 int
5926 main ()
5927 {
5928 return f != $ac_func;
5929   ;
5930   return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935   (eval $ac_link) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } &&
5939          { ac_try='test -s conftest$ac_exeext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   eval "$as_ac_var=yes"
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 eval "$as_ac_var=no"
5951 fi
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5956 if test `eval echo '${'$as_ac_var'}'` = yes; then
5957   cat >>confdefs.h <<_ACEOF
5958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5959 _ACEOF
5960
5961 fi
5962 done
5963
5964
5965 for ac_func in nanosleep
5966 do
5967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 /* System header to define __stub macros and hopefully few prototypes,
5981     which can conflict with char $ac_func (); below.
5982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983     <limits.h> exists even on freestanding compilers.  */
5984 #ifdef __STDC__
5985 # include <limits.h>
5986 #else
5987 # include <assert.h>
5988 #endif
5989 /* Override any gcc2 internal prototype to avoid an error.  */
5990 #ifdef __cplusplus
5991 extern "C"
5992 {
5993 #endif
5994 /* We use char because int might match the return type of a gcc2
5995    builtin and then its argument prototype would still apply.  */
5996 char $ac_func ();
5997 /* The GNU C library defines this for functions which it implements
5998     to always fail with ENOSYS.  Some functions are actually named
5999     something starting with __ and the normal name is an alias.  */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 choke me
6002 #else
6003 char (*f) () = $ac_func;
6004 #endif
6005 #ifdef __cplusplus
6006 }
6007 #endif
6008
6009 int
6010 main ()
6011 {
6012 return f != $ac_func;
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -s conftest$ac_exeext'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; }; then
6029   eval "$as_ac_var=yes"
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034 eval "$as_ac_var=no"
6035 fi
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6037 fi
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6040 if test `eval echo '${'$as_ac_var'}'` = yes; then
6041   cat >>confdefs.h <<_ACEOF
6042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6043 _ACEOF
6044
6045 fi
6046 done
6047
6048
6049
6050 for ac_header in varargs.h
6051 do
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054   echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 fi
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6061 else
6062   # Is the header compilable?
6063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072 $ac_includes_default
6073 #include <$ac_header>
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077   (eval $ac_compile) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -s conftest.$ac_objext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_header_compiler=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 ac_header_compiler=no
6093 fi
6094 rm -f conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6
6097
6098 # Is the header present?
6099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108 #include <$ac_header>
6109 _ACEOF
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6112   ac_status=$?
6113   grep -v '^ *+' conftest.er1 >conftest.err
6114   rm -f conftest.er1
6115   cat conftest.err >&5
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } >/dev/null; then
6118   if test -s conftest.err; then
6119     ac_cpp_err=$ac_c_preproc_warn_flag
6120   else
6121     ac_cpp_err=
6122   fi
6123 else
6124   ac_cpp_err=yes
6125 fi
6126 if test -z "$ac_cpp_err"; then
6127   ac_header_preproc=yes
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132   ac_header_preproc=no
6133 fi
6134 rm -f conftest.err conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6136 echo "${ECHO_T}$ac_header_preproc" >&6
6137
6138 # So?  What about this header?
6139 case $ac_header_compiler:$ac_header_preproc in
6140   yes:no )
6141     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6145     (
6146       cat <<\_ASBOX
6147 ## ------------------------------------ ##
6148 ## Report this to bug-autoconf@gnu.org. ##
6149 ## ------------------------------------ ##
6150 _ASBOX
6151     ) |
6152       sed "s/^/$as_me: WARNING:     /" >&2
6153     ;;
6154   no:yes )
6155     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6161     (
6162       cat <<\_ASBOX
6163 ## ------------------------------------ ##
6164 ## Report this to bug-autoconf@gnu.org. ##
6165 ## ------------------------------------ ##
6166 _ASBOX
6167     ) |
6168       sed "s/^/$as_me: WARNING:     /" >&2
6169     ;;
6170 esac
6171 echo "$as_me:$LINENO: checking for $ac_header" >&5
6172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   eval "$as_ac_Header=$ac_header_preproc"
6177 fi
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6180
6181 fi
6182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183   cat >>confdefs.h <<_ACEOF
6184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185 _ACEOF
6186
6187 fi
6188
6189 done
6190
6191
6192 # End of readline stuff
6193 # -----------------------------------------------------------------------
6194
6195
6196 # ---------------------------------------------------
6197 # Check for GMP support/directory
6198 # ---------------------------------------------------
6199 #GMP_SRC=
6200 #local_gmp="no"
6201 #AC_ARG_WITH(gmp,
6202 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6203 #  [
6204 #     case "$with_gmp" in
6205 #     no) : ;;
6206 #     yes|*)
6207 #       if test "$with_gmp" != "yes"; then
6208 #         GMP_INC="-I$with_gmp"
6209 #         GMP_LIBS="-lgmp"
6210 #         GMP_LDFLAGS="-L$with_gmp"
6211 #       else
6212 #          with_gmp="/usr/include"
6213 #       fi
6214 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6215 #          [ AC_MSG_RESULT(yes)
6216 #            AC_DEFINE(HAVE_GMP)
6217 #            GMP_LIBS="-lgmp"
6218 #            got_gmp="yes"
6219 #          ],
6220 #          [ AC_MSG_ERROR([*** gmp library missing])
6221 #          ]
6222 #       )
6223 #       ;;
6224 #     esac
6225 #  ],[
6226 #    # check for standard gmp library
6227 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6228 #    [ AC_MSG_RESULT(yes)
6229 #      AC_DEFINE(HAVE_GMP)
6230 #      got_gmp="yes"
6231 #      GMP_INC=
6232 #      GMP_LIBS="-lgmp"
6233 #    ], [
6234 #      # Did not find standard library, so use our own
6235 #      AC_MSG_RESULT(yes)
6236 #      AC_DEFINE(HAVE_GMP)
6237 #      got_gmp="yes"
6238 #      local_gmp="yes"
6239 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6240 #      GMP_LIBS="-lgmp"
6241 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6242 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6243 #    ])
6244 #  ]
6245 #)
6246 #AC_SUBST(GMP_INC)
6247 #AC_SUBST(GMP_LIBS)
6248 #AC_SUBST(GMP_LDFLAGS)
6249 #AC_SUBST(GMP_SRC)
6250
6251 # End of GMP stuff
6252 # -----------------------------------------------------------------------
6253
6254
6255 # ---------------------------------------------------
6256 # Check for CWEB support/directory
6257 # ---------------------------------------------------
6258 #CWEB_SRC=
6259 #CWEB=/bin
6260 #local_cweb="no"
6261 #AC_ARG_WITH(cweb,
6262 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6263 #  [
6264 #     case "$with_cweb" in
6265 #     no) : ;;
6266 #     yes|*)
6267 #       if test "$with_cweb" != "yes"; then
6268 #         CWEB_INC="-I$with_cweb"
6269 #         CWEB_LIBS="-lcweb"
6270 #         CWEB_LDFLAGS="-L$with_cweb"
6271 #       else
6272 #          with_cweb="/usr/include"
6273 #       fi
6274 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6275 #          [ AC_MSG_RESULT(yes)
6276 #            AC_DEFINE(HAVE_CWEB)
6277 #            CWEB_LIBS="-lcweb"
6278 #            got_cweb="yes"
6279 #          ],
6280 #          [ AC_MSG_ERROR([*** cweb library missing])
6281 #          ]
6282 #       )
6283 #       ;;
6284 #     esac
6285 #  ],[
6286 #    # check for standard cweb library
6287 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6288 #    [ AC_MSG_RESULT(yes)
6289 #      AC_DEFINE(HAVE_CWEB)
6290 #      got_cweb="yes"
6291 #      CWEB_INC=
6292 #      CWEB_LIBS="-lcweb"
6293 #    ], [
6294 #      # Did not find starndard library, so use our own
6295 #      AC_MSG_RESULT(yes)
6296 #      AC_DEFINE(HAVE_CWEB)
6297 #      got_cweb="yes"
6298 #      local_cweb="yes"
6299 #      CWEB=${TOP_DIR}/depkgs/cweb
6300 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6301 #      CWEB_LIBS="-lcweb"
6302 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6303 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6304 #    ])
6305 #  ]
6306 #)
6307 #AC_SUBST(CWEB)
6308 #AC_SUBST(CWEB_INC)
6309 #AC_SUBST(CWEB_LIBS)
6310 #AC_SUBST(CWEB_LDFLAGS)
6311 #AC_SUBST(CWEB_SRC)
6312
6313 # End of CWEB stuff
6314 # -----------------------------------------------------------------------
6315
6316
6317
6318 # -----------------------------------------------------------
6319 # Check whether user wants TCP wrappers support (default off)
6320 # -----------------------------------------------------------
6321 TCPW_MSG="no"
6322
6323 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6324 if test "${with_tcp_wrappers+set}" = set; then
6325   withval="$with_tcp_wrappers"
6326
6327     if test "x$withval" != "xno" ; then
6328        saved_LIBS="$LIBS"
6329        LIBS="$LIBS -lwrap -lnsl"
6330        echo "$as_me:$LINENO: checking for libwrap" >&5
6331 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6332        cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339  #include <tcpd.h>
6340              int deny_severity = 0;
6341              int allow_severity = 0;
6342              struct request_info *req;
6343 int
6344 main ()
6345 {
6346  hosts_access(req);
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353   (eval $ac_link) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363
6364             echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6
6366             cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_LIBWRAP 1
6368 _ACEOF
6369
6370             TCPW_MSG="yes"
6371
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6377 echo "$as_me: error: *** libwrap missing" >&2;}
6378    { (exit 1); exit 1; }; }
6379
6380 fi
6381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6382     fi
6383
6384
6385 fi;
6386
6387 # ------------------------------------------
6388 # Where to place working dir
6389 # ------------------------------------------
6390 working_dir=`eval echo ${sysconfdir}/working`
6391
6392 # Check whether --with-working-dir or --without-working-dir was given.
6393 if test "${with_working_dir+set}" = set; then
6394   withval="$with_working_dir"
6395
6396        if test "x$withval" != "xno" ; then
6397               working_dir=$withval
6398        fi
6399
6400
6401 fi;
6402
6403
6404
6405
6406 # ------------------------------------------
6407 # Where to place scriptdir (script files)
6408 # ------------------------------------------
6409 scriptdir=`eval echo ${sysconfdir}`
6410
6411 # Check whether --with-scriptdir or --without-scriptdir was given.
6412 if test "${with_scriptdir+set}" = set; then
6413   withval="$with_scriptdir"
6414
6415        if test "x$withval" != "xno" ; then
6416               scriptdir=$withval
6417        fi
6418
6419
6420 fi;
6421
6422
6423
6424
6425 # ------------------------------------------
6426 # Where to send dump email
6427 # ------------------------------------------
6428 dump_email=root@localhost
6429
6430 # Check whether --with-dump-email or --without-dump-email was given.
6431 if test "${with_dump_email+set}" = set; then
6432   withval="$with_dump_email"
6433
6434        if test "x$withval" != "xno" ; then
6435               dump_email=$withval
6436        fi
6437
6438
6439 fi;
6440
6441
6442
6443 # ------------------------------------------
6444 # Where to send job email
6445 # ------------------------------------------
6446 job_email=root@localhost
6447
6448 # Check whether --with-job-email or --without-job-email was given.
6449 if test "${with_job_email+set}" = set; then
6450   withval="$with_job_email"
6451
6452        if test "x$withval" != "xno" ; then
6453               job_email=$withval
6454        fi
6455
6456
6457 fi;
6458
6459
6460
6461 # ------------------------------------------
6462 # Where to find smtp host
6463 # ------------------------------------------
6464 smtp_host=localhost
6465
6466 # Check whether --with-smtp_host or --without-smtp_host was given.
6467 if test "${with_smtp_host+set}" = set; then
6468   withval="$with_smtp_host"
6469
6470        if test "x$withval" != "xno" ; then
6471               smtp_host=$withval
6472        fi
6473
6474
6475 fi;
6476
6477
6478
6479
6480 # ------------------------------------
6481 # Where to place pid files
6482 # ------------------------------------
6483 piddir=/var/run
6484
6485 # Check whether --with-pid-dir or --without-pid-dir was given.
6486 if test "${with_pid_dir+set}" = set; then
6487   withval="$with_pid_dir"
6488
6489         if test "x$withval" != "xno" ; then
6490             piddir=$withval
6491         fi
6492
6493
6494 fi;
6495
6496 cat >>confdefs.h <<_ACEOF
6497 #define _PATH_BACULA_PIDDIR "$piddir"
6498 _ACEOF
6499
6500
6501
6502
6503 # ------------------------------------
6504 # Where to place subsys "lock file"
6505 # ------------------------------------
6506 subsysdir=/var/run/subsys
6507
6508 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6509 if test "${with_subsys_dir+set}" = set; then
6510   withval="$with_subsys_dir"
6511
6512         if test "x$withval" != "xno" ; then
6513             subsysdir=$withval
6514         fi
6515
6516
6517 fi;
6518
6519
6520
6521
6522
6523 # ------------------------------------
6524 # Where to start assigning ports
6525 # ------------------------------------
6526 baseport=9101
6527
6528 # Check whether --with-baseport or --without-baseport was given.
6529 if test "${with_baseport+set}" = set; then
6530   withval="$with_baseport"
6531
6532         if test "x$withval" != "xno" ; then
6533              baseport=$withval
6534         fi
6535
6536
6537 fi;
6538
6539
6540 dir_port=`expr $baseport`
6541 fd_port=`expr $baseport + 1`
6542 sd_port=`expr $fd_port + 1`
6543
6544
6545
6546
6547
6548
6549 # ------------------------------------------
6550 # Generate passwords
6551 # ------------------------------------------
6552 dir_password=
6553
6554 # Check whether --with-dir-password or --without-dir-password was given.
6555 if test "${with_dir_password+set}" = set; then
6556   withval="$with_dir_password"
6557
6558        if test "x$withval" != "xno" ; then
6559            dir_password=$withval
6560        fi
6561
6562
6563 fi;
6564
6565 if test "x$dir_password" = "x" ; then
6566    if test "x$OPENSSL" = "xnone" ; then
6567 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6568       key=`autoconf/randpass 33`
6569    else
6570       key=`openssl rand -base64 33`
6571    fi
6572    dir_password=$key
6573 fi
6574
6575 fd_password=
6576
6577 # Check whether --with-fd-password or --without-fd-password was given.
6578 if test "${with_fd_password+set}" = set; then
6579   withval="$with_fd_password"
6580
6581        if test "x$withval" != "xno" ; then
6582            fd_password=$withval
6583        fi
6584
6585
6586 fi;
6587
6588 if test "x$fd_password" = "x" ; then
6589    if test "x$OPENSSL" = "xnone" ; then
6590 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6591       key=`autoconf/randpass 37`
6592    else
6593       key=`openssl rand -base64 33`
6594    fi
6595    fd_password=$key
6596 fi
6597
6598 sd_password=
6599
6600 # Check whether --with-sd-password or --without-sd-password was given.
6601 if test "${with_sd_password+set}" = set; then
6602   withval="$with_sd_password"
6603
6604        if test "x$withval" != "xno" ; then
6605            sd_password=$withval
6606        fi
6607
6608
6609 fi;
6610
6611 if test "x$sd_password" = "x" ; then
6612    if test "x$OPENSSL" = "xnone" ; then
6613 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6614       key=`autoconf/randpass 41`
6615    else
6616       key=`openssl rand -base64 33`
6617    fi
6618    sd_password=$key
6619 fi
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629 # ------------------------------------------------
6630 # Bacula check for various SQL database engines
6631 # ------------------------------------------------
6632
6633 db_found=no
6634 echo "$as_me:$LINENO: checking for MySQL support" >&5
6635 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6636
6637 # Check whether --with-mysql or --without-mysql was given.
6638 if test "${with_mysql+set}" = set; then
6639   withval="$with_mysql"
6640
6641   if test "$withval" != "no"; then
6642         if test "$withval" = "yes"; then
6643                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6644                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6645                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6646                         MYSQL_BINDIR=/usr/local/mysql/bin
6647                 elif test -f /usr/include/mysql/mysql.h; then
6648                         MYSQL_INCDIR=/usr/include/mysql
6649                         MYSQL_LIBDIR=/usr/lib/mysql
6650                         MYSQL_BINDIR=/usr/bin
6651                 elif test -f /usr/include/mysql.h; then
6652                         MYSQL_INCDIR=/usr/include
6653                         MYSQL_LIBDIR=/usr/lib
6654                         MYSQL_BINDIR=/usr/bin
6655                 elif test -f /usr/local/include/mysql/mysql.h; then
6656                         MYSQL_INCDIR=/usr/local/include/mysql
6657                         MYSQL_LIBDIR=/usr/local/lib/mysql
6658                         MYSQL_BINDIR=/usr/local/bin
6659                 elif test -f /usr/local/include/mysql.h; then
6660                         MYSQL_INCDIR=/usr/local/include
6661                         MYSQL_LIBDIR=/usr/local/lib
6662                         MYSQL_BINDIR=/usr/local/bin
6663                 else
6664                    echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6
6666                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6667 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6668    { (exit 1); exit 1; }; }
6669                 fi
6670         else
6671                 if test -f $withval/include/mysql/mysql.h; then
6672                         MYSQL_INCDIR=$withval/include/mysql
6673                         MYSQL_LIBDIR=$withval/lib/mysql
6674                         MYSQL_BINDIR=$withval/bin
6675                 elif test -f $withval/include/mysql.h; then
6676                         MYSQL_INCDIR=$withval/include
6677                         MYSQL_LIBDIR=$withval/lib
6678                         MYSQL_BINDIR=$withval/bin
6679                 else
6680                    echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6
6682                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6683 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6684    { (exit 1); exit 1; }; }
6685                 fi
6686         fi
6687     SQL_INCLUDE=-I$MYSQL_INCDIR
6688     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6689     SQL_BINDIR=$MYSQL_BINDIR
6690
6691     cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_MYSQL 1
6693 _ACEOF
6694
6695     echo "$as_me:$LINENO: result: yes" >&5
6696 echo "${ECHO_T}yes" >&6
6697     db_found=yes
6698     support_mysql=yes
6699     db_name=MySQL
6700     DB_NAME=mysql
6701
6702   else
6703         echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6
6705   fi
6706
6707 else
6708
6709     echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6
6711
6712 fi;
6713
6714
6715 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6716 if test "${with_embedded_mysql+set}" = set; then
6717   withval="$with_embedded_mysql"
6718
6719   if test "$withval" != "no"; then
6720         if test "$withval" = "yes"; then
6721                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6722                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6723                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6724                         MYSQL_BINDIR=/usr/local/mysql/bin
6725                 elif test -f /usr/include/mysql/mysql.h; then
6726                         MYSQL_INCDIR=/usr/include/mysql
6727                         MYSQL_LIBDIR=/usr/lib/mysql
6728                         MYSQL_BINDIR=/usr/bin
6729                 elif test -f /usr/include/mysql.h; then
6730                         MYSQL_INCDIR=/usr/include
6731                         MYSQL_LIBDIR=/usr/lib
6732                         MYSQL_BINDIR=/usr/bin
6733                 elif test -f /usr/local/include/mysql/mysql.h; then
6734                         MYSQL_INCDIR=/usr/local/include/mysql
6735                         MYSQL_LIBDIR=/usr/local/lib/mysql
6736                         MYSQL_BINDIR=/usr/local/bin
6737                 elif test -f /usr/local/include/mysql.h; then
6738                         MYSQL_INCDIR=/usr/local/include
6739                         MYSQL_LIBDIR=/usr/local/lib
6740                         MYSQL_BINDIR=/usr/local/bin
6741                 else
6742                    echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6
6744                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6745 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6746    { (exit 1); exit 1; }; }
6747                 fi
6748         else
6749                 if test -f $withval/include/mysql/mysql.h; then
6750                         MYSQL_INCDIR=$withval/include/mysql
6751                         MYSQL_LIBDIR=$withval/lib/mysql
6752                         MYSQL_BINDIR=$withval/bin
6753                 elif test -f $withval/include/mysql.h; then
6754                         MYSQL_INCDIR=$withval/include
6755                         MYSQL_LIBDIR=$withval/lib
6756                         MYSQL_BINDIR=$withval/bin
6757                 else
6758                    echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6760                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6761 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6762    { (exit 1); exit 1; }; }
6763                 fi
6764         fi
6765     SQL_INCLUDE=-I$MYSQL_INCDIR
6766     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6767     SQL_BINDIR=$MYSQL_BINDIR
6768
6769     cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_MYSQL 1
6771 _ACEOF
6772
6773     cat >>confdefs.h <<\_ACEOF
6774 #define HAVE_EMBEDDED_MYSQL 1
6775 _ACEOF
6776
6777     echo "$as_me:$LINENO: result: yes" >&5
6778 echo "${ECHO_T}yes" >&6
6779     db_found=yes
6780     support_mysql=yes
6781     db_name=MySQL
6782     DB_NAME=mysql
6783
6784   else
6785         echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6
6787   fi
6788
6789 else
6790
6791   echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6
6793
6794 fi;
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804 # ------------------------------------------------
6805 # Bacula check for various SQL database engines
6806 # ------------------------------------------------
6807
6808 db_found=no
6809 echo "$as_me:$LINENO: checking for SQLite support" >&5
6810 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6811
6812 # Check whether --with-sqlite or --without-sqlite was given.
6813 if test "${with_sqlite+set}" = set; then
6814   withval="$with_sqlite"
6815
6816   if test "$withval" != "no"; then
6817         if test "$withval" = "yes"; then
6818                 if test -f /usr/local/include/sqlite.h; then
6819                         SQLITE_INCDIR=/usr/local/include
6820                         SQLITE_LIBDIR=/usr/local/lib
6821                         SQLITE_BINDIR=/usr/local/bin
6822                 elif test -f /usr/include/sqlite.h; then
6823                         SQLITE_INCDIR=/usr/include
6824                         SQLITE_LIBDIR=/usr/lib
6825                         SQLITE_BINDIR=/usr/bin
6826                 else
6827                    echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6
6829                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6830 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6831    { (exit 1); exit 1; }; }
6832                 fi
6833         else
6834                 if test -f $withval/sqlite.h; then
6835                         SQLITE_INCDIR=$withval
6836                         SQLITE_LIBDIR=$withval
6837                         SQLITE_BINDIR=$withval
6838                 else
6839                    echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6
6841                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6842 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6843    { (exit 1); exit 1; }; }
6844                 fi
6845         fi
6846     SQL_INCLUDE=-I$SQLITE_INCDIR
6847     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6848     SQL_BINDIR=$SQLITE_BINDIR
6849
6850     cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_SQLITE 1
6852 _ACEOF
6853
6854     echo "$as_me:$LINENO: result: yes" >&5
6855 echo "${ECHO_T}yes" >&6
6856     db_found=yes
6857     support_sqlite=yes
6858     db_name=SQLite
6859     DB_NAME=sqlite
6860
6861   else
6862         echo "$as_me:$LINENO: result: no" >&5
6863 echo "${ECHO_T}no" >&6
6864   fi
6865
6866 else
6867
6868   echo "$as_me:$LINENO: result: no" >&5
6869 echo "${ECHO_T}no" >&6
6870
6871 fi;
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881 cat >>confdefs.h <<\_ACEOF
6882 #define PROTOTYPES 1
6883 _ACEOF
6884
6885
6886 if test -z "$CFLAGS"; then
6887     if test -z "$CCOPTS"; then
6888         CCOPTS='-g -O2'
6889     fi
6890     CFLAGS="$CCOPTS"
6891 fi
6892
6893
6894
6895
6896 largefile_support="no"
6897
6898    # Check whether --enable-largefile or --disable-largefile was given.
6899 if test "${enable_largefile+set}" = set; then
6900   enableval="$enable_largefile"
6901
6902 fi;
6903    if test "$enable_largefile" != no; then
6904      if test -n "$ac_tool_prefix"; then
6905   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
6906 set dummy ${ac_tool_prefix}getconf; ac_word=$2
6907 echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6909 if test "${ac_cv_prog_GETCONF+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   if test -n "$GETCONF"; then
6913   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920   for ac_exec_ext in '' $ac_executable_extensions; do
6921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
6923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927 done
6928
6929 fi
6930 fi
6931 GETCONF=$ac_cv_prog_GETCONF
6932 if test -n "$GETCONF"; then
6933   echo "$as_me:$LINENO: result: $GETCONF" >&5
6934 echo "${ECHO_T}$GETCONF" >&6
6935 else
6936   echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6
6938 fi
6939
6940 fi
6941 if test -z "$ac_cv_prog_GETCONF"; then
6942   ac_ct_GETCONF=$GETCONF
6943   # Extract the first word of "getconf", so it can be a program name with args.
6944 set dummy getconf; ac_word=$2
6945 echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6947 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   if test -n "$ac_ct_GETCONF"; then
6951   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   for ac_exec_ext in '' $ac_executable_extensions; do
6959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960     ac_cv_prog_ac_ct_GETCONF="getconf"
6961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965 done
6966
6967 fi
6968 fi
6969 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
6970 if test -n "$ac_ct_GETCONF"; then
6971   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
6972 echo "${ECHO_T}$ac_ct_GETCONF" >&6
6973 else
6974   echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6
6976 fi
6977
6978   GETCONF=$ac_ct_GETCONF
6979 else
6980   GETCONF="$ac_cv_prog_GETCONF"
6981 fi
6982
6983      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
6984 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
6985 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
6989         ac_cv_sys_largefile_CFLAGS=no
6990         case "$host_os" in
6991            # IRIX 6.2 and later require cc -n32.
6992            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
6993              if test "$GCC" != yes; then
6994                ac_cv_sys_largefile_CFLAGS=-n32
6995              fi
6996              ac_save_CC="$CC"
6997              CC="$CC $ac_cv_sys_largefile_CFLAGS"
6998              cat >conftest.$ac_ext <<_ACEOF
6999 #line $LINENO "configure"
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005
7006 int
7007 main ()
7008 {
7009
7010   ;
7011   return 0;
7012 }
7013 _ACEOF
7014 rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7016   (eval $ac_link) 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } &&
7020          { ac_try='test -s conftest$ac_exeext'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; }; then
7026   :
7027 else
7028   echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 ac_cv_sys_largefile_CFLAGS=no
7032 fi
7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7034              CC="$ac_save_CC"
7035            esac
7036       }
7037 fi
7038 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7039 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7040      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7041 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7042 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7046         ac_cv_sys_largefile_LDFLAGS=no
7047
7048       }
7049 fi
7050 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7051 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7052      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7053 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7054 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7055   echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7058         ac_cv_sys_largefile_LIBS=no
7059
7060       }
7061 fi
7062 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7063 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7064
7065      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7066        case "$ac_flag" in
7067        no) ;;
7068        -D_FILE_OFFSET_BITS=*) ;;
7069        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7070        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7071        -D?* | -I?*)
7072          case "$ac_flag" in
7073    no) ;;
7074    ?*)
7075      case "$CPPFLAGS" in
7076      '') CPPFLAGS="$ac_flag" ;;
7077      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7078      esac ;;
7079    esac ;;
7080        *)
7081          case "$ac_flag" in
7082    no) ;;
7083    ?*)
7084      case "$CFLAGS" in
7085      '') CFLAGS="$ac_flag" ;;
7086      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7087      esac ;;
7088    esac ;;
7089        esac
7090      done
7091      case "$ac_cv_sys_largefile_LDFLAGS" in
7092    no) ;;
7093    ?*)
7094      case "$LDFLAGS" in
7095      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7096      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7097      esac ;;
7098    esac
7099      case "$ac_cv_sys_largefile_LIBS" in
7100    no) ;;
7101    ?*)
7102      case "$LIBS" in
7103      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7104      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7105      esac ;;
7106    esac
7107      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7108 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7109 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   ac_cv_sys_file_offset_bits=no
7113       case "$host_os" in
7114         # HP-UX 10.20 and later
7115         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7116           ac_cv_sys_file_offset_bits=64 ;;
7117         esac
7118       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7119         case "$ac_flag" in
7120         -D_FILE_OFFSET_BITS)
7121           ac_cv_sys_file_offset_bits=1 ;;
7122         -D_FILE_OFFSET_BITS=*)
7123           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7124         esac
7125       done
7126
7127 fi
7128 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7129 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7130    if test "$ac_cv_sys_file_offset_bits" != no; then
7131
7132 cat >>confdefs.h <<_ACEOF
7133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7134 _ACEOF
7135
7136    fi
7137      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7138 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7139 if test "${ac_cv_sys_largefile_source+set}" = set; then
7140   echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142   ac_cv_sys_largefile_source=no
7143       case "$host_os" in
7144         # HP-UX 10.20 and later
7145         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7146           ac_cv_sys_largefile_source=1 ;;
7147         esac
7148       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7149         case "$ac_flag" in
7150         -D_LARGEFILE_SOURCE)
7151           ac_cv_sys_largefile_source=1 ;;
7152         -D_LARGEFILE_SOURCE=*)
7153           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7154         esac
7155       done
7156
7157 fi
7158 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7159 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7160    if test "$ac_cv_sys_largefile_source" != no; then
7161
7162 cat >>confdefs.h <<_ACEOF
7163 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7164 _ACEOF
7165
7166    fi
7167      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7168 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7169 if test "${ac_cv_sys_large_files+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   ac_cv_sys_large_files=no
7173       case "$host_os" in
7174         # AIX 4.2 and later
7175         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7176           ac_cv_sys_large_files=1 ;;
7177         esac
7178       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7179         case "$ac_flag" in
7180         -D_LARGE_FILES)
7181           ac_cv_sys_large_files=1 ;;
7182         -D_LARGE_FILES=*)
7183           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7184         esac
7185       done
7186
7187 fi
7188 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7189 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7190    if test "$ac_cv_sys_large_files" != no; then
7191
7192 cat >>confdefs.h <<_ACEOF
7193 #define _LARGE_FILES $ac_cv_sys_large_files
7194 _ACEOF
7195
7196    fi
7197    fi
7198
7199
7200
7201 echo "$as_me:$LINENO: checking for X" >&5
7202 echo $ECHO_N "checking for X... $ECHO_C" >&6
7203
7204
7205 # Check whether --with-x or --without-x was given.
7206 if test "${with_x+set}" = set; then
7207   withval="$with_x"
7208
7209 fi;
7210 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7211 if test "x$with_x" = xno; then
7212   # The user explicitly disabled X.
7213   have_x=disabled
7214 else
7215   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7216     # Both variables are already set.
7217     have_x=yes
7218   else
7219     if test "${ac_cv_have_x+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   # One or both of the vars are not set, and there is no cached value.
7223 ac_x_includes=no ac_x_libraries=no
7224 rm -fr conftest.dir
7225 if mkdir conftest.dir; then
7226   cd conftest.dir
7227   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7228   cat >Imakefile <<'_ACEOF'
7229 acfindx:
7230         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7231 _ACEOF
7232   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7233     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7234     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7235     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7236     for ac_extension in a so sl; do
7237       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7238          test -f $ac_im_libdir/libX11.$ac_extension; then
7239         ac_im_usrlibdir=$ac_im_libdir; break
7240       fi
7241     done
7242     # Screen out bogus values from the imake configuration.  They are
7243     # bogus both because they are the default anyway, and because
7244     # using them would break gcc on systems where it needs fixed includes.
7245     case $ac_im_incroot in
7246         /usr/include) ;;
7247         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7248     esac
7249     case $ac_im_usrlibdir in
7250         /usr/lib | /lib) ;;
7251         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7252     esac
7253   fi
7254   cd ..
7255   rm -fr conftest.dir
7256 fi
7257
7258 # Standard set of common directories for X headers.
7259 # Check X11 before X11Rn because it is often a symlink to the current release.
7260 ac_x_header_dirs='
7261 /usr/X11/include
7262 /usr/X11R6/include
7263 /usr/X11R5/include
7264 /usr/X11R4/include
7265
7266 /usr/include/X11
7267 /usr/include/X11R6
7268 /usr/include/X11R5
7269 /usr/include/X11R4
7270
7271 /usr/local/X11/include
7272 /usr/local/X11R6/include
7273 /usr/local/X11R5/include
7274 /usr/local/X11R4/include
7275
7276 /usr/local/include/X11
7277 /usr/local/include/X11R6
7278 /usr/local/include/X11R5
7279 /usr/local/include/X11R4
7280
7281 /usr/X386/include
7282 /usr/x386/include
7283 /usr/XFree86/include/X11
7284
7285 /usr/include
7286 /usr/local/include
7287 /usr/unsupported/include
7288 /usr/athena/include
7289 /usr/local/x11r5/include
7290 /usr/lpp/Xamples/include
7291
7292 /usr/openwin/include
7293 /usr/openwin/share/include'
7294
7295 if test "$ac_x_includes" = no; then
7296   # Guess where to find include files, by looking for Intrinsic.h.
7297   # First, try using that file with no special directory specified.
7298   cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305 #include <X11/Intrinsic.h>
7306 _ACEOF
7307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } >/dev/null; then
7315   if test -s conftest.err; then
7316     ac_cpp_err=$ac_c_preproc_warn_flag
7317   else
7318     ac_cpp_err=
7319   fi
7320 else
7321   ac_cpp_err=yes
7322 fi
7323 if test -z "$ac_cpp_err"; then
7324   # We can compile using X headers with no special include directory.
7325 ac_x_includes=
7326 else
7327   echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330   for ac_dir in $ac_x_header_dirs; do
7331   if test -r "$ac_dir/X11/Intrinsic.h"; then
7332     ac_x_includes=$ac_dir
7333     break
7334   fi
7335 done
7336 fi
7337 rm -f conftest.err conftest.$ac_ext
7338 fi # $ac_x_includes = no
7339
7340 if test "$ac_x_libraries" = no; then
7341   # Check for the libraries.
7342   # See if we find them without any special options.
7343   # Don't add to $LIBS permanently.
7344   ac_save_LIBS=$LIBS
7345   LIBS="-lXt $LIBS"
7346   cat >conftest.$ac_ext <<_ACEOF
7347 #line $LINENO "configure"
7348 /* confdefs.h.  */
7349 _ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h.  */
7353 #include <X11/Intrinsic.h>
7354 int
7355 main ()
7356 {
7357 XtMalloc (0)
7358   ;
7359   return 0;
7360 }
7361 _ACEOF
7362 rm -f conftest.$ac_objext conftest$ac_exeext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7364   (eval $ac_link) 2>&5
7365   ac_status=$?
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); } &&
7368          { ac_try='test -s conftest$ac_exeext'
7369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370   (eval $ac_try) 2>&5
7371   ac_status=$?
7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); }; }; then
7374   LIBS=$ac_save_LIBS
7375 # We can link X programs with no special library path.
7376 ac_x_libraries=
7377 else
7378   echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 LIBS=$ac_save_LIBS
7382 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7383 do
7384   # Don't even attempt the hair of trying to link an X program!
7385   for ac_extension in a so sl; do
7386     if test -r $ac_dir/libXt.$ac_extension; then
7387       ac_x_libraries=$ac_dir
7388       break 2
7389     fi
7390   done
7391 done
7392 fi
7393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7394 fi # $ac_x_libraries = no
7395
7396 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7397   # Didn't find X anywhere.  Cache the known absence of X.
7398   ac_cv_have_x="have_x=no"
7399 else
7400   # Record where we found X for the cache.
7401   ac_cv_have_x="have_x=yes \
7402                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7403 fi
7404 fi
7405
7406   fi
7407   eval "$ac_cv_have_x"
7408 fi # $with_x != no
7409
7410 if test "$have_x" != yes; then
7411   echo "$as_me:$LINENO: result: $have_x" >&5
7412 echo "${ECHO_T}$have_x" >&6
7413   no_x=yes
7414 else
7415   # If each of the values was on the command line, it overrides each guess.
7416   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7417   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7418   # Update the cache value to reflect the command line values.
7419   ac_cv_have_x="have_x=yes \
7420                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7421   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7422 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7423 fi
7424
7425 if test "$no_x" = yes; then
7426   # Not all programs may use this symbol, but it does not hurt to define it.
7427
7428 cat >>confdefs.h <<\_ACEOF
7429 #define X_DISPLAY_MISSING 1
7430 _ACEOF
7431
7432   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7433 else
7434   if test -n "$x_includes"; then
7435     X_CFLAGS="$X_CFLAGS -I$x_includes"
7436   fi
7437
7438   # It would also be nice to do this for all -L options, not just this one.
7439   if test -n "$x_libraries"; then
7440     X_LIBS="$X_LIBS -L$x_libraries"
7441     # For Solaris; some versions of Sun CC require a space after -R and
7442     # others require no space.  Words are not sufficient . . . .
7443     case `(uname -sr) 2>/dev/null` in
7444     "SunOS 5"*)
7445       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7446 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7447       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7448       cat >conftest.$ac_ext <<_ACEOF
7449 #line $LINENO "configure"
7450 /* confdefs.h.  */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h.  */
7455
7456 int
7457 main ()
7458 {
7459
7460   ;
7461   return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext conftest$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466   (eval $ac_link) 2>&5
7467   ac_status=$?
7468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469   (exit $ac_status); } &&
7470          { ac_try='test -s conftest$ac_exeext'
7471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472   (eval $ac_try) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; }; then
7476   ac_R_nospace=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_R_nospace=no
7482 fi
7483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7484       if test $ac_R_nospace = yes; then
7485         echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6
7487         X_LIBS="$X_LIBS -R$x_libraries"
7488       else
7489         LIBS="$ac_xsave_LIBS -R $x_libraries"
7490         cat >conftest.$ac_ext <<_ACEOF
7491 #line $LINENO "configure"
7492 /* confdefs.h.  */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h.  */
7497
7498 int
7499 main ()
7500 {
7501
7502   ;
7503   return 0;
7504 }
7505 _ACEOF
7506 rm -f conftest.$ac_objext conftest$ac_exeext
7507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7508   (eval $ac_link) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } &&
7512          { ac_try='test -s conftest$ac_exeext'
7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514   (eval $ac_try) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }; }; then
7518   ac_R_space=yes
7519 else
7520   echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 ac_R_space=no
7524 fi
7525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7526         if test $ac_R_space = yes; then
7527           echo "$as_me:$LINENO: result: yes" >&5
7528 echo "${ECHO_T}yes" >&6
7529           X_LIBS="$X_LIBS -R $x_libraries"
7530         else
7531           echo "$as_me:$LINENO: result: neither works" >&5
7532 echo "${ECHO_T}neither works" >&6
7533         fi
7534       fi
7535       LIBS=$ac_xsave_LIBS
7536     esac
7537   fi
7538
7539   # Check for system-dependent libraries X programs must link with.
7540   # Do this before checking for the system-independent R6 libraries
7541   # (-lICE), since we may need -lsocket or whatever for X linking.
7542
7543   if test "$ISC" = yes; then
7544     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7545   else
7546     # Martyn Johnson says this is needed for Ultrix, if the X
7547     # libraries were built with DECnet support.  And Karl Berry says
7548     # the Alpha needs dnet_stub (dnet does not exist).
7549     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7550     cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557
7558 /* Override any gcc2 internal prototype to avoid an error.  */
7559 #ifdef __cplusplus
7560 extern "C"
7561 #endif
7562 /* We use char because int might match the return type of a gcc2
7563    builtin and then its argument prototype would still apply.  */
7564 char XOpenDisplay ();
7565 int
7566 main ()
7567 {
7568 XOpenDisplay ();
7569   ;
7570   return 0;
7571 }
7572 _ACEOF
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7575   (eval $ac_link) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); } &&
7579          { ac_try='test -s conftest$ac_exeext'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; }; then
7585   :
7586 else
7587   echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7589
7590 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7591 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7592 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   ac_check_lib_save_LIBS=$LIBS
7596 LIBS="-ldnet  $LIBS"
7597 cat >conftest.$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7599 /* confdefs.h.  */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h.  */
7604
7605 /* Override any gcc2 internal prototype to avoid an error.  */
7606 #ifdef __cplusplus
7607 extern "C"
7608 #endif
7609 /* We use char because int might match the return type of a gcc2
7610    builtin and then its argument prototype would still apply.  */
7611 char dnet_ntoa ();
7612 int
7613 main ()
7614 {
7615 dnet_ntoa ();
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622   (eval $ac_link) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } &&
7626          { ac_try='test -s conftest$ac_exeext'
7627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628   (eval $ac_try) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); }; }; then
7632   ac_cv_lib_dnet_dnet_ntoa=yes
7633 else
7634   echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7636
7637 ac_cv_lib_dnet_dnet_ntoa=no
7638 fi
7639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7640 LIBS=$ac_check_lib_save_LIBS
7641 fi
7642 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7643 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7644 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7645   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7646 fi
7647
7648     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7649       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7650 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7651 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   ac_check_lib_save_LIBS=$LIBS
7655 LIBS="-ldnet_stub  $LIBS"
7656 cat >conftest.$ac_ext <<_ACEOF
7657 #line $LINENO "configure"
7658 /* confdefs.h.  */
7659 _ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h.  */
7663
7664 /* Override any gcc2 internal prototype to avoid an error.  */
7665 #ifdef __cplusplus
7666 extern "C"
7667 #endif
7668 /* We use char because int might match the return type of a gcc2
7669    builtin and then its argument prototype would still apply.  */
7670 char dnet_ntoa ();
7671 int
7672 main ()
7673 {
7674 dnet_ntoa ();
7675   ;
7676   return 0;
7677 }
7678 _ACEOF
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681   (eval $ac_link) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); } &&
7685          { ac_try='test -s conftest$ac_exeext'
7686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687   (eval $ac_try) 2>&5
7688   ac_status=$?
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); }; }; then
7691   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7692 else
7693   echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cv_lib_dnet_stub_dnet_ntoa=no
7697 fi
7698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7700 fi
7701 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7702 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7703 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7704   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7705 fi
7706
7707     fi
7708 fi
7709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7710     LIBS="$ac_xsave_LIBS"
7711
7712     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7713     # to get the SysV transport functions.
7714     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7715     # needs -lnsl.
7716     # The nsl library prevents programs from opening the X display
7717     # on Irix 5.2, according to T.E. Dickey.
7718     # The functions gethostbyname, getservbyname, and inet_addr are
7719     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7720     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7721 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7722 if test "${ac_cv_func_gethostbyname+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   cat >conftest.$ac_ext <<_ACEOF
7726 #line $LINENO "configure"
7727 /* confdefs.h.  */
7728 _ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h.  */
7732 /* System header to define __stub macros and hopefully few prototypes,
7733     which can conflict with char gethostbyname (); below.
7734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7735     <limits.h> exists even on freestanding compilers.  */
7736 #ifdef __STDC__
7737 # include <limits.h>
7738 #else
7739 # include <assert.h>
7740 #endif
7741 /* Override any gcc2 internal prototype to avoid an error.  */
7742 #ifdef __cplusplus
7743 extern "C"
7744 {
7745 #endif
7746 /* We use char because int might match the return type of a gcc2
7747    builtin and then its argument prototype would still apply.  */
7748 char gethostbyname ();
7749 /* The GNU C library defines this for functions which it implements
7750     to always fail with ENOSYS.  Some functions are actually named
7751     something starting with __ and the normal name is an alias.  */
7752 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7753 choke me
7754 #else
7755 char (*f) () = gethostbyname;
7756 #endif
7757 #ifdef __cplusplus
7758 }
7759 #endif
7760
7761 int
7762 main ()
7763 {
7764 return f != gethostbyname;
7765   ;
7766   return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771   (eval $ac_link) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } &&
7775          { ac_try='test -s conftest$ac_exeext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   ac_cv_func_gethostbyname=yes
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 ac_cv_func_gethostbyname=no
7787 fi
7788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7789 fi
7790 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7791 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7792
7793     if test $ac_cv_func_gethostbyname = no; then
7794       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7795 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7796 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   ac_check_lib_save_LIBS=$LIBS
7800 LIBS="-lnsl  $LIBS"
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line $LINENO "configure"
7803 /* confdefs.h.  */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h.  */
7808
7809 /* Override any gcc2 internal prototype to avoid an error.  */
7810 #ifdef __cplusplus
7811 extern "C"
7812 #endif
7813 /* We use char because int might match the return type of a gcc2
7814    builtin and then its argument prototype would still apply.  */
7815 char gethostbyname ();
7816 int
7817 main ()
7818 {
7819 gethostbyname ();
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826   (eval $ac_link) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } &&
7830          { ac_try='test -s conftest$ac_exeext'
7831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832   (eval $ac_try) 2>&5
7833   ac_status=$?
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); }; }; then
7836   ac_cv_lib_nsl_gethostbyname=yes
7837 else
7838   echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7840
7841 ac_cv_lib_nsl_gethostbyname=no
7842 fi
7843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7844 LIBS=$ac_check_lib_save_LIBS
7845 fi
7846 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7847 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7848 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7849   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7850 fi
7851
7852       if test $ac_cv_lib_nsl_gethostbyname = no; then
7853         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7854 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7855 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   ac_check_lib_save_LIBS=$LIBS
7859 LIBS="-lbsd  $LIBS"
7860 cat >conftest.$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7862 /* confdefs.h.  */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h.  */
7867
7868 /* Override any gcc2 internal prototype to avoid an error.  */
7869 #ifdef __cplusplus
7870 extern "C"
7871 #endif
7872 /* We use char because int might match the return type of a gcc2
7873    builtin and then its argument prototype would still apply.  */
7874 char gethostbyname ();
7875 int
7876 main ()
7877 {
7878 gethostbyname ();
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885   (eval $ac_link) 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -s conftest$ac_exeext'
7890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891   (eval $ac_try) 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); }; }; then
7895   ac_cv_lib_bsd_gethostbyname=yes
7896 else
7897   echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.$ac_ext >&5
7899
7900 ac_cv_lib_bsd_gethostbyname=no
7901 fi
7902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7903 LIBS=$ac_check_lib_save_LIBS
7904 fi
7905 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7906 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7907 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7908   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7909 fi
7910
7911       fi
7912     fi
7913
7914     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7915     # socket/setsockopt and other routines are undefined under SCO ODT
7916     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7917     # on later versions), says Simon Leinen: it contains gethostby*
7918     # variants that don't use the name server (or something).  -lsocket
7919     # must be given before -lnsl if both are needed.  We assume that
7920     # if connect needs -lnsl, so does gethostbyname.
7921     echo "$as_me:$LINENO: checking for connect" >&5
7922 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7923 if test "${ac_cv_func_connect+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   cat >conftest.$ac_ext <<_ACEOF
7927 #line $LINENO "configure"
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933 /* System header to define __stub macros and hopefully few prototypes,
7934     which can conflict with char connect (); below.
7935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7936     <limits.h> exists even on freestanding compilers.  */
7937 #ifdef __STDC__
7938 # include <limits.h>
7939 #else
7940 # include <assert.h>
7941 #endif
7942 /* Override any gcc2 internal prototype to avoid an error.  */
7943 #ifdef __cplusplus
7944 extern "C"
7945 {
7946 #endif
7947 /* We use char because int might match the return type of a gcc2
7948    builtin and then its argument prototype would still apply.  */
7949 char connect ();
7950 /* The GNU C library defines this for functions which it implements
7951     to always fail with ENOSYS.  Some functions are actually named
7952     something starting with __ and the normal name is an alias.  */
7953 #if defined (__stub_connect) || defined (__stub___connect)
7954 choke me
7955 #else
7956 char (*f) () = connect;
7957 #endif
7958 #ifdef __cplusplus
7959 }
7960 #endif
7961
7962 int
7963 main ()
7964 {
7965 return f != connect;
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972   (eval $ac_link) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); } &&
7976          { ac_try='test -s conftest$ac_exeext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982   ac_cv_func_connect=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 ac_cv_func_connect=no
7988 fi
7989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7990 fi
7991 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7992 echo "${ECHO_T}$ac_cv_func_connect" >&6
7993
7994     if test $ac_cv_func_connect = no; then
7995       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7996 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7997 if test "${ac_cv_lib_socket_connect+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   ac_check_lib_save_LIBS=$LIBS
8001 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8002 cat >conftest.$ac_ext <<_ACEOF
8003 #line $LINENO "configure"
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009
8010 /* Override any gcc2 internal prototype to avoid an error.  */
8011 #ifdef __cplusplus
8012 extern "C"
8013 #endif
8014 /* We use char because int might match the return type of a gcc2
8015    builtin and then its argument prototype would still apply.  */
8016 char connect ();
8017 int
8018 main ()
8019 {
8020 connect ();
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027   (eval $ac_link) 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); } &&
8031          { ac_try='test -s conftest$ac_exeext'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; }; then
8037   ac_cv_lib_socket_connect=yes
8038 else
8039   echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ac_cv_lib_socket_connect=no
8043 fi
8044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8045 LIBS=$ac_check_lib_save_LIBS
8046 fi
8047 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8048 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8049 if test $ac_cv_lib_socket_connect = yes; then
8050   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8051 fi
8052
8053     fi
8054
8055     # Guillermo Gomez says -lposix is necessary on A/UX.
8056     echo "$as_me:$LINENO: checking for remove" >&5
8057 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8058 if test "${ac_cv_func_remove+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8063 /* confdefs.h.  */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h.  */
8068 /* System header to define __stub macros and hopefully few prototypes,
8069     which can conflict with char remove (); below.
8070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8071     <limits.h> exists even on freestanding compilers.  */
8072 #ifdef __STDC__
8073 # include <limits.h>
8074 #else
8075 # include <assert.h>
8076 #endif
8077 /* Override any gcc2 internal prototype to avoid an error.  */
8078 #ifdef __cplusplus
8079 extern "C"
8080 {
8081 #endif
8082 /* We use char because int might match the return type of a gcc2
8083    builtin and then its argument prototype would still apply.  */
8084 char remove ();
8085 /* The GNU C library defines this for functions which it implements
8086     to always fail with ENOSYS.  Some functions are actually named
8087     something starting with __ and the normal name is an alias.  */
8088 #if defined (__stub_remove) || defined (__stub___remove)
8089 choke me
8090 #else
8091 char (*f) () = remove;
8092 #endif
8093 #ifdef __cplusplus
8094 }
8095 #endif
8096
8097 int
8098 main ()
8099 {
8100 return f != remove;
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107   (eval $ac_link) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -s conftest$ac_exeext'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; }; then
8117   ac_cv_func_remove=yes
8118 else
8119   echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ac_cv_func_remove=no
8123 fi
8124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8125 fi
8126 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8127 echo "${ECHO_T}$ac_cv_func_remove" >&6
8128
8129     if test $ac_cv_func_remove = no; then
8130       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8131 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8132 if test "${ac_cv_lib_posix_remove+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   ac_check_lib_save_LIBS=$LIBS
8136 LIBS="-lposix  $LIBS"
8137 cat >conftest.$ac_ext <<_ACEOF
8138 #line $LINENO "configure"
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144
8145 /* Override any gcc2 internal prototype to avoid an error.  */
8146 #ifdef __cplusplus
8147 extern "C"
8148 #endif
8149 /* We use char because int might match the return type of a gcc2
8150    builtin and then its argument prototype would still apply.  */
8151 char remove ();
8152 int
8153 main ()
8154 {
8155 remove ();
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -s conftest$ac_exeext'
8167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168   (eval $ac_try) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   ac_cv_lib_posix_remove=yes
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177 ac_cv_lib_posix_remove=no
8178 fi
8179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8180 LIBS=$ac_check_lib_save_LIBS
8181 fi
8182 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8183 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8184 if test $ac_cv_lib_posix_remove = yes; then
8185   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8186 fi
8187
8188     fi
8189
8190     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8191     echo "$as_me:$LINENO: checking for shmat" >&5
8192 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8193 if test "${ac_cv_func_shmat+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   cat >conftest.$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203 /* System header to define __stub macros and hopefully few prototypes,
8204     which can conflict with char shmat (); below.
8205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206     <limits.h> exists even on freestanding compilers.  */
8207 #ifdef __STDC__
8208 # include <limits.h>
8209 #else
8210 # include <assert.h>
8211 #endif
8212 /* Override any gcc2 internal prototype to avoid an error.  */
8213 #ifdef __cplusplus
8214 extern "C"
8215 {
8216 #endif
8217 /* We use char because int might match the return type of a gcc2
8218    builtin and then its argument prototype would still apply.  */
8219 char shmat ();
8220 /* The GNU C library defines this for functions which it implements
8221     to always fail with ENOSYS.  Some functions are actually named
8222     something starting with __ and the normal name is an alias.  */
8223 #if defined (__stub_shmat) || defined (__stub___shmat)
8224 choke me
8225 #else
8226 char (*f) () = shmat;
8227 #endif
8228 #ifdef __cplusplus
8229 }
8230 #endif
8231
8232 int
8233 main ()
8234 {
8235 return f != shmat;
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8242   (eval $ac_link) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } &&
8246          { ac_try='test -s conftest$ac_exeext'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; }; then
8252   ac_cv_func_shmat=yes
8253 else
8254   echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8256
8257 ac_cv_func_shmat=no
8258 fi
8259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8260 fi
8261 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8262 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8263
8264     if test $ac_cv_func_shmat = no; then
8265       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8266 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8267 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   ac_check_lib_save_LIBS=$LIBS
8271 LIBS="-lipc  $LIBS"
8272 cat >conftest.$ac_ext <<_ACEOF
8273 #line $LINENO "configure"
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279
8280 /* Override any gcc2 internal prototype to avoid an error.  */
8281 #ifdef __cplusplus
8282 extern "C"
8283 #endif
8284 /* We use char because int might match the return type of a gcc2
8285    builtin and then its argument prototype would still apply.  */
8286 char shmat ();
8287 int
8288 main ()
8289 {
8290 shmat ();
8291   ;
8292   return 0;
8293 }
8294 _ACEOF
8295 rm -f conftest.$ac_objext conftest$ac_exeext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297   (eval $ac_link) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } &&
8301          { ac_try='test -s conftest$ac_exeext'
8302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303   (eval $ac_try) 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); }; }; then
8307   ac_cv_lib_ipc_shmat=yes
8308 else
8309   echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8311
8312 ac_cv_lib_ipc_shmat=no
8313 fi
8314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8315 LIBS=$ac_check_lib_save_LIBS
8316 fi
8317 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8318 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8319 if test $ac_cv_lib_ipc_shmat = yes; then
8320   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8321 fi
8322
8323     fi
8324   fi
8325
8326   # Check for libraries that X11R6 Xt/Xaw programs need.
8327   ac_save_LDFLAGS=$LDFLAGS
8328   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8329   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8330   # check for ICE first), but we must link in the order -lSM -lICE or
8331   # we get undefined symbols.  So assume we have SM if we have ICE.
8332   # These have to be linked with before -lX11, unlike the other
8333   # libraries we check for below, so use a different variable.
8334   # John Interrante, Karl Berry
8335   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8336 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8337 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 /* Override any gcc2 internal prototype to avoid an error.  */
8351 #ifdef __cplusplus
8352 extern "C"
8353 #endif
8354 /* We use char because int might match the return type of a gcc2
8355    builtin and then its argument prototype would still apply.  */
8356 char IceConnectionNumber ();
8357 int
8358 main ()
8359 {
8360 IceConnectionNumber ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367   (eval $ac_link) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_cv_lib_ICE_IceConnectionNumber=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_lib_ICE_IceConnectionNumber=no
8383 fi
8384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8388 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8389 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8390   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8391 fi
8392
8393   LDFLAGS=$ac_save_LDFLAGS
8394
8395 fi
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420 for ac_header in \
8421         assert.h \
8422         fcntl.h \
8423         grp.h \
8424         pwd.h \
8425         libc.h \
8426         limits.h \
8427         stdarg.h \
8428         stdlib.h \
8429         stdint.h \
8430         string.h \
8431         termios.h \
8432         unistd.h \
8433         sys/byteorder.h \
8434         sys/ioctl.h \
8435         sys/select.h \
8436         sys/sockio.h \
8437         sys/time.h \
8438         sys/socket.h \
8439         arpa/nameser.h \
8440         resolv.h \
8441         mtio.h \
8442         sys/mtio.h \
8443
8444 do
8445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8447   echo "$as_me:$LINENO: checking for $ac_header" >&5
8448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 fi
8452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8454 else
8455   # Is the header compilable?
8456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465 $ac_includes_default
8466 #include <$ac_header>
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470   (eval $ac_compile) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } &&
8474          { ac_try='test -s conftest.$ac_objext'
8475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476   (eval $ac_try) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; }; then
8480   ac_header_compiler=yes
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485 ac_header_compiler=no
8486 fi
8487 rm -f conftest.$ac_objext conftest.$ac_ext
8488 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8489 echo "${ECHO_T}$ac_header_compiler" >&6
8490
8491 # Is the header present?
8492 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8493 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
8502 _ACEOF
8503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8504   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8505   ac_status=$?
8506   grep -v '^ *+' conftest.er1 >conftest.err
8507   rm -f conftest.er1
8508   cat conftest.err >&5
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } >/dev/null; then
8511   if test -s conftest.err; then
8512     ac_cpp_err=$ac_c_preproc_warn_flag
8513   else
8514     ac_cpp_err=
8515   fi
8516 else
8517   ac_cpp_err=yes
8518 fi
8519 if test -z "$ac_cpp_err"; then
8520   ac_header_preproc=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525   ac_header_preproc=no
8526 fi
8527 rm -f conftest.err conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529 echo "${ECHO_T}$ac_header_preproc" >&6
8530
8531 # So?  What about this header?
8532 case $ac_header_compiler:$ac_header_preproc in
8533   yes:no )
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8538     (
8539       cat <<\_ASBOX
8540 ## ------------------------------------ ##
8541 ## Report this to bug-autoconf@gnu.org. ##
8542 ## ------------------------------------ ##
8543 _ASBOX
8544     ) |
8545       sed "s/^/$as_me: WARNING:     /" >&2
8546     ;;
8547   no:yes )
8548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8550     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8554     (
8555       cat <<\_ASBOX
8556 ## ------------------------------------ ##
8557 ## Report this to bug-autoconf@gnu.org. ##
8558 ## ------------------------------------ ##
8559 _ASBOX
8560     ) |
8561       sed "s/^/$as_me: WARNING:     /" >&2
8562     ;;
8563 esac
8564 echo "$as_me:$LINENO: checking for $ac_header" >&5
8565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567   echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569   eval "$as_ac_Header=$ac_header_preproc"
8570 fi
8571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8573
8574 fi
8575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576   cat >>confdefs.h <<_ACEOF
8577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578 _ACEOF
8579
8580 fi
8581
8582 done
8583
8584 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8585 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8586 if test "${ac_cv_header_stdc+set}" = set; then
8587   echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589   cat >conftest.$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596 #include <stdlib.h>
8597 #include <stdarg.h>
8598 #include <string.h>
8599 #include <float.h>
8600
8601 int
8602 main ()
8603 {
8604
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8611   (eval $ac_compile) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -s conftest.$ac_objext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_header_stdc=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 ac_cv_header_stdc=no
8627 fi
8628 rm -f conftest.$ac_objext conftest.$ac_ext
8629
8630 if test $ac_cv_header_stdc = yes; then
8631   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8632   cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639 #include <string.h>
8640
8641 _ACEOF
8642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8643   $EGREP "memchr" >/dev/null 2>&1; then
8644   :
8645 else
8646   ac_cv_header_stdc=no
8647 fi
8648 rm -f conftest*
8649
8650 fi
8651
8652 if test $ac_cv_header_stdc = yes; then
8653   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8654   cat >conftest.$ac_ext <<_ACEOF
8655 #line $LINENO "configure"
8656 /* confdefs.h.  */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h.  */
8661 #include <stdlib.h>
8662
8663 _ACEOF
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665   $EGREP "free" >/dev/null 2>&1; then
8666   :
8667 else
8668   ac_cv_header_stdc=no
8669 fi
8670 rm -f conftest*
8671
8672 fi
8673
8674 if test $ac_cv_header_stdc = yes; then
8675   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8676   if test "$cross_compiling" = yes; then
8677   :
8678 else
8679   cat >conftest.$ac_ext <<_ACEOF
8680 #line $LINENO "configure"
8681 /* confdefs.h.  */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h.  */
8686 #include <ctype.h>
8687 #if ((' ' & 0x0FF) == 0x020)
8688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8690 #else
8691 # define ISLOWER(c) \
8692                    (('a' <= (c) && (c) <= 'i') \
8693                      || ('j' <= (c) && (c) <= 'r') \
8694                      || ('s' <= (c) && (c) <= 'z'))
8695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8696 #endif
8697
8698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8699 int
8700 main ()
8701 {
8702   int i;
8703   for (i = 0; i < 256; i++)
8704     if (XOR (islower (i), ISLOWER (i))
8705         || toupper (i) != TOUPPER (i))
8706       exit(2);
8707   exit (0);
8708 }
8709 _ACEOF
8710 rm -f conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712   (eval $ac_link) 2>&5
8713   ac_status=$?
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717   (eval $ac_try) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; }; then
8721   :
8722 else
8723   echo "$as_me: program exited with status $ac_status" >&5
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ( exit $ac_status )
8728 ac_cv_header_stdc=no
8729 fi
8730 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8731 fi
8732 fi
8733 fi
8734 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8735 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8736 if test $ac_cv_header_stdc = yes; then
8737
8738 cat >>confdefs.h <<\_ACEOF
8739 #define STDC_HEADERS 1
8740 _ACEOF
8741
8742 fi
8743
8744 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8745 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8746 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8747   echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749   cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 /* confdefs.h.  */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h.  */
8756 #include <sys/types.h>
8757 int
8758 main ()
8759 {
8760 return makedev(0, 0);
8761   ;
8762   return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext conftest$ac_exeext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767   (eval $ac_link) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -s conftest$ac_exeext'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   ac_cv_header_sys_types_h_makedev=yes
8778 else
8779   echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 ac_cv_header_sys_types_h_makedev=no
8783 fi
8784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8785
8786 fi
8787 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8788 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8789
8790 if test $ac_cv_header_sys_types_h_makedev = no; then
8791 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8792   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8793 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8794 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 fi
8797 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8798 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8799 else
8800   # Is the header compilable?
8801 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8802 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 $ac_includes_default
8811 #include <sys/mkdev.h>
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815   (eval $ac_compile) 2>&5
8816   ac_status=$?
8817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818   (exit $ac_status); } &&
8819          { ac_try='test -s conftest.$ac_objext'
8820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8821   (eval $ac_try) 2>&5
8822   ac_status=$?
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); }; }; then
8825   ac_header_compiler=yes
8826 else
8827   echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8829
8830 ac_header_compiler=no
8831 fi
8832 rm -f conftest.$ac_objext conftest.$ac_ext
8833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8834 echo "${ECHO_T}$ac_header_compiler" >&6
8835
8836 # Is the header present?
8837 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8838 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8839 cat >conftest.$ac_ext <<_ACEOF
8840 #line $LINENO "configure"
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846 #include <sys/mkdev.h>
8847 _ACEOF
8848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8850   ac_status=$?
8851   grep -v '^ *+' conftest.er1 >conftest.err
8852   rm -f conftest.er1
8853   cat conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } >/dev/null; then
8856   if test -s conftest.err; then
8857     ac_cpp_err=$ac_c_preproc_warn_flag
8858   else
8859     ac_cpp_err=
8860   fi
8861 else
8862   ac_cpp_err=yes
8863 fi
8864 if test -z "$ac_cpp_err"; then
8865   ac_header_preproc=yes
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870   ac_header_preproc=no
8871 fi
8872 rm -f conftest.err conftest.$ac_ext
8873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8874 echo "${ECHO_T}$ac_header_preproc" >&6
8875
8876 # So?  What about this header?
8877 case $ac_header_compiler:$ac_header_preproc in
8878   yes:no )
8879     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8880 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8881     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8882 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8883     (
8884       cat <<\_ASBOX
8885 ## ------------------------------------ ##
8886 ## Report this to bug-autoconf@gnu.org. ##
8887 ## ------------------------------------ ##
8888 _ASBOX
8889     ) |
8890       sed "s/^/$as_me: WARNING:     /" >&2
8891     ;;
8892   no:yes )
8893     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8894 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8895     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8896 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8897     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8898 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8899     (
8900       cat <<\_ASBOX
8901 ## ------------------------------------ ##
8902 ## Report this to bug-autoconf@gnu.org. ##
8903 ## ------------------------------------ ##
8904 _ASBOX
8905     ) |
8906       sed "s/^/$as_me: WARNING:     /" >&2
8907     ;;
8908 esac
8909 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8910 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8911 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8912   echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914   ac_cv_header_sys_mkdev_h=$ac_header_preproc
8915 fi
8916 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8917 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8918
8919 fi
8920 if test $ac_cv_header_sys_mkdev_h = yes; then
8921
8922 cat >>confdefs.h <<\_ACEOF
8923 #define MAJOR_IN_MKDEV 1
8924 _ACEOF
8925
8926 fi
8927
8928
8929
8930   if test $ac_cv_header_sys_mkdev_h = no; then
8931     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8932   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8933 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8934 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8935   echo $ECHO_N "(cached) $ECHO_C" >&6
8936 fi
8937 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8938 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8939 else
8940   # Is the header compilable?
8941 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8942 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
8943 cat >conftest.$ac_ext <<_ACEOF
8944 #line $LINENO "configure"
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950 $ac_includes_default
8951 #include <sys/sysmacros.h>
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955   (eval $ac_compile) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } &&
8959          { ac_try='test -s conftest.$ac_objext'
8960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961   (eval $ac_try) 2>&5
8962   ac_status=$?
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); }; }; then
8965   ac_header_compiler=yes
8966 else
8967   echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 ac_header_compiler=no
8971 fi
8972 rm -f conftest.$ac_objext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8974 echo "${ECHO_T}$ac_header_compiler" >&6
8975
8976 # Is the header present?
8977 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
8978 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8980 #line $LINENO "configure"
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986 #include <sys/sysmacros.h>
8987 _ACEOF
8988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } >/dev/null; then
8996   if test -s conftest.err; then
8997     ac_cpp_err=$ac_c_preproc_warn_flag
8998   else
8999     ac_cpp_err=
9000   fi
9001 else
9002   ac_cpp_err=yes
9003 fi
9004 if test -z "$ac_cpp_err"; then
9005   ac_header_preproc=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010   ac_header_preproc=no
9011 fi
9012 rm -f conftest.err conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9014 echo "${ECHO_T}$ac_header_preproc" >&6
9015
9016 # So?  What about this header?
9017 case $ac_header_compiler:$ac_header_preproc in
9018   yes:no )
9019     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9020 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9021     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9022 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9023     (
9024       cat <<\_ASBOX
9025 ## ------------------------------------ ##
9026 ## Report this to bug-autoconf@gnu.org. ##
9027 ## ------------------------------------ ##
9028 _ASBOX
9029     ) |
9030       sed "s/^/$as_me: WARNING:     /" >&2
9031     ;;
9032   no:yes )
9033     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9034 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9035     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9036 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9038 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9039     (
9040       cat <<\_ASBOX
9041 ## ------------------------------------ ##
9042 ## Report this to bug-autoconf@gnu.org. ##
9043 ## ------------------------------------ ##
9044 _ASBOX
9045     ) |
9046       sed "s/^/$as_me: WARNING:     /" >&2
9047     ;;
9048 esac
9049 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9050 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9051 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9052   echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9055 fi
9056 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9057 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9058
9059 fi
9060 if test $ac_cv_header_sys_sysmacros_h = yes; then
9061
9062 cat >>confdefs.h <<\_ACEOF
9063 #define MAJOR_IN_SYSMACROS 1
9064 _ACEOF
9065
9066 fi
9067
9068
9069   fi
9070 fi
9071
9072
9073
9074
9075
9076
9077 ac_header_dirent=no
9078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9079   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9080 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9081 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9087 /* confdefs.h.  */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h.  */
9092 #include <sys/types.h>
9093 #include <$ac_hdr>
9094
9095 int
9096 main ()
9097 {
9098 if ((DIR *) 0)
9099 return 0;
9100   ;
9101   return 0;
9102 }
9103 _ACEOF
9104 rm -f conftest.$ac_objext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9106   (eval $ac_compile) 2>&5
9107   ac_status=$?
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); } &&
9110          { ac_try='test -s conftest.$ac_objext'
9111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112   (eval $ac_try) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); }; }; then
9116   eval "$as_ac_Header=yes"
9117 else
9118   echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121 eval "$as_ac_Header=no"
9122 fi
9123 rm -f conftest.$ac_objext conftest.$ac_ext
9124 fi
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9128   cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9130 _ACEOF
9131
9132 ac_header_dirent=$ac_hdr; break
9133 fi
9134
9135 done
9136 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9137 if test $ac_header_dirent = dirent.h; then
9138   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9139 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9140 if test "${ac_cv_search_opendir+set}" = set; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143   ac_func_search_save_LIBS=$LIBS
9144 ac_cv_search_opendir=no
9145 cat >conftest.$ac_ext <<_ACEOF
9146 #line $LINENO "configure"
9147 /* confdefs.h.  */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h.  */
9152
9153 /* Override any gcc2 internal prototype to avoid an error.  */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 /* We use char because int might match the return type of a gcc2
9158    builtin and then its argument prototype would still apply.  */
9159 char opendir ();
9160 int
9161 main ()
9162 {
9163 opendir ();
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 rm -f conftest.$ac_objext conftest$ac_exeext
9169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170   (eval $ac_link) 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); } &&
9174          { ac_try='test -s conftest$ac_exeext'
9175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176   (eval $ac_try) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); }; }; then
9180   ac_cv_search_opendir="none required"
9181 else
9182   echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 fi
9186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9187 if test "$ac_cv_search_opendir" = no; then
9188   for ac_lib in dir; do
9189     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9190     cat >conftest.$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197
9198 /* Override any gcc2 internal prototype to avoid an error.  */
9199 #ifdef __cplusplus
9200 extern "C"
9201 #endif
9202 /* We use char because int might match the return type of a gcc2
9203    builtin and then its argument prototype would still apply.  */
9204 char opendir ();
9205 int
9206 main ()
9207 {
9208 opendir ();
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9215   (eval $ac_link) 2>&5
9216   ac_status=$?
9217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218   (exit $ac_status); } &&
9219          { ac_try='test -s conftest$ac_exeext'
9220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221   (eval $ac_try) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); }; }; then
9225   ac_cv_search_opendir="-l$ac_lib"
9226 break
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 fi
9232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9233   done
9234 fi
9235 LIBS=$ac_func_search_save_LIBS
9236 fi
9237 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9238 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9239 if test "$ac_cv_search_opendir" != no; then
9240   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9241
9242 fi
9243
9244 else
9245   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9247 if test "${ac_cv_search_opendir+set}" = set; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250   ac_func_search_save_LIBS=$LIBS
9251 ac_cv_search_opendir=no
9252 cat >conftest.$ac_ext <<_ACEOF
9253 #line $LINENO "configure"
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259
9260 /* Override any gcc2 internal prototype to avoid an error.  */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 /* We use char because int might match the return type of a gcc2
9265    builtin and then its argument prototype would still apply.  */
9266 char opendir ();
9267 int
9268 main ()
9269 {
9270 opendir ();
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277   (eval $ac_link) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -s conftest$ac_exeext'
9282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9283   (eval $ac_try) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); }; }; then
9287   ac_cv_search_opendir="none required"
9288 else
9289   echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9291
9292 fi
9293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9294 if test "$ac_cv_search_opendir" = no; then
9295   for ac_lib in x; do
9296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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="-l$ac_lib"
9333 break
9334 else
9335   echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9337
9338 fi
9339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9340   done
9341 fi
9342 LIBS=$ac_func_search_save_LIBS
9343 fi
9344 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9345 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9346 if test "$ac_cv_search_opendir" != no; then
9347   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9348
9349 fi
9350
9351 fi
9352
9353 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9354 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9355 if test "${ac_cv_header_stat_broken+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365 #include <sys/types.h>
9366 #include <sys/stat.h>
9367
9368 #if defined(S_ISBLK) && defined(S_IFDIR)
9369 # if S_ISBLK (S_IFDIR)
9370 You lose.
9371 # endif
9372 #endif
9373
9374 #if defined(S_ISBLK) && defined(S_IFCHR)
9375 # if S_ISBLK (S_IFCHR)
9376 You lose.
9377 # endif
9378 #endif
9379
9380 #if defined(S_ISLNK) && defined(S_IFREG)
9381 # if S_ISLNK (S_IFREG)
9382 You lose.
9383 # endif
9384 #endif
9385
9386 #if defined(S_ISSOCK) && defined(S_IFREG)
9387 # if S_ISSOCK (S_IFREG)
9388 You lose.
9389 # endif
9390 #endif
9391
9392 _ACEOF
9393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394   $EGREP "You lose" >/dev/null 2>&1; then
9395   ac_cv_header_stat_broken=yes
9396 else
9397   ac_cv_header_stat_broken=no
9398 fi
9399 rm -f conftest*
9400
9401 fi
9402 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9403 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9404 if test $ac_cv_header_stat_broken = yes; then
9405
9406 cat >>confdefs.h <<\_ACEOF
9407 #define STAT_MACROS_BROKEN 1
9408 _ACEOF
9409
9410 fi
9411
9412 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9413 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9414 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   cat >conftest.$ac_ext <<_ACEOF
9418 #line $LINENO "configure"
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424 #include <sys/types.h>
9425 #include <sys/wait.h>
9426 #ifndef WEXITSTATUS
9427 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9428 #endif
9429 #ifndef WIFEXITED
9430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9431 #endif
9432
9433 int
9434 main ()
9435 {
9436   int s;
9437   wait (&s);
9438   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445   (eval $ac_compile) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } &&
9449          { ac_try='test -s conftest.$ac_objext'
9450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451   (eval $ac_try) 2>&5
9452   ac_status=$?
9453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454   (exit $ac_status); }; }; then
9455   ac_cv_header_sys_wait_h=yes
9456 else
9457   echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9459
9460 ac_cv_header_sys_wait_h=no
9461 fi
9462 rm -f conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9465 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9466 if test $ac_cv_header_sys_wait_h = yes; then
9467
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_SYS_WAIT_H 1
9470 _ACEOF
9471
9472 fi
9473
9474 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9475 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9476 if test "${ac_cv_header_time+set}" = set; then
9477   echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479   cat >conftest.$ac_ext <<_ACEOF
9480 #line $LINENO "configure"
9481 /* confdefs.h.  */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h.  */
9486 #include <sys/types.h>
9487 #include <sys/time.h>
9488 #include <time.h>
9489
9490 int
9491 main ()
9492 {
9493 if ((struct tm *) 0)
9494 return 0;
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501   (eval $ac_compile) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -s conftest.$ac_objext'
9506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507   (eval $ac_try) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); }; }; then
9511   ac_cv_header_time=yes
9512 else
9513   echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9515
9516 ac_cv_header_time=no
9517 fi
9518 rm -f conftest.$ac_objext conftest.$ac_ext
9519 fi
9520 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9521 echo "${ECHO_T}$ac_cv_header_time" >&6
9522 if test $ac_cv_header_time = yes; then
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define TIME_WITH_SYS_TIME 1
9526 _ACEOF
9527
9528 fi
9529
9530
9531 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9532 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9533 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   cat >conftest.$ac_ext <<_ACEOF
9537 #line $LINENO "configure"
9538 /* confdefs.h.  */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h.  */
9543 $ac_includes_default
9544 int
9545 main ()
9546 {
9547 static struct stat ac_aggr;
9548 if (ac_aggr.st_blksize)
9549 return 0;
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556   (eval $ac_compile) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); } &&
9560          { ac_try='test -s conftest.$ac_objext'
9561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562   (eval $ac_try) 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; }; then
9566   ac_cv_member_struct_stat_st_blksize=yes
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 cat >conftest.$ac_ext <<_ACEOF
9572 #line $LINENO "configure"
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578 $ac_includes_default
9579 int
9580 main ()
9581 {
9582 static struct stat ac_aggr;
9583 if (sizeof ac_aggr.st_blksize)
9584 return 0;
9585   ;
9586   return 0;
9587 }
9588 _ACEOF
9589 rm -f conftest.$ac_objext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591   (eval $ac_compile) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); } &&
9595          { ac_try='test -s conftest.$ac_objext'
9596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597   (eval $ac_try) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }; }; then
9601   ac_cv_member_struct_stat_st_blksize=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606 ac_cv_member_struct_stat_st_blksize=no
9607 fi
9608 rm -f conftest.$ac_objext conftest.$ac_ext
9609 fi
9610 rm -f conftest.$ac_objext conftest.$ac_ext
9611 fi
9612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9613 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9614 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9615
9616 cat >>confdefs.h <<_ACEOF
9617 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9618 _ACEOF
9619
9620
9621 cat >>confdefs.h <<\_ACEOF
9622 #define HAVE_ST_BLKSIZE 1
9623 _ACEOF
9624
9625 fi
9626
9627
9628 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9629 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9630 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   cat >conftest.$ac_ext <<_ACEOF
9634 #line $LINENO "configure"
9635 /* confdefs.h.  */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h.  */
9640 $ac_includes_default
9641 int
9642 main ()
9643 {
9644 static struct stat ac_aggr;
9645 if (ac_aggr.st_blocks)
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_member_struct_stat_st_blocks=yes
9664 else
9665   echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9667
9668 cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 /* confdefs.h.  */
9671 _ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h.  */
9675 $ac_includes_default
9676 int
9677 main ()
9678 {
9679 static struct stat ac_aggr;
9680 if (sizeof ac_aggr.st_blocks)
9681 return 0;
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9688   (eval $ac_compile) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -s conftest.$ac_objext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   ac_cv_member_struct_stat_st_blocks=yes
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 ac_cv_member_struct_stat_st_blocks=no
9704 fi
9705 rm -f conftest.$ac_objext conftest.$ac_ext
9706 fi
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9708 fi
9709 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9710 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9711 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9712
9713 cat >>confdefs.h <<_ACEOF
9714 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9715 _ACEOF
9716
9717
9718 cat >>confdefs.h <<\_ACEOF
9719 #define HAVE_ST_BLOCKS 1
9720 _ACEOF
9721
9722 else
9723   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9724 fi
9725
9726
9727 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9728 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9729 if test "${ac_cv_struct_tm+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739 #include <sys/types.h>
9740 #include <time.h>
9741
9742 int
9743 main ()
9744 {
9745 struct tm *tp; tp->tm_sec;
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752   (eval $ac_compile) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } &&
9756          { ac_try='test -s conftest.$ac_objext'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_struct_tm=time.h
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ac_cv_struct_tm=sys/time.h
9768 fi
9769 rm -f conftest.$ac_objext conftest.$ac_ext
9770 fi
9771 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9772 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9773 if test $ac_cv_struct_tm = sys/time.h; then
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define TM_IN_SYS_TIME 1
9777 _ACEOF
9778
9779 fi
9780
9781 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9782 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9783 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9788 /* confdefs.h.  */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h.  */
9793 #include <sys/types.h>
9794 #include <$ac_cv_struct_tm>
9795
9796
9797 int
9798 main ()
9799 {
9800 static struct tm ac_aggr;
9801 if (ac_aggr.tm_zone)
9802 return 0;
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } &&
9813          { ac_try='test -s conftest.$ac_objext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   ac_cv_member_struct_tm_tm_zone=yes
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 cat >conftest.$ac_ext <<_ACEOF
9825 #line $LINENO "configure"
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 #include <sys/types.h>
9832 #include <$ac_cv_struct_tm>
9833
9834
9835 int
9836 main ()
9837 {
9838 static struct tm ac_aggr;
9839 if (sizeof ac_aggr.tm_zone)
9840 return 0;
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9847   (eval $ac_compile) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } &&
9851          { ac_try='test -s conftest.$ac_objext'
9852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853   (eval $ac_try) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; }; then
9857   ac_cv_member_struct_tm_tm_zone=yes
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 ac_cv_member_struct_tm_tm_zone=no
9863 fi
9864 rm -f conftest.$ac_objext conftest.$ac_ext
9865 fi
9866 rm -f conftest.$ac_objext conftest.$ac_ext
9867 fi
9868 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9869 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9870 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9871
9872 cat >>confdefs.h <<_ACEOF
9873 #define HAVE_STRUCT_TM_TM_ZONE 1
9874 _ACEOF
9875
9876
9877 fi
9878
9879 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9880
9881 cat >>confdefs.h <<\_ACEOF
9882 #define HAVE_TM_ZONE 1
9883 _ACEOF
9884
9885 else
9886   echo "$as_me:$LINENO: checking for tzname" >&5
9887 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9888 if test "${ac_cv_var_tzname+set}" = set; then
9889   echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891   cat >conftest.$ac_ext <<_ACEOF
9892 #line $LINENO "configure"
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 #include <time.h>
9899 #ifndef tzname /* For SGI.  */
9900 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9901 #endif
9902
9903 int
9904 main ()
9905 {
9906 atoi(*tzname);
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9913   (eval $ac_link) 2>&5
9914   ac_status=$?
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } &&
9917          { ac_try='test -s conftest$ac_exeext'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; }; then
9923   ac_cv_var_tzname=yes
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 ac_cv_var_tzname=no
9929 fi
9930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9931 fi
9932 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9933 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9934   if test $ac_cv_var_tzname = yes; then
9935
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_TZNAME 1
9938 _ACEOF
9939
9940   fi
9941 fi
9942
9943
9944 echo "$as_me:$LINENO: checking for utime.h" >&5
9945 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9946 if test "${ba_cv_header_utime_h+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   cat >conftest.$ac_ext <<_ACEOF
9950 #line $LINENO "configure"
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956
9957 #include <sys/types.h>
9958 #include <utime.h>
9959 int
9960 main ()
9961 {
9962 struct utimbuf foo
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969   (eval $ac_compile) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -s conftest.$ac_objext'
9974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975   (eval $ac_try) 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; }; then
9979   ba_cv_header_utime_h=yes
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 ba_cv_header_utime_h=no
9985 fi
9986 rm -f conftest.$ac_objext conftest.$ac_ext
9987 fi
9988 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
9989 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
9990 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
9991 #define HAVE_UTIME_H 1
9992 _ACEOF
9993
9994
9995 echo "$as_me:$LINENO: checking for socklen_t" >&5
9996 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9997 if test "${ba_cv_header_socklen_t+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   cat >conftest.$ac_ext <<_ACEOF
10001 #line $LINENO "configure"
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007
10008 #include <sys/types.h>
10009 #include <sys/socket.h>
10010 int
10011 main ()
10012 {
10013 socklen_t x
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020   (eval $ac_compile) 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } &&
10024          { ac_try='test -s conftest.$ac_objext'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; }; then
10030   ba_cv_header_socklen_t=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035 ba_cv_header_socklen_t=no
10036 fi
10037 rm -f conftest.$ac_objext conftest.$ac_ext
10038 fi
10039 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10040 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10041 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_SOCKLEN_T 1
10043 _ACEOF
10044
10045
10046 echo "$as_me:$LINENO: checking for bigendian" >&5
10047 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10048 if test "${ba_cv_bigendian+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   if test "$cross_compiling" = yes; then
10052   ba_cv_bigendian=no
10053 else
10054   cat >conftest.$ac_ext <<_ACEOF
10055 #line $LINENO "configure"
10056 /* confdefs.h.  */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h.  */
10061 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10062 _ACEOF
10063 rm -f 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); } && { ac_try='./conftest$ac_exeext'
10069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070   (eval $ac_try) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ba_cv_bigendian=yes
10075 else
10076   echo "$as_me: program exited with status $ac_status" >&5
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080 ( exit $ac_status )
10081 ba_cv_bigendian=no
10082 fi
10083 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10084 fi
10085 fi
10086 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10087 echo "${ECHO_T}$ba_cv_bigendian" >&6
10088 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_BIGENDIAN 1
10090 _ACEOF
10091
10092
10093
10094 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10095 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10096 if test "${ac_cv_c_const+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106
10107 int
10108 main ()
10109 {
10110 /* FIXME: Include the comments suggested by Paul. */
10111 #ifndef __cplusplus
10112   /* Ultrix mips cc rejects this.  */
10113   typedef int charset[2];
10114   const charset x;
10115   /* SunOS 4.1.1 cc rejects this.  */
10116   char const *const *ccp;
10117   char **p;
10118   /* NEC SVR4.0.2 mips cc rejects this.  */
10119   struct point {int x, y;};
10120   static struct point const zero = {0,0};
10121   /* AIX XL C 1.02.0.0 rejects this.
10122      It does not let you subtract one const X* pointer from another in
10123      an arm of an if-expression whose if-part is not a constant
10124      expression */
10125   const char *g = "string";
10126   ccp = &g + (g ? g-g : 0);
10127   /* HPUX 7.0 cc rejects these. */
10128   ++ccp;
10129   p = (char**) ccp;
10130   ccp = (char const *const *) p;
10131   { /* SCO 3.2v4 cc rejects this.  */
10132     char *t;
10133     char const *s = 0 ? (char *) 0 : (char const *) 0;
10134
10135     *t++ = 0;
10136   }
10137   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10138     int x[] = {25, 17};
10139     const int *foo = &x[0];
10140     ++foo;
10141   }
10142   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10143     typedef const int *iptr;
10144     iptr p = 0;
10145     ++p;
10146   }
10147   { /* AIX XL C 1.02.0.0 rejects this saying
10148        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10149     struct s { int j; const int *ap[3]; };
10150     struct s *b; b->j = 5;
10151   }
10152   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10153     const int foo = 10;
10154   }
10155 #endif
10156
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163   (eval $ac_compile) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } &&
10167          { ac_try='test -s conftest.$ac_objext'
10168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169   (eval $ac_try) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; }; then
10173   ac_cv_c_const=yes
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178 ac_cv_c_const=no
10179 fi
10180 rm -f conftest.$ac_objext conftest.$ac_ext
10181 fi
10182 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10183 echo "${ECHO_T}$ac_cv_c_const" >&6
10184 if test $ac_cv_c_const = no; then
10185
10186 cat >>confdefs.h <<\_ACEOF
10187 #define const
10188 _ACEOF
10189
10190 fi
10191
10192
10193
10194 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10195 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10196 fstype=no
10197 # The order of these tests is important.
10198 cat >conftest.$ac_ext <<_ACEOF
10199 #line $LINENO "configure"
10200 /* confdefs.h.  */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h.  */
10205 #include <sys/statvfs.h>
10206 #include <sys/fstyp.h>
10207 _ACEOF
10208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10209   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10210   ac_status=$?
10211   grep -v '^ *+' conftest.er1 >conftest.err
10212   rm -f conftest.er1
10213   cat conftest.err >&5
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } >/dev/null; then
10216   if test -s conftest.err; then
10217     ac_cpp_err=$ac_c_preproc_warn_flag
10218   else
10219     ac_cpp_err=
10220   fi
10221 else
10222   ac_cpp_err=yes
10223 fi
10224 if test -z "$ac_cpp_err"; then
10225   cat >>confdefs.h <<\_ACEOF
10226 #define FSTYPE_STATVFS 1
10227 _ACEOF
10228  fstype=SVR4
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233
10234 fi
10235 rm -f conftest.err conftest.$ac_ext
10236 if test $fstype = no; then
10237 cat >conftest.$ac_ext <<_ACEOF
10238 #line $LINENO "configure"
10239 /* confdefs.h.  */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h.  */
10244 #include <sys/statfs.h>
10245 #include <sys/fstyp.h>
10246 _ACEOF
10247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } >/dev/null; then
10255   if test -s conftest.err; then
10256     ac_cpp_err=$ac_c_preproc_warn_flag
10257   else
10258     ac_cpp_err=
10259   fi
10260 else
10261   ac_cpp_err=yes
10262 fi
10263 if test -z "$ac_cpp_err"; then
10264   cat >>confdefs.h <<\_ACEOF
10265 #define FSTYPE_USG_STATFS 1
10266 _ACEOF
10267  fstype=SVR3
10268 else
10269   echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10271
10272
10273 fi
10274 rm -f conftest.err conftest.$ac_ext
10275 fi
10276 if test $fstype = no; then
10277 cat >conftest.$ac_ext <<_ACEOF
10278 #line $LINENO "configure"
10279 /* confdefs.h.  */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h.  */
10284 #include <sys/statfs.h>
10285 #include <sys/vmount.h>
10286 _ACEOF
10287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10289   ac_status=$?
10290   grep -v '^ *+' conftest.er1 >conftest.err
10291   rm -f conftest.er1
10292   cat conftest.err >&5
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); } >/dev/null; then
10295   if test -s conftest.err; then
10296     ac_cpp_err=$ac_c_preproc_warn_flag
10297   else
10298     ac_cpp_err=
10299   fi
10300 else
10301   ac_cpp_err=yes
10302 fi
10303 if test -z "$ac_cpp_err"; then
10304   cat >>confdefs.h <<\_ACEOF
10305 #define FSTYPE_AIX_STATFS 1
10306 _ACEOF
10307  fstype=AIX
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312
10313 fi
10314 rm -f conftest.err conftest.$ac_ext
10315 fi
10316 if test $fstype = no; then
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324 #include <mntent.h>
10325 _ACEOF
10326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10328   ac_status=$?
10329   grep -v '^ *+' conftest.er1 >conftest.err
10330   rm -f conftest.er1
10331   cat conftest.err >&5
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); } >/dev/null; then
10334   if test -s conftest.err; then
10335     ac_cpp_err=$ac_c_preproc_warn_flag
10336   else
10337     ac_cpp_err=
10338   fi
10339 else
10340   ac_cpp_err=yes
10341 fi
10342 if test -z "$ac_cpp_err"; then
10343   cat >>confdefs.h <<\_ACEOF
10344 #define FSTYPE_MNTENT 1
10345 _ACEOF
10346  fstype=4.3BSD
10347 else
10348   echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351
10352 fi
10353 rm -f conftest.err conftest.$ac_ext
10354 fi
10355 if test $fstype = no; then
10356 cat >conftest.$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10358 /* confdefs.h.  */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h.  */
10363 #include <sys/mount.h>
10364
10365 _ACEOF
10366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10367   $EGREP "f_type;" >/dev/null 2>&1; then
10368   cat >>confdefs.h <<\_ACEOF
10369 #define FSTYPE_STATFS 1
10370 _ACEOF
10371  fstype=4.4BSD/OSF1
10372 fi
10373 rm -f conftest*
10374
10375 fi
10376 if test $fstype = no; then
10377 cat >conftest.$ac_ext <<_ACEOF
10378 #line $LINENO "configure"
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384 #include <sys/mount.h>
10385 #include <sys/fs_types.h>
10386 _ACEOF
10387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } >/dev/null; then
10395   if test -s conftest.err; then
10396     ac_cpp_err=$ac_c_preproc_warn_flag
10397   else
10398     ac_cpp_err=
10399   fi
10400 else
10401   ac_cpp_err=yes
10402 fi
10403 if test -z "$ac_cpp_err"; then
10404   cat >>confdefs.h <<\_ACEOF
10405 #define FSTYPE_GETMNT 1
10406 _ACEOF
10407  fstype=Ultrix
10408 else
10409   echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412
10413 fi
10414 rm -f conftest.err conftest.$ac_ext
10415 fi
10416 echo "$as_me:$LINENO: result: $fstype" >&5
10417 echo "${ECHO_T}$fstype" >&6
10418
10419 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10420 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10421 if test "${ac_cv_type_signal+set}" = set; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424   cat >conftest.$ac_ext <<_ACEOF
10425 #line $LINENO "configure"
10426 /* confdefs.h.  */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h.  */
10431 #include <sys/types.h>
10432 #include <signal.h>
10433 #ifdef signal
10434 # undef signal
10435 #endif
10436 #ifdef __cplusplus
10437 extern "C" void (*signal (int, void (*)(int)))(int);
10438 #else
10439 void (*signal ()) ();
10440 #endif
10441
10442 int
10443 main ()
10444 {
10445 int i;
10446   ;
10447   return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10452   (eval $ac_compile) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -s conftest.$ac_objext'
10457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458   (eval $ac_try) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); }; }; then
10462   ac_cv_type_signal=void
10463 else
10464   echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 ac_cv_type_signal=int
10468 fi
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10470 fi
10471 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10472 echo "${ECHO_T}$ac_cv_type_signal" >&6
10473
10474 cat >>confdefs.h <<_ACEOF
10475 #define RETSIGTYPE $ac_cv_type_signal
10476 _ACEOF
10477
10478
10479
10480 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10481 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10482 if test "${bash_cv_signal_vintage+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485
10486   cat >conftest.$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493 #include <signal.h>
10494 int
10495 main ()
10496 {
10497
10498     sigset_t ss;
10499     struct sigaction sa;
10500     sigemptyset(&ss); sigsuspend(&ss);
10501     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10502     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10503
10504   ;
10505   return 0;
10506 }
10507 _ACEOF
10508 rm -f conftest.$ac_objext conftest$ac_exeext
10509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10510   (eval $ac_link) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } &&
10514          { ac_try='test -s conftest$ac_exeext'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   bash_cv_signal_vintage=posix
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525
10526     cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10528 /* confdefs.h.  */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h.  */
10533 #include <signal.h>
10534 int
10535 main ()
10536 {
10537
10538         int mask = sigmask(SIGINT);
10539         sigsetmask(mask); sigblock(mask); sigpause(mask);
10540
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547   (eval $ac_link) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } &&
10551          { ac_try='test -s conftest$ac_exeext'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; }; then
10557   bash_cv_signal_vintage=4.2bsd
10558 else
10559   echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562
10563       cat >conftest.$ac_ext <<_ACEOF
10564 #line $LINENO "configure"
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570
10571         #include <signal.h>
10572         RETSIGTYPE foo() { }
10573 int
10574 main ()
10575 {
10576
10577                 int mask = sigmask(SIGINT);
10578                 sigset(SIGINT, foo); sigrelse(SIGINT);
10579                 sighold(SIGINT); sigpause(SIGINT);
10580
10581   ;
10582   return 0;
10583 }
10584 _ACEOF
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587   (eval $ac_link) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } &&
10591          { ac_try='test -s conftest$ac_exeext'
10592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593   (eval $ac_try) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; }; then
10597   bash_cv_signal_vintage=svr3
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 bash_cv_signal_vintage=v7
10603
10604 fi
10605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10606
10607 fi
10608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10609
10610 fi
10611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10612
10613 fi
10614
10615 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10616 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10617 if test "$bash_cv_signal_vintage" = posix; then
10618 cat >>confdefs.h <<\_ACEOF
10619 #define HAVE_POSIX_SIGNALS 1
10620 _ACEOF
10621
10622 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10623 cat >>confdefs.h <<\_ACEOF
10624 #define HAVE_BSD_SIGNALS 1
10625 _ACEOF
10626
10627 elif test "$bash_cv_signal_vintage" = svr3; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_USG_SIGHOLD 1
10630 _ACEOF
10631
10632 fi
10633
10634 echo "$as_me:$LINENO: checking for mode_t" >&5
10635 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10636 if test "${ac_cv_type_mode_t+set}" = set; then
10637   echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639   cat >conftest.$ac_ext <<_ACEOF
10640 #line $LINENO "configure"
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646 $ac_includes_default
10647 int
10648 main ()
10649 {
10650 if ((mode_t *) 0)
10651   return 0;
10652 if (sizeof (mode_t))
10653   return 0;
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 rm -f conftest.$ac_objext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660   (eval $ac_compile) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -s conftest.$ac_objext'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; }; then
10670   ac_cv_type_mode_t=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 ac_cv_type_mode_t=no
10676 fi
10677 rm -f conftest.$ac_objext conftest.$ac_ext
10678 fi
10679 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10680 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10681 if test $ac_cv_type_mode_t = yes; then
10682   :
10683 else
10684
10685 cat >>confdefs.h <<_ACEOF
10686 #define mode_t int
10687 _ACEOF
10688
10689 fi
10690
10691 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10692 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10693 if test "${ac_cv_type_uid_t+set}" = set; then
10694   echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696   cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10698 /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703 #include <sys/types.h>
10704
10705 _ACEOF
10706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10707   $EGREP "uid_t" >/dev/null 2>&1; then
10708   ac_cv_type_uid_t=yes
10709 else
10710   ac_cv_type_uid_t=no
10711 fi
10712 rm -f conftest*
10713
10714 fi
10715 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10716 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10717 if test $ac_cv_type_uid_t = no; then
10718
10719 cat >>confdefs.h <<\_ACEOF
10720 #define uid_t int
10721 _ACEOF
10722
10723
10724 cat >>confdefs.h <<\_ACEOF
10725 #define gid_t int
10726 _ACEOF
10727
10728 fi
10729
10730 echo "$as_me:$LINENO: checking for size_t" >&5
10731 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10732 if test "${ac_cv_type_size_t+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   cat >conftest.$ac_ext <<_ACEOF
10736 #line $LINENO "configure"
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 $ac_includes_default
10743 int
10744 main ()
10745 {
10746 if ((size_t *) 0)
10747   return 0;
10748 if (sizeof (size_t))
10749   return 0;
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext
10755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10756   (eval $ac_compile) 2>&5
10757   ac_status=$?
10758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); } &&
10760          { ac_try='test -s conftest.$ac_objext'
10761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762   (eval $ac_try) 2>&5
10763   ac_status=$?
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); }; }; then
10766   ac_cv_type_size_t=yes
10767 else
10768   echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10770
10771 ac_cv_type_size_t=no
10772 fi
10773 rm -f conftest.$ac_objext conftest.$ac_ext
10774 fi
10775 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10776 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10777 if test $ac_cv_type_size_t = yes; then
10778   :
10779 else
10780
10781 cat >>confdefs.h <<_ACEOF
10782 #define size_t unsigned
10783 _ACEOF
10784
10785 fi
10786
10787 echo "$as_me:$LINENO: checking for pid_t" >&5
10788 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10789 if test "${ac_cv_type_pid_t+set}" = set; then
10790   echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792   cat >conftest.$ac_ext <<_ACEOF
10793 #line $LINENO "configure"
10794 /* confdefs.h.  */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h.  */
10799 $ac_includes_default
10800 int
10801 main ()
10802 {
10803 if ((pid_t *) 0)
10804   return 0;
10805 if (sizeof (pid_t))
10806   return 0;
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 rm -f conftest.$ac_objext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813   (eval $ac_compile) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } &&
10817          { ac_try='test -s conftest.$ac_objext'
10818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819   (eval $ac_try) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   ac_cv_type_pid_t=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ac_cv_type_pid_t=no
10829 fi
10830 rm -f conftest.$ac_objext conftest.$ac_ext
10831 fi
10832 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10833 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10834 if test $ac_cv_type_pid_t = yes; then
10835   :
10836 else
10837
10838 cat >>confdefs.h <<_ACEOF
10839 #define pid_t int
10840 _ACEOF
10841
10842 fi
10843
10844 echo "$as_me:$LINENO: checking for off_t" >&5
10845 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10846 if test "${ac_cv_type_off_t+set}" = set; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   cat >conftest.$ac_ext <<_ACEOF
10850 #line $LINENO "configure"
10851 /* confdefs.h.  */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h.  */
10856 $ac_includes_default
10857 int
10858 main ()
10859 {
10860 if ((off_t *) 0)
10861   return 0;
10862 if (sizeof (off_t))
10863   return 0;
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870   (eval $ac_compile) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); } &&
10874          { ac_try='test -s conftest.$ac_objext'
10875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876   (eval $ac_try) 2>&5
10877   ac_status=$?
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); }; }; then
10880   ac_cv_type_off_t=yes
10881 else
10882   echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10884
10885 ac_cv_type_off_t=no
10886 fi
10887 rm -f conftest.$ac_objext conftest.$ac_ext
10888 fi
10889 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10890 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10891 if test $ac_cv_type_off_t = yes; then
10892   :
10893 else
10894
10895 cat >>confdefs.h <<_ACEOF
10896 #define off_t long
10897 _ACEOF
10898
10899 fi
10900
10901 echo "$as_me:$LINENO: checking for ino_t" >&5
10902 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
10903 if test "${ac_cv_type_ino_t+set}" = set; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   cat >conftest.$ac_ext <<_ACEOF
10907 #line $LINENO "configure"
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 $ac_includes_default
10914 int
10915 main ()
10916 {
10917 if ((ino_t *) 0)
10918   return 0;
10919 if (sizeof (ino_t))
10920   return 0;
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10927   (eval $ac_compile) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -s conftest.$ac_objext'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; }; then
10937   ac_cv_type_ino_t=yes
10938 else
10939   echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_type_ino_t=no
10943 fi
10944 rm -f conftest.$ac_objext conftest.$ac_ext
10945 fi
10946 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
10947 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
10948 if test $ac_cv_type_ino_t = yes; then
10949   :
10950 else
10951
10952 cat >>confdefs.h <<_ACEOF
10953 #define ino_t unsigned long
10954 _ACEOF
10955
10956 fi
10957
10958 echo "$as_me:$LINENO: checking for dev_t" >&5
10959 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
10960 if test "${ac_cv_type_dev_t+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 $ac_includes_default
10971 int
10972 main ()
10973 {
10974 if ((dev_t *) 0)
10975   return 0;
10976 if (sizeof (dev_t))
10977   return 0;
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984   (eval $ac_compile) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } &&
10988          { ac_try='test -s conftest.$ac_objext'
10989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990   (eval $ac_try) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; }; then
10994   ac_cv_type_dev_t=yes
10995 else
10996   echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10998
10999 ac_cv_type_dev_t=no
11000 fi
11001 rm -f conftest.$ac_objext conftest.$ac_ext
11002 fi
11003 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11004 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11005 if test $ac_cv_type_dev_t = yes; then
11006   :
11007 else
11008
11009 cat >>confdefs.h <<_ACEOF
11010 #define dev_t unsigned long
11011 _ACEOF
11012
11013 fi
11014
11015 echo "$as_me:$LINENO: checking for daddr_t" >&5
11016 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11017 if test "${ac_cv_type_daddr_t+set}" = set; then
11018   echo $ECHO_N "(cached) $ECHO_C" >&6
11019 else
11020   cat >conftest.$ac_ext <<_ACEOF
11021 #line $LINENO "configure"
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 $ac_includes_default
11028 int
11029 main ()
11030 {
11031 if ((daddr_t *) 0)
11032   return 0;
11033 if (sizeof (daddr_t))
11034   return 0;
11035   ;
11036   return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041   (eval $ac_compile) 2>&5
11042   ac_status=$?
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } &&
11045          { ac_try='test -s conftest.$ac_objext'
11046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047   (eval $ac_try) 2>&5
11048   ac_status=$?
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); }; }; then
11051   ac_cv_type_daddr_t=yes
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 ac_cv_type_daddr_t=no
11057 fi
11058 rm -f conftest.$ac_objext conftest.$ac_ext
11059 fi
11060 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11061 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11062 if test $ac_cv_type_daddr_t = yes; then
11063   :
11064 else
11065
11066 cat >>confdefs.h <<_ACEOF
11067 #define daddr_t long
11068 _ACEOF
11069
11070 fi
11071
11072 echo "$as_me:$LINENO: checking for major_t" >&5
11073 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11074 if test "${ac_cv_type_major_t+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   cat >conftest.$ac_ext <<_ACEOF
11078 #line $LINENO "configure"
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084 $ac_includes_default
11085 int
11086 main ()
11087 {
11088 if ((major_t *) 0)
11089   return 0;
11090 if (sizeof (major_t))
11091   return 0;
11092   ;
11093   return 0;
11094 }
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11098   (eval $ac_compile) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } &&
11102          { ac_try='test -s conftest.$ac_objext'
11103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104   (eval $ac_try) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; }; then
11108   ac_cv_type_major_t=yes
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 ac_cv_type_major_t=no
11114 fi
11115 rm -f conftest.$ac_objext conftest.$ac_ext
11116 fi
11117 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11118 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11119 if test $ac_cv_type_major_t = yes; then
11120   :
11121 else
11122
11123 cat >>confdefs.h <<_ACEOF
11124 #define major_t int
11125 _ACEOF
11126
11127 fi
11128
11129 echo "$as_me:$LINENO: checking for minor_t" >&5
11130 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11131 if test "${ac_cv_type_minor_t+set}" = set; then
11132   echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134   cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11136 /* confdefs.h.  */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h.  */
11141 $ac_includes_default
11142 int
11143 main ()
11144 {
11145 if ((minor_t *) 0)
11146   return 0;
11147 if (sizeof (minor_t))
11148   return 0;
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155   (eval $ac_compile) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -s conftest.$ac_objext'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   ac_cv_type_minor_t=yes
11166 else
11167   echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 ac_cv_type_minor_t=no
11171 fi
11172 rm -f conftest.$ac_objext conftest.$ac_ext
11173 fi
11174 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11175 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11176 if test $ac_cv_type_minor_t = yes; then
11177   :
11178 else
11179
11180 cat >>confdefs.h <<_ACEOF
11181 #define minor_t int
11182 _ACEOF
11183
11184 fi
11185
11186 echo "$as_me:$LINENO: checking for ssize_t" >&5
11187 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11188 if test "${ac_cv_type_ssize_t+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191   cat >conftest.$ac_ext <<_ACEOF
11192 #line $LINENO "configure"
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198 $ac_includes_default
11199 int
11200 main ()
11201 {
11202 if ((ssize_t *) 0)
11203   return 0;
11204 if (sizeof (ssize_t))
11205   return 0;
11206   ;
11207   return 0;
11208 }
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212   (eval $ac_compile) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } &&
11216          { ac_try='test -s conftest.$ac_objext'
11217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218   (eval $ac_try) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; }; then
11222   ac_cv_type_ssize_t=yes
11223 else
11224   echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 ac_cv_type_ssize_t=no
11228 fi
11229 rm -f conftest.$ac_objext conftest.$ac_ext
11230 fi
11231 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11232 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11233 if test $ac_cv_type_ssize_t = yes; then
11234   :
11235 else
11236
11237 cat >>confdefs.h <<_ACEOF
11238 #define ssize_t int
11239 _ACEOF
11240
11241 fi
11242
11243 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11244 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11245 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 $ac_includes_default
11256 int
11257 main ()
11258 {
11259 static struct stat ac_aggr;
11260 if (ac_aggr.st_blocks)
11261 return 0;
11262   ;
11263   return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11268   (eval $ac_compile) 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -s conftest.$ac_objext'
11273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274   (eval $ac_try) 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; }; then
11278   ac_cv_member_struct_stat_st_blocks=yes
11279 else
11280   echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 $ac_includes_default
11291 int
11292 main ()
11293 {
11294 static struct stat ac_aggr;
11295 if (sizeof ac_aggr.st_blocks)
11296 return 0;
11297   ;
11298   return 0;
11299 }
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11303   (eval $ac_compile) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); } &&
11307          { ac_try='test -s conftest.$ac_objext'
11308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309   (eval $ac_try) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; }; then
11313   ac_cv_member_struct_stat_st_blocks=yes
11314 else
11315   echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 ac_cv_member_struct_stat_st_blocks=no
11319 fi
11320 rm -f conftest.$ac_objext conftest.$ac_ext
11321 fi
11322 rm -f conftest.$ac_objext conftest.$ac_ext
11323 fi
11324 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11325 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11326 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11327
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11330 _ACEOF
11331
11332
11333 cat >>confdefs.h <<\_ACEOF
11334 #define HAVE_ST_BLOCKS 1
11335 _ACEOF
11336
11337 else
11338   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11339 fi
11340
11341
11342
11343 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11344 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11345 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 /* confdefs.h.  */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h.  */
11355 $ac_includes_default
11356 int
11357 main ()
11358 {
11359 static struct stat ac_aggr;
11360 if (ac_aggr.st_rdev)
11361 return 0;
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368   (eval $ac_compile) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } &&
11372          { ac_try='test -s conftest.$ac_objext'
11373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374   (eval $ac_try) 2>&5
11375   ac_status=$?
11376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); }; }; then
11378   ac_cv_member_struct_stat_st_rdev=yes
11379 else
11380   echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11382
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 $ac_includes_default
11391 int
11392 main ()
11393 {
11394 static struct stat ac_aggr;
11395 if (sizeof ac_aggr.st_rdev)
11396 return 0;
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403   (eval $ac_compile) 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409   (eval $ac_try) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); }; }; then
11413   ac_cv_member_struct_stat_st_rdev=yes
11414 else
11415   echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11417
11418 ac_cv_member_struct_stat_st_rdev=no
11419 fi
11420 rm -f conftest.$ac_objext conftest.$ac_ext
11421 fi
11422 rm -f conftest.$ac_objext conftest.$ac_ext
11423 fi
11424 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11426 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11427
11428 cat >>confdefs.h <<_ACEOF
11429 #define HAVE_STRUCT_STAT_ST_RDEV 1
11430 _ACEOF
11431
11432
11433 cat >>confdefs.h <<\_ACEOF
11434 #define HAVE_ST_RDEV 1
11435 _ACEOF
11436
11437 fi
11438
11439
11440 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11441 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11442 if test "${ac_cv_struct_tm+set}" = set; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   cat >conftest.$ac_ext <<_ACEOF
11446 #line $LINENO "configure"
11447 /* confdefs.h.  */
11448 _ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h.  */
11452 #include <sys/types.h>
11453 #include <time.h>
11454
11455 int
11456 main ()
11457 {
11458 struct tm *tp; tp->tm_sec;
11459   ;
11460   return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11465   (eval $ac_compile) 2>&5
11466   ac_status=$?
11467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468   (exit $ac_status); } &&
11469          { ac_try='test -s conftest.$ac_objext'
11470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471   (eval $ac_try) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; }; then
11475   ac_cv_struct_tm=time.h
11476 else
11477   echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480 ac_cv_struct_tm=sys/time.h
11481 fi
11482 rm -f conftest.$ac_objext conftest.$ac_ext
11483 fi
11484 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11485 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11486 if test $ac_cv_struct_tm = sys/time.h; then
11487
11488 cat >>confdefs.h <<\_ACEOF
11489 #define TM_IN_SYS_TIME 1
11490 _ACEOF
11491
11492 fi
11493
11494 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11495 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11496 if test "${ac_cv_c_const+set}" = set; then
11497   echo $ECHO_N "(cached) $ECHO_C" >&6
11498 else
11499   cat >conftest.$ac_ext <<_ACEOF
11500 #line $LINENO "configure"
11501 /* confdefs.h.  */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h.  */
11506
11507 int
11508 main ()
11509 {
11510 /* FIXME: Include the comments suggested by Paul. */
11511 #ifndef __cplusplus
11512   /* Ultrix mips cc rejects this.  */
11513   typedef int charset[2];
11514   const charset x;
11515   /* SunOS 4.1.1 cc rejects this.  */
11516   char const *const *ccp;
11517   char **p;
11518   /* NEC SVR4.0.2 mips cc rejects this.  */
11519   struct point {int x, y;};
11520   static struct point const zero = {0,0};
11521   /* AIX XL C 1.02.0.0 rejects this.
11522      It does not let you subtract one const X* pointer from another in
11523      an arm of an if-expression whose if-part is not a constant
11524      expression */
11525   const char *g = "string";
11526   ccp = &g + (g ? g-g : 0);
11527   /* HPUX 7.0 cc rejects these. */
11528   ++ccp;
11529   p = (char**) ccp;
11530   ccp = (char const *const *) p;
11531   { /* SCO 3.2v4 cc rejects this.  */
11532     char *t;
11533     char const *s = 0 ? (char *) 0 : (char const *) 0;
11534
11535     *t++ = 0;
11536   }
11537   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11538     int x[] = {25, 17};
11539     const int *foo = &x[0];
11540     ++foo;
11541   }
11542   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11543     typedef const int *iptr;
11544     iptr p = 0;
11545     ++p;
11546   }
11547   { /* AIX XL C 1.02.0.0 rejects this saying
11548        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11549     struct s { int j; const int *ap[3]; };
11550     struct s *b; b->j = 5;
11551   }
11552   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11553     const int foo = 10;
11554   }
11555 #endif
11556
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563   (eval $ac_compile) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -s conftest.$ac_objext'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; }; then
11573   ac_cv_c_const=yes
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_cv_c_const=no
11579 fi
11580 rm -f conftest.$ac_objext conftest.$ac_ext
11581 fi
11582 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11583 echo "${ECHO_T}$ac_cv_c_const" >&6
11584 if test $ac_cv_c_const = no; then
11585
11586 cat >>confdefs.h <<\_ACEOF
11587 #define const
11588 _ACEOF
11589
11590 fi
11591
11592
11593
11594 echo "$as_me:$LINENO: checking for char" >&5
11595 echo $ECHO_N "checking for char... $ECHO_C" >&6
11596 if test "${ac_cv_type_char+set}" = set; then
11597   echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599   cat >conftest.$ac_ext <<_ACEOF
11600 #line $LINENO "configure"
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606 $ac_includes_default
11607 int
11608 main ()
11609 {
11610 if ((char *) 0)
11611   return 0;
11612 if (sizeof (char))
11613   return 0;
11614   ;
11615   return 0;
11616 }
11617 _ACEOF
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11620   (eval $ac_compile) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); } &&
11624          { ac_try='test -s conftest.$ac_objext'
11625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626   (eval $ac_try) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); }; }; then
11630   ac_cv_type_char=yes
11631 else
11632   echo "$as_me: failed program was:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11634
11635 ac_cv_type_char=no
11636 fi
11637 rm -f conftest.$ac_objext conftest.$ac_ext
11638 fi
11639 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11640 echo "${ECHO_T}$ac_cv_type_char" >&6
11641
11642 echo "$as_me:$LINENO: checking size of char" >&5
11643 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11644 if test "${ac_cv_sizeof_char+set}" = set; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   if test "$ac_cv_type_char" = yes; then
11648   # The cast to unsigned long works around a bug in the HP C Compiler
11649   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11650   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11651   # This bug is HP SR number 8606223364.
11652   if test "$cross_compiling" = yes; then
11653   # Depending upon the size, compute the lo and hi bounds.
11654 cat >conftest.$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 $ac_includes_default
11662 int
11663 main ()
11664 {
11665 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11666 test_array [0] = 0
11667
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674   (eval $ac_compile) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); } &&
11678          { ac_try='test -s conftest.$ac_objext'
11679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680   (eval $ac_try) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; }; then
11684   ac_lo=0 ac_mid=0
11685   while :; do
11686     cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 $ac_includes_default
11694 int
11695 main ()
11696 {
11697 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11698 test_array [0] = 0
11699
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706   (eval $ac_compile) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -s conftest.$ac_objext'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; }; then
11716   ac_hi=$ac_mid; break
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 ac_lo=`expr $ac_mid + 1`
11722                     if test $ac_lo -le $ac_mid; then
11723                       ac_lo= ac_hi=
11724                       break
11725                     fi
11726                     ac_mid=`expr 2 '*' $ac_mid + 1`
11727 fi
11728 rm -f conftest.$ac_objext conftest.$ac_ext
11729   done
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 cat >conftest.$ac_ext <<_ACEOF
11735 #line $LINENO "configure"
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 $ac_includes_default
11742 int
11743 main ()
11744 {
11745 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11746 test_array [0] = 0
11747
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754   (eval $ac_compile) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -s conftest.$ac_objext'
11759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760   (eval $ac_try) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; }; then
11764   ac_hi=-1 ac_mid=-1
11765   while :; do
11766     cat >conftest.$ac_ext <<_ACEOF
11767 #line $LINENO "configure"
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773 $ac_includes_default
11774 int
11775 main ()
11776 {
11777 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11778 test_array [0] = 0
11779
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786   (eval $ac_compile) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); } &&
11790          { ac_try='test -s conftest.$ac_objext'
11791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792   (eval $ac_try) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   ac_lo=$ac_mid; break
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 ac_hi=`expr '(' $ac_mid ')' - 1`
11802                        if test $ac_mid -le $ac_hi; then
11803                          ac_lo= ac_hi=
11804                          break
11805                        fi
11806                        ac_mid=`expr 2 '*' $ac_mid`
11807 fi
11808 rm -f conftest.$ac_objext conftest.$ac_ext
11809   done
11810 else
11811   echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_lo= ac_hi=
11815 fi
11816 rm -f conftest.$ac_objext conftest.$ac_ext
11817 fi
11818 rm -f conftest.$ac_objext conftest.$ac_ext
11819 # Binary search between lo and hi bounds.
11820 while test "x$ac_lo" != "x$ac_hi"; do
11821   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11822   cat >conftest.$ac_ext <<_ACEOF
11823 #line $LINENO "configure"
11824 /* confdefs.h.  */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h.  */
11829 $ac_includes_default
11830 int
11831 main ()
11832 {
11833 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11834 test_array [0] = 0
11835
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11842   (eval $ac_compile) 2>&5
11843   ac_status=$?
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -s conftest.$ac_objext'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; }; then
11852   ac_hi=$ac_mid
11853 else
11854   echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857 ac_lo=`expr '(' $ac_mid ')' + 1`
11858 fi
11859 rm -f conftest.$ac_objext conftest.$ac_ext
11860 done
11861 case $ac_lo in
11862 ?*) ac_cv_sizeof_char=$ac_lo;;
11863 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11864 See \`config.log' for more details." >&5
11865 echo "$as_me: error: cannot compute sizeof (char), 77
11866 See \`config.log' for more details." >&2;}
11867    { (exit 1); exit 1; }; } ;;
11868 esac
11869 else
11870   if test "$cross_compiling" = yes; then
11871   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11872 See \`config.log' for more details." >&5
11873 echo "$as_me: error: cannot run test program while cross compiling
11874 See \`config.log' for more details." >&2;}
11875    { (exit 1); exit 1; }; }
11876 else
11877   cat >conftest.$ac_ext <<_ACEOF
11878 #line $LINENO "configure"
11879 /* confdefs.h.  */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h.  */
11884 $ac_includes_default
11885 long longval () { return (long) (sizeof (char)); }
11886 unsigned long ulongval () { return (long) (sizeof (char)); }
11887 #include <stdio.h>
11888 #include <stdlib.h>
11889 int
11890 main ()
11891 {
11892
11893   FILE *f = fopen ("conftest.val", "w");
11894   if (! f)
11895     exit (1);
11896   if (((long) (sizeof (char))) < 0)
11897     {
11898       long i = longval ();
11899       if (i != ((long) (sizeof (char))))
11900         exit (1);
11901       fprintf (f, "%ld\n", i);
11902     }
11903   else
11904     {
11905       unsigned long i = ulongval ();
11906       if (i != ((long) (sizeof (char))))
11907         exit (1);
11908       fprintf (f, "%lu\n", i);
11909     }
11910   exit (ferror (f) || fclose (f) != 0);
11911
11912   ;
11913   return 0;
11914 }
11915 _ACEOF
11916 rm -f conftest$ac_exeext
11917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11918   (eval $ac_link) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; }; then
11927   ac_cv_sizeof_char=`cat conftest.val`
11928 else
11929   echo "$as_me: program exited with status $ac_status" >&5
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ( exit $ac_status )
11934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11935 See \`config.log' for more details." >&5
11936 echo "$as_me: error: cannot compute sizeof (char), 77
11937 See \`config.log' for more details." >&2;}
11938    { (exit 1); exit 1; }; }
11939 fi
11940 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11941 fi
11942 fi
11943 rm -f conftest.val
11944 else
11945   ac_cv_sizeof_char=0
11946 fi
11947 fi
11948 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11949 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11950 cat >>confdefs.h <<_ACEOF
11951 #define SIZEOF_CHAR $ac_cv_sizeof_char
11952 _ACEOF
11953
11954
11955 echo "$as_me:$LINENO: checking for short int" >&5
11956 echo $ECHO_N "checking for short int... $ECHO_C" >&6
11957 if test "${ac_cv_type_short_int+set}" = set; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960   cat >conftest.$ac_ext <<_ACEOF
11961 #line $LINENO "configure"
11962 /* confdefs.h.  */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h.  */
11967 $ac_includes_default
11968 int
11969 main ()
11970 {
11971 if ((short int *) 0)
11972   return 0;
11973 if (sizeof (short int))
11974   return 0;
11975   ;
11976   return 0;
11977 }
11978 _ACEOF
11979 rm -f conftest.$ac_objext
11980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11981   (eval $ac_compile) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); } &&
11985          { ac_try='test -s conftest.$ac_objext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   ac_cv_type_short_int=yes
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 ac_cv_type_short_int=no
11997 fi
11998 rm -f conftest.$ac_objext conftest.$ac_ext
11999 fi
12000 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12001 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12002
12003 echo "$as_me:$LINENO: checking size of short int" >&5
12004 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12005 if test "${ac_cv_sizeof_short_int+set}" = set; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 else
12008   if test "$ac_cv_type_short_int" = yes; then
12009   # The cast to unsigned long works around a bug in the HP C Compiler
12010   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12011   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12012   # This bug is HP SR number 8606223364.
12013   if test "$cross_compiling" = yes; then
12014   # Depending upon the size, compute the lo and hi bounds.
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022 $ac_includes_default
12023 int
12024 main ()
12025 {
12026 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12027 test_array [0] = 0
12028
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035   (eval $ac_compile) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -s conftest.$ac_objext'
12040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041   (eval $ac_try) 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   ac_lo=0 ac_mid=0
12046   while :; do
12047     cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054 $ac_includes_default
12055 int
12056 main ()
12057 {
12058 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12059 test_array [0] = 0
12060
12061   ;
12062   return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067   (eval $ac_compile) 2>&5
12068   ac_status=$?
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } &&
12071          { ac_try='test -s conftest.$ac_objext'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; }; then
12077   ac_hi=$ac_mid; break
12078 else
12079   echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_lo=`expr $ac_mid + 1`
12083                     if test $ac_lo -le $ac_mid; then
12084                       ac_lo= ac_hi=
12085                       break
12086                     fi
12087                     ac_mid=`expr 2 '*' $ac_mid + 1`
12088 fi
12089 rm -f conftest.$ac_objext conftest.$ac_ext
12090   done
12091 else
12092   echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095 cat >conftest.$ac_ext <<_ACEOF
12096 #line $LINENO "configure"
12097 /* confdefs.h.  */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h.  */
12102 $ac_includes_default
12103 int
12104 main ()
12105 {
12106 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12107 test_array [0] = 0
12108
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115   (eval $ac_compile) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -s conftest.$ac_objext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   ac_hi=-1 ac_mid=-1
12126   while :; do
12127     cat >conftest.$ac_ext <<_ACEOF
12128 #line $LINENO "configure"
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 $ac_includes_default
12135 int
12136 main ()
12137 {
12138 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12139 test_array [0] = 0
12140
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147   (eval $ac_compile) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); } &&
12151          { ac_try='test -s conftest.$ac_objext'
12152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153   (eval $ac_try) 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; }; then
12157   ac_lo=$ac_mid; break
12158 else
12159   echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12161
12162 ac_hi=`expr '(' $ac_mid ')' - 1`
12163                        if test $ac_mid -le $ac_hi; then
12164                          ac_lo= ac_hi=
12165                          break
12166                        fi
12167                        ac_mid=`expr 2 '*' $ac_mid`
12168 fi
12169 rm -f conftest.$ac_objext conftest.$ac_ext
12170   done
12171 else
12172   echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_lo= ac_hi=
12176 fi
12177 rm -f conftest.$ac_objext conftest.$ac_ext
12178 fi
12179 rm -f conftest.$ac_objext conftest.$ac_ext
12180 # Binary search between lo and hi bounds.
12181 while test "x$ac_lo" != "x$ac_hi"; do
12182   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12183   cat >conftest.$ac_ext <<_ACEOF
12184 #line $LINENO "configure"
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190 $ac_includes_default
12191 int
12192 main ()
12193 {
12194 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12195 test_array [0] = 0
12196
12197   ;
12198   return 0;
12199 }
12200 _ACEOF
12201 rm -f conftest.$ac_objext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203   (eval $ac_compile) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -s conftest.$ac_objext'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; }; then
12213   ac_hi=$ac_mid
12214 else
12215   echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12217
12218 ac_lo=`expr '(' $ac_mid ')' + 1`
12219 fi
12220 rm -f conftest.$ac_objext conftest.$ac_ext
12221 done
12222 case $ac_lo in
12223 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12224 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12225 See \`config.log' for more details." >&5
12226 echo "$as_me: error: cannot compute sizeof (short int), 77
12227 See \`config.log' for more details." >&2;}
12228    { (exit 1); exit 1; }; } ;;
12229 esac
12230 else
12231   if test "$cross_compiling" = yes; then
12232   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12233 See \`config.log' for more details." >&5
12234 echo "$as_me: error: cannot run test program while cross compiling
12235 See \`config.log' for more details." >&2;}
12236    { (exit 1); exit 1; }; }
12237 else
12238   cat >conftest.$ac_ext <<_ACEOF
12239 #line $LINENO "configure"
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 $ac_includes_default
12246 long longval () { return (long) (sizeof (short int)); }
12247 unsigned long ulongval () { return (long) (sizeof (short int)); }
12248 #include <stdio.h>
12249 #include <stdlib.h>
12250 int
12251 main ()
12252 {
12253
12254   FILE *f = fopen ("conftest.val", "w");
12255   if (! f)
12256     exit (1);
12257   if (((long) (sizeof (short int))) < 0)
12258     {
12259       long i = longval ();
12260       if (i != ((long) (sizeof (short int))))
12261         exit (1);
12262       fprintf (f, "%ld\n", i);
12263     }
12264   else
12265     {
12266       unsigned long i = ulongval ();
12267       if (i != ((long) (sizeof (short int))))
12268         exit (1);
12269       fprintf (f, "%lu\n", i);
12270     }
12271   exit (ferror (f) || fclose (f) != 0);
12272
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279   (eval $ac_link) 2>&5
12280   ac_status=$?
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284   (eval $ac_try) 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; }; then
12288   ac_cv_sizeof_short_int=`cat conftest.val`
12289 else
12290   echo "$as_me: program exited with status $ac_status" >&5
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ( exit $ac_status )
12295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12296 See \`config.log' for more details." >&5
12297 echo "$as_me: error: cannot compute sizeof (short int), 77
12298 See \`config.log' for more details." >&2;}
12299    { (exit 1); exit 1; }; }
12300 fi
12301 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12302 fi
12303 fi
12304 rm -f conftest.val
12305 else
12306   ac_cv_sizeof_short_int=0
12307 fi
12308 fi
12309 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12310 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12311 cat >>confdefs.h <<_ACEOF
12312 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12313 _ACEOF
12314
12315
12316 echo "$as_me:$LINENO: checking for int" >&5
12317 echo $ECHO_N "checking for int... $ECHO_C" >&6
12318 if test "${ac_cv_type_int+set}" = set; then
12319   echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321   cat >conftest.$ac_ext <<_ACEOF
12322 #line $LINENO "configure"
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328 $ac_includes_default
12329 int
12330 main ()
12331 {
12332 if ((int *) 0)
12333   return 0;
12334 if (sizeof (int))
12335   return 0;
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342   (eval $ac_compile) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } &&
12346          { ac_try='test -s conftest.$ac_objext'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   ac_cv_type_int=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ac_cv_type_int=no
12358 fi
12359 rm -f conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12362 echo "${ECHO_T}$ac_cv_type_int" >&6
12363
12364 echo "$as_me:$LINENO: checking size of int" >&5
12365 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12366 if test "${ac_cv_sizeof_int+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   if test "$ac_cv_type_int" = yes; then
12370   # The cast to unsigned long works around a bug in the HP C Compiler
12371   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12372   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12373   # This bug is HP SR number 8606223364.
12374   if test "$cross_compiling" = yes; then
12375   # Depending upon the size, compute the lo and hi bounds.
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 $ac_includes_default
12384 int
12385 main ()
12386 {
12387 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12388 test_array [0] = 0
12389
12390   ;
12391   return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396   (eval $ac_compile) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } &&
12400          { ac_try='test -s conftest.$ac_objext'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; }; then
12406   ac_lo=0 ac_mid=0
12407   while :; do
12408     cat >conftest.$ac_ext <<_ACEOF
12409 #line $LINENO "configure"
12410 /* confdefs.h.  */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h.  */
12415 $ac_includes_default
12416 int
12417 main ()
12418 {
12419 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12420 test_array [0] = 0
12421
12422   ;
12423   return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428   (eval $ac_compile) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } &&
12432          { ac_try='test -s conftest.$ac_objext'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   ac_hi=$ac_mid; break
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_lo=`expr $ac_mid + 1`
12444                     if test $ac_lo -le $ac_mid; then
12445                       ac_lo= ac_hi=
12446                       break
12447                     fi
12448                     ac_mid=`expr 2 '*' $ac_mid + 1`
12449 fi
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12451   done
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 $ac_includes_default
12464 int
12465 main ()
12466 {
12467 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12468 test_array [0] = 0
12469
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } &&
12480          { ac_try='test -s conftest.$ac_objext'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; }; then
12486   ac_hi=-1 ac_mid=-1
12487   while :; do
12488     cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 $ac_includes_default
12496 int
12497 main ()
12498 {
12499 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12500 test_array [0] = 0
12501
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508   (eval $ac_compile) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); } &&
12512          { ac_try='test -s conftest.$ac_objext'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   ac_lo=$ac_mid; break
12519 else
12520   echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523 ac_hi=`expr '(' $ac_mid ')' - 1`
12524                        if test $ac_mid -le $ac_hi; then
12525                          ac_lo= ac_hi=
12526                          break
12527                        fi
12528                        ac_mid=`expr 2 '*' $ac_mid`
12529 fi
12530 rm -f conftest.$ac_objext conftest.$ac_ext
12531   done
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_lo= ac_hi=
12537 fi
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 # Binary search between lo and hi bounds.
12542 while test "x$ac_lo" != "x$ac_hi"; do
12543   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12544   cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12546 /* confdefs.h.  */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h.  */
12551 $ac_includes_default
12552 int
12553 main ()
12554 {
12555 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12556 test_array [0] = 0
12557
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564   (eval $ac_compile) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } &&
12568          { ac_try='test -s conftest.$ac_objext'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_hi=$ac_mid
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_lo=`expr '(' $ac_mid ')' + 1`
12580 fi
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12582 done
12583 case $ac_lo in
12584 ?*) ac_cv_sizeof_int=$ac_lo;;
12585 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12586 See \`config.log' for more details." >&5
12587 echo "$as_me: error: cannot compute sizeof (int), 77
12588 See \`config.log' for more details." >&2;}
12589    { (exit 1); exit 1; }; } ;;
12590 esac
12591 else
12592   if test "$cross_compiling" = yes; then
12593   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12594 See \`config.log' for more details." >&5
12595 echo "$as_me: error: cannot run test program while cross compiling
12596 See \`config.log' for more details." >&2;}
12597    { (exit 1); exit 1; }; }
12598 else
12599   cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606 $ac_includes_default
12607 long longval () { return (long) (sizeof (int)); }
12608 unsigned long ulongval () { return (long) (sizeof (int)); }
12609 #include <stdio.h>
12610 #include <stdlib.h>
12611 int
12612 main ()
12613 {
12614
12615   FILE *f = fopen ("conftest.val", "w");
12616   if (! f)
12617     exit (1);
12618   if (((long) (sizeof (int))) < 0)
12619     {
12620       long i = longval ();
12621       if (i != ((long) (sizeof (int))))
12622         exit (1);
12623       fprintf (f, "%ld\n", i);
12624     }
12625   else
12626     {
12627       unsigned long i = ulongval ();
12628       if (i != ((long) (sizeof (int))))
12629         exit (1);
12630       fprintf (f, "%lu\n", i);
12631     }
12632   exit (ferror (f) || fclose (f) != 0);
12633
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640   (eval $ac_link) 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645   (eval $ac_try) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; }; then
12649   ac_cv_sizeof_int=`cat conftest.val`
12650 else
12651   echo "$as_me: program exited with status $ac_status" >&5
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 ( exit $ac_status )
12656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12657 See \`config.log' for more details." >&5
12658 echo "$as_me: error: cannot compute sizeof (int), 77
12659 See \`config.log' for more details." >&2;}
12660    { (exit 1); exit 1; }; }
12661 fi
12662 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12663 fi
12664 fi
12665 rm -f conftest.val
12666 else
12667   ac_cv_sizeof_int=0
12668 fi
12669 fi
12670 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12671 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12672 cat >>confdefs.h <<_ACEOF
12673 #define SIZEOF_INT $ac_cv_sizeof_int
12674 _ACEOF
12675
12676
12677 echo "$as_me:$LINENO: checking for long int" >&5
12678 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12679 if test "${ac_cv_type_long_int+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   cat >conftest.$ac_ext <<_ACEOF
12683 #line $LINENO "configure"
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 $ac_includes_default
12690 int
12691 main ()
12692 {
12693 if ((long int *) 0)
12694   return 0;
12695 if (sizeof (long int))
12696   return 0;
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703   (eval $ac_compile) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); } &&
12707          { ac_try='test -s conftest.$ac_objext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_type_long_int=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ac_cv_type_long_int=no
12719 fi
12720 rm -f conftest.$ac_objext conftest.$ac_ext
12721 fi
12722 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12723 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12724
12725 echo "$as_me:$LINENO: checking size of long int" >&5
12726 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12727 if test "${ac_cv_sizeof_long_int+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   if test "$ac_cv_type_long_int" = yes; then
12731   # The cast to unsigned long works around a bug in the HP C Compiler
12732   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12733   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12734   # This bug is HP SR number 8606223364.
12735   if test "$cross_compiling" = yes; then
12736   # Depending upon the size, compute the lo and hi bounds.
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12739 /* confdefs.h.  */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h.  */
12744 $ac_includes_default
12745 int
12746 main ()
12747 {
12748 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12749 test_array [0] = 0
12750
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757   (eval $ac_compile) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } &&
12761          { ac_try='test -s conftest.$ac_objext'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767   ac_lo=0 ac_mid=0
12768   while :; do
12769     cat >conftest.$ac_ext <<_ACEOF
12770 #line $LINENO "configure"
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 $ac_includes_default
12777 int
12778 main ()
12779 {
12780 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12781 test_array [0] = 0
12782
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789   (eval $ac_compile) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -s conftest.$ac_objext'
12794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795   (eval $ac_try) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; }; then
12799   ac_hi=$ac_mid; break
12800 else
12801   echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804 ac_lo=`expr $ac_mid + 1`
12805                     if test $ac_lo -le $ac_mid; then
12806                       ac_lo= ac_hi=
12807                       break
12808                     fi
12809                     ac_mid=`expr 2 '*' $ac_mid + 1`
12810 fi
12811 rm -f conftest.$ac_objext conftest.$ac_ext
12812   done
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line $LINENO "configure"
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824 $ac_includes_default
12825 int
12826 main ()
12827 {
12828 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12829 test_array [0] = 0
12830
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837   (eval $ac_compile) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -s conftest.$ac_objext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   ac_hi=-1 ac_mid=-1
12848   while :; do
12849     cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856 $ac_includes_default
12857 int
12858 main ()
12859 {
12860 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
12861 test_array [0] = 0
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869   (eval $ac_compile) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -s conftest.$ac_objext'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; }; then
12879   ac_lo=$ac_mid; break
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12883
12884 ac_hi=`expr '(' $ac_mid ')' - 1`
12885                        if test $ac_mid -le $ac_hi; then
12886                          ac_lo= ac_hi=
12887                          break
12888                        fi
12889                        ac_mid=`expr 2 '*' $ac_mid`
12890 fi
12891 rm -f conftest.$ac_objext conftest.$ac_ext
12892   done
12893 else
12894   echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_lo= ac_hi=
12898 fi
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12902 # Binary search between lo and hi bounds.
12903 while test "x$ac_lo" != "x$ac_hi"; do
12904   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12905   cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12907 /* confdefs.h.  */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h.  */
12912 $ac_includes_default
12913 int
12914 main ()
12915 {
12916 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12917 test_array [0] = 0
12918
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925   (eval $ac_compile) 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); } &&
12929          { ac_try='test -s conftest.$ac_objext'
12930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931   (eval $ac_try) 2>&5
12932   ac_status=$?
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); }; }; then
12935   ac_hi=$ac_mid
12936 else
12937   echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12939
12940 ac_lo=`expr '(' $ac_mid ')' + 1`
12941 fi
12942 rm -f conftest.$ac_objext conftest.$ac_ext
12943 done
12944 case $ac_lo in
12945 ?*) ac_cv_sizeof_long_int=$ac_lo;;
12946 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
12947 See \`config.log' for more details." >&5
12948 echo "$as_me: error: cannot compute sizeof (long int), 77
12949 See \`config.log' for more details." >&2;}
12950    { (exit 1); exit 1; }; } ;;
12951 esac
12952 else
12953   if test "$cross_compiling" = yes; then
12954   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12955 See \`config.log' for more details." >&5
12956 echo "$as_me: error: cannot run test program while cross compiling
12957 See \`config.log' for more details." >&2;}
12958    { (exit 1); exit 1; }; }
12959 else
12960   cat >conftest.$ac_ext <<_ACEOF
12961 #line $LINENO "configure"
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967 $ac_includes_default
12968 long longval () { return (long) (sizeof (long int)); }
12969 unsigned long ulongval () { return (long) (sizeof (long int)); }
12970 #include <stdio.h>
12971 #include <stdlib.h>
12972 int
12973 main ()
12974 {
12975
12976   FILE *f = fopen ("conftest.val", "w");
12977   if (! f)
12978     exit (1);
12979   if (((long) (sizeof (long int))) < 0)
12980     {
12981       long i = longval ();
12982       if (i != ((long) (sizeof (long int))))
12983         exit (1);
12984       fprintf (f, "%ld\n", i);
12985     }
12986   else
12987     {
12988       unsigned long i = ulongval ();
12989       if (i != ((long) (sizeof (long int))))
12990         exit (1);
12991       fprintf (f, "%lu\n", i);
12992     }
12993   exit (ferror (f) || fclose (f) != 0);
12994
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest$ac_exeext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13001   (eval $ac_link) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006   (eval $ac_try) 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; }; then
13010   ac_cv_sizeof_long_int=`cat conftest.val`
13011 else
13012   echo "$as_me: program exited with status $ac_status" >&5
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016 ( exit $ac_status )
13017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13018 See \`config.log' for more details." >&5
13019 echo "$as_me: error: cannot compute sizeof (long int), 77
13020 See \`config.log' for more details." >&2;}
13021    { (exit 1); exit 1; }; }
13022 fi
13023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13024 fi
13025 fi
13026 rm -f conftest.val
13027 else
13028   ac_cv_sizeof_long_int=0
13029 fi
13030 fi
13031 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13032 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13035 _ACEOF
13036
13037
13038 echo "$as_me:$LINENO: checking for long long int" >&5
13039 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13040 if test "${ac_cv_type_long_long_int+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   cat >conftest.$ac_ext <<_ACEOF
13044 #line $LINENO "configure"
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050 $ac_includes_default
13051 int
13052 main ()
13053 {
13054 if ((long long int *) 0)
13055   return 0;
13056 if (sizeof (long long int))
13057   return 0;
13058   ;
13059   return 0;
13060 }
13061 _ACEOF
13062 rm -f conftest.$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064   (eval $ac_compile) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } &&
13068          { ac_try='test -s conftest.$ac_objext'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; }; then
13074   ac_cv_type_long_long_int=yes
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 ac_cv_type_long_long_int=no
13080 fi
13081 rm -f conftest.$ac_objext conftest.$ac_ext
13082 fi
13083 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13084 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13085
13086 echo "$as_me:$LINENO: checking size of long long int" >&5
13087 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13088 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091   if test "$ac_cv_type_long_long_int" = yes; then
13092   # The cast to unsigned long works around a bug in the HP C Compiler
13093   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13094   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13095   # This bug is HP SR number 8606223364.
13096   if test "$cross_compiling" = yes; then
13097   # Depending upon the size, compute the lo and hi bounds.
13098 cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105 $ac_includes_default
13106 int
13107 main ()
13108 {
13109 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13110 test_array [0] = 0
13111
13112   ;
13113   return 0;
13114 }
13115 _ACEOF
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118   (eval $ac_compile) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -s conftest.$ac_objext'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }; then
13128   ac_lo=0 ac_mid=0
13129   while :; do
13130     cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 /* confdefs.h.  */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h.  */
13137 $ac_includes_default
13138 int
13139 main ()
13140 {
13141 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13142 test_array [0] = 0
13143
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest.$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150   (eval $ac_compile) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } &&
13154          { ac_try='test -s conftest.$ac_objext'
13155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156   (eval $ac_try) 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_hi=$ac_mid; break
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_lo=`expr $ac_mid + 1`
13166                     if test $ac_lo -le $ac_mid; then
13167                       ac_lo= ac_hi=
13168                       break
13169                     fi
13170                     ac_mid=`expr 2 '*' $ac_mid + 1`
13171 fi
13172 rm -f conftest.$ac_objext conftest.$ac_ext
13173   done
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13180 /* confdefs.h.  */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h.  */
13185 $ac_includes_default
13186 int
13187 main ()
13188 {
13189 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13190 test_array [0] = 0
13191
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198   (eval $ac_compile) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -s conftest.$ac_objext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   ac_hi=-1 ac_mid=-1
13209   while :; do
13210     cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217 $ac_includes_default
13218 int
13219 main ()
13220 {
13221 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13222 test_array [0] = 0
13223
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230   (eval $ac_compile) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -s conftest.$ac_objext'
13235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236   (eval $ac_try) 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; }; then
13240   ac_lo=$ac_mid; break
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245 ac_hi=`expr '(' $ac_mid ')' - 1`
13246                        if test $ac_mid -le $ac_hi; then
13247                          ac_lo= ac_hi=
13248                          break
13249                        fi
13250                        ac_mid=`expr 2 '*' $ac_mid`
13251 fi
13252 rm -f conftest.$ac_objext conftest.$ac_ext
13253   done
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 ac_lo= ac_hi=
13259 fi
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13263 # Binary search between lo and hi bounds.
13264 while test "x$ac_lo" != "x$ac_hi"; do
13265   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13266   cat >conftest.$ac_ext <<_ACEOF
13267 #line $LINENO "configure"
13268 /* confdefs.h.  */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h.  */
13273 $ac_includes_default
13274 int
13275 main ()
13276 {
13277 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13278 test_array [0] = 0
13279
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 rm -f conftest.$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286   (eval $ac_compile) 2>&5
13287   ac_status=$?
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } &&
13290          { ac_try='test -s conftest.$ac_objext'
13291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292   (eval $ac_try) 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; }; then
13296   ac_hi=$ac_mid
13297 else
13298   echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_lo=`expr '(' $ac_mid ')' + 1`
13302 fi
13303 rm -f conftest.$ac_objext conftest.$ac_ext
13304 done
13305 case $ac_lo in
13306 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13307 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13308 See \`config.log' for more details." >&5
13309 echo "$as_me: error: cannot compute sizeof (long long int), 77
13310 See \`config.log' for more details." >&2;}
13311    { (exit 1); exit 1; }; } ;;
13312 esac
13313 else
13314   if test "$cross_compiling" = yes; then
13315   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13316 See \`config.log' for more details." >&5
13317 echo "$as_me: error: cannot run test program while cross compiling
13318 See \`config.log' for more details." >&2;}
13319    { (exit 1); exit 1; }; }
13320 else
13321   cat >conftest.$ac_ext <<_ACEOF
13322 #line $LINENO "configure"
13323 /* confdefs.h.  */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h.  */
13328 $ac_includes_default
13329 long longval () { return (long) (sizeof (long long int)); }
13330 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13331 #include <stdio.h>
13332 #include <stdlib.h>
13333 int
13334 main ()
13335 {
13336
13337   FILE *f = fopen ("conftest.val", "w");
13338   if (! f)
13339     exit (1);
13340   if (((long) (sizeof (long long int))) < 0)
13341     {
13342       long i = longval ();
13343       if (i != ((long) (sizeof (long long int))))
13344         exit (1);
13345       fprintf (f, "%ld\n", i);
13346     }
13347   else
13348     {
13349       unsigned long i = ulongval ();
13350       if (i != ((long) (sizeof (long long int))))
13351         exit (1);
13352       fprintf (f, "%lu\n", i);
13353     }
13354   exit (ferror (f) || fclose (f) != 0);
13355
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362   (eval $ac_link) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367   (eval $ac_try) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; }; then
13371   ac_cv_sizeof_long_long_int=`cat conftest.val`
13372 else
13373   echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 ( exit $ac_status )
13378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13379 See \`config.log' for more details." >&5
13380 echo "$as_me: error: cannot compute sizeof (long long int), 77
13381 See \`config.log' for more details." >&2;}
13382    { (exit 1); exit 1; }; }
13383 fi
13384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13385 fi
13386 fi
13387 rm -f conftest.val
13388 else
13389   ac_cv_sizeof_long_long_int=0
13390 fi
13391 fi
13392 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13393 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13394 cat >>confdefs.h <<_ACEOF
13395 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13396 _ACEOF
13397
13398
13399 echo "$as_me:$LINENO: checking for int *" >&5
13400 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13401 if test "${ac_cv_type_int_p+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 $ac_includes_default
13412 int
13413 main ()
13414 {
13415 if ((int * *) 0)
13416   return 0;
13417 if (sizeof (int *))
13418   return 0;
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425   (eval $ac_compile) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -s conftest.$ac_objext'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; }; then
13435   ac_cv_type_int_p=yes
13436 else
13437   echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_cv_type_int_p=no
13441 fi
13442 rm -f conftest.$ac_objext conftest.$ac_ext
13443 fi
13444 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13445 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13446
13447 echo "$as_me:$LINENO: checking size of int *" >&5
13448 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13449 if test "${ac_cv_sizeof_int_p+set}" = set; then
13450   echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452   if test "$ac_cv_type_int_p" = yes; then
13453   # The cast to unsigned long works around a bug in the HP C Compiler
13454   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13455   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13456   # This bug is HP SR number 8606223364.
13457   if test "$cross_compiling" = yes; then
13458   # Depending upon the size, compute the lo and hi bounds.
13459 cat >conftest.$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13461 /* confdefs.h.  */
13462 _ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h.  */
13466 $ac_includes_default
13467 int
13468 main ()
13469 {
13470 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13471 test_array [0] = 0
13472
13473   ;
13474   return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479   (eval $ac_compile) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -s conftest.$ac_objext'
13484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485   (eval $ac_try) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; }; then
13489   ac_lo=0 ac_mid=0
13490   while :; do
13491     cat >conftest.$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498 $ac_includes_default
13499 int
13500 main ()
13501 {
13502 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13503 test_array [0] = 0
13504
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511   (eval $ac_compile) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -s conftest.$ac_objext'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; }; then
13521   ac_hi=$ac_mid; break
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526 ac_lo=`expr $ac_mid + 1`
13527                     if test $ac_lo -le $ac_mid; then
13528                       ac_lo= ac_hi=
13529                       break
13530                     fi
13531                     ac_mid=`expr 2 '*' $ac_mid + 1`
13532 fi
13533 rm -f conftest.$ac_objext conftest.$ac_ext
13534   done
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 cat >conftest.$ac_ext <<_ACEOF
13540 #line $LINENO "configure"
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 $ac_includes_default
13547 int
13548 main ()
13549 {
13550 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13551 test_array [0] = 0
13552
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559   (eval $ac_compile) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); } &&
13563          { ac_try='test -s conftest.$ac_objext'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; }; then
13569   ac_hi=-1 ac_mid=-1
13570   while :; do
13571     cat >conftest.$ac_ext <<_ACEOF
13572 #line $LINENO "configure"
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 $ac_includes_default
13579 int
13580 main ()
13581 {
13582 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13583 test_array [0] = 0
13584
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591   (eval $ac_compile) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } &&
13595          { ac_try='test -s conftest.$ac_objext'
13596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597   (eval $ac_try) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; }; then
13601   ac_lo=$ac_mid; break
13602 else
13603   echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13605
13606 ac_hi=`expr '(' $ac_mid ')' - 1`
13607                        if test $ac_mid -le $ac_hi; then
13608                          ac_lo= ac_hi=
13609                          break
13610                        fi
13611                        ac_mid=`expr 2 '*' $ac_mid`
13612 fi
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13614   done
13615 else
13616   echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 ac_lo= ac_hi=
13620 fi
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13622 fi
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13624 # Binary search between lo and hi bounds.
13625 while test "x$ac_lo" != "x$ac_hi"; do
13626   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627   cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 $ac_includes_default
13635 int
13636 main ()
13637 {
13638 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13639 test_array [0] = 0
13640
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647   (eval $ac_compile) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } &&
13651          { ac_try='test -s conftest.$ac_objext'
13652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653   (eval $ac_try) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   ac_hi=$ac_mid
13658 else
13659   echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 ac_lo=`expr '(' $ac_mid ')' + 1`
13663 fi
13664 rm -f conftest.$ac_objext conftest.$ac_ext
13665 done
13666 case $ac_lo in
13667 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13669 See \`config.log' for more details." >&5
13670 echo "$as_me: error: cannot compute sizeof (int *), 77
13671 See \`config.log' for more details." >&2;}
13672    { (exit 1); exit 1; }; } ;;
13673 esac
13674 else
13675   if test "$cross_compiling" = yes; then
13676   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13677 See \`config.log' for more details." >&5
13678 echo "$as_me: error: cannot run test program while cross compiling
13679 See \`config.log' for more details." >&2;}
13680    { (exit 1); exit 1; }; }
13681 else
13682   cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689 $ac_includes_default
13690 long longval () { return (long) (sizeof (int *)); }
13691 unsigned long ulongval () { return (long) (sizeof (int *)); }
13692 #include <stdio.h>
13693 #include <stdlib.h>
13694 int
13695 main ()
13696 {
13697
13698   FILE *f = fopen ("conftest.val", "w");
13699   if (! f)
13700     exit (1);
13701   if (((long) (sizeof (int *))) < 0)
13702     {
13703       long i = longval ();
13704       if (i != ((long) (sizeof (int *))))
13705         exit (1);
13706       fprintf (f, "%ld\n", i);
13707     }
13708   else
13709     {
13710       unsigned long i = ulongval ();
13711       if (i != ((long) (sizeof (int *))))
13712         exit (1);
13713       fprintf (f, "%lu\n", i);
13714     }
13715   exit (ferror (f) || fclose (f) != 0);
13716
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723   (eval $ac_link) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_sizeof_int_p=`cat conftest.val`
13733 else
13734   echo "$as_me: program exited with status $ac_status" >&5
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ( exit $ac_status )
13739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13740 See \`config.log' for more details." >&5
13741 echo "$as_me: error: cannot compute sizeof (int *), 77
13742 See \`config.log' for more details." >&2;}
13743    { (exit 1); exit 1; }; }
13744 fi
13745 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13746 fi
13747 fi
13748 rm -f conftest.val
13749 else
13750   ac_cv_sizeof_int_p=0
13751 fi
13752 fi
13753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13754 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13755 cat >>confdefs.h <<_ACEOF
13756 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13757 _ACEOF
13758
13759
13760
13761 # Check for sys/types.h types
13762 echo "$as_me:$LINENO: checking for u_int type" >&5
13763 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13764 if test "${ac_cv_have_u_int+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767
13768     cat >conftest.$ac_ext <<_ACEOF
13769 #line $LINENO "configure"
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775  #include <sys/types.h>
13776 int
13777 main ()
13778 {
13779  u_int a; a = 1;
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786   (eval $ac_compile) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } &&
13790          { ac_try='test -s conftest.$ac_objext'
13791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792   (eval $ac_try) 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); }; }; then
13796    ac_cv_have_u_int="yes"
13797 else
13798   echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801  ac_cv_have_u_int="no"
13802
13803 fi
13804 rm -f conftest.$ac_objext conftest.$ac_ext
13805
13806 fi
13807 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13808 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13809 if test "x$ac_cv_have_u_int" = "xyes" ; then
13810    cat >>confdefs.h <<\_ACEOF
13811 #define HAVE_U_INT 1
13812 _ACEOF
13813
13814    have_u_int=1
13815 fi
13816
13817 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13818 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13819 if test "${ac_cv_have_intmax_t+set}" = set; then
13820   echo $ECHO_N "(cached) $ECHO_C" >&6
13821 else
13822
13823    cat >conftest.$ac_ext <<_ACEOF
13824 #line $LINENO "configure"
13825 /* confdefs.h.  */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h.  */
13830  #include <sys/types.h>
13831 int
13832 main ()
13833 {
13834  intmax_t a; a = 1;
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841   (eval $ac_compile) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } &&
13845          { ac_try='test -s conftest.$ac_objext'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }; then
13851    ac_cv_have_intmax_t="yes"
13852 else
13853   echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856
13857          cat >conftest.$ac_ext <<_ACEOF
13858 #line $LINENO "configure"
13859 /* confdefs.h.  */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h.  */
13864  #include <stdint.h>
13865 int
13866 main ()
13867 {
13868  intmax_t a; a = 1;
13869   ;
13870   return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875   (eval $ac_compile) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } &&
13879          { ac_try='test -s conftest.$ac_objext'
13880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881   (eval $ac_try) 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885    ac_cv_have_intmax_t="yes"
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890  ac_cv_have_intmax_t="no"
13891
13892 fi
13893 rm -f conftest.$ac_objext conftest.$ac_ext
13894
13895
13896 fi
13897 rm -f conftest.$ac_objext conftest.$ac_ext
13898
13899
13900 fi
13901 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
13902 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
13903 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
13904    cat >>confdefs.h <<\_ACEOF
13905 #define HAVE_INTMAX_T 1
13906 _ACEOF
13907
13908    have_intmax_t=1
13909 fi
13910
13911
13912 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
13913 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
13914 if test "${ac_cv_have_u_intmax_t+set}" = set; then
13915   echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917
13918    cat >conftest.$ac_ext <<_ACEOF
13919 #line $LINENO "configure"
13920 /* confdefs.h.  */
13921 _ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h.  */
13925  #include <sys/types.h>
13926 int
13927 main ()
13928 {
13929  u_intmax_t a; a = 1;
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936   (eval $ac_compile) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -s conftest.$ac_objext'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; }; then
13946    ac_cv_have_u_intmax_t="yes"
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951
13952          cat >conftest.$ac_ext <<_ACEOF
13953 #line $LINENO "configure"
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959  #include <stdint.h>
13960 int
13961 main ()
13962 {
13963  u_intmax_t a; a = 1;
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970   (eval $ac_compile) 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); } &&
13974          { ac_try='test -s conftest.$ac_objext'
13975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976   (eval $ac_try) 2>&5
13977   ac_status=$?
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); }; }; then
13980    ac_cv_have_u_intmax_t="yes"
13981 else
13982   echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985  ac_cv_have_u_intmax_t="no"
13986
13987 fi
13988 rm -f conftest.$ac_objext conftest.$ac_ext
13989
13990
13991 fi
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13993
13994 fi
13995 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
13996 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
13997 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
13998    cat >>confdefs.h <<\_ACEOF
13999 #define HAVE_U_INTMAX_T 1
14000 _ACEOF
14001
14002    have_u_intmax_t=1
14003 fi
14004
14005
14006 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14007 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14008 if test "${ac_cv_have_intxx_t+set}" = set; then
14009   echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011
14012    cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14014 /* confdefs.h.  */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h.  */
14019  #include <sys/types.h>
14020 int
14021 main ()
14022 {
14023  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 rm -f conftest.$ac_objext
14029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14030   (eval $ac_compile) 2>&5
14031   ac_status=$?
14032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033   (exit $ac_status); } &&
14034          { ac_try='test -s conftest.$ac_objext'
14035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036   (eval $ac_try) 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; }; then
14040    ac_cv_have_intxx_t="yes"
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045  ac_cv_have_intxx_t="no"
14046
14047 fi
14048 rm -f conftest.$ac_objext conftest.$ac_ext
14049
14050 fi
14051 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14052 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14053 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14054    cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_INTXX_T 1
14056 _ACEOF
14057
14058    have_intxx_t=1
14059 fi
14060
14061 echo "$as_me:$LINENO: checking for int64_t type" >&5
14062 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14063 if test "${ac_cv_have_int64_t+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066
14067    cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074  #include <sys/types.h>
14075 int
14076 main ()
14077 {
14078  int64_t a; a = 1;
14079   ;
14080   return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085   (eval $ac_compile) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); } &&
14089          { ac_try='test -s conftest.$ac_objext'
14090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091   (eval $ac_try) 2>&5
14092   ac_status=$?
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); }; }; then
14095    ac_cv_have_int64_t="yes"
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100  ac_cv_have_int64_t="no"
14101
14102 fi
14103 rm -f conftest.$ac_objext conftest.$ac_ext
14104
14105 fi
14106 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14107 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14108 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14109    cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_INT64_T 1
14111 _ACEOF
14112
14113    have_int64_t=1
14114 fi
14115
14116 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14117 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14118 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14119   echo $ECHO_N "(cached) $ECHO_C" >&6
14120 else
14121
14122    cat >conftest.$ac_ext <<_ACEOF
14123 #line $LINENO "configure"
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129  #include <sys/types.h>
14130 int
14131 main ()
14132 {
14133  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140   (eval $ac_compile) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } &&
14144          { ac_try='test -s conftest.$ac_objext'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150    ac_cv_have_u_intxx_t="yes"
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155  ac_cv_have_u_intxx_t="no"
14156
14157 fi
14158 rm -f conftest.$ac_objext conftest.$ac_ext
14159
14160 fi
14161 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14162 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14163 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14164    cat >>confdefs.h <<\_ACEOF
14165 #define HAVE_U_INTXX_T 1
14166 _ACEOF
14167
14168    have_u_intxx_t=1
14169 fi
14170
14171 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14172 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14173 if test "${ac_cv_have_u_int64_t+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176
14177    cat >conftest.$ac_ext <<_ACEOF
14178 #line $LINENO "configure"
14179 /* confdefs.h.  */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h.  */
14184  #include <sys/types.h>
14185 int
14186 main ()
14187 {
14188  u_int64_t a; a = 1;
14189   ;
14190   return 0;
14191 }
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195   (eval $ac_compile) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); } &&
14199          { ac_try='test -s conftest.$ac_objext'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }; then
14205    ac_cv_have_u_int64_t="yes"
14206 else
14207   echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210  ac_cv_have_u_int64_t="no"
14211
14212 fi
14213 rm -f conftest.$ac_objext conftest.$ac_ext
14214
14215 fi
14216 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14217 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14218 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14219    cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_U_INT64_T 1
14221 _ACEOF
14222
14223    have_u_int64_t=1
14224 fi
14225
14226 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14227            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14228 then
14229    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14230 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14231    cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238  #include <sys/bitypes.h>
14239 int
14240 main ()
14241 {
14242  int8_t a; int16_t b; int32_t c;
14243         u_int8_t e; u_int16_t f; u_int32_t g;
14244         a = b = c = e = f = g = 1;
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251   (eval $ac_compile) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261    cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_U_INTXX_T 1
14263 _ACEOF
14264
14265         cat >>confdefs.h <<\_ACEOF
14266 #define HAVE_INTXX_T 1
14267 _ACEOF
14268
14269         cat >>confdefs.h <<\_ACEOF
14270 #define HAVE_SYS_BITYPES_H 1
14271 _ACEOF
14272
14273         echo "$as_me:$LINENO: result: yes" >&5
14274 echo "${ECHO_T}yes" >&6
14275 else
14276   echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279  echo "$as_me:$LINENO: result: no" >&5
14280 echo "${ECHO_T}no" >&6
14281
14282 fi
14283 rm -f conftest.$ac_objext conftest.$ac_ext
14284 fi
14285
14286 if test -z "$have_u_intxx_t" ; then
14287    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14288 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14289 if test "${ac_cv_have_uintxx_t+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292
14293       cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300  #include <sys/types.h>
14301 int
14302 main ()
14303 {
14304  uint8_t a; uint16_t b;
14305            uint32_t c; a = b = c = 1;
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312   (eval $ac_compile) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } &&
14316          { ac_try='test -s conftest.$ac_objext'
14317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318   (eval $ac_try) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; }; then
14322    ac_cv_have_uintxx_t="yes"
14323 else
14324   echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14326
14327  ac_cv_have_uintxx_t="no"
14328
14329 fi
14330 rm -f conftest.$ac_objext conftest.$ac_ext
14331
14332 fi
14333 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14334 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14335    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14336       cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_UINTXX_T 1
14338 _ACEOF
14339
14340    fi
14341 fi
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357 for ac_func in \
14358         fork \
14359         getcwd \
14360         gethostname \
14361         getpid \
14362         gettimeofday \
14363         setpgid \
14364         setpgrp \
14365         setsid \
14366         signal \
14367         strerror \
14368         strncmp \
14369         strncpy \
14370         vfprintf \
14371
14372 do
14373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14374 echo "$as_me:$LINENO: checking for $ac_func" >&5
14375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14376 if eval "test \"\${$as_ac_var+set}\" = set"; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   cat >conftest.$ac_ext <<_ACEOF
14380 #line $LINENO "configure"
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386 /* System header to define __stub macros and hopefully few prototypes,
14387     which can conflict with char $ac_func (); below.
14388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14389     <limits.h> exists even on freestanding compilers.  */
14390 #ifdef __STDC__
14391 # include <limits.h>
14392 #else
14393 # include <assert.h>
14394 #endif
14395 /* Override any gcc2 internal prototype to avoid an error.  */
14396 #ifdef __cplusplus
14397 extern "C"
14398 {
14399 #endif
14400 /* We use char because int might match the return type of a gcc2
14401    builtin and then its argument prototype would still apply.  */
14402 char $ac_func ();
14403 /* The GNU C library defines this for functions which it implements
14404     to always fail with ENOSYS.  Some functions are actually named
14405     something starting with __ and the normal name is an alias.  */
14406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14407 choke me
14408 #else
14409 char (*f) () = $ac_func;
14410 #endif
14411 #ifdef __cplusplus
14412 }
14413 #endif
14414
14415 int
14416 main ()
14417 {
14418 return f != $ac_func;
14419   ;
14420   return 0;
14421 }
14422 _ACEOF
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14425   (eval $ac_link) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); } &&
14429          { ac_try='test -s conftest$ac_exeext'
14430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431   (eval $ac_try) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   eval "$as_ac_var=yes"
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 eval "$as_ac_var=no"
14441 fi
14442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14443 fi
14444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14446 if test `eval echo '${'$as_ac_var'}'` = yes; then
14447   cat >>confdefs.h <<_ACEOF
14448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14449 _ACEOF
14450
14451 else
14452   echo 'configure: cannot find needed function.'; exit 1
14453
14454 fi
14455 done
14456
14457
14458
14459 for ac_func in fchdir
14460 do
14461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14462 echo "$as_me:$LINENO: checking for $ac_func" >&5
14463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14464 if eval "test \"\${$as_ac_var+set}\" = set"; then
14465   echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467   cat >conftest.$ac_ext <<_ACEOF
14468 #line $LINENO "configure"
14469 /* confdefs.h.  */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h.  */
14474 /* System header to define __stub macros and hopefully few prototypes,
14475     which can conflict with char $ac_func (); below.
14476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14477     <limits.h> exists even on freestanding compilers.  */
14478 #ifdef __STDC__
14479 # include <limits.h>
14480 #else
14481 # include <assert.h>
14482 #endif
14483 /* Override any gcc2 internal prototype to avoid an error.  */
14484 #ifdef __cplusplus
14485 extern "C"
14486 {
14487 #endif
14488 /* We use char because int might match the return type of a gcc2
14489    builtin and then its argument prototype would still apply.  */
14490 char $ac_func ();
14491 /* The GNU C library defines this for functions which it implements
14492     to always fail with ENOSYS.  Some functions are actually named
14493     something starting with __ and the normal name is an alias.  */
14494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14495 choke me
14496 #else
14497 char (*f) () = $ac_func;
14498 #endif
14499 #ifdef __cplusplus
14500 }
14501 #endif
14502
14503 int
14504 main ()
14505 {
14506 return f != $ac_func;
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 rm -f conftest.$ac_objext conftest$ac_exeext
14512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513   (eval $ac_link) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -s conftest$ac_exeext'
14518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519   (eval $ac_try) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; }; then
14523   eval "$as_ac_var=yes"
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528 eval "$as_ac_var=no"
14529 fi
14530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14531 fi
14532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14534 if test `eval echo '${'$as_ac_var'}'` = yes; then
14535   cat >>confdefs.h <<_ACEOF
14536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14537 _ACEOF
14538  cat >>confdefs.h <<\_ACEOF
14539 #define HAVE_FCHDIR 1
14540 _ACEOF
14541
14542 fi
14543 done
14544
14545
14546 for ac_func in strtoll
14547 do
14548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14549 echo "$as_me:$LINENO: checking for $ac_func" >&5
14550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14551 if eval "test \"\${$as_ac_var+set}\" = set"; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554   cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14556 /* confdefs.h.  */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h.  */
14561 /* System header to define __stub macros and hopefully few prototypes,
14562     which can conflict with char $ac_func (); below.
14563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14564     <limits.h> exists even on freestanding compilers.  */
14565 #ifdef __STDC__
14566 # include <limits.h>
14567 #else
14568 # include <assert.h>
14569 #endif
14570 /* Override any gcc2 internal prototype to avoid an error.  */
14571 #ifdef __cplusplus
14572 extern "C"
14573 {
14574 #endif
14575 /* We use char because int might match the return type of a gcc2
14576    builtin and then its argument prototype would still apply.  */
14577 char $ac_func ();
14578 /* The GNU C library defines this for functions which it implements
14579     to always fail with ENOSYS.  Some functions are actually named
14580     something starting with __ and the normal name is an alias.  */
14581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14582 choke me
14583 #else
14584 char (*f) () = $ac_func;
14585 #endif
14586 #ifdef __cplusplus
14587 }
14588 #endif
14589
14590 int
14591 main ()
14592 {
14593 return f != $ac_func;
14594   ;
14595   return 0;
14596 }
14597 _ACEOF
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600   (eval $ac_link) 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); } &&
14604          { ac_try='test -s conftest$ac_exeext'
14605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606   (eval $ac_try) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; }; then
14610   eval "$as_ac_var=yes"
14611 else
14612   echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 eval "$as_ac_var=no"
14616 fi
14617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14618 fi
14619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14621 if test `eval echo '${'$as_ac_var'}'` = yes; then
14622   cat >>confdefs.h <<_ACEOF
14623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14624 _ACEOF
14625  cat >>confdefs.h <<\_ACEOF
14626 #define HAVE_STRTOLL 1
14627 _ACEOF
14628
14629 fi
14630 done
14631
14632
14633
14634 for ac_func in chflags
14635 do
14636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14637 echo "$as_me:$LINENO: checking for $ac_func" >&5
14638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14639 if eval "test \"\${$as_ac_var+set}\" = set"; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642   cat >conftest.$ac_ext <<_ACEOF
14643 #line $LINENO "configure"
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649 /* System header to define __stub macros and hopefully few prototypes,
14650     which can conflict with char $ac_func (); below.
14651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14652     <limits.h> exists even on freestanding compilers.  */
14653 #ifdef __STDC__
14654 # include <limits.h>
14655 #else
14656 # include <assert.h>
14657 #endif
14658 /* Override any gcc2 internal prototype to avoid an error.  */
14659 #ifdef __cplusplus
14660 extern "C"
14661 {
14662 #endif
14663 /* We use char because int might match the return type of a gcc2
14664    builtin and then its argument prototype would still apply.  */
14665 char $ac_func ();
14666 /* The GNU C library defines this for functions which it implements
14667     to always fail with ENOSYS.  Some functions are actually named
14668     something starting with __ and the normal name is an alias.  */
14669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14670 choke me
14671 #else
14672 char (*f) () = $ac_func;
14673 #endif
14674 #ifdef __cplusplus
14675 }
14676 #endif
14677
14678 int
14679 main ()
14680 {
14681 return f != $ac_func;
14682   ;
14683   return 0;
14684 }
14685 _ACEOF
14686 rm -f conftest.$ac_objext conftest$ac_exeext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688   (eval $ac_link) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } &&
14692          { ac_try='test -s conftest$ac_exeext'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; }; then
14698   eval "$as_ac_var=yes"
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 eval "$as_ac_var=no"
14704 fi
14705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14706 fi
14707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14709 if test `eval echo '${'$as_ac_var'}'` = yes; then
14710   cat >>confdefs.h <<_ACEOF
14711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14712 _ACEOF
14713
14714 fi
14715 done
14716
14717
14718
14719
14720
14721
14722 for ac_func in snprintf vsnprintf gethostid getdomainname
14723 do
14724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14725 echo "$as_me:$LINENO: checking for $ac_func" >&5
14726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14727 if eval "test \"\${$as_ac_var+set}\" = set"; then
14728   echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730   cat >conftest.$ac_ext <<_ACEOF
14731 #line $LINENO "configure"
14732 /* confdefs.h.  */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h.  */
14737 /* System header to define __stub macros and hopefully few prototypes,
14738     which can conflict with char $ac_func (); below.
14739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14740     <limits.h> exists even on freestanding compilers.  */
14741 #ifdef __STDC__
14742 # include <limits.h>
14743 #else
14744 # include <assert.h>
14745 #endif
14746 /* Override any gcc2 internal prototype to avoid an error.  */
14747 #ifdef __cplusplus
14748 extern "C"
14749 {
14750 #endif
14751 /* We use char because int might match the return type of a gcc2
14752    builtin and then its argument prototype would still apply.  */
14753 char $ac_func ();
14754 /* The GNU C library defines this for functions which it implements
14755     to always fail with ENOSYS.  Some functions are actually named
14756     something starting with __ and the normal name is an alias.  */
14757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14758 choke me
14759 #else
14760 char (*f) () = $ac_func;
14761 #endif
14762 #ifdef __cplusplus
14763 }
14764 #endif
14765
14766 int
14767 main ()
14768 {
14769 return f != $ac_func;
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext conftest$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776   (eval $ac_link) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); } &&
14780          { ac_try='test -s conftest$ac_exeext'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }; then
14786   eval "$as_ac_var=yes"
14787 else
14788   echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791 eval "$as_ac_var=no"
14792 fi
14793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14794 fi
14795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14797 if test `eval echo '${'$as_ac_var'}'` = yes; then
14798   cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14800 _ACEOF
14801
14802 fi
14803 done
14804
14805
14806
14807
14808
14809
14810 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14811 do
14812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14813 echo "$as_me:$LINENO: checking for $ac_func" >&5
14814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14815 if eval "test \"\${$as_ac_var+set}\" = set"; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818   cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14820 /* confdefs.h.  */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h.  */
14825 /* System header to define __stub macros and hopefully few prototypes,
14826     which can conflict with char $ac_func (); below.
14827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828     <limits.h> exists even on freestanding compilers.  */
14829 #ifdef __STDC__
14830 # include <limits.h>
14831 #else
14832 # include <assert.h>
14833 #endif
14834 /* Override any gcc2 internal prototype to avoid an error.  */
14835 #ifdef __cplusplus
14836 extern "C"
14837 {
14838 #endif
14839 /* We use char because int might match the return type of a gcc2
14840    builtin and then its argument prototype would still apply.  */
14841 char $ac_func ();
14842 /* The GNU C library defines this for functions which it implements
14843     to always fail with ENOSYS.  Some functions are actually named
14844     something starting with __ and the normal name is an alias.  */
14845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14846 choke me
14847 #else
14848 char (*f) () = $ac_func;
14849 #endif
14850 #ifdef __cplusplus
14851 }
14852 #endif
14853
14854 int
14855 main ()
14856 {
14857 return f != $ac_func;
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14864   (eval $ac_link) 2>&5
14865   ac_status=$?
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -s conftest$ac_exeext'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; }; then
14874   eval "$as_ac_var=yes"
14875 else
14876   echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 eval "$as_ac_var=no"
14880 fi
14881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14882 fi
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14885 if test `eval echo '${'$as_ac_var'}'` = yes; then
14886   cat >>confdefs.h <<_ACEOF
14887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14888 _ACEOF
14889
14890 fi
14891 done
14892
14893
14894 # If resolver functions are not in libc check for -lnsl or -lresolv.
14895 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14896 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14897 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14898   echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900   cat >conftest.$ac_ext <<_ACEOF
14901 #line $LINENO "configure"
14902 /* confdefs.h.  */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h.  */
14907 /* System header to define __stub macros and hopefully few prototypes,
14908     which can conflict with char gethostbyname_r (); below.
14909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910     <limits.h> exists even on freestanding compilers.  */
14911 #ifdef __STDC__
14912 # include <limits.h>
14913 #else
14914 # include <assert.h>
14915 #endif
14916 /* Override any gcc2 internal prototype to avoid an error.  */
14917 #ifdef __cplusplus
14918 extern "C"
14919 {
14920 #endif
14921 /* We use char because int might match the return type of a gcc2
14922    builtin and then its argument prototype would still apply.  */
14923 char gethostbyname_r ();
14924 /* The GNU C library defines this for functions which it implements
14925     to always fail with ENOSYS.  Some functions are actually named
14926     something starting with __ and the normal name is an alias.  */
14927 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14928 choke me
14929 #else
14930 char (*f) () = gethostbyname_r;
14931 #endif
14932 #ifdef __cplusplus
14933 }
14934 #endif
14935
14936 int
14937 main ()
14938 {
14939 return f != gethostbyname_r;
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14946   (eval $ac_link) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } &&
14950          { ac_try='test -s conftest$ac_exeext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   ac_cv_func_gethostbyname_r=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 ac_cv_func_gethostbyname_r=no
14962 fi
14963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14964 fi
14965 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
14966 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
14967 if test $ac_cv_func_gethostbyname_r = yes; then
14968   echo "$as_me:$LINENO: result: using libc's resolver" >&5
14969 echo "${ECHO_T}using libc's resolver" >&6
14970 else
14971
14972 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
14973 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
14974 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   ac_check_lib_save_LIBS=$LIBS
14978 LIBS="-lnsl  $LIBS"
14979 cat >conftest.$ac_ext <<_ACEOF
14980 #line $LINENO "configure"
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986
14987 /* Override any gcc2 internal prototype to avoid an error.  */
14988 #ifdef __cplusplus
14989 extern "C"
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 gethostbyname_r ();
14994 int
14995 main ()
14996 {
14997 gethostbyname_r ();
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15004   (eval $ac_link) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } &&
15008          { ac_try='test -s conftest$ac_exeext'
15009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010   (eval $ac_try) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); }; }; then
15014   ac_cv_lib_nsl_gethostbyname_r=yes
15015 else
15016   echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15018
15019 ac_cv_lib_nsl_gethostbyname_r=no
15020 fi
15021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15023 fi
15024 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15025 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15026 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15027   cat >>confdefs.h <<_ACEOF
15028 #define HAVE_LIBNSL 1
15029 _ACEOF
15030
15031   LIBS="-lnsl $LIBS"
15032
15033 fi
15034
15035
15036 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15037 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15038 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15039   echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041   ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lresolv  $LIBS"
15043 cat >conftest.$ac_ext <<_ACEOF
15044 #line $LINENO "configure"
15045 /* confdefs.h.  */
15046 _ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h.  */
15050
15051 /* Override any gcc2 internal prototype to avoid an error.  */
15052 #ifdef __cplusplus
15053 extern "C"
15054 #endif
15055 /* We use char because int might match the return type of a gcc2
15056    builtin and then its argument prototype would still apply.  */
15057 char gethostbyname_r ();
15058 int
15059 main ()
15060 {
15061 gethostbyname_r ();
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15068   (eval $ac_link) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); } &&
15072          { ac_try='test -s conftest$ac_exeext'
15073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074   (eval $ac_try) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; }; then
15078   ac_cv_lib_resolv_gethostbyname_r=yes
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083 ac_cv_lib_resolv_gethostbyname_r=no
15084 fi
15085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_check_lib_save_LIBS
15087 fi
15088 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15089 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15090 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15091   cat >>confdefs.h <<_ACEOF
15092 #define HAVE_LIBRESOLV 1
15093 _ACEOF
15094
15095   LIBS="-lresolv $LIBS"
15096
15097 fi
15098
15099 fi
15100
15101
15102
15103 # Find where sockets are (especially for Solaris)
15104 echo "$as_me:$LINENO: checking for socket" >&5
15105 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15106 if test "${ac_cv_func_socket+set}" = set; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109   cat >conftest.$ac_ext <<_ACEOF
15110 #line $LINENO "configure"
15111 /* confdefs.h.  */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h.  */
15116 /* System header to define __stub macros and hopefully few prototypes,
15117     which can conflict with char socket (); below.
15118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15119     <limits.h> exists even on freestanding compilers.  */
15120 #ifdef __STDC__
15121 # include <limits.h>
15122 #else
15123 # include <assert.h>
15124 #endif
15125 /* Override any gcc2 internal prototype to avoid an error.  */
15126 #ifdef __cplusplus
15127 extern "C"
15128 {
15129 #endif
15130 /* We use char because int might match the return type of a gcc2
15131    builtin and then its argument prototype would still apply.  */
15132 char socket ();
15133 /* The GNU C library defines this for functions which it implements
15134     to always fail with ENOSYS.  Some functions are actually named
15135     something starting with __ and the normal name is an alias.  */
15136 #if defined (__stub_socket) || defined (__stub___socket)
15137 choke me
15138 #else
15139 char (*f) () = socket;
15140 #endif
15141 #ifdef __cplusplus
15142 }
15143 #endif
15144
15145 int
15146 main ()
15147 {
15148 return f != socket;
15149   ;
15150   return 0;
15151 }
15152 _ACEOF
15153 rm -f conftest.$ac_objext conftest$ac_exeext
15154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15155   (eval $ac_link) 2>&5
15156   ac_status=$?
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -s conftest$ac_exeext'
15160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161   (eval $ac_try) 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); }; }; then
15165   ac_cv_func_socket=yes
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170 ac_cv_func_socket=no
15171 fi
15172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15173 fi
15174 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15175 echo "${ECHO_T}$ac_cv_func_socket" >&6
15176 if test $ac_cv_func_socket = yes; then
15177   echo "$as_me:$LINENO: result: using libc's socket" >&5
15178 echo "${ECHO_T}using libc's socket" >&6
15179 else
15180
15181 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15182 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15183 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15184   echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186   ac_check_lib_save_LIBS=$LIBS
15187 LIBS="-lxnet  $LIBS"
15188 cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15190 /* confdefs.h.  */
15191 _ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h.  */
15195
15196 /* Override any gcc2 internal prototype to avoid an error.  */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 /* We use char because int might match the return type of a gcc2
15201    builtin and then its argument prototype would still apply.  */
15202 char socket ();
15203 int
15204 main ()
15205 {
15206 socket ();
15207   ;
15208   return 0;
15209 }
15210 _ACEOF
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15213   (eval $ac_link) 2>&5
15214   ac_status=$?
15215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216   (exit $ac_status); } &&
15217          { ac_try='test -s conftest$ac_exeext'
15218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219   (eval $ac_try) 2>&5
15220   ac_status=$?
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); }; }; then
15223   ac_cv_lib_xnet_socket=yes
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228 ac_cv_lib_xnet_socket=no
15229 fi
15230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15231 LIBS=$ac_check_lib_save_LIBS
15232 fi
15233 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15234 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15235 if test $ac_cv_lib_xnet_socket = yes; then
15236   cat >>confdefs.h <<_ACEOF
15237 #define HAVE_LIBXNET 1
15238 _ACEOF
15239
15240   LIBS="-lxnet $LIBS"
15241
15242 fi
15243
15244
15245 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15246 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15247 if test "${ac_cv_lib_socket_socket+set}" = set; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250   ac_check_lib_save_LIBS=$LIBS
15251 LIBS="-lsocket  $LIBS"
15252 cat >conftest.$ac_ext <<_ACEOF
15253 #line $LINENO "configure"
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259
15260 /* Override any gcc2 internal prototype to avoid an error.  */
15261 #ifdef __cplusplus
15262 extern "C"
15263 #endif
15264 /* We use char because int might match the return type of a gcc2
15265    builtin and then its argument prototype would still apply.  */
15266 char socket ();
15267 int
15268 main ()
15269 {
15270 socket ();
15271   ;
15272   return 0;
15273 }
15274 _ACEOF
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277   (eval $ac_link) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); } &&
15281          { ac_try='test -s conftest$ac_exeext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   ac_cv_lib_socket_socket=yes
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 ac_cv_lib_socket_socket=no
15293 fi
15294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15295 LIBS=$ac_check_lib_save_LIBS
15296 fi
15297 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15298 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15299 if test $ac_cv_lib_socket_socket = yes; then
15300   cat >>confdefs.h <<_ACEOF
15301 #define HAVE_LIBSOCKET 1
15302 _ACEOF
15303
15304   LIBS="-lsocket $LIBS"
15305
15306 fi
15307
15308
15309 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15310 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15311 if test "${ac_cv_lib_inet_socket+set}" = set; then
15312   echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314   ac_check_lib_save_LIBS=$LIBS
15315 LIBS="-linet  $LIBS"
15316 cat >conftest.$ac_ext <<_ACEOF
15317 #line $LINENO "configure"
15318 /* confdefs.h.  */
15319 _ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h.  */
15323
15324 /* Override any gcc2 internal prototype to avoid an error.  */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 /* We use char because int might match the return type of a gcc2
15329    builtin and then its argument prototype would still apply.  */
15330 char socket ();
15331 int
15332 main ()
15333 {
15334 socket ();
15335   ;
15336   return 0;
15337 }
15338 _ACEOF
15339 rm -f conftest.$ac_objext conftest$ac_exeext
15340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15341   (eval $ac_link) 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } &&
15345          { ac_try='test -s conftest$ac_exeext'
15346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347   (eval $ac_try) 2>&5
15348   ac_status=$?
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); }; }; then
15351   ac_cv_lib_inet_socket=yes
15352 else
15353   echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15355
15356 ac_cv_lib_inet_socket=no
15357 fi
15358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15360 fi
15361 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15362 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15363 if test $ac_cv_lib_inet_socket = yes; then
15364   cat >>confdefs.h <<_ACEOF
15365 #define HAVE_LIBINET 1
15366 _ACEOF
15367
15368   LIBS="-linet $LIBS"
15369
15370 fi
15371
15372 fi
15373
15374
15375
15376 for ac_func in inet_pton
15377 do
15378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15379 echo "$as_me:$LINENO: checking for $ac_func" >&5
15380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15381 if eval "test \"\${$as_ac_var+set}\" = set"; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   cat >conftest.$ac_ext <<_ACEOF
15385 #line $LINENO "configure"
15386 /* confdefs.h.  */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h.  */
15391 /* System header to define __stub macros and hopefully few prototypes,
15392     which can conflict with char $ac_func (); below.
15393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394     <limits.h> exists even on freestanding compilers.  */
15395 #ifdef __STDC__
15396 # include <limits.h>
15397 #else
15398 # include <assert.h>
15399 #endif
15400 /* Override any gcc2 internal prototype to avoid an error.  */
15401 #ifdef __cplusplus
15402 extern "C"
15403 {
15404 #endif
15405 /* We use char because int might match the return type of a gcc2
15406    builtin and then its argument prototype would still apply.  */
15407 char $ac_func ();
15408 /* The GNU C library defines this for functions which it implements
15409     to always fail with ENOSYS.  Some functions are actually named
15410     something starting with __ and the normal name is an alias.  */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15412 choke me
15413 #else
15414 char (*f) () = $ac_func;
15415 #endif
15416 #ifdef __cplusplus
15417 }
15418 #endif
15419
15420 int
15421 main ()
15422 {
15423 return f != $ac_func;
15424   ;
15425   return 0;
15426 }
15427 _ACEOF
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430   (eval $ac_link) 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } &&
15434          { ac_try='test -s conftest$ac_exeext'
15435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436   (eval $ac_try) 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   eval "$as_ac_var=yes"
15441 else
15442   echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445 eval "$as_ac_var=no"
15446 fi
15447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15448 fi
15449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15451 if test `eval echo '${'$as_ac_var'}'` = yes; then
15452   cat >>confdefs.h <<_ACEOF
15453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15454 _ACEOF
15455  cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_INET_PTON 1
15457 _ACEOF
15458
15459 fi
15460 done
15461
15462
15463
15464 for ac_func in strftime
15465 do
15466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15467 echo "$as_me:$LINENO: checking for $ac_func" >&5
15468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15469 if eval "test \"\${$as_ac_var+set}\" = set"; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   cat >conftest.$ac_ext <<_ACEOF
15473 #line $LINENO "configure"
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 /* System header to define __stub macros and hopefully few prototypes,
15480     which can conflict with char $ac_func (); below.
15481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15482     <limits.h> exists even on freestanding compilers.  */
15483 #ifdef __STDC__
15484 # include <limits.h>
15485 #else
15486 # include <assert.h>
15487 #endif
15488 /* Override any gcc2 internal prototype to avoid an error.  */
15489 #ifdef __cplusplus
15490 extern "C"
15491 {
15492 #endif
15493 /* We use char because int might match the return type of a gcc2
15494    builtin and then its argument prototype would still apply.  */
15495 char $ac_func ();
15496 /* The GNU C library defines this for functions which it implements
15497     to always fail with ENOSYS.  Some functions are actually named
15498     something starting with __ and the normal name is an alias.  */
15499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15500 choke me
15501 #else
15502 char (*f) () = $ac_func;
15503 #endif
15504 #ifdef __cplusplus
15505 }
15506 #endif
15507
15508 int
15509 main ()
15510 {
15511 return f != $ac_func;
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15518   (eval $ac_link) 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); } &&
15522          { ac_try='test -s conftest$ac_exeext'
15523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524   (eval $ac_try) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; }; then
15528   eval "$as_ac_var=yes"
15529 else
15530   echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 eval "$as_ac_var=no"
15534 fi
15535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15536 fi
15537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15539 if test `eval echo '${'$as_ac_var'}'` = yes; then
15540   cat >>confdefs.h <<_ACEOF
15541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15542 _ACEOF
15543
15544 else
15545   # strftime is in -lintl on SCO UNIX.
15546 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15547 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15548 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   ac_check_lib_save_LIBS=$LIBS
15552 LIBS="-lintl  $LIBS"
15553 cat >conftest.$ac_ext <<_ACEOF
15554 #line $LINENO "configure"
15555 /* confdefs.h.  */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h.  */
15560
15561 /* Override any gcc2 internal prototype to avoid an error.  */
15562 #ifdef __cplusplus
15563 extern "C"
15564 #endif
15565 /* We use char because int might match the return type of a gcc2
15566    builtin and then its argument prototype would still apply.  */
15567 char strftime ();
15568 int
15569 main ()
15570 {
15571 strftime ();
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578   (eval $ac_link) 2>&5
15579   ac_status=$?
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); } &&
15582          { ac_try='test -s conftest$ac_exeext'
15583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584   (eval $ac_try) 2>&5
15585   ac_status=$?
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); }; }; then
15588   ac_cv_lib_intl_strftime=yes
15589 else
15590   echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15592
15593 ac_cv_lib_intl_strftime=no
15594 fi
15595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS
15597 fi
15598 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15599 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15600 if test $ac_cv_lib_intl_strftime = yes; then
15601   cat >>confdefs.h <<\_ACEOF
15602 #define HAVE_STRFTIME 1
15603 _ACEOF
15604
15605 LIBS="-lintl $LIBS"
15606 fi
15607
15608 fi
15609 done
15610
15611
15612 for ac_func in vprintf
15613 do
15614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15615 echo "$as_me:$LINENO: checking for $ac_func" >&5
15616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15617 if eval "test \"\${$as_ac_var+set}\" = set"; then
15618   echo $ECHO_N "(cached) $ECHO_C" >&6
15619 else
15620   cat >conftest.$ac_ext <<_ACEOF
15621 #line $LINENO "configure"
15622 /* confdefs.h.  */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h.  */
15627 /* System header to define __stub macros and hopefully few prototypes,
15628     which can conflict with char $ac_func (); below.
15629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15630     <limits.h> exists even on freestanding compilers.  */
15631 #ifdef __STDC__
15632 # include <limits.h>
15633 #else
15634 # include <assert.h>
15635 #endif
15636 /* Override any gcc2 internal prototype to avoid an error.  */
15637 #ifdef __cplusplus
15638 extern "C"
15639 {
15640 #endif
15641 /* We use char because int might match the return type of a gcc2
15642    builtin and then its argument prototype would still apply.  */
15643 char $ac_func ();
15644 /* The GNU C library defines this for functions which it implements
15645     to always fail with ENOSYS.  Some functions are actually named
15646     something starting with __ and the normal name is an alias.  */
15647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15648 choke me
15649 #else
15650 char (*f) () = $ac_func;
15651 #endif
15652 #ifdef __cplusplus
15653 }
15654 #endif
15655
15656 int
15657 main ()
15658 {
15659 return f != $ac_func;
15660   ;
15661   return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest.$ac_objext conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666   (eval $ac_link) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); } &&
15670          { ac_try='test -s conftest$ac_exeext'
15671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672   (eval $ac_try) 2>&5
15673   ac_status=$?
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); }; }; then
15676   eval "$as_ac_var=yes"
15677 else
15678   echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 eval "$as_ac_var=no"
15682 fi
15683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15684 fi
15685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15687 if test `eval echo '${'$as_ac_var'}'` = yes; then
15688   cat >>confdefs.h <<_ACEOF
15689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15690 _ACEOF
15691
15692 echo "$as_me:$LINENO: checking for _doprnt" >&5
15693 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15694 if test "${ac_cv_func__doprnt+set}" = set; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   cat >conftest.$ac_ext <<_ACEOF
15698 #line $LINENO "configure"
15699 /* confdefs.h.  */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h.  */
15704 /* System header to define __stub macros and hopefully few prototypes,
15705     which can conflict with char _doprnt (); below.
15706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15707     <limits.h> exists even on freestanding compilers.  */
15708 #ifdef __STDC__
15709 # include <limits.h>
15710 #else
15711 # include <assert.h>
15712 #endif
15713 /* Override any gcc2 internal prototype to avoid an error.  */
15714 #ifdef __cplusplus
15715 extern "C"
15716 {
15717 #endif
15718 /* We use char because int might match the return type of a gcc2
15719    builtin and then its argument prototype would still apply.  */
15720 char _doprnt ();
15721 /* The GNU C library defines this for functions which it implements
15722     to always fail with ENOSYS.  Some functions are actually named
15723     something starting with __ and the normal name is an alias.  */
15724 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15725 choke me
15726 #else
15727 char (*f) () = _doprnt;
15728 #endif
15729 #ifdef __cplusplus
15730 }
15731 #endif
15732
15733 int
15734 main ()
15735 {
15736 return f != _doprnt;
15737   ;
15738   return 0;
15739 }
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15743   (eval $ac_link) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); } &&
15747          { ac_try='test -s conftest$ac_exeext'
15748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749   (eval $ac_try) 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; }; then
15753   ac_cv_func__doprnt=yes
15754 else
15755   echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 ac_cv_func__doprnt=no
15759 fi
15760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15761 fi
15762 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15763 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15764 if test $ac_cv_func__doprnt = yes; then
15765
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_DOPRNT 1
15768 _ACEOF
15769
15770 fi
15771
15772 fi
15773 done
15774
15775
15776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15777 # for constant arguments.  Useless!
15778 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15779 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15780 if test "${ac_cv_working_alloca_h+set}" = set; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   cat >conftest.$ac_ext <<_ACEOF
15784 #line $LINENO "configure"
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790 #include <alloca.h>
15791 int
15792 main ()
15793 {
15794 char *p = (char *) alloca (2 * sizeof (int));
15795   ;
15796   return 0;
15797 }
15798 _ACEOF
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15801   (eval $ac_link) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } &&
15805          { ac_try='test -s conftest$ac_exeext'
15806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807   (eval $ac_try) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; }; then
15811   ac_cv_working_alloca_h=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ac_cv_working_alloca_h=no
15817 fi
15818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15819 fi
15820 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15821 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15822 if test $ac_cv_working_alloca_h = yes; then
15823
15824 cat >>confdefs.h <<\_ACEOF
15825 #define HAVE_ALLOCA_H 1
15826 _ACEOF
15827
15828 fi
15829
15830 echo "$as_me:$LINENO: checking for alloca" >&5
15831 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15832 if test "${ac_cv_func_alloca_works+set}" = set; then
15833   echo $ECHO_N "(cached) $ECHO_C" >&6
15834 else
15835   cat >conftest.$ac_ext <<_ACEOF
15836 #line $LINENO "configure"
15837 /* confdefs.h.  */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h.  */
15842 #ifdef __GNUC__
15843 # define alloca __builtin_alloca
15844 #else
15845 # ifdef _MSC_VER
15846 #  include <malloc.h>
15847 #  define alloca _alloca
15848 # else
15849 #  if HAVE_ALLOCA_H
15850 #   include <alloca.h>
15851 #  else
15852 #   ifdef _AIX
15853  #pragma alloca
15854 #   else
15855 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15856 char *alloca ();
15857 #    endif
15858 #   endif
15859 #  endif
15860 # endif
15861 #endif
15862
15863 int
15864 main ()
15865 {
15866 char *p = (char *) alloca (1);
15867   ;
15868   return 0;
15869 }
15870 _ACEOF
15871 rm -f conftest.$ac_objext conftest$ac_exeext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873   (eval $ac_link) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } &&
15877          { ac_try='test -s conftest$ac_exeext'
15878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879   (eval $ac_try) 2>&5
15880   ac_status=$?
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); }; }; then
15883   ac_cv_func_alloca_works=yes
15884 else
15885   echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ac_cv_func_alloca_works=no
15889 fi
15890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15891 fi
15892 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15893 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15894
15895 if test $ac_cv_func_alloca_works = yes; then
15896
15897 cat >>confdefs.h <<\_ACEOF
15898 #define HAVE_ALLOCA 1
15899 _ACEOF
15900
15901 else
15902   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15903 # that cause trouble.  Some versions do not even contain alloca or
15904 # contain a buggy version.  If you still want to use their alloca,
15905 # use ar to extract alloca.o from them instead of compiling alloca.c.
15906
15907 ALLOCA=alloca.$ac_objext
15908
15909 cat >>confdefs.h <<\_ACEOF
15910 #define C_ALLOCA 1
15911 _ACEOF
15912
15913
15914 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15915 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15916 if test "${ac_cv_os_cray+set}" = set; then
15917   echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919   cat >conftest.$ac_ext <<_ACEOF
15920 #line $LINENO "configure"
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926 #if defined(CRAY) && ! defined(CRAY2)
15927 webecray
15928 #else
15929 wenotbecray
15930 #endif
15931
15932 _ACEOF
15933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15934   $EGREP "webecray" >/dev/null 2>&1; then
15935   ac_cv_os_cray=yes
15936 else
15937   ac_cv_os_cray=no
15938 fi
15939 rm -f conftest*
15940
15941 fi
15942 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15943 echo "${ECHO_T}$ac_cv_os_cray" >&6
15944 if test $ac_cv_os_cray = yes; then
15945   for ac_func in _getb67 GETB67 getb67; do
15946     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15947 echo "$as_me:$LINENO: checking for $ac_func" >&5
15948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15949 if eval "test \"\${$as_ac_var+set}\" = set"; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952   cat >conftest.$ac_ext <<_ACEOF
15953 #line $LINENO "configure"
15954 /* confdefs.h.  */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h.  */
15959 /* System header to define __stub macros and hopefully few prototypes,
15960     which can conflict with char $ac_func (); below.
15961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15962     <limits.h> exists even on freestanding compilers.  */
15963 #ifdef __STDC__
15964 # include <limits.h>
15965 #else
15966 # include <assert.h>
15967 #endif
15968 /* Override any gcc2 internal prototype to avoid an error.  */
15969 #ifdef __cplusplus
15970 extern "C"
15971 {
15972 #endif
15973 /* We use char because int might match the return type of a gcc2
15974    builtin and then its argument prototype would still apply.  */
15975 char $ac_func ();
15976 /* The GNU C library defines this for functions which it implements
15977     to always fail with ENOSYS.  Some functions are actually named
15978     something starting with __ and the normal name is an alias.  */
15979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15980 choke me
15981 #else
15982 char (*f) () = $ac_func;
15983 #endif
15984 #ifdef __cplusplus
15985 }
15986 #endif
15987
15988 int
15989 main ()
15990 {
15991 return f != $ac_func;
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998   (eval $ac_link) 2>&5
15999   ac_status=$?
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } &&
16002          { ac_try='test -s conftest$ac_exeext'
16003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004   (eval $ac_try) 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; }; then
16008   eval "$as_ac_var=yes"
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013 eval "$as_ac_var=no"
16014 fi
16015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16016 fi
16017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16019 if test `eval echo '${'$as_ac_var'}'` = yes; then
16020
16021 cat >>confdefs.h <<_ACEOF
16022 #define CRAY_STACKSEG_END $ac_func
16023 _ACEOF
16024
16025     break
16026 fi
16027
16028   done
16029 fi
16030
16031 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16032 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16033 if test "${ac_cv_c_stack_direction+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   if test "$cross_compiling" = yes; then
16037   ac_cv_c_stack_direction=0
16038 else
16039   cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16041 /* confdefs.h.  */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h.  */
16046 int
16047 find_stack_direction ()
16048 {
16049   static char *addr = 0;
16050   auto char dummy;
16051   if (addr == 0)
16052     {
16053       addr = &dummy;
16054       return find_stack_direction ();
16055     }
16056   else
16057     return (&dummy > addr) ? 1 : -1;
16058 }
16059
16060 int
16061 main ()
16062 {
16063   exit (find_stack_direction () < 0);
16064 }
16065 _ACEOF
16066 rm -f conftest$ac_exeext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16068   (eval $ac_link) 2>&5
16069   ac_status=$?
16070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073   (eval $ac_try) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); }; }; then
16077   ac_cv_c_stack_direction=1
16078 else
16079   echo "$as_me: program exited with status $ac_status" >&5
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16082
16083 ( exit $ac_status )
16084 ac_cv_c_stack_direction=-1
16085 fi
16086 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16087 fi
16088 fi
16089 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16090 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16091
16092 cat >>confdefs.h <<_ACEOF
16093 #define STACK_DIRECTION $ac_cv_c_stack_direction
16094 _ACEOF
16095
16096
16097 fi
16098
16099 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16100 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16101 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16102 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16103   echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105   ac_check_lib_save_LIBS=$LIBS
16106 LIBS="-lsun  $LIBS"
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line $LINENO "configure"
16109 /* confdefs.h.  */
16110 _ACEOF
16111 cat confdefs.h >>conftest.$ac_ext
16112 cat >>conftest.$ac_ext <<_ACEOF
16113 /* end confdefs.h.  */
16114
16115 /* Override any gcc2 internal prototype to avoid an error.  */
16116 #ifdef __cplusplus
16117 extern "C"
16118 #endif
16119 /* We use char because int might match the return type of a gcc2
16120    builtin and then its argument prototype would still apply.  */
16121 char getmntent ();
16122 int
16123 main ()
16124 {
16125 getmntent ();
16126   ;
16127   return 0;
16128 }
16129 _ACEOF
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132   (eval $ac_link) 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); } &&
16136          { ac_try='test -s conftest$ac_exeext'
16137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138   (eval $ac_try) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); }; }; then
16142   ac_cv_lib_sun_getmntent=yes
16143 else
16144   echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16146
16147 ac_cv_lib_sun_getmntent=no
16148 fi
16149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16150 LIBS=$ac_check_lib_save_LIBS
16151 fi
16152 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16153 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16154 if test $ac_cv_lib_sun_getmntent = yes; then
16155   LIBS="-lsun $LIBS"
16156 else
16157   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16158 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16159 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16160   echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162   ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-lseq  $LIBS"
16164 cat >conftest.$ac_ext <<_ACEOF
16165 #line $LINENO "configure"
16166 /* confdefs.h.  */
16167 _ACEOF
16168 cat confdefs.h >>conftest.$ac_ext
16169 cat >>conftest.$ac_ext <<_ACEOF
16170 /* end confdefs.h.  */
16171
16172 /* Override any gcc2 internal prototype to avoid an error.  */
16173 #ifdef __cplusplus
16174 extern "C"
16175 #endif
16176 /* We use char because int might match the return type of a gcc2
16177    builtin and then its argument prototype would still apply.  */
16178 char getmntent ();
16179 int
16180 main ()
16181 {
16182 getmntent ();
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189   (eval $ac_link) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } &&
16193          { ac_try='test -s conftest$ac_exeext'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; }; then
16199   ac_cv_lib_seq_getmntent=yes
16200 else
16201   echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_cv_lib_seq_getmntent=no
16205 fi
16206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16208 fi
16209 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16210 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16211 if test $ac_cv_lib_seq_getmntent = yes; then
16212   LIBS="-lseq $LIBS"
16213 else
16214   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16215 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16216 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219   ac_check_lib_save_LIBS=$LIBS
16220 LIBS="-lgen  $LIBS"
16221 cat >conftest.$ac_ext <<_ACEOF
16222 #line $LINENO "configure"
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228
16229 /* Override any gcc2 internal prototype to avoid an error.  */
16230 #ifdef __cplusplus
16231 extern "C"
16232 #endif
16233 /* We use char because int might match the return type of a gcc2
16234    builtin and then its argument prototype would still apply.  */
16235 char getmntent ();
16236 int
16237 main ()
16238 {
16239 getmntent ();
16240   ;
16241   return 0;
16242 }
16243 _ACEOF
16244 rm -f conftest.$ac_objext conftest$ac_exeext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246   (eval $ac_link) 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } &&
16250          { ac_try='test -s conftest$ac_exeext'
16251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252   (eval $ac_try) 2>&5
16253   ac_status=$?
16254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); }; }; then
16256   ac_cv_lib_gen_getmntent=yes
16257 else
16258   echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ac_cv_lib_gen_getmntent=no
16262 fi
16263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16265 fi
16266 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16267 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16268 if test $ac_cv_lib_gen_getmntent = yes; then
16269   LIBS="-lgen $LIBS"
16270 fi
16271
16272 fi
16273
16274 fi
16275
16276
16277 for ac_func in getmntent
16278 do
16279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16280 echo "$as_me:$LINENO: checking for $ac_func" >&5
16281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16282 if eval "test \"\${$as_ac_var+set}\" = set"; then
16283   echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285   cat >conftest.$ac_ext <<_ACEOF
16286 #line $LINENO "configure"
16287 /* confdefs.h.  */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h.  */
16292 /* System header to define __stub macros and hopefully few prototypes,
16293     which can conflict with char $ac_func (); below.
16294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16295     <limits.h> exists even on freestanding compilers.  */
16296 #ifdef __STDC__
16297 # include <limits.h>
16298 #else
16299 # include <assert.h>
16300 #endif
16301 /* Override any gcc2 internal prototype to avoid an error.  */
16302 #ifdef __cplusplus
16303 extern "C"
16304 {
16305 #endif
16306 /* We use char because int might match the return type of a gcc2
16307    builtin and then its argument prototype would still apply.  */
16308 char $ac_func ();
16309 /* The GNU C library defines this for functions which it implements
16310     to always fail with ENOSYS.  Some functions are actually named
16311     something starting with __ and the normal name is an alias.  */
16312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16313 choke me
16314 #else
16315 char (*f) () = $ac_func;
16316 #endif
16317 #ifdef __cplusplus
16318 }
16319 #endif
16320
16321 int
16322 main ()
16323 {
16324 return f != $ac_func;
16325   ;
16326   return 0;
16327 }
16328 _ACEOF
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331   (eval $ac_link) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } &&
16335          { ac_try='test -s conftest$ac_exeext'
16336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337   (eval $ac_try) 2>&5
16338   ac_status=$?
16339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340   (exit $ac_status); }; }; then
16341   eval "$as_ac_var=yes"
16342 else
16343   echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16345
16346 eval "$as_ac_var=no"
16347 fi
16348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16349 fi
16350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16352 if test `eval echo '${'$as_ac_var'}'` = yes; then
16353   cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16355 _ACEOF
16356
16357 fi
16358 done
16359
16360
16361 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16362 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16363 if test "${ac_cv_func_closedir_void+set}" = set; then
16364   echo $ECHO_N "(cached) $ECHO_C" >&6
16365 else
16366   if test "$cross_compiling" = yes; then
16367   ac_cv_func_closedir_void=yes
16368 else
16369   cat >conftest.$ac_ext <<_ACEOF
16370 #line $LINENO "configure"
16371 /* confdefs.h.  */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h.  */
16376 $ac_includes_default
16377 #include <$ac_header_dirent>
16378 #ifndef __cplusplus
16379 int closedir ();
16380 #endif
16381
16382 int
16383 main ()
16384 {
16385 exit (closedir (opendir (".")) != 0);
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392   (eval $ac_link) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   ac_cv_func_closedir_void=no
16402 else
16403   echo "$as_me: program exited with status $ac_status" >&5
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ( exit $ac_status )
16408 ac_cv_func_closedir_void=yes
16409 fi
16410 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 fi
16413 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16414 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16415 if test $ac_cv_func_closedir_void = yes; then
16416
16417 cat >>confdefs.h <<\_ACEOF
16418 #define CLOSEDIR_VOID 1
16419 _ACEOF
16420
16421 fi
16422
16423 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16424 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16425 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   if test "$cross_compiling" = yes; then
16429   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16430 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16431    { (exit 1); exit 1; }; }
16432 else
16433   cat >conftest.$ac_ext <<_ACEOF
16434 #line $LINENO "configure"
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440 #if HAVE_UNISTD_H
16441 # include <unistd.h>
16442 #endif
16443
16444 int
16445 main ()
16446 {
16447 /* If this system has a BSD-style setpgrp which takes arguments,
16448   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16449   exit successfully. */
16450   exit (setpgrp (1,1) == -1 ? 0 : 1);
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 rm -f conftest$ac_exeext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16457   (eval $ac_link) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_cv_func_setpgrp_void=no
16467 else
16468   echo "$as_me: program exited with status $ac_status" >&5
16469 echo "$as_me: failed program was:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16471
16472 ( exit $ac_status )
16473 ac_cv_func_setpgrp_void=yes
16474 fi
16475 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16476 fi
16477 fi
16478 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16479 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16480 if test $ac_cv_func_setpgrp_void = yes; then
16481
16482 cat >>confdefs.h <<\_ACEOF
16483 #define SETPGRP_VOID 1
16484 _ACEOF
16485
16486 fi
16487                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16488 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16489 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16490   echo $ECHO_N "(cached) $ECHO_C" >&6
16491 else
16492   # Some versions of Solaris, SCO, and the GNU C Library
16493    # have a broken or incompatible fnmatch.
16494    # So we run a test program.  If we are cross-compiling, take no chance.
16495    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16496    if test "$cross_compiling" = yes; then
16497   ac_cv_func_fnmatch_works=cross
16498 else
16499   cat >conftest.$ac_ext <<_ACEOF
16500 #line $LINENO "configure"
16501 /* confdefs.h.  */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h.  */
16506 #include <fnmatch.h>
16507 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16508 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16509
16510 int
16511 main ()
16512 {
16513 exit
16514            (!(y ("a*", "abc", 0)
16515               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16516               && y ("a\\\\bc", "abc", 0)
16517               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16518               && y ("*x", ".x", 0)
16519               && n ("*x", ".x", FNM_PERIOD)
16520               && 1));
16521   ;
16522   return 0;
16523 }
16524 _ACEOF
16525 rm -f conftest$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527   (eval $ac_link) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532   (eval $ac_try) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; }; then
16536   ac_cv_func_fnmatch_works=yes
16537 else
16538   echo "$as_me: program exited with status $ac_status" >&5
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542 ( exit $ac_status )
16543 ac_cv_func_fnmatch_works=no
16544 fi
16545 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16546 fi
16547 fi
16548 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16549 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16550 if test $ac_cv_func_fnmatch_works = yes; then
16551
16552 cat >>confdefs.h <<\_ACEOF
16553 #define HAVE_FNMATCH 1
16554 _ACEOF
16555
16556 fi
16557
16558
16559
16560
16561
16562 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16563 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16564 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16565   echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567   ac_check_lib_save_LIBS=$LIBS
16568 LIBS="-lxpg4  $LIBS"
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576
16577 /* Override any gcc2 internal prototype to avoid an error.  */
16578 #ifdef __cplusplus
16579 extern "C"
16580 #endif
16581 /* We use char because int might match the return type of a gcc2
16582    builtin and then its argument prototype would still apply.  */
16583 char setlocale ();
16584 int
16585 main ()
16586 {
16587 setlocale ();
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594   (eval $ac_link) 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); } &&
16598          { ac_try='test -s conftest$ac_exeext'
16599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600   (eval $ac_try) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; }; then
16604   ac_cv_lib_xpg4_setlocale=yes
16605 else
16606   echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 ac_cv_lib_xpg4_setlocale=no
16610 fi
16611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16612 LIBS=$ac_check_lib_save_LIBS
16613 fi
16614 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16615 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16616 if test $ac_cv_lib_xpg4_setlocale = yes; then
16617   LIBS="$LIBS -lxpg4"
16618 fi
16619
16620
16621
16622
16623 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16624 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16625 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16626   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628   ac_check_lib_save_LIBS=$LIBS
16629 LIBS="-lsun  $LIBS"
16630 cat >conftest.$ac_ext <<_ACEOF
16631 #line $LINENO "configure"
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637
16638 /* Override any gcc2 internal prototype to avoid an error.  */
16639 #ifdef __cplusplus
16640 extern "C"
16641 #endif
16642 /* We use char because int might match the return type of a gcc2
16643    builtin and then its argument prototype would still apply.  */
16644 char getpwnam ();
16645 int
16646 main ()
16647 {
16648 getpwnam ();
16649   ;
16650   return 0;
16651 }
16652 _ACEOF
16653 rm -f conftest.$ac_objext conftest$ac_exeext
16654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16655   (eval $ac_link) 2>&5
16656   ac_status=$?
16657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } &&
16659          { ac_try='test -s conftest$ac_exeext'
16660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661   (eval $ac_try) 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); }; }; then
16665   ac_cv_lib_sun_getpwnam=yes
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670 ac_cv_lib_sun_getpwnam=no
16671 fi
16672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS
16674 fi
16675 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16676 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16677 if test $ac_cv_lib_sun_getpwnam = yes; then
16678   cat >>confdefs.h <<_ACEOF
16679 #define HAVE_LIBSUN 1
16680 _ACEOF
16681
16682   LIBS="-lsun $LIBS"
16683
16684 fi
16685
16686
16687
16688 for ac_header in zlib.h
16689 do
16690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16692   echo "$as_me:$LINENO: checking for $ac_header" >&5
16693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 fi
16697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16699 else
16700   # Is the header compilable?
16701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16703 cat >conftest.$ac_ext <<_ACEOF
16704 #line $LINENO "configure"
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 $ac_includes_default
16711 #include <$ac_header>
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715   (eval $ac_compile) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -s conftest.$ac_objext'
16720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721   (eval $ac_try) 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   ac_header_compiler=yes
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730 ac_header_compiler=no
16731 fi
16732 rm -f conftest.$ac_objext conftest.$ac_ext
16733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16734 echo "${ECHO_T}$ac_header_compiler" >&6
16735
16736 # Is the header present?
16737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16739 cat >conftest.$ac_ext <<_ACEOF
16740 #line $LINENO "configure"
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746 #include <$ac_header>
16747 _ACEOF
16748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } >/dev/null; then
16756   if test -s conftest.err; then
16757     ac_cpp_err=$ac_c_preproc_warn_flag
16758   else
16759     ac_cpp_err=
16760   fi
16761 else
16762   ac_cpp_err=yes
16763 fi
16764 if test -z "$ac_cpp_err"; then
16765   ac_header_preproc=yes
16766 else
16767   echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770   ac_header_preproc=no
16771 fi
16772 rm -f conftest.err conftest.$ac_ext
16773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16774 echo "${ECHO_T}$ac_header_preproc" >&6
16775
16776 # So?  What about this header?
16777 case $ac_header_compiler:$ac_header_preproc in
16778   yes:no )
16779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16783     (
16784       cat <<\_ASBOX
16785 ## ------------------------------------ ##
16786 ## Report this to bug-autoconf@gnu.org. ##
16787 ## ------------------------------------ ##
16788 _ASBOX
16789     ) |
16790       sed "s/^/$as_me: WARNING:     /" >&2
16791     ;;
16792   no:yes )
16793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16795     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16799     (
16800       cat <<\_ASBOX
16801 ## ------------------------------------ ##
16802 ## Report this to bug-autoconf@gnu.org. ##
16803 ## ------------------------------------ ##
16804 _ASBOX
16805     ) |
16806       sed "s/^/$as_me: WARNING:     /" >&2
16807     ;;
16808 esac
16809 echo "$as_me:$LINENO: checking for $ac_header" >&5
16810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16812   echo $ECHO_N "(cached) $ECHO_C" >&6
16813 else
16814   eval "$as_ac_Header=$ac_header_preproc"
16815 fi
16816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16818
16819 fi
16820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16821   cat >>confdefs.h <<_ACEOF
16822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16823 _ACEOF
16824
16825 fi
16826
16827 done
16828
16829 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16830 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16831 if test "${ac_cv_lib_z_deflate+set}" = set; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   ac_check_lib_save_LIBS=$LIBS
16835 LIBS="-lz  $LIBS"
16836 cat >conftest.$ac_ext <<_ACEOF
16837 #line $LINENO "configure"
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843
16844 /* Override any gcc2 internal prototype to avoid an error.  */
16845 #ifdef __cplusplus
16846 extern "C"
16847 #endif
16848 /* We use char because int might match the return type of a gcc2
16849    builtin and then its argument prototype would still apply.  */
16850 char deflate ();
16851 int
16852 main ()
16853 {
16854 deflate ();
16855   ;
16856   return 0;
16857 }
16858 _ACEOF
16859 rm -f conftest.$ac_objext conftest$ac_exeext
16860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16861   (eval $ac_link) 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); } &&
16865          { ac_try='test -s conftest$ac_exeext'
16866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867   (eval $ac_try) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; }; then
16871   ac_cv_lib_z_deflate=yes
16872 else
16873   echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876 ac_cv_lib_z_deflate=no
16877 fi
16878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16879 LIBS=$ac_check_lib_save_LIBS
16880 fi
16881 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
16882 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
16883 if test $ac_cv_lib_z_deflate = yes; then
16884   FDLIBS="-lz"
16885 fi
16886
16887 have_zlib=no
16888 if test x$FDLIBS = x-lz; then
16889   cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_LIBZ 1
16891 _ACEOF
16892
16893   have_zlib=yes
16894 fi
16895
16896 PTHREAD_LIB=""
16897 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16898 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
16899 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16900   echo $ECHO_N "(cached) $ECHO_C" >&6
16901 else
16902   ac_check_lib_save_LIBS=$LIBS
16903 LIBS="-lpthread  $LIBS"
16904 cat >conftest.$ac_ext <<_ACEOF
16905 #line $LINENO "configure"
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911
16912 /* Override any gcc2 internal prototype to avoid an error.  */
16913 #ifdef __cplusplus
16914 extern "C"
16915 #endif
16916 /* We use char because int might match the return type of a gcc2
16917    builtin and then its argument prototype would still apply.  */
16918 char pthread_create ();
16919 int
16920 main ()
16921 {
16922 pthread_create ();
16923   ;
16924   return 0;
16925 }
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16929   (eval $ac_link) 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } &&
16933          { ac_try='test -s conftest$ac_exeext'
16934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935   (eval $ac_try) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; }; then
16939   ac_cv_lib_pthread_pthread_create=yes
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944 ac_cv_lib_pthread_pthread_create=no
16945 fi
16946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16947 LIBS=$ac_check_lib_save_LIBS
16948 fi
16949 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16950 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
16951 if test $ac_cv_lib_pthread_pthread_create = yes; then
16952   PTHREAD_LIB="-lpthread"
16953 else
16954   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16955 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
16956 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16957   echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959   ac_check_lib_save_LIBS=$LIBS
16960 LIBS="-lpthreads  $LIBS"
16961 cat >conftest.$ac_ext <<_ACEOF
16962 #line $LINENO "configure"
16963 /* confdefs.h.  */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h.  */
16968
16969 /* Override any gcc2 internal prototype to avoid an error.  */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 /* We use char because int might match the return type of a gcc2
16974    builtin and then its argument prototype would still apply.  */
16975 char pthread_create ();
16976 int
16977 main ()
16978 {
16979 pthread_create ();
16980   ;
16981   return 0;
16982 }
16983 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986   (eval $ac_link) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } &&
16990          { ac_try='test -s conftest$ac_exeext'
16991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992   (eval $ac_try) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); }; }; then
16996   ac_cv_lib_pthreads_pthread_create=yes
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_cv_lib_pthreads_pthread_create=no
17002 fi
17003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17004 LIBS=$ac_check_lib_save_LIBS
17005 fi
17006 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17007 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17008 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17009   PTHREAD_LIB="-lpthreads"
17010 else
17011   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17012 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17013 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-lc_r  $LIBS"
17018 cat >conftest.$ac_ext <<_ACEOF
17019 #line $LINENO "configure"
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026 /* Override any gcc2 internal prototype to avoid an error.  */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 /* We use char because int might match the return type of a gcc2
17031    builtin and then its argument prototype would still apply.  */
17032 char pthread_create ();
17033 int
17034 main ()
17035 {
17036 pthread_create ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043   (eval $ac_link) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } &&
17047          { ac_try='test -s conftest$ac_exeext'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053   ac_cv_lib_c_r_pthread_create=yes
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_lib_c_r_pthread_create=no
17059 fi
17060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17062 fi
17063 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17064 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17065 if test $ac_cv_lib_c_r_pthread_create = yes; then
17066   PTHREAD_LIB="-lc_r"
17067 else
17068   echo "$as_me:$LINENO: checking for pthread_create" >&5
17069 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17070 if test "${ac_cv_func_pthread_create+set}" = set; then
17071   echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073   cat >conftest.$ac_ext <<_ACEOF
17074 #line $LINENO "configure"
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 /* System header to define __stub macros and hopefully few prototypes,
17081     which can conflict with char pthread_create (); below.
17082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083     <limits.h> exists even on freestanding compilers.  */
17084 #ifdef __STDC__
17085 # include <limits.h>
17086 #else
17087 # include <assert.h>
17088 #endif
17089 /* Override any gcc2 internal prototype to avoid an error.  */
17090 #ifdef __cplusplus
17091 extern "C"
17092 {
17093 #endif
17094 /* We use char because int might match the return type of a gcc2
17095    builtin and then its argument prototype would still apply.  */
17096 char pthread_create ();
17097 /* The GNU C library defines this for functions which it implements
17098     to always fail with ENOSYS.  Some functions are actually named
17099     something starting with __ and the normal name is an alias.  */
17100 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17101 choke me
17102 #else
17103 char (*f) () = pthread_create;
17104 #endif
17105 #ifdef __cplusplus
17106 }
17107 #endif
17108
17109 int
17110 main ()
17111 {
17112 return f != pthread_create;
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119   (eval $ac_link) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } &&
17123          { ac_try='test -s conftest$ac_exeext'
17124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125   (eval $ac_try) 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; }; then
17129   ac_cv_func_pthread_create=yes
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 ac_cv_func_pthread_create=no
17135 fi
17136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17137 fi
17138 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17139 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17140
17141
17142 fi
17143
17144
17145 fi
17146
17147
17148 fi
17149
17150
17151
17152 cat >>confdefs.h <<\_ACEOF
17153 #define FDLIBS 1
17154 _ACEOF
17155
17156
17157
17158 CFLAGS=${CFLAGS--O}
17159 LDFLAGS=${LDFLAGS--O}
17160 DB_LIBS="${SQL_LFLAGS}"
17161
17162 CPPFLAGS="$CPPFLAGS"
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177 OBJLIST=
17178
17179
17180 lld="lld"
17181 llu="llu"
17182
17183 WCFLAGS=
17184 WLDFLAGS=
17185
17186 #
17187 # Finally we set appropriate distribution specific
17188 #  variables and defaults
17189 #
17190 # PFILES are platform specific files
17191 PFILES="platforms/Makefile"
17192 PSCMD="ps -e"
17193 WIN32=
17194 hostname=`uname -n`
17195 case "$DISTNAME" in
17196 aix)
17197         DISTVER=`uname -r`
17198         PSCMD="ps -e -o pid,comm"
17199         PFILES="${PFILES} \
17200            platforms/aix/Makefile"
17201         TAPEDRIVE="/dev/rmt0.1"
17202   ;;
17203 alpha)
17204         DISTVER=`uname -r`
17205         PTHREAD_LIB="-lpthread -lexc"
17206         if test "${CC}" = "gcc" ; then
17207            lld="lld"
17208            llu="llu"
17209         else
17210            lld="ld"
17211            llu="lu"
17212         fi
17213         TAPEDRIVE="/dev/nrmt0"
17214   ;;
17215 bsdi)
17216         DISTVER=`uname -a |awk '{print $3}'`
17217         TAPEDRIVE="/dev/nrmt0"
17218         PTHREAD_LIB="-pthread"
17219         CFLAGS="${CFLAGS} -pthread"
17220         PSCMD="ps -x -o pid,command"
17221         lld="qd"
17222         llu="qu"
17223         PFILES="${PFILES} \
17224             platforms/bsdi/Makefile \
17225             platforms/bsdi/bacula-fd \
17226             platforms/bsdi/bacula-sd \
17227             platforms/bsdi/bacula-dir"
17228         hostname=`hostname -s`
17229         largefile_support="yes"
17230   ;;
17231 cygwin)
17232         DISTVER=`uname -a |awk '{print $3}'`
17233         TAPEDRIVE="/dev/nrst0"
17234         WIN32=win32
17235         WCFLAGS="-mwindows"
17236         WLDFLAGS="-mwindows"
17237   ;;
17238 darwin)
17239         DISTVER=`uname -r`
17240         TAPEDRIVE="/dev/nst0"
17241         PSCMD="ps -e -o pid,command"
17242         hostname=`hostname -s`
17243         PFILES="${PFILES} \
17244            platforms/darwin/Makefile"
17245   ;;
17246 debian)
17247         DISTVER=`cat /etc/debian_version`
17248         TAPEDRIVE="/dev/nrst0"
17249         PSCMD="ps -e -o pid,command"
17250         hostname=`hostname -s`
17251   ;;
17252 freebsd)
17253         DISTVER=`uname -a |awk '{print $3}'`
17254         VER=`echo $DISTVER | cut -c 1`
17255         if test x$VER = x4 ; then
17256            PTHREAD_LIB="-pthread"
17257            CFLAGS="${CFLAGS} -pthread"
17258         fi
17259         lld="qd"
17260         llu="qu"
17261         TAPEDRIVE="/dev/nrsa0"
17262         PSCMD="ps -x -o pid,command"
17263         PFILES="${PFILES} \
17264             platforms/freebsd/Makefile \
17265             platforms/freebsd/bacula-fd \
17266             platforms/freebsd/bacula-sd \
17267             platforms/freebsd/bacula-dir"
17268         hostname=`hostname -s`
17269         largefile_support="yes"
17270   ;;
17271 hpux)
17272         DISTVER=`uname -r`
17273         TAPEDRIVE="/dev/rmt/0hnb"
17274   ;;
17275 irix)
17276         DISTVER=`uname -r`
17277         TAPEDRIVE="/dev/rmt/0cbn"
17278         PSCMD="ps -e -o pid,comm"
17279         PFILES="${PFILES} \
17280             platforms/irix/Makefile \
17281             platforms/irix/bacula-fd \
17282             platforms/irix/bacula-sd \
17283             platforms/irix/bacula-dir"
17284   ;;
17285 netbsd)
17286         DISTVER=`uname -a |awk '{print $3}'`
17287         lld="qd"
17288         llu="qu"
17289         TAPEDRIVE="/dev/nrst0"
17290         PSCMD="ps -a -o pid,command"
17291         PTHREAD_LIB="-pthread"
17292         CFLAGS="${CFLAGS} -pthread"
17293   ;;
17294 openbsd)
17295         DISTVER=`uname -a |awk '{print $3}'`
17296         lld="qd"
17297         llu="qu"
17298         TAPEDRIVE="/dev/nrst0"
17299         PSCMD="ps -a -o pid,command"
17300         PTHREAD_LIB="-pthread"
17301         CFLAGS="${CFLAGS} -pthread"
17302         PFILES="${PFILES} \
17303             platforms/openbsd/Makefile \
17304             platforms/openbsd/bacula-fd \
17305             platforms/openbsd/bacula-sd \
17306             platforms/openbsd/bacula-dir"
17307   ;;
17308 redhat)
17309         DISTVER=`cat /etc/redhat-release | grep release |\
17310            cut -f 5 -d ' '`
17311         TAPEDRIVE="/dev/nst0"
17312         PSCMD="ps -e -o pid,command"
17313         PFILES="${PFILES} \
17314             platforms/redhat/Makefile \
17315             platforms/redhat/bacula-fd \
17316             platforms/redhat/bacula-sd \
17317             platforms/redhat/bacula-dir \
17318             platforms/redhat/bacula.spec \
17319             "
17320         hostname=`hostname -s`
17321   ;;
17322 mandrake)
17323         DISTVER=`cat /etc/mandrake-release | grep release |\
17324            cut -f 5 -d ' '`
17325         TAPEDRIVE="/dev/nst0"
17326         PSCMD="ps -e -o pid,command"
17327         PFILES="${PFILES} \
17328             platforms/mandrake/Makefile \
17329             platforms/mandrake/bacula-fd \
17330             platforms/mandrake/bacula-sd \
17331             platforms/mandrake/bacula-dir \
17332             platforms/mandrake/bacula.spec \
17333             "
17334         hostname=`hostname -s`
17335   ;;
17336 gentoo)
17337         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17338         TAPEDRIVE="/dev/nst0"
17339         PSCMD="ps -e -o pid,command"
17340         PFILES="${PFILES} \
17341             platforms/gentoo/Makefile \
17342             platforms/gentoo/bacula-fd \
17343             platforms/gentoo/bacula-sd \
17344             platforms/gentoo/bacula-dir"
17345         hostname=`hostname -s`
17346   ;;
17347
17348 slackware)
17349         DISTVER=`cat /etc/slackware-version`
17350         TAPEDRIVE="/dev/nst0"
17351         PSCMD="ps -e -o pid,command"
17352         hostname=`hostname -s`
17353   ;;
17354 solaris)
17355         DISTVER=`uname -r`
17356         TAPEDRIVE="/dev/rmt/0cbn"
17357         PSCMD="ps -e -o pid,comm"
17358         PFILES="${PFILES} \
17359             platforms/solaris/Makefile \
17360             platforms/solaris/bacula-fd \
17361             platforms/solaris/bacula-sd \
17362             platforms/solaris/bacula-dir"
17363         if test x$DISTVER = x5.6 ; then
17364             cat >>confdefs.h <<\_ACEOF
17365 #define HAVE_OLD_SOCKOPT 1
17366 _ACEOF
17367
17368         fi
17369   ;;
17370 suse)
17371         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17372             cut -f 3 -d ' '`
17373         TAPEDRIVE="/dev/nst0"
17374         PSCMD="ps -e -o pid,command"
17375         hostname=`hostname -s`
17376   ;;
17377 suse5)
17378         DISTNAME=suse
17379         DISTVER=5.x
17380         TAPEDRIVE="/dev/nst0"
17381         PSCMD="ps -e -o pid,command"
17382         hostname=`hostname -s`
17383   ;;
17384 unknown)
17385         DISTVER=unknown
17386         TAPEDRIVE="/dev/nst0"
17387   ;;
17388 *)
17389   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17390   ;;
17391 esac
17392
17393
17394
17395 LIBS="$PTHREAD_LIB $LIBS"
17396
17397 cat >>confdefs.h <<_ACEOF
17398 #define lld "$lld"
17399 _ACEOF
17400
17401 cat >>confdefs.h <<_ACEOF
17402 #define llu "$llu"
17403 _ACEOF
17404
17405
17406
17407
17408
17409
17410
17411 MCOMMON=./autoconf/Make.common
17412
17413
17414 if test "x${subsysdir}" = "x${sbindir}" ; then
17415    echo " "
17416    echo " "
17417    echo "You have set both --sbindir and --with-subsys-dir"
17418    echo "  equal to: ${subsysdir} "
17419    echo "This is not permitted. Please reconfigure."
17420    echo " "
17421    echo "Aborting configuration ..."
17422    echo " "
17423    echo " "
17424    exit 1
17425 fi
17426
17427                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/console scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/console.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/alter_mysql_tables src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/alter_sqlite_tables src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17428           ac_config_commands="$ac_config_commands default"
17429 cat >confcache <<\_ACEOF
17430 # This file is a shell script that caches the results of configure
17431 # tests run on this system so they can be shared between configure
17432 # scripts and configure runs, see configure's option --config-cache.
17433 # It is not useful on other systems.  If it contains results you don't
17434 # want to keep, you may remove or edit it.
17435 #
17436 # config.status only pays attention to the cache file if you give it
17437 # the --recheck option to rerun configure.
17438 #
17439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17441 # following values.
17442
17443 _ACEOF
17444
17445 # The following way of writing the cache mishandles newlines in values,
17446 # but we know of no workaround that is simple, portable, and efficient.
17447 # So, don't put newlines in cache variables' values.
17448 # Ultrix sh set writes to stderr and can't be redirected directly,
17449 # and sets the high bit in the cache file unless we assign to the vars.
17450 {
17451   (set) 2>&1 |
17452     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17453     *ac_space=\ *)
17454       # `set' does not quote correctly, so add quotes (double-quote
17455       # substitution turns \\\\ into \\, and sed turns \\ into \).
17456       sed -n \
17457         "s/'/'\\\\''/g;
17458           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17459       ;;
17460     *)
17461       # `set' quotes correctly as required by POSIX, so do not add quotes.
17462       sed -n \
17463         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17464       ;;
17465     esac;
17466 } |
17467   sed '
17468      t clear
17469      : clear
17470      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17471      t end
17472      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17473      : end' >>confcache
17474 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17475   if test -w $cache_file; then
17476     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17477     cat confcache >$cache_file
17478   else
17479     echo "not updating unwritable cache $cache_file"
17480   fi
17481 fi
17482 rm -f confcache
17483
17484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17485 # Let make expand exec_prefix.
17486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17487
17488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17490 # trailing colons and then remove the whole line if VPATH becomes empty
17491 # (actually we leave an empty line to preserve line numbers).
17492 if test "x$srcdir" = x.; then
17493   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17494 s/:*\$(srcdir):*/:/;
17495 s/:*\${srcdir}:*/:/;
17496 s/:*@srcdir@:*/:/;
17497 s/^\([^=]*=[    ]*\):*/\1/;
17498 s/:*$//;
17499 s/^[^=]*=[      ]*$//;
17500 }'
17501 fi
17502
17503 DEFS=-DHAVE_CONFIG_H
17504
17505 ac_libobjs=
17506 ac_ltlibobjs=
17507 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17508   # 1. Remove the extension, and $U if already installed.
17509   ac_i=`echo "$ac_i" |
17510          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17511   # 2. Add them.
17512   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17513   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17514 done
17515 LIBOBJS=$ac_libobjs
17516
17517 LTLIBOBJS=$ac_ltlibobjs
17518
17519
17520
17521 : ${CONFIG_STATUS=./config.status}
17522 ac_clean_files_save=$ac_clean_files
17523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17526 cat >$CONFIG_STATUS <<_ACEOF
17527 #! $SHELL
17528 # Generated by $as_me.
17529 # Run this file to recreate the current configuration.
17530 # Compiler output produced by configure, useful for debugging
17531 # configure, is in config.log if it exists.
17532
17533 debug=false
17534 ac_cs_recheck=false
17535 ac_cs_silent=false
17536 SHELL=\${CONFIG_SHELL-$SHELL}
17537 _ACEOF
17538
17539 cat >>$CONFIG_STATUS <<\_ACEOF
17540 ## --------------------- ##
17541 ## M4sh Initialization.  ##
17542 ## --------------------- ##
17543
17544 # Be Bourne compatible
17545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17546   emulate sh
17547   NULLCMD=:
17548   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17549   # is contrary to our usage.  Disable this feature.
17550   alias -g '${1+"$@"}'='"$@"'
17551 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17552   set -o posix
17553 fi
17554
17555 # Support unset when possible.
17556 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17557   as_unset=unset
17558 else
17559   as_unset=false
17560 fi
17561
17562
17563 # Work around bugs in pre-3.0 UWIN ksh.
17564 $as_unset ENV MAIL MAILPATH
17565 PS1='$ '
17566 PS2='> '
17567 PS4='+ '
17568
17569 # NLS nuisances.
17570 for as_var in \
17571   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17572   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17573   LC_TELEPHONE LC_TIME
17574 do
17575   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17576     eval $as_var=C; export $as_var
17577   else
17578     $as_unset $as_var
17579   fi
17580 done
17581
17582 # Required to use basename.
17583 if expr a : '\(a\)' >/dev/null 2>&1; then
17584   as_expr=expr
17585 else
17586   as_expr=false
17587 fi
17588
17589 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17590   as_basename=basename
17591 else
17592   as_basename=false
17593 fi
17594
17595
17596 # Name of the executable.
17597 as_me=`$as_basename "$0" ||
17598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17599          X"$0" : 'X\(//\)$' \| \
17600          X"$0" : 'X\(/\)$' \| \
17601          .     : '\(.\)' 2>/dev/null ||
17602 echo X/"$0" |
17603     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17604           /^X\/\(\/\/\)$/{ s//\1/; q; }
17605           /^X\/\(\/\).*/{ s//\1/; q; }
17606           s/.*/./; q'`
17607
17608
17609 # PATH needs CR, and LINENO needs CR and PATH.
17610 # Avoid depending upon Character Ranges.
17611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17614 as_cr_digits='0123456789'
17615 as_cr_alnum=$as_cr_Letters$as_cr_digits
17616
17617 # The user is always right.
17618 if test "${PATH_SEPARATOR+set}" != set; then
17619   echo "#! /bin/sh" >conf$$.sh
17620   echo  "exit 0"   >>conf$$.sh
17621   chmod +x conf$$.sh
17622   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17623     PATH_SEPARATOR=';'
17624   else
17625     PATH_SEPARATOR=:
17626   fi
17627   rm -f conf$$.sh
17628 fi
17629
17630
17631   as_lineno_1=$LINENO
17632   as_lineno_2=$LINENO
17633   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17634   test "x$as_lineno_1" != "x$as_lineno_2" &&
17635   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17636   # Find who we are.  Look in the path if we contain no path at all
17637   # relative or not.
17638   case $0 in
17639     *[\\/]* ) as_myself=$0 ;;
17640     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17641 for as_dir in $PATH
17642 do
17643   IFS=$as_save_IFS
17644   test -z "$as_dir" && as_dir=.
17645   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17646 done
17647
17648        ;;
17649   esac
17650   # We did not find ourselves, most probably we were run as `sh COMMAND'
17651   # in which case we are not to be found in the path.
17652   if test "x$as_myself" = x; then
17653     as_myself=$0
17654   fi
17655   if test ! -f "$as_myself"; then
17656     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17657 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17658    { (exit 1); exit 1; }; }
17659   fi
17660   case $CONFIG_SHELL in
17661   '')
17662     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17663 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17664 do
17665   IFS=$as_save_IFS
17666   test -z "$as_dir" && as_dir=.
17667   for as_base in sh bash ksh sh5; do
17668          case $as_dir in
17669          /*)
17670            if ("$as_dir/$as_base" -c '
17671   as_lineno_1=$LINENO
17672   as_lineno_2=$LINENO
17673   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17674   test "x$as_lineno_1" != "x$as_lineno_2" &&
17675   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17676              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17677              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17678              CONFIG_SHELL=$as_dir/$as_base
17679              export CONFIG_SHELL
17680              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17681            fi;;
17682          esac
17683        done
17684 done
17685 ;;
17686   esac
17687
17688   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17689   # uniformly replaced by the line number.  The first 'sed' inserts a
17690   # line-number line before each line; the second 'sed' does the real
17691   # work.  The second script uses 'N' to pair each line-number line
17692   # with the numbered line, and appends trailing '-' during
17693   # substitution so that $LINENO is not a special case at line end.
17694   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17695   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17696   sed '=' <$as_myself |
17697     sed '
17698       N
17699       s,$,-,
17700       : loop
17701       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17702       t loop
17703       s,-$,,
17704       s,^['$as_cr_digits']*\n,,
17705     ' >$as_me.lineno &&
17706   chmod +x $as_me.lineno ||
17707     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17708 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17709    { (exit 1); exit 1; }; }
17710
17711   # Don't try to exec as it changes $[0], causing all sort of problems
17712   # (the dirname of $[0] is not the place where we might find the
17713   # original and so on.  Autoconf is especially sensible to this).
17714   . ./$as_me.lineno
17715   # Exit status is that of the last command.
17716   exit
17717 }
17718
17719
17720 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17721   *c*,-n*) ECHO_N= ECHO_C='
17722 ' ECHO_T='      ' ;;
17723   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17724   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17725 esac
17726
17727 if expr a : '\(a\)' >/dev/null 2>&1; then
17728   as_expr=expr
17729 else
17730   as_expr=false
17731 fi
17732
17733 rm -f conf$$ conf$$.exe conf$$.file
17734 echo >conf$$.file
17735 if ln -s conf$$.file conf$$ 2>/dev/null; then
17736   # We could just check for DJGPP; but this test a) works b) is more generic
17737   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17738   if test -f conf$$.exe; then
17739     # Don't use ln at all; we don't have any links
17740     as_ln_s='cp -p'
17741   else
17742     as_ln_s='ln -s'
17743   fi
17744 elif ln conf$$.file conf$$ 2>/dev/null; then
17745   as_ln_s=ln
17746 else
17747   as_ln_s='cp -p'
17748 fi
17749 rm -f conf$$ conf$$.exe conf$$.file
17750
17751 if mkdir -p . 2>/dev/null; then
17752   as_mkdir_p=:
17753 else
17754   as_mkdir_p=false
17755 fi
17756
17757 as_executable_p="test -f"
17758
17759 # Sed expression to map a string onto a valid CPP name.
17760 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17761
17762 # Sed expression to map a string onto a valid variable name.
17763 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17764
17765
17766 # IFS
17767 # We need space, tab and new line, in precisely that order.
17768 as_nl='
17769 '
17770 IFS="   $as_nl"
17771
17772 # CDPATH.
17773 $as_unset CDPATH
17774
17775 exec 6>&1
17776
17777 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17778 # report actual input values of CONFIG_FILES etc. instead of their
17779 # values after options handling.  Logging --version etc. is OK.
17780 exec 5>>config.log
17781 {
17782   echo
17783   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17784 ## Running $as_me. ##
17785 _ASBOX
17786 } >&5
17787 cat >&5 <<_CSEOF
17788
17789 This file was extended by $as_me, which was
17790 generated by GNU Autoconf 2.57.  Invocation command line was
17791
17792   CONFIG_FILES    = $CONFIG_FILES
17793   CONFIG_HEADERS  = $CONFIG_HEADERS
17794   CONFIG_LINKS    = $CONFIG_LINKS
17795   CONFIG_COMMANDS = $CONFIG_COMMANDS
17796   $ $0 $@
17797
17798 _CSEOF
17799 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17800 echo >&5
17801 _ACEOF
17802
17803 # Files that config.status was made for.
17804 if test -n "$ac_config_files"; then
17805   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17806 fi
17807
17808 if test -n "$ac_config_headers"; then
17809   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17810 fi
17811
17812 if test -n "$ac_config_links"; then
17813   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17814 fi
17815
17816 if test -n "$ac_config_commands"; then
17817   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17818 fi
17819
17820 cat >>$CONFIG_STATUS <<\_ACEOF
17821
17822 ac_cs_usage="\
17823 \`$as_me' instantiates files from templates according to the
17824 current configuration.
17825
17826 Usage: $0 [OPTIONS] [FILE]...
17827
17828   -h, --help       print this help, then exit
17829   -V, --version    print version number, then exit
17830   -q, --quiet      do not print progress messages
17831   -d, --debug      don't remove temporary files
17832       --recheck    update $as_me by reconfiguring in the same conditions
17833   --file=FILE[:TEMPLATE]
17834                    instantiate the configuration file FILE
17835   --header=FILE[:TEMPLATE]
17836                    instantiate the configuration header FILE
17837
17838 Configuration files:
17839 $config_files
17840
17841 Configuration headers:
17842 $config_headers
17843
17844 Configuration commands:
17845 $config_commands
17846
17847 Report bugs to <bug-autoconf@gnu.org>."
17848 _ACEOF
17849
17850 cat >>$CONFIG_STATUS <<_ACEOF
17851 ac_cs_version="\\
17852 config.status
17853 configured by $0, generated by GNU Autoconf 2.57,
17854   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17855
17856 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17857 Free Software Foundation, Inc.
17858 This config.status script is free software; the Free Software Foundation
17859 gives unlimited permission to copy, distribute and modify it."
17860 srcdir=$srcdir
17861 INSTALL="$INSTALL"
17862 _ACEOF
17863
17864 cat >>$CONFIG_STATUS <<\_ACEOF
17865 # If no file are specified by the user, then we need to provide default
17866 # value.  By we need to know if files were specified by the user.
17867 ac_need_defaults=:
17868 while test $# != 0
17869 do
17870   case $1 in
17871   --*=*)
17872     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17873     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17874     ac_shift=:
17875     ;;
17876   -*)
17877     ac_option=$1
17878     ac_optarg=$2
17879     ac_shift=shift
17880     ;;
17881   *) # This is not an option, so the user has probably given explicit
17882      # arguments.
17883      ac_option=$1
17884      ac_need_defaults=false;;
17885   esac
17886
17887   case $ac_option in
17888   # Handling of the options.
17889 _ACEOF
17890 cat >>$CONFIG_STATUS <<\_ACEOF
17891   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17892     ac_cs_recheck=: ;;
17893   --version | --vers* | -V )
17894     echo "$ac_cs_version"; exit 0 ;;
17895   --he | --h)
17896     # Conflict between --help and --header
17897     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17898 Try \`$0 --help' for more information." >&5
17899 echo "$as_me: error: ambiguous option: $1
17900 Try \`$0 --help' for more information." >&2;}
17901    { (exit 1); exit 1; }; };;
17902   --help | --hel | -h )
17903     echo "$ac_cs_usage"; exit 0 ;;
17904   --debug | --d* | -d )
17905     debug=: ;;
17906   --file | --fil | --fi | --f )
17907     $ac_shift
17908     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17909     ac_need_defaults=false;;
17910   --header | --heade | --head | --hea )
17911     $ac_shift
17912     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17913     ac_need_defaults=false;;
17914   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17915   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17916     ac_cs_silent=: ;;
17917
17918   # This is an error.
17919   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17920 Try \`$0 --help' for more information." >&5
17921 echo "$as_me: error: unrecognized option: $1
17922 Try \`$0 --help' for more information." >&2;}
17923    { (exit 1); exit 1; }; } ;;
17924
17925   *) ac_config_targets="$ac_config_targets $1" ;;
17926
17927   esac
17928   shift
17929 done
17930
17931 ac_configure_extra_args=
17932
17933 if $ac_cs_silent; then
17934   exec 6>/dev/null
17935   ac_configure_extra_args="$ac_configure_extra_args --silent"
17936 fi
17937
17938 _ACEOF
17939 cat >>$CONFIG_STATUS <<_ACEOF
17940 if \$ac_cs_recheck; then
17941   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17942   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17943 fi
17944
17945 _ACEOF
17946
17947
17948
17949
17950
17951 cat >>$CONFIG_STATUS <<\_ACEOF
17952 for ac_config_target in $ac_config_targets
17953 do
17954   case "$ac_config_target" in
17955   # Handling of arguments.
17956   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17957   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17958   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
17959   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
17960   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
17961   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
17962   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
17963   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
17964   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
17965   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
17966   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
17967   "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
17968   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
17969   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
17970   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
17971   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
17972   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
17973   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
17974   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
17975   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
17976   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17977   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17978   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
17979   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
17980   "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
17981   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
17982   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
17983   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
17984   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
17985   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
17986   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
17987   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
17988   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
17989   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
17990   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
17991   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
17992   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
17993   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
17994   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
17995   "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
17996   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
17997   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
17998   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
17999   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18000   "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18001   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18002   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18003   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18004   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18005   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18006   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18007   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18008   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18009   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18010   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18011   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18012   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18013   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18014   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18015   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18016   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18017 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18018    { (exit 1); exit 1; }; };;
18019   esac
18020 done
18021
18022 # If the user did not use the arguments to specify the items to instantiate,
18023 # then the envvar interface is used.  Set only those that are not.
18024 # We use the long form for the default assignment because of an extremely
18025 # bizarre bug on SunOS 4.1.3.
18026 if $ac_need_defaults; then
18027   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18028   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18029   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18030 fi
18031
18032 # Have a temporary directory for convenience.  Make it in the build tree
18033 # simply because there is no reason to put it here, and in addition,
18034 # creating and moving files from /tmp can sometimes cause problems.
18035 # Create a temporary directory, and hook for its removal unless debugging.
18036 $debug ||
18037 {
18038   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18039   trap '{ (exit 1); exit 1; }' 1 2 13 15
18040 }
18041
18042 # Create a (secure) tmp directory for tmp files.
18043
18044 {
18045   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18046   test -n "$tmp" && test -d "$tmp"
18047 }  ||
18048 {
18049   tmp=./confstat$$-$RANDOM
18050   (umask 077 && mkdir $tmp)
18051 } ||
18052 {
18053    echo "$me: cannot create a temporary directory in ." >&2
18054    { (exit 1); exit 1; }
18055 }
18056
18057 _ACEOF
18058
18059 cat >>$CONFIG_STATUS <<_ACEOF
18060
18061 #
18062 # CONFIG_FILES section.
18063 #
18064
18065 # No need to generate the scripts if there are no CONFIG_FILES.
18066 # This happens for instance when ./config.status config.h
18067 if test -n "\$CONFIG_FILES"; then
18068   # Protect against being on the right side of a sed subst in config.status.
18069   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18070    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18071 s,@SHELL@,$SHELL,;t t
18072 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18073 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18074 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18075 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18076 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18077 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18078 s,@exec_prefix@,$exec_prefix,;t t
18079 s,@prefix@,$prefix,;t t
18080 s,@program_transform_name@,$program_transform_name,;t t
18081 s,@bindir@,$bindir,;t t
18082 s,@sbindir@,$sbindir,;t t
18083 s,@libexecdir@,$libexecdir,;t t
18084 s,@datadir@,$datadir,;t t
18085 s,@sysconfdir@,$sysconfdir,;t t
18086 s,@sharedstatedir@,$sharedstatedir,;t t
18087 s,@localstatedir@,$localstatedir,;t t
18088 s,@libdir@,$libdir,;t t
18089 s,@includedir@,$includedir,;t t
18090 s,@oldincludedir@,$oldincludedir,;t t
18091 s,@infodir@,$infodir,;t t
18092 s,@mandir@,$mandir,;t t
18093 s,@build_alias@,$build_alias,;t t
18094 s,@host_alias@,$host_alias,;t t
18095 s,@target_alias@,$target_alias,;t t
18096 s,@DEFS@,$DEFS,;t t
18097 s,@ECHO_C@,$ECHO_C,;t t
18098 s,@ECHO_N@,$ECHO_N,;t t
18099 s,@ECHO_T@,$ECHO_T,;t t
18100 s,@LIBS@,$LIBS,;t t
18101 s,@BUILD_DIR@,$BUILD_DIR,;t t
18102 s,@TRUEPRG@,$TRUEPRG,;t t
18103 s,@FALSEPRG@,$FALSEPRG,;t t
18104 s,@build@,$build,;t t
18105 s,@build_cpu@,$build_cpu,;t t
18106 s,@build_vendor@,$build_vendor,;t t
18107 s,@build_os@,$build_os,;t t
18108 s,@host@,$host,;t t
18109 s,@host_cpu@,$host_cpu,;t t
18110 s,@host_vendor@,$host_vendor,;t t
18111 s,@host_os@,$host_os,;t t
18112 s,@VERSION@,$VERSION,;t t
18113 s,@DATE@,$DATE,;t t
18114 s,@LSMDATE@,$LSMDATE,;t t
18115 s,@CC@,$CC,;t t
18116 s,@CFLAGS@,$CFLAGS,;t t
18117 s,@LDFLAGS@,$LDFLAGS,;t t
18118 s,@CPPFLAGS@,$CPPFLAGS,;t t
18119 s,@ac_ct_CC@,$ac_ct_CC,;t t
18120 s,@EXEEXT@,$EXEEXT,;t t
18121 s,@OBJEXT@,$OBJEXT,;t t
18122 s,@CXX@,$CXX,;t t
18123 s,@CXXFLAGS@,$CXXFLAGS,;t t
18124 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18125 s,@CPP@,$CPP,;t t
18126 s,@EGREP@,$EGREP,;t t
18127 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18128 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18129 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18130 s,@RANLIB@,$RANLIB,;t t
18131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18132 s,@MV@,$MV,;t t
18133 s,@RM@,$RM,;t t
18134 s,@CP@,$CP,;t t
18135 s,@SED@,$SED,;t t
18136 s,@AWK@,$AWK,;t t
18137 s,@ECHO@,$ECHO,;t t
18138 s,@CMP@,$CMP,;t t
18139 s,@TBL@,$TBL,;t t
18140 s,@AR@,$AR,;t t
18141 s,@OPENSSL@,$OPENSSL,;t t
18142 s,@MTX@,$MTX,;t t
18143 s,@PKGCONFIG@,$PKGCONFIG,;t t
18144 s,@ARFLAGS@,$ARFLAGS,;t t
18145 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18146 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18147 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18148 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18149 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18150 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18151 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18152 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18153 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18154 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18155 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18156 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18157 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18158 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18159 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18160 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18161 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18162 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18163 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18164 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18165 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18166 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18167 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18168 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18169 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18170 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18171 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18172 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18173 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18174 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18175 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18176 s,@MSGFMT@,$MSGFMT,;t t
18177 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18178 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18179 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18180 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18181 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18182 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18183 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18184 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18185 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18186 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18187 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18188 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18189 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18190 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18191 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18192 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18193 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18194 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18195 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18196 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18197 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18198 s,@GNOME_DIR@,$GNOME_DIR,;t t
18199 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18200 s,@STATIC_FD@,$STATIC_FD,;t t
18201 s,@STATIC_SD@,$STATIC_SD,;t t
18202 s,@STATIC_DIR@,$STATIC_DIR,;t t
18203 s,@STATIC_CONS@,$STATIC_CONS,;t t
18204 s,@ALL_DIRS@,$ALL_DIRS,;t t
18205 s,@CONS_INC@,$CONS_INC,;t t
18206 s,@CONS_LIBS@,$CONS_LIBS,;t t
18207 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18208 s,@READLINE_SRC@,$READLINE_SRC,;t t
18209 s,@working_dir@,$working_dir,;t t
18210 s,@scriptdir@,$scriptdir,;t t
18211 s,@dump_email@,$dump_email,;t t
18212 s,@job_email@,$job_email,;t t
18213 s,@smtp_host@,$smtp_host,;t t
18214 s,@piddir@,$piddir,;t t
18215 s,@subsysdir@,$subsysdir,;t t
18216 s,@baseport@,$baseport,;t t
18217 s,@dir_port@,$dir_port,;t t
18218 s,@fd_port@,$fd_port,;t t
18219 s,@sd_port@,$sd_port,;t t
18220 s,@dir_password@,$dir_password,;t t
18221 s,@fd_password@,$fd_password,;t t
18222 s,@sd_password@,$sd_password,;t t
18223 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18224 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18225 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18226 s,@cats@,$cats,;t t
18227 s,@DB_NAME@,$DB_NAME,;t t
18228 s,@GETCONF@,$GETCONF,;t t
18229 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18230 s,@X_CFLAGS@,$X_CFLAGS,;t t
18231 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18232 s,@X_LIBS@,$X_LIBS,;t t
18233 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18234 s,@LIBOBJS@,$LIBOBJS,;t t
18235 s,@ALLOCA@,$ALLOCA,;t t
18236 s,@FDLIBS@,$FDLIBS,;t t
18237 s,@DEBUG@,$DEBUG,;t t
18238 s,@DINCLUDE@,$DINCLUDE,;t t
18239 s,@DLIB@,$DLIB,;t t
18240 s,@DB_LIBS@,$DB_LIBS,;t t
18241 s,@WCFLAGS@,$WCFLAGS,;t t
18242 s,@WLDFLAGS@,$WLDFLAGS,;t t
18243 s,@OBJLIST@,$OBJLIST,;t t
18244 s,@hostname@,$hostname,;t t
18245 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18246 s,@PSCMD@,$PSCMD,;t t
18247 s,@WIN32@,$WIN32,;t t
18248 s,@DISTNAME@,$DISTNAME,;t t
18249 s,@DISTVER@,$DISTVER,;t t
18250 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18251 /@MCOMMON@/r $MCOMMON
18252 s,@MCOMMON@,,;t t
18253 CEOF
18254
18255 _ACEOF
18256
18257   cat >>$CONFIG_STATUS <<\_ACEOF
18258   # Split the substitutions into bite-sized pieces for seds with
18259   # small command number limits, like on Digital OSF/1 and HP-UX.
18260   ac_max_sed_lines=48
18261   ac_sed_frag=1 # Number of current file.
18262   ac_beg=1 # First line for current file.
18263   ac_end=$ac_max_sed_lines # Line after last line for current file.
18264   ac_more_lines=:
18265   ac_sed_cmds=
18266   while $ac_more_lines; do
18267     if test $ac_beg -gt 1; then
18268       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18269     else
18270       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18271     fi
18272     if test ! -s $tmp/subs.frag; then
18273       ac_more_lines=false
18274     else
18275       # The purpose of the label and of the branching condition is to
18276       # speed up the sed processing (if there are no `@' at all, there
18277       # is no need to browse any of the substitutions).
18278       # These are the two extra sed commands mentioned above.
18279       (echo ':t
18280   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18281       if test -z "$ac_sed_cmds"; then
18282         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18283       else
18284         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18285       fi
18286       ac_sed_frag=`expr $ac_sed_frag + 1`
18287       ac_beg=$ac_end
18288       ac_end=`expr $ac_end + $ac_max_sed_lines`
18289     fi
18290   done
18291   if test -z "$ac_sed_cmds"; then
18292     ac_sed_cmds=cat
18293   fi
18294 fi # test -n "$CONFIG_FILES"
18295
18296 _ACEOF
18297 cat >>$CONFIG_STATUS <<\_ACEOF
18298 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18299   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18300   case $ac_file in
18301   - | *:- | *:-:* ) # input from stdin
18302         cat >$tmp/stdin
18303         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18304         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18305   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18306         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18307   * )   ac_file_in=$ac_file.in ;;
18308   esac
18309
18310   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18311   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313          X"$ac_file" : 'X\(//\)[^/]' \| \
18314          X"$ac_file" : 'X\(//\)$' \| \
18315          X"$ac_file" : 'X\(/\)' \| \
18316          .     : '\(.\)' 2>/dev/null ||
18317 echo X"$ac_file" |
18318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18319           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18320           /^X\(\/\/\)$/{ s//\1/; q; }
18321           /^X\(\/\).*/{ s//\1/; q; }
18322           s/.*/./; q'`
18323   { if $as_mkdir_p; then
18324     mkdir -p "$ac_dir"
18325   else
18326     as_dir="$ac_dir"
18327     as_dirs=
18328     while test ! -d "$as_dir"; do
18329       as_dirs="$as_dir $as_dirs"
18330       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18332          X"$as_dir" : 'X\(//\)[^/]' \| \
18333          X"$as_dir" : 'X\(//\)$' \| \
18334          X"$as_dir" : 'X\(/\)' \| \
18335          .     : '\(.\)' 2>/dev/null ||
18336 echo X"$as_dir" |
18337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18338           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18339           /^X\(\/\/\)$/{ s//\1/; q; }
18340           /^X\(\/\).*/{ s//\1/; q; }
18341           s/.*/./; q'`
18342     done
18343     test ! -n "$as_dirs" || mkdir $as_dirs
18344   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18345 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18346    { (exit 1); exit 1; }; }; }
18347
18348   ac_builddir=.
18349
18350 if test "$ac_dir" != .; then
18351   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18352   # A "../" for each directory in $ac_dir_suffix.
18353   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18354 else
18355   ac_dir_suffix= ac_top_builddir=
18356 fi
18357
18358 case $srcdir in
18359   .)  # No --srcdir option.  We are building in place.
18360     ac_srcdir=.
18361     if test -z "$ac_top_builddir"; then
18362        ac_top_srcdir=.
18363     else
18364        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18365     fi ;;
18366   [\\/]* | ?:[\\/]* )  # Absolute path.
18367     ac_srcdir=$srcdir$ac_dir_suffix;
18368     ac_top_srcdir=$srcdir ;;
18369   *) # Relative path.
18370     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18371     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18372 esac
18373 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18374 # absolute.
18375 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18376 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18377 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18378 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18379
18380
18381   case $INSTALL in
18382   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18383   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18384   esac
18385
18386   if test x"$ac_file" != x-; then
18387     { echo "$as_me:$LINENO: creating $ac_file" >&5
18388 echo "$as_me: creating $ac_file" >&6;}
18389     rm -f "$ac_file"
18390   fi
18391   # Let's still pretend it is `configure' which instantiates (i.e., don't
18392   # use $as_me), people would be surprised to read:
18393   #    /* config.h.  Generated by config.status.  */
18394   if test x"$ac_file" = x-; then
18395     configure_input=
18396   else
18397     configure_input="$ac_file.  "
18398   fi
18399   configure_input=$configure_input"Generated from `echo $ac_file_in |
18400                                      sed 's,.*/,,'` by configure."
18401
18402   # First look for the input files in the build tree, otherwise in the
18403   # src tree.
18404   ac_file_inputs=`IFS=:
18405     for f in $ac_file_in; do
18406       case $f in
18407       -) echo $tmp/stdin ;;
18408       [\\/$]*)
18409          # Absolute (can't be DOS-style, as IFS=:)
18410          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18411 echo "$as_me: error: cannot find input file: $f" >&2;}
18412    { (exit 1); exit 1; }; }
18413          echo $f;;
18414       *) # Relative
18415          if test -f "$f"; then
18416            # Build tree
18417            echo $f
18418          elif test -f "$srcdir/$f"; then
18419            # Source tree
18420            echo $srcdir/$f
18421          else
18422            # /dev/null tree
18423            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18424 echo "$as_me: error: cannot find input file: $f" >&2;}
18425    { (exit 1); exit 1; }; }
18426          fi;;
18427       esac
18428     done` || { (exit 1); exit 1; }
18429 _ACEOF
18430 cat >>$CONFIG_STATUS <<_ACEOF
18431   sed "$ac_vpsub
18432 $extrasub
18433 _ACEOF
18434 cat >>$CONFIG_STATUS <<\_ACEOF
18435 :t
18436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18437 s,@configure_input@,$configure_input,;t t
18438 s,@srcdir@,$ac_srcdir,;t t
18439 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18440 s,@top_srcdir@,$ac_top_srcdir,;t t
18441 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18442 s,@builddir@,$ac_builddir,;t t
18443 s,@abs_builddir@,$ac_abs_builddir,;t t
18444 s,@top_builddir@,$ac_top_builddir,;t t
18445 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18446 s,@INSTALL@,$ac_INSTALL,;t t
18447 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18448   rm -f $tmp/stdin
18449   if test x"$ac_file" != x-; then
18450     mv $tmp/out $ac_file
18451   else
18452     cat $tmp/out
18453     rm -f $tmp/out
18454   fi
18455
18456 done
18457 _ACEOF
18458 cat >>$CONFIG_STATUS <<\_ACEOF
18459
18460 #
18461 # CONFIG_HEADER section.
18462 #
18463
18464 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18465 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18466 #
18467 # ac_d sets the value in "#define NAME VALUE" lines.
18468 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18469 ac_dB='[        ].*$,\1#\2'
18470 ac_dC=' '
18471 ac_dD=',;t'
18472 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18473 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18474 ac_uB='$,\1#\2define\3'
18475 ac_uC=' '
18476 ac_uD=',;t'
18477
18478 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18479   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18480   case $ac_file in
18481   - | *:- | *:-:* ) # input from stdin
18482         cat >$tmp/stdin
18483         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18484         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18485   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18486         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18487   * )   ac_file_in=$ac_file.in ;;
18488   esac
18489
18490   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18491 echo "$as_me: creating $ac_file" >&6;}
18492
18493   # First look for the input files in the build tree, otherwise in the
18494   # src tree.
18495   ac_file_inputs=`IFS=:
18496     for f in $ac_file_in; do
18497       case $f in
18498       -) echo $tmp/stdin ;;
18499       [\\/$]*)
18500          # Absolute (can't be DOS-style, as IFS=:)
18501          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18502 echo "$as_me: error: cannot find input file: $f" >&2;}
18503    { (exit 1); exit 1; }; }
18504          echo $f;;
18505       *) # Relative
18506          if test -f "$f"; then
18507            # Build tree
18508            echo $f
18509          elif test -f "$srcdir/$f"; then
18510            # Source tree
18511            echo $srcdir/$f
18512          else
18513            # /dev/null tree
18514            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18515 echo "$as_me: error: cannot find input file: $f" >&2;}
18516    { (exit 1); exit 1; }; }
18517          fi;;
18518       esac
18519     done` || { (exit 1); exit 1; }
18520   # Remove the trailing spaces.
18521   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18522
18523 _ACEOF
18524
18525 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18526 # `conftest.undefs', that substitutes the proper values into
18527 # config.h.in to produce config.h.  The first handles `#define'
18528 # templates, and the second `#undef' templates.
18529 # And first: Protect against being on the right side of a sed subst in
18530 # config.status.  Protect against being in an unquoted here document
18531 # in config.status.
18532 rm -f conftest.defines conftest.undefs
18533 # Using a here document instead of a string reduces the quoting nightmare.
18534 # Putting comments in sed scripts is not portable.
18535 #
18536 # `end' is used to avoid that the second main sed command (meant for
18537 # 0-ary CPP macros) applies to n-ary macro definitions.
18538 # See the Autoconf documentation for `clear'.
18539 cat >confdef2sed.sed <<\_ACEOF
18540 s/[\\&,]/\\&/g
18541 s,[\\$`],\\&,g
18542 t clear
18543 : clear
18544 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18545 t end
18546 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18547 : end
18548 _ACEOF
18549 # If some macros were called several times there might be several times
18550 # the same #defines, which is useless.  Nevertheless, we may not want to
18551 # sort them, since we want the *last* AC-DEFINE to be honored.
18552 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18553 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18554 rm -f confdef2sed.sed
18555
18556 # This sed command replaces #undef with comments.  This is necessary, for
18557 # example, in the case of _POSIX_SOURCE, which is predefined and required
18558 # on some systems where configure will not decide to define it.
18559 cat >>conftest.undefs <<\_ACEOF
18560 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18561 _ACEOF
18562
18563 # Break up conftest.defines because some shells have a limit on the size
18564 # of here documents, and old seds have small limits too (100 cmds).
18565 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18566 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18567 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18568 echo '  :' >>$CONFIG_STATUS
18569 rm -f conftest.tail
18570 while grep . conftest.defines >/dev/null
18571 do
18572   # Write a limited-size here document to $tmp/defines.sed.
18573   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18574   # Speed up: don't consider the non `#define' lines.
18575   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18576   # Work around the forget-to-reset-the-flag bug.
18577   echo 't clr' >>$CONFIG_STATUS
18578   echo ': clr' >>$CONFIG_STATUS
18579   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18580   echo 'CEOF
18581   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18582   rm -f $tmp/in
18583   mv $tmp/out $tmp/in
18584 ' >>$CONFIG_STATUS
18585   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18586   rm -f conftest.defines
18587   mv conftest.tail conftest.defines
18588 done
18589 rm -f conftest.defines
18590 echo '  fi # grep' >>$CONFIG_STATUS
18591 echo >>$CONFIG_STATUS
18592
18593 # Break up conftest.undefs because some shells have a limit on the size
18594 # of here documents, and old seds have small limits too (100 cmds).
18595 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18596 rm -f conftest.tail
18597 while grep . conftest.undefs >/dev/null
18598 do
18599   # Write a limited-size here document to $tmp/undefs.sed.
18600   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18601   # Speed up: don't consider the non `#undef'
18602   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18603   # Work around the forget-to-reset-the-flag bug.
18604   echo 't clr' >>$CONFIG_STATUS
18605   echo ': clr' >>$CONFIG_STATUS
18606   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18607   echo 'CEOF
18608   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18609   rm -f $tmp/in
18610   mv $tmp/out $tmp/in
18611 ' >>$CONFIG_STATUS
18612   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18613   rm -f conftest.undefs
18614   mv conftest.tail conftest.undefs
18615 done
18616 rm -f conftest.undefs
18617
18618 cat >>$CONFIG_STATUS <<\_ACEOF
18619   # Let's still pretend it is `configure' which instantiates (i.e., don't
18620   # use $as_me), people would be surprised to read:
18621   #    /* config.h.  Generated by config.status.  */
18622   if test x"$ac_file" = x-; then
18623     echo "/* Generated by configure.  */" >$tmp/config.h
18624   else
18625     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18626   fi
18627   cat $tmp/in >>$tmp/config.h
18628   rm -f $tmp/in
18629   if test x"$ac_file" != x-; then
18630     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18631       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18632 echo "$as_me: $ac_file is unchanged" >&6;}
18633     else
18634       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18636          X"$ac_file" : 'X\(//\)[^/]' \| \
18637          X"$ac_file" : 'X\(//\)$' \| \
18638          X"$ac_file" : 'X\(/\)' \| \
18639          .     : '\(.\)' 2>/dev/null ||
18640 echo X"$ac_file" |
18641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18642           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18643           /^X\(\/\/\)$/{ s//\1/; q; }
18644           /^X\(\/\).*/{ s//\1/; q; }
18645           s/.*/./; q'`
18646       { if $as_mkdir_p; then
18647     mkdir -p "$ac_dir"
18648   else
18649     as_dir="$ac_dir"
18650     as_dirs=
18651     while test ! -d "$as_dir"; do
18652       as_dirs="$as_dir $as_dirs"
18653       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18655          X"$as_dir" : 'X\(//\)[^/]' \| \
18656          X"$as_dir" : 'X\(//\)$' \| \
18657          X"$as_dir" : 'X\(/\)' \| \
18658          .     : '\(.\)' 2>/dev/null ||
18659 echo X"$as_dir" |
18660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18661           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18662           /^X\(\/\/\)$/{ s//\1/; q; }
18663           /^X\(\/\).*/{ s//\1/; q; }
18664           s/.*/./; q'`
18665     done
18666     test ! -n "$as_dirs" || mkdir $as_dirs
18667   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18669    { (exit 1); exit 1; }; }; }
18670
18671       rm -f $ac_file
18672       mv $tmp/config.h $ac_file
18673     fi
18674   else
18675     cat $tmp/config.h
18676     rm -f $tmp/config.h
18677   fi
18678 done
18679 _ACEOF
18680 cat >>$CONFIG_STATUS <<\_ACEOF
18681
18682 #
18683 # CONFIG_COMMANDS section.
18684 #
18685 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18686   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18687   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18688   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18689 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18690          X"$ac_dest" : 'X\(//\)[^/]' \| \
18691          X"$ac_dest" : 'X\(//\)$' \| \
18692          X"$ac_dest" : 'X\(/\)' \| \
18693          .     : '\(.\)' 2>/dev/null ||
18694 echo X"$ac_dest" |
18695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18696           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18697           /^X\(\/\/\)$/{ s//\1/; q; }
18698           /^X\(\/\).*/{ s//\1/; q; }
18699           s/.*/./; q'`
18700   ac_builddir=.
18701
18702 if test "$ac_dir" != .; then
18703   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18704   # A "../" for each directory in $ac_dir_suffix.
18705   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18706 else
18707   ac_dir_suffix= ac_top_builddir=
18708 fi
18709
18710 case $srcdir in
18711   .)  # No --srcdir option.  We are building in place.
18712     ac_srcdir=.
18713     if test -z "$ac_top_builddir"; then
18714        ac_top_srcdir=.
18715     else
18716        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18717     fi ;;
18718   [\\/]* | ?:[\\/]* )  # Absolute path.
18719     ac_srcdir=$srcdir$ac_dir_suffix;
18720     ac_top_srcdir=$srcdir ;;
18721   *) # Relative path.
18722     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18723     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18724 esac
18725 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18726 # absolute.
18727 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18728 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18729 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18730 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18731
18732
18733   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18734 echo "$as_me: executing $ac_dest commands" >&6;}
18735   case $ac_dest in
18736     default ) (echo "Doing make of dependencies"; make depend;)
18737  ;;
18738   esac
18739 done
18740 _ACEOF
18741
18742 cat >>$CONFIG_STATUS <<\_ACEOF
18743
18744 { (exit 0); exit 0; }
18745 _ACEOF
18746 chmod +x $CONFIG_STATUS
18747 ac_clean_files=$ac_clean_files_save
18748
18749
18750 # configure is writing to config.log, and then calls config.status.
18751 # config.status does its own redirection, appending to config.log.
18752 # Unfortunately, on DOS this fails, as config.log is still kept open
18753 # by configure, so config.status won't be able to write to it; its
18754 # output is simply discarded.  So we exec the FD to /dev/null,
18755 # effectively closing config.log, so it can be properly (re)opened and
18756 # appended to by config.status.  When coming back to configure, we
18757 # need to make the FD available again.
18758 if test "$no_create" != yes; then
18759   ac_cs_success=:
18760   ac_config_status_args=
18761   test "$silent" = yes &&
18762     ac_config_status_args="$ac_config_status_args --quiet"
18763   exec 5>/dev/null
18764   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18765   exec 5>>config.log
18766   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18767   # would make configure fail if this is the last instruction.
18768   $ac_cs_success || { (exit 1); exit 1; }
18769 fi
18770
18771
18772 cd scripts
18773 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18774 chmod 755 console gconsole mtx-changer
18775 cd ..
18776 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18777 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18778 chmod 755 src/cats/create_mysql_database
18779 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18780 chmod 755 src/cats/alter_mysql_tables
18781 chmod 755 src/cats/grant_mysql_privileges
18782 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18783 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18784 chmod 755 src/cats/create_sqlite_database
18785 chmod 755 src/cats/alter_sqlite_tables
18786 chmod 755 src/cats/sqlite
18787 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18788 chmod 755 src/cats/create_bdb_database
18789
18790 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18791    largefile_support="yes"
18792 fi
18793
18794 #
18795 # A whole lot of hand springs to get the compiler version.
18796 #  This is because gcc changed the output in version 3.0
18797 #
18798 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18799 if test "x${CCVERSION}" = "x" ; then
18800   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18801 fi
18802 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18803 if test x"${CXXVERSION}" = x ; then
18804   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18805 fi
18806
18807 if test "x${subsysdir}" = "x${sbindir}" ; then
18808    echo " "
18809    echo " "
18810    echo "You have set --sbindir and --with-subsys-dir"
18811    echo "  both equal to: ${subsysdir} "
18812    echo "  This is not permitted. Please reconfigure."
18813    echo "Aborting configuration ..."
18814    echo " "
18815    echo " "
18816    exit 1
18817 fi
18818
18819 echo "
18820 Configuration on `date`:
18821
18822   Host:                       $host -- ${DISTNAME} ${DISTVER}
18823   Bacula version:             ${VERSION} (${DATE})
18824   Source code location:       ${srcdir}
18825   Install binaries:           ${sbindir}
18826   Install config files:       ${sysconfdir}
18827   Scripts directory:          ${scriptdir}
18828   Working directory:          ${working_dir}
18829   PID directory:              ${piddir}
18830   Subsys directory:           ${subsysdir}
18831   C Compiler:                 ${CC} ${CCVERSION}
18832   C++ Compiler:               ${CXX} ${CXXVERSION}
18833   Compiler flags:             ${WCFLAGS} ${CFLAGS}
18834   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
18835   Libraries:                  ${LIBS}
18836   Statically Linked Tools:    ${support_static_tools}
18837   Statically Linked FD:       ${support_static_fd}
18838   Statically Linked SD:       ${support_static_sd}
18839   Statically Linked DIR:      ${support_static_dir}
18840   Statically Linked CONS:     ${support_static_cons}
18841   Database type:              ${db_name}
18842   Database lib:               ${DB_LIBS}
18843
18844   Job Output Email:           ${job_email}
18845   Traceback Email:            ${dump_email}
18846   SMTP Host Address:          ${smtp_host}
18847   Director Port               ${dir_port}
18848   File daemon Port            ${fd_port}
18849   Storage daemon Port         ${sd_port}
18850   SQL binaries Directory      ${SQL_BINDIR}
18851
18852   Large file support:         $largefile_support
18853   readline support:           ${got_readline} ${PRTREADLINE_SRC}
18854   TCP Wrappers support:       ${TCPW_MSG}
18855   ZLIB support:               ${have_zlib}
18856   enable-smartalloc:          ${support_smartalloc}
18857   enable-gnome:               ${support_gnome}
18858   client-only:                ${build_client_only}
18859
18860   " > config.out
18861
18862 cat config.out
18863
18864 # old stuff
18865 # cweb support:               ${got_cweb} ${CWEB_SRC}
18866 # gmp support:                ${got_gmp} ${GMP_SRC}