]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
new devel_bacula + fixes to conio/console
[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 STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-conio            disable conio support enabled
867
868   --disable-readline      disable readline support disable
869
870   --disable-largefile     omit support for large files
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-gnome-includes   Specify location of GNOME headers
876   --with-gnome-libs       Specify location of GNOME libs
877   --with-gnome            Specify prefix for GNOME files
878  --with-readline=DIR             specify readline library directory
879   --with-tcp-wrappers=DIR        enable tcpwrappers support
880   --with-working-dir=PATH        specify path of Bacula working directory
881   --with-scriptdir=PATH    specify path of Bacula scripts directory
882   --with-dump-email=EMAIL        dump email address
883   --with-job-email=EMAIL         job output email address
884   --with-smtp-host=HOST          SMTP mail host address
885   --with-pid-dir=PATH            specify location of Bacula pid files
886   --with-subsys-dir=PATH         specify location of Bacula subsys file
887   --with-baseport=PORT           specify base port address for daemons
888   --with-dir-password=PASSWORD   specify Director's password
889   --with-fd-password=PASSWORD    specify Client's password
890   --with-sd-password=PASSWORD    specify Storage daemon's password
891   --with-dir-user=USER           specify user for Director daemon
892   --with-dir-group=GROUP                 specify group for Director daemon
893   --with-sd-user=USER            specify user for Storage daemon
894   --with-sd-group=GROUP          specify group for Storage daemon
895   --with-fd-user=USER            specify user for File daemon
896   --with-fd-group=GROUP          specify group for File daemon
897   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
898                           base install directory, defaults to /usr/local/pgsql
899
900 Which DBMS do you want to use (please select only one):
901   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
902                           install directory, default is to search through
903                           a number of common places for the MySQL files.
904
905 Which DBMS do you want to use (please select only one):
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910 Which DBMS do you want to use (please select only one):
911   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
912                           install directory, default is to search through
913                           a number of common places for the SQLite files.
914   --with-x                use the X Window System
915
916 Some influential environment variables:
917   CC          C compiler command
918   CFLAGS      C compiler flags
919   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
920               nonstandard directory <lib dir>
921   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
922               headers in a nonstandard directory <include dir>
923   CXX         C++ compiler command
924   CXXFLAGS    C++ compiler flags
925   CPP         C preprocessor
926
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
929
930 _ACEOF
931 fi
932
933 if test "$ac_init_help" = "recursive"; then
934   # If there are subdirs, report their specific --help.
935   ac_popdir=`pwd`
936   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937     test -d $ac_dir || continue
938     ac_builddir=.
939
940 if test "$ac_dir" != .; then
941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942   # A "../" for each directory in $ac_dir_suffix.
943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945   ac_dir_suffix= ac_top_builddir=
946 fi
947
948 case $srcdir in
949   .)  # No --srcdir option.  We are building in place.
950     ac_srcdir=.
951     if test -z "$ac_top_builddir"; then
952        ac_top_srcdir=.
953     else
954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955     fi ;;
956   [\\/]* | ?:[\\/]* )  # Absolute path.
957     ac_srcdir=$srcdir$ac_dir_suffix;
958     ac_top_srcdir=$srcdir ;;
959   *) # Relative path.
960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 # absolute.
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969
970     cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973       echo
974       $SHELL $ac_srcdir/configure.gnu  --help=recursive
975     elif test -f $ac_srcdir/configure; then
976       echo
977       $SHELL $ac_srcdir/configure  --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979            test -f $ac_srcdir/configure.in; then
980       echo
981       $ac_configure --help
982     else
983       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986   done
987 fi
988
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
991   cat <<\_ACEOF
992
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core core.* *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 BUILD_DIR=`pwd`
1334 cd ..
1335 TOP_DIR=`pwd`
1336 cd ${BUILD_DIR}
1337
1338 ac_aux_dir=
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1364
1365
1366
1367
1368
1369 for ac_prog in true
1370 do
1371   # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376   echo $ECHO_N "(cached) $ECHO_C" >&6
1377 else
1378   case $TRUEPRG in
1379   [\\/]* | ?:[\\/]*)
1380   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381   ;;
1382   *)
1383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1385 do
1386   IFS=$as_save_IFS
1387   test -z "$as_dir" && as_dir=.
1388   for ac_exec_ext in '' $ac_executable_extensions; do
1389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392     break 2
1393   fi
1394 done
1395 done
1396
1397   ;;
1398 esac
1399 fi
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1401
1402 if test -n "$TRUEPRG"; then
1403   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1405 else
1406   echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410   test -n "$TRUEPRG" && break
1411 done
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1413
1414 for ac_prog in false
1415 do
1416   # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   case $FALSEPRG in
1424   [\\/]* | ?:[\\/]*)
1425   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426   ;;
1427   *)
1428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   for ac_exec_ext in '' $ac_executable_extensions; do
1434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437     break 2
1438   fi
1439 done
1440 done
1441
1442   ;;
1443 esac
1444 fi
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1446
1447 if test -n "$FALSEPRG"; then
1448   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455   test -n "$FALSEPRG" && break
1456 done
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1458
1459
1460 # Make sure we can run config.sub.
1461 $ac_config_sub sun4 >/dev/null 2>&1 ||
1462   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1463 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1464    { (exit 1); exit 1; }; }
1465
1466 echo "$as_me:$LINENO: checking build system type" >&5
1467 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1468 if test "${ac_cv_build+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   ac_cv_build_alias=$build_alias
1472 test -z "$ac_cv_build_alias" &&
1473   ac_cv_build_alias=`$ac_config_guess`
1474 test -z "$ac_cv_build_alias" &&
1475   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1476 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1477    { (exit 1); exit 1; }; }
1478 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1479   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1480 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1481    { (exit 1); exit 1; }; }
1482
1483 fi
1484 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1485 echo "${ECHO_T}$ac_cv_build" >&6
1486 build=$ac_cv_build
1487 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490
1491
1492 echo "$as_me:$LINENO: checking host system type" >&5
1493 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1494 if test "${ac_cv_host+set}" = set; then
1495   echo $ECHO_N "(cached) $ECHO_C" >&6
1496 else
1497   ac_cv_host_alias=$host_alias
1498 test -z "$ac_cv_host_alias" &&
1499   ac_cv_host_alias=$ac_cv_build_alias
1500 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1501   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1502 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1503    { (exit 1); exit 1; }; }
1504
1505 fi
1506 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1507 echo "${ECHO_T}$ac_cv_host" >&6
1508 host=$ac_cv_host
1509 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1510 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1511 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512
1513
1514
1515 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 echo "configuring for bacula $VERSION ($DATE)"
1519
1520
1521
1522 ac_ext=c
1523 ac_cpp='$CPP $CPPFLAGS'
1524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527 if test -n "$ac_tool_prefix"; then
1528   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1530 echo "$as_me:$LINENO: checking for $ac_word" >&5
1531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532 if test "${ac_cv_prog_CC+set}" = set; then
1533   echo $ECHO_N "(cached) $ECHO_C" >&6
1534 else
1535   if test -n "$CC"; then
1536   ac_cv_prog_CC="$CC" # Let the user override the test.
1537 else
1538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 for as_dir in $PATH
1540 do
1541   IFS=$as_save_IFS
1542   test -z "$as_dir" && as_dir=.
1543   for ac_exec_ext in '' $ac_executable_extensions; do
1544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547     break 2
1548   fi
1549 done
1550 done
1551
1552 fi
1553 fi
1554 CC=$ac_cv_prog_CC
1555 if test -n "$CC"; then
1556   echo "$as_me:$LINENO: result: $CC" >&5
1557 echo "${ECHO_T}$CC" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 fi
1562
1563 fi
1564 if test -z "$ac_cv_prog_CC"; then
1565   ac_ct_CC=$CC
1566   # Extract the first word of "gcc", so it can be a program name with args.
1567 set dummy gcc; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1571   echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573   if test -n "$ac_ct_CC"; then
1574   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1575 else
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1578 do
1579   IFS=$as_save_IFS
1580   test -z "$as_dir" && as_dir=.
1581   for ac_exec_ext in '' $ac_executable_extensions; do
1582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583     ac_cv_prog_ac_ct_CC="gcc"
1584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585     break 2
1586   fi
1587 done
1588 done
1589
1590 fi
1591 fi
1592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1593 if test -n "$ac_ct_CC"; then
1594   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1595 echo "${ECHO_T}$ac_ct_CC" >&6
1596 else
1597   echo "$as_me:$LINENO: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1599 fi
1600
1601   CC=$ac_ct_CC
1602 else
1603   CC="$ac_cv_prog_CC"
1604 fi
1605
1606 if test -z "$CC"; then
1607   if test -n "$ac_tool_prefix"; then
1608   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1609 set dummy ${ac_tool_prefix}cc; ac_word=$2
1610 echo "$as_me:$LINENO: checking for $ac_word" >&5
1611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1612 if test "${ac_cv_prog_CC+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   if test -n "$CC"; then
1616   ac_cv_prog_CC="$CC" # Let the user override the test.
1617 else
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   for ac_exec_ext in '' $ac_executable_extensions; do
1624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1625     ac_cv_prog_CC="${ac_tool_prefix}cc"
1626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1627     break 2
1628   fi
1629 done
1630 done
1631
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636   echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639   echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$ac_cv_prog_CC"; then
1645   ac_ct_CC=$CC
1646   # Extract the first word of "cc", so it can be a program name with args.
1647 set dummy cc; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   if test -n "$ac_ct_CC"; then
1654   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     ac_cv_prog_ac_ct_CC="cc"
1664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665     break 2
1666   fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1673 if test -n "$ac_ct_CC"; then
1674   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1675 echo "${ECHO_T}$ac_ct_CC" >&6
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681   CC=$ac_ct_CC
1682 else
1683   CC="$ac_cv_prog_CC"
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   # Extract the first word of "cc", so it can be a program name with args.
1689 set dummy cc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$CC"; then
1696   ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else
1698   ac_prog_rejected=no
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1707        ac_prog_rejected=yes
1708        continue
1709      fi
1710     ac_cv_prog_CC="cc"
1711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712     break 2
1713   fi
1714 done
1715 done
1716
1717 if test $ac_prog_rejected = yes; then
1718   # We found a bogon in the path, so make sure we never use it.
1719   set dummy $ac_cv_prog_CC
1720   shift
1721   if test $# != 0; then
1722     # We chose a different compiler from the bogus one.
1723     # However, it has the same basename, so the bogon will be chosen
1724     # first if we set CC to just the basename; use the full file name.
1725     shift
1726     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1727   fi
1728 fi
1729 fi
1730 fi
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733   echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736   echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740 fi
1741 if test -z "$CC"; then
1742   if test -n "$ac_tool_prefix"; then
1743   for ac_prog in cl
1744   do
1745     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1746 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_CC+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$CC"; then
1753   ac_cv_prog_CC="$CC" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 CC=$ac_cv_prog_CC
1772 if test -n "$CC"; then
1773   echo "$as_me:$LINENO: result: $CC" >&5
1774 echo "${ECHO_T}$CC" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780     test -n "$CC" && break
1781   done
1782 fi
1783 if test -z "$CC"; then
1784   ac_ct_CC=$CC
1785   for ac_prog in cl
1786 do
1787   # Extract the first word of "$ac_prog", so it can be a program name with args.
1788 set dummy $ac_prog; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   if test -n "$ac_ct_CC"; then
1795   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1799 do
1800   IFS=$as_save_IFS
1801   test -z "$as_dir" && as_dir=.
1802   for ac_exec_ext in '' $ac_executable_extensions; do
1803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804     ac_cv_prog_ac_ct_CC="$ac_prog"
1805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806     break 2
1807   fi
1808 done
1809 done
1810
1811 fi
1812 fi
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1817 else
1818   echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820 fi
1821
1822   test -n "$ac_ct_CC" && break
1823 done
1824
1825   CC=$ac_ct_CC
1826 fi
1827
1828 fi
1829
1830
1831 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: no acceptable C compiler found in \$PATH
1834 See \`config.log' for more details." >&2;}
1835    { (exit 1); exit 1; }; }
1836
1837 # Provide some information about the compiler.
1838 echo "$as_me:$LINENO:" \
1839      "checking for C compiler version" >&5
1840 ac_compiler=`set X $ac_compile; echo $2`
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1842   (eval $ac_compiler --version </dev/null >&5) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }
1846 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1847   (eval $ac_compiler -v </dev/null >&5) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1852   (eval $ac_compiler -V </dev/null >&5) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }
1856
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line $LINENO "configure"
1859 /* confdefs.h.  */
1860 _ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h.  */
1864
1865 int
1866 main ()
1867 {
1868
1869   ;
1870   return 0;
1871 }
1872 _ACEOF
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1877 # of exeext.
1878 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1879 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882   (eval $ac_link_default) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # Find the output, starting from the most likely.  This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # resort.
1889
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1892 ac_cv_exeext=
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1895 do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899         ;;
1900     conftest.$ac_ext )
1901         # This is the source file.
1902         ;;
1903     [ab].out )
1904         # We found the default executable, but exeext='' is most
1905         # certainly right.
1906         break;;
1907     *.* )
1908         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909         # FIXME: I believe we export ac_cv_exeext for Libtool,
1910         # but it would be cool to find out if it's true.  Does anybody
1911         # maintain Libtool? --akim.
1912         export ac_cv_exeext
1913         break;;
1914     * )
1915         break;;
1916   esac
1917 done
1918 else
1919   echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926    { (exit 77); exit 77; }; }
1927 fi
1928
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1932
1933 # Check the compiler produces executables we can run.  If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940   if { ac_try='./$ac_file'
1941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946     cross_compiling=no
1947   else
1948     if test "$cross_compiling" = maybe; then
1949         cross_compiling=yes
1950     else
1951         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958     fi
1959   fi
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run.  If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1972
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976   (eval $ac_link) 2>&5
1977   ac_status=$?
1978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979   (exit $ac_status); }; then
1980   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 # `rm'.
1984 for ac_file in conftest.exe conftest conftest.*; do
1985   test -f "$ac_file" || continue
1986   case $ac_file in
1987     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989           export ac_cv_exeext
1990           break;;
1991     * ) break;;
1992   esac
1993 done
1994 else
1995   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2001
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2005
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2008 ac_exeext=$EXEEXT
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2016 /* confdefs.h.  */
2017 _ACEOF
2018 cat confdefs.h >>conftest.$ac_ext
2019 cat >>conftest.$ac_ext <<_ACEOF
2020 /* end confdefs.h.  */
2021
2022 int
2023 main ()
2024 {
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.o conftest.obj
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }; then
2036   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037   case $ac_file in
2038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2039     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040        break;;
2041   esac
2042 done
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&5
2049 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050 See \`config.log' for more details." >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2057 echo "${ECHO_T}$ac_cv_objext" >&6
2058 OBJEXT=$ac_cv_objext
2059 ac_objext=$OBJEXT
2060 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2061 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 /* confdefs.h.  */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h.  */
2072
2073 int
2074 main ()
2075 {
2076 #ifndef __GNUC__
2077        choke me
2078 #endif
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_compiler_gnu=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_compiler_gnu=no
2102 fi
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2105
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2108 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2109 GCC=`test $ac_compiler_gnu = yes && echo yes`
2110 ac_test_CFLAGS=${CFLAGS+set}
2111 ac_save_CFLAGS=$CFLAGS
2112 CFLAGS="-g"
2113 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2115 if test "${ac_cv_prog_cc_g+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   cat >conftest.$ac_ext <<_ACEOF
2119 #line $LINENO "configure"
2120 /* confdefs.h.  */
2121 _ACEOF
2122 cat confdefs.h >>conftest.$ac_ext
2123 cat >>conftest.$ac_ext <<_ACEOF
2124 /* end confdefs.h.  */
2125
2126 int
2127 main ()
2128 {
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 rm -f conftest.$ac_objext
2135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136   (eval $ac_compile) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); } &&
2140          { ac_try='test -s conftest.$ac_objext'
2141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142   (eval $ac_try) 2>&5
2143   ac_status=$?
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); }; }; then
2146   ac_cv_prog_cc_g=yes
2147 else
2148   echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_cv_prog_cc_g=no
2152 fi
2153 rm -f conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2156 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2157 if test "$ac_test_CFLAGS" = set; then
2158   CFLAGS=$ac_save_CFLAGS
2159 elif test $ac_cv_prog_cc_g = yes; then
2160   if test "$GCC" = yes; then
2161     CFLAGS="-g -O2"
2162   else
2163     CFLAGS="-g"
2164   fi
2165 else
2166   if test "$GCC" = yes; then
2167     CFLAGS="-O2"
2168   else
2169     CFLAGS=
2170   fi
2171 fi
2172 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2173 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2174 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   ac_cv_prog_cc_stdc=no
2178 ac_save_CC=$CC
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 /* confdefs.h.  */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h.  */
2186 #include <stdarg.h>
2187 #include <stdio.h>
2188 #include <sys/types.h>
2189 #include <sys/stat.h>
2190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2191 struct buf { int x; };
2192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2193 static char *e (p, i)
2194      char **p;
2195      int i;
2196 {
2197   return p[i];
2198 }
2199 static char *f (char * (*g) (char **, int), char **p, ...)
2200 {
2201   char *s;
2202   va_list v;
2203   va_start (v,p);
2204   s = g (p, va_arg (v,int));
2205   va_end (v);
2206   return s;
2207 }
2208 int test (int i, double x);
2209 struct s1 {int (*f) (int a);};
2210 struct s2 {int (*f) (double a);};
2211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2212 int argc;
2213 char **argv;
2214 int
2215 main ()
2216 {
2217 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 # Don't try gcc -ansi; that turns off useful extensions and
2223 # breaks some systems' header files.
2224 # AIX                   -qlanglvl=ansi
2225 # Ultrix and OSF/1      -std1
2226 # HP-UX 10.20 and later -Ae
2227 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2228 # SVR4                  -Xc -D__EXTENSIONS__
2229 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2230 do
2231   CC="$ac_save_CC $ac_arg"
2232   rm -f conftest.$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234   (eval $ac_compile) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); } &&
2238          { ac_try='test -s conftest.$ac_objext'
2239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240   (eval $ac_try) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; }; then
2244   ac_cv_prog_cc_stdc=$ac_arg
2245 break
2246 else
2247   echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 fi
2251 rm -f conftest.$ac_objext
2252 done
2253 rm -f conftest.$ac_ext conftest.$ac_objext
2254 CC=$ac_save_CC
2255
2256 fi
2257
2258 case "x$ac_cv_prog_cc_stdc" in
2259   x|xno)
2260     echo "$as_me:$LINENO: result: none needed" >&5
2261 echo "${ECHO_T}none needed" >&6 ;;
2262   *)
2263     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2264 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2265     CC="$CC $ac_cv_prog_cc_stdc" ;;
2266 esac
2267
2268 # Some people use a C++ compiler to compile C.  Since we use `exit',
2269 # in C++ we need to declare it.  In case someone uses the same compiler
2270 # for both compiling C and C++ we need to have the C++ compiler decide
2271 # the declaration of exit, since it's the most demanding environment.
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #ifndef __cplusplus
2274   choke me
2275 #endif
2276 _ACEOF
2277 rm -f conftest.$ac_objext
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279   (eval $ac_compile) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   for ac_declaration in \
2290    ''\
2291    '#include <stdlib.h>' \
2292    'extern "C" void std::exit (int) throw (); using std::exit;' \
2293    'extern "C" void std::exit (int); using std::exit;' \
2294    'extern "C" void exit (int) throw ();' \
2295    'extern "C" void exit (int);' \
2296    'void exit (int);'
2297 do
2298   cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305 #include <stdlib.h>
2306 $ac_declaration
2307 int
2308 main ()
2309 {
2310 exit (42);
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317   (eval $ac_compile) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   :
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 continue
2333 fi
2334 rm -f conftest.$ac_objext conftest.$ac_ext
2335   cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342 $ac_declaration
2343 int
2344 main ()
2345 {
2346 exit (42);
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353   (eval $ac_compile) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); } &&
2357          { ac_try='test -s conftest.$ac_objext'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363   break
2364 else
2365   echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 fi
2369 rm -f conftest.$ac_objext conftest.$ac_ext
2370 done
2371 rm -f conftest*
2372 if test -n "$ac_declaration"; then
2373   echo '#ifdef __cplusplus' >>confdefs.h
2374   echo $ac_declaration      >>confdefs.h
2375   echo '#endif'             >>confdefs.h
2376 fi
2377
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 fi
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390 ac_ext=cc
2391 ac_cpp='$CXXCPP $CPPFLAGS'
2392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2395 if test -n "$ac_tool_prefix"; then
2396   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2397   do
2398     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400 echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402 if test "${ac_cv_prog_CXX+set}" = set; then
2403   echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405   if test -n "$CXX"; then
2406   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2407 else
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 for as_dir in $PATH
2410 do
2411   IFS=$as_save_IFS
2412   test -z "$as_dir" && as_dir=.
2413   for ac_exec_ext in '' $ac_executable_extensions; do
2414   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417     break 2
2418   fi
2419 done
2420 done
2421
2422 fi
2423 fi
2424 CXX=$ac_cv_prog_CXX
2425 if test -n "$CXX"; then
2426   echo "$as_me:$LINENO: result: $CXX" >&5
2427 echo "${ECHO_T}$CXX" >&6
2428 else
2429   echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2431 fi
2432
2433     test -n "$CXX" && break
2434   done
2435 fi
2436 if test -z "$CXX"; then
2437   ac_ct_CXX=$CXX
2438   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2439 do
2440   # Extract the first word of "$ac_prog", so it can be a program name with args.
2441 set dummy $ac_prog; ac_word=$2
2442 echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   if test -n "$ac_ct_CXX"; then
2448   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   for ac_exec_ext in '' $ac_executable_extensions; do
2456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457     ac_cv_prog_ac_ct_CXX="$ac_prog"
2458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459     break 2
2460   fi
2461 done
2462 done
2463
2464 fi
2465 fi
2466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2467 if test -n "$ac_ct_CXX"; then
2468   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2469 echo "${ECHO_T}$ac_ct_CXX" >&6
2470 else
2471   echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6
2473 fi
2474
2475   test -n "$ac_ct_CXX" && break
2476 done
2477 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2478
2479   CXX=$ac_ct_CXX
2480 fi
2481
2482
2483 # Provide some information about the compiler.
2484 echo "$as_me:$LINENO:" \
2485      "checking for C++ compiler version" >&5
2486 ac_compiler=`set X $ac_compile; echo $2`
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2488   (eval $ac_compiler --version </dev/null >&5) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2493   (eval $ac_compiler -v </dev/null >&5) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2498   (eval $ac_compiler -V </dev/null >&5) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }
2502
2503 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2504 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2505 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519 #ifndef __GNUC__
2520        choke me
2521 #endif
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_compiler_gnu=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_compiler_gnu=no
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2548
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2552 GXX=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CXXFLAGS=${CXXFLAGS+set}
2554 ac_save_CXXFLAGS=$CXXFLAGS
2555 CXXFLAGS="-g"
2556 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2557 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2558 if test "${ac_cv_prog_cxx_g+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579   (eval $ac_compile) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   ac_cv_prog_cxx_g=yes
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 ac_cv_prog_cxx_g=no
2595 fi
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 fi
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2600 if test "$ac_test_CXXFLAGS" = set; then
2601   CXXFLAGS=$ac_save_CXXFLAGS
2602 elif test $ac_cv_prog_cxx_g = yes; then
2603   if test "$GXX" = yes; then
2604     CXXFLAGS="-g -O2"
2605   else
2606     CXXFLAGS="-g"
2607   fi
2608 else
2609   if test "$GXX" = yes; then
2610     CXXFLAGS="-O2"
2611   else
2612     CXXFLAGS=
2613   fi
2614 fi
2615 for ac_declaration in \
2616    ''\
2617    '#include <stdlib.h>' \
2618    'extern "C" void std::exit (int) throw (); using std::exit;' \
2619    'extern "C" void std::exit (int); using std::exit;' \
2620    'extern "C" void exit (int) throw ();' \
2621    'extern "C" void exit (int);' \
2622    'void exit (int);'
2623 do
2624   cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631 #include <stdlib.h>
2632 $ac_declaration
2633 int
2634 main ()
2635 {
2636 exit (42);
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -s conftest.$ac_objext'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; }; then
2653   :
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 continue
2659 fi
2660 rm -f conftest.$ac_objext conftest.$ac_ext
2661   cat >conftest.$ac_ext <<_ACEOF
2662 #line $LINENO "configure"
2663 /* confdefs.h.  */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h.  */
2668 $ac_declaration
2669 int
2670 main ()
2671 {
2672 exit (42);
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679   (eval $ac_compile) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); } &&
2683          { ac_try='test -s conftest.$ac_objext'
2684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685   (eval $ac_try) 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; }; then
2689   break
2690 else
2691   echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 fi
2695 rm -f conftest.$ac_objext conftest.$ac_ext
2696 done
2697 rm -f conftest*
2698 if test -n "$ac_declaration"; then
2699   echo '#ifdef __cplusplus' >>confdefs.h
2700   echo $ac_declaration      >>confdefs.h
2701   echo '#endif'             >>confdefs.h
2702 fi
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710 if test "x$CC" != xcc; then
2711   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2713 else
2714   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2716 fi
2717 set dummy $CC; ac_cc=`echo $2 |
2718                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 #line $LINENO "configure"
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 # Make sure it works both with $CC and with simple cc.
2739 # We do the test twice because some compilers refuse to overwrite an
2740 # existing .o file with -o, though they will create one.
2741 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2742 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747    test -f conftest.$ac_objext && { (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); };
2752 then
2753   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2754   if test "x$CC" != xcc; then
2755     # Test first that cc exists at all.
2756     if { ac_try='cc -c conftest.$ac_ext >&5'
2757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758   (eval $ac_try) 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2763       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764   (eval $ac_try) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } &&
2768          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); };
2773       then
2774         # cc works too.
2775         :
2776       else
2777         # cc exists but doesn't like -o.
2778         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2779       fi
2780     fi
2781   fi
2782 else
2783   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2784 fi
2785 rm -f conftest*
2786
2787 fi
2788 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2789   echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2791 else
2792   echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794
2795 cat >>confdefs.h <<\_ACEOF
2796 #define NO_MINUS_C_MINUS_O 1
2797 _ACEOF
2798
2799 fi
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2810   CPP=
2811 fi
2812 if test -z "$CPP"; then
2813   if test "${ac_cv_prog_CPP+set}" = set; then
2814   echo $ECHO_N "(cached) $ECHO_C" >&6
2815 else
2816       # Double quotes because CPP needs to be expanded
2817     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818     do
2819       ac_preproc_ok=false
2820 for ac_c_preproc_warn_flag in '' yes
2821 do
2822   # Use a header file that comes with gcc, so configuring glibc
2823   # with a fresh cross-compiler works.
2824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825   # <limits.h> exists even on freestanding compilers.
2826   # On the NeXT, cc -E runs the code through the compiler's parser,
2827   # not just through cpp. "Syntax error" is here to catch this case.
2828   cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835 #ifdef __STDC__
2836 # include <limits.h>
2837 #else
2838 # include <assert.h>
2839 #endif
2840                      Syntax error
2841 _ACEOF
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } >/dev/null; then
2850   if test -s conftest.err; then
2851     ac_cpp_err=$ac_c_preproc_warn_flag
2852   else
2853     ac_cpp_err=
2854   fi
2855 else
2856   ac_cpp_err=yes
2857 fi
2858 if test -z "$ac_cpp_err"; then
2859   :
2860 else
2861   echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864   # Broken: fails on valid input.
2865 continue
2866 fi
2867 rm -f conftest.err conftest.$ac_ext
2868
2869   # OK, works on sane cases.  Now check whether non-existent headers
2870   # can be detected and how.
2871   cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878 #include <ac_nonexistent.h>
2879 _ACEOF
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } >/dev/null; then
2888   if test -s conftest.err; then
2889     ac_cpp_err=$ac_c_preproc_warn_flag
2890   else
2891     ac_cpp_err=
2892   fi
2893 else
2894   ac_cpp_err=yes
2895 fi
2896 if test -z "$ac_cpp_err"; then
2897   # Broken: success on invalid input.
2898 continue
2899 else
2900   echo "$as_me: failed program was:" >&5
2901 sed 's/^/| /' conftest.$ac_ext >&5
2902
2903   # Passes both tests.
2904 ac_preproc_ok=:
2905 break
2906 fi
2907 rm -f conftest.err conftest.$ac_ext
2908
2909 done
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2913   break
2914 fi
2915
2916     done
2917     ac_cv_prog_CPP=$CPP
2918
2919 fi
2920   CPP=$ac_cv_prog_CPP
2921 else
2922   ac_cv_prog_CPP=$CPP
2923 fi
2924 echo "$as_me:$LINENO: result: $CPP" >&5
2925 echo "${ECHO_T}$CPP" >&6
2926 ac_preproc_ok=false
2927 for ac_c_preproc_warn_flag in '' yes
2928 do
2929   # Use a header file that comes with gcc, so configuring glibc
2930   # with a fresh cross-compiler works.
2931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932   # <limits.h> exists even on freestanding compilers.
2933   # On the NeXT, cc -E runs the code through the compiler's parser,
2934   # not just through cpp. "Syntax error" is here to catch this case.
2935   cat >conftest.$ac_ext <<_ACEOF
2936 #line $LINENO "configure"
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959   else
2960     ac_cpp_err=
2961   fi
2962 else
2963   ac_cpp_err=yes
2964 fi
2965 if test -z "$ac_cpp_err"; then
2966   :
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971   # Broken: fails on valid input.
2972 continue
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976   # OK, works on sane cases.  Now check whether non-existent headers
2977   # can be detected and how.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 #line $LINENO "configure"
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997   else
2998     ac_cpp_err=
2999   fi
3000 else
3001   ac_cpp_err=yes
3002 fi
3003 if test -z "$ac_cpp_err"; then
3004   # Broken: success on invalid input.
3005 continue
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010   # Passes both tests.
3011 ac_preproc_ok=:
3012 break
3013 fi
3014 rm -f conftest.err conftest.$ac_ext
3015
3016 done
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3020   :
3021 else
3022   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&2;}
3026    { (exit 1); exit 1; }; }
3027 fi
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034
3035
3036 echo "$as_me:$LINENO: checking for egrep" >&5
3037 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3038 if test "${ac_cv_prog_egrep+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3042     then ac_cv_prog_egrep='grep -E'
3043     else ac_cv_prog_egrep='egrep'
3044     fi
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3047 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3048  EGREP=$ac_cv_prog_egrep
3049
3050
3051 if test $ac_cv_c_compiler_gnu = yes; then
3052     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3053 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3054 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057     ac_pattern="Autoconf.*'x'"
3058   cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #include <sgtty.h>
3066 Autoconf TIOCGETP
3067 _ACEOF
3068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3069   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3070   ac_cv_prog_gcc_traditional=yes
3071 else
3072   ac_cv_prog_gcc_traditional=no
3073 fi
3074 rm -f conftest*
3075
3076
3077   if test $ac_cv_prog_gcc_traditional = no; then
3078     cat >conftest.$ac_ext <<_ACEOF
3079 #line $LINENO "configure"
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085 #include <termio.h>
3086 Autoconf TCGETA
3087 _ACEOF
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3090   ac_cv_prog_gcc_traditional=yes
3091 fi
3092 rm -f conftest*
3093
3094   fi
3095 fi
3096 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3097 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3098   if test $ac_cv_prog_gcc_traditional = yes; then
3099     CC="$CC -traditional"
3100   fi
3101 fi
3102
3103 if test x$CC = xgcc
3104 then
3105    cat >>confdefs.h <<\_ACEOF
3106 #define HAVE_GCC 1
3107 _ACEOF
3108
3109 fi
3110
3111 # Find a good install program.  We prefer a C program (faster),
3112 # so one script is as good as another.  But avoid the broken or
3113 # incompatible versions:
3114 # SysV /etc/install, /usr/sbin/install
3115 # SunOS /usr/etc/install
3116 # IRIX /sbin/install
3117 # AIX /bin/install
3118 # AmigaOS /C/install, which installs bootblocks on floppy discs
3119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3122 # ./install, which can be erroneously created by make from ./install.sh.
3123 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3124 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3125 if test -z "$INSTALL"; then
3126 if test "${ac_cv_path_install+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132   IFS=$as_save_IFS
3133   test -z "$as_dir" && as_dir=.
3134   # Account for people who put trailing slashes in PATH elements.
3135 case $as_dir/ in
3136   ./ | .// | /cC/* | \
3137   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3138   /usr/ucb/* ) ;;
3139   *)
3140     # OSF1 and SCO ODT 3.0 have their own names for install.
3141     # Don't use installbsd from OSF since it installs stuff as root
3142     # by default.
3143     for ac_prog in ginstall scoinst install; do
3144       for ac_exec_ext in '' $ac_executable_extensions; do
3145         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3146           if test $ac_prog = install &&
3147             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148             # AIX install.  It has an incompatible calling convention.
3149             :
3150           elif test $ac_prog = install &&
3151             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3152             # program-specific install script used by HP pwplus--don't use.
3153             :
3154           else
3155             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3156             break 3
3157           fi
3158         fi
3159       done
3160     done
3161     ;;
3162 esac
3163 done
3164
3165
3166 fi
3167   if test "${ac_cv_path_install+set}" = set; then
3168     INSTALL=$ac_cv_path_install
3169   else
3170     # As a last resort, use the slow shell script.  We don't cache a
3171     # path for INSTALL within a source directory, because that will
3172     # break other packages using the cache if that directory is
3173     # removed, or if the path is relative.
3174     INSTALL=$ac_install_sh
3175   fi
3176 fi
3177 echo "$as_me:$LINENO: result: $INSTALL" >&5
3178 echo "${ECHO_T}$INSTALL" >&6
3179
3180 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3181 # It thinks the first close brace ends the variable substitution.
3182 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3183
3184 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3185
3186 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3187
3188 if test -n "$ac_tool_prefix"; then
3189   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3190 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_RANLIB+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$RANLIB"; then
3197   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212
3213 fi
3214 fi
3215 RANLIB=$ac_cv_prog_RANLIB
3216 if test -n "$RANLIB"; then
3217   echo "$as_me:$LINENO: result: $RANLIB" >&5
3218 echo "${ECHO_T}$RANLIB" >&6
3219 else
3220   echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3222 fi
3223
3224 fi
3225 if test -z "$ac_cv_prog_RANLIB"; then
3226   ac_ct_RANLIB=$RANLIB
3227   # Extract the first word of "ranlib", so it can be a program name with args.
3228 set dummy ranlib; ac_word=$2
3229 echo "$as_me:$LINENO: checking for $ac_word" >&5
3230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   if test -n "$ac_ct_RANLIB"; then
3235   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242   for ac_exec_ext in '' $ac_executable_extensions; do
3243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_prog_ac_ct_RANLIB="ranlib"
3245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249 done
3250
3251   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3252 fi
3253 fi
3254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3255 if test -n "$ac_ct_RANLIB"; then
3256   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3257 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3258 else
3259   echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6
3261 fi
3262
3263   RANLIB=$ac_ct_RANLIB
3264 else
3265   RANLIB="$ac_cv_prog_RANLIB"
3266 fi
3267
3268 # Extract the first word of "mv", so it can be a program name with args.
3269 set dummy mv; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_MV+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   case $MV in
3276   [\\/]* | ?:[\\/]*)
3277   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3278   ;;
3279   *)
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_exec_ext in '' $ac_executable_extensions; do
3286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292 done
3293
3294   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3295   ;;
3296 esac
3297 fi
3298 MV=$ac_cv_path_MV
3299
3300 if test -n "$MV"; then
3301   echo "$as_me:$LINENO: result: $MV" >&5
3302 echo "${ECHO_T}$MV" >&6
3303 else
3304   echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 # Extract the first word of "rm", so it can be a program name with args.
3309 set dummy rm; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_RM+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   case $RM in
3316   [\\/]* | ?:[\\/]*)
3317   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3318   ;;
3319   *)
3320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333
3334   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3335   ;;
3336 esac
3337 fi
3338 RM=$ac_cv_path_RM
3339
3340 if test -n "$RM"; then
3341   echo "$as_me:$LINENO: result: $RM" >&5
3342 echo "${ECHO_T}$RM" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 # Extract the first word of "cp", so it can be a program name with args.
3349 set dummy cp; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_CP+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   case $CP in
3356   [\\/]* | ?:[\\/]*)
3357   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3358   ;;
3359   *)
3360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3375   ;;
3376 esac
3377 fi
3378 CP=$ac_cv_path_CP
3379
3380 if test -n "$CP"; then
3381   echo "$as_me:$LINENO: result: $CP" >&5
3382 echo "${ECHO_T}$CP" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 # Extract the first word of "sed", so it can be a program name with args.
3389 set dummy sed; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_SED+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   case $SED in
3396   [\\/]* | ?:[\\/]*)
3397   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3398   ;;
3399   *)
3400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405   for ac_exec_ext in '' $ac_executable_extensions; do
3406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412 done
3413
3414   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3415   ;;
3416 esac
3417 fi
3418 SED=$ac_cv_path_SED
3419
3420 if test -n "$SED"; then
3421   echo "$as_me:$LINENO: result: $SED" >&5
3422 echo "${ECHO_T}$SED" >&6
3423 else
3424   echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3426 fi
3427
3428 # Extract the first word of "awk", so it can be a program name with args.
3429 set dummy awk; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_AWK+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   case $AWK in
3436   [\\/]* | ?:[\\/]*)
3437   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3438   ;;
3439   *)
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_exec_ext in '' $ac_executable_extensions; do
3446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452 done
3453
3454   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3455   ;;
3456 esac
3457 fi
3458 AWK=$ac_cv_path_AWK
3459
3460 if test -n "$AWK"; then
3461   echo "$as_me:$LINENO: result: $AWK" >&5
3462 echo "${ECHO_T}$AWK" >&6
3463 else
3464   echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468 # Extract the first word of "echo", so it can be a program name with args.
3469 set dummy echo; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_ECHO+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   case $ECHO in
3476   [\\/]* | ?:[\\/]*)
3477   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3478   ;;
3479   *)
3480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485   for ac_exec_ext in '' $ac_executable_extensions; do
3486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492 done
3493
3494   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3495   ;;
3496 esac
3497 fi
3498 ECHO=$ac_cv_path_ECHO
3499
3500 if test -n "$ECHO"; then
3501   echo "$as_me:$LINENO: result: $ECHO" >&5
3502 echo "${ECHO_T}$ECHO" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508 # Extract the first word of "cmp", so it can be a program name with args.
3509 set dummy cmp; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_CMP+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   case $CMP in
3516   [\\/]* | ?:[\\/]*)
3517   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3518   ;;
3519   *)
3520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525   for ac_exec_ext in '' $ac_executable_extensions; do
3526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532 done
3533
3534   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3535   ;;
3536 esac
3537 fi
3538 CMP=$ac_cv_path_CMP
3539
3540 if test -n "$CMP"; then
3541   echo "$as_me:$LINENO: result: $CMP" >&5
3542 echo "${ECHO_T}$CMP" >&6
3543 else
3544   echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548 # Extract the first word of "tbl", so it can be a program name with args.
3549 set dummy tbl; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_TBL+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   case $TBL in
3556   [\\/]* | ?:[\\/]*)
3557   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3558   ;;
3559   *)
3560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572 done
3573
3574   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3575   ;;
3576 esac
3577 fi
3578 TBL=$ac_cv_path_TBL
3579
3580 if test -n "$TBL"; then
3581   echo "$as_me:$LINENO: result: $TBL" >&5
3582 echo "${ECHO_T}$TBL" >&6
3583 else
3584   echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586 fi
3587
3588 # Extract the first word of "ar", so it can be a program name with args.
3589 set dummy ar; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_AR+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   case $AR in
3596   [\\/]* | ?:[\\/]*)
3597   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3598   ;;
3599   *)
3600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605   for ac_exec_ext in '' $ac_executable_extensions; do
3606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612 done
3613
3614   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3615   ;;
3616 esac
3617 fi
3618 AR=$ac_cv_path_AR
3619
3620 if test -n "$AR"; then
3621   echo "$as_me:$LINENO: result: $AR" >&5
3622 echo "${ECHO_T}$AR" >&6
3623 else
3624   echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3626 fi
3627
3628 # Extract the first word of "ranlib", so it can be a program name with args.
3629 set dummy ranlib; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_RANLIB+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   case $RANLIB in
3636   [\\/]* | ?:[\\/]*)
3637   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3638   ;;
3639   *)
3640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645   for ac_exec_ext in '' $ac_executable_extensions; do
3646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649     break 2
3650   fi
3651 done
3652 done
3653
3654   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3655   ;;
3656 esac
3657 fi
3658 RANLIB=$ac_cv_path_RANLIB
3659
3660 if test -n "$RANLIB"; then
3661   echo "$as_me:$LINENO: result: $RANLIB" >&5
3662 echo "${ECHO_T}$RANLIB" >&6
3663 else
3664   echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666 fi
3667
3668 # Extract the first word of "openssl", so it can be a program name with args.
3669 set dummy openssl; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_OPENSSL+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   case $OPENSSL in
3676   [\\/]* | ?:[\\/]*)
3677   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3678   ;;
3679   *)
3680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3695   ;;
3696 esac
3697 fi
3698 OPENSSL=$ac_cv_path_OPENSSL
3699
3700 if test -n "$OPENSSL"; then
3701   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3702 echo "${ECHO_T}$OPENSSL" >&6
3703 else
3704   echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3706 fi
3707
3708 # Extract the first word of "mtx", so it can be a program name with args.
3709 set dummy mtx; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_MTX+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   case $MTX in
3716   [\\/]* | ?:[\\/]*)
3717   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3718   ;;
3719   *)
3720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732 done
3733
3734   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3735   ;;
3736 esac
3737 fi
3738 MTX=$ac_cv_path_MTX
3739
3740 if test -n "$MTX"; then
3741   echo "$as_me:$LINENO: result: $MTX" >&5
3742 echo "${ECHO_T}$MTX" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748 # Extract the first word of "pkg-config", so it can be a program name with args.
3749 set dummy pkg-config; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   case $PKGCONFIG in
3756   [\\/]* | ?:[\\/]*)
3757   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3758   ;;
3759   *)
3760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for ac_exec_ext in '' $ac_executable_extensions; do
3766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769     break 2
3770   fi
3771 done
3772 done
3773
3774   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3775   ;;
3776 esac
3777 fi
3778 PKGCONFIG=$ac_cv_path_PKGCONFIG
3779
3780 if test -n "$PKGCONFIG"; then
3781   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3782 echo "${ECHO_T}$PKGCONFIG" >&6
3783 else
3784   echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 fi
3787
3788
3789 test -n "$ARFLAG" || ARFLAGS="cr"
3790
3791
3792 MAKE_SHELL=/bin/sh
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802 echo "$as_me:$LINENO: checking for Operating System" >&5
3803 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3804
3805 case $host_os in
3806   *cygwin* ) CYGWIN=yes;;
3807          * ) CYGWIN=no;;
3808 esac
3809
3810 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3811 then
3812
3813
3814 if $TRUEPRG; then
3815   HAVE_SUN_OS_TRUE=
3816   HAVE_SUN_OS_FALSE='#'
3817 else
3818   HAVE_SUN_OS_TRUE='#'
3819   HAVE_SUN_OS_FALSE=
3820 fi
3821         cat >>confdefs.h <<\_ACEOF
3822 #define HAVE_SUN_OS 1
3823 _ACEOF
3824
3825 else
3826
3827
3828 if $FALSEPRG; then
3829   HAVE_SUN_OS_TRUE=
3830   HAVE_SUN_OS_FALSE='#'
3831 else
3832   HAVE_SUN_OS_TRUE='#'
3833   HAVE_SUN_OS_FALSE=
3834 fi
3835 fi
3836
3837 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3838 then
3839
3840
3841 if $TRUEPRG; then
3842   HAVE_OSF1_OS_TRUE=
3843   HAVE_OSF1_OS_FALSE='#'
3844 else
3845   HAVE_OSF1_OS_TRUE='#'
3846   HAVE_OSF1_OS_FALSE=
3847 fi
3848         cat >>confdefs.h <<\_ACEOF
3849 #define HAVE_OSF1_OS 1
3850 _ACEOF
3851
3852 else
3853
3854
3855 if $FALSEPRG; then
3856   HAVE_OSF1_OS_TRUE=
3857   HAVE_OSF1_OS_FALSE='#'
3858 else
3859   HAVE_OSF1_OS_TRUE='#'
3860   HAVE_OSF1_OS_FALSE=
3861 fi
3862 fi
3863
3864 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3865 then
3866
3867
3868 if $TRUEPRG; then
3869   HAVE_AIX_OS_TRUE=
3870   HAVE_AIX_OS_FALSE='#'
3871 else
3872   HAVE_AIX_OS_TRUE='#'
3873   HAVE_AIX_OS_FALSE=
3874 fi
3875         cat >>confdefs.h <<\_ACEOF
3876 #define HAVE_AIX_OS 1
3877 _ACEOF
3878
3879 else
3880
3881
3882 if $FALSEPRG; then
3883   HAVE_AIX_OS_TRUE=
3884   HAVE_AIX_OS_FALSE='#'
3885 else
3886   HAVE_AIX_OS_TRUE='#'
3887   HAVE_AIX_OS_FALSE=
3888 fi
3889 fi
3890
3891 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3892 then
3893
3894
3895 if $TRUEPRG; then
3896   HAVE_HPUX_OS_TRUE=
3897   HAVE_HPUX_OS_FALSE='#'
3898 else
3899   HAVE_HPUX_OS_TRUE='#'
3900   HAVE_HPUX_OS_FALSE=
3901 fi
3902         cat >>confdefs.h <<\_ACEOF
3903 #define HAVE_HPUX_OS 1
3904 _ACEOF
3905
3906 else
3907
3908
3909 if $FALSEPRG; then
3910   HAVE_HPUX_OS_TRUE=
3911   HAVE_HPUX_OS_FALSE='#'
3912 else
3913   HAVE_HPUX_OS_TRUE='#'
3914   HAVE_HPUX_OS_FALSE=
3915 fi
3916 fi
3917
3918 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3919 then
3920
3921
3922 if $TRUEPRG; then
3923   HAVE_LINUX_OS_TRUE=
3924   HAVE_LINUX_OS_FALSE='#'
3925 else
3926   HAVE_LINUX_OS_TRUE='#'
3927   HAVE_LINUX_OS_FALSE=
3928 fi
3929         cat >>confdefs.h <<\_ACEOF
3930 #define HAVE_LINUX_OS 1
3931 _ACEOF
3932
3933 else
3934
3935
3936 if $FALSEPRG; then
3937   HAVE_LINUX_OS_TRUE=
3938   HAVE_LINUX_OS_FALSE='#'
3939 else
3940   HAVE_LINUX_OS_TRUE='#'
3941   HAVE_LINUX_OS_FALSE=
3942 fi
3943 fi
3944
3945 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3946 then
3947
3948
3949 if $TRUEPRG; then
3950   HAVE_FREEBSD_OS_TRUE=
3951   HAVE_FREEBSD_OS_FALSE='#'
3952 else
3953   HAVE_FREEBSD_OS_TRUE='#'
3954   HAVE_FREEBSD_OS_FALSE=
3955 fi
3956         cat >>confdefs.h <<\_ACEOF
3957 #define HAVE_FREEBSD_OS 1
3958 _ACEOF
3959
3960 else
3961
3962
3963 if $FALSEPRG; then
3964   HAVE_FREEBSD_OS_TRUE=
3965   HAVE_FREEBSD_OS_FALSE='#'
3966 else
3967   HAVE_FREEBSD_OS_TRUE='#'
3968   HAVE_FREEBSD_OS_FALSE=
3969 fi
3970 fi
3971
3972 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3973 then
3974
3975
3976 if $TRUEPRG; then
3977   HAVE_NETBSD_OS_TRUE=
3978   HAVE_NETBSD_OS_FALSE='#'
3979 else
3980   HAVE_NETBSD_OS_TRUE='#'
3981   HAVE_NETBSD_OS_FALSE=
3982 fi
3983         cat >>confdefs.h <<\_ACEOF
3984 #define HAVE_NETBSD_OS 1
3985 _ACEOF
3986
3987 else
3988
3989
3990 if $FALSEPRG; then
3991   HAVE_NETBSD_OS_TRUE=
3992   HAVE_NETBSD_OS_FALSE='#'
3993 else
3994   HAVE_NETBSD_OS_TRUE='#'
3995   HAVE_NETBSD_OS_FALSE=
3996 fi
3997 fi
3998
3999 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4000 then
4001
4002
4003 if $TRUEPRG; then
4004   HAVE_OPENBSD_OS_TRUE=
4005   HAVE_OPENBSD_OS_FALSE='#'
4006 else
4007   HAVE_OPENBSD_OS_TRUE='#'
4008   HAVE_OPENBSD_OS_FALSE=
4009 fi
4010         cat >>confdefs.h <<\_ACEOF
4011 #define HAVE_OPENBSD_OS 1
4012 _ACEOF
4013
4014 else
4015
4016
4017 if $FALSEPRG; then
4018   HAVE_OPENBSD_OS_TRUE=
4019   HAVE_OPENBSD_OS_FALSE='#'
4020 else
4021   HAVE_OPENBSD_OS_TRUE='#'
4022   HAVE_OPENBSD_OS_FALSE=
4023 fi
4024 fi
4025
4026 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4027 then
4028
4029
4030 if $TRUEPRG; then
4031   HAVE_BSDI_OS_TRUE=
4032   HAVE_BSDI_OS_FALSE='#'
4033 else
4034   HAVE_BSDI_OS_TRUE='#'
4035   HAVE_BSDI_OS_FALSE=
4036 fi
4037         cat >>confdefs.h <<\_ACEOF
4038 #define HAVE_BSDI_OS 1
4039 _ACEOF
4040
4041 else
4042
4043
4044 if $FALSEPRG; then
4045   HAVE_BSDI_OS_TRUE=
4046   HAVE_BSDI_OS_FALSE='#'
4047 else
4048   HAVE_BSDI_OS_TRUE='#'
4049   HAVE_BSDI_OS_FALSE=
4050 fi
4051 fi
4052
4053 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4054 then
4055
4056
4057 if $TRUEPRG; then
4058   HAVE_SGI_OS_TRUE=
4059   HAVE_SGI_OS_FALSE='#'
4060 else
4061   HAVE_SGI_OS_TRUE='#'
4062   HAVE_SGI_OS_FALSE=
4063 fi
4064         cat >>confdefs.h <<\_ACEOF
4065 #define HAVE_SGI_OS 1
4066 _ACEOF
4067
4068 else
4069
4070
4071 if $FALSEPRG; then
4072   HAVE_SGI_OS_TRUE=
4073   HAVE_SGI_OS_FALSE='#'
4074 else
4075   HAVE_SGI_OS_TRUE='#'
4076   HAVE_SGI_OS_FALSE=
4077 fi
4078 fi
4079
4080 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4081 then
4082
4083
4084 if $TRUEPRG; then
4085   HAVE_IRIX_OS_TRUE=
4086   HAVE_IRIX_OS_FALSE='#'
4087 else
4088   HAVE_IRIX_OS_TRUE='#'
4089   HAVE_IRIX_OS_FALSE=
4090 fi
4091         cat >>confdefs.h <<\_ACEOF
4092 #define HAVE_IRIX_OS 1
4093 _ACEOF
4094
4095 else
4096
4097
4098 if $FALSEPRG; then
4099   HAVE_IRIX_OS_TRUE=
4100   HAVE_IRIX_OS_FALSE='#'
4101 else
4102   HAVE_IRIX_OS_TRUE='#'
4103   HAVE_IRIX_OS_FALSE=
4104 fi
4105 fi
4106
4107 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4108 then
4109
4110
4111 if $TRUEPRG; then
4112   HAVE_DARWIN_OS_TRUE=
4113   HAVE_DARWIN_OS_FALSE='#'
4114 else
4115   HAVE_DARWIN_OS_TRUE='#'
4116   HAVE_DARWIN_OS_FALSE=
4117 fi
4118     cat >>confdefs.h <<\_ACEOF
4119 #define HAVE_DARWIN_OS 1
4120 _ACEOF
4121
4122 else
4123
4124
4125 if $FALSEPRG; then
4126   HAVE_DARWIN_OS_TRUE=
4127   HAVE_DARWIN_OS_FALSE='#'
4128 else
4129   HAVE_DARWIN_OS_TRUE='#'
4130   HAVE_DARWIN_OS_FALSE=
4131 fi
4132 fi
4133
4134 echo "$as_me:$LINENO: result: \" \"" >&5
4135 echo "${ECHO_T}\" \"" >&6
4136
4137
4138 # -----------------------------------------------------------
4139 # ----------------------------------------------------------
4140 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4141 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4142 if test "x$DISTNAME" != "x"
4143 then
4144         echo "distname set to $DISTNAME"
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4146 then
4147         DISTNAME=alpha
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4149 then
4150         DISTNAME=aix
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4152 then
4153         DISTNAME=hpux
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4155 then
4156         DISTNAME=solaris
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4158 then
4159         DISTNAME=freebsd
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4161 then
4162         DISTNAME=netbsd
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4164 then
4165         DISTNAME=openbsd
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4167 then
4168         DISTNAME=irix
4169 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4170 then
4171         DISTNAME=bsdi
4172 elif test -f /etc/SuSE-release
4173 then
4174         DISTNAME=suse
4175 elif test -d /etc/SuSEconfig
4176 then
4177         DISTNAME=suse5
4178 elif test -f /etc/mandrake-release
4179 then
4180         DISTNAME=mandrake
4181 elif test -f /etc/redhat-release
4182 then
4183         DISTNAME=redhat
4184 elif test -f /etc/gentoo-release
4185 then
4186         DISTNAME=gentoo
4187 elif test -f /etc/debian_version
4188 then
4189         DISTNAME=debian
4190 elif test -f /etc/slackware-version
4191 then
4192         DISTNAME=slackware
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4194 then
4195     DISTNAME=darwin
4196 elif test -f /etc/engarde-version
4197 then
4198         DISTNAME=engarde
4199 elif test "$CYGWIN" = yes
4200 then
4201         DISTNAME=cygwin
4202         cat >>confdefs.h <<\_ACEOF
4203 #define HAVE_CYGWIN 1
4204 _ACEOF
4205
4206 else
4207         DISTNAME=unknown
4208 fi
4209 echo "$as_me:$LINENO: result: \" \"" >&5
4210 echo "${ECHO_T}\" \"" >&6
4211
4212
4213 # -----------------------------------------------------------
4214 # ----------------------------------------------------------
4215
4216
4217
4218 if false; then
4219   INSIDE_GNOME_COMMON_TRUE=
4220   INSIDE_GNOME_COMMON_FALSE='#'
4221 else
4222   INSIDE_GNOME_COMMON_TRUE='#'
4223   INSIDE_GNOME_COMMON_FALSE=
4224 fi
4225
4226         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4227
4228         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4229
4230
4231 # ------------------------------------------------------------------
4232 #  If the user has not set --prefix, we set our default to nothing.
4233 #  In this case, if the user has not set --sysconfdir, we set it
4234 #  to the package default of /etc/bacula.  If either --prefix or
4235 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4236 # ------------------------------------------------------------------
4237 if test x${prefix} = xNONE ; then
4238     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4239         sysconfdir=/etc/bacula
4240     fi
4241     prefix=
4242 fi
4243 sysconfdir=`eval echo ${sysconfdir}`
4244
4245 # -------------------------------------------------------------------------
4246 #  If the user has not set --exec-prefix, we default to ${prefix}
4247 # -------------------------------------------------------------------------
4248 if test x${exec_prefix} = xNONE ; then
4249     exec_prefix=${prefix}
4250 fi
4251
4252 # ------------------------------------------------------------------
4253 # If the user has not set --sbindir, we set our default as /sbin
4254 # ------------------------------------------------------------------
4255 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4256     sbindir=${exec_prefix}/sbin
4257 fi
4258 sbindir=`eval echo ${sbindir}`
4259
4260 # ------------------------------------------------------------------
4261 # All list of languages for which a translation exist. Each
4262 #  language is separated by a space.
4263 # ------------------------------------------------------------------
4264 ALL_LINGUAS=""
4265
4266 for ac_prog in msgfmt
4267 do
4268   # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_path_MSGFMT+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   case $MSGFMT in
4276   [\\/]* | ?:[\\/]*)
4277   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4278   ;;
4279   *)
4280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_exec_ext in '' $ac_executable_extensions; do
4286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292 done
4293
4294   ;;
4295 esac
4296 fi
4297 MSGFMT=$ac_cv_path_MSGFMT
4298
4299 if test -n "$MSGFMT"; then
4300   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4301 echo "${ECHO_T}$MSGFMT" >&6
4302 else
4303   echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4305 fi
4306
4307   test -n "$MSGFMT" && break
4308 done
4309 test -n "$MSGFMT" || MSGFMT="no"
4310
4311 if test "$MSGFMT" = "no"
4312 then
4313    echo 'msgfmt program not found, disabling NLS !'
4314    USE_NLS=no
4315    USE_INCLUDED_LIBINTL=no
4316 #else
4317 #   AM_GNU_GETTEXT
4318 fi
4319
4320
4321 support_mysql=no
4322 support_sqlite=no
4323 support_postgresql=no
4324 support_smartalloc=yes
4325 support_readline=no
4326 support_conio=yes
4327 support_gnome=no
4328 gnome_version=
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4335 cats=
4336 db_name=Internal
4337 DB_NAME=bdb
4338
4339
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345   enableval="$enable_gnome"
4346   if test x$enableval = xyes; then
4347     support_gnome=yes
4348   fi
4349 fi;
4350
4351 GNOME_DIR=
4352 if test x$support_gnome = xyes; then
4353   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354   pkg=$?
4355   if test $pkg = 0; then
4356      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4357      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4358      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4359      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4360
4361
4362
4363
4364      GNOME_DIR=src/gnome2-console
4365      gnome_version="Version 2.x"
4366   else
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380   withval="$with_gnome_includes"
4381
4382         CFLAGS="$CFLAGS -I$withval"
4383
4384 fi;
4385
4386
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389   withval="$with_gnome_libs"
4390
4391         LDFLAGS="$LDFLAGS -L$withval"
4392         gnome_prefix=$withval
4393
4394 fi;
4395
4396
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399   withval="$with_gnome"
4400   if test x$withval = xyes; then
4401                         want_gnome=yes
4402                                                                         :
4403                 else
4404                         if test "x$withval" = xno; then
4405                                 want_gnome=no
4406                         else
4407                                 want_gnome=yes
4408                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4409                                 CFLAGS="$CFLAGS -I$withval/include"
4410                                 gnome_prefix=$withval/lib
4411                         fi
4412                 fi
4413 else
4414   want_gnome=yes
4415 fi;
4416
4417         if test "x$want_gnome" = xyes; then
4418
4419             # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $GNOME_CONFIG in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446   ;;
4447 esac
4448 fi
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450
4451 if test -n "$GNOME_CONFIG"; then
4452   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459             if test "$GNOME_CONFIG" = "no"; then
4460               no_gnome_config="yes"
4461             else
4462               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465                 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467
4468
4469         # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ORBIT_CONFIG in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496   ;;
4497 esac
4498 fi
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500
4501 if test -n "$ORBIT_CONFIG"; then
4502   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509         # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_IDL in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540
4541 if test -n "$ORBIT_IDL"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554
4555                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556                         gnome_cv_orbit_found=no
4557                 else
4558                         gnome_cv_orbit_found=yes
4559                 fi
4560
4561 fi
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564
4565
4566 if test x$gnome_cv_orbit_found = xyes; then
4567   HAVE_ORBIT_TRUE=
4568   HAVE_ORBIT_FALSE='#'
4569 else
4570   HAVE_ORBIT_TRUE='#'
4571   HAVE_ORBIT_FALSE=
4572 fi
4573         if test x$gnome_cv_orbit_found = xyes; then
4574
4575                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577
4578
4579         else
4580                 if test xfail = xfailure; then
4581                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583    { (exit 1); exit 1; }; }
4584                 fi
4585         fi
4586
4587         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592
4593                 gnome_cv_gnorba_found=no
4594                 if test x$gnome_cv_orbit_found = xyes; then
4595                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597                         if test -n "$GNORBA_LIBS"; then
4598                                 gnome_cv_gnorba_found=yes
4599                         fi
4600                 fi
4601
4602 fi
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605
4606
4607 if test x$gnome_cv_gnorba_found = xyes; then
4608   HAVE_GNORBA_TRUE=
4609   HAVE_GNORBA_FALSE='#'
4610 else
4611   HAVE_GNORBA_TRUE='#'
4612   HAVE_GNORBA_FALSE=
4613 fi
4614         if test x$gnome_cv_orbit_found = xyes; then
4615
4616                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618
4619
4620         else
4621                 if test xfail = xfailure; then
4622                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624    { (exit 1); exit 1; }; }
4625                 fi
4626         fi
4627
4628                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635
4636               else
4637                 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639                 no_gnome_config="yes"
4640               fi
4641             fi
4642
4643             if test x$exec_prefix = xNONE; then
4644                 if test x$prefix = xNONE; then
4645                     gnome_prefix=$ac_default_prefix/lib
4646                 else
4647                     gnome_prefix=$prefix/lib
4648                 fi
4649             else
4650                 gnome_prefix=`eval echo \`echo $libdir\``
4651             fi
4652
4653             if test "$no_gnome_config" = "yes"; then
4654               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656               if test -f $gnome_prefix/gnomeConf.sh; then
4657                 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659                 echo "loading gnome configuration from" \
4660                      "$gnome_prefix/gnomeConf.sh"
4661                 . $gnome_prefix/gnomeConf.sh
4662
4663               else
4664                 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666                 if test xfail = xfail; then
4667                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669    { (exit 1); exit 1; }; }
4670                 fi
4671               fi
4672             fi
4673         fi
4674
4675         if test -n ""; then
4676           n=""
4677           for i in $n; do
4678             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680             case $i in
4681               applets)
4682
4683                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686               docklets)
4687
4688                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691               capplet)
4692
4693                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696               *)
4697                 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4699             esac
4700             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4702           done
4703         fi
4704
4705
4706      GNOME_DIR=src/gnome-console
4707      gnome_version="Version 1.4"
4708   fi
4709 fi
4710
4711
4712
4713 # -------------------------------------------
4714 # smartalloc (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4717 if test "${enable_smartalloc+set}" = set; then
4718   enableval="$enable_smartalloc"
4719   if test x$enableval = xno; then
4720     support_smartalloc=no
4721   fi
4722 fi;
4723
4724 if test x$support_smartalloc = xyes; then
4725    cat >>confdefs.h <<\_ACEOF
4726 #define SMARTALLOC 1
4727 _ACEOF
4728
4729 fi
4730
4731 # -------------------------------------------
4732 # static-tools (default off)
4733 # -------------------------------------------
4734 # Check whether --enable-static-tools or --disable-static-tools was given.
4735 if test "${enable_static_tools+set}" = set; then
4736   enableval="$enable_static_tools"
4737   if test x$enableval = xyes; then
4738      support_static_tools=yes
4739    fi
4740 fi;
4741
4742 TTOOL_LDFLAGS=
4743 if test x$support_static_tools = xyes; then
4744    TTOOL_LDFLAGS="-static"
4745 fi
4746
4747
4748 # -------------------------------------------
4749 # static-fd    (default off)
4750 # -------------------------------------------
4751 # Check whether --enable-static-fd or --disable-static-fd was given.
4752 if test "${enable_static_fd+set}" = set; then
4753   enableval="$enable_static_fd"
4754   if test x$enableval = xyes; then
4755      support_static_fd=yes
4756    fi
4757 fi;
4758
4759 STATIC_FD=
4760 if test x$support_static_fd = xyes; then
4761    STATIC_FD="static-bacula-fd"
4762 fi
4763
4764
4765 # -------------------------------------------
4766 # static-sd    (default off)
4767 # -------------------------------------------
4768 # Check whether --enable-static-sd or --disable-static-sd was given.
4769 if test "${enable_static_sd+set}" = set; then
4770   enableval="$enable_static_sd"
4771   if test x$enableval = xyes; then
4772      support_static_sd=yes
4773    fi
4774 fi;
4775
4776 STATIC_SD=
4777 if test x$support_static_sd = xyes; then
4778    STATIC_SD="static-bacula-sd"
4779 fi
4780
4781
4782 # -------------------------------------------
4783 # static-dir   (default off)
4784 # -------------------------------------------
4785 # Check whether --enable-static-dir or --disable-static-dir was given.
4786 if test "${enable_static_dir+set}" = set; then
4787   enableval="$enable_static_dir"
4788   if test x$enableval = xyes; then
4789      support_static_dir=yes
4790    fi
4791 fi;
4792
4793 STATIC_DIR=
4794 if test x$support_static_dir = xyes; then
4795    STATIC_DIR="static-bacula-dir"
4796 fi
4797
4798
4799 # -------------------------------------------
4800 # static-cons  (default off)
4801 # -------------------------------------------
4802 # Check whether --enable-static-cons or --disable-static-cons was given.
4803 if test "${enable_static_cons+set}" = set; then
4804   enableval="$enable_static_cons"
4805   if test x$enableval = xyes; then
4806      support_static_cons=yes
4807    fi
4808 fi;
4809
4810 STATIC_CONS=
4811 STATIC_GNOME_CONS=
4812 if test x$support_static_cons = xyes; then
4813    STATIC_CONS="static-bconsole"
4814    STATIC_GNOME_CONS="static-gnome-console"
4815 fi
4816
4817
4818
4819 # -------------------------------------------
4820 # client_only  (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-client-only or --disable-client-only was given.
4823 if test "${enable_client_only+set}" = set; then
4824   enableval="$enable_client_only"
4825   if test x$enableval = xyes; then
4826      build_client_only=yes
4827    fi
4828 fi;
4829 if test x$build_client_only = xno; then
4830    ALL_DIRS="subdirs"
4831 else
4832    ALL_DIRS=""
4833 fi
4834
4835
4836 # ---------------------------------------------------
4837 # Check for conio (Bacula readline substitute)(
4838 # ---------------------------------------------------
4839 # this allows you to turn it completely off
4840 # Check whether --enable-conio or --disable-conio was given.
4841 if test "${enable_conio+set}" = set; then
4842   enableval="$enable_conio"
4843   if test x$enableval = xno; then
4844     support_conio=no
4845   fi
4846 fi;
4847
4848 got_conio="no"
4849 if test x$support_conio = xyes; then
4850    CONS_OBJ="conio.o"
4851    CONS_SRC="conio.c"
4852    got_conio="yes"
4853    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4854 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4855 if test "${ac_cv_header_stdc+set}" = set; then
4856   echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858   cat >conftest.$ac_ext <<_ACEOF
4859 #line $LINENO "configure"
4860 /* confdefs.h.  */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h.  */
4865 #include <stdlib.h>
4866 #include <stdarg.h>
4867 #include <string.h>
4868 #include <float.h>
4869
4870 int
4871 main ()
4872 {
4873
4874   ;
4875   return 0;
4876 }
4877 _ACEOF
4878 rm -f conftest.$ac_objext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880   (eval $ac_compile) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } &&
4884          { ac_try='test -s conftest.$ac_objext'
4885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886   (eval $ac_try) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }; }; then
4890   ac_cv_header_stdc=yes
4891 else
4892   echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895 ac_cv_header_stdc=no
4896 fi
4897 rm -f conftest.$ac_objext conftest.$ac_ext
4898
4899 if test $ac_cv_header_stdc = yes; then
4900   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4901   cat >conftest.$ac_ext <<_ACEOF
4902 #line $LINENO "configure"
4903 /* confdefs.h.  */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h.  */
4908 #include <string.h>
4909
4910 _ACEOF
4911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4912   $EGREP "memchr" >/dev/null 2>&1; then
4913   :
4914 else
4915   ac_cv_header_stdc=no
4916 fi
4917 rm -f conftest*
4918
4919 fi
4920
4921 if test $ac_cv_header_stdc = yes; then
4922   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4923   cat >conftest.$ac_ext <<_ACEOF
4924 #line $LINENO "configure"
4925 /* confdefs.h.  */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h.  */
4930 #include <stdlib.h>
4931
4932 _ACEOF
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934   $EGREP "free" >/dev/null 2>&1; then
4935   :
4936 else
4937   ac_cv_header_stdc=no
4938 fi
4939 rm -f conftest*
4940
4941 fi
4942
4943 if test $ac_cv_header_stdc = yes; then
4944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4945   if test "$cross_compiling" = yes; then
4946   :
4947 else
4948   cat >conftest.$ac_ext <<_ACEOF
4949 #line $LINENO "configure"
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #include <ctype.h>
4956 #if ((' ' & 0x0FF) == 0x020)
4957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4959 #else
4960 # define ISLOWER(c) \
4961                    (('a' <= (c) && (c) <= 'i') \
4962                      || ('j' <= (c) && (c) <= 'r') \
4963                      || ('s' <= (c) && (c) <= 'z'))
4964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4965 #endif
4966
4967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4968 int
4969 main ()
4970 {
4971   int i;
4972   for (i = 0; i < 256; i++)
4973     if (XOR (islower (i), ISLOWER (i))
4974         || toupper (i) != TOUPPER (i))
4975       exit(2);
4976   exit (0);
4977 }
4978 _ACEOF
4979 rm -f conftest$ac_exeext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4981   (eval $ac_link) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; }; then
4990   :
4991 else
4992   echo "$as_me: program exited with status $ac_status" >&5
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996 ( exit $ac_status )
4997 ac_cv_header_stdc=no
4998 fi
4999 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 fi
5002 fi
5003 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5004 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5005 if test $ac_cv_header_stdc = yes; then
5006
5007 cat >>confdefs.h <<\_ACEOF
5008 #define STDC_HEADERS 1
5009 _ACEOF
5010
5011 fi
5012
5013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5024                   inttypes.h stdint.h unistd.h
5025 do
5026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5027 echo "$as_me:$LINENO: checking for $ac_header" >&5
5028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 $ac_includes_default
5040
5041 #include <$ac_header>
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045   (eval $ac_compile) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } &&
5049          { ac_try='test -s conftest.$ac_objext'
5050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051   (eval $ac_try) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; }; then
5055   eval "$as_ac_Header=yes"
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 eval "$as_ac_Header=no"
5061 fi
5062 rm -f conftest.$ac_objext conftest.$ac_ext
5063 fi
5064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5067   cat >>confdefs.h <<_ACEOF
5068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5069 _ACEOF
5070
5071 fi
5072
5073 done
5074
5075
5076
5077 for ac_header in termcap.h
5078 do
5079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081   echo "$as_me:$LINENO: checking for $ac_header" >&5
5082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 fi
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5088 else
5089   # Is the header compilable?
5090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 $ac_includes_default
5100 #include <$ac_header>
5101 _ACEOF
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104   (eval $ac_compile) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } &&
5108          { ac_try='test -s conftest.$ac_objext'
5109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110   (eval $ac_try) 2>&5
5111   ac_status=$?
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); }; }; then
5114   ac_header_compiler=yes
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_compiler=no
5120 fi
5121 rm -f conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5123 echo "${ECHO_T}$ac_header_compiler" >&6
5124
5125 # Is the header present?
5126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135 #include <$ac_header>
5136 _ACEOF
5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5139   ac_status=$?
5140   grep -v '^ *+' conftest.er1 >conftest.err
5141   rm -f conftest.er1
5142   cat conftest.err >&5
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } >/dev/null; then
5145   if test -s conftest.err; then
5146     ac_cpp_err=$ac_c_preproc_warn_flag
5147   else
5148     ac_cpp_err=
5149   fi
5150 else
5151   ac_cpp_err=yes
5152 fi
5153 if test -z "$ac_cpp_err"; then
5154   ac_header_preproc=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159   ac_header_preproc=no
5160 fi
5161 rm -f conftest.err conftest.$ac_ext
5162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5163 echo "${ECHO_T}$ac_header_preproc" >&6
5164
5165 # So?  What about this header?
5166 case $ac_header_compiler:$ac_header_preproc in
5167   yes:no )
5168     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5172     (
5173       cat <<\_ASBOX
5174 ## ------------------------------------ ##
5175 ## Report this to bug-autoconf@gnu.org. ##
5176 ## ------------------------------------ ##
5177 _ASBOX
5178     ) |
5179       sed "s/^/$as_me: WARNING:     /" >&2
5180     ;;
5181   no:yes )
5182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5184     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5188     (
5189       cat <<\_ASBOX
5190 ## ------------------------------------ ##
5191 ## Report this to bug-autoconf@gnu.org. ##
5192 ## ------------------------------------ ##
5193 _ASBOX
5194     ) |
5195       sed "s/^/$as_me: WARNING:     /" >&2
5196     ;;
5197 esac
5198 echo "$as_me:$LINENO: checking for $ac_header" >&5
5199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   eval "$as_ac_Header=$ac_header_preproc"
5204 fi
5205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5207
5208 fi
5209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5210   cat >>confdefs.h <<_ACEOF
5211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5212 _ACEOF
5213
5214 fi
5215
5216 done
5217
5218    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5219 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5220 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223   ac_check_lib_save_LIBS=$LIBS
5224 LIBS="-ltermcap  $LIBS"
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232
5233 /* Override any gcc2 internal prototype to avoid an error.  */
5234 #ifdef __cplusplus
5235 extern "C"
5236 #endif
5237 /* We use char because int might match the return type of a gcc2
5238    builtin and then its argument prototype would still apply.  */
5239 char tgetent ();
5240 int
5241 main ()
5242 {
5243 tgetent ();
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250   (eval $ac_link) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } &&
5254          { ac_try='test -s conftest$ac_exeext'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260   ac_cv_lib_termcap_tgetent=yes
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ac_cv_lib_termcap_tgetent=no
5266 fi
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5271 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5272 if test $ac_cv_lib_termcap_tgetent = yes; then
5273   CONS_LIBS="-ltermcap"
5274 fi
5275
5276    support_readline=no
5277
5278 cat >>confdefs.h <<\_ACEOF
5279 #define HAVE_CONIO 1
5280 _ACEOF
5281
5282 fi
5283
5284
5285 # ---------------------------------------------------
5286 # Check for readline support/directory (default off)
5287 # ---------------------------------------------------
5288 # this allows you to turn it completely off
5289 # Check whether --enable-readline or --disable-readline was given.
5290 if test "${enable_readline+set}" = set; then
5291   enableval="$enable_readline"
5292   if test x$enableval = xno; then
5293     support_readline=no
5294   fi
5295 fi;
5296
5297 got_readline="no"
5298 READLINE_SRC=
5299 if test x$support_readline = xyes; then
5300
5301 # Check whether --with-readline or --without-readline was given.
5302 if test "${with_readline+set}" = set; then
5303   withval="$with_readline"
5304
5305         case "$with_readline" in
5306         no) : ;;
5307         yes|*)
5308           if test "$with_readline" != "yes"; then
5309             CONS_INC="-I${with_readline}"
5310             CONS_LDFLAGS="-L$with_readline"
5311           else
5312              with_readline="/usr/include/readline"
5313           fi
5314           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5317 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 fi
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5323 else
5324   # Is the header compilable?
5325 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5326 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334 $ac_includes_default
5335 #include <${with_readline}/readline.h>
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339   (eval $ac_compile) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); } &&
5343          { ac_try='test -s conftest.$ac_objext'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; }; then
5349   ac_header_compiler=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_header_compiler=no
5355 fi
5356 rm -f conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5358 echo "${ECHO_T}$ac_header_compiler" >&6
5359
5360 # Is the header present?
5361 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5362 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <${with_readline}/readline.h>
5371 _ACEOF
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5374   ac_status=$?
5375   grep -v '^ *+' conftest.er1 >conftest.err
5376   rm -f conftest.er1
5377   cat conftest.err >&5
5378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); } >/dev/null; then
5380   if test -s conftest.err; then
5381     ac_cpp_err=$ac_c_preproc_warn_flag
5382   else
5383     ac_cpp_err=
5384   fi
5385 else
5386   ac_cpp_err=yes
5387 fi
5388 if test -z "$ac_cpp_err"; then
5389   ac_header_preproc=yes
5390 else
5391   echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394   ac_header_preproc=no
5395 fi
5396 rm -f conftest.err conftest.$ac_ext
5397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6
5399
5400 # So?  What about this header?
5401 case $ac_header_compiler:$ac_header_preproc in
5402   yes:no )
5403     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5406 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5407     (
5408       cat <<\_ASBOX
5409 ## ------------------------------------ ##
5410 ## Report this to bug-autoconf@gnu.org. ##
5411 ## ------------------------------------ ##
5412 _ASBOX
5413     ) |
5414       sed "s/^/$as_me: WARNING:     /" >&2
5415     ;;
5416   no:yes )
5417     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5418 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5419     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5420 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5421     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5422 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5423     (
5424       cat <<\_ASBOX
5425 ## ------------------------------------ ##
5426 ## Report this to bug-autoconf@gnu.org. ##
5427 ## ------------------------------------ ##
5428 _ASBOX
5429     ) |
5430       sed "s/^/$as_me: WARNING:     /" >&2
5431     ;;
5432 esac
5433 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5434 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   eval "$as_ac_Header=$ac_header_preproc"
5439 fi
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442
5443 fi
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445    cat >>confdefs.h <<\_ACEOF
5446 #define HAVE_READLINE 1
5447 _ACEOF
5448
5449                CONS_LIBS="-lreadline -ltermcap"
5450                got_readline="yes"
5451
5452 else
5453    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5454 echo "$as_me: error: *** readline library missing" >&2;}
5455    { (exit 1); exit 1; }; }
5456
5457
5458 fi
5459
5460
5461           ;;
5462         esac
5463
5464 else
5465
5466        # check for standard readline library
5467        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5468   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5469 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5470 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 fi
5473 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5474 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5475 else
5476   # Is the header compilable?
5477 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5478 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5480 #line $LINENO "configure"
5481 /* confdefs.h.  */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h.  */
5486 $ac_includes_default
5487 #include </usr/include/readline/readline.h>
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491   (eval $ac_compile) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -s conftest.$ac_objext'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; }; then
5501   ac_header_compiler=yes
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_header_compiler=no
5507 fi
5508 rm -f conftest.$ac_objext conftest.$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5510 echo "${ECHO_T}$ac_header_compiler" >&6
5511
5512 # Is the header present?
5513 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5514 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5515 cat >conftest.$ac_ext <<_ACEOF
5516 #line $LINENO "configure"
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 #include </usr/include/readline/readline.h>
5523 _ACEOF
5524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } >/dev/null; then
5532   if test -s conftest.err; then
5533     ac_cpp_err=$ac_c_preproc_warn_flag
5534   else
5535     ac_cpp_err=
5536   fi
5537 else
5538   ac_cpp_err=yes
5539 fi
5540 if test -z "$ac_cpp_err"; then
5541   ac_header_preproc=yes
5542 else
5543   echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5545
5546   ac_header_preproc=no
5547 fi
5548 rm -f conftest.err conftest.$ac_ext
5549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5550 echo "${ECHO_T}$ac_header_preproc" >&6
5551
5552 # So?  What about this header?
5553 case $ac_header_compiler:$ac_header_preproc in
5554   yes:no )
5555     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5556 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5557     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5558 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5559     (
5560       cat <<\_ASBOX
5561 ## ------------------------------------ ##
5562 ## Report this to bug-autoconf@gnu.org. ##
5563 ## ------------------------------------ ##
5564 _ASBOX
5565     ) |
5566       sed "s/^/$as_me: WARNING:     /" >&2
5567     ;;
5568   no:yes )
5569     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5570 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5571     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5572 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5573     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5574 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5575     (
5576       cat <<\_ASBOX
5577 ## ------------------------------------ ##
5578 ## Report this to bug-autoconf@gnu.org. ##
5579 ## ------------------------------------ ##
5580 _ASBOX
5581     ) |
5582       sed "s/^/$as_me: WARNING:     /" >&2
5583     ;;
5584 esac
5585 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5586 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5587 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5591 fi
5592 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5593 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5594
5595 fi
5596 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5597    cat >>confdefs.h <<\_ACEOF
5598 #define HAVE_READLINE 1
5599 _ACEOF
5600
5601            got_readline="yes"
5602            CONS_INC="-I/usr/include/readline"
5603            CONS_LIBS="-lreadline -ltermcap"
5604
5605 else
5606
5607            # Did not find standard library, so try Bacula's default
5608             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5611 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 fi
5615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5617 else
5618   # Is the header compilable?
5619 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5620 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 /* confdefs.h.  */
5624 _ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h.  */
5628 $ac_includes_default
5629 #include <${TOP_DIR}/depkgs/readline/readline.h>
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633   (eval $ac_compile) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -s conftest.$ac_objext'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; }; then
5643   ac_header_compiler=yes
5644 else
5645   echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_compiler=no
5649 fi
5650 rm -f conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5653
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5656 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 #include <${TOP_DIR}/depkgs/readline/readline.h>
5665 _ACEOF
5666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } >/dev/null; then
5674   if test -s conftest.err; then
5675     ac_cpp_err=$ac_c_preproc_warn_flag
5676   else
5677     ac_cpp_err=
5678   fi
5679 else
5680   ac_cpp_err=yes
5681 fi
5682 if test -z "$ac_cpp_err"; then
5683   ac_header_preproc=yes
5684 else
5685   echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688   ac_header_preproc=no
5689 fi
5690 rm -f conftest.err conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5693
5694 # So?  What about this header?
5695 case $ac_header_compiler:$ac_header_preproc in
5696   yes:no )
5697     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5701     (
5702       cat <<\_ASBOX
5703 ## ------------------------------------ ##
5704 ## Report this to bug-autoconf@gnu.org. ##
5705 ## ------------------------------------ ##
5706 _ASBOX
5707     ) |
5708       sed "s/^/$as_me: WARNING:     /" >&2
5709     ;;
5710   no:yes )
5711     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5712 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5713     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5714 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5715     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5716 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5717     (
5718       cat <<\_ASBOX
5719 ## ------------------------------------ ##
5720 ## Report this to bug-autoconf@gnu.org. ##
5721 ## ------------------------------------ ##
5722 _ASBOX
5723     ) |
5724       sed "s/^/$as_me: WARNING:     /" >&2
5725     ;;
5726 esac
5727 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5728 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   eval "$as_ac_Header=$ac_header_preproc"
5733 fi
5734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5736
5737 fi
5738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739    cat >>confdefs.h <<\_ACEOF
5740 #define HAVE_READLINE 1
5741 _ACEOF
5742
5743                  got_readline="yes"
5744                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5745                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5746                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5747                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5748
5749 else
5750    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5751 echo "$as_me: error: *** readline library missing" >&2;}
5752    { (exit 1); exit 1; }; }
5753
5754
5755 fi
5756
5757
5758
5759
5760 fi
5761
5762
5763
5764
5765 fi;
5766 fi
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777 # Minimal stuff for readline Makefile configuration
5778 MAKE_SHELL=/bin/sh
5779
5780
5781 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5782 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5783 if test "${ac_cv_header_stat_broken+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   cat >conftest.$ac_ext <<_ACEOF
5787 #line $LINENO "configure"
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 #include <sys/types.h>
5794 #include <sys/stat.h>
5795
5796 #if defined(S_ISBLK) && defined(S_IFDIR)
5797 # if S_ISBLK (S_IFDIR)
5798 You lose.
5799 # endif
5800 #endif
5801
5802 #if defined(S_ISBLK) && defined(S_IFCHR)
5803 # if S_ISBLK (S_IFCHR)
5804 You lose.
5805 # endif
5806 #endif
5807
5808 #if defined(S_ISLNK) && defined(S_IFREG)
5809 # if S_ISLNK (S_IFREG)
5810 You lose.
5811 # endif
5812 #endif
5813
5814 #if defined(S_ISSOCK) && defined(S_IFREG)
5815 # if S_ISSOCK (S_IFREG)
5816 You lose.
5817 # endif
5818 #endif
5819
5820 _ACEOF
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822   $EGREP "You lose" >/dev/null 2>&1; then
5823   ac_cv_header_stat_broken=yes
5824 else
5825   ac_cv_header_stat_broken=no
5826 fi
5827 rm -f conftest*
5828
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5831 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5832 if test $ac_cv_header_stat_broken = yes; then
5833
5834 cat >>confdefs.h <<\_ACEOF
5835 #define STAT_MACROS_BROKEN 1
5836 _ACEOF
5837
5838 fi
5839
5840
5841
5842
5843
5844
5845 ac_header_dirent=no
5846 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5847   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5848 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5849 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5855 /* confdefs.h.  */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h.  */
5860 #include <sys/types.h>
5861 #include <$ac_hdr>
5862
5863 int
5864 main ()
5865 {
5866 if ((DIR *) 0)
5867 return 0;
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874   (eval $ac_compile) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } &&
5878          { ac_try='test -s conftest.$ac_objext'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   eval "$as_ac_Header=yes"
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 eval "$as_ac_Header=no"
5890 fi
5891 rm -f conftest.$ac_objext conftest.$ac_ext
5892 fi
5893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5896   cat >>confdefs.h <<_ACEOF
5897 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5898 _ACEOF
5899
5900 ac_header_dirent=$ac_hdr; break
5901 fi
5902
5903 done
5904 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5905 if test $ac_header_dirent = dirent.h; then
5906   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5907 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5908 if test "${ac_cv_search_opendir+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911   ac_func_search_save_LIBS=$LIBS
5912 ac_cv_search_opendir=no
5913 cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920
5921 /* Override any gcc2 internal prototype to avoid an error.  */
5922 #ifdef __cplusplus
5923 extern "C"
5924 #endif
5925 /* We use char because int might match the return type of a gcc2
5926    builtin and then its argument prototype would still apply.  */
5927 char opendir ();
5928 int
5929 main ()
5930 {
5931 opendir ();
5932   ;
5933   return 0;
5934 }
5935 _ACEOF
5936 rm -f conftest.$ac_objext conftest$ac_exeext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938   (eval $ac_link) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } &&
5942          { ac_try='test -s conftest$ac_exeext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_cv_search_opendir="none required"
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 fi
5954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5955 if test "$ac_cv_search_opendir" = no; then
5956   for ac_lib in dir; do
5957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5958     cat >conftest.$ac_ext <<_ACEOF
5959 #line $LINENO "configure"
5960 /* confdefs.h.  */
5961 _ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h.  */
5965
5966 /* Override any gcc2 internal prototype to avoid an error.  */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 /* We use char because int might match the return type of a gcc2
5971    builtin and then its argument prototype would still apply.  */
5972 char opendir ();
5973 int
5974 main ()
5975 {
5976 opendir ();
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983   (eval $ac_link) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -s conftest$ac_exeext'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; }; then
5993   ac_cv_search_opendir="-l$ac_lib"
5994 break
5995 else
5996   echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 fi
6000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6001   done
6002 fi
6003 LIBS=$ac_func_search_save_LIBS
6004 fi
6005 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6006 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6007 if test "$ac_cv_search_opendir" != no; then
6008   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6009
6010 fi
6011
6012 else
6013   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6014 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6015 if test "${ac_cv_search_opendir+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   ac_func_search_save_LIBS=$LIBS
6019 ac_cv_search_opendir=no
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6022 /* confdefs.h.  */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h.  */
6027
6028 /* Override any gcc2 internal prototype to avoid an error.  */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 /* We use char because int might match the return type of a gcc2
6033    builtin and then its argument prototype would still apply.  */
6034 char opendir ();
6035 int
6036 main ()
6037 {
6038 opendir ();
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 rm -f conftest.$ac_objext conftest$ac_exeext
6044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045   (eval $ac_link) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -s conftest$ac_exeext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_cv_search_opendir="none required"
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 fi
6061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6062 if test "$ac_cv_search_opendir" = no; then
6063   for ac_lib in x; do
6064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
6073 /* Override any gcc2 internal prototype to avoid an error.  */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 /* We use char because int might match the return type of a gcc2
6078    builtin and then its argument prototype would still apply.  */
6079 char opendir ();
6080 int
6081 main ()
6082 {
6083 opendir ();
6084   ;
6085   return 0;
6086 }
6087 _ACEOF
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090   (eval $ac_link) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); } &&
6094          { ac_try='test -s conftest$ac_exeext'
6095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096   (eval $ac_try) 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }; }; then
6100   ac_cv_search_opendir="-l$ac_lib"
6101 break
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 fi
6107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6108   done
6109 fi
6110 LIBS=$ac_func_search_save_LIBS
6111 fi
6112 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6113 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6114 if test "$ac_cv_search_opendir" != no; then
6115   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6116
6117 fi
6118
6119 fi
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6131 do
6132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6133 echo "$as_me:$LINENO: checking for $ac_func" >&5
6134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6135 if eval "test \"\${$as_ac_var+set}\" = set"; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   cat >conftest.$ac_ext <<_ACEOF
6139 #line $LINENO "configure"
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 /* System header to define __stub macros and hopefully few prototypes,
6146     which can conflict with char $ac_func (); below.
6147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6148     <limits.h> exists even on freestanding compilers.  */
6149 #ifdef __STDC__
6150 # include <limits.h>
6151 #else
6152 # include <assert.h>
6153 #endif
6154 /* Override any gcc2 internal prototype to avoid an error.  */
6155 #ifdef __cplusplus
6156 extern "C"
6157 {
6158 #endif
6159 /* We use char because int might match the return type of a gcc2
6160    builtin and then its argument prototype would still apply.  */
6161 char $ac_func ();
6162 /* The GNU C library defines this for functions which it implements
6163     to always fail with ENOSYS.  Some functions are actually named
6164     something starting with __ and the normal name is an alias.  */
6165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6166 choke me
6167 #else
6168 char (*f) () = $ac_func;
6169 #endif
6170 #ifdef __cplusplus
6171 }
6172 #endif
6173
6174 int
6175 main ()
6176 {
6177 return f != $ac_func;
6178   ;
6179   return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184   (eval $ac_link) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } &&
6188          { ac_try='test -s conftest$ac_exeext'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; }; then
6194   eval "$as_ac_var=yes"
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 eval "$as_ac_var=no"
6200 fi
6201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6202 fi
6203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6205 if test `eval echo '${'$as_ac_var'}'` = yes; then
6206   cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6208 _ACEOF
6209
6210 fi
6211 done
6212
6213
6214 for ac_func in nanosleep
6215 do
6216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6217 echo "$as_me:$LINENO: checking for $ac_func" >&5
6218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6219 if eval "test \"\${$as_ac_var+set}\" = set"; then
6220   echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222   cat >conftest.$ac_ext <<_ACEOF
6223 #line $LINENO "configure"
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229 /* System header to define __stub macros and hopefully few prototypes,
6230     which can conflict with char $ac_func (); below.
6231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232     <limits.h> exists even on freestanding compilers.  */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6238 /* Override any gcc2 internal prototype to avoid an error.  */
6239 #ifdef __cplusplus
6240 extern "C"
6241 {
6242 #endif
6243 /* We use char because int might match the return type of a gcc2
6244    builtin and then its argument prototype would still apply.  */
6245 char $ac_func ();
6246 /* The GNU C library defines this for functions which it implements
6247     to always fail with ENOSYS.  Some functions are actually named
6248     something starting with __ and the normal name is an alias.  */
6249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6250 choke me
6251 #else
6252 char (*f) () = $ac_func;
6253 #endif
6254 #ifdef __cplusplus
6255 }
6256 #endif
6257
6258 int
6259 main ()
6260 {
6261 return f != $ac_func;
6262   ;
6263   return 0;
6264 }
6265 _ACEOF
6266 rm -f conftest.$ac_objext conftest$ac_exeext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268   (eval $ac_link) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); } &&
6272          { ac_try='test -s conftest$ac_exeext'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; }; then
6278   eval "$as_ac_var=yes"
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 eval "$as_ac_var=no"
6284 fi
6285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6286 fi
6287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6289 if test `eval echo '${'$as_ac_var'}'` = yes; then
6290   cat >>confdefs.h <<_ACEOF
6291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6292 _ACEOF
6293
6294 fi
6295 done
6296
6297
6298
6299 for ac_header in varargs.h
6300 do
6301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303   echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 fi
6308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6310 else
6311   # Is the header compilable?
6312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6314 cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 $ac_includes_default
6322 #include <$ac_header>
6323 _ACEOF
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326   (eval $ac_compile) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } &&
6330          { ac_try='test -s conftest.$ac_objext'
6331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332   (eval $ac_try) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   ac_header_compiler=yes
6337 else
6338   echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 ac_header_compiler=no
6342 fi
6343 rm -f conftest.$ac_objext conftest.$ac_ext
6344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6345 echo "${ECHO_T}$ac_header_compiler" >&6
6346
6347 # Is the header present?
6348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line $LINENO "configure"
6352 /* confdefs.h.  */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h.  */
6357 #include <$ac_header>
6358 _ACEOF
6359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } >/dev/null; then
6367   if test -s conftest.err; then
6368     ac_cpp_err=$ac_c_preproc_warn_flag
6369   else
6370     ac_cpp_err=
6371   fi
6372 else
6373   ac_cpp_err=yes
6374 fi
6375 if test -z "$ac_cpp_err"; then
6376   ac_header_preproc=yes
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381   ac_header_preproc=no
6382 fi
6383 rm -f conftest.err conftest.$ac_ext
6384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6385 echo "${ECHO_T}$ac_header_preproc" >&6
6386
6387 # So?  What about this header?
6388 case $ac_header_compiler:$ac_header_preproc in
6389   yes:no )
6390     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6392     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6394     (
6395       cat <<\_ASBOX
6396 ## ------------------------------------ ##
6397 ## Report this to bug-autoconf@gnu.org. ##
6398 ## ------------------------------------ ##
6399 _ASBOX
6400     ) |
6401       sed "s/^/$as_me: WARNING:     /" >&2
6402     ;;
6403   no:yes )
6404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6406     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6410     (
6411       cat <<\_ASBOX
6412 ## ------------------------------------ ##
6413 ## Report this to bug-autoconf@gnu.org. ##
6414 ## ------------------------------------ ##
6415 _ASBOX
6416     ) |
6417       sed "s/^/$as_me: WARNING:     /" >&2
6418     ;;
6419 esac
6420 echo "$as_me:$LINENO: checking for $ac_header" >&5
6421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   eval "$as_ac_Header=$ac_header_preproc"
6426 fi
6427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6429
6430 fi
6431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432   cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 _ACEOF
6435
6436 fi
6437
6438 done
6439
6440
6441 # End of readline/conio stuff
6442 # -----------------------------------------------------------------------
6443
6444
6445 # ---------------------------------------------------
6446 # Check for GMP support/directory
6447 # ---------------------------------------------------
6448 #GMP_SRC=
6449 #local_gmp="no"
6450 #AC_ARG_WITH(gmp,
6451 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6452 #  [
6453 #     case "$with_gmp" in
6454 #     no) : ;;
6455 #     yes|*)
6456 #       if test "$with_gmp" != "yes"; then
6457 #         GMP_INC="-I$with_gmp"
6458 #         GMP_LIBS="-lgmp"
6459 #         GMP_LDFLAGS="-L$with_gmp"
6460 #       else
6461 #          with_gmp="/usr/include"
6462 #       fi
6463 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6464 #          [ AC_MSG_RESULT(yes)
6465 #            AC_DEFINE(HAVE_GMP)
6466 #            GMP_LIBS="-lgmp"
6467 #            got_gmp="yes"
6468 #          ],
6469 #          [ AC_MSG_ERROR([*** gmp library missing])
6470 #          ]
6471 #       )
6472 #       ;;
6473 #     esac
6474 #  ],[
6475 #    # check for standard gmp library
6476 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6477 #    [ AC_MSG_RESULT(yes)
6478 #      AC_DEFINE(HAVE_GMP)
6479 #      got_gmp="yes"
6480 #      GMP_INC=
6481 #      GMP_LIBS="-lgmp"
6482 #    ], [
6483 #      # Did not find standard library, so use our own
6484 #      AC_MSG_RESULT(yes)
6485 #      AC_DEFINE(HAVE_GMP)
6486 #      got_gmp="yes"
6487 #      local_gmp="yes"
6488 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6489 #      GMP_LIBS="-lgmp"
6490 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6491 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6492 #    ])
6493 #  ]
6494 #)
6495 #AC_SUBST(GMP_INC)
6496 #AC_SUBST(GMP_LIBS)
6497 #AC_SUBST(GMP_LDFLAGS)
6498 #AC_SUBST(GMP_SRC)
6499
6500 # End of GMP stuff
6501 # -----------------------------------------------------------------------
6502
6503
6504 # ---------------------------------------------------
6505 # Check for CWEB support/directory
6506 # ---------------------------------------------------
6507 #CWEB_SRC=
6508 #CWEB=/bin
6509 #local_cweb="no"
6510 #AC_ARG_WITH(cweb,
6511 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6512 #  [
6513 #     case "$with_cweb" in
6514 #     no) : ;;
6515 #     yes|*)
6516 #       if test "$with_cweb" != "yes"; then
6517 #         CWEB_INC="-I$with_cweb"
6518 #         CWEB_LIBS="-lcweb"
6519 #         CWEB_LDFLAGS="-L$with_cweb"
6520 #       else
6521 #          with_cweb="/usr/include"
6522 #       fi
6523 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6524 #          [ AC_MSG_RESULT(yes)
6525 #            AC_DEFINE(HAVE_CWEB)
6526 #            CWEB_LIBS="-lcweb"
6527 #            got_cweb="yes"
6528 #          ],
6529 #          [ AC_MSG_ERROR([*** cweb library missing])
6530 #          ]
6531 #       )
6532 #       ;;
6533 #     esac
6534 #  ],[
6535 #    # check for standard cweb library
6536 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6537 #    [ AC_MSG_RESULT(yes)
6538 #      AC_DEFINE(HAVE_CWEB)
6539 #      got_cweb="yes"
6540 #      CWEB_INC=
6541 #      CWEB_LIBS="-lcweb"
6542 #    ], [
6543 #      # Did not find starndard library, so use our own
6544 #      AC_MSG_RESULT(yes)
6545 #      AC_DEFINE(HAVE_CWEB)
6546 #      got_cweb="yes"
6547 #      local_cweb="yes"
6548 #      CWEB=${TOP_DIR}/depkgs/cweb
6549 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6550 #      CWEB_LIBS="-lcweb"
6551 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6552 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6553 #    ])
6554 #  ]
6555 #)
6556 #AC_SUBST(CWEB)
6557 #AC_SUBST(CWEB_INC)
6558 #AC_SUBST(CWEB_LIBS)
6559 #AC_SUBST(CWEB_LDFLAGS)
6560 #AC_SUBST(CWEB_SRC)
6561
6562 # End of CWEB stuff
6563 # -----------------------------------------------------------------------
6564
6565
6566
6567 # -----------------------------------------------------------
6568 # Check whether user wants TCP wrappers support (default off)
6569 # -----------------------------------------------------------
6570 TCPW_MSG="no"
6571
6572 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6573 if test "${with_tcp_wrappers+set}" = set; then
6574   withval="$with_tcp_wrappers"
6575
6576     if test "x$withval" != "xno" ; then
6577        saved_LIBS="$LIBS"
6578        LIBS="$saved_LIBS -lwrap"
6579        echo "$as_me:$LINENO: checking for libwrap" >&5
6580 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6581        cat >conftest.$ac_ext <<_ACEOF
6582 #line $LINENO "configure"
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588  #include <tcpd.h>
6589              int deny_severity = 0;
6590              int allow_severity = 0;
6591              struct request_info *req;
6592 int
6593 main ()
6594 {
6595  hosts_access(req);
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602   (eval $ac_link) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612
6613             echo "$as_me:$LINENO: result: yes" >&5
6614 echo "${ECHO_T}yes" >&6
6615             cat >>confdefs.h <<\_ACEOF
6616 #define HAVE_LIBWRAP 1
6617 _ACEOF
6618
6619             TCPW_MSG="yes"
6620
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625
6626             LIBS="$saved_LIBS -lwrap -lnsl"
6627             cat >conftest.$ac_ext <<_ACEOF
6628 #line $LINENO "configure"
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634  #include <tcpd.h>
6635                  int deny_severity = 0;
6636                  int allow_severity = 0;
6637                  struct request_info *req;
6638 int
6639 main ()
6640 {
6641  hosts_access(req);
6642   ;
6643   return 0;
6644 }
6645 _ACEOF
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648   (eval $ac_link) 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); } &&
6652          { ac_try='test -s conftest$ac_exeext'
6653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654   (eval $ac_try) 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; }; then
6658
6659                  echo "$as_me:$LINENO: result: yes" >&5
6660 echo "${ECHO_T}yes" >&6
6661                  cat >>confdefs.h <<\_ACEOF
6662 #define HAVE_LIBWRAP 1
6663 _ACEOF
6664
6665                  TCPW_MSG="yes"
6666
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6672 echo "$as_me: error: *** libwrap missing" >&2;}
6673    { (exit 1); exit 1; }; }
6674
6675 fi
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6677
6678 fi
6679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6680     fi
6681
6682
6683 fi;
6684
6685 # ------------------------------------------
6686 # Where to place working dir
6687 # ------------------------------------------
6688 working_dir=`eval echo ${sysconfdir}/working`
6689
6690 # Check whether --with-working-dir or --without-working-dir was given.
6691 if test "${with_working_dir+set}" = set; then
6692   withval="$with_working_dir"
6693
6694        if test "x$withval" != "xno" ; then
6695               working_dir=$withval
6696        fi
6697
6698
6699 fi;
6700
6701
6702
6703
6704 # ------------------------------------------
6705 # Where to place scriptdir (script files)
6706 # ------------------------------------------
6707 scriptdir=`eval echo ${sysconfdir}`
6708
6709 # Check whether --with-scriptdir or --without-scriptdir was given.
6710 if test "${with_scriptdir+set}" = set; then
6711   withval="$with_scriptdir"
6712
6713        if test "x$withval" != "xno" ; then
6714               scriptdir=$withval
6715        fi
6716
6717
6718 fi;
6719
6720
6721
6722
6723 # ------------------------------------------
6724 # Where to send dump email
6725 # ------------------------------------------
6726 dump_email=root@localhost
6727
6728 # Check whether --with-dump-email or --without-dump-email was given.
6729 if test "${with_dump_email+set}" = set; then
6730   withval="$with_dump_email"
6731
6732        if test "x$withval" != "xno" ; then
6733               dump_email=$withval
6734        fi
6735
6736
6737 fi;
6738
6739
6740
6741 # ------------------------------------------
6742 # Where to send job email
6743 # ------------------------------------------
6744 job_email=root@localhost
6745
6746 # Check whether --with-job-email or --without-job-email was given.
6747 if test "${with_job_email+set}" = set; then
6748   withval="$with_job_email"
6749
6750        if test "x$withval" != "xno" ; then
6751               job_email=$withval
6752        fi
6753
6754
6755 fi;
6756
6757
6758
6759 # ------------------------------------------
6760 # Where to find smtp host
6761 # ------------------------------------------
6762 smtp_host=localhost
6763
6764 # Check whether --with-smtp_host or --without-smtp_host was given.
6765 if test "${with_smtp_host+set}" = set; then
6766   withval="$with_smtp_host"
6767
6768        if test "x$withval" != "xno" ; then
6769               smtp_host=$withval
6770        fi
6771
6772
6773 fi;
6774
6775
6776
6777
6778 # ------------------------------------
6779 # Where to place pid files
6780 # ------------------------------------
6781 piddir=/var/run
6782
6783 # Check whether --with-pid-dir or --without-pid-dir was given.
6784 if test "${with_pid_dir+set}" = set; then
6785   withval="$with_pid_dir"
6786
6787         if test "x$withval" != "xno" ; then
6788             piddir=$withval
6789         fi
6790
6791
6792 fi;
6793
6794 cat >>confdefs.h <<_ACEOF
6795 #define _PATH_BACULA_PIDDIR "$piddir"
6796 _ACEOF
6797
6798
6799
6800
6801 # ------------------------------------
6802 # Where to place subsys "lock file"
6803 # ------------------------------------
6804 subsysdir=/var/run/subsys
6805
6806 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6807 if test "${with_subsys_dir+set}" = set; then
6808   withval="$with_subsys_dir"
6809
6810         if test "x$withval" != "xno" ; then
6811             subsysdir=$withval
6812         fi
6813
6814
6815 fi;
6816
6817
6818
6819
6820
6821 # ------------------------------------
6822 # Where to start assigning ports
6823 # ------------------------------------
6824 baseport=9101
6825
6826 # Check whether --with-baseport or --without-baseport was given.
6827 if test "${with_baseport+set}" = set; then
6828   withval="$with_baseport"
6829
6830         if test "x$withval" != "xno" ; then
6831              baseport=$withval
6832         fi
6833
6834
6835 fi;
6836
6837
6838 dir_port=`expr $baseport`
6839 fd_port=`expr $baseport + 1`
6840 sd_port=`expr $fd_port + 1`
6841
6842
6843
6844
6845
6846
6847 # ------------------------------------------
6848 # Generate passwords
6849 # ------------------------------------------
6850 dir_password=
6851
6852 # Check whether --with-dir-password or --without-dir-password was given.
6853 if test "${with_dir_password+set}" = set; then
6854   withval="$with_dir_password"
6855
6856        if test "x$withval" != "xno" ; then
6857            dir_password=$withval
6858        fi
6859
6860
6861 fi;
6862
6863 if test "x$dir_password" = "x" ; then
6864    if test "x$OPENSSL" = "xnone" ; then
6865 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6866       key=`autoconf/randpass 33`
6867    else
6868       key=`openssl rand -base64 33`
6869    fi
6870    dir_password=$key
6871 fi
6872
6873 fd_password=
6874
6875 # Check whether --with-fd-password or --without-fd-password was given.
6876 if test "${with_fd_password+set}" = set; then
6877   withval="$with_fd_password"
6878
6879        if test "x$withval" != "xno" ; then
6880            fd_password=$withval
6881        fi
6882
6883
6884 fi;
6885
6886 if test "x$fd_password" = "x" ; then
6887    if test "x$OPENSSL" = "xnone" ; then
6888 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6889       key=`autoconf/randpass 37`
6890    else
6891       key=`openssl rand -base64 33`
6892    fi
6893    fd_password=$key
6894 fi
6895
6896 sd_password=
6897
6898 # Check whether --with-sd-password or --without-sd-password was given.
6899 if test "${with_sd_password+set}" = set; then
6900   withval="$with_sd_password"
6901
6902        if test "x$withval" != "xno" ; then
6903            sd_password=$withval
6904        fi
6905
6906
6907 fi;
6908
6909 if test "x$sd_password" = "x" ; then
6910    if test "x$OPENSSL" = "xnone" ; then
6911 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6912       key=`autoconf/randpass 41`
6913    else
6914       key=`openssl rand -base64 33`
6915    fi
6916    sd_password=$key
6917 fi
6918
6919
6920
6921
6922
6923
6924
6925 #
6926 # Handle users and groups for each daemon
6927 #
6928 dir_user=
6929
6930 # Check whether --with-dir_user or --without-dir_user was given.
6931 if test "${with_dir_user+set}" = set; then
6932   withval="$with_dir_user"
6933
6934         if test "x$withval" != "x" ; then
6935              dir_user=$withval
6936         fi
6937
6938
6939 fi;
6940
6941 dir_group=
6942
6943 # Check whether --with-dir_group or --without-dir_group was given.
6944 if test "${with_dir_group+set}" = set; then
6945   withval="$with_dir_group"
6946
6947         if test "x$withval" != "x" ; then
6948              dir_group=$withval
6949         fi
6950
6951
6952 fi;
6953
6954 sd_user=
6955
6956 # Check whether --with-sd_user or --without-sd_user was given.
6957 if test "${with_sd_user+set}" = set; then
6958   withval="$with_sd_user"
6959
6960         if test "x$withval" != "x" ; then
6961              sd_user=$withval
6962         fi
6963
6964
6965 fi;
6966
6967 sd_group=
6968
6969 # Check whether --with-sd_group or --without-sd_group was given.
6970 if test "${with_sd_group+set}" = set; then
6971   withval="$with_sd_group"
6972
6973         if test "x$withval" != "x" ; then
6974              sd_group=$withval
6975         fi
6976
6977
6978 fi;
6979
6980 fd_user=
6981
6982 # Check whether --with-fd_user or --without-fd_user was given.
6983 if test "${with_fd_user+set}" = set; then
6984   withval="$with_fd_user"
6985
6986         if test "x$withval" != "x" ; then
6987              fd_user=$withval
6988         fi
6989
6990
6991 fi;
6992
6993 fd_group=
6994
6995 # Check whether --with-fd_group or --without-fd_group was given.
6996 if test "${with_fd_group+set}" = set; then
6997   withval="$with_fd_group"
6998
6999         if test "x$withval" != "x" ; then
7000              fd_group=$withval
7001         fi
7002
7003
7004 fi;
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 # ------------------------------------------------
7017 # Bacula check for various SQL database engines
7018 # ------------------------------------------------
7019
7020 db_found=no
7021 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7022 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7023
7024 # Check whether --with-postgresql or --without-postgresql was given.
7025 if test "${with_postgresql+set}" = set; then
7026   withval="$with_postgresql"
7027
7028   if test "$withval" != "no"; then
7029       if test "$db_found" = "yes"; then
7030           echo "$as_me:$LINENO: result: error" >&5
7031 echo "${ECHO_T}error" >&6
7032           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7033 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7034    { (exit 1); exit 1; }; };
7035       fi
7036       if test "$withval" = "yes"; then
7037           if test -f /usr/local/include/libpq-fe.h; then
7038               POSTGRESQL_INCDIR=/usr/local/include
7039               POSTGRESQL_LIBDIR=/usr/local/lib
7040               POSTGRESQL_BINDIR=/usr/local/bin
7041           elif test -f /usr/include/libpq-fe.h; then
7042               POSTGRESQL_INCDIR=/usr/include
7043               POSTGRESQL_LIBDIR=/usr/lib
7044               POSTGRESQL_BINDIR=/usr/bin
7045           else
7046               echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6
7048               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7049 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7050    { (exit 1); exit 1; }; }
7051           fi
7052       elif test -f $withval/libpq-fe.h; then
7053           POSTGRESQL_INCDIR=$withval
7054           POSTGRESQL_LIBDIR=$withval
7055           POSTGRESQL_BINDIR=$withval
7056       else
7057           echo "$as_me:$LINENO: result: no" >&5
7058 echo "${ECHO_T}no" >&6
7059           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7060 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7061    { (exit 1); exit 1; }; }
7062       fi
7063       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7064       echo "$as_me:$LINENO: checking for crypt" >&5
7065 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7066 if test "${ac_cv_func_crypt+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076 /* System header to define __stub macros and hopefully few prototypes,
7077     which can conflict with char crypt (); below.
7078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7079     <limits.h> exists even on freestanding compilers.  */
7080 #ifdef __STDC__
7081 # include <limits.h>
7082 #else
7083 # include <assert.h>
7084 #endif
7085 /* Override any gcc2 internal prototype to avoid an error.  */
7086 #ifdef __cplusplus
7087 extern "C"
7088 {
7089 #endif
7090 /* We use char because int might match the return type of a gcc2
7091    builtin and then its argument prototype would still apply.  */
7092 char crypt ();
7093 /* The GNU C library defines this for functions which it implements
7094     to always fail with ENOSYS.  Some functions are actually named
7095     something starting with __ and the normal name is an alias.  */
7096 #if defined (__stub_crypt) || defined (__stub___crypt)
7097 choke me
7098 #else
7099 char (*f) () = crypt;
7100 #endif
7101 #ifdef __cplusplus
7102 }
7103 #endif
7104
7105 int
7106 main ()
7107 {
7108 return f != crypt;
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7115   (eval $ac_link) 2>&5
7116   ac_status=$?
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } &&
7119          { ac_try='test -s conftest$ac_exeext'
7120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; }; then
7125   ac_cv_func_crypt=yes
7126 else
7127   echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_func_crypt=no
7131 fi
7132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7133 fi
7134 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7135 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7136 if test $ac_cv_func_crypt = yes; then
7137   :
7138 else
7139   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7140 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7141 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   ac_check_lib_save_LIBS=$LIBS
7145 LIBS="-lcrypt  $LIBS"
7146 cat >conftest.$ac_ext <<_ACEOF
7147 #line $LINENO "configure"
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153
7154 /* Override any gcc2 internal prototype to avoid an error.  */
7155 #ifdef __cplusplus
7156 extern "C"
7157 #endif
7158 /* We use char because int might match the return type of a gcc2
7159    builtin and then its argument prototype would still apply.  */
7160 char crypt ();
7161 int
7162 main ()
7163 {
7164 crypt ();
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext conftest$ac_exeext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171   (eval $ac_link) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } &&
7175          { ac_try='test -s conftest$ac_exeext'
7176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177   (eval $ac_try) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); }; }; then
7181   ac_cv_lib_crypt_crypt=yes
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ac_cv_lib_crypt_crypt=no
7187 fi
7188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7189 LIBS=$ac_check_lib_save_LIBS
7190 fi
7191 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7192 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7193 if test $ac_cv_lib_crypt_crypt = yes; then
7194   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7195 fi
7196
7197 fi
7198
7199       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7200       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7201       SQL_BINDIR=$POSTGRESQL_BINDIR
7202       cat >>confdefs.h <<\_ACEOF
7203 #define HAVE_POSTGRESQL 1
7204 _ACEOF
7205
7206       echo "$as_me:$LINENO: result: yes" >&5
7207 echo "${ECHO_T}yes" >&6
7208       db_found=yes
7209       support_postgresql=yes
7210       db_name=PostgreSQL
7211       DB_NAME=postgresql
7212   else
7213       echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7215   fi
7216
7217 else
7218
7219   echo "$as_me:$LINENO: result: no" >&5
7220 echo "${ECHO_T}no" >&6
7221
7222 fi;
7223
7224
7225
7226
7227
7228
7229
7230 db_found=no
7231 echo "$as_me:$LINENO: checking for MySQL support" >&5
7232 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7233
7234 # Check whether --with-mysql or --without-mysql was given.
7235 if test "${with_mysql+set}" = set; then
7236   withval="$with_mysql"
7237
7238   if test "$withval" != "no"; then
7239         if test "$withval" = "yes"; then
7240                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7241                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7242                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7243                         MYSQL_BINDIR=/usr/local/mysql/bin
7244                 elif test -f /usr/include/mysql/mysql.h; then
7245                         MYSQL_INCDIR=/usr/include/mysql
7246                         MYSQL_LIBDIR=/usr/lib/mysql
7247                         MYSQL_BINDIR=/usr/bin
7248                 elif test -f /usr/include/mysql.h; then
7249                         MYSQL_INCDIR=/usr/include
7250                         MYSQL_LIBDIR=/usr/lib
7251                         MYSQL_BINDIR=/usr/bin
7252                 elif test -f /usr/local/include/mysql/mysql.h; then
7253                         MYSQL_INCDIR=/usr/local/include/mysql
7254                         MYSQL_LIBDIR=/usr/local/lib/mysql
7255                         MYSQL_BINDIR=/usr/local/bin
7256                 elif test -f /usr/local/include/mysql.h; then
7257                         MYSQL_INCDIR=/usr/local/include
7258                         MYSQL_LIBDIR=/usr/local/lib
7259                         MYSQL_BINDIR=/usr/local/bin
7260                 else
7261                    echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6
7263                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7264 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7265    { (exit 1); exit 1; }; }
7266                 fi
7267         else
7268                 if test -f $withval/include/mysql/mysql.h; then
7269                         MYSQL_INCDIR=$withval/include/mysql
7270                         MYSQL_LIBDIR=$withval/lib/mysql
7271                         MYSQL_BINDIR=$withval/bin
7272                 elif test -f $withval/include/mysql.h; then
7273                         MYSQL_INCDIR=$withval/include
7274                         MYSQL_LIBDIR=$withval/lib
7275                         MYSQL_BINDIR=$withval/bin
7276                 else
7277                    echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7279                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7280 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7281    { (exit 1); exit 1; }; }
7282                 fi
7283         fi
7284     SQL_INCLUDE=-I$MYSQL_INCDIR
7285     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7286        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7287        cat >>confdefs.h <<\_ACEOF
7288 #define HAVE_THREAD_SAFE_MYSQL 1
7289 _ACEOF
7290
7291     else
7292        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7293     fi
7294     SQL_BINDIR=$MYSQL_BINDIR
7295
7296     cat >>confdefs.h <<\_ACEOF
7297 #define HAVE_MYSQL 1
7298 _ACEOF
7299
7300     echo "$as_me:$LINENO: result: yes" >&5
7301 echo "${ECHO_T}yes" >&6
7302     db_found=yes
7303     support_mysql=yes
7304     db_name=MySQL
7305     DB_NAME=mysql
7306
7307   else
7308         echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7310   fi
7311
7312 else
7313
7314     echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6
7316
7317 fi;
7318
7319
7320 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7321 if test "${with_embedded_mysql+set}" = set; then
7322   withval="$with_embedded_mysql"
7323
7324   if test "$withval" != "no"; then
7325         if test "$withval" = "yes"; then
7326                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7327                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7328                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7329                         MYSQL_BINDIR=/usr/local/mysql/bin
7330                 elif test -f /usr/include/mysql/mysql.h; then
7331                         MYSQL_INCDIR=/usr/include/mysql
7332                         MYSQL_LIBDIR=/usr/lib/mysql
7333                         MYSQL_BINDIR=/usr/bin
7334                 elif test -f /usr/include/mysql.h; then
7335                         MYSQL_INCDIR=/usr/include
7336                         MYSQL_LIBDIR=/usr/lib
7337                         MYSQL_BINDIR=/usr/bin
7338                 elif test -f /usr/local/include/mysql/mysql.h; then
7339                         MYSQL_INCDIR=/usr/local/include/mysql
7340                         MYSQL_LIBDIR=/usr/local/lib/mysql
7341                         MYSQL_BINDIR=/usr/local/bin
7342                 elif test -f /usr/local/include/mysql.h; then
7343                         MYSQL_INCDIR=/usr/local/include
7344                         MYSQL_LIBDIR=/usr/local/lib
7345                         MYSQL_BINDIR=/usr/local/bin
7346                 else
7347                    echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7349                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7350 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7351    { (exit 1); exit 1; }; }
7352                 fi
7353         else
7354                 if test -f $withval/include/mysql/mysql.h; then
7355                         MYSQL_INCDIR=$withval/include/mysql
7356                         MYSQL_LIBDIR=$withval/lib/mysql
7357                         MYSQL_BINDIR=$withval/bin
7358                 elif test -f $withval/include/mysql.h; then
7359                         MYSQL_INCDIR=$withval/include
7360                         MYSQL_LIBDIR=$withval/lib
7361                         MYSQL_BINDIR=$withval/bin
7362                 else
7363                    echo "$as_me:$LINENO: result: no" >&5
7364 echo "${ECHO_T}no" >&6
7365                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7366 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7367    { (exit 1); exit 1; }; }
7368                 fi
7369         fi
7370     SQL_INCLUDE=-I$MYSQL_INCDIR
7371     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7372     SQL_BINDIR=$MYSQL_BINDIR
7373
7374     cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_MYSQL 1
7376 _ACEOF
7377
7378     cat >>confdefs.h <<\_ACEOF
7379 #define HAVE_EMBEDDED_MYSQL 1
7380 _ACEOF
7381
7382     echo "$as_me:$LINENO: result: yes" >&5
7383 echo "${ECHO_T}yes" >&6
7384     db_found=yes
7385     support_mysql=yes
7386     db_name=MySQL
7387     DB_NAME=mysql
7388
7389   else
7390         echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7392   fi
7393
7394 else
7395
7396   echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7398
7399 fi;
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409 db_found=no
7410 echo "$as_me:$LINENO: checking for SQLite support" >&5
7411 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7412
7413 # Check whether --with-sqlite or --without-sqlite was given.
7414 if test "${with_sqlite+set}" = set; then
7415   withval="$with_sqlite"
7416
7417   if test "$withval" != "no"; then
7418         if test "$withval" = "yes"; then
7419                 if test -f /usr/local/include/sqlite.h; then
7420                         SQLITE_INCDIR=/usr/local/include
7421                         SQLITE_LIBDIR=/usr/local/lib
7422                         SQLITE_BINDIR=/usr/local/bin
7423                 elif test -f /usr/include/sqlite.h; then
7424                         SQLITE_INCDIR=/usr/include
7425                         SQLITE_LIBDIR=/usr/lib
7426                         SQLITE_BINDIR=/usr/bin
7427                 else
7428                    echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7431 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7432    { (exit 1); exit 1; }; }
7433                 fi
7434         else
7435                 if test -f $withval/sqlite.h; then
7436                         SQLITE_INCDIR=$withval
7437                         SQLITE_LIBDIR=$withval
7438                         SQLITE_BINDIR=$withval
7439                 else
7440                    echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6
7442                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7443 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7444    { (exit 1); exit 1; }; }
7445                 fi
7446         fi
7447     SQL_INCLUDE=-I$SQLITE_INCDIR
7448     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7449     SQL_BINDIR=$SQLITE_BINDIR
7450
7451     cat >>confdefs.h <<\_ACEOF
7452 #define HAVE_SQLITE 1
7453 _ACEOF
7454
7455     echo "$as_me:$LINENO: result: yes" >&5
7456 echo "${ECHO_T}yes" >&6
7457     db_found=yes
7458     support_sqlite=yes
7459     db_name=SQLite
7460     DB_NAME=sqlite
7461
7462   else
7463         echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6
7465   fi
7466
7467 else
7468
7469   echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471
7472 fi;
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482 cat >>confdefs.h <<\_ACEOF
7483 #define PROTOTYPES 1
7484 _ACEOF
7485
7486
7487 if test -z "$CFLAGS"; then
7488     if test -z "$CCOPTS"; then
7489         CCOPTS='-g -O2'
7490     fi
7491     CFLAGS="$CCOPTS"
7492 fi
7493
7494
7495
7496
7497 largefile_support="no"
7498
7499    # Check whether --enable-largefile or --disable-largefile was given.
7500 if test "${enable_largefile+set}" = set; then
7501   enableval="$enable_largefile"
7502
7503 fi;
7504    if test "$enable_largefile" != no; then
7505      if test -n "$ac_tool_prefix"; then
7506   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7507 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7508 echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7510 if test "${ac_cv_prog_GETCONF+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   if test -n "$GETCONF"; then
7514   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521   for ac_exec_ext in '' $ac_executable_extensions; do
7522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525     break 2
7526   fi
7527 done
7528 done
7529
7530 fi
7531 fi
7532 GETCONF=$ac_cv_prog_GETCONF
7533 if test -n "$GETCONF"; then
7534   echo "$as_me:$LINENO: result: $GETCONF" >&5
7535 echo "${ECHO_T}$GETCONF" >&6
7536 else
7537   echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539 fi
7540
7541 fi
7542 if test -z "$ac_cv_prog_GETCONF"; then
7543   ac_ct_GETCONF=$GETCONF
7544   # Extract the first word of "getconf", so it can be a program name with args.
7545 set dummy getconf; ac_word=$2
7546 echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7548 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   if test -n "$ac_ct_GETCONF"; then
7552   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559   for ac_exec_ext in '' $ac_executable_extensions; do
7560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561     ac_cv_prog_ac_ct_GETCONF="getconf"
7562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566 done
7567
7568 fi
7569 fi
7570 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7571 if test -n "$ac_ct_GETCONF"; then
7572   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7573 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7574 else
7575   echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7577 fi
7578
7579   GETCONF=$ac_ct_GETCONF
7580 else
7581   GETCONF="$ac_cv_prog_GETCONF"
7582 fi
7583
7584      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7585 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7586 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7587   echo $ECHO_N "(cached) $ECHO_C" >&6
7588 else
7589   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7590         ac_cv_sys_largefile_CFLAGS=no
7591         case "$host_os" in
7592            # IRIX 6.2 and later require cc -n32.
7593            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7594              if test "$GCC" != yes; then
7595                ac_cv_sys_largefile_CFLAGS=-n32
7596              fi
7597              ac_save_CC="$CC"
7598              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7599              cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7601 /* confdefs.h.  */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h.  */
7606
7607 int
7608 main ()
7609 {
7610
7611   ;
7612   return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617   (eval $ac_link) 2>&5
7618   ac_status=$?
7619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620   (exit $ac_status); } &&
7621          { ac_try='test -s conftest$ac_exeext'
7622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623   (eval $ac_try) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; }; then
7627   :
7628 else
7629   echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7631
7632 ac_cv_sys_largefile_CFLAGS=no
7633 fi
7634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7635              CC="$ac_save_CC"
7636            esac
7637       }
7638 fi
7639 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7640 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7641      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7642 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7643 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7647         ac_cv_sys_largefile_LDFLAGS=no
7648
7649       }
7650 fi
7651 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7652 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7653      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7654 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7655 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7659         ac_cv_sys_largefile_LIBS=no
7660
7661       }
7662 fi
7663 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7664 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7665
7666      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7667        case "$ac_flag" in
7668        no) ;;
7669        -D_FILE_OFFSET_BITS=*) ;;
7670        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7671        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7672        -D?* | -I?*)
7673          case "$ac_flag" in
7674    no) ;;
7675    ?*)
7676      case "$CPPFLAGS" in
7677      '') CPPFLAGS="$ac_flag" ;;
7678      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7679      esac ;;
7680    esac ;;
7681        *)
7682          case "$ac_flag" in
7683    no) ;;
7684    ?*)
7685      case "$CFLAGS" in
7686      '') CFLAGS="$ac_flag" ;;
7687      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7688      esac ;;
7689    esac ;;
7690        esac
7691      done
7692      case "$ac_cv_sys_largefile_LDFLAGS" in
7693    no) ;;
7694    ?*)
7695      case "$LDFLAGS" in
7696      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7697      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7698      esac ;;
7699    esac
7700      case "$ac_cv_sys_largefile_LIBS" in
7701    no) ;;
7702    ?*)
7703      case "$LIBS" in
7704      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7705      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7706      esac ;;
7707    esac
7708      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7709 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7710 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   ac_cv_sys_file_offset_bits=no
7714       case "$host_os" in
7715         # HP-UX 10.20 and later
7716         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7717           ac_cv_sys_file_offset_bits=64 ;;
7718         esac
7719       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7720         case "$ac_flag" in
7721         -D_FILE_OFFSET_BITS)
7722           ac_cv_sys_file_offset_bits=1 ;;
7723         -D_FILE_OFFSET_BITS=*)
7724           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7725         esac
7726       done
7727
7728 fi
7729 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7730 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7731    if test "$ac_cv_sys_file_offset_bits" != no; then
7732
7733 cat >>confdefs.h <<_ACEOF
7734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7735 _ACEOF
7736
7737    fi
7738      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7739 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7740 if test "${ac_cv_sys_largefile_source+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743   ac_cv_sys_largefile_source=no
7744       case "$host_os" in
7745         # HP-UX 10.20 and later
7746         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7747           ac_cv_sys_largefile_source=1 ;;
7748         esac
7749       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7750         case "$ac_flag" in
7751         -D_LARGEFILE_SOURCE)
7752           ac_cv_sys_largefile_source=1 ;;
7753         -D_LARGEFILE_SOURCE=*)
7754           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7755         esac
7756       done
7757
7758 fi
7759 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7760 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7761    if test "$ac_cv_sys_largefile_source" != no; then
7762
7763 cat >>confdefs.h <<_ACEOF
7764 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7765 _ACEOF
7766
7767    fi
7768      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7769 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7770 if test "${ac_cv_sys_large_files+set}" = set; then
7771   echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773   ac_cv_sys_large_files=no
7774       case "$host_os" in
7775         # AIX 4.2 and later
7776         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7777           ac_cv_sys_large_files=1 ;;
7778         esac
7779       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7780         case "$ac_flag" in
7781         -D_LARGE_FILES)
7782           ac_cv_sys_large_files=1 ;;
7783         -D_LARGE_FILES=*)
7784           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7785         esac
7786       done
7787
7788 fi
7789 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7790 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7791    if test "$ac_cv_sys_large_files" != no; then
7792
7793 cat >>confdefs.h <<_ACEOF
7794 #define _LARGE_FILES $ac_cv_sys_large_files
7795 _ACEOF
7796
7797    fi
7798    fi
7799
7800
7801
7802 echo "$as_me:$LINENO: checking for X" >&5
7803 echo $ECHO_N "checking for X... $ECHO_C" >&6
7804
7805
7806 # Check whether --with-x or --without-x was given.
7807 if test "${with_x+set}" = set; then
7808   withval="$with_x"
7809
7810 fi;
7811 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7812 if test "x$with_x" = xno; then
7813   # The user explicitly disabled X.
7814   have_x=disabled
7815 else
7816   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7817     # Both variables are already set.
7818     have_x=yes
7819   else
7820     if test "${ac_cv_have_x+set}" = set; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823   # One or both of the vars are not set, and there is no cached value.
7824 ac_x_includes=no ac_x_libraries=no
7825 rm -fr conftest.dir
7826 if mkdir conftest.dir; then
7827   cd conftest.dir
7828   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7829   cat >Imakefile <<'_ACEOF'
7830 acfindx:
7831         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7832 _ACEOF
7833   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7834     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7835     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7836     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7837     for ac_extension in a so sl; do
7838       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7839          test -f $ac_im_libdir/libX11.$ac_extension; then
7840         ac_im_usrlibdir=$ac_im_libdir; break
7841       fi
7842     done
7843     # Screen out bogus values from the imake configuration.  They are
7844     # bogus both because they are the default anyway, and because
7845     # using them would break gcc on systems where it needs fixed includes.
7846     case $ac_im_incroot in
7847         /usr/include) ;;
7848         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7849     esac
7850     case $ac_im_usrlibdir in
7851         /usr/lib | /lib) ;;
7852         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7853     esac
7854   fi
7855   cd ..
7856   rm -fr conftest.dir
7857 fi
7858
7859 # Standard set of common directories for X headers.
7860 # Check X11 before X11Rn because it is often a symlink to the current release.
7861 ac_x_header_dirs='
7862 /usr/X11/include
7863 /usr/X11R6/include
7864 /usr/X11R5/include
7865 /usr/X11R4/include
7866
7867 /usr/include/X11
7868 /usr/include/X11R6
7869 /usr/include/X11R5
7870 /usr/include/X11R4
7871
7872 /usr/local/X11/include
7873 /usr/local/X11R6/include
7874 /usr/local/X11R5/include
7875 /usr/local/X11R4/include
7876
7877 /usr/local/include/X11
7878 /usr/local/include/X11R6
7879 /usr/local/include/X11R5
7880 /usr/local/include/X11R4
7881
7882 /usr/X386/include
7883 /usr/x386/include
7884 /usr/XFree86/include/X11
7885
7886 /usr/include
7887 /usr/local/include
7888 /usr/unsupported/include
7889 /usr/athena/include
7890 /usr/local/x11r5/include
7891 /usr/lpp/Xamples/include
7892
7893 /usr/openwin/include
7894 /usr/openwin/share/include'
7895
7896 if test "$ac_x_includes" = no; then
7897   # Guess where to find include files, by looking for Intrinsic.h.
7898   # First, try using that file with no special directory specified.
7899   cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 /* confdefs.h.  */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h.  */
7906 #include <X11/Intrinsic.h>
7907 _ACEOF
7908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7909   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7910   ac_status=$?
7911   grep -v '^ *+' conftest.er1 >conftest.err
7912   rm -f conftest.er1
7913   cat conftest.err >&5
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } >/dev/null; then
7916   if test -s conftest.err; then
7917     ac_cpp_err=$ac_c_preproc_warn_flag
7918   else
7919     ac_cpp_err=
7920   fi
7921 else
7922   ac_cpp_err=yes
7923 fi
7924 if test -z "$ac_cpp_err"; then
7925   # We can compile using X headers with no special include directory.
7926 ac_x_includes=
7927 else
7928   echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7930
7931   for ac_dir in $ac_x_header_dirs; do
7932   if test -r "$ac_dir/X11/Intrinsic.h"; then
7933     ac_x_includes=$ac_dir
7934     break
7935   fi
7936 done
7937 fi
7938 rm -f conftest.err conftest.$ac_ext
7939 fi # $ac_x_includes = no
7940
7941 if test "$ac_x_libraries" = no; then
7942   # Check for the libraries.
7943   # See if we find them without any special options.
7944   # Don't add to $LIBS permanently.
7945   ac_save_LIBS=$LIBS
7946   LIBS="-lXt $LIBS"
7947   cat >conftest.$ac_ext <<_ACEOF
7948 #line $LINENO "configure"
7949 /* confdefs.h.  */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h.  */
7954 #include <X11/Intrinsic.h>
7955 int
7956 main ()
7957 {
7958 XtMalloc (0)
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965   (eval $ac_link) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -s conftest$ac_exeext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   LIBS=$ac_save_LIBS
7976 # We can link X programs with no special library path.
7977 ac_x_libraries=
7978 else
7979   echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982 LIBS=$ac_save_LIBS
7983 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7984 do
7985   # Don't even attempt the hair of trying to link an X program!
7986   for ac_extension in a so sl; do
7987     if test -r $ac_dir/libXt.$ac_extension; then
7988       ac_x_libraries=$ac_dir
7989       break 2
7990     fi
7991   done
7992 done
7993 fi
7994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7995 fi # $ac_x_libraries = no
7996
7997 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7998   # Didn't find X anywhere.  Cache the known absence of X.
7999   ac_cv_have_x="have_x=no"
8000 else
8001   # Record where we found X for the cache.
8002   ac_cv_have_x="have_x=yes \
8003                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8004 fi
8005 fi
8006
8007   fi
8008   eval "$ac_cv_have_x"
8009 fi # $with_x != no
8010
8011 if test "$have_x" != yes; then
8012   echo "$as_me:$LINENO: result: $have_x" >&5
8013 echo "${ECHO_T}$have_x" >&6
8014   no_x=yes
8015 else
8016   # If each of the values was on the command line, it overrides each guess.
8017   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8018   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8019   # Update the cache value to reflect the command line values.
8020   ac_cv_have_x="have_x=yes \
8021                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8022   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8023 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8024 fi
8025
8026 if test "$no_x" = yes; then
8027   # Not all programs may use this symbol, but it does not hurt to define it.
8028
8029 cat >>confdefs.h <<\_ACEOF
8030 #define X_DISPLAY_MISSING 1
8031 _ACEOF
8032
8033   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8034 else
8035   if test -n "$x_includes"; then
8036     X_CFLAGS="$X_CFLAGS -I$x_includes"
8037   fi
8038
8039   # It would also be nice to do this for all -L options, not just this one.
8040   if test -n "$x_libraries"; then
8041     X_LIBS="$X_LIBS -L$x_libraries"
8042     # For Solaris; some versions of Sun CC require a space after -R and
8043     # others require no space.  Words are not sufficient . . . .
8044     case `(uname -sr) 2>/dev/null` in
8045     "SunOS 5"*)
8046       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8047 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8048       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8049       cat >conftest.$ac_ext <<_ACEOF
8050 #line $LINENO "configure"
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056
8057 int
8058 main ()
8059 {
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067   (eval $ac_link) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); } &&
8071          { ac_try='test -s conftest$ac_exeext'
8072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073   (eval $ac_try) 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; }; then
8077   ac_R_nospace=yes
8078 else
8079   echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ac_R_nospace=no
8083 fi
8084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8085       if test $ac_R_nospace = yes; then
8086         echo "$as_me:$LINENO: result: no" >&5
8087 echo "${ECHO_T}no" >&6
8088         X_LIBS="$X_LIBS -R$x_libraries"
8089       else
8090         LIBS="$ac_xsave_LIBS -R $x_libraries"
8091         cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 int
8100 main ()
8101 {
8102
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109   (eval $ac_link) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } &&
8113          { ac_try='test -s conftest$ac_exeext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   ac_R_space=yes
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_R_space=no
8125 fi
8126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8127         if test $ac_R_space = yes; then
8128           echo "$as_me:$LINENO: result: yes" >&5
8129 echo "${ECHO_T}yes" >&6
8130           X_LIBS="$X_LIBS -R $x_libraries"
8131         else
8132           echo "$as_me:$LINENO: result: neither works" >&5
8133 echo "${ECHO_T}neither works" >&6
8134         fi
8135       fi
8136       LIBS=$ac_xsave_LIBS
8137     esac
8138   fi
8139
8140   # Check for system-dependent libraries X programs must link with.
8141   # Do this before checking for the system-independent R6 libraries
8142   # (-lICE), since we may need -lsocket or whatever for X linking.
8143
8144   if test "$ISC" = yes; then
8145     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8146   else
8147     # Martyn Johnson says this is needed for Ultrix, if the X
8148     # libraries were built with DECnet support.  And Karl Berry says
8149     # the Alpha needs dnet_stub (dnet does not exist).
8150     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8151     cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158
8159 /* Override any gcc2 internal prototype to avoid an error.  */
8160 #ifdef __cplusplus
8161 extern "C"
8162 #endif
8163 /* We use char because int might match the return type of a gcc2
8164    builtin and then its argument prototype would still apply.  */
8165 char XOpenDisplay ();
8166 int
8167 main ()
8168 {
8169 XOpenDisplay ();
8170   ;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176   (eval $ac_link) 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } &&
8180          { ac_try='test -s conftest$ac_exeext'
8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182   (eval $ac_try) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   :
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8192 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8193 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   ac_check_lib_save_LIBS=$LIBS
8197 LIBS="-ldnet  $LIBS"
8198 cat >conftest.$ac_ext <<_ACEOF
8199 #line $LINENO "configure"
8200 /* confdefs.h.  */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h.  */
8205
8206 /* Override any gcc2 internal prototype to avoid an error.  */
8207 #ifdef __cplusplus
8208 extern "C"
8209 #endif
8210 /* We use char because int might match the return type of a gcc2
8211    builtin and then its argument prototype would still apply.  */
8212 char dnet_ntoa ();
8213 int
8214 main ()
8215 {
8216 dnet_ntoa ();
8217   ;
8218   return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext conftest$ac_exeext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8223   (eval $ac_link) 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } &&
8227          { ac_try='test -s conftest$ac_exeext'
8228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229   (eval $ac_try) 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   ac_cv_lib_dnet_dnet_ntoa=yes
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 ac_cv_lib_dnet_dnet_ntoa=no
8239 fi
8240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8241 LIBS=$ac_check_lib_save_LIBS
8242 fi
8243 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8244 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8245 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8246   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8247 fi
8248
8249     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8250       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8251 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8252 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   ac_check_lib_save_LIBS=$LIBS
8256 LIBS="-ldnet_stub  $LIBS"
8257 cat >conftest.$ac_ext <<_ACEOF
8258 #line $LINENO "configure"
8259 /* confdefs.h.  */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h.  */
8264
8265 /* Override any gcc2 internal prototype to avoid an error.  */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 /* We use char because int might match the return type of a gcc2
8270    builtin and then its argument prototype would still apply.  */
8271 char dnet_ntoa ();
8272 int
8273 main ()
8274 {
8275 dnet_ntoa ();
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282   (eval $ac_link) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } &&
8286          { ac_try='test -s conftest$ac_exeext'
8287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288   (eval $ac_try) 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; }; then
8292   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8293 else
8294   echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297 ac_cv_lib_dnet_stub_dnet_ntoa=no
8298 fi
8299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8300 LIBS=$ac_check_lib_save_LIBS
8301 fi
8302 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8303 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8304 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8305   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8306 fi
8307
8308     fi
8309 fi
8310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8311     LIBS="$ac_xsave_LIBS"
8312
8313     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8314     # to get the SysV transport functions.
8315     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8316     # needs -lnsl.
8317     # The nsl library prevents programs from opening the X display
8318     # on Irix 5.2, according to T.E. Dickey.
8319     # The functions gethostbyname, getservbyname, and inet_addr are
8320     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8321     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8322 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8323 if test "${ac_cv_func_gethostbyname+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326   cat >conftest.$ac_ext <<_ACEOF
8327 #line $LINENO "configure"
8328 /* confdefs.h.  */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h.  */
8333 /* System header to define __stub macros and hopefully few prototypes,
8334     which can conflict with char gethostbyname (); below.
8335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8336     <limits.h> exists even on freestanding compilers.  */
8337 #ifdef __STDC__
8338 # include <limits.h>
8339 #else
8340 # include <assert.h>
8341 #endif
8342 /* Override any gcc2 internal prototype to avoid an error.  */
8343 #ifdef __cplusplus
8344 extern "C"
8345 {
8346 #endif
8347 /* We use char because int might match the return type of a gcc2
8348    builtin and then its argument prototype would still apply.  */
8349 char gethostbyname ();
8350 /* The GNU C library defines this for functions which it implements
8351     to always fail with ENOSYS.  Some functions are actually named
8352     something starting with __ and the normal name is an alias.  */
8353 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8354 choke me
8355 #else
8356 char (*f) () = gethostbyname;
8357 #endif
8358 #ifdef __cplusplus
8359 }
8360 #endif
8361
8362 int
8363 main ()
8364 {
8365 return f != gethostbyname;
8366   ;
8367   return 0;
8368 }
8369 _ACEOF
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372   (eval $ac_link) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } &&
8376          { ac_try='test -s conftest$ac_exeext'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382   ac_cv_func_gethostbyname=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_cv_func_gethostbyname=no
8388 fi
8389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8390 fi
8391 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8392 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8393
8394     if test $ac_cv_func_gethostbyname = no; then
8395       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8396 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8397 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   ac_check_lib_save_LIBS=$LIBS
8401 LIBS="-lnsl  $LIBS"
8402 cat >conftest.$ac_ext <<_ACEOF
8403 #line $LINENO "configure"
8404 /* confdefs.h.  */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h.  */
8409
8410 /* Override any gcc2 internal prototype to avoid an error.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 /* We use char because int might match the return type of a gcc2
8415    builtin and then its argument prototype would still apply.  */
8416 char gethostbyname ();
8417 int
8418 main ()
8419 {
8420 gethostbyname ();
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427   (eval $ac_link) 2>&5
8428   ac_status=$?
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -s conftest$ac_exeext'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; }; then
8437   ac_cv_lib_nsl_gethostbyname=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442 ac_cv_lib_nsl_gethostbyname=no
8443 fi
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8448 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8449 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8450   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8451 fi
8452
8453       if test $ac_cv_lib_nsl_gethostbyname = no; then
8454         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8455 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8456 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459   ac_check_lib_save_LIBS=$LIBS
8460 LIBS="-lbsd  $LIBS"
8461 cat >conftest.$ac_ext <<_ACEOF
8462 #line $LINENO "configure"
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468
8469 /* Override any gcc2 internal prototype to avoid an error.  */
8470 #ifdef __cplusplus
8471 extern "C"
8472 #endif
8473 /* We use char because int might match the return type of a gcc2
8474    builtin and then its argument prototype would still apply.  */
8475 char gethostbyname ();
8476 int
8477 main ()
8478 {
8479 gethostbyname ();
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486   (eval $ac_link) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -s conftest$ac_exeext'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496   ac_cv_lib_bsd_gethostbyname=yes
8497 else
8498   echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 ac_cv_lib_bsd_gethostbyname=no
8502 fi
8503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_lib_save_LIBS
8505 fi
8506 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8507 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8508 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8509   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8510 fi
8511
8512       fi
8513     fi
8514
8515     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8516     # socket/setsockopt and other routines are undefined under SCO ODT
8517     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8518     # on later versions), says Simon Leinen: it contains gethostby*
8519     # variants that don't use the name server (or something).  -lsocket
8520     # must be given before -lnsl if both are needed.  We assume that
8521     # if connect needs -lnsl, so does gethostbyname.
8522     echo "$as_me:$LINENO: checking for connect" >&5
8523 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8524 if test "${ac_cv_func_connect+set}" = set; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   cat >conftest.$ac_ext <<_ACEOF
8528 #line $LINENO "configure"
8529 /* confdefs.h.  */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h.  */
8534 /* System header to define __stub macros and hopefully few prototypes,
8535     which can conflict with char connect (); below.
8536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8537     <limits.h> exists even on freestanding compilers.  */
8538 #ifdef __STDC__
8539 # include <limits.h>
8540 #else
8541 # include <assert.h>
8542 #endif
8543 /* Override any gcc2 internal prototype to avoid an error.  */
8544 #ifdef __cplusplus
8545 extern "C"
8546 {
8547 #endif
8548 /* We use char because int might match the return type of a gcc2
8549    builtin and then its argument prototype would still apply.  */
8550 char connect ();
8551 /* The GNU C library defines this for functions which it implements
8552     to always fail with ENOSYS.  Some functions are actually named
8553     something starting with __ and the normal name is an alias.  */
8554 #if defined (__stub_connect) || defined (__stub___connect)
8555 choke me
8556 #else
8557 char (*f) () = connect;
8558 #endif
8559 #ifdef __cplusplus
8560 }
8561 #endif
8562
8563 int
8564 main ()
8565 {
8566 return f != connect;
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573   (eval $ac_link) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } &&
8577          { ac_try='test -s conftest$ac_exeext'
8578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579   (eval $ac_try) 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; }; then
8583   ac_cv_func_connect=yes
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ac_cv_func_connect=no
8589 fi
8590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8591 fi
8592 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8593 echo "${ECHO_T}$ac_cv_func_connect" >&6
8594
8595     if test $ac_cv_func_connect = no; then
8596       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8597 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8598 if test "${ac_cv_lib_socket_connect+set}" = set; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601   ac_check_lib_save_LIBS=$LIBS
8602 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8603 cat >conftest.$ac_ext <<_ACEOF
8604 #line $LINENO "configure"
8605 /* confdefs.h.  */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h.  */
8610
8611 /* Override any gcc2 internal prototype to avoid an error.  */
8612 #ifdef __cplusplus
8613 extern "C"
8614 #endif
8615 /* We use char because int might match the return type of a gcc2
8616    builtin and then its argument prototype would still apply.  */
8617 char connect ();
8618 int
8619 main ()
8620 {
8621 connect ();
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628   (eval $ac_link) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); } &&
8632          { ac_try='test -s conftest$ac_exeext'
8633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634   (eval $ac_try) 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; }; then
8638   ac_cv_lib_socket_connect=yes
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643 ac_cv_lib_socket_connect=no
8644 fi
8645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8647 fi
8648 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8649 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8650 if test $ac_cv_lib_socket_connect = yes; then
8651   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8652 fi
8653
8654     fi
8655
8656     # Guillermo Gomez says -lposix is necessary on A/UX.
8657     echo "$as_me:$LINENO: checking for remove" >&5
8658 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8659 if test "${ac_cv_func_remove+set}" = set; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662   cat >conftest.$ac_ext <<_ACEOF
8663 #line $LINENO "configure"
8664 /* confdefs.h.  */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h.  */
8669 /* System header to define __stub macros and hopefully few prototypes,
8670     which can conflict with char remove (); below.
8671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672     <limits.h> exists even on freestanding compilers.  */
8673 #ifdef __STDC__
8674 # include <limits.h>
8675 #else
8676 # include <assert.h>
8677 #endif
8678 /* Override any gcc2 internal prototype to avoid an error.  */
8679 #ifdef __cplusplus
8680 extern "C"
8681 {
8682 #endif
8683 /* We use char because int might match the return type of a gcc2
8684    builtin and then its argument prototype would still apply.  */
8685 char remove ();
8686 /* The GNU C library defines this for functions which it implements
8687     to always fail with ENOSYS.  Some functions are actually named
8688     something starting with __ and the normal name is an alias.  */
8689 #if defined (__stub_remove) || defined (__stub___remove)
8690 choke me
8691 #else
8692 char (*f) () = remove;
8693 #endif
8694 #ifdef __cplusplus
8695 }
8696 #endif
8697
8698 int
8699 main ()
8700 {
8701 return f != remove;
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext conftest$ac_exeext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708   (eval $ac_link) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); } &&
8712          { ac_try='test -s conftest$ac_exeext'
8713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714   (eval $ac_try) 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }; }; then
8718   ac_cv_func_remove=yes
8719 else
8720   echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 ac_cv_func_remove=no
8724 fi
8725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8726 fi
8727 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8728 echo "${ECHO_T}$ac_cv_func_remove" >&6
8729
8730     if test $ac_cv_func_remove = no; then
8731       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8732 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8733 if test "${ac_cv_lib_posix_remove+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736   ac_check_lib_save_LIBS=$LIBS
8737 LIBS="-lposix  $LIBS"
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8740 /* confdefs.h.  */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h.  */
8745
8746 /* Override any gcc2 internal prototype to avoid an error.  */
8747 #ifdef __cplusplus
8748 extern "C"
8749 #endif
8750 /* We use char because int might match the return type of a gcc2
8751    builtin and then its argument prototype would still apply.  */
8752 char remove ();
8753 int
8754 main ()
8755 {
8756 remove ();
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763   (eval $ac_link) 2>&5
8764   ac_status=$?
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -s conftest$ac_exeext'
8768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769   (eval $ac_try) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); }; }; then
8773   ac_cv_lib_posix_remove=yes
8774 else
8775   echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8777
8778 ac_cv_lib_posix_remove=no
8779 fi
8780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781 LIBS=$ac_check_lib_save_LIBS
8782 fi
8783 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8784 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8785 if test $ac_cv_lib_posix_remove = yes; then
8786   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8787 fi
8788
8789     fi
8790
8791     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8792     echo "$as_me:$LINENO: checking for shmat" >&5
8793 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8794 if test "${ac_cv_func_shmat+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804 /* System header to define __stub macros and hopefully few prototypes,
8805     which can conflict with char shmat (); below.
8806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807     <limits.h> exists even on freestanding compilers.  */
8808 #ifdef __STDC__
8809 # include <limits.h>
8810 #else
8811 # include <assert.h>
8812 #endif
8813 /* Override any gcc2 internal prototype to avoid an error.  */
8814 #ifdef __cplusplus
8815 extern "C"
8816 {
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819    builtin and then its argument prototype would still apply.  */
8820 char shmat ();
8821 /* The GNU C library defines this for functions which it implements
8822     to always fail with ENOSYS.  Some functions are actually named
8823     something starting with __ and the normal name is an alias.  */
8824 #if defined (__stub_shmat) || defined (__stub___shmat)
8825 choke me
8826 #else
8827 char (*f) () = shmat;
8828 #endif
8829 #ifdef __cplusplus
8830 }
8831 #endif
8832
8833 int
8834 main ()
8835 {
8836 return f != shmat;
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843   (eval $ac_link) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } &&
8847          { ac_try='test -s conftest$ac_exeext'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; }; then
8853   ac_cv_func_shmat=yes
8854 else
8855   echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_cv_func_shmat=no
8859 fi
8860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8861 fi
8862 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8863 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8864
8865     if test $ac_cv_func_shmat = no; then
8866       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8867 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8868 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   ac_check_lib_save_LIBS=$LIBS
8872 LIBS="-lipc  $LIBS"
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880
8881 /* Override any gcc2 internal prototype to avoid an error.  */
8882 #ifdef __cplusplus
8883 extern "C"
8884 #endif
8885 /* We use char because int might match the return type of a gcc2
8886    builtin and then its argument prototype would still apply.  */
8887 char shmat ();
8888 int
8889 main ()
8890 {
8891 shmat ();
8892   ;
8893   return 0;
8894 }
8895 _ACEOF
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898   (eval $ac_link) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); } &&
8902          { ac_try='test -s conftest$ac_exeext'
8903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904   (eval $ac_try) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; }; then
8908   ac_cv_lib_ipc_shmat=yes
8909 else
8910   echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 ac_cv_lib_ipc_shmat=no
8914 fi
8915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8916 LIBS=$ac_check_lib_save_LIBS
8917 fi
8918 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8919 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8920 if test $ac_cv_lib_ipc_shmat = yes; then
8921   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8922 fi
8923
8924     fi
8925   fi
8926
8927   # Check for libraries that X11R6 Xt/Xaw programs need.
8928   ac_save_LDFLAGS=$LDFLAGS
8929   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8930   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8931   # check for ICE first), but we must link in the order -lSM -lICE or
8932   # we get undefined symbols.  So assume we have SM if we have ICE.
8933   # These have to be linked with before -lX11, unlike the other
8934   # libraries we check for below, so use a different variable.
8935   # John Interrante, Karl Berry
8936   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8937 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8938 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
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
8951 /* Override any gcc2 internal prototype to avoid an error.  */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 /* We use char because int might match the return type of a gcc2
8956    builtin and then its argument prototype would still apply.  */
8957 char IceConnectionNumber ();
8958 int
8959 main ()
8960 {
8961 IceConnectionNumber ();
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968   (eval $ac_link) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); } &&
8972          { ac_try='test -s conftest$ac_exeext'
8973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974   (eval $ac_try) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); }; }; then
8978   ac_cv_lib_ICE_IceConnectionNumber=yes
8979 else
8980   echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8982
8983 ac_cv_lib_ICE_IceConnectionNumber=no
8984 fi
8985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8987 fi
8988 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8989 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8990 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8991   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8992 fi
8993
8994   LDFLAGS=$ac_save_LDFLAGS
8995
8996 fi
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021 for ac_header in \
9022         assert.h \
9023         fcntl.h \
9024         grp.h \
9025         pwd.h \
9026         libc.h \
9027         limits.h \
9028         stdarg.h \
9029         stdlib.h \
9030         stdint.h \
9031         string.h \
9032         termios.h \
9033         unistd.h \
9034         sys/byteorder.h \
9035         sys/ioctl.h \
9036         sys/select.h \
9037         sys/sockio.h \
9038         sys/time.h \
9039         sys/socket.h \
9040         arpa/nameser.h \
9041         resolv.h \
9042         mtio.h \
9043         sys/mtio.h \
9044
9045 do
9046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048   echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051   echo $ECHO_N "(cached) $ECHO_C" >&6
9052 fi
9053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9055 else
9056   # Is the header compilable?
9057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9059 cat >conftest.$ac_ext <<_ACEOF
9060 #line $LINENO "configure"
9061 /* confdefs.h.  */
9062 _ACEOF
9063 cat confdefs.h >>conftest.$ac_ext
9064 cat >>conftest.$ac_ext <<_ACEOF
9065 /* end confdefs.h.  */
9066 $ac_includes_default
9067 #include <$ac_header>
9068 _ACEOF
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9071   (eval $ac_compile) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); } &&
9075          { ac_try='test -s conftest.$ac_objext'
9076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077   (eval $ac_try) 2>&5
9078   ac_status=$?
9079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080   (exit $ac_status); }; }; then
9081   ac_header_compiler=yes
9082 else
9083   echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 ac_header_compiler=no
9087 fi
9088 rm -f conftest.$ac_objext conftest.$ac_ext
9089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9090 echo "${ECHO_T}$ac_header_compiler" >&6
9091
9092 # Is the header present?
9093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9097 /* confdefs.h.  */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h.  */
9102 #include <$ac_header>
9103 _ACEOF
9104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9106   ac_status=$?
9107   grep -v '^ *+' conftest.er1 >conftest.err
9108   rm -f conftest.er1
9109   cat conftest.err >&5
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); } >/dev/null; then
9112   if test -s conftest.err; then
9113     ac_cpp_err=$ac_c_preproc_warn_flag
9114   else
9115     ac_cpp_err=
9116   fi
9117 else
9118   ac_cpp_err=yes
9119 fi
9120 if test -z "$ac_cpp_err"; then
9121   ac_header_preproc=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126   ac_header_preproc=no
9127 fi
9128 rm -f conftest.err conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9130 echo "${ECHO_T}$ac_header_preproc" >&6
9131
9132 # So?  What about this header?
9133 case $ac_header_compiler:$ac_header_preproc in
9134   yes:no )
9135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9139     (
9140       cat <<\_ASBOX
9141 ## ------------------------------------ ##
9142 ## Report this to bug-autoconf@gnu.org. ##
9143 ## ------------------------------------ ##
9144 _ASBOX
9145     ) |
9146       sed "s/^/$as_me: WARNING:     /" >&2
9147     ;;
9148   no:yes )
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155     (
9156       cat <<\_ASBOX
9157 ## ------------------------------------ ##
9158 ## Report this to bug-autoconf@gnu.org. ##
9159 ## ------------------------------------ ##
9160 _ASBOX
9161     ) |
9162       sed "s/^/$as_me: WARNING:     /" >&2
9163     ;;
9164 esac
9165 echo "$as_me:$LINENO: checking for $ac_header" >&5
9166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9168   echo $ECHO_N "(cached) $ECHO_C" >&6
9169 else
9170   eval "$as_ac_Header=$ac_header_preproc"
9171 fi
9172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9174
9175 fi
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177   cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9179 _ACEOF
9180
9181 fi
9182
9183 done
9184
9185 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9186 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9187 if test "${ac_cv_header_stdc+set}" = set; then
9188   echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
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 #include <stdlib.h>
9198 #include <stdarg.h>
9199 #include <string.h>
9200 #include <float.h>
9201
9202 int
9203 main ()
9204 {
9205
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212   (eval $ac_compile) 2>&5
9213   ac_status=$?
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); } &&
9216          { ac_try='test -s conftest.$ac_objext'
9217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218   (eval $ac_try) 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); }; }; then
9222   ac_cv_header_stdc=yes
9223 else
9224   echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226
9227 ac_cv_header_stdc=no
9228 fi
9229 rm -f conftest.$ac_objext conftest.$ac_ext
9230
9231 if test $ac_cv_header_stdc = yes; then
9232   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9233   cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240 #include <string.h>
9241
9242 _ACEOF
9243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9244   $EGREP "memchr" >/dev/null 2>&1; then
9245   :
9246 else
9247   ac_cv_header_stdc=no
9248 fi
9249 rm -f conftest*
9250
9251 fi
9252
9253 if test $ac_cv_header_stdc = yes; then
9254   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9255   cat >conftest.$ac_ext <<_ACEOF
9256 #line $LINENO "configure"
9257 /* confdefs.h.  */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h.  */
9262 #include <stdlib.h>
9263
9264 _ACEOF
9265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9266   $EGREP "free" >/dev/null 2>&1; then
9267   :
9268 else
9269   ac_cv_header_stdc=no
9270 fi
9271 rm -f conftest*
9272
9273 fi
9274
9275 if test $ac_cv_header_stdc = yes; then
9276   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9277   if test "$cross_compiling" = yes; then
9278   :
9279 else
9280   cat >conftest.$ac_ext <<_ACEOF
9281 #line $LINENO "configure"
9282 /* confdefs.h.  */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h.  */
9287 #include <ctype.h>
9288 #if ((' ' & 0x0FF) == 0x020)
9289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9291 #else
9292 # define ISLOWER(c) \
9293                    (('a' <= (c) && (c) <= 'i') \
9294                      || ('j' <= (c) && (c) <= 'r') \
9295                      || ('s' <= (c) && (c) <= 'z'))
9296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9297 #endif
9298
9299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9300 int
9301 main ()
9302 {
9303   int i;
9304   for (i = 0; i < 256; i++)
9305     if (XOR (islower (i), ISLOWER (i))
9306         || toupper (i) != TOUPPER (i))
9307       exit(2);
9308   exit (0);
9309 }
9310 _ACEOF
9311 rm -f conftest$ac_exeext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9313   (eval $ac_link) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   :
9323 else
9324   echo "$as_me: program exited with status $ac_status" >&5
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328 ( exit $ac_status )
9329 ac_cv_header_stdc=no
9330 fi
9331 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 fi
9334 fi
9335 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9336 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9337 if test $ac_cv_header_stdc = yes; then
9338
9339 cat >>confdefs.h <<\_ACEOF
9340 #define STDC_HEADERS 1
9341 _ACEOF
9342
9343 fi
9344
9345 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9346 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9347 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   cat >conftest.$ac_ext <<_ACEOF
9351 #line $LINENO "configure"
9352 /* confdefs.h.  */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h.  */
9357 #include <sys/types.h>
9358 int
9359 main ()
9360 {
9361 return makedev(0, 0);
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368   (eval $ac_link) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -s conftest$ac_exeext'
9373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374   (eval $ac_try) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; }; then
9378   ac_cv_header_sys_types_h_makedev=yes
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383 ac_cv_header_sys_types_h_makedev=no
9384 fi
9385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9386
9387 fi
9388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9389 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9390
9391 if test $ac_cv_header_sys_types_h_makedev = no; then
9392 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9393   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9394 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9395 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9396   echo $ECHO_N "(cached) $ECHO_C" >&6
9397 fi
9398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9399 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9400 else
9401   # Is the header compilable?
9402 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9403 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 $ac_includes_default
9412 #include <sys/mkdev.h>
9413 _ACEOF
9414 rm -f conftest.$ac_objext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416   (eval $ac_compile) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } &&
9420          { ac_try='test -s conftest.$ac_objext'
9421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422   (eval $ac_try) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); }; }; then
9426   ac_header_compiler=yes
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 ac_header_compiler=no
9432 fi
9433 rm -f conftest.$ac_objext conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9435 echo "${ECHO_T}$ac_header_compiler" >&6
9436
9437 # Is the header present?
9438 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9439 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9440 cat >conftest.$ac_ext <<_ACEOF
9441 #line $LINENO "configure"
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447 #include <sys/mkdev.h>
9448 _ACEOF
9449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9451   ac_status=$?
9452   grep -v '^ *+' conftest.er1 >conftest.err
9453   rm -f conftest.er1
9454   cat conftest.err >&5
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } >/dev/null; then
9457   if test -s conftest.err; then
9458     ac_cpp_err=$ac_c_preproc_warn_flag
9459   else
9460     ac_cpp_err=
9461   fi
9462 else
9463   ac_cpp_err=yes
9464 fi
9465 if test -z "$ac_cpp_err"; then
9466   ac_header_preproc=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471   ac_header_preproc=no
9472 fi
9473 rm -f conftest.err conftest.$ac_ext
9474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9475 echo "${ECHO_T}$ac_header_preproc" >&6
9476
9477 # So?  What about this header?
9478 case $ac_header_compiler:$ac_header_preproc in
9479   yes:no )
9480     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9481 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9482     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9483 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9484     (
9485       cat <<\_ASBOX
9486 ## ------------------------------------ ##
9487 ## Report this to bug-autoconf@gnu.org. ##
9488 ## ------------------------------------ ##
9489 _ASBOX
9490     ) |
9491       sed "s/^/$as_me: WARNING:     /" >&2
9492     ;;
9493   no:yes )
9494     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9495 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9496     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9497 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9498     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9499 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9500     (
9501       cat <<\_ASBOX
9502 ## ------------------------------------ ##
9503 ## Report this to bug-autoconf@gnu.org. ##
9504 ## ------------------------------------ ##
9505 _ASBOX
9506     ) |
9507       sed "s/^/$as_me: WARNING:     /" >&2
9508     ;;
9509 esac
9510 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9511 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9512 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9516 fi
9517 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9518 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9519
9520 fi
9521 if test $ac_cv_header_sys_mkdev_h = yes; then
9522
9523 cat >>confdefs.h <<\_ACEOF
9524 #define MAJOR_IN_MKDEV 1
9525 _ACEOF
9526
9527 fi
9528
9529
9530
9531   if test $ac_cv_header_sys_mkdev_h = no; then
9532     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9533   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9534 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9535 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 fi
9538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9539 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9540 else
9541   # Is the header compilable?
9542 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9543 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9544 cat >conftest.$ac_ext <<_ACEOF
9545 #line $LINENO "configure"
9546 /* confdefs.h.  */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h.  */
9551 $ac_includes_default
9552 #include <sys/sysmacros.h>
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_header_compiler=yes
9567 else
9568   echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9570
9571 ac_header_compiler=no
9572 fi
9573 rm -f conftest.$ac_objext conftest.$ac_ext
9574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575 echo "${ECHO_T}$ac_header_compiler" >&6
9576
9577 # Is the header present?
9578 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9579 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9581 #line $LINENO "configure"
9582 /* confdefs.h.  */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h.  */
9587 #include <sys/sysmacros.h>
9588 _ACEOF
9589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9590   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9591   ac_status=$?
9592   grep -v '^ *+' conftest.er1 >conftest.err
9593   rm -f conftest.er1
9594   cat conftest.err >&5
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } >/dev/null; then
9597   if test -s conftest.err; then
9598     ac_cpp_err=$ac_c_preproc_warn_flag
9599   else
9600     ac_cpp_err=
9601   fi
9602 else
9603   ac_cpp_err=yes
9604 fi
9605 if test -z "$ac_cpp_err"; then
9606   ac_header_preproc=yes
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611   ac_header_preproc=no
9612 fi
9613 rm -f conftest.err conftest.$ac_ext
9614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9615 echo "${ECHO_T}$ac_header_preproc" >&6
9616
9617 # So?  What about this header?
9618 case $ac_header_compiler:$ac_header_preproc in
9619   yes:no )
9620     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9621 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9622     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9623 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9624     (
9625       cat <<\_ASBOX
9626 ## ------------------------------------ ##
9627 ## Report this to bug-autoconf@gnu.org. ##
9628 ## ------------------------------------ ##
9629 _ASBOX
9630     ) |
9631       sed "s/^/$as_me: WARNING:     /" >&2
9632     ;;
9633   no:yes )
9634     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9635 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9636     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9637 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9638     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9639 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9640     (
9641       cat <<\_ASBOX
9642 ## ------------------------------------ ##
9643 ## Report this to bug-autoconf@gnu.org. ##
9644 ## ------------------------------------ ##
9645 _ASBOX
9646     ) |
9647       sed "s/^/$as_me: WARNING:     /" >&2
9648     ;;
9649 esac
9650 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9651 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9652 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9656 fi
9657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9658 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9659
9660 fi
9661 if test $ac_cv_header_sys_sysmacros_h = yes; then
9662
9663 cat >>confdefs.h <<\_ACEOF
9664 #define MAJOR_IN_SYSMACROS 1
9665 _ACEOF
9666
9667 fi
9668
9669
9670   fi
9671 fi
9672
9673
9674
9675
9676
9677
9678 ac_header_dirent=no
9679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9680   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9681 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9682 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 /* confdefs.h.  */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h.  */
9693 #include <sys/types.h>
9694 #include <$ac_hdr>
9695
9696 int
9697 main ()
9698 {
9699 if ((DIR *) 0)
9700 return 0;
9701   ;
9702   return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext
9706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707   (eval $ac_compile) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); } &&
9711          { ac_try='test -s conftest.$ac_objext'
9712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713   (eval $ac_try) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717   eval "$as_ac_Header=yes"
9718 else
9719   echo "$as_me: failed program was:" >&5
9720 sed 's/^/| /' conftest.$ac_ext >&5
9721
9722 eval "$as_ac_Header=no"
9723 fi
9724 rm -f conftest.$ac_objext conftest.$ac_ext
9725 fi
9726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9729   cat >>confdefs.h <<_ACEOF
9730 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9731 _ACEOF
9732
9733 ac_header_dirent=$ac_hdr; break
9734 fi
9735
9736 done
9737 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9738 if test $ac_header_dirent = dirent.h; then
9739   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9740 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9741 if test "${ac_cv_search_opendir+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   ac_func_search_save_LIBS=$LIBS
9745 ac_cv_search_opendir=no
9746 cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753
9754 /* Override any gcc2 internal prototype to avoid an error.  */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 /* We use char because int might match the return type of a gcc2
9759    builtin and then its argument prototype would still apply.  */
9760 char opendir ();
9761 int
9762 main ()
9763 {
9764 opendir ();
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771   (eval $ac_link) 2>&5
9772   ac_status=$?
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -s conftest$ac_exeext'
9776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777   (eval $ac_try) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; }; then
9781   ac_cv_search_opendir="none required"
9782 else
9783   echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786 fi
9787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9788 if test "$ac_cv_search_opendir" = no; then
9789   for ac_lib in dir; do
9790     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9791     cat >conftest.$ac_ext <<_ACEOF
9792 #line $LINENO "configure"
9793 /* confdefs.h.  */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h.  */
9798
9799 /* Override any gcc2 internal prototype to avoid an error.  */
9800 #ifdef __cplusplus
9801 extern "C"
9802 #endif
9803 /* We use char because int might match the return type of a gcc2
9804    builtin and then its argument prototype would still apply.  */
9805 char opendir ();
9806 int
9807 main ()
9808 {
9809 opendir ();
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816   (eval $ac_link) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); } &&
9820          { ac_try='test -s conftest$ac_exeext'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; }; then
9826   ac_cv_search_opendir="-l$ac_lib"
9827 break
9828 else
9829   echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9831
9832 fi
9833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9834   done
9835 fi
9836 LIBS=$ac_func_search_save_LIBS
9837 fi
9838 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9839 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9840 if test "$ac_cv_search_opendir" != no; then
9841   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9842
9843 fi
9844
9845 else
9846   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9848 if test "${ac_cv_search_opendir+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   ac_func_search_save_LIBS=$LIBS
9852 ac_cv_search_opendir=no
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860
9861 /* Override any gcc2 internal prototype to avoid an error.  */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 /* We use char because int might match the return type of a gcc2
9866    builtin and then its argument prototype would still apply.  */
9867 char opendir ();
9868 int
9869 main ()
9870 {
9871 opendir ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878   (eval $ac_link) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -s conftest$ac_exeext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_search_opendir="none required"
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 fi
9894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9895 if test "$ac_cv_search_opendir" = no; then
9896   for ac_lib in x; do
9897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9898     cat >conftest.$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905
9906 /* Override any gcc2 internal prototype to avoid an error.  */
9907 #ifdef __cplusplus
9908 extern "C"
9909 #endif
9910 /* We use char because int might match the return type of a gcc2
9911    builtin and then its argument prototype would still apply.  */
9912 char opendir ();
9913 int
9914 main ()
9915 {
9916 opendir ();
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923   (eval $ac_link) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   ac_cv_search_opendir="-l$ac_lib"
9934 break
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 fi
9940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9941   done
9942 fi
9943 LIBS=$ac_func_search_save_LIBS
9944 fi
9945 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9946 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9947 if test "$ac_cv_search_opendir" != no; then
9948   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9949
9950 fi
9951
9952 fi
9953
9954 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9955 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9956 if test "${ac_cv_header_stat_broken+set}" = set; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959   cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9961 /* confdefs.h.  */
9962 _ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h.  */
9966 #include <sys/types.h>
9967 #include <sys/stat.h>
9968
9969 #if defined(S_ISBLK) && defined(S_IFDIR)
9970 # if S_ISBLK (S_IFDIR)
9971 You lose.
9972 # endif
9973 #endif
9974
9975 #if defined(S_ISBLK) && defined(S_IFCHR)
9976 # if S_ISBLK (S_IFCHR)
9977 You lose.
9978 # endif
9979 #endif
9980
9981 #if defined(S_ISLNK) && defined(S_IFREG)
9982 # if S_ISLNK (S_IFREG)
9983 You lose.
9984 # endif
9985 #endif
9986
9987 #if defined(S_ISSOCK) && defined(S_IFREG)
9988 # if S_ISSOCK (S_IFREG)
9989 You lose.
9990 # endif
9991 #endif
9992
9993 _ACEOF
9994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995   $EGREP "You lose" >/dev/null 2>&1; then
9996   ac_cv_header_stat_broken=yes
9997 else
9998   ac_cv_header_stat_broken=no
9999 fi
10000 rm -f conftest*
10001
10002 fi
10003 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10004 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10005 if test $ac_cv_header_stat_broken = yes; then
10006
10007 cat >>confdefs.h <<\_ACEOF
10008 #define STAT_MACROS_BROKEN 1
10009 _ACEOF
10010
10011 fi
10012
10013 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10014 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10015 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   cat >conftest.$ac_ext <<_ACEOF
10019 #line $LINENO "configure"
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025 #include <sys/types.h>
10026 #include <sys/wait.h>
10027 #ifndef WEXITSTATUS
10028 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10029 #endif
10030 #ifndef WIFEXITED
10031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10032 #endif
10033
10034 int
10035 main ()
10036 {
10037   int s;
10038   wait (&s);
10039   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10046   (eval $ac_compile) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); } &&
10050          { ac_try='test -s conftest.$ac_objext'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; }; then
10056   ac_cv_header_sys_wait_h=yes
10057 else
10058   echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 ac_cv_header_sys_wait_h=no
10062 fi
10063 rm -f conftest.$ac_objext conftest.$ac_ext
10064 fi
10065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10066 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10067 if test $ac_cv_header_sys_wait_h = yes; then
10068
10069 cat >>confdefs.h <<\_ACEOF
10070 #define HAVE_SYS_WAIT_H 1
10071 _ACEOF
10072
10073 fi
10074
10075 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10076 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10077 if test "${ac_cv_header_time+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 #include <sys/types.h>
10088 #include <sys/time.h>
10089 #include <time.h>
10090
10091 int
10092 main ()
10093 {
10094 if ((struct tm *) 0)
10095 return 0;
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102   (eval $ac_compile) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -s conftest.$ac_objext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   ac_cv_header_time=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_cv_header_time=no
10118 fi
10119 rm -f conftest.$ac_objext conftest.$ac_ext
10120 fi
10121 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10122 echo "${ECHO_T}$ac_cv_header_time" >&6
10123 if test $ac_cv_header_time = yes; then
10124
10125 cat >>confdefs.h <<\_ACEOF
10126 #define TIME_WITH_SYS_TIME 1
10127 _ACEOF
10128
10129 fi
10130
10131
10132 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10133 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10134 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10135   echo $ECHO_N "(cached) $ECHO_C" >&6
10136 else
10137   cat >conftest.$ac_ext <<_ACEOF
10138 #line $LINENO "configure"
10139 /* confdefs.h.  */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h.  */
10144 $ac_includes_default
10145 int
10146 main ()
10147 {
10148 static struct stat ac_aggr;
10149 if (ac_aggr.st_blksize)
10150 return 0;
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10157   (eval $ac_compile) 2>&5
10158   ac_status=$?
10159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160   (exit $ac_status); } &&
10161          { ac_try='test -s conftest.$ac_objext'
10162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163   (eval $ac_try) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; }; then
10167   ac_cv_member_struct_stat_st_blksize=yes
10168 else
10169   echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 cat >conftest.$ac_ext <<_ACEOF
10173 #line $LINENO "configure"
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179 $ac_includes_default
10180 int
10181 main ()
10182 {
10183 static struct stat ac_aggr;
10184 if (sizeof ac_aggr.st_blksize)
10185 return 0;
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10192   (eval $ac_compile) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); } &&
10196          { ac_try='test -s conftest.$ac_objext'
10197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198   (eval $ac_try) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); }; }; then
10202   ac_cv_member_struct_stat_st_blksize=yes
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207 ac_cv_member_struct_stat_st_blksize=no
10208 fi
10209 rm -f conftest.$ac_objext conftest.$ac_ext
10210 fi
10211 rm -f conftest.$ac_objext conftest.$ac_ext
10212 fi
10213 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10214 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10215 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10216
10217 cat >>confdefs.h <<_ACEOF
10218 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10219 _ACEOF
10220
10221
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_ST_BLKSIZE 1
10224 _ACEOF
10225
10226 fi
10227
10228
10229 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10230 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10231 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   cat >conftest.$ac_ext <<_ACEOF
10235 #line $LINENO "configure"
10236 /* confdefs.h.  */
10237 _ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h.  */
10241 $ac_includes_default
10242 int
10243 main ()
10244 {
10245 static struct stat ac_aggr;
10246 if (ac_aggr.st_blocks)
10247 return 0;
10248   ;
10249   return 0;
10250 }
10251 _ACEOF
10252 rm -f conftest.$ac_objext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10254   (eval $ac_compile) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } &&
10258          { ac_try='test -s conftest.$ac_objext'
10259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260   (eval $ac_try) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_member_struct_stat_st_blocks=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 cat >conftest.$ac_ext <<_ACEOF
10270 #line $LINENO "configure"
10271 /* confdefs.h.  */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h.  */
10276 $ac_includes_default
10277 int
10278 main ()
10279 {
10280 static struct stat ac_aggr;
10281 if (sizeof ac_aggr.st_blocks)
10282 return 0;
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289   (eval $ac_compile) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } &&
10293          { ac_try='test -s conftest.$ac_objext'
10294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295   (eval $ac_try) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); }; }; then
10299   ac_cv_member_struct_stat_st_blocks=yes
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_cv_member_struct_stat_st_blocks=no
10305 fi
10306 rm -f conftest.$ac_objext conftest.$ac_ext
10307 fi
10308 rm -f conftest.$ac_objext conftest.$ac_ext
10309 fi
10310 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10311 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10312 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10313
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10316 _ACEOF
10317
10318
10319 cat >>confdefs.h <<\_ACEOF
10320 #define HAVE_ST_BLOCKS 1
10321 _ACEOF
10322
10323 else
10324   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10325 fi
10326
10327
10328 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10329 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10330 if test "${ac_cv_struct_tm+set}" = set; then
10331   echo $ECHO_N "(cached) $ECHO_C" >&6
10332 else
10333   cat >conftest.$ac_ext <<_ACEOF
10334 #line $LINENO "configure"
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340 #include <sys/types.h>
10341 #include <time.h>
10342
10343 int
10344 main ()
10345 {
10346 struct tm *tp; tp->tm_sec;
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>&5
10354   ac_status=$?
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -s conftest.$ac_objext'
10358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359   (eval $ac_try) 2>&5
10360   ac_status=$?
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); }; }; then
10363   ac_cv_struct_tm=time.h
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368 ac_cv_struct_tm=sys/time.h
10369 fi
10370 rm -f conftest.$ac_objext conftest.$ac_ext
10371 fi
10372 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10373 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10374 if test $ac_cv_struct_tm = sys/time.h; then
10375
10376 cat >>confdefs.h <<\_ACEOF
10377 #define TM_IN_SYS_TIME 1
10378 _ACEOF
10379
10380 fi
10381
10382 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10383 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10384 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   cat >conftest.$ac_ext <<_ACEOF
10388 #line $LINENO "configure"
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394 #include <sys/types.h>
10395 #include <$ac_cv_struct_tm>
10396
10397
10398 int
10399 main ()
10400 {
10401 static struct tm ac_aggr;
10402 if (ac_aggr.tm_zone)
10403 return 0;
10404   ;
10405   return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -s conftest.$ac_objext'
10415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416   (eval $ac_try) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; }; then
10420   ac_cv_member_struct_tm_tm_zone=yes
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 cat >conftest.$ac_ext <<_ACEOF
10426 #line $LINENO "configure"
10427 /* confdefs.h.  */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h.  */
10432 #include <sys/types.h>
10433 #include <$ac_cv_struct_tm>
10434
10435
10436 int
10437 main ()
10438 {
10439 static struct tm ac_aggr;
10440 if (sizeof ac_aggr.tm_zone)
10441 return 0;
10442   ;
10443   return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest.$ac_objext
10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448   (eval $ac_compile) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } &&
10452          { ac_try='test -s conftest.$ac_objext'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; }; then
10458   ac_cv_member_struct_tm_tm_zone=yes
10459 else
10460   echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10462
10463 ac_cv_member_struct_tm_tm_zone=no
10464 fi
10465 rm -f conftest.$ac_objext conftest.$ac_ext
10466 fi
10467 rm -f conftest.$ac_objext conftest.$ac_ext
10468 fi
10469 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10470 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10471 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10472
10473 cat >>confdefs.h <<_ACEOF
10474 #define HAVE_STRUCT_TM_TM_ZONE 1
10475 _ACEOF
10476
10477
10478 fi
10479
10480 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10481
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_TM_ZONE 1
10484 _ACEOF
10485
10486 else
10487   echo "$as_me:$LINENO: checking for tzname" >&5
10488 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10489 if test "${ac_cv_var_tzname+set}" = set; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 #line $LINENO "configure"
10494 /* confdefs.h.  */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h.  */
10499 #include <time.h>
10500 #ifndef tzname /* For SGI.  */
10501 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10502 #endif
10503
10504 int
10505 main ()
10506 {
10507 atoi(*tzname);
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514   (eval $ac_link) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -s conftest$ac_exeext'
10519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520   (eval $ac_try) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); }; }; then
10524   ac_cv_var_tzname=yes
10525 else
10526   echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10528
10529 ac_cv_var_tzname=no
10530 fi
10531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10532 fi
10533 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10534 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10535   if test $ac_cv_var_tzname = yes; then
10536
10537 cat >>confdefs.h <<\_ACEOF
10538 #define HAVE_TZNAME 1
10539 _ACEOF
10540
10541   fi
10542 fi
10543
10544
10545 echo "$as_me:$LINENO: checking for utime.h" >&5
10546 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10547 if test "${ba_cv_header_utime_h+set}" = set; then
10548   echo $ECHO_N "(cached) $ECHO_C" >&6
10549 else
10550   cat >conftest.$ac_ext <<_ACEOF
10551 #line $LINENO "configure"
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557
10558 #include <sys/types.h>
10559 #include <utime.h>
10560 int
10561 main ()
10562 {
10563 struct utimbuf foo
10564   ;
10565   return 0;
10566 }
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570   (eval $ac_compile) 2>&5
10571   ac_status=$?
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); } &&
10574          { ac_try='test -s conftest.$ac_objext'
10575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576   (eval $ac_try) 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; }; then
10580   ba_cv_header_utime_h=yes
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585 ba_cv_header_utime_h=no
10586 fi
10587 rm -f conftest.$ac_objext conftest.$ac_ext
10588 fi
10589 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10590 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10591 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10592 #define HAVE_UTIME_H 1
10593 _ACEOF
10594
10595
10596 echo "$as_me:$LINENO: checking for socklen_t" >&5
10597 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10598 if test "${ba_cv_header_socklen_t+set}" = set; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608
10609 #include <sys/types.h>
10610 #include <sys/socket.h>
10611 int
10612 main ()
10613 {
10614 socklen_t x
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10621   (eval $ac_compile) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   ba_cv_header_socklen_t=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 ba_cv_header_socklen_t=no
10637 fi
10638 rm -f conftest.$ac_objext conftest.$ac_ext
10639 fi
10640 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10641 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10642 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_SOCKLEN_T 1
10644 _ACEOF
10645
10646
10647 echo "$as_me:$LINENO: checking for bigendian" >&5
10648 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10649 if test "${ba_cv_bigendian+set}" = set; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652   if test "$cross_compiling" = yes; then
10653   ba_cv_bigendian=no
10654 else
10655   cat >conftest.$ac_ext <<_ACEOF
10656 #line $LINENO "configure"
10657 /* confdefs.h.  */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h.  */
10662 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10663 _ACEOF
10664 rm -f conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666   (eval $ac_link) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; }; then
10675   ba_cv_bigendian=yes
10676 else
10677   echo "$as_me: program exited with status $ac_status" >&5
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ( exit $ac_status )
10682 ba_cv_bigendian=no
10683 fi
10684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 fi
10687 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10688 echo "${ECHO_T}$ba_cv_bigendian" >&6
10689 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10690 #define HAVE_BIGENDIAN 1
10691 _ACEOF
10692
10693
10694
10695 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10696 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10697 if test "${ac_cv_c_const+set}" = set; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700   cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10702 /* confdefs.h.  */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h.  */
10707
10708 int
10709 main ()
10710 {
10711 /* FIXME: Include the comments suggested by Paul. */
10712 #ifndef __cplusplus
10713   /* Ultrix mips cc rejects this.  */
10714   typedef int charset[2];
10715   const charset x;
10716   /* SunOS 4.1.1 cc rejects this.  */
10717   char const *const *ccp;
10718   char **p;
10719   /* NEC SVR4.0.2 mips cc rejects this.  */
10720   struct point {int x, y;};
10721   static struct point const zero = {0,0};
10722   /* AIX XL C 1.02.0.0 rejects this.
10723      It does not let you subtract one const X* pointer from another in
10724      an arm of an if-expression whose if-part is not a constant
10725      expression */
10726   const char *g = "string";
10727   ccp = &g + (g ? g-g : 0);
10728   /* HPUX 7.0 cc rejects these. */
10729   ++ccp;
10730   p = (char**) ccp;
10731   ccp = (char const *const *) p;
10732   { /* SCO 3.2v4 cc rejects this.  */
10733     char *t;
10734     char const *s = 0 ? (char *) 0 : (char const *) 0;
10735
10736     *t++ = 0;
10737   }
10738   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10739     int x[] = {25, 17};
10740     const int *foo = &x[0];
10741     ++foo;
10742   }
10743   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10744     typedef const int *iptr;
10745     iptr p = 0;
10746     ++p;
10747   }
10748   { /* AIX XL C 1.02.0.0 rejects this saying
10749        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10750     struct s { int j; const int *ap[3]; };
10751     struct s *b; b->j = 5;
10752   }
10753   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10754     const int foo = 10;
10755   }
10756 #endif
10757
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764   (eval $ac_compile) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); } &&
10768          { ac_try='test -s conftest.$ac_objext'
10769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770   (eval $ac_try) 2>&5
10771   ac_status=$?
10772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773   (exit $ac_status); }; }; then
10774   ac_cv_c_const=yes
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779 ac_cv_c_const=no
10780 fi
10781 rm -f conftest.$ac_objext conftest.$ac_ext
10782 fi
10783 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10784 echo "${ECHO_T}$ac_cv_c_const" >&6
10785 if test $ac_cv_c_const = no; then
10786
10787 cat >>confdefs.h <<\_ACEOF
10788 #define const
10789 _ACEOF
10790
10791 fi
10792
10793
10794
10795 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10796 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10797 fstype=no
10798 # The order of these tests is important.
10799 cat >conftest.$ac_ext <<_ACEOF
10800 #line $LINENO "configure"
10801 /* confdefs.h.  */
10802 _ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h.  */
10806 #include <sys/statvfs.h>
10807 #include <sys/fstyp.h>
10808 _ACEOF
10809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10811   ac_status=$?
10812   grep -v '^ *+' conftest.er1 >conftest.err
10813   rm -f conftest.er1
10814   cat conftest.err >&5
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); } >/dev/null; then
10817   if test -s conftest.err; then
10818     ac_cpp_err=$ac_c_preproc_warn_flag
10819   else
10820     ac_cpp_err=
10821   fi
10822 else
10823   ac_cpp_err=yes
10824 fi
10825 if test -z "$ac_cpp_err"; then
10826   cat >>confdefs.h <<\_ACEOF
10827 #define FSTYPE_STATVFS 1
10828 _ACEOF
10829  fstype=SVR4
10830 else
10831   echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10833
10834
10835 fi
10836 rm -f conftest.err conftest.$ac_ext
10837 if test $fstype = no; then
10838 cat >conftest.$ac_ext <<_ACEOF
10839 #line $LINENO "configure"
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845 #include <sys/statfs.h>
10846 #include <sys/fstyp.h>
10847 _ACEOF
10848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10849   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } >/dev/null; then
10856   if test -s conftest.err; then
10857     ac_cpp_err=$ac_c_preproc_warn_flag
10858   else
10859     ac_cpp_err=
10860   fi
10861 else
10862   ac_cpp_err=yes
10863 fi
10864 if test -z "$ac_cpp_err"; then
10865   cat >>confdefs.h <<\_ACEOF
10866 #define FSTYPE_USG_STATFS 1
10867 _ACEOF
10868  fstype=SVR3
10869 else
10870   echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873
10874 fi
10875 rm -f conftest.err conftest.$ac_ext
10876 fi
10877 if test $fstype = no; then
10878 cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #include <sys/statfs.h>
10886 #include <sys/vmount.h>
10887 _ACEOF
10888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } >/dev/null; then
10896   if test -s conftest.err; then
10897     ac_cpp_err=$ac_c_preproc_warn_flag
10898   else
10899     ac_cpp_err=
10900   fi
10901 else
10902   ac_cpp_err=yes
10903 fi
10904 if test -z "$ac_cpp_err"; then
10905   cat >>confdefs.h <<\_ACEOF
10906 #define FSTYPE_AIX_STATFS 1
10907 _ACEOF
10908  fstype=AIX
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913
10914 fi
10915 rm -f conftest.err conftest.$ac_ext
10916 fi
10917 if test $fstype = no; then
10918 cat >conftest.$ac_ext <<_ACEOF
10919 #line $LINENO "configure"
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925 #include <mntent.h>
10926 _ACEOF
10927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10929   ac_status=$?
10930   grep -v '^ *+' conftest.er1 >conftest.err
10931   rm -f conftest.er1
10932   cat conftest.err >&5
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); } >/dev/null; then
10935   if test -s conftest.err; then
10936     ac_cpp_err=$ac_c_preproc_warn_flag
10937   else
10938     ac_cpp_err=
10939   fi
10940 else
10941   ac_cpp_err=yes
10942 fi
10943 if test -z "$ac_cpp_err"; then
10944   cat >>confdefs.h <<\_ACEOF
10945 #define FSTYPE_MNTENT 1
10946 _ACEOF
10947  fstype=4.3BSD
10948 else
10949   echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10951
10952
10953 fi
10954 rm -f conftest.err conftest.$ac_ext
10955 fi
10956 if test $fstype = no; then
10957 cat >conftest.$ac_ext <<_ACEOF
10958 #line $LINENO "configure"
10959 /* confdefs.h.  */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h.  */
10964 #include <sys/mount.h>
10965
10966 _ACEOF
10967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10968   $EGREP "f_type;" >/dev/null 2>&1; then
10969   cat >>confdefs.h <<\_ACEOF
10970 #define FSTYPE_STATFS 1
10971 _ACEOF
10972  fstype=4.4BSD/OSF1
10973 fi
10974 rm -f conftest*
10975
10976 fi
10977 if test $fstype = no; then
10978 cat >conftest.$ac_ext <<_ACEOF
10979 #line $LINENO "configure"
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985 #include <sys/mount.h>
10986 #include <sys/fs_types.h>
10987 _ACEOF
10988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10990   ac_status=$?
10991   grep -v '^ *+' conftest.er1 >conftest.err
10992   rm -f conftest.er1
10993   cat conftest.err >&5
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); } >/dev/null; then
10996   if test -s conftest.err; then
10997     ac_cpp_err=$ac_c_preproc_warn_flag
10998   else
10999     ac_cpp_err=
11000   fi
11001 else
11002   ac_cpp_err=yes
11003 fi
11004 if test -z "$ac_cpp_err"; then
11005   cat >>confdefs.h <<\_ACEOF
11006 #define FSTYPE_GETMNT 1
11007 _ACEOF
11008  fstype=Ultrix
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013
11014 fi
11015 rm -f conftest.err conftest.$ac_ext
11016 fi
11017 echo "$as_me:$LINENO: result: $fstype" >&5
11018 echo "${ECHO_T}$fstype" >&6
11019
11020 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11021 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11022 if test "${ac_cv_type_signal+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 #include <sys/types.h>
11033 #include <signal.h>
11034 #ifdef signal
11035 # undef signal
11036 #endif
11037 #ifdef __cplusplus
11038 extern "C" void (*signal (int, void (*)(int)))(int);
11039 #else
11040 void (*signal ()) ();
11041 #endif
11042
11043 int
11044 main ()
11045 {
11046 int i;
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053   (eval $ac_compile) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); } &&
11057          { ac_try='test -s conftest.$ac_objext'
11058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059   (eval $ac_try) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }; then
11063   ac_cv_type_signal=void
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 ac_cv_type_signal=int
11069 fi
11070 rm -f conftest.$ac_objext conftest.$ac_ext
11071 fi
11072 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11073 echo "${ECHO_T}$ac_cv_type_signal" >&6
11074
11075 cat >>confdefs.h <<_ACEOF
11076 #define RETSIGTYPE $ac_cv_type_signal
11077 _ACEOF
11078
11079
11080
11081 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11082 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11083 if test "${bash_cv_signal_vintage+set}" = set; then
11084   echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086
11087   cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11089 /* confdefs.h.  */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h.  */
11094 #include <signal.h>
11095 int
11096 main ()
11097 {
11098
11099     sigset_t ss;
11100     struct sigaction sa;
11101     sigemptyset(&ss); sigsuspend(&ss);
11102     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11103     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11104
11105   ;
11106   return 0;
11107 }
11108 _ACEOF
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111   (eval $ac_link) 2>&5
11112   ac_status=$?
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } &&
11115          { ac_try='test -s conftest$ac_exeext'
11116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117   (eval $ac_try) 2>&5
11118   ac_status=$?
11119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120   (exit $ac_status); }; }; then
11121   bash_cv_signal_vintage=posix
11122 else
11123   echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126
11127     cat >conftest.$ac_ext <<_ACEOF
11128 #line $LINENO "configure"
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134 #include <signal.h>
11135 int
11136 main ()
11137 {
11138
11139         int mask = sigmask(SIGINT);
11140         sigsetmask(mask); sigblock(mask); sigpause(mask);
11141
11142   ;
11143   return 0;
11144 }
11145 _ACEOF
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148   (eval $ac_link) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } &&
11152          { ac_try='test -s conftest$ac_exeext'
11153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154   (eval $ac_try) 2>&5
11155   ac_status=$?
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); }; }; then
11158   bash_cv_signal_vintage=4.2bsd
11159 else
11160   echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11162
11163
11164       cat >conftest.$ac_ext <<_ACEOF
11165 #line $LINENO "configure"
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171
11172         #include <signal.h>
11173         RETSIGTYPE foo() { }
11174 int
11175 main ()
11176 {
11177
11178                 int mask = sigmask(SIGINT);
11179                 sigset(SIGINT, foo); sigrelse(SIGINT);
11180                 sighold(SIGINT); sigpause(SIGINT);
11181
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 rm -f conftest.$ac_objext conftest$ac_exeext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188   (eval $ac_link) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } &&
11192          { ac_try='test -s conftest$ac_exeext'
11193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194   (eval $ac_try) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; }; then
11198   bash_cv_signal_vintage=svr3
11199 else
11200   echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 bash_cv_signal_vintage=v7
11204
11205 fi
11206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11207
11208 fi
11209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11210
11211 fi
11212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11213
11214 fi
11215
11216 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11217 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11218 if test "$bash_cv_signal_vintage" = posix; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_POSIX_SIGNALS 1
11221 _ACEOF
11222
11223 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_BSD_SIGNALS 1
11226 _ACEOF
11227
11228 elif test "$bash_cv_signal_vintage" = svr3; then
11229 cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_USG_SIGHOLD 1
11231 _ACEOF
11232
11233 fi
11234
11235 echo "$as_me:$LINENO: checking for mode_t" >&5
11236 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11237 if test "${ac_cv_type_mode_t+set}" = set; then
11238   echo $ECHO_N "(cached) $ECHO_C" >&6
11239 else
11240   cat >conftest.$ac_ext <<_ACEOF
11241 #line $LINENO "configure"
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 $ac_includes_default
11248 int
11249 main ()
11250 {
11251 if ((mode_t *) 0)
11252   return 0;
11253 if (sizeof (mode_t))
11254   return 0;
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261   (eval $ac_compile) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } &&
11265          { ac_try='test -s conftest.$ac_objext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   ac_cv_type_mode_t=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276 ac_cv_type_mode_t=no
11277 fi
11278 rm -f conftest.$ac_objext conftest.$ac_ext
11279 fi
11280 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11281 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11282 if test $ac_cv_type_mode_t = yes; then
11283   :
11284 else
11285
11286 cat >>confdefs.h <<_ACEOF
11287 #define mode_t int
11288 _ACEOF
11289
11290 fi
11291
11292 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11293 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11294 if test "${ac_cv_type_uid_t+set}" = set; then
11295   echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297   cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11299 /* confdefs.h.  */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h.  */
11304 #include <sys/types.h>
11305
11306 _ACEOF
11307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11308   $EGREP "uid_t" >/dev/null 2>&1; then
11309   ac_cv_type_uid_t=yes
11310 else
11311   ac_cv_type_uid_t=no
11312 fi
11313 rm -f conftest*
11314
11315 fi
11316 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11317 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11318 if test $ac_cv_type_uid_t = no; then
11319
11320 cat >>confdefs.h <<\_ACEOF
11321 #define uid_t int
11322 _ACEOF
11323
11324
11325 cat >>confdefs.h <<\_ACEOF
11326 #define gid_t int
11327 _ACEOF
11328
11329 fi
11330
11331 echo "$as_me:$LINENO: checking for size_t" >&5
11332 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11333 if test "${ac_cv_type_size_t+set}" = set; then
11334   echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336   cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 $ac_includes_default
11344 int
11345 main ()
11346 {
11347 if ((size_t *) 0)
11348   return 0;
11349 if (sizeof (size_t))
11350   return 0;
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357   (eval $ac_compile) 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } &&
11361          { ac_try='test -s conftest.$ac_objext'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; }; then
11367   ac_cv_type_size_t=yes
11368 else
11369   echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_cv_type_size_t=no
11373 fi
11374 rm -f conftest.$ac_objext conftest.$ac_ext
11375 fi
11376 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11377 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11378 if test $ac_cv_type_size_t = yes; then
11379   :
11380 else
11381
11382 cat >>confdefs.h <<_ACEOF
11383 #define size_t unsigned
11384 _ACEOF
11385
11386 fi
11387
11388 echo "$as_me:$LINENO: checking for pid_t" >&5
11389 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11390 if test "${ac_cv_type_pid_t+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393   cat >conftest.$ac_ext <<_ACEOF
11394 #line $LINENO "configure"
11395 /* confdefs.h.  */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h.  */
11400 $ac_includes_default
11401 int
11402 main ()
11403 {
11404 if ((pid_t *) 0)
11405   return 0;
11406 if (sizeof (pid_t))
11407   return 0;
11408   ;
11409   return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11414   (eval $ac_compile) 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } &&
11418          { ac_try='test -s conftest.$ac_objext'
11419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420   (eval $ac_try) 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); }; }; then
11424   ac_cv_type_pid_t=yes
11425 else
11426   echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429 ac_cv_type_pid_t=no
11430 fi
11431 rm -f conftest.$ac_objext conftest.$ac_ext
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11434 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11435 if test $ac_cv_type_pid_t = yes; then
11436   :
11437 else
11438
11439 cat >>confdefs.h <<_ACEOF
11440 #define pid_t int
11441 _ACEOF
11442
11443 fi
11444
11445 echo "$as_me:$LINENO: checking for off_t" >&5
11446 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11447 if test "${ac_cv_type_off_t+set}" = set; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   cat >conftest.$ac_ext <<_ACEOF
11451 #line $LINENO "configure"
11452 /* confdefs.h.  */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h.  */
11457 $ac_includes_default
11458 int
11459 main ()
11460 {
11461 if ((off_t *) 0)
11462   return 0;
11463 if (sizeof (off_t))
11464   return 0;
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471   (eval $ac_compile) 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -s conftest.$ac_objext'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; }; then
11481   ac_cv_type_off_t=yes
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 ac_cv_type_off_t=no
11487 fi
11488 rm -f conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11491 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11492 if test $ac_cv_type_off_t = yes; then
11493   :
11494 else
11495
11496 cat >>confdefs.h <<_ACEOF
11497 #define off_t long
11498 _ACEOF
11499
11500 fi
11501
11502 echo "$as_me:$LINENO: checking for ino_t" >&5
11503 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11504 if test "${ac_cv_type_ino_t+set}" = set; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   cat >conftest.$ac_ext <<_ACEOF
11508 #line $LINENO "configure"
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 $ac_includes_default
11515 int
11516 main ()
11517 {
11518 if ((ino_t *) 0)
11519   return 0;
11520 if (sizeof (ino_t))
11521   return 0;
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 rm -f conftest.$ac_objext
11527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11528   (eval $ac_compile) 2>&5
11529   ac_status=$?
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -s conftest.$ac_objext'
11533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534   (eval $ac_try) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; }; then
11538   ac_cv_type_ino_t=yes
11539 else
11540   echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 ac_cv_type_ino_t=no
11544 fi
11545 rm -f conftest.$ac_objext conftest.$ac_ext
11546 fi
11547 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11548 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11549 if test $ac_cv_type_ino_t = yes; then
11550   :
11551 else
11552
11553 cat >>confdefs.h <<_ACEOF
11554 #define ino_t unsigned long
11555 _ACEOF
11556
11557 fi
11558
11559 echo "$as_me:$LINENO: checking for dev_t" >&5
11560 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11561 if test "${ac_cv_type_dev_t+set}" = set; then
11562   echo $ECHO_N "(cached) $ECHO_C" >&6
11563 else
11564   cat >conftest.$ac_ext <<_ACEOF
11565 #line $LINENO "configure"
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571 $ac_includes_default
11572 int
11573 main ()
11574 {
11575 if ((dev_t *) 0)
11576   return 0;
11577 if (sizeof (dev_t))
11578   return 0;
11579   ;
11580   return 0;
11581 }
11582 _ACEOF
11583 rm -f conftest.$ac_objext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11585   (eval $ac_compile) 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); } &&
11589          { ac_try='test -s conftest.$ac_objext'
11590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591   (eval $ac_try) 2>&5
11592   ac_status=$?
11593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594   (exit $ac_status); }; }; then
11595   ac_cv_type_dev_t=yes
11596 else
11597   echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11599
11600 ac_cv_type_dev_t=no
11601 fi
11602 rm -f conftest.$ac_objext conftest.$ac_ext
11603 fi
11604 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11605 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11606 if test $ac_cv_type_dev_t = yes; then
11607   :
11608 else
11609
11610 cat >>confdefs.h <<_ACEOF
11611 #define dev_t unsigned long
11612 _ACEOF
11613
11614 fi
11615
11616 echo "$as_me:$LINENO: checking for daddr_t" >&5
11617 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11618 if test "${ac_cv_type_daddr_t+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   cat >conftest.$ac_ext <<_ACEOF
11622 #line $LINENO "configure"
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628 $ac_includes_default
11629 int
11630 main ()
11631 {
11632 if ((daddr_t *) 0)
11633   return 0;
11634 if (sizeof (daddr_t))
11635   return 0;
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642   (eval $ac_compile) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); } &&
11646          { ac_try='test -s conftest.$ac_objext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   ac_cv_type_daddr_t=yes
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 ac_cv_type_daddr_t=no
11658 fi
11659 rm -f conftest.$ac_objext conftest.$ac_ext
11660 fi
11661 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11662 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11663 if test $ac_cv_type_daddr_t = yes; then
11664   :
11665 else
11666
11667 cat >>confdefs.h <<_ACEOF
11668 #define daddr_t long
11669 _ACEOF
11670
11671 fi
11672
11673 echo "$as_me:$LINENO: checking for major_t" >&5
11674 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11675 if test "${ac_cv_type_major_t+set}" = set; then
11676   echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678   cat >conftest.$ac_ext <<_ACEOF
11679 #line $LINENO "configure"
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 $ac_includes_default
11686 int
11687 main ()
11688 {
11689 if ((major_t *) 0)
11690   return 0;
11691 if (sizeof (major_t))
11692   return 0;
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11699   (eval $ac_compile) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } &&
11703          { ac_try='test -s conftest.$ac_objext'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; }; then
11709   ac_cv_type_major_t=yes
11710 else
11711   echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 ac_cv_type_major_t=no
11715 fi
11716 rm -f conftest.$ac_objext conftest.$ac_ext
11717 fi
11718 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11719 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11720 if test $ac_cv_type_major_t = yes; then
11721   :
11722 else
11723
11724 cat >>confdefs.h <<_ACEOF
11725 #define major_t int
11726 _ACEOF
11727
11728 fi
11729
11730 echo "$as_me:$LINENO: checking for minor_t" >&5
11731 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11732 if test "${ac_cv_type_minor_t+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   cat >conftest.$ac_ext <<_ACEOF
11736 #line $LINENO "configure"
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 $ac_includes_default
11743 int
11744 main ()
11745 {
11746 if ((minor_t *) 0)
11747   return 0;
11748 if (sizeof (minor_t))
11749   return 0;
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756   (eval $ac_compile) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } &&
11760          { ac_try='test -s conftest.$ac_objext'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   ac_cv_type_minor_t=yes
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_cv_type_minor_t=no
11772 fi
11773 rm -f conftest.$ac_objext conftest.$ac_ext
11774 fi
11775 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11776 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11777 if test $ac_cv_type_minor_t = yes; then
11778   :
11779 else
11780
11781 cat >>confdefs.h <<_ACEOF
11782 #define minor_t int
11783 _ACEOF
11784
11785 fi
11786
11787 echo "$as_me:$LINENO: checking for ssize_t" >&5
11788 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11789 if test "${ac_cv_type_ssize_t+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799 $ac_includes_default
11800 int
11801 main ()
11802 {
11803 if ((ssize_t *) 0)
11804   return 0;
11805 if (sizeof (ssize_t))
11806   return 0;
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813   (eval $ac_compile) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); } &&
11817          { ac_try='test -s conftest.$ac_objext'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; }; then
11823   ac_cv_type_ssize_t=yes
11824 else
11825   echo "$as_me: failed program was:" >&5
11826 sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_cv_type_ssize_t=no
11829 fi
11830 rm -f conftest.$ac_objext conftest.$ac_ext
11831 fi
11832 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11833 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11834 if test $ac_cv_type_ssize_t = yes; then
11835   :
11836 else
11837
11838 cat >>confdefs.h <<_ACEOF
11839 #define ssize_t int
11840 _ACEOF
11841
11842 fi
11843
11844 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11845 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11846 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11847   echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849   cat >conftest.$ac_ext <<_ACEOF
11850 #line $LINENO "configure"
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 $ac_includes_default
11857 int
11858 main ()
11859 {
11860 static struct stat ac_aggr;
11861 if (ac_aggr.st_blocks)
11862 return 0;
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869   (eval $ac_compile) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } &&
11873          { ac_try='test -s conftest.$ac_objext'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; }; then
11879   ac_cv_member_struct_stat_st_blocks=yes
11880 else
11881   echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 cat >conftest.$ac_ext <<_ACEOF
11885 #line $LINENO "configure"
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 $ac_includes_default
11892 int
11893 main ()
11894 {
11895 static struct stat ac_aggr;
11896 if (sizeof ac_aggr.st_blocks)
11897 return 0;
11898   ;
11899   return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11904   (eval $ac_compile) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); } &&
11908          { ac_try='test -s conftest.$ac_objext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   ac_cv_member_struct_stat_st_blocks=yes
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 ac_cv_member_struct_stat_st_blocks=no
11920 fi
11921 rm -f conftest.$ac_objext conftest.$ac_ext
11922 fi
11923 rm -f conftest.$ac_objext conftest.$ac_ext
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11926 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11927 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11928
11929 cat >>confdefs.h <<_ACEOF
11930 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11931 _ACEOF
11932
11933
11934 cat >>confdefs.h <<\_ACEOF
11935 #define HAVE_ST_BLOCKS 1
11936 _ACEOF
11937
11938 else
11939   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11940 fi
11941
11942
11943
11944 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11945 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11946 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949   cat >conftest.$ac_ext <<_ACEOF
11950 #line $LINENO "configure"
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956 $ac_includes_default
11957 int
11958 main ()
11959 {
11960 static struct stat ac_aggr;
11961 if (ac_aggr.st_rdev)
11962 return 0;
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969   (eval $ac_compile) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -s conftest.$ac_objext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_cv_member_struct_stat_st_rdev=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 cat >conftest.$ac_ext <<_ACEOF
11985 #line $LINENO "configure"
11986 /* confdefs.h.  */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h.  */
11991 $ac_includes_default
11992 int
11993 main ()
11994 {
11995 static struct stat ac_aggr;
11996 if (sizeof ac_aggr.st_rdev)
11997 return 0;
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12004   (eval $ac_compile) 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } &&
12008          { ac_try='test -s conftest.$ac_objext'
12009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010   (eval $ac_try) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; }; then
12014   ac_cv_member_struct_stat_st_rdev=yes
12015 else
12016   echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 ac_cv_member_struct_stat_st_rdev=no
12020 fi
12021 rm -f conftest.$ac_objext conftest.$ac_ext
12022 fi
12023 rm -f conftest.$ac_objext conftest.$ac_ext
12024 fi
12025 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12026 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12027 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12028
12029 cat >>confdefs.h <<_ACEOF
12030 #define HAVE_STRUCT_STAT_ST_RDEV 1
12031 _ACEOF
12032
12033
12034 cat >>confdefs.h <<\_ACEOF
12035 #define HAVE_ST_RDEV 1
12036 _ACEOF
12037
12038 fi
12039
12040
12041 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12042 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12043 if test "${ac_cv_struct_tm+set}" = set; then
12044   echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046   cat >conftest.$ac_ext <<_ACEOF
12047 #line $LINENO "configure"
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053 #include <sys/types.h>
12054 #include <time.h>
12055
12056 int
12057 main ()
12058 {
12059 struct tm *tp; tp->tm_sec;
12060   ;
12061   return 0;
12062 }
12063 _ACEOF
12064 rm -f conftest.$ac_objext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12066   (eval $ac_compile) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -s conftest.$ac_objext'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_cv_struct_tm=time.h
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_cv_struct_tm=sys/time.h
12082 fi
12083 rm -f conftest.$ac_objext conftest.$ac_ext
12084 fi
12085 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12086 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12087 if test $ac_cv_struct_tm = sys/time.h; then
12088
12089 cat >>confdefs.h <<\_ACEOF
12090 #define TM_IN_SYS_TIME 1
12091 _ACEOF
12092
12093 fi
12094
12095 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12096 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12097 if test "${ac_cv_c_const+set}" = set; then
12098   echo $ECHO_N "(cached) $ECHO_C" >&6
12099 else
12100   cat >conftest.$ac_ext <<_ACEOF
12101 #line $LINENO "configure"
12102 /* confdefs.h.  */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h.  */
12107
12108 int
12109 main ()
12110 {
12111 /* FIXME: Include the comments suggested by Paul. */
12112 #ifndef __cplusplus
12113   /* Ultrix mips cc rejects this.  */
12114   typedef int charset[2];
12115   const charset x;
12116   /* SunOS 4.1.1 cc rejects this.  */
12117   char const *const *ccp;
12118   char **p;
12119   /* NEC SVR4.0.2 mips cc rejects this.  */
12120   struct point {int x, y;};
12121   static struct point const zero = {0,0};
12122   /* AIX XL C 1.02.0.0 rejects this.
12123      It does not let you subtract one const X* pointer from another in
12124      an arm of an if-expression whose if-part is not a constant
12125      expression */
12126   const char *g = "string";
12127   ccp = &g + (g ? g-g : 0);
12128   /* HPUX 7.0 cc rejects these. */
12129   ++ccp;
12130   p = (char**) ccp;
12131   ccp = (char const *const *) p;
12132   { /* SCO 3.2v4 cc rejects this.  */
12133     char *t;
12134     char const *s = 0 ? (char *) 0 : (char const *) 0;
12135
12136     *t++ = 0;
12137   }
12138   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12139     int x[] = {25, 17};
12140     const int *foo = &x[0];
12141     ++foo;
12142   }
12143   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12144     typedef const int *iptr;
12145     iptr p = 0;
12146     ++p;
12147   }
12148   { /* AIX XL C 1.02.0.0 rejects this saying
12149        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12150     struct s { int j; const int *ap[3]; };
12151     struct s *b; b->j = 5;
12152   }
12153   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12154     const int foo = 10;
12155   }
12156 #endif
12157
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164   (eval $ac_compile) 2>&5
12165   ac_status=$?
12166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167   (exit $ac_status); } &&
12168          { ac_try='test -s conftest.$ac_objext'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; }; then
12174   ac_cv_c_const=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 ac_cv_c_const=no
12180 fi
12181 rm -f conftest.$ac_objext conftest.$ac_ext
12182 fi
12183 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12184 echo "${ECHO_T}$ac_cv_c_const" >&6
12185 if test $ac_cv_c_const = no; then
12186
12187 cat >>confdefs.h <<\_ACEOF
12188 #define const
12189 _ACEOF
12190
12191 fi
12192
12193
12194
12195 echo "$as_me:$LINENO: checking for char" >&5
12196 echo $ECHO_N "checking for char... $ECHO_C" >&6
12197 if test "${ac_cv_type_char+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   cat >conftest.$ac_ext <<_ACEOF
12201 #line $LINENO "configure"
12202 /* confdefs.h.  */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h.  */
12207 $ac_includes_default
12208 int
12209 main ()
12210 {
12211 if ((char *) 0)
12212   return 0;
12213 if (sizeof (char))
12214   return 0;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221   (eval $ac_compile) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -s conftest.$ac_objext'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   ac_cv_type_char=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 ac_cv_type_char=no
12237 fi
12238 rm -f conftest.$ac_objext conftest.$ac_ext
12239 fi
12240 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12241 echo "${ECHO_T}$ac_cv_type_char" >&6
12242
12243 echo "$as_me:$LINENO: checking size of char" >&5
12244 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12245 if test "${ac_cv_sizeof_char+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   if test "$ac_cv_type_char" = yes; then
12249   # The cast to unsigned long works around a bug in the HP C Compiler
12250   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12251   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12252   # This bug is HP SR number 8606223364.
12253   if test "$cross_compiling" = yes; then
12254   # Depending upon the size, compute the lo and hi bounds.
12255 cat >conftest.$ac_ext <<_ACEOF
12256 #line $LINENO "configure"
12257 /* confdefs.h.  */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h.  */
12262 $ac_includes_default
12263 int
12264 main ()
12265 {
12266 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12267 test_array [0] = 0
12268
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 rm -f conftest.$ac_objext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12275   (eval $ac_compile) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } &&
12279          { ac_try='test -s conftest.$ac_objext'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; }; then
12285   ac_lo=0 ac_mid=0
12286   while :; do
12287     cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 $ac_includes_default
12295 int
12296 main ()
12297 {
12298 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12299 test_array [0] = 0
12300
12301   ;
12302   return 0;
12303 }
12304 _ACEOF
12305 rm -f conftest.$ac_objext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12307   (eval $ac_compile) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } &&
12311          { ac_try='test -s conftest.$ac_objext'
12312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313   (eval $ac_try) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   ac_hi=$ac_mid; break
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_lo=`expr $ac_mid + 1`
12323                     if test $ac_lo -le $ac_mid; then
12324                       ac_lo= ac_hi=
12325                       break
12326                     fi
12327                     ac_mid=`expr 2 '*' $ac_mid + 1`
12328 fi
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12330   done
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 cat >conftest.$ac_ext <<_ACEOF
12336 #line $LINENO "configure"
12337 /* confdefs.h.  */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h.  */
12342 $ac_includes_default
12343 int
12344 main ()
12345 {
12346 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12347 test_array [0] = 0
12348
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355   (eval $ac_compile) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -s conftest.$ac_objext'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; }; then
12365   ac_hi=-1 ac_mid=-1
12366   while :; do
12367     cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374 $ac_includes_default
12375 int
12376 main ()
12377 {
12378 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12379 test_array [0] = 0
12380
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387   (eval $ac_compile) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); } &&
12391          { ac_try='test -s conftest.$ac_objext'
12392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393   (eval $ac_try) 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; }; then
12397   ac_lo=$ac_mid; break
12398 else
12399   echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402 ac_hi=`expr '(' $ac_mid ')' - 1`
12403                        if test $ac_mid -le $ac_hi; then
12404                          ac_lo= ac_hi=
12405                          break
12406                        fi
12407                        ac_mid=`expr 2 '*' $ac_mid`
12408 fi
12409 rm -f conftest.$ac_objext conftest.$ac_ext
12410   done
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_lo= ac_hi=
12416 fi
12417 rm -f conftest.$ac_objext conftest.$ac_ext
12418 fi
12419 rm -f conftest.$ac_objext conftest.$ac_ext
12420 # Binary search between lo and hi bounds.
12421 while test "x$ac_lo" != "x$ac_hi"; do
12422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12423   cat >conftest.$ac_ext <<_ACEOF
12424 #line $LINENO "configure"
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 $ac_includes_default
12431 int
12432 main ()
12433 {
12434 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12435 test_array [0] = 0
12436
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12443   (eval $ac_compile) 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); } &&
12447          { ac_try='test -s conftest.$ac_objext'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_hi=$ac_mid
12454 else
12455   echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 ac_lo=`expr '(' $ac_mid ')' + 1`
12459 fi
12460 rm -f conftest.$ac_objext conftest.$ac_ext
12461 done
12462 case $ac_lo in
12463 ?*) ac_cv_sizeof_char=$ac_lo;;
12464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12465 See \`config.log' for more details." >&5
12466 echo "$as_me: error: cannot compute sizeof (char), 77
12467 See \`config.log' for more details." >&2;}
12468    { (exit 1); exit 1; }; } ;;
12469 esac
12470 else
12471   if test "$cross_compiling" = yes; then
12472   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12473 See \`config.log' for more details." >&5
12474 echo "$as_me: error: cannot run test program while cross compiling
12475 See \`config.log' for more details." >&2;}
12476    { (exit 1); exit 1; }; }
12477 else
12478   cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12480 /* confdefs.h.  */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h.  */
12485 $ac_includes_default
12486 long longval () { return (long) (sizeof (char)); }
12487 unsigned long ulongval () { return (long) (sizeof (char)); }
12488 #include <stdio.h>
12489 #include <stdlib.h>
12490 int
12491 main ()
12492 {
12493
12494   FILE *f = fopen ("conftest.val", "w");
12495   if (! f)
12496     exit (1);
12497   if (((long) (sizeof (char))) < 0)
12498     {
12499       long i = longval ();
12500       if (i != ((long) (sizeof (char))))
12501         exit (1);
12502       fprintf (f, "%ld\n", i);
12503     }
12504   else
12505     {
12506       unsigned long i = ulongval ();
12507       if (i != ((long) (sizeof (char))))
12508         exit (1);
12509       fprintf (f, "%lu\n", i);
12510     }
12511   exit (ferror (f) || fclose (f) != 0);
12512
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 rm -f conftest$ac_exeext
12518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12519   (eval $ac_link) 2>&5
12520   ac_status=$?
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   ac_cv_sizeof_char=`cat conftest.val`
12529 else
12530   echo "$as_me: program exited with status $ac_status" >&5
12531 echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 ( exit $ac_status )
12535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12536 See \`config.log' for more details." >&5
12537 echo "$as_me: error: cannot compute sizeof (char), 77
12538 See \`config.log' for more details." >&2;}
12539    { (exit 1); exit 1; }; }
12540 fi
12541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12542 fi
12543 fi
12544 rm -f conftest.val
12545 else
12546   ac_cv_sizeof_char=0
12547 fi
12548 fi
12549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12550 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12551 cat >>confdefs.h <<_ACEOF
12552 #define SIZEOF_CHAR $ac_cv_sizeof_char
12553 _ACEOF
12554
12555
12556 echo "$as_me:$LINENO: checking for short int" >&5
12557 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12558 if test "${ac_cv_type_short_int+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   cat >conftest.$ac_ext <<_ACEOF
12562 #line $LINENO "configure"
12563 /* confdefs.h.  */
12564 _ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h.  */
12568 $ac_includes_default
12569 int
12570 main ()
12571 {
12572 if ((short int *) 0)
12573   return 0;
12574 if (sizeof (short int))
12575   return 0;
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582   (eval $ac_compile) 2>&5
12583   ac_status=$?
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } &&
12586          { ac_try='test -s conftest.$ac_objext'
12587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588   (eval $ac_try) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; }; then
12592   ac_cv_type_short_int=yes
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597 ac_cv_type_short_int=no
12598 fi
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12600 fi
12601 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12602 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12603
12604 echo "$as_me:$LINENO: checking size of short int" >&5
12605 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12606 if test "${ac_cv_sizeof_short_int+set}" = set; then
12607   echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609   if test "$ac_cv_type_short_int" = yes; then
12610   # The cast to unsigned long works around a bug in the HP C Compiler
12611   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613   # This bug is HP SR number 8606223364.
12614   if test "$cross_compiling" = yes; then
12615   # Depending upon the size, compute the lo and hi bounds.
12616 cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623 $ac_includes_default
12624 int
12625 main ()
12626 {
12627 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12628 test_array [0] = 0
12629
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636   (eval $ac_compile) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); } &&
12640          { ac_try='test -s conftest.$ac_objext'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   ac_lo=0 ac_mid=0
12647   while :; do
12648     cat >conftest.$ac_ext <<_ACEOF
12649 #line $LINENO "configure"
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655 $ac_includes_default
12656 int
12657 main ()
12658 {
12659 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12660 test_array [0] = 0
12661
12662   ;
12663   return 0;
12664 }
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668   (eval $ac_compile) 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } &&
12672          { ac_try='test -s conftest.$ac_objext'
12673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674   (eval $ac_try) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; }; then
12678   ac_hi=$ac_mid; break
12679 else
12680   echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 ac_lo=`expr $ac_mid + 1`
12684                     if test $ac_lo -le $ac_mid; then
12685                       ac_lo= ac_hi=
12686                       break
12687                     fi
12688                     ac_mid=`expr 2 '*' $ac_mid + 1`
12689 fi
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12691   done
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 cat >conftest.$ac_ext <<_ACEOF
12697 #line $LINENO "configure"
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703 $ac_includes_default
12704 int
12705 main ()
12706 {
12707 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12708 test_array [0] = 0
12709
12710   ;
12711   return 0;
12712 }
12713 _ACEOF
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716   (eval $ac_compile) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -s conftest.$ac_objext'
12721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722   (eval $ac_try) 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; }; then
12726   ac_hi=-1 ac_mid=-1
12727   while :; do
12728     cat >conftest.$ac_ext <<_ACEOF
12729 #line $LINENO "configure"
12730 /* confdefs.h.  */
12731 _ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h.  */
12735 $ac_includes_default
12736 int
12737 main ()
12738 {
12739 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12740 test_array [0] = 0
12741
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 rm -f conftest.$ac_objext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748   (eval $ac_compile) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } &&
12752          { ac_try='test -s conftest.$ac_objext'
12753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754   (eval $ac_try) 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; }; then
12758   ac_lo=$ac_mid; break
12759 else
12760   echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_hi=`expr '(' $ac_mid ')' - 1`
12764                        if test $ac_mid -le $ac_hi; then
12765                          ac_lo= ac_hi=
12766                          break
12767                        fi
12768                        ac_mid=`expr 2 '*' $ac_mid`
12769 fi
12770 rm -f conftest.$ac_objext conftest.$ac_ext
12771   done
12772 else
12773   echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776 ac_lo= ac_hi=
12777 fi
12778 rm -f conftest.$ac_objext conftest.$ac_ext
12779 fi
12780 rm -f conftest.$ac_objext conftest.$ac_ext
12781 # Binary search between lo and hi bounds.
12782 while test "x$ac_lo" != "x$ac_hi"; do
12783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12784   cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 $ac_includes_default
12792 int
12793 main ()
12794 {
12795 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12796 test_array [0] = 0
12797
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804   (eval $ac_compile) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -s conftest.$ac_objext'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814   ac_hi=$ac_mid
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 ac_lo=`expr '(' $ac_mid ')' + 1`
12820 fi
12821 rm -f conftest.$ac_objext conftest.$ac_ext
12822 done
12823 case $ac_lo in
12824 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12826 See \`config.log' for more details." >&5
12827 echo "$as_me: error: cannot compute sizeof (short int), 77
12828 See \`config.log' for more details." >&2;}
12829    { (exit 1); exit 1; }; } ;;
12830 esac
12831 else
12832   if test "$cross_compiling" = yes; then
12833   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12834 See \`config.log' for more details." >&5
12835 echo "$as_me: error: cannot run test program while cross compiling
12836 See \`config.log' for more details." >&2;}
12837    { (exit 1); exit 1; }; }
12838 else
12839   cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 $ac_includes_default
12847 long longval () { return (long) (sizeof (short int)); }
12848 unsigned long ulongval () { return (long) (sizeof (short int)); }
12849 #include <stdio.h>
12850 #include <stdlib.h>
12851 int
12852 main ()
12853 {
12854
12855   FILE *f = fopen ("conftest.val", "w");
12856   if (! f)
12857     exit (1);
12858   if (((long) (sizeof (short int))) < 0)
12859     {
12860       long i = longval ();
12861       if (i != ((long) (sizeof (short int))))
12862         exit (1);
12863       fprintf (f, "%ld\n", i);
12864     }
12865   else
12866     {
12867       unsigned long i = ulongval ();
12868       if (i != ((long) (sizeof (short int))))
12869         exit (1);
12870       fprintf (f, "%lu\n", i);
12871     }
12872   exit (ferror (f) || fclose (f) != 0);
12873
12874   ;
12875   return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880   (eval $ac_link) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885   (eval $ac_try) 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); }; }; then
12889   ac_cv_sizeof_short_int=`cat conftest.val`
12890 else
12891   echo "$as_me: program exited with status $ac_status" >&5
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 ( exit $ac_status )
12896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12897 See \`config.log' for more details." >&5
12898 echo "$as_me: error: cannot compute sizeof (short int), 77
12899 See \`config.log' for more details." >&2;}
12900    { (exit 1); exit 1; }; }
12901 fi
12902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12903 fi
12904 fi
12905 rm -f conftest.val
12906 else
12907   ac_cv_sizeof_short_int=0
12908 fi
12909 fi
12910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12911 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12912 cat >>confdefs.h <<_ACEOF
12913 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12914 _ACEOF
12915
12916
12917 echo "$as_me:$LINENO: checking for int" >&5
12918 echo $ECHO_N "checking for int... $ECHO_C" >&6
12919 if test "${ac_cv_type_int+set}" = set; then
12920   echo $ECHO_N "(cached) $ECHO_C" >&6
12921 else
12922   cat >conftest.$ac_ext <<_ACEOF
12923 #line $LINENO "configure"
12924 /* confdefs.h.  */
12925 _ACEOF
12926 cat confdefs.h >>conftest.$ac_ext
12927 cat >>conftest.$ac_ext <<_ACEOF
12928 /* end confdefs.h.  */
12929 $ac_includes_default
12930 int
12931 main ()
12932 {
12933 if ((int *) 0)
12934   return 0;
12935 if (sizeof (int))
12936   return 0;
12937   ;
12938   return 0;
12939 }
12940 _ACEOF
12941 rm -f conftest.$ac_objext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943   (eval $ac_compile) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } &&
12947          { ac_try='test -s conftest.$ac_objext'
12948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949   (eval $ac_try) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ac_cv_type_int=yes
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 ac_cv_type_int=no
12959 fi
12960 rm -f conftest.$ac_objext conftest.$ac_ext
12961 fi
12962 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12963 echo "${ECHO_T}$ac_cv_type_int" >&6
12964
12965 echo "$as_me:$LINENO: checking size of int" >&5
12966 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12967 if test "${ac_cv_sizeof_int+set}" = set; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 else
12970   if test "$ac_cv_type_int" = yes; then
12971   # The cast to unsigned long works around a bug in the HP C Compiler
12972   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12973   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12974   # This bug is HP SR number 8606223364.
12975   if test "$cross_compiling" = yes; then
12976   # Depending upon the size, compute the lo and hi bounds.
12977 cat >conftest.$ac_ext <<_ACEOF
12978 #line $LINENO "configure"
12979 /* confdefs.h.  */
12980 _ACEOF
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h.  */
12984 $ac_includes_default
12985 int
12986 main ()
12987 {
12988 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12989 test_array [0] = 0
12990
12991   ;
12992   return 0;
12993 }
12994 _ACEOF
12995 rm -f conftest.$ac_objext
12996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997   (eval $ac_compile) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); } &&
13001          { ac_try='test -s conftest.$ac_objext'
13002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003   (eval $ac_try) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_lo=0 ac_mid=0
13008   while :; do
13009     cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13011 /* confdefs.h.  */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h.  */
13016 $ac_includes_default
13017 int
13018 main ()
13019 {
13020 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13021 test_array [0] = 0
13022
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 rm -f conftest.$ac_objext
13028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13029   (eval $ac_compile) 2>&5
13030   ac_status=$?
13031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032   (exit $ac_status); } &&
13033          { ac_try='test -s conftest.$ac_objext'
13034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035   (eval $ac_try) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); }; }; then
13039   ac_hi=$ac_mid; break
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 ac_lo=`expr $ac_mid + 1`
13045                     if test $ac_lo -le $ac_mid; then
13046                       ac_lo= ac_hi=
13047                       break
13048                     fi
13049                     ac_mid=`expr 2 '*' $ac_mid + 1`
13050 fi
13051 rm -f conftest.$ac_objext conftest.$ac_ext
13052   done
13053 else
13054   echo "$as_me: failed program was:" >&5
13055 sed 's/^/| /' conftest.$ac_ext >&5
13056
13057 cat >conftest.$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13059 /* confdefs.h.  */
13060 _ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h.  */
13064 $ac_includes_default
13065 int
13066 main ()
13067 {
13068 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13069 test_array [0] = 0
13070
13071   ;
13072   return 0;
13073 }
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077   (eval $ac_compile) 2>&5
13078   ac_status=$?
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } &&
13081          { ac_try='test -s conftest.$ac_objext'
13082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083   (eval $ac_try) 2>&5
13084   ac_status=$?
13085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086   (exit $ac_status); }; }; then
13087   ac_hi=-1 ac_mid=-1
13088   while :; do
13089     cat >conftest.$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13091 /* confdefs.h.  */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h.  */
13096 $ac_includes_default
13097 int
13098 main ()
13099 {
13100 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13101 test_array [0] = 0
13102
13103   ;
13104   return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext
13108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109   (eval $ac_compile) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } &&
13113          { ac_try='test -s conftest.$ac_objext'
13114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115   (eval $ac_try) 2>&5
13116   ac_status=$?
13117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118   (exit $ac_status); }; }; then
13119   ac_lo=$ac_mid; break
13120 else
13121   echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 ac_hi=`expr '(' $ac_mid ')' - 1`
13125                        if test $ac_mid -le $ac_hi; then
13126                          ac_lo= ac_hi=
13127                          break
13128                        fi
13129                        ac_mid=`expr 2 '*' $ac_mid`
13130 fi
13131 rm -f conftest.$ac_objext conftest.$ac_ext
13132   done
13133 else
13134   echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13136
13137 ac_lo= ac_hi=
13138 fi
13139 rm -f conftest.$ac_objext conftest.$ac_ext
13140 fi
13141 rm -f conftest.$ac_objext conftest.$ac_ext
13142 # Binary search between lo and hi bounds.
13143 while test "x$ac_lo" != "x$ac_hi"; do
13144   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13145   cat >conftest.$ac_ext <<_ACEOF
13146 #line $LINENO "configure"
13147 /* confdefs.h.  */
13148 _ACEOF
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h.  */
13152 $ac_includes_default
13153 int
13154 main ()
13155 {
13156 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13157 test_array [0] = 0
13158
13159   ;
13160   return 0;
13161 }
13162 _ACEOF
13163 rm -f conftest.$ac_objext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165   (eval $ac_compile) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } &&
13169          { ac_try='test -s conftest.$ac_objext'
13170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171   (eval $ac_try) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; }; then
13175   ac_hi=$ac_mid
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180 ac_lo=`expr '(' $ac_mid ')' + 1`
13181 fi
13182 rm -f conftest.$ac_objext conftest.$ac_ext
13183 done
13184 case $ac_lo in
13185 ?*) ac_cv_sizeof_int=$ac_lo;;
13186 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13187 See \`config.log' for more details." >&5
13188 echo "$as_me: error: cannot compute sizeof (int), 77
13189 See \`config.log' for more details." >&2;}
13190    { (exit 1); exit 1; }; } ;;
13191 esac
13192 else
13193   if test "$cross_compiling" = yes; then
13194   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13195 See \`config.log' for more details." >&5
13196 echo "$as_me: error: cannot run test program while cross compiling
13197 See \`config.log' for more details." >&2;}
13198    { (exit 1); exit 1; }; }
13199 else
13200   cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207 $ac_includes_default
13208 long longval () { return (long) (sizeof (int)); }
13209 unsigned long ulongval () { return (long) (sizeof (int)); }
13210 #include <stdio.h>
13211 #include <stdlib.h>
13212 int
13213 main ()
13214 {
13215
13216   FILE *f = fopen ("conftest.val", "w");
13217   if (! f)
13218     exit (1);
13219   if (((long) (sizeof (int))) < 0)
13220     {
13221       long i = longval ();
13222       if (i != ((long) (sizeof (int))))
13223         exit (1);
13224       fprintf (f, "%ld\n", i);
13225     }
13226   else
13227     {
13228       unsigned long i = ulongval ();
13229       if (i != ((long) (sizeof (int))))
13230         exit (1);
13231       fprintf (f, "%lu\n", i);
13232     }
13233   exit (ferror (f) || fclose (f) != 0);
13234
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241   (eval $ac_link) 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246   (eval $ac_try) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; }; then
13250   ac_cv_sizeof_int=`cat conftest.val`
13251 else
13252   echo "$as_me: program exited with status $ac_status" >&5
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 ( exit $ac_status )
13257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13258 See \`config.log' for more details." >&5
13259 echo "$as_me: error: cannot compute sizeof (int), 77
13260 See \`config.log' for more details." >&2;}
13261    { (exit 1); exit 1; }; }
13262 fi
13263 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13264 fi
13265 fi
13266 rm -f conftest.val
13267 else
13268   ac_cv_sizeof_int=0
13269 fi
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13272 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13273 cat >>confdefs.h <<_ACEOF
13274 #define SIZEOF_INT $ac_cv_sizeof_int
13275 _ACEOF
13276
13277
13278 echo "$as_me:$LINENO: checking for long int" >&5
13279 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13280 if test "${ac_cv_type_long_int+set}" = set; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290 $ac_includes_default
13291 int
13292 main ()
13293 {
13294 if ((long int *) 0)
13295   return 0;
13296 if (sizeof (long int))
13297   return 0;
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304   (eval $ac_compile) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -s conftest.$ac_objext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_cv_type_long_int=yes
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_cv_type_long_int=no
13320 fi
13321 rm -f conftest.$ac_objext conftest.$ac_ext
13322 fi
13323 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13324 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13325
13326 echo "$as_me:$LINENO: checking size of long int" >&5
13327 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13328 if test "${ac_cv_sizeof_long_int+set}" = set; then
13329   echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331   if test "$ac_cv_type_long_int" = yes; then
13332   # The cast to unsigned long works around a bug in the HP C Compiler
13333   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13334   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13335   # This bug is HP SR number 8606223364.
13336   if test "$cross_compiling" = yes; then
13337   # Depending upon the size, compute the lo and hi bounds.
13338 cat >conftest.$ac_ext <<_ACEOF
13339 #line $LINENO "configure"
13340 /* confdefs.h.  */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h.  */
13345 $ac_includes_default
13346 int
13347 main ()
13348 {
13349 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13350 test_array [0] = 0
13351
13352   ;
13353   return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358   (eval $ac_compile) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); } &&
13362          { ac_try='test -s conftest.$ac_objext'
13363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364   (eval $ac_try) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; }; then
13368   ac_lo=0 ac_mid=0
13369   while :; do
13370     cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377 $ac_includes_default
13378 int
13379 main ()
13380 {
13381 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13382 test_array [0] = 0
13383
13384   ;
13385   return 0;
13386 }
13387 _ACEOF
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390   (eval $ac_compile) 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } &&
13394          { ac_try='test -s conftest.$ac_objext'
13395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396   (eval $ac_try) 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_hi=$ac_mid; break
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_lo=`expr $ac_mid + 1`
13406                     if test $ac_lo -le $ac_mid; then
13407                       ac_lo= ac_hi=
13408                       break
13409                     fi
13410                     ac_mid=`expr 2 '*' $ac_mid + 1`
13411 fi
13412 rm -f conftest.$ac_objext conftest.$ac_ext
13413   done
13414 else
13415   echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13417
13418 cat >conftest.$ac_ext <<_ACEOF
13419 #line $LINENO "configure"
13420 /* confdefs.h.  */
13421 _ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h.  */
13425 $ac_includes_default
13426 int
13427 main ()
13428 {
13429 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13430 test_array [0] = 0
13431
13432   ;
13433   return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438   (eval $ac_compile) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -s conftest.$ac_objext'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; }; then
13448   ac_hi=-1 ac_mid=-1
13449   while :; do
13450     cat >conftest.$ac_ext <<_ACEOF
13451 #line $LINENO "configure"
13452 /* confdefs.h.  */
13453 _ACEOF
13454 cat confdefs.h >>conftest.$ac_ext
13455 cat >>conftest.$ac_ext <<_ACEOF
13456 /* end confdefs.h.  */
13457 $ac_includes_default
13458 int
13459 main ()
13460 {
13461 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13462 test_array [0] = 0
13463
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 rm -f conftest.$ac_objext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13470   (eval $ac_compile) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); } &&
13474          { ac_try='test -s conftest.$ac_objext'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480   ac_lo=$ac_mid; break
13481 else
13482   echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_hi=`expr '(' $ac_mid ')' - 1`
13486                        if test $ac_mid -le $ac_hi; then
13487                          ac_lo= ac_hi=
13488                          break
13489                        fi
13490                        ac_mid=`expr 2 '*' $ac_mid`
13491 fi
13492 rm -f conftest.$ac_objext conftest.$ac_ext
13493   done
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ac_lo= ac_hi=
13499 fi
13500 rm -f conftest.$ac_objext conftest.$ac_ext
13501 fi
13502 rm -f conftest.$ac_objext conftest.$ac_ext
13503 # Binary search between lo and hi bounds.
13504 while test "x$ac_lo" != "x$ac_hi"; do
13505   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13506   cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13508 /* confdefs.h.  */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h.  */
13513 $ac_includes_default
13514 int
13515 main ()
13516 {
13517 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13518 test_array [0] = 0
13519
13520   ;
13521   return 0;
13522 }
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526   (eval $ac_compile) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } &&
13530          { ac_try='test -s conftest.$ac_objext'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_hi=$ac_mid
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 ac_lo=`expr '(' $ac_mid ')' + 1`
13542 fi
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13544 done
13545 case $ac_lo in
13546 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13548 See \`config.log' for more details." >&5
13549 echo "$as_me: error: cannot compute sizeof (long int), 77
13550 See \`config.log' for more details." >&2;}
13551    { (exit 1); exit 1; }; } ;;
13552 esac
13553 else
13554   if test "$cross_compiling" = yes; then
13555   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13556 See \`config.log' for more details." >&5
13557 echo "$as_me: error: cannot run test program while cross compiling
13558 See \`config.log' for more details." >&2;}
13559    { (exit 1); exit 1; }; }
13560 else
13561   cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13563 /* confdefs.h.  */
13564 _ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h.  */
13568 $ac_includes_default
13569 long longval () { return (long) (sizeof (long int)); }
13570 unsigned long ulongval () { return (long) (sizeof (long int)); }
13571 #include <stdio.h>
13572 #include <stdlib.h>
13573 int
13574 main ()
13575 {
13576
13577   FILE *f = fopen ("conftest.val", "w");
13578   if (! f)
13579     exit (1);
13580   if (((long) (sizeof (long int))) < 0)
13581     {
13582       long i = longval ();
13583       if (i != ((long) (sizeof (long int))))
13584         exit (1);
13585       fprintf (f, "%ld\n", i);
13586     }
13587   else
13588     {
13589       unsigned long i = ulongval ();
13590       if (i != ((long) (sizeof (long int))))
13591         exit (1);
13592       fprintf (f, "%lu\n", i);
13593     }
13594   exit (ferror (f) || fclose (f) != 0);
13595
13596   ;
13597   return 0;
13598 }
13599 _ACEOF
13600 rm -f conftest$ac_exeext
13601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13602   (eval $ac_link) 2>&5
13603   ac_status=$?
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }; then
13611   ac_cv_sizeof_long_int=`cat conftest.val`
13612 else
13613   echo "$as_me: program exited with status $ac_status" >&5
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617 ( exit $ac_status )
13618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13619 See \`config.log' for more details." >&5
13620 echo "$as_me: error: cannot compute sizeof (long int), 77
13621 See \`config.log' for more details." >&2;}
13622    { (exit 1); exit 1; }; }
13623 fi
13624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13625 fi
13626 fi
13627 rm -f conftest.val
13628 else
13629   ac_cv_sizeof_long_int=0
13630 fi
13631 fi
13632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13633 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13634 cat >>confdefs.h <<_ACEOF
13635 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13636 _ACEOF
13637
13638
13639 echo "$as_me:$LINENO: checking for long long int" >&5
13640 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13641 if test "${ac_cv_type_long_long_int+set}" = set; then
13642   echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644   cat >conftest.$ac_ext <<_ACEOF
13645 #line $LINENO "configure"
13646 /* confdefs.h.  */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h.  */
13651 $ac_includes_default
13652 int
13653 main ()
13654 {
13655 if ((long long int *) 0)
13656   return 0;
13657 if (sizeof (long long int))
13658   return 0;
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665   (eval $ac_compile) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -s conftest.$ac_objext'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   ac_cv_type_long_long_int=yes
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 ac_cv_type_long_long_int=no
13681 fi
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13683 fi
13684 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13685 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13686
13687 echo "$as_me:$LINENO: checking size of long long int" >&5
13688 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13689 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13690   echo $ECHO_N "(cached) $ECHO_C" >&6
13691 else
13692   if test "$ac_cv_type_long_long_int" = yes; then
13693   # The cast to unsigned long works around a bug in the HP C Compiler
13694   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13695   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13696   # This bug is HP SR number 8606223364.
13697   if test "$cross_compiling" = yes; then
13698   # Depending upon the size, compute the lo and hi bounds.
13699 cat >conftest.$ac_ext <<_ACEOF
13700 #line $LINENO "configure"
13701 /* confdefs.h.  */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h.  */
13706 $ac_includes_default
13707 int
13708 main ()
13709 {
13710 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13711 test_array [0] = 0
13712
13713   ;
13714   return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest.$ac_objext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719   (eval $ac_compile) 2>&5
13720   ac_status=$?
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } &&
13723          { ac_try='test -s conftest.$ac_objext'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; }; then
13729   ac_lo=0 ac_mid=0
13730   while :; do
13731     cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 /* confdefs.h.  */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h.  */
13738 $ac_includes_default
13739 int
13740 main ()
13741 {
13742 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13743 test_array [0] = 0
13744
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13751   (eval $ac_compile) 2>&5
13752   ac_status=$?
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -s conftest.$ac_objext'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; }; then
13761   ac_hi=$ac_mid; break
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 ac_lo=`expr $ac_mid + 1`
13767                     if test $ac_lo -le $ac_mid; then
13768                       ac_lo= ac_hi=
13769                       break
13770                     fi
13771                     ac_mid=`expr 2 '*' $ac_mid + 1`
13772 fi
13773 rm -f conftest.$ac_objext conftest.$ac_ext
13774   done
13775 else
13776   echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779 cat >conftest.$ac_ext <<_ACEOF
13780 #line $LINENO "configure"
13781 /* confdefs.h.  */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h.  */
13786 $ac_includes_default
13787 int
13788 main ()
13789 {
13790 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13791 test_array [0] = 0
13792
13793   ;
13794   return 0;
13795 }
13796 _ACEOF
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799   (eval $ac_compile) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); } &&
13803          { ac_try='test -s conftest.$ac_objext'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; }; then
13809   ac_hi=-1 ac_mid=-1
13810   while :; do
13811     cat >conftest.$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818 $ac_includes_default
13819 int
13820 main ()
13821 {
13822 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13823 test_array [0] = 0
13824
13825   ;
13826   return 0;
13827 }
13828 _ACEOF
13829 rm -f conftest.$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831   (eval $ac_compile) 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } &&
13835          { ac_try='test -s conftest.$ac_objext'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; }; then
13841   ac_lo=$ac_mid; break
13842 else
13843   echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 ac_hi=`expr '(' $ac_mid ')' - 1`
13847                        if test $ac_mid -le $ac_hi; then
13848                          ac_lo= ac_hi=
13849                          break
13850                        fi
13851                        ac_mid=`expr 2 '*' $ac_mid`
13852 fi
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13854   done
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 ac_lo= ac_hi=
13860 fi
13861 rm -f conftest.$ac_objext conftest.$ac_ext
13862 fi
13863 rm -f conftest.$ac_objext conftest.$ac_ext
13864 # Binary search between lo and hi bounds.
13865 while test "x$ac_lo" != "x$ac_hi"; do
13866   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13867   cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874 $ac_includes_default
13875 int
13876 main ()
13877 {
13878 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13879 test_array [0] = 0
13880
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887   (eval $ac_compile) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -s conftest.$ac_objext'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897   ac_hi=$ac_mid
13898 else
13899   echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902 ac_lo=`expr '(' $ac_mid ')' + 1`
13903 fi
13904 rm -f conftest.$ac_objext conftest.$ac_ext
13905 done
13906 case $ac_lo in
13907 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13909 See \`config.log' for more details." >&5
13910 echo "$as_me: error: cannot compute sizeof (long long int), 77
13911 See \`config.log' for more details." >&2;}
13912    { (exit 1); exit 1; }; } ;;
13913 esac
13914 else
13915   if test "$cross_compiling" = yes; then
13916   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13917 See \`config.log' for more details." >&5
13918 echo "$as_me: error: cannot run test program while cross compiling
13919 See \`config.log' for more details." >&2;}
13920    { (exit 1); exit 1; }; }
13921 else
13922   cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 $ac_includes_default
13930 long longval () { return (long) (sizeof (long long int)); }
13931 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13932 #include <stdio.h>
13933 #include <stdlib.h>
13934 int
13935 main ()
13936 {
13937
13938   FILE *f = fopen ("conftest.val", "w");
13939   if (! f)
13940     exit (1);
13941   if (((long) (sizeof (long long int))) < 0)
13942     {
13943       long i = longval ();
13944       if (i != ((long) (sizeof (long long int))))
13945         exit (1);
13946       fprintf (f, "%ld\n", i);
13947     }
13948   else
13949     {
13950       unsigned long i = ulongval ();
13951       if (i != ((long) (sizeof (long long int))))
13952         exit (1);
13953       fprintf (f, "%lu\n", i);
13954     }
13955   exit (ferror (f) || fclose (f) != 0);
13956
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 rm -f conftest$ac_exeext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13963   (eval $ac_link) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; }; then
13972   ac_cv_sizeof_long_long_int=`cat conftest.val`
13973 else
13974   echo "$as_me: program exited with status $ac_status" >&5
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978 ( exit $ac_status )
13979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13980 See \`config.log' for more details." >&5
13981 echo "$as_me: error: cannot compute sizeof (long long int), 77
13982 See \`config.log' for more details." >&2;}
13983    { (exit 1); exit 1; }; }
13984 fi
13985 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13986 fi
13987 fi
13988 rm -f conftest.val
13989 else
13990   ac_cv_sizeof_long_long_int=0
13991 fi
13992 fi
13993 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13994 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13995 cat >>confdefs.h <<_ACEOF
13996 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13997 _ACEOF
13998
13999
14000 echo "$as_me:$LINENO: checking for int *" >&5
14001 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14002 if test "${ac_cv_type_int_p+set}" = set; then
14003   echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005   cat >conftest.$ac_ext <<_ACEOF
14006 #line $LINENO "configure"
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012 $ac_includes_default
14013 int
14014 main ()
14015 {
14016 if ((int * *) 0)
14017   return 0;
14018 if (sizeof (int *))
14019   return 0;
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026   (eval $ac_compile) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -s conftest.$ac_objext'
14031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032   (eval $ac_try) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; }; then
14036   ac_cv_type_int_p=yes
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 ac_cv_type_int_p=no
14042 fi
14043 rm -f conftest.$ac_objext conftest.$ac_ext
14044 fi
14045 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14046 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14047
14048 echo "$as_me:$LINENO: checking size of int *" >&5
14049 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14050 if test "${ac_cv_sizeof_int_p+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   if test "$ac_cv_type_int_p" = yes; then
14054   # The cast to unsigned long works around a bug in the HP C Compiler
14055   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14056   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14057   # This bug is HP SR number 8606223364.
14058   if test "$cross_compiling" = yes; then
14059   # Depending upon the size, compute the lo and hi bounds.
14060 cat >conftest.$ac_ext <<_ACEOF
14061 #line $LINENO "configure"
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067 $ac_includes_default
14068 int
14069 main ()
14070 {
14071 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14072 test_array [0] = 0
14073
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080   (eval $ac_compile) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -s conftest.$ac_objext'
14085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086   (eval $ac_try) 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090   ac_lo=0 ac_mid=0
14091   while :; do
14092     cat >conftest.$ac_ext <<_ACEOF
14093 #line $LINENO "configure"
14094 /* confdefs.h.  */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h.  */
14099 $ac_includes_default
14100 int
14101 main ()
14102 {
14103 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14104 test_array [0] = 0
14105
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 rm -f conftest.$ac_objext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14112   (eval $ac_compile) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); } &&
14116          { ac_try='test -s conftest.$ac_objext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122   ac_hi=$ac_mid; break
14123 else
14124   echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_lo=`expr $ac_mid + 1`
14128                     if test $ac_lo -le $ac_mid; then
14129                       ac_lo= ac_hi=
14130                       break
14131                     fi
14132                     ac_mid=`expr 2 '*' $ac_mid + 1`
14133 fi
14134 rm -f conftest.$ac_objext conftest.$ac_ext
14135   done
14136 else
14137   echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14139
14140 cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 $ac_includes_default
14148 int
14149 main ()
14150 {
14151 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14152 test_array [0] = 0
14153
14154   ;
14155   return 0;
14156 }
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14160   (eval $ac_compile) 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } &&
14164          { ac_try='test -s conftest.$ac_objext'
14165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166   (eval $ac_try) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   ac_hi=-1 ac_mid=-1
14171   while :; do
14172     cat >conftest.$ac_ext <<_ACEOF
14173 #line $LINENO "configure"
14174 /* confdefs.h.  */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h.  */
14179 $ac_includes_default
14180 int
14181 main ()
14182 {
14183 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14184 test_array [0] = 0
14185
14186   ;
14187   return 0;
14188 }
14189 _ACEOF
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192   (eval $ac_compile) 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } &&
14196          { ac_try='test -s conftest.$ac_objext'
14197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198   (eval $ac_try) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; }; then
14202   ac_lo=$ac_mid; break
14203 else
14204   echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207 ac_hi=`expr '(' $ac_mid ')' - 1`
14208                        if test $ac_mid -le $ac_hi; then
14209                          ac_lo= ac_hi=
14210                          break
14211                        fi
14212                        ac_mid=`expr 2 '*' $ac_mid`
14213 fi
14214 rm -f conftest.$ac_objext conftest.$ac_ext
14215   done
14216 else
14217   echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_lo= ac_hi=
14221 fi
14222 rm -f conftest.$ac_objext conftest.$ac_ext
14223 fi
14224 rm -f conftest.$ac_objext conftest.$ac_ext
14225 # Binary search between lo and hi bounds.
14226 while test "x$ac_lo" != "x$ac_hi"; do
14227   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14228   cat >conftest.$ac_ext <<_ACEOF
14229 #line $LINENO "configure"
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 $ac_includes_default
14236 int
14237 main ()
14238 {
14239 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14240 test_array [0] = 0
14241
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248   (eval $ac_compile) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } &&
14252          { ac_try='test -s conftest.$ac_objext'
14253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254   (eval $ac_try) 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_hi=$ac_mid
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263 ac_lo=`expr '(' $ac_mid ')' + 1`
14264 fi
14265 rm -f conftest.$ac_objext conftest.$ac_ext
14266 done
14267 case $ac_lo in
14268 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14269 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14270 See \`config.log' for more details." >&5
14271 echo "$as_me: error: cannot compute sizeof (int *), 77
14272 See \`config.log' for more details." >&2;}
14273    { (exit 1); exit 1; }; } ;;
14274 esac
14275 else
14276   if test "$cross_compiling" = yes; then
14277   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14278 See \`config.log' for more details." >&5
14279 echo "$as_me: error: cannot run test program while cross compiling
14280 See \`config.log' for more details." >&2;}
14281    { (exit 1); exit 1; }; }
14282 else
14283   cat >conftest.$ac_ext <<_ACEOF
14284 #line $LINENO "configure"
14285 /* confdefs.h.  */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h.  */
14290 $ac_includes_default
14291 long longval () { return (long) (sizeof (int *)); }
14292 unsigned long ulongval () { return (long) (sizeof (int *)); }
14293 #include <stdio.h>
14294 #include <stdlib.h>
14295 int
14296 main ()
14297 {
14298
14299   FILE *f = fopen ("conftest.val", "w");
14300   if (! f)
14301     exit (1);
14302   if (((long) (sizeof (int *))) < 0)
14303     {
14304       long i = longval ();
14305       if (i != ((long) (sizeof (int *))))
14306         exit (1);
14307       fprintf (f, "%ld\n", i);
14308     }
14309   else
14310     {
14311       unsigned long i = ulongval ();
14312       if (i != ((long) (sizeof (int *))))
14313         exit (1);
14314       fprintf (f, "%lu\n", i);
14315     }
14316   exit (ferror (f) || fclose (f) != 0);
14317
14318   ;
14319   return 0;
14320 }
14321 _ACEOF
14322 rm -f conftest$ac_exeext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14324   (eval $ac_link) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_cv_sizeof_int_p=`cat conftest.val`
14334 else
14335   echo "$as_me: program exited with status $ac_status" >&5
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 ( exit $ac_status )
14340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14341 See \`config.log' for more details." >&5
14342 echo "$as_me: error: cannot compute sizeof (int *), 77
14343 See \`config.log' for more details." >&2;}
14344    { (exit 1); exit 1; }; }
14345 fi
14346 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14347 fi
14348 fi
14349 rm -f conftest.val
14350 else
14351   ac_cv_sizeof_int_p=0
14352 fi
14353 fi
14354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14355 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14356 cat >>confdefs.h <<_ACEOF
14357 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14358 _ACEOF
14359
14360
14361
14362 # Check for sys/types.h types
14363 echo "$as_me:$LINENO: checking for u_int type" >&5
14364 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14365 if test "${ac_cv_have_u_int+set}" = set; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368
14369     cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376  #include <sys/types.h>
14377 int
14378 main ()
14379 {
14380  u_int a; a = 1;
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -s conftest.$ac_objext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397    ac_cv_have_u_int="yes"
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402  ac_cv_have_u_int="no"
14403
14404 fi
14405 rm -f conftest.$ac_objext conftest.$ac_ext
14406
14407 fi
14408 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14409 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14410 if test "x$ac_cv_have_u_int" = "xyes" ; then
14411    cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_U_INT 1
14413 _ACEOF
14414
14415    have_u_int=1
14416 fi
14417
14418 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14419 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14420 if test "${ac_cv_have_intmax_t+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423
14424    cat >conftest.$ac_ext <<_ACEOF
14425 #line $LINENO "configure"
14426 /* confdefs.h.  */
14427 _ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h.  */
14431  #include <sys/types.h>
14432 int
14433 main ()
14434 {
14435  intmax_t a; a = 1;
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442   (eval $ac_compile) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -s conftest.$ac_objext'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; }; then
14452    ac_cv_have_intmax_t="yes"
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457
14458          cat >conftest.$ac_ext <<_ACEOF
14459 #line $LINENO "configure"
14460 /* confdefs.h.  */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h.  */
14465  #include <stdint.h>
14466 int
14467 main ()
14468 {
14469  intmax_t a; a = 1;
14470   ;
14471   return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476   (eval $ac_compile) 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } &&
14480          { ac_try='test -s conftest.$ac_objext'
14481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482   (eval $ac_try) 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); }; }; then
14486    ac_cv_have_intmax_t="yes"
14487 else
14488   echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491  ac_cv_have_intmax_t="no"
14492
14493 fi
14494 rm -f conftest.$ac_objext conftest.$ac_ext
14495
14496
14497 fi
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14499
14500
14501 fi
14502 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14503 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14504 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14505    cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_INTMAX_T 1
14507 _ACEOF
14508
14509    have_intmax_t=1
14510 fi
14511
14512
14513 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14514 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14515 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14516   echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518
14519    cat >conftest.$ac_ext <<_ACEOF
14520 #line $LINENO "configure"
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526  #include <sys/types.h>
14527 int
14528 main ()
14529 {
14530  u_intmax_t a; a = 1;
14531   ;
14532   return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537   (eval $ac_compile) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -s conftest.$ac_objext'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; }; then
14547    ac_cv_have_u_intmax_t="yes"
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552
14553          cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560  #include <stdint.h>
14561 int
14562 main ()
14563 {
14564  u_intmax_t a; a = 1;
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); } &&
14575          { ac_try='test -s conftest.$ac_objext'
14576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577   (eval $ac_try) 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; }; then
14581    ac_cv_have_u_intmax_t="yes"
14582 else
14583   echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14585
14586  ac_cv_have_u_intmax_t="no"
14587
14588 fi
14589 rm -f conftest.$ac_objext conftest.$ac_ext
14590
14591
14592 fi
14593 rm -f conftest.$ac_objext conftest.$ac_ext
14594
14595 fi
14596 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14597 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14598 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14599    cat >>confdefs.h <<\_ACEOF
14600 #define HAVE_U_INTMAX_T 1
14601 _ACEOF
14602
14603    have_u_intmax_t=1
14604 fi
14605
14606
14607 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14608 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14609 if test "${ac_cv_have_intxx_t+set}" = set; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612
14613    cat >conftest.$ac_ext <<_ACEOF
14614 #line $LINENO "configure"
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620  #include <sys/types.h>
14621 int
14622 main ()
14623 {
14624  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631   (eval $ac_compile) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); } &&
14635          { ac_try='test -s conftest.$ac_objext'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641    ac_cv_have_intxx_t="yes"
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646  ac_cv_have_intxx_t="no"
14647
14648 fi
14649 rm -f conftest.$ac_objext conftest.$ac_ext
14650
14651 fi
14652 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14653 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14654 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14655    cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_INTXX_T 1
14657 _ACEOF
14658
14659    have_intxx_t=1
14660 fi
14661
14662 echo "$as_me:$LINENO: checking for int64_t type" >&5
14663 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14664 if test "${ac_cv_have_int64_t+set}" = set; then
14665   echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667
14668    cat >conftest.$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14670 /* confdefs.h.  */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h.  */
14675  #include <sys/types.h>
14676 int
14677 main ()
14678 {
14679  int64_t a; a = 1;
14680   ;
14681   return 0;
14682 }
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686   (eval $ac_compile) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } &&
14690          { ac_try='test -s conftest.$ac_objext'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; }; then
14696    ac_cv_have_int64_t="yes"
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701  ac_cv_have_int64_t="no"
14702
14703 fi
14704 rm -f conftest.$ac_objext conftest.$ac_ext
14705
14706 fi
14707 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14708 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14709 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14710    cat >>confdefs.h <<\_ACEOF
14711 #define HAVE_INT64_T 1
14712 _ACEOF
14713
14714    have_int64_t=1
14715 fi
14716
14717 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14718 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14719 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722
14723    cat >conftest.$ac_ext <<_ACEOF
14724 #line $LINENO "configure"
14725 /* confdefs.h.  */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h.  */
14730  #include <sys/types.h>
14731 int
14732 main ()
14733 {
14734  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741   (eval $ac_compile) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -s conftest.$ac_objext'
14746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747   (eval $ac_try) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; }; then
14751    ac_cv_have_u_intxx_t="yes"
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756  ac_cv_have_u_intxx_t="no"
14757
14758 fi
14759 rm -f conftest.$ac_objext conftest.$ac_ext
14760
14761 fi
14762 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14763 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14764 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14765    cat >>confdefs.h <<\_ACEOF
14766 #define HAVE_U_INTXX_T 1
14767 _ACEOF
14768
14769    have_u_intxx_t=1
14770 fi
14771
14772 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14773 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14774 if test "${ac_cv_have_u_int64_t+set}" = set; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777
14778    cat >conftest.$ac_ext <<_ACEOF
14779 #line $LINENO "configure"
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785  #include <sys/types.h>
14786 int
14787 main ()
14788 {
14789  u_int64_t a; a = 1;
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796   (eval $ac_compile) 2>&5
14797   ac_status=$?
14798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799   (exit $ac_status); } &&
14800          { ac_try='test -s conftest.$ac_objext'
14801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802   (eval $ac_try) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; }; then
14806    ac_cv_have_u_int64_t="yes"
14807 else
14808   echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811  ac_cv_have_u_int64_t="no"
14812
14813 fi
14814 rm -f conftest.$ac_objext conftest.$ac_ext
14815
14816 fi
14817 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14818 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14819 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14820    cat >>confdefs.h <<\_ACEOF
14821 #define HAVE_U_INT64_T 1
14822 _ACEOF
14823
14824    have_u_int64_t=1
14825 fi
14826
14827 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14828            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14829 then
14830    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14831 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14832    cat >conftest.$ac_ext <<_ACEOF
14833 #line $LINENO "configure"
14834 /* confdefs.h.  */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h.  */
14839  #include <sys/bitypes.h>
14840 int
14841 main ()
14842 {
14843  int8_t a; int16_t b; int32_t c;
14844         u_int8_t e; u_int16_t f; u_int32_t g;
14845         a = b = c = e = f = g = 1;
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14852   (eval $ac_compile) 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } &&
14856          { ac_try='test -s conftest.$ac_objext'
14857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858   (eval $ac_try) 2>&5
14859   ac_status=$?
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); }; }; then
14862    cat >>confdefs.h <<\_ACEOF
14863 #define HAVE_U_INTXX_T 1
14864 _ACEOF
14865
14866         cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_INTXX_T 1
14868 _ACEOF
14869
14870         cat >>confdefs.h <<\_ACEOF
14871 #define HAVE_SYS_BITYPES_H 1
14872 _ACEOF
14873
14874         echo "$as_me:$LINENO: result: yes" >&5
14875 echo "${ECHO_T}yes" >&6
14876 else
14877   echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14879
14880  echo "$as_me:$LINENO: result: no" >&5
14881 echo "${ECHO_T}no" >&6
14882
14883 fi
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14885 fi
14886
14887 if test -z "$have_u_intxx_t" ; then
14888    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14889 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14890 if test "${ac_cv_have_uintxx_t+set}" = set; then
14891   echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893
14894       cat >conftest.$ac_ext <<_ACEOF
14895 #line $LINENO "configure"
14896 /* confdefs.h.  */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h.  */
14901  #include <sys/types.h>
14902 int
14903 main ()
14904 {
14905  uint8_t a; uint16_t b;
14906            uint32_t c; a = b = c = 1;
14907   ;
14908   return 0;
14909 }
14910 _ACEOF
14911 rm -f conftest.$ac_objext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14913   (eval $ac_compile) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } &&
14917          { ac_try='test -s conftest.$ac_objext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923    ac_cv_have_uintxx_t="yes"
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928  ac_cv_have_uintxx_t="no"
14929
14930 fi
14931 rm -f conftest.$ac_objext conftest.$ac_ext
14932
14933 fi
14934 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14935 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14936    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14937       cat >>confdefs.h <<\_ACEOF
14938 #define HAVE_UINTXX_T 1
14939 _ACEOF
14940
14941    fi
14942 fi
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958 for ac_func in \
14959         fork \
14960         getcwd \
14961         gethostname \
14962         getpid \
14963         gettimeofday \
14964         setpgid \
14965         setpgrp \
14966         setsid \
14967         signal \
14968         strerror \
14969         strncmp \
14970         strncpy \
14971         vfprintf \
14972
14973 do
14974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14975 echo "$as_me:$LINENO: checking for $ac_func" >&5
14976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14977 if eval "test \"\${$as_ac_var+set}\" = set"; then
14978   echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980   cat >conftest.$ac_ext <<_ACEOF
14981 #line $LINENO "configure"
14982 /* confdefs.h.  */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h.  */
14987 /* System header to define __stub macros and hopefully few prototypes,
14988     which can conflict with char $ac_func (); below.
14989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14990     <limits.h> exists even on freestanding compilers.  */
14991 #ifdef __STDC__
14992 # include <limits.h>
14993 #else
14994 # include <assert.h>
14995 #endif
14996 /* Override any gcc2 internal prototype to avoid an error.  */
14997 #ifdef __cplusplus
14998 extern "C"
14999 {
15000 #endif
15001 /* We use char because int might match the return type of a gcc2
15002    builtin and then its argument prototype would still apply.  */
15003 char $ac_func ();
15004 /* The GNU C library defines this for functions which it implements
15005     to always fail with ENOSYS.  Some functions are actually named
15006     something starting with __ and the normal name is an alias.  */
15007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15008 choke me
15009 #else
15010 char (*f) () = $ac_func;
15011 #endif
15012 #ifdef __cplusplus
15013 }
15014 #endif
15015
15016 int
15017 main ()
15018 {
15019 return f != $ac_func;
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext conftest$ac_exeext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026   (eval $ac_link) 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); } &&
15030          { ac_try='test -s conftest$ac_exeext'
15031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032   (eval $ac_try) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; }; then
15036   eval "$as_ac_var=yes"
15037 else
15038   echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15040
15041 eval "$as_ac_var=no"
15042 fi
15043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15044 fi
15045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15047 if test `eval echo '${'$as_ac_var'}'` = yes; then
15048   cat >>confdefs.h <<_ACEOF
15049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15050 _ACEOF
15051
15052 else
15053   echo 'configure: cannot find needed function.'; exit 1
15054
15055 fi
15056 done
15057
15058
15059
15060 for ac_func in fchdir
15061 do
15062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15063 echo "$as_me:$LINENO: checking for $ac_func" >&5
15064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15065 if eval "test \"\${$as_ac_var+set}\" = set"; then
15066   echo $ECHO_N "(cached) $ECHO_C" >&6
15067 else
15068   cat >conftest.$ac_ext <<_ACEOF
15069 #line $LINENO "configure"
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075 /* System header to define __stub macros and hopefully few prototypes,
15076     which can conflict with char $ac_func (); below.
15077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15078     <limits.h> exists even on freestanding compilers.  */
15079 #ifdef __STDC__
15080 # include <limits.h>
15081 #else
15082 # include <assert.h>
15083 #endif
15084 /* Override any gcc2 internal prototype to avoid an error.  */
15085 #ifdef __cplusplus
15086 extern "C"
15087 {
15088 #endif
15089 /* We use char because int might match the return type of a gcc2
15090    builtin and then its argument prototype would still apply.  */
15091 char $ac_func ();
15092 /* The GNU C library defines this for functions which it implements
15093     to always fail with ENOSYS.  Some functions are actually named
15094     something starting with __ and the normal name is an alias.  */
15095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15096 choke me
15097 #else
15098 char (*f) () = $ac_func;
15099 #endif
15100 #ifdef __cplusplus
15101 }
15102 #endif
15103
15104 int
15105 main ()
15106 {
15107 return f != $ac_func;
15108   ;
15109   return 0;
15110 }
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114   (eval $ac_link) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } &&
15118          { ac_try='test -s conftest$ac_exeext'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; }; then
15124   eval "$as_ac_var=yes"
15125 else
15126   echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 eval "$as_ac_var=no"
15130 fi
15131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15132 fi
15133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15135 if test `eval echo '${'$as_ac_var'}'` = yes; then
15136   cat >>confdefs.h <<_ACEOF
15137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15138 _ACEOF
15139  cat >>confdefs.h <<\_ACEOF
15140 #define HAVE_FCHDIR 1
15141 _ACEOF
15142
15143 fi
15144 done
15145
15146
15147 for ac_func in strtoll
15148 do
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15152 if eval "test \"\${$as_ac_var+set}\" = set"; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155   cat >conftest.$ac_ext <<_ACEOF
15156 #line $LINENO "configure"
15157 /* confdefs.h.  */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h.  */
15162 /* System header to define __stub macros and hopefully few prototypes,
15163     which can conflict with char $ac_func (); below.
15164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15165     <limits.h> exists even on freestanding compilers.  */
15166 #ifdef __STDC__
15167 # include <limits.h>
15168 #else
15169 # include <assert.h>
15170 #endif
15171 /* Override any gcc2 internal prototype to avoid an error.  */
15172 #ifdef __cplusplus
15173 extern "C"
15174 {
15175 #endif
15176 /* We use char because int might match the return type of a gcc2
15177    builtin and then its argument prototype would still apply.  */
15178 char $ac_func ();
15179 /* The GNU C library defines this for functions which it implements
15180     to always fail with ENOSYS.  Some functions are actually named
15181     something starting with __ and the normal name is an alias.  */
15182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15183 choke me
15184 #else
15185 char (*f) () = $ac_func;
15186 #endif
15187 #ifdef __cplusplus
15188 }
15189 #endif
15190
15191 int
15192 main ()
15193 {
15194 return f != $ac_func;
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15201   (eval $ac_link) 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); } &&
15205          { ac_try='test -s conftest$ac_exeext'
15206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207   (eval $ac_try) 2>&5
15208   ac_status=$?
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); }; }; then
15211   eval "$as_ac_var=yes"
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216 eval "$as_ac_var=no"
15217 fi
15218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15219 fi
15220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15222 if test `eval echo '${'$as_ac_var'}'` = yes; then
15223   cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15225 _ACEOF
15226  cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_STRTOLL 1
15228 _ACEOF
15229
15230 fi
15231 done
15232
15233
15234
15235 for ac_func in chflags
15236 do
15237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15238 echo "$as_me:$LINENO: checking for $ac_func" >&5
15239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15240 if eval "test \"\${$as_ac_var+set}\" = set"; then
15241   echo $ECHO_N "(cached) $ECHO_C" >&6
15242 else
15243   cat >conftest.$ac_ext <<_ACEOF
15244 #line $LINENO "configure"
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250 /* System header to define __stub macros and hopefully few prototypes,
15251     which can conflict with char $ac_func (); below.
15252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253     <limits.h> exists even on freestanding compilers.  */
15254 #ifdef __STDC__
15255 # include <limits.h>
15256 #else
15257 # include <assert.h>
15258 #endif
15259 /* Override any gcc2 internal prototype to avoid an error.  */
15260 #ifdef __cplusplus
15261 extern "C"
15262 {
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 $ac_func ();
15267 /* The GNU C library defines this for functions which it implements
15268     to always fail with ENOSYS.  Some functions are actually named
15269     something starting with __ and the normal name is an alias.  */
15270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15271 choke me
15272 #else
15273 char (*f) () = $ac_func;
15274 #endif
15275 #ifdef __cplusplus
15276 }
15277 #endif
15278
15279 int
15280 main ()
15281 {
15282 return f != $ac_func;
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15289   (eval $ac_link) 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } &&
15293          { ac_try='test -s conftest$ac_exeext'
15294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295   (eval $ac_try) 2>&5
15296   ac_status=$?
15297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298   (exit $ac_status); }; }; then
15299   eval "$as_ac_var=yes"
15300 else
15301   echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15303
15304 eval "$as_ac_var=no"
15305 fi
15306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15307 fi
15308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15310 if test `eval echo '${'$as_ac_var'}'` = yes; then
15311   cat >>confdefs.h <<_ACEOF
15312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15313 _ACEOF
15314
15315 fi
15316 done
15317
15318
15319
15320
15321
15322
15323 for ac_func in snprintf vsnprintf gethostid getdomainname
15324 do
15325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15326 echo "$as_me:$LINENO: checking for $ac_func" >&5
15327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_var+set}\" = set"; then
15329   echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331   cat >conftest.$ac_ext <<_ACEOF
15332 #line $LINENO "configure"
15333 /* confdefs.h.  */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h.  */
15338 /* System header to define __stub macros and hopefully few prototypes,
15339     which can conflict with char $ac_func (); below.
15340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15341     <limits.h> exists even on freestanding compilers.  */
15342 #ifdef __STDC__
15343 # include <limits.h>
15344 #else
15345 # include <assert.h>
15346 #endif
15347 /* Override any gcc2 internal prototype to avoid an error.  */
15348 #ifdef __cplusplus
15349 extern "C"
15350 {
15351 #endif
15352 /* We use char because int might match the return type of a gcc2
15353    builtin and then its argument prototype would still apply.  */
15354 char $ac_func ();
15355 /* The GNU C library defines this for functions which it implements
15356     to always fail with ENOSYS.  Some functions are actually named
15357     something starting with __ and the normal name is an alias.  */
15358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15359 choke me
15360 #else
15361 char (*f) () = $ac_func;
15362 #endif
15363 #ifdef __cplusplus
15364 }
15365 #endif
15366
15367 int
15368 main ()
15369 {
15370 return f != $ac_func;
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext conftest$ac_exeext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15377   (eval $ac_link) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } &&
15381          { ac_try='test -s conftest$ac_exeext'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387   eval "$as_ac_var=yes"
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 eval "$as_ac_var=no"
15393 fi
15394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15395 fi
15396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15398 if test `eval echo '${'$as_ac_var'}'` = yes; then
15399   cat >>confdefs.h <<_ACEOF
15400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15401 _ACEOF
15402
15403 fi
15404 done
15405
15406
15407
15408
15409
15410
15411 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15412 do
15413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417   echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419   cat >conftest.$ac_ext <<_ACEOF
15420 #line $LINENO "configure"
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 /* System header to define __stub macros and hopefully few prototypes,
15427     which can conflict with char $ac_func (); below.
15428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15429     <limits.h> exists even on freestanding compilers.  */
15430 #ifdef __STDC__
15431 # include <limits.h>
15432 #else
15433 # include <assert.h>
15434 #endif
15435 /* Override any gcc2 internal prototype to avoid an error.  */
15436 #ifdef __cplusplus
15437 extern "C"
15438 {
15439 #endif
15440 /* We use char because int might match the return type of a gcc2
15441    builtin and then its argument prototype would still apply.  */
15442 char $ac_func ();
15443 /* The GNU C library defines this for functions which it implements
15444     to always fail with ENOSYS.  Some functions are actually named
15445     something starting with __ and the normal name is an alias.  */
15446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 choke me
15448 #else
15449 char (*f) () = $ac_func;
15450 #endif
15451 #ifdef __cplusplus
15452 }
15453 #endif
15454
15455 int
15456 main ()
15457 {
15458 return f != $ac_func;
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 rm -f conftest.$ac_objext conftest$ac_exeext
15464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15465   (eval $ac_link) 2>&5
15466   ac_status=$?
15467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468   (exit $ac_status); } &&
15469          { ac_try='test -s conftest$ac_exeext'
15470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471   (eval $ac_try) 2>&5
15472   ac_status=$?
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); }; }; then
15475   eval "$as_ac_var=yes"
15476 else
15477   echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15479
15480 eval "$as_ac_var=no"
15481 fi
15482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15483 fi
15484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15486 if test `eval echo '${'$as_ac_var'}'` = yes; then
15487   cat >>confdefs.h <<_ACEOF
15488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 _ACEOF
15490
15491 fi
15492 done
15493
15494
15495 # If resolver functions are not in libc check for -lnsl or -lresolv.
15496 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15497 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15498 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15499   echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501   cat >conftest.$ac_ext <<_ACEOF
15502 #line $LINENO "configure"
15503 /* confdefs.h.  */
15504 _ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h.  */
15508 /* System header to define __stub macros and hopefully few prototypes,
15509     which can conflict with char gethostbyname_r (); below.
15510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15511     <limits.h> exists even on freestanding compilers.  */
15512 #ifdef __STDC__
15513 # include <limits.h>
15514 #else
15515 # include <assert.h>
15516 #endif
15517 /* Override any gcc2 internal prototype to avoid an error.  */
15518 #ifdef __cplusplus
15519 extern "C"
15520 {
15521 #endif
15522 /* We use char because int might match the return type of a gcc2
15523    builtin and then its argument prototype would still apply.  */
15524 char gethostbyname_r ();
15525 /* The GNU C library defines this for functions which it implements
15526     to always fail with ENOSYS.  Some functions are actually named
15527     something starting with __ and the normal name is an alias.  */
15528 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15529 choke me
15530 #else
15531 char (*f) () = gethostbyname_r;
15532 #endif
15533 #ifdef __cplusplus
15534 }
15535 #endif
15536
15537 int
15538 main ()
15539 {
15540 return f != gethostbyname_r;
15541   ;
15542   return 0;
15543 }
15544 _ACEOF
15545 rm -f conftest.$ac_objext conftest$ac_exeext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15547   (eval $ac_link) 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); } &&
15551          { ac_try='test -s conftest$ac_exeext'
15552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553   (eval $ac_try) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; }; then
15557   ac_cv_func_gethostbyname_r=yes
15558 else
15559   echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15561
15562 ac_cv_func_gethostbyname_r=no
15563 fi
15564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15565 fi
15566 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15567 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15568 if test $ac_cv_func_gethostbyname_r = yes; then
15569   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15570 echo "${ECHO_T}using libc's resolver" >&6
15571 else
15572
15573 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15574 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15575 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15576   echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578   ac_check_lib_save_LIBS=$LIBS
15579 LIBS="-lnsl  $LIBS"
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15582 /* confdefs.h.  */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h.  */
15587
15588 /* Override any gcc2 internal prototype to avoid an error.  */
15589 #ifdef __cplusplus
15590 extern "C"
15591 #endif
15592 /* We use char because int might match the return type of a gcc2
15593    builtin and then its argument prototype would still apply.  */
15594 char gethostbyname_r ();
15595 int
15596 main ()
15597 {
15598 gethostbyname_r ();
15599   ;
15600   return 0;
15601 }
15602 _ACEOF
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15605   (eval $ac_link) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); } &&
15609          { ac_try='test -s conftest$ac_exeext'
15610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611   (eval $ac_try) 2>&5
15612   ac_status=$?
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); }; }; then
15615   ac_cv_lib_nsl_gethostbyname_r=yes
15616 else
15617   echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15619
15620 ac_cv_lib_nsl_gethostbyname_r=no
15621 fi
15622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15623 LIBS=$ac_check_lib_save_LIBS
15624 fi
15625 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15627 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15628   cat >>confdefs.h <<_ACEOF
15629 #define HAVE_LIBNSL 1
15630 _ACEOF
15631
15632   LIBS="-lnsl $LIBS"
15633
15634 fi
15635
15636
15637 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15638 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15639 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   ac_check_lib_save_LIBS=$LIBS
15643 LIBS="-lresolv  $LIBS"
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15646 /* confdefs.h.  */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h.  */
15651
15652 /* Override any gcc2 internal prototype to avoid an error.  */
15653 #ifdef __cplusplus
15654 extern "C"
15655 #endif
15656 /* We use char because int might match the return type of a gcc2
15657    builtin and then its argument prototype would still apply.  */
15658 char gethostbyname_r ();
15659 int
15660 main ()
15661 {
15662 gethostbyname_r ();
15663   ;
15664   return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext conftest$ac_exeext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669   (eval $ac_link) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); } &&
15673          { ac_try='test -s conftest$ac_exeext'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_cv_lib_resolv_gethostbyname_r=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_cv_lib_resolv_gethostbyname_r=no
15685 fi
15686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15688 fi
15689 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15690 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15691 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15692   cat >>confdefs.h <<_ACEOF
15693 #define HAVE_LIBRESOLV 1
15694 _ACEOF
15695
15696   LIBS="-lresolv $LIBS"
15697
15698 fi
15699
15700 fi
15701
15702
15703
15704 # Find where sockets are (especially for Solaris)
15705 echo "$as_me:$LINENO: checking for socket" >&5
15706 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15707 if test "${ac_cv_func_socket+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717 /* System header to define __stub macros and hopefully few prototypes,
15718     which can conflict with char socket (); below.
15719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15720     <limits.h> exists even on freestanding compilers.  */
15721 #ifdef __STDC__
15722 # include <limits.h>
15723 #else
15724 # include <assert.h>
15725 #endif
15726 /* Override any gcc2 internal prototype to avoid an error.  */
15727 #ifdef __cplusplus
15728 extern "C"
15729 {
15730 #endif
15731 /* We use char because int might match the return type of a gcc2
15732    builtin and then its argument prototype would still apply.  */
15733 char socket ();
15734 /* The GNU C library defines this for functions which it implements
15735     to always fail with ENOSYS.  Some functions are actually named
15736     something starting with __ and the normal name is an alias.  */
15737 #if defined (__stub_socket) || defined (__stub___socket)
15738 choke me
15739 #else
15740 char (*f) () = socket;
15741 #endif
15742 #ifdef __cplusplus
15743 }
15744 #endif
15745
15746 int
15747 main ()
15748 {
15749 return f != socket;
15750   ;
15751   return 0;
15752 }
15753 _ACEOF
15754 rm -f conftest.$ac_objext conftest$ac_exeext
15755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15756   (eval $ac_link) 2>&5
15757   ac_status=$?
15758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759   (exit $ac_status); } &&
15760          { ac_try='test -s conftest$ac_exeext'
15761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762   (eval $ac_try) 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); }; }; then
15766   ac_cv_func_socket=yes
15767 else
15768   echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ac_cv_func_socket=no
15772 fi
15773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15774 fi
15775 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15776 echo "${ECHO_T}$ac_cv_func_socket" >&6
15777 if test $ac_cv_func_socket = yes; then
15778   echo "$as_me:$LINENO: result: using libc's socket" >&5
15779 echo "${ECHO_T}using libc's socket" >&6
15780 else
15781
15782 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15783 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15784 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15785   echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787   ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lxnet  $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15790 #line $LINENO "configure"
15791 /* confdefs.h.  */
15792 _ACEOF
15793 cat confdefs.h >>conftest.$ac_ext
15794 cat >>conftest.$ac_ext <<_ACEOF
15795 /* end confdefs.h.  */
15796
15797 /* Override any gcc2 internal prototype to avoid an error.  */
15798 #ifdef __cplusplus
15799 extern "C"
15800 #endif
15801 /* We use char because int might match the return type of a gcc2
15802    builtin and then its argument prototype would still apply.  */
15803 char socket ();
15804 int
15805 main ()
15806 {
15807 socket ();
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext conftest$ac_exeext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15814   (eval $ac_link) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); } &&
15818          { ac_try='test -s conftest$ac_exeext'
15819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820   (eval $ac_try) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_cv_lib_xnet_socket=yes
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829 ac_cv_lib_xnet_socket=no
15830 fi
15831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15832 LIBS=$ac_check_lib_save_LIBS
15833 fi
15834 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15835 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15836 if test $ac_cv_lib_xnet_socket = yes; then
15837   cat >>confdefs.h <<_ACEOF
15838 #define HAVE_LIBXNET 1
15839 _ACEOF
15840
15841   LIBS="-lxnet $LIBS"
15842
15843 fi
15844
15845
15846 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15847 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15848 if test "${ac_cv_lib_socket_socket+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lsocket  $LIBS"
15853 cat >conftest.$ac_ext <<_ACEOF
15854 #line $LINENO "configure"
15855 /* confdefs.h.  */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h.  */
15860
15861 /* Override any gcc2 internal prototype to avoid an error.  */
15862 #ifdef __cplusplus
15863 extern "C"
15864 #endif
15865 /* We use char because int might match the return type of a gcc2
15866    builtin and then its argument prototype would still apply.  */
15867 char socket ();
15868 int
15869 main ()
15870 {
15871 socket ();
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext conftest$ac_exeext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878   (eval $ac_link) 2>&5
15879   ac_status=$?
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } &&
15882          { ac_try='test -s conftest$ac_exeext'
15883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884   (eval $ac_try) 2>&5
15885   ac_status=$?
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; }; then
15888   ac_cv_lib_socket_socket=yes
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_cv_lib_socket_socket=no
15894 fi
15895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15896 LIBS=$ac_check_lib_save_LIBS
15897 fi
15898 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15899 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15900 if test $ac_cv_lib_socket_socket = yes; then
15901   cat >>confdefs.h <<_ACEOF
15902 #define HAVE_LIBSOCKET 1
15903 _ACEOF
15904
15905   LIBS="-lsocket $LIBS"
15906
15907 fi
15908
15909
15910 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15911 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15912 if test "${ac_cv_lib_inet_socket+set}" = set; then
15913   echo $ECHO_N "(cached) $ECHO_C" >&6
15914 else
15915   ac_check_lib_save_LIBS=$LIBS
15916 LIBS="-linet  $LIBS"
15917 cat >conftest.$ac_ext <<_ACEOF
15918 #line $LINENO "configure"
15919 /* confdefs.h.  */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h.  */
15924
15925 /* Override any gcc2 internal prototype to avoid an error.  */
15926 #ifdef __cplusplus
15927 extern "C"
15928 #endif
15929 /* We use char because int might match the return type of a gcc2
15930    builtin and then its argument prototype would still apply.  */
15931 char socket ();
15932 int
15933 main ()
15934 {
15935 socket ();
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942   (eval $ac_link) 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } &&
15946          { ac_try='test -s conftest$ac_exeext'
15947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948   (eval $ac_try) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; }; then
15952   ac_cv_lib_inet_socket=yes
15953 else
15954   echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 ac_cv_lib_inet_socket=no
15958 fi
15959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15961 fi
15962 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15963 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15964 if test $ac_cv_lib_inet_socket = yes; then
15965   cat >>confdefs.h <<_ACEOF
15966 #define HAVE_LIBINET 1
15967 _ACEOF
15968
15969   LIBS="-linet $LIBS"
15970
15971 fi
15972
15973 fi
15974
15975
15976
15977 for ac_func in inet_pton
15978 do
15979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15980 echo "$as_me:$LINENO: checking for $ac_func" >&5
15981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15982 if eval "test \"\${$as_ac_var+set}\" = set"; then
15983   echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985   cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992 /* System header to define __stub macros and hopefully few prototypes,
15993     which can conflict with char $ac_func (); below.
15994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15995     <limits.h> exists even on freestanding compilers.  */
15996 #ifdef __STDC__
15997 # include <limits.h>
15998 #else
15999 # include <assert.h>
16000 #endif
16001 /* Override any gcc2 internal prototype to avoid an error.  */
16002 #ifdef __cplusplus
16003 extern "C"
16004 {
16005 #endif
16006 /* We use char because int might match the return type of a gcc2
16007    builtin and then its argument prototype would still apply.  */
16008 char $ac_func ();
16009 /* The GNU C library defines this for functions which it implements
16010     to always fail with ENOSYS.  Some functions are actually named
16011     something starting with __ and the normal name is an alias.  */
16012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16013 choke me
16014 #else
16015 char (*f) () = $ac_func;
16016 #endif
16017 #ifdef __cplusplus
16018 }
16019 #endif
16020
16021 int
16022 main ()
16023 {
16024 return f != $ac_func;
16025   ;
16026   return 0;
16027 }
16028 _ACEOF
16029 rm -f conftest.$ac_objext conftest$ac_exeext
16030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16031   (eval $ac_link) 2>&5
16032   ac_status=$?
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } &&
16035          { ac_try='test -s conftest$ac_exeext'
16036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037   (eval $ac_try) 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; }; then
16041   eval "$as_ac_var=yes"
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046 eval "$as_ac_var=no"
16047 fi
16048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16049 fi
16050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16052 if test `eval echo '${'$as_ac_var'}'` = yes; then
16053   cat >>confdefs.h <<_ACEOF
16054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16055 _ACEOF
16056  cat >>confdefs.h <<\_ACEOF
16057 #define HAVE_INET_PTON 1
16058 _ACEOF
16059
16060 fi
16061 done
16062
16063
16064
16065 for ac_func in strftime
16066 do
16067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16068 echo "$as_me:$LINENO: checking for $ac_func" >&5
16069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16070 if eval "test \"\${$as_ac_var+set}\" = set"; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   cat >conftest.$ac_ext <<_ACEOF
16074 #line $LINENO "configure"
16075 /* confdefs.h.  */
16076 _ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h.  */
16080 /* System header to define __stub macros and hopefully few prototypes,
16081     which can conflict with char $ac_func (); below.
16082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16083     <limits.h> exists even on freestanding compilers.  */
16084 #ifdef __STDC__
16085 # include <limits.h>
16086 #else
16087 # include <assert.h>
16088 #endif
16089 /* Override any gcc2 internal prototype to avoid an error.  */
16090 #ifdef __cplusplus
16091 extern "C"
16092 {
16093 #endif
16094 /* We use char because int might match the return type of a gcc2
16095    builtin and then its argument prototype would still apply.  */
16096 char $ac_func ();
16097 /* The GNU C library defines this for functions which it implements
16098     to always fail with ENOSYS.  Some functions are actually named
16099     something starting with __ and the normal name is an alias.  */
16100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16101 choke me
16102 #else
16103 char (*f) () = $ac_func;
16104 #endif
16105 #ifdef __cplusplus
16106 }
16107 #endif
16108
16109 int
16110 main ()
16111 {
16112 return f != $ac_func;
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 rm -f conftest.$ac_objext conftest$ac_exeext
16118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16119   (eval $ac_link) 2>&5
16120   ac_status=$?
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); } &&
16123          { ac_try='test -s conftest$ac_exeext'
16124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125   (eval $ac_try) 2>&5
16126   ac_status=$?
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); }; }; then
16129   eval "$as_ac_var=yes"
16130 else
16131   echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134 eval "$as_ac_var=no"
16135 fi
16136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16137 fi
16138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16140 if test `eval echo '${'$as_ac_var'}'` = yes; then
16141   cat >>confdefs.h <<_ACEOF
16142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16143 _ACEOF
16144
16145 else
16146   # strftime is in -lintl on SCO UNIX.
16147 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16148 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16149 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16150   echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152   ac_check_lib_save_LIBS=$LIBS
16153 LIBS="-lintl  $LIBS"
16154 cat >conftest.$ac_ext <<_ACEOF
16155 #line $LINENO "configure"
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161
16162 /* Override any gcc2 internal prototype to avoid an error.  */
16163 #ifdef __cplusplus
16164 extern "C"
16165 #endif
16166 /* We use char because int might match the return type of a gcc2
16167    builtin and then its argument prototype would still apply.  */
16168 char strftime ();
16169 int
16170 main ()
16171 {
16172 strftime ();
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 rm -f conftest.$ac_objext conftest$ac_exeext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16179   (eval $ac_link) 2>&5
16180   ac_status=$?
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } &&
16183          { ac_try='test -s conftest$ac_exeext'
16184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185   (eval $ac_try) 2>&5
16186   ac_status=$?
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); }; }; then
16189   ac_cv_lib_intl_strftime=yes
16190 else
16191   echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16193
16194 ac_cv_lib_intl_strftime=no
16195 fi
16196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16197 LIBS=$ac_check_lib_save_LIBS
16198 fi
16199 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16200 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16201 if test $ac_cv_lib_intl_strftime = yes; then
16202   cat >>confdefs.h <<\_ACEOF
16203 #define HAVE_STRFTIME 1
16204 _ACEOF
16205
16206 LIBS="-lintl $LIBS"
16207 fi
16208
16209 fi
16210 done
16211
16212
16213 for ac_func in vprintf
16214 do
16215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16216 echo "$as_me:$LINENO: checking for $ac_func" >&5
16217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16218 if eval "test \"\${$as_ac_var+set}\" = set"; then
16219   echo $ECHO_N "(cached) $ECHO_C" >&6
16220 else
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 /* System header to define __stub macros and hopefully few prototypes,
16229     which can conflict with char $ac_func (); below.
16230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16231     <limits.h> exists even on freestanding compilers.  */
16232 #ifdef __STDC__
16233 # include <limits.h>
16234 #else
16235 # include <assert.h>
16236 #endif
16237 /* Override any gcc2 internal prototype to avoid an error.  */
16238 #ifdef __cplusplus
16239 extern "C"
16240 {
16241 #endif
16242 /* We use char because int might match the return type of a gcc2
16243    builtin and then its argument prototype would still apply.  */
16244 char $ac_func ();
16245 /* The GNU C library defines this for functions which it implements
16246     to always fail with ENOSYS.  Some functions are actually named
16247     something starting with __ and the normal name is an alias.  */
16248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16249 choke me
16250 #else
16251 char (*f) () = $ac_func;
16252 #endif
16253 #ifdef __cplusplus
16254 }
16255 #endif
16256
16257 int
16258 main ()
16259 {
16260 return f != $ac_func;
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267   (eval $ac_link) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } &&
16271          { ac_try='test -s conftest$ac_exeext'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; }; then
16277   eval "$as_ac_var=yes"
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282 eval "$as_ac_var=no"
16283 fi
16284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16285 fi
16286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16288 if test `eval echo '${'$as_ac_var'}'` = yes; then
16289   cat >>confdefs.h <<_ACEOF
16290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16291 _ACEOF
16292
16293 echo "$as_me:$LINENO: checking for _doprnt" >&5
16294 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16295 if test "${ac_cv_func__doprnt+set}" = set; then
16296   echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298   cat >conftest.$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305 /* System header to define __stub macros and hopefully few prototypes,
16306     which can conflict with char _doprnt (); below.
16307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16308     <limits.h> exists even on freestanding compilers.  */
16309 #ifdef __STDC__
16310 # include <limits.h>
16311 #else
16312 # include <assert.h>
16313 #endif
16314 /* Override any gcc2 internal prototype to avoid an error.  */
16315 #ifdef __cplusplus
16316 extern "C"
16317 {
16318 #endif
16319 /* We use char because int might match the return type of a gcc2
16320    builtin and then its argument prototype would still apply.  */
16321 char _doprnt ();
16322 /* The GNU C library defines this for functions which it implements
16323     to always fail with ENOSYS.  Some functions are actually named
16324     something starting with __ and the normal name is an alias.  */
16325 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16326 choke me
16327 #else
16328 char (*f) () = _doprnt;
16329 #endif
16330 #ifdef __cplusplus
16331 }
16332 #endif
16333
16334 int
16335 main ()
16336 {
16337 return f != _doprnt;
16338   ;
16339   return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344   (eval $ac_link) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } &&
16348          { ac_try='test -s conftest$ac_exeext'
16349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350   (eval $ac_try) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; }; then
16354   ac_cv_func__doprnt=yes
16355 else
16356   echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ac_cv_func__doprnt=no
16360 fi
16361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16362 fi
16363 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16364 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16365 if test $ac_cv_func__doprnt = yes; then
16366
16367 cat >>confdefs.h <<\_ACEOF
16368 #define HAVE_DOPRNT 1
16369 _ACEOF
16370
16371 fi
16372
16373 fi
16374 done
16375
16376
16377 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16378 # for constant arguments.  Useless!
16379 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16380 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16381 if test "${ac_cv_working_alloca_h+set}" = set; then
16382   echo $ECHO_N "(cached) $ECHO_C" >&6
16383 else
16384   cat >conftest.$ac_ext <<_ACEOF
16385 #line $LINENO "configure"
16386 /* confdefs.h.  */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h.  */
16391 #include <alloca.h>
16392 int
16393 main ()
16394 {
16395 char *p = (char *) alloca (2 * sizeof (int));
16396   ;
16397   return 0;
16398 }
16399 _ACEOF
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402   (eval $ac_link) 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); } &&
16406          { ac_try='test -s conftest$ac_exeext'
16407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408   (eval $ac_try) 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; }; then
16412   ac_cv_working_alloca_h=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_cv_working_alloca_h=no
16418 fi
16419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16420 fi
16421 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16422 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16423 if test $ac_cv_working_alloca_h = yes; then
16424
16425 cat >>confdefs.h <<\_ACEOF
16426 #define HAVE_ALLOCA_H 1
16427 _ACEOF
16428
16429 fi
16430
16431 echo "$as_me:$LINENO: checking for alloca" >&5
16432 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16433 if test "${ac_cv_func_alloca_works+set}" = set; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   cat >conftest.$ac_ext <<_ACEOF
16437 #line $LINENO "configure"
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443 #ifdef __GNUC__
16444 # define alloca __builtin_alloca
16445 #else
16446 # ifdef _MSC_VER
16447 #  include <malloc.h>
16448 #  define alloca _alloca
16449 # else
16450 #  if HAVE_ALLOCA_H
16451 #   include <alloca.h>
16452 #  else
16453 #   ifdef _AIX
16454  #pragma alloca
16455 #   else
16456 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16457 char *alloca ();
16458 #    endif
16459 #   endif
16460 #  endif
16461 # endif
16462 #endif
16463
16464 int
16465 main ()
16466 {
16467 char *p = (char *) alloca (1);
16468   ;
16469   return 0;
16470 }
16471 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16474   (eval $ac_link) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } &&
16478          { ac_try='test -s conftest$ac_exeext'
16479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480   (eval $ac_try) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; }; then
16484   ac_cv_func_alloca_works=yes
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 ac_cv_func_alloca_works=no
16490 fi
16491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16492 fi
16493 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16494 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16495
16496 if test $ac_cv_func_alloca_works = yes; then
16497
16498 cat >>confdefs.h <<\_ACEOF
16499 #define HAVE_ALLOCA 1
16500 _ACEOF
16501
16502 else
16503   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16504 # that cause trouble.  Some versions do not even contain alloca or
16505 # contain a buggy version.  If you still want to use their alloca,
16506 # use ar to extract alloca.o from them instead of compiling alloca.c.
16507
16508 ALLOCA=alloca.$ac_objext
16509
16510 cat >>confdefs.h <<\_ACEOF
16511 #define C_ALLOCA 1
16512 _ACEOF
16513
16514
16515 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16516 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16517 if test "${ac_cv_os_cray+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   cat >conftest.$ac_ext <<_ACEOF
16521 #line $LINENO "configure"
16522 /* confdefs.h.  */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h.  */
16527 #if defined(CRAY) && ! defined(CRAY2)
16528 webecray
16529 #else
16530 wenotbecray
16531 #endif
16532
16533 _ACEOF
16534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16535   $EGREP "webecray" >/dev/null 2>&1; then
16536   ac_cv_os_cray=yes
16537 else
16538   ac_cv_os_cray=no
16539 fi
16540 rm -f conftest*
16541
16542 fi
16543 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16544 echo "${ECHO_T}$ac_cv_os_cray" >&6
16545 if test $ac_cv_os_cray = yes; then
16546   for ac_func in _getb67 GETB67 getb67; do
16547     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16548 echo "$as_me:$LINENO: checking for $ac_func" >&5
16549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16550 if eval "test \"\${$as_ac_var+set}\" = set"; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   cat >conftest.$ac_ext <<_ACEOF
16554 #line $LINENO "configure"
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560 /* System header to define __stub macros and hopefully few prototypes,
16561     which can conflict with char $ac_func (); below.
16562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563     <limits.h> exists even on freestanding compilers.  */
16564 #ifdef __STDC__
16565 # include <limits.h>
16566 #else
16567 # include <assert.h>
16568 #endif
16569 /* Override any gcc2 internal prototype to avoid an error.  */
16570 #ifdef __cplusplus
16571 extern "C"
16572 {
16573 #endif
16574 /* We use char because int might match the return type of a gcc2
16575    builtin and then its argument prototype would still apply.  */
16576 char $ac_func ();
16577 /* The GNU C library defines this for functions which it implements
16578     to always fail with ENOSYS.  Some functions are actually named
16579     something starting with __ and the normal name is an alias.  */
16580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16581 choke me
16582 #else
16583 char (*f) () = $ac_func;
16584 #endif
16585 #ifdef __cplusplus
16586 }
16587 #endif
16588
16589 int
16590 main ()
16591 {
16592 return f != $ac_func;
16593   ;
16594   return 0;
16595 }
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599   (eval $ac_link) 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } &&
16603          { ac_try='test -s conftest$ac_exeext'
16604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605   (eval $ac_try) 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); }; }; then
16609   eval "$as_ac_var=yes"
16610 else
16611   echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16613
16614 eval "$as_ac_var=no"
16615 fi
16616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16617 fi
16618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16620 if test `eval echo '${'$as_ac_var'}'` = yes; then
16621
16622 cat >>confdefs.h <<_ACEOF
16623 #define CRAY_STACKSEG_END $ac_func
16624 _ACEOF
16625
16626     break
16627 fi
16628
16629   done
16630 fi
16631
16632 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16634 if test "${ac_cv_c_stack_direction+set}" = set; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637   if test "$cross_compiling" = yes; then
16638   ac_cv_c_stack_direction=0
16639 else
16640   cat >conftest.$ac_ext <<_ACEOF
16641 #line $LINENO "configure"
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647 int
16648 find_stack_direction ()
16649 {
16650   static char *addr = 0;
16651   auto char dummy;
16652   if (addr == 0)
16653     {
16654       addr = &dummy;
16655       return find_stack_direction ();
16656     }
16657   else
16658     return (&dummy > addr) ? 1 : -1;
16659 }
16660
16661 int
16662 main ()
16663 {
16664   exit (find_stack_direction () < 0);
16665 }
16666 _ACEOF
16667 rm -f conftest$ac_exeext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16669   (eval $ac_link) 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_cv_c_stack_direction=1
16679 else
16680   echo "$as_me: program exited with status $ac_status" >&5
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 ( exit $ac_status )
16685 ac_cv_c_stack_direction=-1
16686 fi
16687 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16688 fi
16689 fi
16690 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16691 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16692
16693 cat >>confdefs.h <<_ACEOF
16694 #define STACK_DIRECTION $ac_cv_c_stack_direction
16695 _ACEOF
16696
16697
16698 fi
16699
16700 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16701 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16702 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16703 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16704   echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706   ac_check_lib_save_LIBS=$LIBS
16707 LIBS="-lsun  $LIBS"
16708 cat >conftest.$ac_ext <<_ACEOF
16709 #line $LINENO "configure"
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715
16716 /* Override any gcc2 internal prototype to avoid an error.  */
16717 #ifdef __cplusplus
16718 extern "C"
16719 #endif
16720 /* We use char because int might match the return type of a gcc2
16721    builtin and then its argument prototype would still apply.  */
16722 char getmntent ();
16723 int
16724 main ()
16725 {
16726 getmntent ();
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733   (eval $ac_link) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } &&
16737          { ac_try='test -s conftest$ac_exeext'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   ac_cv_lib_sun_getmntent=yes
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 ac_cv_lib_sun_getmntent=no
16749 fi
16750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16751 LIBS=$ac_check_lib_save_LIBS
16752 fi
16753 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16754 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16755 if test $ac_cv_lib_sun_getmntent = yes; then
16756   LIBS="-lsun $LIBS"
16757 else
16758   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16759 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16760 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16761   echo $ECHO_N "(cached) $ECHO_C" >&6
16762 else
16763   ac_check_lib_save_LIBS=$LIBS
16764 LIBS="-lseq  $LIBS"
16765 cat >conftest.$ac_ext <<_ACEOF
16766 #line $LINENO "configure"
16767 /* confdefs.h.  */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h.  */
16772
16773 /* Override any gcc2 internal prototype to avoid an error.  */
16774 #ifdef __cplusplus
16775 extern "C"
16776 #endif
16777 /* We use char because int might match the return type of a gcc2
16778    builtin and then its argument prototype would still apply.  */
16779 char getmntent ();
16780 int
16781 main ()
16782 {
16783 getmntent ();
16784   ;
16785   return 0;
16786 }
16787 _ACEOF
16788 rm -f conftest.$ac_objext conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790   (eval $ac_link) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } &&
16794          { ac_try='test -s conftest$ac_exeext'
16795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796   (eval $ac_try) 2>&5
16797   ac_status=$?
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); }; }; then
16800   ac_cv_lib_seq_getmntent=yes
16801 else
16802   echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ac_cv_lib_seq_getmntent=no
16806 fi
16807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16809 fi
16810 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16811 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16812 if test $ac_cv_lib_seq_getmntent = yes; then
16813   LIBS="-lseq $LIBS"
16814 else
16815   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16816 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16817 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16818   echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820   ac_check_lib_save_LIBS=$LIBS
16821 LIBS="-lgen  $LIBS"
16822 cat >conftest.$ac_ext <<_ACEOF
16823 #line $LINENO "configure"
16824 /* confdefs.h.  */
16825 _ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h.  */
16829
16830 /* Override any gcc2 internal prototype to avoid an error.  */
16831 #ifdef __cplusplus
16832 extern "C"
16833 #endif
16834 /* We use char because int might match the return type of a gcc2
16835    builtin and then its argument prototype would still apply.  */
16836 char getmntent ();
16837 int
16838 main ()
16839 {
16840 getmntent ();
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext conftest$ac_exeext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16847   (eval $ac_link) 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); } &&
16851          { ac_try='test -s conftest$ac_exeext'
16852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853   (eval $ac_try) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; }; then
16857   ac_cv_lib_gen_getmntent=yes
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 ac_cv_lib_gen_getmntent=no
16863 fi
16864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16865 LIBS=$ac_check_lib_save_LIBS
16866 fi
16867 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16868 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16869 if test $ac_cv_lib_gen_getmntent = yes; then
16870   LIBS="-lgen $LIBS"
16871 fi
16872
16873 fi
16874
16875 fi
16876
16877
16878 for ac_func in getmntent
16879 do
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16883 if eval "test \"\${$as_ac_var+set}\" = set"; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 /* confdefs.h.  */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h.  */
16893 /* System header to define __stub macros and hopefully few prototypes,
16894     which can conflict with char $ac_func (); below.
16895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16896     <limits.h> exists even on freestanding compilers.  */
16897 #ifdef __STDC__
16898 # include <limits.h>
16899 #else
16900 # include <assert.h>
16901 #endif
16902 /* Override any gcc2 internal prototype to avoid an error.  */
16903 #ifdef __cplusplus
16904 extern "C"
16905 {
16906 #endif
16907 /* We use char because int might match the return type of a gcc2
16908    builtin and then its argument prototype would still apply.  */
16909 char $ac_func ();
16910 /* The GNU C library defines this for functions which it implements
16911     to always fail with ENOSYS.  Some functions are actually named
16912     something starting with __ and the normal name is an alias.  */
16913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16914 choke me
16915 #else
16916 char (*f) () = $ac_func;
16917 #endif
16918 #ifdef __cplusplus
16919 }
16920 #endif
16921
16922 int
16923 main ()
16924 {
16925 return f != $ac_func;
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932   (eval $ac_link) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } &&
16936          { ac_try='test -s conftest$ac_exeext'
16937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938   (eval $ac_try) 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); }; }; then
16942   eval "$as_ac_var=yes"
16943 else
16944   echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16946
16947 eval "$as_ac_var=no"
16948 fi
16949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16950 fi
16951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16953 if test `eval echo '${'$as_ac_var'}'` = yes; then
16954   cat >>confdefs.h <<_ACEOF
16955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16956 _ACEOF
16957
16958 fi
16959 done
16960
16961
16962 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16963 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16964 if test "${ac_cv_func_closedir_void+set}" = set; then
16965   echo $ECHO_N "(cached) $ECHO_C" >&6
16966 else
16967   if test "$cross_compiling" = yes; then
16968   ac_cv_func_closedir_void=yes
16969 else
16970   cat >conftest.$ac_ext <<_ACEOF
16971 #line $LINENO "configure"
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977 $ac_includes_default
16978 #include <$ac_header_dirent>
16979 #ifndef __cplusplus
16980 int closedir ();
16981 #endif
16982
16983 int
16984 main ()
16985 {
16986 exit (closedir (opendir (".")) != 0);
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest$ac_exeext
16992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16993   (eval $ac_link) 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998   (eval $ac_try) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; }; then
17002   ac_cv_func_closedir_void=no
17003 else
17004   echo "$as_me: program exited with status $ac_status" >&5
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008 ( exit $ac_status )
17009 ac_cv_func_closedir_void=yes
17010 fi
17011 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17012 fi
17013 fi
17014 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17015 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17016 if test $ac_cv_func_closedir_void = yes; then
17017
17018 cat >>confdefs.h <<\_ACEOF
17019 #define CLOSEDIR_VOID 1
17020 _ACEOF
17021
17022 fi
17023
17024 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17025 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17026 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 else
17029   if test "$cross_compiling" = yes; then
17030   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17031 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17032    { (exit 1); exit 1; }; }
17033 else
17034   cat >conftest.$ac_ext <<_ACEOF
17035 #line $LINENO "configure"
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041 #if HAVE_UNISTD_H
17042 # include <unistd.h>
17043 #endif
17044
17045 int
17046 main ()
17047 {
17048 /* If this system has a BSD-style setpgrp which takes arguments,
17049   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17050   exit successfully. */
17051   exit (setpgrp (1,1) == -1 ? 0 : 1);
17052   ;
17053   return 0;
17054 }
17055 _ACEOF
17056 rm -f conftest$ac_exeext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058   (eval $ac_link) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063   (eval $ac_try) 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); }; }; then
17067   ac_cv_func_setpgrp_void=no
17068 else
17069   echo "$as_me: program exited with status $ac_status" >&5
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073 ( exit $ac_status )
17074 ac_cv_func_setpgrp_void=yes
17075 fi
17076 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17077 fi
17078 fi
17079 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17080 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17081 if test $ac_cv_func_setpgrp_void = yes; then
17082
17083 cat >>confdefs.h <<\_ACEOF
17084 #define SETPGRP_VOID 1
17085 _ACEOF
17086
17087 fi
17088                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17089 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17090 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17091   echo $ECHO_N "(cached) $ECHO_C" >&6
17092 else
17093   # Some versions of Solaris, SCO, and the GNU C Library
17094    # have a broken or incompatible fnmatch.
17095    # So we run a test program.  If we are cross-compiling, take no chance.
17096    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17097    if test "$cross_compiling" = yes; then
17098   ac_cv_func_fnmatch_works=cross
17099 else
17100   cat >conftest.$ac_ext <<_ACEOF
17101 #line $LINENO "configure"
17102 /* confdefs.h.  */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h.  */
17107 #include <fnmatch.h>
17108 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17109 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17110
17111 int
17112 main ()
17113 {
17114 exit
17115            (!(y ("a*", "abc", 0)
17116               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17117               && y ("a\\\\bc", "abc", 0)
17118               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17119               && y ("*x", ".x", 0)
17120               && n ("*x", ".x", FNM_PERIOD)
17121               && 1));
17122   ;
17123   return 0;
17124 }
17125 _ACEOF
17126 rm -f conftest$ac_exeext
17127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17128   (eval $ac_link) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133   (eval $ac_try) 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; }; then
17137   ac_cv_func_fnmatch_works=yes
17138 else
17139   echo "$as_me: program exited with status $ac_status" >&5
17140 echo "$as_me: failed program was:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17142
17143 ( exit $ac_status )
17144 ac_cv_func_fnmatch_works=no
17145 fi
17146 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17147 fi
17148 fi
17149 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17150 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17151 if test $ac_cv_func_fnmatch_works = yes; then
17152
17153 cat >>confdefs.h <<\_ACEOF
17154 #define HAVE_FNMATCH 1
17155 _ACEOF
17156
17157 fi
17158
17159
17160
17161
17162
17163 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17164 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17165 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17166   echo $ECHO_N "(cached) $ECHO_C" >&6
17167 else
17168   ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-lxpg4  $LIBS"
17170 cat >conftest.$ac_ext <<_ACEOF
17171 #line $LINENO "configure"
17172 /* confdefs.h.  */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h.  */
17177
17178 /* Override any gcc2 internal prototype to avoid an error.  */
17179 #ifdef __cplusplus
17180 extern "C"
17181 #endif
17182 /* We use char because int might match the return type of a gcc2
17183    builtin and then its argument prototype would still apply.  */
17184 char setlocale ();
17185 int
17186 main ()
17187 {
17188 setlocale ();
17189   ;
17190   return 0;
17191 }
17192 _ACEOF
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17195   (eval $ac_link) 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); } &&
17199          { ac_try='test -s conftest$ac_exeext'
17200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201   (eval $ac_try) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; }; then
17205   ac_cv_lib_xpg4_setlocale=yes
17206 else
17207   echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210 ac_cv_lib_xpg4_setlocale=no
17211 fi
17212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17214 fi
17215 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17216 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17217 if test $ac_cv_lib_xpg4_setlocale = yes; then
17218   LIBS="$LIBS -lxpg4"
17219 fi
17220
17221
17222
17223
17224 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17225 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17226 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17227   echo $ECHO_N "(cached) $ECHO_C" >&6
17228 else
17229   ac_check_lib_save_LIBS=$LIBS
17230 LIBS="-lsun  $LIBS"
17231 cat >conftest.$ac_ext <<_ACEOF
17232 #line $LINENO "configure"
17233 /* confdefs.h.  */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h.  */
17238
17239 /* Override any gcc2 internal prototype to avoid an error.  */
17240 #ifdef __cplusplus
17241 extern "C"
17242 #endif
17243 /* We use char because int might match the return type of a gcc2
17244    builtin and then its argument prototype would still apply.  */
17245 char getpwnam ();
17246 int
17247 main ()
17248 {
17249 getpwnam ();
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17256   (eval $ac_link) 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } &&
17260          { ac_try='test -s conftest$ac_exeext'
17261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262   (eval $ac_try) 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; }; then
17266   ac_cv_lib_sun_getpwnam=yes
17267 else
17268   echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 ac_cv_lib_sun_getpwnam=no
17272 fi
17273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17274 LIBS=$ac_check_lib_save_LIBS
17275 fi
17276 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17277 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17278 if test $ac_cv_lib_sun_getpwnam = yes; then
17279   cat >>confdefs.h <<_ACEOF
17280 #define HAVE_LIBSUN 1
17281 _ACEOF
17282
17283   LIBS="-lsun $LIBS"
17284
17285 fi
17286
17287
17288
17289 for ac_header in zlib.h
17290 do
17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17293   echo "$as_me:$LINENO: checking for $ac_header" >&5
17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17296   echo $ECHO_N "(cached) $ECHO_C" >&6
17297 fi
17298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17300 else
17301   # Is the header compilable?
17302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line $LINENO "configure"
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 $ac_includes_default
17312 #include <$ac_header>
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316   (eval $ac_compile) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); } &&
17320          { ac_try='test -s conftest.$ac_objext'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   ac_header_compiler=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 ac_header_compiler=no
17332 fi
17333 rm -f conftest.$ac_objext conftest.$ac_ext
17334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17335 echo "${ECHO_T}$ac_header_compiler" >&6
17336
17337 # Is the header present?
17338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17340 cat >conftest.$ac_ext <<_ACEOF
17341 #line $LINENO "configure"
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347 #include <$ac_header>
17348 _ACEOF
17349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } >/dev/null; then
17357   if test -s conftest.err; then
17358     ac_cpp_err=$ac_c_preproc_warn_flag
17359   else
17360     ac_cpp_err=
17361   fi
17362 else
17363   ac_cpp_err=yes
17364 fi
17365 if test -z "$ac_cpp_err"; then
17366   ac_header_preproc=yes
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371   ac_header_preproc=no
17372 fi
17373 rm -f conftest.err conftest.$ac_ext
17374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17375 echo "${ECHO_T}$ac_header_preproc" >&6
17376
17377 # So?  What about this header?
17378 case $ac_header_compiler:$ac_header_preproc in
17379   yes:no )
17380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17384     (
17385       cat <<\_ASBOX
17386 ## ------------------------------------ ##
17387 ## Report this to bug-autoconf@gnu.org. ##
17388 ## ------------------------------------ ##
17389 _ASBOX
17390     ) |
17391       sed "s/^/$as_me: WARNING:     /" >&2
17392     ;;
17393   no:yes )
17394     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17396     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17400     (
17401       cat <<\_ASBOX
17402 ## ------------------------------------ ##
17403 ## Report this to bug-autoconf@gnu.org. ##
17404 ## ------------------------------------ ##
17405 _ASBOX
17406     ) |
17407       sed "s/^/$as_me: WARNING:     /" >&2
17408     ;;
17409 esac
17410 echo "$as_me:$LINENO: checking for $ac_header" >&5
17411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   eval "$as_ac_Header=$ac_header_preproc"
17416 fi
17417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17419
17420 fi
17421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17422   cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17424 _ACEOF
17425
17426 fi
17427
17428 done
17429
17430 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17431 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17432 if test "${ac_cv_lib_z_deflate+set}" = set; then
17433   echo $ECHO_N "(cached) $ECHO_C" >&6
17434 else
17435   ac_check_lib_save_LIBS=$LIBS
17436 LIBS="-lz  $LIBS"
17437 cat >conftest.$ac_ext <<_ACEOF
17438 #line $LINENO "configure"
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444
17445 /* Override any gcc2 internal prototype to avoid an error.  */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 /* We use char because int might match the return type of a gcc2
17450    builtin and then its argument prototype would still apply.  */
17451 char deflate ();
17452 int
17453 main ()
17454 {
17455 deflate ();
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462   (eval $ac_link) 2>&5
17463   ac_status=$?
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -s conftest$ac_exeext'
17467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468   (eval $ac_try) 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); }; }; then
17472   ac_cv_lib_z_deflate=yes
17473 else
17474   echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477 ac_cv_lib_z_deflate=no
17478 fi
17479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17480 LIBS=$ac_check_lib_save_LIBS
17481 fi
17482 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17483 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17484 if test $ac_cv_lib_z_deflate = yes; then
17485   FDLIBS="-lz"
17486 fi
17487
17488 have_zlib=no
17489 if test x$FDLIBS = x-lz; then
17490   cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_LIBZ 1
17492 _ACEOF
17493
17494   have_zlib=yes
17495 fi
17496
17497 PTHREAD_LIB=""
17498 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17499 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17500 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   ac_check_lib_save_LIBS=$LIBS
17504 LIBS="-lpthread  $LIBS"
17505 cat >conftest.$ac_ext <<_ACEOF
17506 #line $LINENO "configure"
17507 /* confdefs.h.  */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h.  */
17512
17513 /* Override any gcc2 internal prototype to avoid an error.  */
17514 #ifdef __cplusplus
17515 extern "C"
17516 #endif
17517 /* We use char because int might match the return type of a gcc2
17518    builtin and then its argument prototype would still apply.  */
17519 char pthread_create ();
17520 int
17521 main ()
17522 {
17523 pthread_create ();
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 rm -f conftest.$ac_objext conftest$ac_exeext
17529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17530   (eval $ac_link) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -s conftest$ac_exeext'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; }; then
17540   ac_cv_lib_pthread_pthread_create=yes
17541 else
17542   echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545 ac_cv_lib_pthread_pthread_create=no
17546 fi
17547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17549 fi
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17551 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17552 if test $ac_cv_lib_pthread_pthread_create = yes; then
17553   PTHREAD_LIB="-lpthread"
17554 else
17555   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17556 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17557 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   ac_check_lib_save_LIBS=$LIBS
17561 LIBS="-lpthreads  $LIBS"
17562 cat >conftest.$ac_ext <<_ACEOF
17563 #line $LINENO "configure"
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 /* Override any gcc2 internal prototype to avoid an error.  */
17571 #ifdef __cplusplus
17572 extern "C"
17573 #endif
17574 /* We use char because int might match the return type of a gcc2
17575    builtin and then its argument prototype would still apply.  */
17576 char pthread_create ();
17577 int
17578 main ()
17579 {
17580 pthread_create ();
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587   (eval $ac_link) 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } &&
17591          { ac_try='test -s conftest$ac_exeext'
17592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593   (eval $ac_try) 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); }; }; then
17597   ac_cv_lib_pthreads_pthread_create=yes
17598 else
17599   echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602 ac_cv_lib_pthreads_pthread_create=no
17603 fi
17604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17605 LIBS=$ac_check_lib_save_LIBS
17606 fi
17607 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17608 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17609 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17610   PTHREAD_LIB="-lpthreads"
17611 else
17612   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17613 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17614 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617   ac_check_lib_save_LIBS=$LIBS
17618 LIBS="-lc_r  $LIBS"
17619 cat >conftest.$ac_ext <<_ACEOF
17620 #line $LINENO "configure"
17621 /* confdefs.h.  */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h.  */
17626
17627 /* Override any gcc2 internal prototype to avoid an error.  */
17628 #ifdef __cplusplus
17629 extern "C"
17630 #endif
17631 /* We use char because int might match the return type of a gcc2
17632    builtin and then its argument prototype would still apply.  */
17633 char pthread_create ();
17634 int
17635 main ()
17636 {
17637 pthread_create ();
17638   ;
17639   return 0;
17640 }
17641 _ACEOF
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644   (eval $ac_link) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); } &&
17648          { ac_try='test -s conftest$ac_exeext'
17649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650   (eval $ac_try) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; }; then
17654   ac_cv_lib_c_r_pthread_create=yes
17655 else
17656   echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17658
17659 ac_cv_lib_c_r_pthread_create=no
17660 fi
17661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17662 LIBS=$ac_check_lib_save_LIBS
17663 fi
17664 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17665 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17666 if test $ac_cv_lib_c_r_pthread_create = yes; then
17667   PTHREAD_LIB="-lc_r"
17668 else
17669   echo "$as_me:$LINENO: checking for pthread_create" >&5
17670 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17671 if test "${ac_cv_func_pthread_create+set}" = set; then
17672   echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674   cat >conftest.$ac_ext <<_ACEOF
17675 #line $LINENO "configure"
17676 /* confdefs.h.  */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h.  */
17681 /* System header to define __stub macros and hopefully few prototypes,
17682     which can conflict with char pthread_create (); below.
17683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17684     <limits.h> exists even on freestanding compilers.  */
17685 #ifdef __STDC__
17686 # include <limits.h>
17687 #else
17688 # include <assert.h>
17689 #endif
17690 /* Override any gcc2 internal prototype to avoid an error.  */
17691 #ifdef __cplusplus
17692 extern "C"
17693 {
17694 #endif
17695 /* We use char because int might match the return type of a gcc2
17696    builtin and then its argument prototype would still apply.  */
17697 char pthread_create ();
17698 /* The GNU C library defines this for functions which it implements
17699     to always fail with ENOSYS.  Some functions are actually named
17700     something starting with __ and the normal name is an alias.  */
17701 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17702 choke me
17703 #else
17704 char (*f) () = pthread_create;
17705 #endif
17706 #ifdef __cplusplus
17707 }
17708 #endif
17709
17710 int
17711 main ()
17712 {
17713 return f != pthread_create;
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720   (eval $ac_link) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } &&
17724          { ac_try='test -s conftest$ac_exeext'
17725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726   (eval $ac_try) 2>&5
17727   ac_status=$?
17728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729   (exit $ac_status); }; }; then
17730   ac_cv_func_pthread_create=yes
17731 else
17732   echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_cv_func_pthread_create=no
17736 fi
17737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17738 fi
17739 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17740 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17741
17742
17743 fi
17744
17745
17746 fi
17747
17748
17749 fi
17750
17751
17752
17753 cat >>confdefs.h <<\_ACEOF
17754 #define FDLIBS 1
17755 _ACEOF
17756
17757
17758
17759 CFLAGS=${CFLAGS--O}
17760 LDFLAGS=${LDFLAGS--O}
17761 DB_LIBS="${SQL_LFLAGS}"
17762
17763 CPPFLAGS="$CPPFLAGS"
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778 OBJLIST=
17779
17780
17781 lld="lld"
17782 llu="llu"
17783
17784 WCFLAGS=
17785 WLDFLAGS=
17786
17787 #
17788 # Finally we set appropriate distribution specific
17789 #  variables and defaults
17790 #
17791 # PFILES are platform specific files
17792 PFILES="platforms/Makefile"
17793 PSCMD="ps -e"
17794 WIN32=
17795 hostname=`uname -n`
17796 case "$DISTNAME" in
17797 aix)
17798         DISTVER=`uname -r`
17799         PSCMD="ps -e -o pid,comm"
17800         PFILES="${PFILES} \
17801            platforms/aix/Makefile"
17802         TAPEDRIVE="/dev/rmt0.1"
17803   ;;
17804 alpha)
17805         DISTVER=`uname -r`
17806         PTHREAD_LIB="-lpthread -lexc"
17807         if test "${CC}" = "gcc" ; then
17808            lld="lld"
17809            llu="llu"
17810         else
17811            lld="ld"
17812            llu="lu"
17813         fi
17814         TAPEDRIVE="/dev/nrmt0"
17815   ;;
17816 bsdi)
17817         DISTVER=`uname -a |awk '{print $3}'`
17818         TAPEDRIVE="/dev/nrmt0"
17819         PTHREAD_LIB="-pthread"
17820         CFLAGS="${CFLAGS} -pthread"
17821         PSCMD="ps -x -o pid,command"
17822         lld="qd"
17823         llu="qu"
17824         PFILES="${PFILES} \
17825             platforms/bsdi/Makefile \
17826             platforms/bsdi/bacula-fd \
17827             platforms/bsdi/bacula-sd \
17828             platforms/bsdi/bacula-dir"
17829         hostname=`hostname -s`
17830         largefile_support="yes"
17831   ;;
17832 cygwin)
17833         DISTVER=`uname -a |awk '{print $3}'`
17834         TAPEDRIVE="/dev/nrst0"
17835         WIN32=win32
17836         WCFLAGS="-mwindows"
17837         WLDFLAGS="-mwindows"
17838   ;;
17839 darwin)
17840         DISTVER=`uname -r`
17841         TAPEDRIVE="/dev/nst0"
17842         PSCMD="ps -e -o pid,command"
17843         hostname=`hostname -s`
17844         PFILES="${PFILES} \
17845            platforms/darwin/Makefile"
17846   ;;
17847 debian)
17848         DISTVER=`cat /etc/debian_version`
17849         TAPEDRIVE="/dev/nrst0"
17850         PSCMD="ps -e -o pid,command"
17851         hostname=`hostname -s`
17852   ;;
17853 freebsd)
17854         DISTVER=`uname -a |awk '{print $3}'`
17855         VER=`echo $DISTVER | cut -c 1`
17856         if test x$VER = x4 ; then
17857            PTHREAD_LIB="-pthread"
17858            CFLAGS="${CFLAGS} -pthread"
17859         fi
17860         lld="qd"
17861         llu="qu"
17862         TAPEDRIVE="/dev/nrsa0"
17863         PSCMD="ps -x -o pid,command"
17864         PFILES="${PFILES} \
17865             platforms/freebsd/Makefile \
17866             platforms/freebsd/bacula-fd \
17867             platforms/freebsd/bacula-sd \
17868             platforms/freebsd/bacula-dir"
17869         hostname=`hostname -s`
17870         largefile_support="yes"
17871   ;;
17872 hpux)
17873         DISTVER=`uname -r`
17874         TAPEDRIVE="/dev/rmt/0hnb"
17875   ;;
17876 irix)
17877         DISTVER=`uname -r`
17878         TAPEDRIVE="/dev/rmt/0cbn"
17879         PSCMD="ps -e -o pid,comm"
17880         PFILES="${PFILES} \
17881             platforms/irix/Makefile \
17882             platforms/irix/bacula-fd \
17883             platforms/irix/bacula-sd \
17884             platforms/irix/bacula-dir"
17885   ;;
17886 netbsd)
17887         DISTVER=`uname -a |awk '{print $3}'`
17888         lld="qd"
17889         llu="qu"
17890         TAPEDRIVE="/dev/nrst0"
17891         PSCMD="ps -a -o pid,command"
17892         PTHREAD_LIB="-pthread"
17893         CFLAGS="${CFLAGS} -pthread"
17894   ;;
17895 openbsd)
17896         DISTVER=`uname -a |awk '{print $3}'`
17897         lld="qd"
17898         llu="qu"
17899         TAPEDRIVE="/dev/nrst0"
17900         PSCMD="ps -a -o pid,command"
17901         PTHREAD_LIB="-pthread"
17902         CFLAGS="${CFLAGS} -pthread"
17903         PFILES="${PFILES} \
17904             platforms/openbsd/Makefile \
17905             platforms/openbsd/bacula-fd \
17906             platforms/openbsd/bacula-sd \
17907             platforms/openbsd/bacula-dir"
17908   ;;
17909 redhat)
17910         if test `cat /etc/redhat-release | grep release |\
17911                    cut -f 3 -d ' '`x = "Enterprise"x ; then
17912            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17913                     cut -f 6 -d ' '`
17914         else
17915             DISTVER=`cat /etc/redhat-release | grep release |\
17916                      cut -f 5 -d ' '`
17917         fi
17918         TAPEDRIVE="/dev/nst0"
17919         PSCMD="ps -e -o pid,command"
17920         PFILES="${PFILES} \
17921             platforms/redhat/Makefile \
17922             platforms/redhat/bacula-fd \
17923             platforms/redhat/bacula-sd \
17924             platforms/redhat/bacula-dir \
17925             platforms/redhat/bacula.spec \
17926             "
17927         hostname=`hostname -s`
17928   ;;
17929 mandrake)
17930         DISTVER=`cat /etc/mandrake-release | grep release |\
17931            cut -f 5 -d ' '`
17932         TAPEDRIVE="/dev/nst0"
17933         PSCMD="ps -e -o pid,command"
17934         PFILES="${PFILES} \
17935             platforms/mandrake/Makefile \
17936             platforms/mandrake/bacula-fd \
17937             platforms/mandrake/bacula-sd \
17938             platforms/mandrake/bacula-dir \
17939             platforms/mandrake/bacula.spec \
17940             "
17941         hostname=`hostname -s`
17942   ;;
17943 gentoo)
17944         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17945         TAPEDRIVE="/dev/nst0"
17946         PSCMD="ps -e -o pid,command"
17947         PFILES="${PFILES} \
17948             platforms/gentoo/Makefile \
17949             platforms/gentoo/bacula-fd \
17950             platforms/gentoo/bacula-sd \
17951             platforms/gentoo/bacula-dir"
17952         hostname=`hostname -s`
17953   ;;
17954
17955 slackware)
17956         DISTVER=`cat /etc/slackware-version`
17957         TAPEDRIVE="/dev/nst0"
17958         PSCMD="ps -e -o pid,command"
17959         hostname=`hostname -s`
17960   ;;
17961 solaris)
17962         DISTVER=`uname -r`
17963         TAPEDRIVE="/dev/rmt/0cbn"
17964         PSCMD="ps -e -o pid,comm"
17965         PFILES="${PFILES} \
17966             platforms/solaris/Makefile \
17967             platforms/solaris/bacula-fd \
17968             platforms/solaris/bacula-sd \
17969             platforms/solaris/bacula-dir"
17970         if test x$DISTVER = x5.6 ; then
17971             cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_OLD_SOCKOPT 1
17973 _ACEOF
17974
17975         fi
17976   ;;
17977 suse)
17978         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17979             cut -f 3 -d ' '`
17980         TAPEDRIVE="/dev/nst0"
17981         PSCMD="ps -e -o pid,command"
17982         hostname=`hostname -s`
17983         PFILES="${PFILES} \
17984             platforms/suse/Makefile \
17985             platforms/suse/bacula-fd \
17986             platforms/suse/bacula-sd \
17987             platforms/suse/bacula-dir"
17988   ;;
17989 suse5)
17990         DISTNAME=suse
17991         DISTVER=5.x
17992         TAPEDRIVE="/dev/nst0"
17993         PSCMD="ps -e -o pid,command"
17994         hostname=`hostname -s`
17995         PFILES="${PFILES} \
17996             platforms/suse/Makefile \
17997             platforms/suse/bacula-fd \
17998             platforms/suse/bacula-sd \
17999             platforms/suse/bacula-dir"
18000   ;;
18001 unknown)
18002         DISTVER=unknown
18003         TAPEDRIVE="/dev/nst0"
18004   ;;
18005 *)
18006   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18007   ;;
18008 esac
18009
18010
18011
18012 LIBS="$PTHREAD_LIB $LIBS"
18013
18014 cat >>confdefs.h <<_ACEOF
18015 #define lld "$lld"
18016 _ACEOF
18017
18018 cat >>confdefs.h <<_ACEOF
18019 #define llu "$llu"
18020 _ACEOF
18021
18022
18023
18024
18025
18026
18027
18028 MCOMMON=./autoconf/Make.common
18029
18030
18031 if test "x${subsysdir}" = "x${sbindir}" ; then
18032    echo " "
18033    echo " "
18034    echo "You have set both --sbindir and --with-subsys-dir"
18035    echo "  equal to: ${subsysdir} "
18036    echo "This is not permitted. Please reconfigure."
18037    echo " "
18038    echo "Aborting configuration ..."
18039    echo " "
18040    echo " "
18041    exit 1
18042 fi
18043
18044                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile $PFILES"
18045           ac_config_commands="$ac_config_commands default"
18046 cat >confcache <<\_ACEOF
18047 # This file is a shell script that caches the results of configure
18048 # tests run on this system so they can be shared between configure
18049 # scripts and configure runs, see configure's option --config-cache.
18050 # It is not useful on other systems.  If it contains results you don't
18051 # want to keep, you may remove or edit it.
18052 #
18053 # config.status only pays attention to the cache file if you give it
18054 # the --recheck option to rerun configure.
18055 #
18056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18058 # following values.
18059
18060 _ACEOF
18061
18062 # The following way of writing the cache mishandles newlines in values,
18063 # but we know of no workaround that is simple, portable, and efficient.
18064 # So, don't put newlines in cache variables' values.
18065 # Ultrix sh set writes to stderr and can't be redirected directly,
18066 # and sets the high bit in the cache file unless we assign to the vars.
18067 {
18068   (set) 2>&1 |
18069     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18070     *ac_space=\ *)
18071       # `set' does not quote correctly, so add quotes (double-quote
18072       # substitution turns \\\\ into \\, and sed turns \\ into \).
18073       sed -n \
18074         "s/'/'\\\\''/g;
18075           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18076       ;;
18077     *)
18078       # `set' quotes correctly as required by POSIX, so do not add quotes.
18079       sed -n \
18080         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18081       ;;
18082     esac;
18083 } |
18084   sed '
18085      t clear
18086      : clear
18087      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18088      t end
18089      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18090      : end' >>confcache
18091 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18092   if test -w $cache_file; then
18093     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18094     cat confcache >$cache_file
18095   else
18096     echo "not updating unwritable cache $cache_file"
18097   fi
18098 fi
18099 rm -f confcache
18100
18101 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18102 # Let make expand exec_prefix.
18103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18104
18105 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18106 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18107 # trailing colons and then remove the whole line if VPATH becomes empty
18108 # (actually we leave an empty line to preserve line numbers).
18109 if test "x$srcdir" = x.; then
18110   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18111 s/:*\$(srcdir):*/:/;
18112 s/:*\${srcdir}:*/:/;
18113 s/:*@srcdir@:*/:/;
18114 s/^\([^=]*=[    ]*\):*/\1/;
18115 s/:*$//;
18116 s/^[^=]*=[      ]*$//;
18117 }'
18118 fi
18119
18120 DEFS=-DHAVE_CONFIG_H
18121
18122 ac_libobjs=
18123 ac_ltlibobjs=
18124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18125   # 1. Remove the extension, and $U if already installed.
18126   ac_i=`echo "$ac_i" |
18127          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18128   # 2. Add them.
18129   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18130   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18131 done
18132 LIBOBJS=$ac_libobjs
18133
18134 LTLIBOBJS=$ac_ltlibobjs
18135
18136
18137
18138 : ${CONFIG_STATUS=./config.status}
18139 ac_clean_files_save=$ac_clean_files
18140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18141 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18142 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18143 cat >$CONFIG_STATUS <<_ACEOF
18144 #! $SHELL
18145 # Generated by $as_me.
18146 # Run this file to recreate the current configuration.
18147 # Compiler output produced by configure, useful for debugging
18148 # configure, is in config.log if it exists.
18149
18150 debug=false
18151 ac_cs_recheck=false
18152 ac_cs_silent=false
18153 SHELL=\${CONFIG_SHELL-$SHELL}
18154 _ACEOF
18155
18156 cat >>$CONFIG_STATUS <<\_ACEOF
18157 ## --------------------- ##
18158 ## M4sh Initialization.  ##
18159 ## --------------------- ##
18160
18161 # Be Bourne compatible
18162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18163   emulate sh
18164   NULLCMD=:
18165   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18166   # is contrary to our usage.  Disable this feature.
18167   alias -g '${1+"$@"}'='"$@"'
18168 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18169   set -o posix
18170 fi
18171
18172 # Support unset when possible.
18173 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18174   as_unset=unset
18175 else
18176   as_unset=false
18177 fi
18178
18179
18180 # Work around bugs in pre-3.0 UWIN ksh.
18181 $as_unset ENV MAIL MAILPATH
18182 PS1='$ '
18183 PS2='> '
18184 PS4='+ '
18185
18186 # NLS nuisances.
18187 for as_var in \
18188   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18189   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18190   LC_TELEPHONE LC_TIME
18191 do
18192   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18193     eval $as_var=C; export $as_var
18194   else
18195     $as_unset $as_var
18196   fi
18197 done
18198
18199 # Required to use basename.
18200 if expr a : '\(a\)' >/dev/null 2>&1; then
18201   as_expr=expr
18202 else
18203   as_expr=false
18204 fi
18205
18206 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18207   as_basename=basename
18208 else
18209   as_basename=false
18210 fi
18211
18212
18213 # Name of the executable.
18214 as_me=`$as_basename "$0" ||
18215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18216          X"$0" : 'X\(//\)$' \| \
18217          X"$0" : 'X\(/\)$' \| \
18218          .     : '\(.\)' 2>/dev/null ||
18219 echo X/"$0" |
18220     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18221           /^X\/\(\/\/\)$/{ s//\1/; q; }
18222           /^X\/\(\/\).*/{ s//\1/; q; }
18223           s/.*/./; q'`
18224
18225
18226 # PATH needs CR, and LINENO needs CR and PATH.
18227 # Avoid depending upon Character Ranges.
18228 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18229 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18230 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18231 as_cr_digits='0123456789'
18232 as_cr_alnum=$as_cr_Letters$as_cr_digits
18233
18234 # The user is always right.
18235 if test "${PATH_SEPARATOR+set}" != set; then
18236   echo "#! /bin/sh" >conf$$.sh
18237   echo  "exit 0"   >>conf$$.sh
18238   chmod +x conf$$.sh
18239   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18240     PATH_SEPARATOR=';'
18241   else
18242     PATH_SEPARATOR=:
18243   fi
18244   rm -f conf$$.sh
18245 fi
18246
18247
18248   as_lineno_1=$LINENO
18249   as_lineno_2=$LINENO
18250   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18251   test "x$as_lineno_1" != "x$as_lineno_2" &&
18252   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18253   # Find who we are.  Look in the path if we contain no path at all
18254   # relative or not.
18255   case $0 in
18256     *[\\/]* ) as_myself=$0 ;;
18257     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18258 for as_dir in $PATH
18259 do
18260   IFS=$as_save_IFS
18261   test -z "$as_dir" && as_dir=.
18262   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18263 done
18264
18265        ;;
18266   esac
18267   # We did not find ourselves, most probably we were run as `sh COMMAND'
18268   # in which case we are not to be found in the path.
18269   if test "x$as_myself" = x; then
18270     as_myself=$0
18271   fi
18272   if test ! -f "$as_myself"; then
18273     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18274 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18275    { (exit 1); exit 1; }; }
18276   fi
18277   case $CONFIG_SHELL in
18278   '')
18279     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18280 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18281 do
18282   IFS=$as_save_IFS
18283   test -z "$as_dir" && as_dir=.
18284   for as_base in sh bash ksh sh5; do
18285          case $as_dir in
18286          /*)
18287            if ("$as_dir/$as_base" -c '
18288   as_lineno_1=$LINENO
18289   as_lineno_2=$LINENO
18290   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18291   test "x$as_lineno_1" != "x$as_lineno_2" &&
18292   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18293              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18294              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18295              CONFIG_SHELL=$as_dir/$as_base
18296              export CONFIG_SHELL
18297              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18298            fi;;
18299          esac
18300        done
18301 done
18302 ;;
18303   esac
18304
18305   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18306   # uniformly replaced by the line number.  The first 'sed' inserts a
18307   # line-number line before each line; the second 'sed' does the real
18308   # work.  The second script uses 'N' to pair each line-number line
18309   # with the numbered line, and appends trailing '-' during
18310   # substitution so that $LINENO is not a special case at line end.
18311   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18312   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18313   sed '=' <$as_myself |
18314     sed '
18315       N
18316       s,$,-,
18317       : loop
18318       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18319       t loop
18320       s,-$,,
18321       s,^['$as_cr_digits']*\n,,
18322     ' >$as_me.lineno &&
18323   chmod +x $as_me.lineno ||
18324     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18325 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18326    { (exit 1); exit 1; }; }
18327
18328   # Don't try to exec as it changes $[0], causing all sort of problems
18329   # (the dirname of $[0] is not the place where we might find the
18330   # original and so on.  Autoconf is especially sensible to this).
18331   . ./$as_me.lineno
18332   # Exit status is that of the last command.
18333   exit
18334 }
18335
18336
18337 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18338   *c*,-n*) ECHO_N= ECHO_C='
18339 ' ECHO_T='      ' ;;
18340   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18341   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18342 esac
18343
18344 if expr a : '\(a\)' >/dev/null 2>&1; then
18345   as_expr=expr
18346 else
18347   as_expr=false
18348 fi
18349
18350 rm -f conf$$ conf$$.exe conf$$.file
18351 echo >conf$$.file
18352 if ln -s conf$$.file conf$$ 2>/dev/null; then
18353   # We could just check for DJGPP; but this test a) works b) is more generic
18354   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18355   if test -f conf$$.exe; then
18356     # Don't use ln at all; we don't have any links
18357     as_ln_s='cp -p'
18358   else
18359     as_ln_s='ln -s'
18360   fi
18361 elif ln conf$$.file conf$$ 2>/dev/null; then
18362   as_ln_s=ln
18363 else
18364   as_ln_s='cp -p'
18365 fi
18366 rm -f conf$$ conf$$.exe conf$$.file
18367
18368 if mkdir -p . 2>/dev/null; then
18369   as_mkdir_p=:
18370 else
18371   as_mkdir_p=false
18372 fi
18373
18374 as_executable_p="test -f"
18375
18376 # Sed expression to map a string onto a valid CPP name.
18377 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18378
18379 # Sed expression to map a string onto a valid variable name.
18380 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18381
18382
18383 # IFS
18384 # We need space, tab and new line, in precisely that order.
18385 as_nl='
18386 '
18387 IFS="   $as_nl"
18388
18389 # CDPATH.
18390 $as_unset CDPATH
18391
18392 exec 6>&1
18393
18394 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18395 # report actual input values of CONFIG_FILES etc. instead of their
18396 # values after options handling.  Logging --version etc. is OK.
18397 exec 5>>config.log
18398 {
18399   echo
18400   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18401 ## Running $as_me. ##
18402 _ASBOX
18403 } >&5
18404 cat >&5 <<_CSEOF
18405
18406 This file was extended by $as_me, which was
18407 generated by GNU Autoconf 2.57.  Invocation command line was
18408
18409   CONFIG_FILES    = $CONFIG_FILES
18410   CONFIG_HEADERS  = $CONFIG_HEADERS
18411   CONFIG_LINKS    = $CONFIG_LINKS
18412   CONFIG_COMMANDS = $CONFIG_COMMANDS
18413   $ $0 $@
18414
18415 _CSEOF
18416 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18417 echo >&5
18418 _ACEOF
18419
18420 # Files that config.status was made for.
18421 if test -n "$ac_config_files"; then
18422   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18423 fi
18424
18425 if test -n "$ac_config_headers"; then
18426   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18427 fi
18428
18429 if test -n "$ac_config_links"; then
18430   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18431 fi
18432
18433 if test -n "$ac_config_commands"; then
18434   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18435 fi
18436
18437 cat >>$CONFIG_STATUS <<\_ACEOF
18438
18439 ac_cs_usage="\
18440 \`$as_me' instantiates files from templates according to the
18441 current configuration.
18442
18443 Usage: $0 [OPTIONS] [FILE]...
18444
18445   -h, --help       print this help, then exit
18446   -V, --version    print version number, then exit
18447   -q, --quiet      do not print progress messages
18448   -d, --debug      don't remove temporary files
18449       --recheck    update $as_me by reconfiguring in the same conditions
18450   --file=FILE[:TEMPLATE]
18451                    instantiate the configuration file FILE
18452   --header=FILE[:TEMPLATE]
18453                    instantiate the configuration header FILE
18454
18455 Configuration files:
18456 $config_files
18457
18458 Configuration headers:
18459 $config_headers
18460
18461 Configuration commands:
18462 $config_commands
18463
18464 Report bugs to <bug-autoconf@gnu.org>."
18465 _ACEOF
18466
18467 cat >>$CONFIG_STATUS <<_ACEOF
18468 ac_cs_version="\\
18469 config.status
18470 configured by $0, generated by GNU Autoconf 2.57,
18471   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18472
18473 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18474 Free Software Foundation, Inc.
18475 This config.status script is free software; the Free Software Foundation
18476 gives unlimited permission to copy, distribute and modify it."
18477 srcdir=$srcdir
18478 INSTALL="$INSTALL"
18479 _ACEOF
18480
18481 cat >>$CONFIG_STATUS <<\_ACEOF
18482 # If no file are specified by the user, then we need to provide default
18483 # value.  By we need to know if files were specified by the user.
18484 ac_need_defaults=:
18485 while test $# != 0
18486 do
18487   case $1 in
18488   --*=*)
18489     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18490     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18491     ac_shift=:
18492     ;;
18493   -*)
18494     ac_option=$1
18495     ac_optarg=$2
18496     ac_shift=shift
18497     ;;
18498   *) # This is not an option, so the user has probably given explicit
18499      # arguments.
18500      ac_option=$1
18501      ac_need_defaults=false;;
18502   esac
18503
18504   case $ac_option in
18505   # Handling of the options.
18506 _ACEOF
18507 cat >>$CONFIG_STATUS <<\_ACEOF
18508   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18509     ac_cs_recheck=: ;;
18510   --version | --vers* | -V )
18511     echo "$ac_cs_version"; exit 0 ;;
18512   --he | --h)
18513     # Conflict between --help and --header
18514     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18515 Try \`$0 --help' for more information." >&5
18516 echo "$as_me: error: ambiguous option: $1
18517 Try \`$0 --help' for more information." >&2;}
18518    { (exit 1); exit 1; }; };;
18519   --help | --hel | -h )
18520     echo "$ac_cs_usage"; exit 0 ;;
18521   --debug | --d* | -d )
18522     debug=: ;;
18523   --file | --fil | --fi | --f )
18524     $ac_shift
18525     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18526     ac_need_defaults=false;;
18527   --header | --heade | --head | --hea )
18528     $ac_shift
18529     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18530     ac_need_defaults=false;;
18531   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18532   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18533     ac_cs_silent=: ;;
18534
18535   # This is an error.
18536   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18537 Try \`$0 --help' for more information." >&5
18538 echo "$as_me: error: unrecognized option: $1
18539 Try \`$0 --help' for more information." >&2;}
18540    { (exit 1); exit 1; }; } ;;
18541
18542   *) ac_config_targets="$ac_config_targets $1" ;;
18543
18544   esac
18545   shift
18546 done
18547
18548 ac_configure_extra_args=
18549
18550 if $ac_cs_silent; then
18551   exec 6>/dev/null
18552   ac_configure_extra_args="$ac_configure_extra_args --silent"
18553 fi
18554
18555 _ACEOF
18556 cat >>$CONFIG_STATUS <<_ACEOF
18557 if \$ac_cs_recheck; then
18558   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18559   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18560 fi
18561
18562 _ACEOF
18563
18564
18565
18566
18567
18568 cat >>$CONFIG_STATUS <<\_ACEOF
18569 for ac_config_target in $ac_config_targets
18570 do
18571   case "$ac_config_target" in
18572   # Handling of arguments.
18573   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18574   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18575   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18576   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18577   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18578   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18579   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18580   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18581   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18582   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18583   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18584   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18585   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18586   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18587   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18588   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18589   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18590   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18591   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18592   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18593   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18594   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18595   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18596   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18597   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18598   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18599   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18600   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18601   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18602   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18603   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18604   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18605   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18606   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18607   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18608   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18609   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18610   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18611   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18612   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18613   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18614   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18615   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18616   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18617   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18618   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18619   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18620   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18621   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18622   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18623   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18624   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18625   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18626   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18627   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18628   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18629   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18630   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18631   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18632   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18633   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18634   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18635   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18636   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18637   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18638   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18639   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18640   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18641   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18642   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18643   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18644   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18645   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18646   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18647   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18648   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18649   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18650   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18651   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18652   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18653 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18654    { (exit 1); exit 1; }; };;
18655   esac
18656 done
18657
18658 # If the user did not use the arguments to specify the items to instantiate,
18659 # then the envvar interface is used.  Set only those that are not.
18660 # We use the long form for the default assignment because of an extremely
18661 # bizarre bug on SunOS 4.1.3.
18662 if $ac_need_defaults; then
18663   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18664   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18665   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18666 fi
18667
18668 # Have a temporary directory for convenience.  Make it in the build tree
18669 # simply because there is no reason to put it here, and in addition,
18670 # creating and moving files from /tmp can sometimes cause problems.
18671 # Create a temporary directory, and hook for its removal unless debugging.
18672 $debug ||
18673 {
18674   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18675   trap '{ (exit 1); exit 1; }' 1 2 13 15
18676 }
18677
18678 # Create a (secure) tmp directory for tmp files.
18679
18680 {
18681   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18682   test -n "$tmp" && test -d "$tmp"
18683 }  ||
18684 {
18685   tmp=./confstat$$-$RANDOM
18686   (umask 077 && mkdir $tmp)
18687 } ||
18688 {
18689    echo "$me: cannot create a temporary directory in ." >&2
18690    { (exit 1); exit 1; }
18691 }
18692
18693 _ACEOF
18694
18695 cat >>$CONFIG_STATUS <<_ACEOF
18696
18697 #
18698 # CONFIG_FILES section.
18699 #
18700
18701 # No need to generate the scripts if there are no CONFIG_FILES.
18702 # This happens for instance when ./config.status config.h
18703 if test -n "\$CONFIG_FILES"; then
18704   # Protect against being on the right side of a sed subst in config.status.
18705   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18706    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18707 s,@SHELL@,$SHELL,;t t
18708 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18709 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18710 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18711 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18712 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18713 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18714 s,@exec_prefix@,$exec_prefix,;t t
18715 s,@prefix@,$prefix,;t t
18716 s,@program_transform_name@,$program_transform_name,;t t
18717 s,@bindir@,$bindir,;t t
18718 s,@sbindir@,$sbindir,;t t
18719 s,@libexecdir@,$libexecdir,;t t
18720 s,@datadir@,$datadir,;t t
18721 s,@sysconfdir@,$sysconfdir,;t t
18722 s,@sharedstatedir@,$sharedstatedir,;t t
18723 s,@localstatedir@,$localstatedir,;t t
18724 s,@libdir@,$libdir,;t t
18725 s,@includedir@,$includedir,;t t
18726 s,@oldincludedir@,$oldincludedir,;t t
18727 s,@infodir@,$infodir,;t t
18728 s,@mandir@,$mandir,;t t
18729 s,@build_alias@,$build_alias,;t t
18730 s,@host_alias@,$host_alias,;t t
18731 s,@target_alias@,$target_alias,;t t
18732 s,@DEFS@,$DEFS,;t t
18733 s,@ECHO_C@,$ECHO_C,;t t
18734 s,@ECHO_N@,$ECHO_N,;t t
18735 s,@ECHO_T@,$ECHO_T,;t t
18736 s,@LIBS@,$LIBS,;t t
18737 s,@BUILD_DIR@,$BUILD_DIR,;t t
18738 s,@TRUEPRG@,$TRUEPRG,;t t
18739 s,@FALSEPRG@,$FALSEPRG,;t t
18740 s,@build@,$build,;t t
18741 s,@build_cpu@,$build_cpu,;t t
18742 s,@build_vendor@,$build_vendor,;t t
18743 s,@build_os@,$build_os,;t t
18744 s,@host@,$host,;t t
18745 s,@host_cpu@,$host_cpu,;t t
18746 s,@host_vendor@,$host_vendor,;t t
18747 s,@host_os@,$host_os,;t t
18748 s,@VERSION@,$VERSION,;t t
18749 s,@DATE@,$DATE,;t t
18750 s,@LSMDATE@,$LSMDATE,;t t
18751 s,@CC@,$CC,;t t
18752 s,@CFLAGS@,$CFLAGS,;t t
18753 s,@LDFLAGS@,$LDFLAGS,;t t
18754 s,@CPPFLAGS@,$CPPFLAGS,;t t
18755 s,@ac_ct_CC@,$ac_ct_CC,;t t
18756 s,@EXEEXT@,$EXEEXT,;t t
18757 s,@OBJEXT@,$OBJEXT,;t t
18758 s,@CXX@,$CXX,;t t
18759 s,@CXXFLAGS@,$CXXFLAGS,;t t
18760 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18761 s,@CPP@,$CPP,;t t
18762 s,@EGREP@,$EGREP,;t t
18763 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18764 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18765 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18766 s,@RANLIB@,$RANLIB,;t t
18767 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18768 s,@MV@,$MV,;t t
18769 s,@RM@,$RM,;t t
18770 s,@CP@,$CP,;t t
18771 s,@SED@,$SED,;t t
18772 s,@AWK@,$AWK,;t t
18773 s,@ECHO@,$ECHO,;t t
18774 s,@CMP@,$CMP,;t t
18775 s,@TBL@,$TBL,;t t
18776 s,@AR@,$AR,;t t
18777 s,@OPENSSL@,$OPENSSL,;t t
18778 s,@MTX@,$MTX,;t t
18779 s,@PKGCONFIG@,$PKGCONFIG,;t t
18780 s,@ARFLAGS@,$ARFLAGS,;t t
18781 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18782 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18783 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18784 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18785 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18786 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18787 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18788 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18789 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18790 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18791 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18792 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18793 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18794 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18795 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18796 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18797 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18798 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18799 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18800 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18801 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18802 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18803 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18804 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18805 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18806 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18807 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18808 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18809 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18810 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18811 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18812 s,@MSGFMT@,$MSGFMT,;t t
18813 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18814 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18815 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18816 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18817 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18818 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18819 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18820 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18821 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18822 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18823 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18824 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18825 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18826 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18827 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18828 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18829 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18830 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18831 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18832 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18833 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18834 s,@GNOME_DIR@,$GNOME_DIR,;t t
18835 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18836 s,@STATIC_FD@,$STATIC_FD,;t t
18837 s,@STATIC_SD@,$STATIC_SD,;t t
18838 s,@STATIC_DIR@,$STATIC_DIR,;t t
18839 s,@STATIC_CONS@,$STATIC_CONS,;t t
18840 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18841 s,@ALL_DIRS@,$ALL_DIRS,;t t
18842 s,@CONS_INC@,$CONS_INC,;t t
18843 s,@CONS_OBJ@,$CONS_OBJ,;t t
18844 s,@CONS_SRC@,$CONS_SRC,;t t
18845 s,@CONS_LIBS@,$CONS_LIBS,;t t
18846 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18847 s,@READLINE_SRC@,$READLINE_SRC,;t t
18848 s,@working_dir@,$working_dir,;t t
18849 s,@scriptdir@,$scriptdir,;t t
18850 s,@dump_email@,$dump_email,;t t
18851 s,@job_email@,$job_email,;t t
18852 s,@smtp_host@,$smtp_host,;t t
18853 s,@piddir@,$piddir,;t t
18854 s,@subsysdir@,$subsysdir,;t t
18855 s,@baseport@,$baseport,;t t
18856 s,@dir_port@,$dir_port,;t t
18857 s,@fd_port@,$fd_port,;t t
18858 s,@sd_port@,$sd_port,;t t
18859 s,@dir_password@,$dir_password,;t t
18860 s,@fd_password@,$fd_password,;t t
18861 s,@sd_password@,$sd_password,;t t
18862 s,@dir_user@,$dir_user,;t t
18863 s,@dir_group@,$dir_group,;t t
18864 s,@sd_user@,$sd_user,;t t
18865 s,@sd_group@,$sd_group,;t t
18866 s,@fd_user@,$fd_user,;t t
18867 s,@fd_group@,$fd_group,;t t
18868 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18869 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18870 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18871 s,@cats@,$cats,;t t
18872 s,@DB_NAME@,$DB_NAME,;t t
18873 s,@GETCONF@,$GETCONF,;t t
18874 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18875 s,@X_CFLAGS@,$X_CFLAGS,;t t
18876 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18877 s,@X_LIBS@,$X_LIBS,;t t
18878 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18879 s,@LIBOBJS@,$LIBOBJS,;t t
18880 s,@ALLOCA@,$ALLOCA,;t t
18881 s,@FDLIBS@,$FDLIBS,;t t
18882 s,@DEBUG@,$DEBUG,;t t
18883 s,@DINCLUDE@,$DINCLUDE,;t t
18884 s,@DLIB@,$DLIB,;t t
18885 s,@DB_LIBS@,$DB_LIBS,;t t
18886 s,@WCFLAGS@,$WCFLAGS,;t t
18887 s,@WLDFLAGS@,$WLDFLAGS,;t t
18888 s,@OBJLIST@,$OBJLIST,;t t
18889 s,@hostname@,$hostname,;t t
18890 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18891 s,@PSCMD@,$PSCMD,;t t
18892 s,@WIN32@,$WIN32,;t t
18893 s,@DISTNAME@,$DISTNAME,;t t
18894 s,@DISTVER@,$DISTVER,;t t
18895 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18896 /@MCOMMON@/r $MCOMMON
18897 s,@MCOMMON@,,;t t
18898 CEOF
18899
18900 _ACEOF
18901
18902   cat >>$CONFIG_STATUS <<\_ACEOF
18903   # Split the substitutions into bite-sized pieces for seds with
18904   # small command number limits, like on Digital OSF/1 and HP-UX.
18905   ac_max_sed_lines=48
18906   ac_sed_frag=1 # Number of current file.
18907   ac_beg=1 # First line for current file.
18908   ac_end=$ac_max_sed_lines # Line after last line for current file.
18909   ac_more_lines=:
18910   ac_sed_cmds=
18911   while $ac_more_lines; do
18912     if test $ac_beg -gt 1; then
18913       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18914     else
18915       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18916     fi
18917     if test ! -s $tmp/subs.frag; then
18918       ac_more_lines=false
18919     else
18920       # The purpose of the label and of the branching condition is to
18921       # speed up the sed processing (if there are no `@' at all, there
18922       # is no need to browse any of the substitutions).
18923       # These are the two extra sed commands mentioned above.
18924       (echo ':t
18925   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18926       if test -z "$ac_sed_cmds"; then
18927         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18928       else
18929         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18930       fi
18931       ac_sed_frag=`expr $ac_sed_frag + 1`
18932       ac_beg=$ac_end
18933       ac_end=`expr $ac_end + $ac_max_sed_lines`
18934     fi
18935   done
18936   if test -z "$ac_sed_cmds"; then
18937     ac_sed_cmds=cat
18938   fi
18939 fi # test -n "$CONFIG_FILES"
18940
18941 _ACEOF
18942 cat >>$CONFIG_STATUS <<\_ACEOF
18943 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18944   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18945   case $ac_file in
18946   - | *:- | *:-:* ) # input from stdin
18947         cat >$tmp/stdin
18948         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18949         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18950   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18951         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18952   * )   ac_file_in=$ac_file.in ;;
18953   esac
18954
18955   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18956   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18958          X"$ac_file" : 'X\(//\)[^/]' \| \
18959          X"$ac_file" : 'X\(//\)$' \| \
18960          X"$ac_file" : 'X\(/\)' \| \
18961          .     : '\(.\)' 2>/dev/null ||
18962 echo X"$ac_file" |
18963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18964           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18965           /^X\(\/\/\)$/{ s//\1/; q; }
18966           /^X\(\/\).*/{ s//\1/; q; }
18967           s/.*/./; q'`
18968   { if $as_mkdir_p; then
18969     mkdir -p "$ac_dir"
18970   else
18971     as_dir="$ac_dir"
18972     as_dirs=
18973     while test ! -d "$as_dir"; do
18974       as_dirs="$as_dir $as_dirs"
18975       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18977          X"$as_dir" : 'X\(//\)[^/]' \| \
18978          X"$as_dir" : 'X\(//\)$' \| \
18979          X"$as_dir" : 'X\(/\)' \| \
18980          .     : '\(.\)' 2>/dev/null ||
18981 echo X"$as_dir" |
18982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18984           /^X\(\/\/\)$/{ s//\1/; q; }
18985           /^X\(\/\).*/{ s//\1/; q; }
18986           s/.*/./; q'`
18987     done
18988     test ! -n "$as_dirs" || mkdir $as_dirs
18989   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18990 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18991    { (exit 1); exit 1; }; }; }
18992
18993   ac_builddir=.
18994
18995 if test "$ac_dir" != .; then
18996   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18997   # A "../" for each directory in $ac_dir_suffix.
18998   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18999 else
19000   ac_dir_suffix= ac_top_builddir=
19001 fi
19002
19003 case $srcdir in
19004   .)  # No --srcdir option.  We are building in place.
19005     ac_srcdir=.
19006     if test -z "$ac_top_builddir"; then
19007        ac_top_srcdir=.
19008     else
19009        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19010     fi ;;
19011   [\\/]* | ?:[\\/]* )  # Absolute path.
19012     ac_srcdir=$srcdir$ac_dir_suffix;
19013     ac_top_srcdir=$srcdir ;;
19014   *) # Relative path.
19015     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19016     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19017 esac
19018 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19019 # absolute.
19020 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19021 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19022 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19023 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19024
19025
19026   case $INSTALL in
19027   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19028   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19029   esac
19030
19031   if test x"$ac_file" != x-; then
19032     { echo "$as_me:$LINENO: creating $ac_file" >&5
19033 echo "$as_me: creating $ac_file" >&6;}
19034     rm -f "$ac_file"
19035   fi
19036   # Let's still pretend it is `configure' which instantiates (i.e., don't
19037   # use $as_me), people would be surprised to read:
19038   #    /* config.h.  Generated by config.status.  */
19039   if test x"$ac_file" = x-; then
19040     configure_input=
19041   else
19042     configure_input="$ac_file.  "
19043   fi
19044   configure_input=$configure_input"Generated from `echo $ac_file_in |
19045                                      sed 's,.*/,,'` by configure."
19046
19047   # First look for the input files in the build tree, otherwise in the
19048   # src tree.
19049   ac_file_inputs=`IFS=:
19050     for f in $ac_file_in; do
19051       case $f in
19052       -) echo $tmp/stdin ;;
19053       [\\/$]*)
19054          # Absolute (can't be DOS-style, as IFS=:)
19055          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19056 echo "$as_me: error: cannot find input file: $f" >&2;}
19057    { (exit 1); exit 1; }; }
19058          echo $f;;
19059       *) # Relative
19060          if test -f "$f"; then
19061            # Build tree
19062            echo $f
19063          elif test -f "$srcdir/$f"; then
19064            # Source tree
19065            echo $srcdir/$f
19066          else
19067            # /dev/null tree
19068            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19069 echo "$as_me: error: cannot find input file: $f" >&2;}
19070    { (exit 1); exit 1; }; }
19071          fi;;
19072       esac
19073     done` || { (exit 1); exit 1; }
19074 _ACEOF
19075 cat >>$CONFIG_STATUS <<_ACEOF
19076   sed "$ac_vpsub
19077 $extrasub
19078 _ACEOF
19079 cat >>$CONFIG_STATUS <<\_ACEOF
19080 :t
19081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19082 s,@configure_input@,$configure_input,;t t
19083 s,@srcdir@,$ac_srcdir,;t t
19084 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19085 s,@top_srcdir@,$ac_top_srcdir,;t t
19086 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19087 s,@builddir@,$ac_builddir,;t t
19088 s,@abs_builddir@,$ac_abs_builddir,;t t
19089 s,@top_builddir@,$ac_top_builddir,;t t
19090 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19091 s,@INSTALL@,$ac_INSTALL,;t t
19092 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19093   rm -f $tmp/stdin
19094   if test x"$ac_file" != x-; then
19095     mv $tmp/out $ac_file
19096   else
19097     cat $tmp/out
19098     rm -f $tmp/out
19099   fi
19100
19101 done
19102 _ACEOF
19103 cat >>$CONFIG_STATUS <<\_ACEOF
19104
19105 #
19106 # CONFIG_HEADER section.
19107 #
19108
19109 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19110 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19111 #
19112 # ac_d sets the value in "#define NAME VALUE" lines.
19113 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19114 ac_dB='[        ].*$,\1#\2'
19115 ac_dC=' '
19116 ac_dD=',;t'
19117 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19118 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19119 ac_uB='$,\1#\2define\3'
19120 ac_uC=' '
19121 ac_uD=',;t'
19122
19123 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19124   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19125   case $ac_file in
19126   - | *:- | *:-:* ) # input from stdin
19127         cat >$tmp/stdin
19128         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19129         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19130   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19131         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19132   * )   ac_file_in=$ac_file.in ;;
19133   esac
19134
19135   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19136 echo "$as_me: creating $ac_file" >&6;}
19137
19138   # First look for the input files in the build tree, otherwise in the
19139   # src tree.
19140   ac_file_inputs=`IFS=:
19141     for f in $ac_file_in; do
19142       case $f in
19143       -) echo $tmp/stdin ;;
19144       [\\/$]*)
19145          # Absolute (can't be DOS-style, as IFS=:)
19146          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19147 echo "$as_me: error: cannot find input file: $f" >&2;}
19148    { (exit 1); exit 1; }; }
19149          echo $f;;
19150       *) # Relative
19151          if test -f "$f"; then
19152            # Build tree
19153            echo $f
19154          elif test -f "$srcdir/$f"; then
19155            # Source tree
19156            echo $srcdir/$f
19157          else
19158            # /dev/null tree
19159            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19160 echo "$as_me: error: cannot find input file: $f" >&2;}
19161    { (exit 1); exit 1; }; }
19162          fi;;
19163       esac
19164     done` || { (exit 1); exit 1; }
19165   # Remove the trailing spaces.
19166   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19167
19168 _ACEOF
19169
19170 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19171 # `conftest.undefs', that substitutes the proper values into
19172 # config.h.in to produce config.h.  The first handles `#define'
19173 # templates, and the second `#undef' templates.
19174 # And first: Protect against being on the right side of a sed subst in
19175 # config.status.  Protect against being in an unquoted here document
19176 # in config.status.
19177 rm -f conftest.defines conftest.undefs
19178 # Using a here document instead of a string reduces the quoting nightmare.
19179 # Putting comments in sed scripts is not portable.
19180 #
19181 # `end' is used to avoid that the second main sed command (meant for
19182 # 0-ary CPP macros) applies to n-ary macro definitions.
19183 # See the Autoconf documentation for `clear'.
19184 cat >confdef2sed.sed <<\_ACEOF
19185 s/[\\&,]/\\&/g
19186 s,[\\$`],\\&,g
19187 t clear
19188 : clear
19189 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19190 t end
19191 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19192 : end
19193 _ACEOF
19194 # If some macros were called several times there might be several times
19195 # the same #defines, which is useless.  Nevertheless, we may not want to
19196 # sort them, since we want the *last* AC-DEFINE to be honored.
19197 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19198 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19199 rm -f confdef2sed.sed
19200
19201 # This sed command replaces #undef with comments.  This is necessary, for
19202 # example, in the case of _POSIX_SOURCE, which is predefined and required
19203 # on some systems where configure will not decide to define it.
19204 cat >>conftest.undefs <<\_ACEOF
19205 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19206 _ACEOF
19207
19208 # Break up conftest.defines because some shells have a limit on the size
19209 # of here documents, and old seds have small limits too (100 cmds).
19210 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19211 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19212 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19213 echo '  :' >>$CONFIG_STATUS
19214 rm -f conftest.tail
19215 while grep . conftest.defines >/dev/null
19216 do
19217   # Write a limited-size here document to $tmp/defines.sed.
19218   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19219   # Speed up: don't consider the non `#define' lines.
19220   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19221   # Work around the forget-to-reset-the-flag bug.
19222   echo 't clr' >>$CONFIG_STATUS
19223   echo ': clr' >>$CONFIG_STATUS
19224   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19225   echo 'CEOF
19226   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19227   rm -f $tmp/in
19228   mv $tmp/out $tmp/in
19229 ' >>$CONFIG_STATUS
19230   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19231   rm -f conftest.defines
19232   mv conftest.tail conftest.defines
19233 done
19234 rm -f conftest.defines
19235 echo '  fi # grep' >>$CONFIG_STATUS
19236 echo >>$CONFIG_STATUS
19237
19238 # Break up conftest.undefs because some shells have a limit on the size
19239 # of here documents, and old seds have small limits too (100 cmds).
19240 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19241 rm -f conftest.tail
19242 while grep . conftest.undefs >/dev/null
19243 do
19244   # Write a limited-size here document to $tmp/undefs.sed.
19245   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19246   # Speed up: don't consider the non `#undef'
19247   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19248   # Work around the forget-to-reset-the-flag bug.
19249   echo 't clr' >>$CONFIG_STATUS
19250   echo ': clr' >>$CONFIG_STATUS
19251   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19252   echo 'CEOF
19253   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19254   rm -f $tmp/in
19255   mv $tmp/out $tmp/in
19256 ' >>$CONFIG_STATUS
19257   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19258   rm -f conftest.undefs
19259   mv conftest.tail conftest.undefs
19260 done
19261 rm -f conftest.undefs
19262
19263 cat >>$CONFIG_STATUS <<\_ACEOF
19264   # Let's still pretend it is `configure' which instantiates (i.e., don't
19265   # use $as_me), people would be surprised to read:
19266   #    /* config.h.  Generated by config.status.  */
19267   if test x"$ac_file" = x-; then
19268     echo "/* Generated by configure.  */" >$tmp/config.h
19269   else
19270     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19271   fi
19272   cat $tmp/in >>$tmp/config.h
19273   rm -f $tmp/in
19274   if test x"$ac_file" != x-; then
19275     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19276       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19277 echo "$as_me: $ac_file is unchanged" >&6;}
19278     else
19279       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19281          X"$ac_file" : 'X\(//\)[^/]' \| \
19282          X"$ac_file" : 'X\(//\)$' \| \
19283          X"$ac_file" : 'X\(/\)' \| \
19284          .     : '\(.\)' 2>/dev/null ||
19285 echo X"$ac_file" |
19286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19287           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19288           /^X\(\/\/\)$/{ s//\1/; q; }
19289           /^X\(\/\).*/{ s//\1/; q; }
19290           s/.*/./; q'`
19291       { if $as_mkdir_p; then
19292     mkdir -p "$ac_dir"
19293   else
19294     as_dir="$ac_dir"
19295     as_dirs=
19296     while test ! -d "$as_dir"; do
19297       as_dirs="$as_dir $as_dirs"
19298       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19300          X"$as_dir" : 'X\(//\)[^/]' \| \
19301          X"$as_dir" : 'X\(//\)$' \| \
19302          X"$as_dir" : 'X\(/\)' \| \
19303          .     : '\(.\)' 2>/dev/null ||
19304 echo X"$as_dir" |
19305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19306           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19307           /^X\(\/\/\)$/{ s//\1/; q; }
19308           /^X\(\/\).*/{ s//\1/; q; }
19309           s/.*/./; q'`
19310     done
19311     test ! -n "$as_dirs" || mkdir $as_dirs
19312   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19313 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19314    { (exit 1); exit 1; }; }; }
19315
19316       rm -f $ac_file
19317       mv $tmp/config.h $ac_file
19318     fi
19319   else
19320     cat $tmp/config.h
19321     rm -f $tmp/config.h
19322   fi
19323 done
19324 _ACEOF
19325 cat >>$CONFIG_STATUS <<\_ACEOF
19326
19327 #
19328 # CONFIG_COMMANDS section.
19329 #
19330 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19331   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19332   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19333   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19334 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335          X"$ac_dest" : 'X\(//\)[^/]' \| \
19336          X"$ac_dest" : 'X\(//\)$' \| \
19337          X"$ac_dest" : 'X\(/\)' \| \
19338          .     : '\(.\)' 2>/dev/null ||
19339 echo X"$ac_dest" |
19340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19342           /^X\(\/\/\)$/{ s//\1/; q; }
19343           /^X\(\/\).*/{ s//\1/; q; }
19344           s/.*/./; q'`
19345   ac_builddir=.
19346
19347 if test "$ac_dir" != .; then
19348   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19349   # A "../" for each directory in $ac_dir_suffix.
19350   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19351 else
19352   ac_dir_suffix= ac_top_builddir=
19353 fi
19354
19355 case $srcdir in
19356   .)  # No --srcdir option.  We are building in place.
19357     ac_srcdir=.
19358     if test -z "$ac_top_builddir"; then
19359        ac_top_srcdir=.
19360     else
19361        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19362     fi ;;
19363   [\\/]* | ?:[\\/]* )  # Absolute path.
19364     ac_srcdir=$srcdir$ac_dir_suffix;
19365     ac_top_srcdir=$srcdir ;;
19366   *) # Relative path.
19367     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19368     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19369 esac
19370 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19371 # absolute.
19372 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19373 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19374 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19375 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19376
19377
19378   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19379 echo "$as_me: executing $ac_dest commands" >&6;}
19380   case $ac_dest in
19381     default ) (echo "Doing make of dependencies"; make depend;)
19382  ;;
19383   esac
19384 done
19385 _ACEOF
19386
19387 cat >>$CONFIG_STATUS <<\_ACEOF
19388
19389 { (exit 0); exit 0; }
19390 _ACEOF
19391 chmod +x $CONFIG_STATUS
19392 ac_clean_files=$ac_clean_files_save
19393
19394
19395 # configure is writing to config.log, and then calls config.status.
19396 # config.status does its own redirection, appending to config.log.
19397 # Unfortunately, on DOS this fails, as config.log is still kept open
19398 # by configure, so config.status won't be able to write to it; its
19399 # output is simply discarded.  So we exec the FD to /dev/null,
19400 # effectively closing config.log, so it can be properly (re)opened and
19401 # appended to by config.status.  When coming back to configure, we
19402 # need to make the FD available again.
19403 if test "$no_create" != yes; then
19404   ac_cs_success=:
19405   ac_config_status_args=
19406   test "$silent" = yes &&
19407     ac_config_status_args="$ac_config_status_args --quiet"
19408   exec 5>/dev/null
19409   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19410   exec 5>>config.log
19411   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19412   # would make configure fail if this is the last instruction.
19413   $ac_cs_success || { (exit 1); exit 1; }
19414 fi
19415
19416
19417 cd scripts
19418 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19419 chmod 755 bconsole gconsole mtx-changer devel_bacula
19420 cd ..
19421
19422 c=src/cats
19423
19424 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19425 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19426
19427 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19428 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19429
19430 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19431 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19432
19433 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19434 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19435
19436 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19437 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19438
19439 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19440 chmod 755 $c/sqlite
19441 chmod 755 $c/mysql
19442
19443 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19444    largefile_support="yes"
19445 fi
19446
19447 #
19448 # A whole lot of hand springs to get the compiler version.
19449 #  This is because gcc changed the output in version 3.0
19450 #
19451 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19452 if test "x${CCVERSION}" = "x" ; then
19453   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19454 fi
19455 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19456 if test x"${CXXVERSION}" = x ; then
19457   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19458 fi
19459
19460 if test "x${subsysdir}" = "x${sbindir}" ; then
19461    echo " "
19462    echo " "
19463    echo "You have set --sbindir and --with-subsys-dir"
19464    echo "  both equal to: ${subsysdir} "
19465    echo "  This is not permitted. Please reconfigure."
19466    echo "Aborting configuration ..."
19467    echo " "
19468    echo " "
19469    exit 1
19470 fi
19471
19472 echo "
19473 Configuration on `date`:
19474
19475   Host:                       $host -- ${DISTNAME} ${DISTVER}
19476   Bacula version:             ${VERSION} (${DATE})
19477   Source code location:       ${srcdir}
19478   Install binaries:           ${sbindir}
19479   Install config files:       ${sysconfdir}
19480   Scripts directory:          ${scriptdir}
19481   Working directory:          ${working_dir}
19482   PID directory:              ${piddir}
19483   Subsys directory:           ${subsysdir}
19484   C Compiler:                 ${CC} ${CCVERSION}
19485   C++ Compiler:               ${CXX} ${CXXVERSION}
19486   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19487   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19488   Libraries:                  ${LIBS}
19489   Statically Linked Tools:    ${support_static_tools}
19490   Statically Linked FD:       ${support_static_fd}
19491   Statically Linked SD:       ${support_static_sd}
19492   Statically Linked DIR:      ${support_static_dir}
19493   Statically Linked CONS:     ${support_static_cons}
19494   Database type:              ${db_name}
19495   Database lib:               ${DB_LIBS}
19496
19497   Job Output Email:           ${job_email}
19498   Traceback Email:            ${dump_email}
19499   SMTP Host Address:          ${smtp_host}
19500
19501   Director Port:              ${dir_port}
19502   File daemon Port:           ${fd_port}
19503   Storage daemon Port:        ${sd_port}
19504
19505   Director User:              ${dir_user}
19506   Director Group:             ${dir_group}
19507   Storage Daemon User:        ${dir_user}
19508   Storage DaemonGroup:        ${dir_group}
19509   File Daemon User:           ${dir_user}
19510   File Daemon Group:          ${dir_group}
19511
19512   SQL binaries Directory      ${SQL_BINDIR}
19513
19514   Large file support:         $largefile_support
19515   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19516   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19517   TCP Wrappers support:       ${TCPW_MSG}
19518   ZLIB support:               ${have_zlib}
19519   enable-smartalloc:          ${support_smartalloc}
19520   enable-gnome:               ${support_gnome} ${gnome_version}
19521   client-only:                ${build_client_only}
19522
19523   " > config.out
19524
19525 cat config.out
19526
19527 # old stuff
19528 # cweb support:               ${got_cweb} ${CWEB_SRC}
19529 # gmp support:                ${got_gmp} ${GMP_SRC}