]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
This commit was manufactured by cvs2svn to create tag
[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_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-readline      disable readline support enabled
867
868   --disable-largefile     omit support for large files
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-gnome-includes   Specify location of GNOME headers
874   --with-gnome-libs       Specify location of GNOME libs
875   --with-gnome            Specify prefix for GNOME files
876  --with-readline=DIR             specify readline library directory
877   --with-tcp-wrappers=DIR        enable tcpwrappers support
878   --with-working-dir=PATH        specify path of Bacula working directory
879   --with-scriptdir=PATH    specify path of Bacula scripts directory
880   --with-dump-email=EMAIL        dump email address
881   --with-job-email=EMAIL         job output email address
882   --with-smtp-host=HOST          SMTP mail host address
883   --with-pid-dir=PATH            specify location of Bacula pid files
884   --with-subsys-dir=PATH         specify location of Bacula subsys file
885   --with-baseport=PORT           specify base port address for daemons
886   --with-dir-password=PASSWORD   specify Director's password
887   --with-fd-password=PASSWORD    specify Client's password
888   --with-sd-password=PASSWORD    specify Storage daemon's password
889   --with-dir-user=USER           specify user for Director daemon
890   --with-dir-group=GROUP                 specify group for Director daemon
891   --with-sd-user=USER            specify user for Storage daemon
892   --with-sd-group=GROUP          specify group for Storage daemon
893   --with-fd-user=USER            specify user for File daemon
894   --with-fd-group=GROUP          specify group for File daemon
895
896 Which DBMS do you want to use (please select only one):
897   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
898                           install directory, default is to search through
899                           a number of common places for the MySQL files.
900
901 Which DBMS do you want to use (please select only one):
902   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906 Which DBMS do you want to use (please select only one):
907   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
908                           install directory, default is to search through
909                           a number of common places for the SQLite files.
910   --with-x                use the X Window System
911
912 Some influential environment variables:
913   CC          C compiler command
914   CFLAGS      C compiler flags
915   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
916               nonstandard directory <lib dir>
917   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
918               headers in a nonstandard directory <include dir>
919   CXX         C++ compiler command
920   CXXFLAGS    C++ compiler flags
921   CPP         C preprocessor
922
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
925
926 _ACEOF
927 fi
928
929 if test "$ac_init_help" = "recursive"; then
930   # If there are subdirs, report their specific --help.
931   ac_popdir=`pwd`
932   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933     test -d $ac_dir || continue
934     ac_builddir=.
935
936 if test "$ac_dir" != .; then
937   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938   # A "../" for each directory in $ac_dir_suffix.
939   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
940 else
941   ac_dir_suffix= ac_top_builddir=
942 fi
943
944 case $srcdir in
945   .)  # No --srcdir option.  We are building in place.
946     ac_srcdir=.
947     if test -z "$ac_top_builddir"; then
948        ac_top_srcdir=.
949     else
950        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
951     fi ;;
952   [\\/]* | ?:[\\/]* )  # Absolute path.
953     ac_srcdir=$srcdir$ac_dir_suffix;
954     ac_top_srcdir=$srcdir ;;
955   *) # Relative path.
956     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957     ac_top_srcdir=$ac_top_builddir$srcdir ;;
958 esac
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
960 # absolute.
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
965
966     cd $ac_dir
967     # Check for guested configure; otherwise get Cygnus style configure.
968     if test -f $ac_srcdir/configure.gnu; then
969       echo
970       $SHELL $ac_srcdir/configure.gnu  --help=recursive
971     elif test -f $ac_srcdir/configure; then
972       echo
973       $SHELL $ac_srcdir/configure  --help=recursive
974     elif test -f $ac_srcdir/configure.ac ||
975            test -f $ac_srcdir/configure.in; then
976       echo
977       $ac_configure --help
978     else
979       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980     fi
981     cd $ac_popdir
982   done
983 fi
984
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987   cat <<\_ACEOF
988
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
993 _ACEOF
994   exit 0
995 fi
996 exec 5>config.log
997 cat >&5 <<_ACEOF
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1000
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57.  Invocation command line was
1003
1004   $ $0 $@
1005
1006 _ACEOF
1007 {
1008 cat <<_ASUNAME
1009 ## --------- ##
1010 ## Platform. ##
1011 ## --------- ##
1012
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1021
1022 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1023 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1026 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1027 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1028 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1029
1030 _ASUNAME
1031
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033 for as_dir in $PATH
1034 do
1035   IFS=$as_save_IFS
1036   test -z "$as_dir" && as_dir=.
1037   echo "PATH: $as_dir"
1038 done
1039
1040 } >&5
1041
1042 cat >&5 <<_ACEOF
1043
1044
1045 ## ----------- ##
1046 ## Core tests. ##
1047 ## ----------- ##
1048
1049 _ACEOF
1050
1051
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1057 ac_configure_args=
1058 ac_configure_args0=
1059 ac_configure_args1=
1060 ac_sep=
1061 ac_must_keep_next=false
1062 for ac_pass in 1 2
1063 do
1064   for ac_arg
1065   do
1066     case $ac_arg in
1067     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069     | -silent | --silent | --silen | --sile | --sil)
1070       continue ;;
1071     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073     esac
1074     case $ac_pass in
1075     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076     2)
1077       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078       if test $ac_must_keep_next = true; then
1079         ac_must_keep_next=false # Got value, back to normal.
1080       else
1081         case $ac_arg in
1082           *=* | --config-cache | -C | -disable-* | --disable-* \
1083           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085           | -with-* | --with-* | -without-* | --without-* | --x)
1086             case "$ac_configure_args0 " in
1087               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088             esac
1089             ;;
1090           -* ) ac_must_keep_next=true ;;
1091         esac
1092       fi
1093       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094       # Get rid of the leading space.
1095       ac_sep=" "
1096       ;;
1097     esac
1098   done
1099 done
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1102
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log.  We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109   # Save into config.log some information that might help in debugging.
1110   {
1111     echo
1112
1113     cat <<\_ASBOX
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1117 _ASBOX
1118     echo
1119     # The following way of writing the cache mishandles newlines in values,
1120 {
1121   (set) 2>&1 |
1122     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123     *ac_space=\ *)
1124       sed -n \
1125         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127       ;;
1128     *)
1129       sed -n \
1130         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131       ;;
1132     esac;
1133 }
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1140 _ASBOX
1141     echo
1142     for ac_var in $ac_subst_vars
1143     do
1144       eval ac_val=$`echo $ac_var`
1145       echo "$ac_var='"'"'$ac_val'"'"'"
1146     done | sort
1147     echo
1148
1149     if test -n "$ac_subst_files"; then
1150       cat <<\_ASBOX
1151 ## ------------- ##
1152 ## Output files. ##
1153 ## ------------- ##
1154 _ASBOX
1155       echo
1156       for ac_var in $ac_subst_files
1157       do
1158         eval ac_val=$`echo $ac_var`
1159         echo "$ac_var='"'"'$ac_val'"'"'"
1160       done | sort
1161       echo
1162     fi
1163
1164     if test -s confdefs.h; then
1165       cat <<\_ASBOX
1166 ## ----------- ##
1167 ## confdefs.h. ##
1168 ## ----------- ##
1169 _ASBOX
1170       echo
1171       sed "/^$/d" confdefs.h | sort
1172       echo
1173     fi
1174     test "$ac_signal" != 0 &&
1175       echo "$as_me: caught signal $ac_signal"
1176     echo "$as_me: exit $exit_status"
1177   } >&5
1178   rm -f core core.* *.core &&
1179   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1180     exit $exit_status
1181      ' 0
1182 for ac_signal in 1 2 13 15; do
1183   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184 done
1185 ac_signal=0
1186
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190 echo >confdefs.h
1191
1192 # Predefined preprocessor variables.
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216 _ACEOF
1217
1218
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222   if test "x$prefix" != xNONE; then
1223     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224   else
1225     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226   fi
1227 fi
1228 for ac_site_file in $CONFIG_SITE; do
1229   if test -r "$ac_site_file"; then
1230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232     sed 's/^/| /' "$ac_site_file" >&5
1233     . "$ac_site_file"
1234   fi
1235 done
1236
1237 if test -r "$cache_file"; then
1238   # Some versions of bash will fail to source /dev/null (special
1239   # files actually), so we avoid doing that.
1240   if test -f "$cache_file"; then
1241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1243     case $cache_file in
1244       [\\/]* | ?:[\\/]* ) . $cache_file;;
1245       *)                      . ./$cache_file;;
1246     esac
1247   fi
1248 else
1249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1251   >$cache_file
1252 fi
1253
1254 # Check that the precious variables saved in the cache have kept the same
1255 # value.
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260   eval ac_new_set=\$ac_env_${ac_var}_set
1261   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262   eval ac_new_val="\$ac_env_${ac_var}_value"
1263   case $ac_old_set,$ac_new_set in
1264     set,)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,set)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,);;
1273     *)
1274       if test "x$ac_old_val" != "x$ac_new_val"; then
1275         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1278 echo "$as_me:   former value:  $ac_old_val" >&2;}
1279         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1280 echo "$as_me:   current value: $ac_new_val" >&2;}
1281         ac_cache_corrupted=:
1282       fi;;
1283   esac
1284   # Pass precious variables to config.status.
1285   if test "$ac_new_set" = set; then
1286     case $ac_new_val in
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     *) ac_arg=$ac_var=$ac_new_val ;;
1290     esac
1291     case " $ac_configure_args " in
1292       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1293       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1294     esac
1295   fi
1296 done
1297 if $ac_cache_corrupted; then
1298   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 ac_ext=c
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329 BUILD_DIR=`pwd`
1330 cd ..
1331 TOP_DIR=`pwd`
1332 cd ${BUILD_DIR}
1333
1334 ac_aux_dir=
1335 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1336   if test -f $ac_dir/install-sh; then
1337     ac_aux_dir=$ac_dir
1338     ac_install_sh="$ac_aux_dir/install-sh -c"
1339     break
1340   elif test -f $ac_dir/install.sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install.sh -c"
1343     break
1344   elif test -f $ac_dir/shtool; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/shtool install -c"
1347     break
1348   fi
1349 done
1350 if test -z "$ac_aux_dir"; then
1351   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1353    { (exit 1); exit 1; }; }
1354 fi
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358
1359           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1360
1361
1362
1363
1364
1365 for ac_prog in true
1366 do
1367   # Extract the first word of "$ac_prog", so it can be a program name with args.
1368 set dummy $ac_prog; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1372   echo $ECHO_N "(cached) $ECHO_C" >&6
1373 else
1374   case $TRUEPRG in
1375   [\\/]* | ?:[\\/]*)
1376   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1377   ;;
1378   *)
1379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1380 for as_dir in $PATH
1381 do
1382   IFS=$as_save_IFS
1383   test -z "$as_dir" && as_dir=.
1384   for ac_exec_ext in '' $ac_executable_extensions; do
1385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1386     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388     break 2
1389   fi
1390 done
1391 done
1392
1393   ;;
1394 esac
1395 fi
1396 TRUEPRG=$ac_cv_path_TRUEPRG
1397
1398 if test -n "$TRUEPRG"; then
1399   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1400 echo "${ECHO_T}$TRUEPRG" >&6
1401 else
1402   echo "$as_me:$LINENO: result: no" >&5
1403 echo "${ECHO_T}no" >&6
1404 fi
1405
1406   test -n "$TRUEPRG" && break
1407 done
1408 test -n "$TRUEPRG" || TRUEPRG=":"
1409
1410 for ac_prog in false
1411 do
1412   # Extract the first word of "$ac_prog", so it can be a program name with args.
1413 set dummy $ac_prog; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1417   echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419   case $FALSEPRG in
1420   [\\/]* | ?:[\\/]*)
1421   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1422   ;;
1423   *)
1424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1426 do
1427   IFS=$as_save_IFS
1428   test -z "$as_dir" && as_dir=.
1429   for ac_exec_ext in '' $ac_executable_extensions; do
1430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433     break 2
1434   fi
1435 done
1436 done
1437
1438   ;;
1439 esac
1440 fi
1441 FALSEPRG=$ac_cv_path_FALSEPRG
1442
1443 if test -n "$FALSEPRG"; then
1444   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1445 echo "${ECHO_T}$FALSEPRG" >&6
1446 else
1447   echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449 fi
1450
1451   test -n "$FALSEPRG" && break
1452 done
1453 test -n "$FALSEPRG" || FALSEPRG=":"
1454
1455
1456 # Make sure we can run config.sub.
1457 $ac_config_sub sun4 >/dev/null 2>&1 ||
1458   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1459 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1460    { (exit 1); exit 1; }; }
1461
1462 echo "$as_me:$LINENO: checking build system type" >&5
1463 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1464 if test "${ac_cv_build+set}" = set; then
1465   echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467   ac_cv_build_alias=$build_alias
1468 test -z "$ac_cv_build_alias" &&
1469   ac_cv_build_alias=`$ac_config_guess`
1470 test -z "$ac_cv_build_alias" &&
1471   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1472 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1473    { (exit 1); exit 1; }; }
1474 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1475   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1477    { (exit 1); exit 1; }; }
1478
1479 fi
1480 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1481 echo "${ECHO_T}$ac_cv_build" >&6
1482 build=$ac_cv_build
1483 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486
1487
1488 echo "$as_me:$LINENO: checking host system type" >&5
1489 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1490 if test "${ac_cv_host+set}" = set; then
1491   echo $ECHO_N "(cached) $ECHO_C" >&6
1492 else
1493   ac_cv_host_alias=$host_alias
1494 test -z "$ac_cv_host_alias" &&
1495   ac_cv_host_alias=$ac_cv_build_alias
1496 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1497   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1498 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1499    { (exit 1); exit 1; }; }
1500
1501 fi
1502 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1503 echo "${ECHO_T}$ac_cv_host" >&6
1504 host=$ac_cv_host
1505 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1506 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1507 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1508
1509
1510
1511 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1512 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 echo "configuring for bacula $VERSION ($DATE)"
1515
1516
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529   echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531   if test -n "$CC"; then
1532   ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537   IFS=$as_save_IFS
1538   test -z "$as_dir" && as_dir=.
1539   for ac_exec_ext in '' $ac_executable_extensions; do
1540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543     break 2
1544   fi
1545 done
1546 done
1547
1548 fi
1549 fi
1550 CC=$ac_cv_prog_CC
1551 if test -n "$CC"; then
1552   echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1554 else
1555   echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 fi
1560 if test -z "$ac_cv_prog_CC"; then
1561   ac_ct_CC=$CC
1562   # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$ac_ct_CC"; then
1570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_ac_ct_CC="gcc"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597   CC=$ac_ct_CC
1598 else
1599   CC="$ac_cv_prog_CC"
1600 fi
1601
1602 if test -z "$CC"; then
1603   if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}cc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="cc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684   # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694   ac_prog_rejected=no
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703        ac_prog_rejected=yes
1704        continue
1705      fi
1706     ac_cv_prog_CC="cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 if test $ac_prog_rejected = yes; then
1714   # We found a bogon in the path, so make sure we never use it.
1715   set dummy $ac_cv_prog_CC
1716   shift
1717   if test $# != 0; then
1718     # We chose a different compiler from the bogus one.
1719     # However, it has the same basename, so the bogon will be chosen
1720     # first if we set CC to just the basename; use the full file name.
1721     shift
1722     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1723   fi
1724 fi
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729   echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 fi
1737 if test -z "$CC"; then
1738   if test -n "$ac_tool_prefix"; then
1739   for ac_prog in cl
1740   do
1741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776     test -n "$CC" && break
1777   done
1778 fi
1779 if test -z "$CC"; then
1780   ac_ct_CC=$CC
1781   for ac_prog in cl
1782 do
1783   # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$ac_ct_CC"; then
1791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_ac_ct_CC="$ac_prog"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818   test -n "$ac_ct_CC" && break
1819 done
1820
1821   CC=$ac_ct_CC
1822 fi
1823
1824 fi
1825
1826
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831    { (exit 1); exit 1; }; }
1832
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835      "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838   (eval $ac_compiler --version </dev/null >&5) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843   (eval $ac_compiler -v </dev/null >&5) 2>&5
1844   ac_status=$?
1845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846   (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848   (eval $ac_compiler -V </dev/null >&5) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }
1852
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1855 /* confdefs.h.  */
1856 _ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h.  */
1860
1861 int
1862 main ()
1863 {
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1873 # of exeext.
1874 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1875 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878   (eval $ac_link_default) 2>&5
1879   ac_status=$?
1880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881   (exit $ac_status); }; then
1882   # Find the output, starting from the most likely.  This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1884 # resort.
1885
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 ac_cv_exeext=
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1895         ;;
1896     conftest.$ac_ext )
1897         # This is the source file.
1898         ;;
1899     [ab].out )
1900         # We found the default executable, but exeext='' is most
1901         # certainly right.
1902         break;;
1903     *.* )
1904         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905         # FIXME: I believe we export ac_cv_exeext for Libtool,
1906         # but it would be cool to find out if it's true.  Does anybody
1907         # maintain Libtool? --akim.
1908         export ac_cv_exeext
1909         break;;
1910     * )
1911         break;;
1912   esac
1913 done
1914 else
1915   echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922    { (exit 77); exit 77; }; }
1923 fi
1924
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1928
1929 # Check the compiler produces executables we can run.  If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936   if { ac_try='./$ac_file'
1937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1938   (eval $ac_try) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; }; then
1942     cross_compiling=no
1943   else
1944     if test "$cross_compiling" = maybe; then
1945         cross_compiling=yes
1946     else
1947         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953    { (exit 1); exit 1; }; }
1954     fi
1955   fi
1956 fi
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1959
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run.  If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1968
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972   (eval $ac_link) 2>&5
1973   ac_status=$?
1974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975   (exit $ac_status); }; then
1976   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 # `rm'.
1980 for ac_file in conftest.exe conftest conftest.*; do
1981   test -f "$ac_file" || continue
1982   case $ac_file in
1983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985           export ac_cv_exeext
1986           break;;
1987     * ) break;;
1988   esac
1989 done
1990 else
1991   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995    { (exit 1); exit 1; }; }
1996 fi
1997
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2001
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2004 ac_exeext=$EXEEXT
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   cat >conftest.$ac_ext <<_ACEOF
2011 #line $LINENO "configure"
2012 /* confdefs.h.  */
2013 _ACEOF
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h.  */
2017
2018 int
2019 main ()
2020 {
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028   (eval $ac_compile) 2>&5
2029   ac_status=$?
2030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031   (exit $ac_status); }; then
2032   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033   case $ac_file in
2034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036        break;;
2037   esac
2038 done
2039 else
2040   echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2042
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047    { (exit 1); exit 1; }; }
2048 fi
2049
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2055 ac_objext=$OBJEXT
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072 #ifndef __GNUC__
2073        choke me
2074 #endif
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_compiler_gnu=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_compiler_gnu=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101
2102 fi
2103 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2104 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2105 GCC=`test $ac_compiler_gnu = yes && echo yes`
2106 ac_test_CFLAGS=${CFLAGS+set}
2107 ac_save_CFLAGS=$CFLAGS
2108 CFLAGS="-g"
2109 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2110 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2111 if test "${ac_cv_prog_cc_g+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 /* confdefs.h.  */
2117 _ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h.  */
2121
2122 int
2123 main ()
2124 {
2125
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132   (eval $ac_compile) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -s conftest.$ac_objext'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; }; then
2142   ac_cv_prog_cc_g=yes
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_cv_prog_cc_g=no
2148 fi
2149 rm -f conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154   CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156   if test "$GCC" = yes; then
2157     CFLAGS="-g -O2"
2158   else
2159     CFLAGS="-g"
2160   fi
2161 else
2162   if test "$GCC" = yes; then
2163     CFLAGS="-O2"
2164   else
2165     CFLAGS=
2166   fi
2167 fi
2168 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2169 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   ac_cv_prog_cc_stdc=no
2174 ac_save_CC=$CC
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2177 /* confdefs.h.  */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h.  */
2182 #include <stdarg.h>
2183 #include <stdio.h>
2184 #include <sys/types.h>
2185 #include <sys/stat.h>
2186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2187 struct buf { int x; };
2188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2189 static char *e (p, i)
2190      char **p;
2191      int i;
2192 {
2193   return p[i];
2194 }
2195 static char *f (char * (*g) (char **, int), char **p, ...)
2196 {
2197   char *s;
2198   va_list v;
2199   va_start (v,p);
2200   s = g (p, va_arg (v,int));
2201   va_end (v);
2202   return s;
2203 }
2204 int test (int i, double x);
2205 struct s1 {int (*f) (int a);};
2206 struct s2 {int (*f) (double a);};
2207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2208 int argc;
2209 char **argv;
2210 int
2211 main ()
2212 {
2213 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 # Don't try gcc -ansi; that turns off useful extensions and
2219 # breaks some systems' header files.
2220 # AIX                   -qlanglvl=ansi
2221 # Ultrix and OSF/1      -std1
2222 # HP-UX 10.20 and later -Ae
2223 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2224 # SVR4                  -Xc -D__EXTENSIONS__
2225 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2226 do
2227   CC="$ac_save_CC $ac_arg"
2228   rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230   (eval $ac_compile) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); } &&
2234          { ac_try='test -s conftest.$ac_objext'
2235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236   (eval $ac_try) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240   ac_cv_prog_cc_stdc=$ac_arg
2241 break
2242 else
2243   echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2245
2246 fi
2247 rm -f conftest.$ac_objext
2248 done
2249 rm -f conftest.$ac_ext conftest.$ac_objext
2250 CC=$ac_save_CC
2251
2252 fi
2253
2254 case "x$ac_cv_prog_cc_stdc" in
2255   x|xno)
2256     echo "$as_me:$LINENO: result: none needed" >&5
2257 echo "${ECHO_T}none needed" >&6 ;;
2258   *)
2259     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2260 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2261     CC="$CC $ac_cv_prog_cc_stdc" ;;
2262 esac
2263
2264 # Some people use a C++ compiler to compile C.  Since we use `exit',
2265 # in C++ we need to declare it.  In case someone uses the same compiler
2266 # for both compiling C and C++ we need to have the C++ compiler decide
2267 # the declaration of exit, since it's the most demanding environment.
2268 cat >conftest.$ac_ext <<_ACEOF
2269 #ifndef __cplusplus
2270   choke me
2271 #endif
2272 _ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275   (eval $ac_compile) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); } &&
2279          { ac_try='test -s conftest.$ac_objext'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; }; then
2285   for ac_declaration in \
2286    ''\
2287    '#include <stdlib.h>' \
2288    'extern "C" void std::exit (int) throw (); using std::exit;' \
2289    'extern "C" void std::exit (int); using std::exit;' \
2290    'extern "C" void exit (int) throw ();' \
2291    'extern "C" void exit (int);' \
2292    'void exit (int);'
2293 do
2294   cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301 #include <stdlib.h>
2302 $ac_declaration
2303 int
2304 main ()
2305 {
2306 exit (42);
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); } &&
2317          { ac_try='test -s conftest.$ac_objext'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323   :
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 continue
2329 fi
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331   cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2333 /* confdefs.h.  */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h.  */
2338 $ac_declaration
2339 int
2340 main ()
2341 {
2342 exit (42);
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   (eval $ac_compile) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); } &&
2353          { ac_try='test -s conftest.$ac_objext'
2354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355   (eval $ac_try) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; }; then
2359   break
2360 else
2361   echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 fi
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2366 done
2367 rm -f conftest*
2368 if test -n "$ac_declaration"; then
2369   echo '#ifdef __cplusplus' >>confdefs.h
2370   echo $ac_declaration      >>confdefs.h
2371   echo '#endif'             >>confdefs.h
2372 fi
2373
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 fi
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2380 ac_ext=c
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385
2386 ac_ext=cc
2387 ac_cpp='$CXXCPP $CPPFLAGS'
2388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2393   do
2394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2396 echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398 if test "${ac_cv_prog_CXX+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   if test -n "$CXX"; then
2402   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2406 do
2407   IFS=$as_save_IFS
2408   test -z "$as_dir" && as_dir=.
2409   for ac_exec_ext in '' $ac_executable_extensions; do
2410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413     break 2
2414   fi
2415 done
2416 done
2417
2418 fi
2419 fi
2420 CXX=$ac_cv_prog_CXX
2421 if test -n "$CXX"; then
2422   echo "$as_me:$LINENO: result: $CXX" >&5
2423 echo "${ECHO_T}$CXX" >&6
2424 else
2425   echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2427 fi
2428
2429     test -n "$CXX" && break
2430   done
2431 fi
2432 if test -z "$CXX"; then
2433   ac_ct_CXX=$CXX
2434   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2435 do
2436   # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   if test -n "$ac_ct_CXX"; then
2444   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   for ac_exec_ext in '' $ac_executable_extensions; do
2452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453     ac_cv_prog_ac_ct_CXX="$ac_prog"
2454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455     break 2
2456   fi
2457 done
2458 done
2459
2460 fi
2461 fi
2462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2463 if test -n "$ac_ct_CXX"; then
2464   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2465 echo "${ECHO_T}$ac_ct_CXX" >&6
2466 else
2467   echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2469 fi
2470
2471   test -n "$ac_ct_CXX" && break
2472 done
2473 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2474
2475   CXX=$ac_ct_CXX
2476 fi
2477
2478
2479 # Provide some information about the compiler.
2480 echo "$as_me:$LINENO:" \
2481      "checking for C++ compiler version" >&5
2482 ac_compiler=`set X $ac_compile; echo $2`
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2484   (eval $ac_compiler --version </dev/null >&5) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2489   (eval $ac_compiler -v </dev/null >&5) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2494   (eval $ac_compiler -V </dev/null >&5) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }
2498
2499 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2500 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2501 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   cat >conftest.$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511
2512 int
2513 main ()
2514 {
2515 #ifndef __GNUC__
2516        choke me
2517 #endif
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_compiler_gnu=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_compiler_gnu=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2544
2545 fi
2546 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2548 GXX=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CXXFLAGS=${CXXFLAGS+set}
2550 ac_save_CXXFLAGS=$CXXFLAGS
2551 CXXFLAGS="-g"
2552 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2553 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cxx_g+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568
2569   ;
2570   return 0;
2571 }
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575   (eval $ac_compile) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); } &&
2579          { ac_try='test -s conftest.$ac_objext'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585   ac_cv_prog_cxx_g=yes
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 ac_cv_prog_cxx_g=no
2591 fi
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2593 fi
2594 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2596 if test "$ac_test_CXXFLAGS" = set; then
2597   CXXFLAGS=$ac_save_CXXFLAGS
2598 elif test $ac_cv_prog_cxx_g = yes; then
2599   if test "$GXX" = yes; then
2600     CXXFLAGS="-g -O2"
2601   else
2602     CXXFLAGS="-g"
2603   fi
2604 else
2605   if test "$GXX" = yes; then
2606     CXXFLAGS="-O2"
2607   else
2608     CXXFLAGS=
2609   fi
2610 fi
2611 for ac_declaration in \
2612    ''\
2613    '#include <stdlib.h>' \
2614    'extern "C" void std::exit (int) throw (); using std::exit;' \
2615    'extern "C" void std::exit (int); using std::exit;' \
2616    'extern "C" void exit (int) throw ();' \
2617    'extern "C" void exit (int);' \
2618    'void exit (int);'
2619 do
2620   cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627 #include <stdlib.h>
2628 $ac_declaration
2629 int
2630 main ()
2631 {
2632 exit (42);
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639   (eval $ac_compile) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   :
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 continue
2655 fi
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657   cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664 $ac_declaration
2665 int
2666 main ()
2667 {
2668 exit (42);
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675   (eval $ac_compile) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   break
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 fi
2691 rm -f conftest.$ac_objext conftest.$ac_ext
2692 done
2693 rm -f conftest*
2694 if test -n "$ac_declaration"; then
2695   echo '#ifdef __cplusplus' >>confdefs.h
2696   echo $ac_declaration      >>confdefs.h
2697   echo '#endif'             >>confdefs.h
2698 fi
2699
2700 ac_ext=c
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705
2706 if test "x$CC" != xcc; then
2707   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2708 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2709 else
2710   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2711 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2712 fi
2713 set dummy $CC; ac_cc=`echo $2 |
2714                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2715 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   cat >conftest.$ac_ext <<_ACEOF
2719 #line $LINENO "configure"
2720 /* confdefs.h.  */
2721 _ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h.  */
2725
2726 int
2727 main ()
2728 {
2729
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 # Make sure it works both with $CC and with simple cc.
2735 # We do the test twice because some compilers refuse to overwrite an
2736 # existing .o file with -o, though they will create one.
2737 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2738 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); } &&
2743    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744   (eval $ac_try) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); };
2748 then
2749   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2750   if test "x$CC" != xcc; then
2751     # Test first that cc exists at all.
2752     if { ac_try='cc -c conftest.$ac_ext >&5'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; }; then
2758       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2759       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); };
2769       then
2770         # cc works too.
2771         :
2772       else
2773         # cc exists but doesn't like -o.
2774         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2775       fi
2776     fi
2777   fi
2778 else
2779   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2780 fi
2781 rm -f conftest*
2782
2783 fi
2784 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2785   echo "$as_me:$LINENO: result: yes" >&5
2786 echo "${ECHO_T}yes" >&6
2787 else
2788   echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790
2791 cat >>confdefs.h <<\_ACEOF
2792 #define NO_MINUS_C_MINUS_O 1
2793 _ACEOF
2794
2795 fi
2796
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2804 # On Suns, sometimes $CPP names a directory.
2805 if test -n "$CPP" && test -d "$CPP"; then
2806   CPP=
2807 fi
2808 if test -z "$CPP"; then
2809   if test "${ac_cv_prog_CPP+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812       # Double quotes because CPP needs to be expanded
2813     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2814     do
2815       ac_preproc_ok=false
2816 for ac_c_preproc_warn_flag in '' yes
2817 do
2818   # Use a header file that comes with gcc, so configuring glibc
2819   # with a fresh cross-compiler works.
2820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2821   # <limits.h> exists even on freestanding compilers.
2822   # On the NeXT, cc -E runs the code through the compiler's parser,
2823   # not just through cpp. "Syntax error" is here to catch this case.
2824   cat >conftest.$ac_ext <<_ACEOF
2825 #line $LINENO "configure"
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831 #ifdef __STDC__
2832 # include <limits.h>
2833 #else
2834 # include <assert.h>
2835 #endif
2836                      Syntax error
2837 _ACEOF
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } >/dev/null; then
2846   if test -s conftest.err; then
2847     ac_cpp_err=$ac_c_preproc_warn_flag
2848   else
2849     ac_cpp_err=
2850   fi
2851 else
2852   ac_cpp_err=yes
2853 fi
2854 if test -z "$ac_cpp_err"; then
2855   :
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860   # Broken: fails on valid input.
2861 continue
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865   # OK, works on sane cases.  Now check whether non-existent headers
2866   # can be detected and how.
2867   cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874 #include <ac_nonexistent.h>
2875 _ACEOF
2876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2878   ac_status=$?
2879   grep -v '^ *+' conftest.er1 >conftest.err
2880   rm -f conftest.er1
2881   cat conftest.err >&5
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); } >/dev/null; then
2884   if test -s conftest.err; then
2885     ac_cpp_err=$ac_c_preproc_warn_flag
2886   else
2887     ac_cpp_err=
2888   fi
2889 else
2890   ac_cpp_err=yes
2891 fi
2892 if test -z "$ac_cpp_err"; then
2893   # Broken: success on invalid input.
2894 continue
2895 else
2896   echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899   # Passes both tests.
2900 ac_preproc_ok=:
2901 break
2902 fi
2903 rm -f conftest.err conftest.$ac_ext
2904
2905 done
2906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2907 rm -f conftest.err conftest.$ac_ext
2908 if $ac_preproc_ok; then
2909   break
2910 fi
2911
2912     done
2913     ac_cv_prog_CPP=$CPP
2914
2915 fi
2916   CPP=$ac_cv_prog_CPP
2917 else
2918   ac_cv_prog_CPP=$CPP
2919 fi
2920 echo "$as_me:$LINENO: result: $CPP" >&5
2921 echo "${ECHO_T}$CPP" >&6
2922 ac_preproc_ok=false
2923 for ac_c_preproc_warn_flag in '' yes
2924 do
2925   # Use a header file that comes with gcc, so configuring glibc
2926   # with a fresh cross-compiler works.
2927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928   # <limits.h> exists even on freestanding compilers.
2929   # On the NeXT, cc -E runs the code through the compiler's parser,
2930   # not just through cpp. "Syntax error" is here to catch this case.
2931   cat >conftest.$ac_ext <<_ACEOF
2932 #line $LINENO "configure"
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938 #ifdef __STDC__
2939 # include <limits.h>
2940 #else
2941 # include <assert.h>
2942 #endif
2943                      Syntax error
2944 _ACEOF
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } >/dev/null; then
2953   if test -s conftest.err; then
2954     ac_cpp_err=$ac_c_preproc_warn_flag
2955   else
2956     ac_cpp_err=
2957   fi
2958 else
2959   ac_cpp_err=yes
2960 fi
2961 if test -z "$ac_cpp_err"; then
2962   :
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967   # Broken: fails on valid input.
2968 continue
2969 fi
2970 rm -f conftest.err conftest.$ac_ext
2971
2972   # OK, works on sane cases.  Now check whether non-existent headers
2973   # can be detected and how.
2974   cat >conftest.$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #include <ac_nonexistent.h>
2982 _ACEOF
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } >/dev/null; then
2991   if test -s conftest.err; then
2992     ac_cpp_err=$ac_c_preproc_warn_flag
2993   else
2994     ac_cpp_err=
2995   fi
2996 else
2997   ac_cpp_err=yes
2998 fi
2999 if test -z "$ac_cpp_err"; then
3000   # Broken: success on invalid input.
3001 continue
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006   # Passes both tests.
3007 ac_preproc_ok=:
3008 break
3009 fi
3010 rm -f conftest.err conftest.$ac_ext
3011
3012 done
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3016   :
3017 else
3018   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&2;}
3022    { (exit 1); exit 1; }; }
3023 fi
3024
3025 ac_ext=c
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030
3031
3032 echo "$as_me:$LINENO: checking for egrep" >&5
3033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3034 if test "${ac_cv_prog_egrep+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3038     then ac_cv_prog_egrep='grep -E'
3039     else ac_cv_prog_egrep='egrep'
3040     fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3043 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3044  EGREP=$ac_cv_prog_egrep
3045
3046
3047 if test $ac_cv_c_compiler_gnu = yes; then
3048     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3049 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3050 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053     ac_pattern="Autoconf.*'x'"
3054   cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061 #include <sgtty.h>
3062 Autoconf TIOCGETP
3063 _ACEOF
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3066   ac_cv_prog_gcc_traditional=yes
3067 else
3068   ac_cv_prog_gcc_traditional=no
3069 fi
3070 rm -f conftest*
3071
3072
3073   if test $ac_cv_prog_gcc_traditional = no; then
3074     cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #include <termio.h>
3082 Autoconf TCGETA
3083 _ACEOF
3084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3085   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3086   ac_cv_prog_gcc_traditional=yes
3087 fi
3088 rm -f conftest*
3089
3090   fi
3091 fi
3092 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3093 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3094   if test $ac_cv_prog_gcc_traditional = yes; then
3095     CC="$CC -traditional"
3096   fi
3097 fi
3098
3099 if test x$CC = xgcc
3100 then
3101    cat >>confdefs.h <<\_ACEOF
3102 #define HAVE_GCC 1
3103 _ACEOF
3104
3105 fi
3106
3107 # Find a good install program.  We prefer a C program (faster),
3108 # so one script is as good as another.  But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3113 # AIX /bin/install
3114 # AmigaOS /C/install, which installs bootblocks on floppy discs
3115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3118 # ./install, which can be erroneously created by make from ./install.sh.
3119 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3121 if test -z "$INSTALL"; then
3122 if test "${ac_cv_path_install+set}" = set; then
3123   echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130   # Account for people who put trailing slashes in PATH elements.
3131 case $as_dir/ in
3132   ./ | .// | /cC/* | \
3133   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3134   /usr/ucb/* ) ;;
3135   *)
3136     # OSF1 and SCO ODT 3.0 have their own names for install.
3137     # Don't use installbsd from OSF since it installs stuff as root
3138     # by default.
3139     for ac_prog in ginstall scoinst install; do
3140       for ac_exec_ext in '' $ac_executable_extensions; do
3141         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3142           if test $ac_prog = install &&
3143             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3144             # AIX install.  It has an incompatible calling convention.
3145             :
3146           elif test $ac_prog = install &&
3147             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148             # program-specific install script used by HP pwplus--don't use.
3149             :
3150           else
3151             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3152             break 3
3153           fi
3154         fi
3155       done
3156     done
3157     ;;
3158 esac
3159 done
3160
3161
3162 fi
3163   if test "${ac_cv_path_install+set}" = set; then
3164     INSTALL=$ac_cv_path_install
3165   else
3166     # As a last resort, use the slow shell script.  We don't cache a
3167     # path for INSTALL within a source directory, because that will
3168     # break other packages using the cache if that directory is
3169     # removed, or if the path is relative.
3170     INSTALL=$ac_install_sh
3171   fi
3172 fi
3173 echo "$as_me:$LINENO: result: $INSTALL" >&5
3174 echo "${ECHO_T}$INSTALL" >&6
3175
3176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3177 # It thinks the first close brace ends the variable substitution.
3178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3179
3180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3181
3182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3183
3184 if test -n "$ac_tool_prefix"; then
3185   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3187 echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189 if test "${ac_cv_prog_RANLIB+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   if test -n "$RANLIB"; then
3193   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   test -z "$as_dir" && as_dir=.
3200   for ac_exec_ext in '' $ac_executable_extensions; do
3201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204     break 2
3205   fi
3206 done
3207 done
3208
3209 fi
3210 fi
3211 RANLIB=$ac_cv_prog_RANLIB
3212 if test -n "$RANLIB"; then
3213   echo "$as_me:$LINENO: result: $RANLIB" >&5
3214 echo "${ECHO_T}$RANLIB" >&6
3215 else
3216   echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3218 fi
3219
3220 fi
3221 if test -z "$ac_cv_prog_RANLIB"; then
3222   ac_ct_RANLIB=$RANLIB
3223   # Extract the first word of "ranlib", so it can be a program name with args.
3224 set dummy ranlib; ac_word=$2
3225 echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   if test -n "$ac_ct_RANLIB"; then
3231   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238   for ac_exec_ext in '' $ac_executable_extensions; do
3239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240     ac_cv_prog_ac_ct_RANLIB="ranlib"
3241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245 done
3246
3247   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3248 fi
3249 fi
3250 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3251 if test -n "$ac_ct_RANLIB"; then
3252   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3253 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3254 else
3255   echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3257 fi
3258
3259   RANLIB=$ac_ct_RANLIB
3260 else
3261   RANLIB="$ac_cv_prog_RANLIB"
3262 fi
3263
3264 # Extract the first word of "mv", so it can be a program name with args.
3265 set dummy mv; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_path_MV+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   case $MV in
3272   [\\/]* | ?:[\\/]*)
3273   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3274   ;;
3275   *)
3276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_exec_ext in '' $ac_executable_extensions; do
3282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288 done
3289
3290   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3291   ;;
3292 esac
3293 fi
3294 MV=$ac_cv_path_MV
3295
3296 if test -n "$MV"; then
3297   echo "$as_me:$LINENO: result: $MV" >&5
3298 echo "${ECHO_T}$MV" >&6
3299 else
3300   echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3302 fi
3303
3304 # Extract the first word of "rm", so it can be a program name with args.
3305 set dummy rm; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_RM+set}" = set; then
3309   echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311   case $RM in
3312   [\\/]* | ?:[\\/]*)
3313   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3314   ;;
3315   *)
3316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329
3330   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3331   ;;
3332 esac
3333 fi
3334 RM=$ac_cv_path_RM
3335
3336 if test -n "$RM"; then
3337   echo "$as_me:$LINENO: result: $RM" >&5
3338 echo "${ECHO_T}$RM" >&6
3339 else
3340   echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3342 fi
3343
3344 # Extract the first word of "cp", so it can be a program name with args.
3345 set dummy cp; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_CP+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   case $CP in
3352   [\\/]* | ?:[\\/]*)
3353   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3354   ;;
3355   *)
3356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361   for ac_exec_ext in '' $ac_executable_extensions; do
3362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368 done
3369
3370   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3371   ;;
3372 esac
3373 fi
3374 CP=$ac_cv_path_CP
3375
3376 if test -n "$CP"; then
3377   echo "$as_me:$LINENO: result: $CP" >&5
3378 echo "${ECHO_T}$CP" >&6
3379 else
3380   echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3382 fi
3383
3384 # Extract the first word of "sed", so it can be a program name with args.
3385 set dummy sed; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_SED+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   case $SED in
3392   [\\/]* | ?:[\\/]*)
3393   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3394   ;;
3395   *)
3396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409
3410   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3411   ;;
3412 esac
3413 fi
3414 SED=$ac_cv_path_SED
3415
3416 if test -n "$SED"; then
3417   echo "$as_me:$LINENO: result: $SED" >&5
3418 echo "${ECHO_T}$SED" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424 # Extract the first word of "awk", so it can be a program name with args.
3425 set dummy awk; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_AWK+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   case $AWK in
3432   [\\/]* | ?:[\\/]*)
3433   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3434   ;;
3435   *)
3436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for ac_exec_ext in '' $ac_executable_extensions; do
3442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448 done
3449
3450   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3451   ;;
3452 esac
3453 fi
3454 AWK=$ac_cv_path_AWK
3455
3456 if test -n "$AWK"; then
3457   echo "$as_me:$LINENO: result: $AWK" >&5
3458 echo "${ECHO_T}$AWK" >&6
3459 else
3460   echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462 fi
3463
3464 # Extract the first word of "echo", so it can be a program name with args.
3465 set dummy echo; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_ECHO+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   case $ECHO in
3472   [\\/]* | ?:[\\/]*)
3473   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3474   ;;
3475   *)
3476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3491   ;;
3492 esac
3493 fi
3494 ECHO=$ac_cv_path_ECHO
3495
3496 if test -n "$ECHO"; then
3497   echo "$as_me:$LINENO: result: $ECHO" >&5
3498 echo "${ECHO_T}$ECHO" >&6
3499 else
3500   echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3502 fi
3503
3504 # Extract the first word of "cmp", so it can be a program name with args.
3505 set dummy cmp; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_CMP+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   case $CMP in
3512   [\\/]* | ?:[\\/]*)
3513   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3514   ;;
3515   *)
3516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529
3530   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3531   ;;
3532 esac
3533 fi
3534 CMP=$ac_cv_path_CMP
3535
3536 if test -n "$CMP"; then
3537   echo "$as_me:$LINENO: result: $CMP" >&5
3538 echo "${ECHO_T}$CMP" >&6
3539 else
3540   echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 fi
3543
3544 # Extract the first word of "tbl", so it can be a program name with args.
3545 set dummy tbl; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_TBL+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   case $TBL in
3552   [\\/]* | ?:[\\/]*)
3553   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3554   ;;
3555   *)
3556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   for ac_exec_ext in '' $ac_executable_extensions; do
3562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568 done
3569
3570   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3571   ;;
3572 esac
3573 fi
3574 TBL=$ac_cv_path_TBL
3575
3576 if test -n "$TBL"; then
3577   echo "$as_me:$LINENO: result: $TBL" >&5
3578 echo "${ECHO_T}$TBL" >&6
3579 else
3580   echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3582 fi
3583
3584 # Extract the first word of "ar", so it can be a program name with args.
3585 set dummy ar; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_AR+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   case $AR in
3592   [\\/]* | ?:[\\/]*)
3593   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3594   ;;
3595   *)
3596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_exec_ext in '' $ac_executable_extensions; do
3602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608 done
3609
3610   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3611   ;;
3612 esac
3613 fi
3614 AR=$ac_cv_path_AR
3615
3616 if test -n "$AR"; then
3617   echo "$as_me:$LINENO: result: $AR" >&5
3618 echo "${ECHO_T}$AR" >&6
3619 else
3620   echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3622 fi
3623
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625 set dummy ranlib; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_RANLIB+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   case $RANLIB in
3632   [\\/]* | ?:[\\/]*)
3633   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3634   ;;
3635   *)
3636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_exec_ext in '' $ac_executable_extensions; do
3642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648 done
3649
3650   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3651   ;;
3652 esac
3653 fi
3654 RANLIB=$ac_cv_path_RANLIB
3655
3656 if test -n "$RANLIB"; then
3657   echo "$as_me:$LINENO: result: $RANLIB" >&5
3658 echo "${ECHO_T}$RANLIB" >&6
3659 else
3660   echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662 fi
3663
3664 # Extract the first word of "openssl", so it can be a program name with args.
3665 set dummy openssl; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_OPENSSL+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   case $OPENSSL in
3672   [\\/]* | ?:[\\/]*)
3673   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3674   ;;
3675   *)
3676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   for ac_exec_ext in '' $ac_executable_extensions; do
3682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688 done
3689
3690   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3691   ;;
3692 esac
3693 fi
3694 OPENSSL=$ac_cv_path_OPENSSL
3695
3696 if test -n "$OPENSSL"; then
3697   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3698 echo "${ECHO_T}$OPENSSL" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703
3704 # Extract the first word of "mtx", so it can be a program name with args.
3705 set dummy mtx; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_MTX+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   case $MTX in
3712   [\\/]* | ?:[\\/]*)
3713   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3714   ;;
3715   *)
3716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728 done
3729
3730   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3731   ;;
3732 esac
3733 fi
3734 MTX=$ac_cv_path_MTX
3735
3736 if test -n "$MTX"; then
3737   echo "$as_me:$LINENO: result: $MTX" >&5
3738 echo "${ECHO_T}$MTX" >&6
3739 else
3740   echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3742 fi
3743
3744 # Extract the first word of "pkg-config", so it can be a program name with args.
3745 set dummy pkg-config; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   case $PKGCONFIG in
3752   [\\/]* | ?:[\\/]*)
3753   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3754   ;;
3755   *)
3756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761   for ac_exec_ext in '' $ac_executable_extensions; do
3762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768 done
3769
3770   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3771   ;;
3772 esac
3773 fi
3774 PKGCONFIG=$ac_cv_path_PKGCONFIG
3775
3776 if test -n "$PKGCONFIG"; then
3777   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3778 echo "${ECHO_T}$PKGCONFIG" >&6
3779 else
3780   echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 test -n "$ARFLAG" || ARFLAGS="cr"
3786
3787
3788 MAKE_SHELL=/bin/sh
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798 echo "$as_me:$LINENO: checking for Operating System" >&5
3799 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3800
3801 case $host_os in
3802   *cygwin* ) CYGWIN=yes;;
3803          * ) CYGWIN=no;;
3804 esac
3805
3806 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3807 then
3808
3809
3810 if $TRUEPRG; then
3811   HAVE_SUN_OS_TRUE=
3812   HAVE_SUN_OS_FALSE='#'
3813 else
3814   HAVE_SUN_OS_TRUE='#'
3815   HAVE_SUN_OS_FALSE=
3816 fi
3817         cat >>confdefs.h <<\_ACEOF
3818 #define HAVE_SUN_OS 1
3819 _ACEOF
3820
3821 else
3822
3823
3824 if $FALSEPRG; then
3825   HAVE_SUN_OS_TRUE=
3826   HAVE_SUN_OS_FALSE='#'
3827 else
3828   HAVE_SUN_OS_TRUE='#'
3829   HAVE_SUN_OS_FALSE=
3830 fi
3831 fi
3832
3833 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3834 then
3835
3836
3837 if $TRUEPRG; then
3838   HAVE_OSF1_OS_TRUE=
3839   HAVE_OSF1_OS_FALSE='#'
3840 else
3841   HAVE_OSF1_OS_TRUE='#'
3842   HAVE_OSF1_OS_FALSE=
3843 fi
3844         cat >>confdefs.h <<\_ACEOF
3845 #define HAVE_OSF1_OS 1
3846 _ACEOF
3847
3848 else
3849
3850
3851 if $FALSEPRG; then
3852   HAVE_OSF1_OS_TRUE=
3853   HAVE_OSF1_OS_FALSE='#'
3854 else
3855   HAVE_OSF1_OS_TRUE='#'
3856   HAVE_OSF1_OS_FALSE=
3857 fi
3858 fi
3859
3860 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3861 then
3862
3863
3864 if $TRUEPRG; then
3865   HAVE_AIX_OS_TRUE=
3866   HAVE_AIX_OS_FALSE='#'
3867 else
3868   HAVE_AIX_OS_TRUE='#'
3869   HAVE_AIX_OS_FALSE=
3870 fi
3871         cat >>confdefs.h <<\_ACEOF
3872 #define HAVE_AIX_OS 1
3873 _ACEOF
3874
3875 else
3876
3877
3878 if $FALSEPRG; then
3879   HAVE_AIX_OS_TRUE=
3880   HAVE_AIX_OS_FALSE='#'
3881 else
3882   HAVE_AIX_OS_TRUE='#'
3883   HAVE_AIX_OS_FALSE=
3884 fi
3885 fi
3886
3887 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3888 then
3889
3890
3891 if $TRUEPRG; then
3892   HAVE_HPUX_OS_TRUE=
3893   HAVE_HPUX_OS_FALSE='#'
3894 else
3895   HAVE_HPUX_OS_TRUE='#'
3896   HAVE_HPUX_OS_FALSE=
3897 fi
3898         cat >>confdefs.h <<\_ACEOF
3899 #define HAVE_HPUX_OS 1
3900 _ACEOF
3901
3902 else
3903
3904
3905 if $FALSEPRG; then
3906   HAVE_HPUX_OS_TRUE=
3907   HAVE_HPUX_OS_FALSE='#'
3908 else
3909   HAVE_HPUX_OS_TRUE='#'
3910   HAVE_HPUX_OS_FALSE=
3911 fi
3912 fi
3913
3914 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3915 then
3916
3917
3918 if $TRUEPRG; then
3919   HAVE_LINUX_OS_TRUE=
3920   HAVE_LINUX_OS_FALSE='#'
3921 else
3922   HAVE_LINUX_OS_TRUE='#'
3923   HAVE_LINUX_OS_FALSE=
3924 fi
3925         cat >>confdefs.h <<\_ACEOF
3926 #define HAVE_LINUX_OS 1
3927 _ACEOF
3928
3929 else
3930
3931
3932 if $FALSEPRG; then
3933   HAVE_LINUX_OS_TRUE=
3934   HAVE_LINUX_OS_FALSE='#'
3935 else
3936   HAVE_LINUX_OS_TRUE='#'
3937   HAVE_LINUX_OS_FALSE=
3938 fi
3939 fi
3940
3941 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3942 then
3943
3944
3945 if $TRUEPRG; then
3946   HAVE_FREEBSD_OS_TRUE=
3947   HAVE_FREEBSD_OS_FALSE='#'
3948 else
3949   HAVE_FREEBSD_OS_TRUE='#'
3950   HAVE_FREEBSD_OS_FALSE=
3951 fi
3952         cat >>confdefs.h <<\_ACEOF
3953 #define HAVE_FREEBSD_OS 1
3954 _ACEOF
3955
3956 else
3957
3958
3959 if $FALSEPRG; then
3960   HAVE_FREEBSD_OS_TRUE=
3961   HAVE_FREEBSD_OS_FALSE='#'
3962 else
3963   HAVE_FREEBSD_OS_TRUE='#'
3964   HAVE_FREEBSD_OS_FALSE=
3965 fi
3966 fi
3967
3968 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3969 then
3970
3971
3972 if $TRUEPRG; then
3973   HAVE_NETBSD_OS_TRUE=
3974   HAVE_NETBSD_OS_FALSE='#'
3975 else
3976   HAVE_NETBSD_OS_TRUE='#'
3977   HAVE_NETBSD_OS_FALSE=
3978 fi
3979         cat >>confdefs.h <<\_ACEOF
3980 #define HAVE_NETBSD_OS 1
3981 _ACEOF
3982
3983 else
3984
3985
3986 if $FALSEPRG; then
3987   HAVE_NETBSD_OS_TRUE=
3988   HAVE_NETBSD_OS_FALSE='#'
3989 else
3990   HAVE_NETBSD_OS_TRUE='#'
3991   HAVE_NETBSD_OS_FALSE=
3992 fi
3993 fi
3994
3995 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3996 then
3997
3998
3999 if $TRUEPRG; then
4000   HAVE_OPENBSD_OS_TRUE=
4001   HAVE_OPENBSD_OS_FALSE='#'
4002 else
4003   HAVE_OPENBSD_OS_TRUE='#'
4004   HAVE_OPENBSD_OS_FALSE=
4005 fi
4006         cat >>confdefs.h <<\_ACEOF
4007 #define HAVE_OPENBSD_OS 1
4008 _ACEOF
4009
4010 else
4011
4012
4013 if $FALSEPRG; then
4014   HAVE_OPENBSD_OS_TRUE=
4015   HAVE_OPENBSD_OS_FALSE='#'
4016 else
4017   HAVE_OPENBSD_OS_TRUE='#'
4018   HAVE_OPENBSD_OS_FALSE=
4019 fi
4020 fi
4021
4022 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4023 then
4024
4025
4026 if $TRUEPRG; then
4027   HAVE_BSDI_OS_TRUE=
4028   HAVE_BSDI_OS_FALSE='#'
4029 else
4030   HAVE_BSDI_OS_TRUE='#'
4031   HAVE_BSDI_OS_FALSE=
4032 fi
4033         cat >>confdefs.h <<\_ACEOF
4034 #define HAVE_BSDI_OS 1
4035 _ACEOF
4036
4037 else
4038
4039
4040 if $FALSEPRG; then
4041   HAVE_BSDI_OS_TRUE=
4042   HAVE_BSDI_OS_FALSE='#'
4043 else
4044   HAVE_BSDI_OS_TRUE='#'
4045   HAVE_BSDI_OS_FALSE=
4046 fi
4047 fi
4048
4049 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4050 then
4051
4052
4053 if $TRUEPRG; then
4054   HAVE_SGI_OS_TRUE=
4055   HAVE_SGI_OS_FALSE='#'
4056 else
4057   HAVE_SGI_OS_TRUE='#'
4058   HAVE_SGI_OS_FALSE=
4059 fi
4060         cat >>confdefs.h <<\_ACEOF
4061 #define HAVE_SGI_OS 1
4062 _ACEOF
4063
4064 else
4065
4066
4067 if $FALSEPRG; then
4068   HAVE_SGI_OS_TRUE=
4069   HAVE_SGI_OS_FALSE='#'
4070 else
4071   HAVE_SGI_OS_TRUE='#'
4072   HAVE_SGI_OS_FALSE=
4073 fi
4074 fi
4075
4076 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4077 then
4078
4079
4080 if $TRUEPRG; then
4081   HAVE_IRIX_OS_TRUE=
4082   HAVE_IRIX_OS_FALSE='#'
4083 else
4084   HAVE_IRIX_OS_TRUE='#'
4085   HAVE_IRIX_OS_FALSE=
4086 fi
4087         cat >>confdefs.h <<\_ACEOF
4088 #define HAVE_IRIX_OS 1
4089 _ACEOF
4090
4091 else
4092
4093
4094 if $FALSEPRG; then
4095   HAVE_IRIX_OS_TRUE=
4096   HAVE_IRIX_OS_FALSE='#'
4097 else
4098   HAVE_IRIX_OS_TRUE='#'
4099   HAVE_IRIX_OS_FALSE=
4100 fi
4101 fi
4102
4103 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4104 then
4105
4106
4107 if $TRUEPRG; then
4108   HAVE_DARWIN_OS_TRUE=
4109   HAVE_DARWIN_OS_FALSE='#'
4110 else
4111   HAVE_DARWIN_OS_TRUE='#'
4112   HAVE_DARWIN_OS_FALSE=
4113 fi
4114     cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_DARWIN_OS 1
4116 _ACEOF
4117
4118 else
4119
4120
4121 if $FALSEPRG; then
4122   HAVE_DARWIN_OS_TRUE=
4123   HAVE_DARWIN_OS_FALSE='#'
4124 else
4125   HAVE_DARWIN_OS_TRUE='#'
4126   HAVE_DARWIN_OS_FALSE=
4127 fi
4128 fi
4129
4130 echo "$as_me:$LINENO: result: \" \"" >&5
4131 echo "${ECHO_T}\" \"" >&6
4132
4133
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4139 then
4140         echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4142 then
4143         DISTNAME=alpha
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4145 then
4146         DISTNAME=aix
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4148 then
4149         DISTNAME=hpux
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4151 then
4152         DISTNAME=solaris
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4154 then
4155         DISTNAME=freebsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4157 then
4158         DISTNAME=netbsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4160 then
4161         DISTNAME=openbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4163 then
4164         DISTNAME=irix
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4166 then
4167         DISTNAME=bsdi
4168 elif test -f /etc/SuSE-release
4169 then
4170         DISTNAME=suse
4171 elif test -d /etc/SuSEconfig
4172 then
4173         DISTNAME=suse5
4174 elif test -f /etc/mandrake-release
4175 then
4176         DISTNAME=mandrake
4177 elif test -f /etc/redhat-release
4178 then
4179         DISTNAME=redhat
4180 elif test -f /etc/gentoo-release
4181 then
4182         DISTNAME=gentoo
4183 elif test -f /etc/debian_version
4184 then
4185         DISTNAME=debian
4186 elif test -f /etc/slackware-version
4187 then
4188         DISTNAME=slackware
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4190 then
4191     DISTNAME=darwin
4192 elif test -f /etc/engarde-version
4193 then
4194         DISTNAME=engarde
4195 elif test "$CYGWIN" = yes
4196 then
4197         DISTNAME=cygwin
4198         cat >>confdefs.h <<\_ACEOF
4199 #define HAVE_CYGWIN 1
4200 _ACEOF
4201
4202 else
4203         DISTNAME=unknown
4204 fi
4205 echo "$as_me:$LINENO: result: \" \"" >&5
4206 echo "${ECHO_T}\" \"" >&6
4207
4208
4209 # -----------------------------------------------------------
4210 # ----------------------------------------------------------
4211
4212
4213
4214 if false; then
4215   INSIDE_GNOME_COMMON_TRUE=
4216   INSIDE_GNOME_COMMON_FALSE='#'
4217 else
4218   INSIDE_GNOME_COMMON_TRUE='#'
4219   INSIDE_GNOME_COMMON_FALSE=
4220 fi
4221
4222         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4223
4224         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4225
4226
4227 # ------------------------------------------------------------------
4228 #  If the user has not set --prefix, we set our default to nothing.
4229 #  In this case, if the user has not set --sysconfdir, we set it
4230 #  to the package default of /etc/bacula.  If either --prefix or
4231 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4232 # ------------------------------------------------------------------
4233 if test x${prefix} = xNONE ; then
4234     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4235         sysconfdir=/etc/bacula
4236     fi
4237     prefix=
4238 fi
4239 sysconfdir=`eval echo ${sysconfdir}`
4240
4241 # -------------------------------------------------------------------------
4242 #  If the user has not set --exec-prefix, we default to ${prefix}
4243 # -------------------------------------------------------------------------
4244 if test x${exec_prefix} = xNONE ; then
4245     exec_prefix=${prefix}
4246 fi
4247
4248 # ------------------------------------------------------------------
4249 # If the user has not set --sbindir, we set our default as /sbin
4250 # ------------------------------------------------------------------
4251 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4252     sbindir=${exec_prefix}/sbin
4253 fi
4254 sbindir=`eval echo ${sbindir}`
4255
4256 # ------------------------------------------------------------------
4257 # All list of languages for which a translation exist. Each
4258 #  language is separated by a space.
4259 # ------------------------------------------------------------------
4260 ALL_LINGUAS=""
4261
4262 for ac_prog in msgfmt
4263 do
4264   # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268 if test "${ac_cv_path_MSGFMT+set}" = set; then
4269   echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271   case $MSGFMT in
4272   [\\/]* | ?:[\\/]*)
4273   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4274   ;;
4275   *)
4276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281   for ac_exec_ext in '' $ac_executable_extensions; do
4282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288 done
4289
4290   ;;
4291 esac
4292 fi
4293 MSGFMT=$ac_cv_path_MSGFMT
4294
4295 if test -n "$MSGFMT"; then
4296   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4297 echo "${ECHO_T}$MSGFMT" >&6
4298 else
4299   echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4301 fi
4302
4303   test -n "$MSGFMT" && break
4304 done
4305 test -n "$MSGFMT" || MSGFMT="no"
4306
4307 if test "$MSGFMT" = "no"
4308 then
4309    echo 'msgfmt program not found, disabling NLS !'
4310    USE_NLS=no
4311    USE_INCLUDED_LIBINTL=no
4312 #else
4313 #   AM_GNU_GETTEXT
4314 fi
4315
4316
4317 support_mysql=no
4318 support_sqlite=no
4319 support_smartalloc=yes
4320 support_readline=yes
4321 support_gnome=no
4322 support_static_tools=no
4323 support_static_fd=no
4324 support_static_sd=no
4325 support_static_dir=no
4326 support_static_cons=no
4327 build_client_only=no
4328 cats=
4329 db_name=Internal
4330 DB_NAME=bdb
4331
4332
4333 # -------------------------------------------
4334 # gnome (default off)
4335 # -------------------------------------------
4336 # Check whether --enable-gnome or --disable-gnome was given.
4337 if test "${enable_gnome+set}" = set; then
4338   enableval="$enable_gnome"
4339   if test x$enableval = xyes; then
4340     support_gnome=yes
4341   fi
4342 fi;
4343
4344 GNOME_DIR=
4345 if test x$support_gnome = xyes; then
4346   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4347   pkg=$?
4348   if test $pkg = 0; then
4349      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4350      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4351      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4352      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4353
4354
4355
4356
4357      GNOME_DIR=src/gnome2-console
4358      gnome_version="version 2.x"
4359   else
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4372 if test "${with_gnome_includes+set}" = set; then
4373   withval="$with_gnome_includes"
4374
4375         CFLAGS="$CFLAGS -I$withval"
4376
4377 fi;
4378
4379
4380 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4381 if test "${with_gnome_libs+set}" = set; then
4382   withval="$with_gnome_libs"
4383
4384         LDFLAGS="$LDFLAGS -L$withval"
4385         gnome_prefix=$withval
4386
4387 fi;
4388
4389
4390 # Check whether --with-gnome or --without-gnome was given.
4391 if test "${with_gnome+set}" = set; then
4392   withval="$with_gnome"
4393   if test x$withval = xyes; then
4394                         want_gnome=yes
4395                                                                         :
4396                 else
4397                         if test "x$withval" = xno; then
4398                                 want_gnome=no
4399                         else
4400                                 want_gnome=yes
4401                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4402                                 CFLAGS="$CFLAGS -I$withval/include"
4403                                 gnome_prefix=$withval/lib
4404                         fi
4405                 fi
4406 else
4407   want_gnome=yes
4408 fi;
4409
4410         if test "x$want_gnome" = xyes; then
4411
4412             # Extract the first word of "gnome-config", so it can be a program name with args.
4413 set dummy gnome-config; ac_word=$2
4414 echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   case $GNOME_CONFIG in
4420   [\\/]* | ?:[\\/]*)
4421   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4422   ;;
4423   *)
4424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_exec_ext in '' $ac_executable_extensions; do
4430   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436 done
4437
4438   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4439   ;;
4440 esac
4441 fi
4442 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4443
4444 if test -n "$GNOME_CONFIG"; then
4445   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4446 echo "${ECHO_T}$GNOME_CONFIG" >&6
4447 else
4448   echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4450 fi
4451
4452             if test "$GNOME_CONFIG" = "no"; then
4453               no_gnome_config="yes"
4454             else
4455               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4456 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4457               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4458                 echo "$as_me:$LINENO: result: yes" >&5
4459 echo "${ECHO_T}yes" >&6
4460
4461
4462         # Extract the first word of "orbit-config", so it can be a program name with args.
4463 set dummy orbit-config; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   case $ORBIT_CONFIG in
4470   [\\/]* | ?:[\\/]*)
4471   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4472   ;;
4473   *)
4474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479   for ac_exec_ext in '' $ac_executable_extensions; do
4480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483     break 2
4484   fi
4485 done
4486 done
4487
4488   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4489   ;;
4490 esac
4491 fi
4492 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4493
4494 if test -n "$ORBIT_CONFIG"; then
4495   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4496 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4497 else
4498   echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4500 fi
4501
4502         # Extract the first word of "orbit-idl", so it can be a program name with args.
4503 set dummy orbit-idl; ac_word=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509   case $ORBIT_IDL in
4510   [\\/]* | ?:[\\/]*)
4511   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4512   ;;
4513   *)
4514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519   for ac_exec_ext in '' $ac_executable_extensions; do
4520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526 done
4527
4528   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4529   ;;
4530 esac
4531 fi
4532 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4533
4534 if test -n "$ORBIT_IDL"; then
4535   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4536 echo "${ECHO_T}$ORBIT_IDL" >&6
4537 else
4538   echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4540 fi
4541
4542         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4543 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4544 if test "${gnome_cv_orbit_found+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547
4548                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4549                         gnome_cv_orbit_found=no
4550                 else
4551                         gnome_cv_orbit_found=yes
4552                 fi
4553
4554 fi
4555 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4556 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4557
4558
4559 if test x$gnome_cv_orbit_found = xyes; then
4560   HAVE_ORBIT_TRUE=
4561   HAVE_ORBIT_FALSE='#'
4562 else
4563   HAVE_ORBIT_TRUE='#'
4564   HAVE_ORBIT_FALSE=
4565 fi
4566         if test x$gnome_cv_orbit_found = xyes; then
4567
4568                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4569                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4570
4571
4572         else
4573                 if test xfail = xfailure; then
4574                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4575 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4576    { (exit 1); exit 1; }; }
4577                 fi
4578         fi
4579
4580         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4581 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4582 if test "${gnome_cv_gnorba_found+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585
4586                 gnome_cv_gnorba_found=no
4587                 if test x$gnome_cv_orbit_found = xyes; then
4588                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4589                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4590                         if test -n "$GNORBA_LIBS"; then
4591                                 gnome_cv_gnorba_found=yes
4592                         fi
4593                 fi
4594
4595 fi
4596 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4597 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4598
4599
4600 if test x$gnome_cv_gnorba_found = xyes; then
4601   HAVE_GNORBA_TRUE=
4602   HAVE_GNORBA_FALSE='#'
4603 else
4604   HAVE_GNORBA_TRUE='#'
4605   HAVE_GNORBA_FALSE=
4606 fi
4607         if test x$gnome_cv_orbit_found = xyes; then
4608
4609                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4610                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4611
4612
4613         else
4614                 if test xfail = xfailure; then
4615                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4616 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4617    { (exit 1); exit 1; }; }
4618                 fi
4619         fi
4620
4621                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4622                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4623                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4624                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4625                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4626                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4627                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4628
4629               else
4630                 echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632                 no_gnome_config="yes"
4633               fi
4634             fi
4635
4636             if test x$exec_prefix = xNONE; then
4637                 if test x$prefix = xNONE; then
4638                     gnome_prefix=$ac_default_prefix/lib
4639                 else
4640                     gnome_prefix=$prefix/lib
4641                 fi
4642             else
4643                 gnome_prefix=`eval echo \`echo $libdir\``
4644             fi
4645
4646             if test "$no_gnome_config" = "yes"; then
4647               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4648 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4649               if test -f $gnome_prefix/gnomeConf.sh; then
4650                 echo "$as_me:$LINENO: result: found" >&5
4651 echo "${ECHO_T}found" >&6
4652                 echo "loading gnome configuration from" \
4653                      "$gnome_prefix/gnomeConf.sh"
4654                 . $gnome_prefix/gnomeConf.sh
4655
4656               else
4657                 echo "$as_me:$LINENO: result: not found" >&5
4658 echo "${ECHO_T}not found" >&6
4659                 if test xfail = xfail; then
4660                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4661 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4662    { (exit 1); exit 1; }; }
4663                 fi
4664               fi
4665             fi
4666         fi
4667
4668         if test -n ""; then
4669           n=""
4670           for i in $n; do
4671             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4672 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4673             case $i in
4674               applets)
4675
4676                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4677                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4678 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4679               docklets)
4680
4681                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4682                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4683 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4684               capplet)
4685
4686                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4687                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4689               *)
4690                 echo "$as_me:$LINENO: result: unknown library" >&5
4691 echo "${ECHO_T}unknown library" >&6
4692             esac
4693             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4694             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4695           done
4696         fi
4697
4698
4699     GNOME_DIR=src/gnome-console
4700     gnome_version="version 1.4"
4701   fi
4702 fi
4703
4704
4705
4706 # -------------------------------------------
4707 # smartalloc (default off)
4708 # -------------------------------------------
4709 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4710 if test "${enable_smartalloc+set}" = set; then
4711   enableval="$enable_smartalloc"
4712   if test x$enableval = xno; then
4713     support_smartalloc=no
4714   fi
4715 fi;
4716
4717 if test x$support_smartalloc = xyes; then
4718    cat >>confdefs.h <<\_ACEOF
4719 #define SMARTALLOC 1
4720 _ACEOF
4721
4722 fi
4723
4724 # -------------------------------------------
4725 # static-tools (default off)
4726 # -------------------------------------------
4727 # Check whether --enable-static-tools or --disable-static-tools was given.
4728 if test "${enable_static_tools+set}" = set; then
4729   enableval="$enable_static_tools"
4730   if test x$enableval = xyes; then
4731      support_static_tools=yes
4732    fi
4733 fi;
4734
4735 TTOOL_LDFLAGS=
4736 if test x$support_static_tools = xyes; then
4737    TTOOL_LDFLAGS="-static"
4738 fi
4739
4740
4741 # -------------------------------------------
4742 # static-fd    (default off)
4743 # -------------------------------------------
4744 # Check whether --enable-static-fd or --disable-static-fd was given.
4745 if test "${enable_static_fd+set}" = set; then
4746   enableval="$enable_static_fd"
4747   if test x$enableval = xyes; then
4748      support_static_fd=yes
4749    fi
4750 fi;
4751
4752 STATIC_FD=
4753 if test x$support_static_fd = xyes; then
4754    STATIC_FD="static-bacula-fd"
4755 fi
4756
4757
4758 # -------------------------------------------
4759 # static-sd    (default off)
4760 # -------------------------------------------
4761 # Check whether --enable-static-sd or --disable-static-sd was given.
4762 if test "${enable_static_sd+set}" = set; then
4763   enableval="$enable_static_sd"
4764   if test x$enableval = xyes; then
4765      support_static_sd=yes
4766    fi
4767 fi;
4768
4769 STATIC_SD=
4770 if test x$support_static_sd = xyes; then
4771    STATIC_SD="static-bacula-sd"
4772 fi
4773
4774
4775 # -------------------------------------------
4776 # static-dir   (default off)
4777 # -------------------------------------------
4778 # Check whether --enable-static-dir or --disable-static-dir was given.
4779 if test "${enable_static_dir+set}" = set; then
4780   enableval="$enable_static_dir"
4781   if test x$enableval = xyes; then
4782      support_static_dir=yes
4783    fi
4784 fi;
4785
4786 STATIC_DIR=
4787 if test x$support_static_dir = xyes; then
4788    STATIC_DIR="static-bacula-dir"
4789 fi
4790
4791
4792 # -------------------------------------------
4793 # static-cons  (default off)
4794 # -------------------------------------------
4795 # Check whether --enable-static-cons or --disable-static-cons was given.
4796 if test "${enable_static_cons+set}" = set; then
4797   enableval="$enable_static_cons"
4798   if test x$enableval = xyes; then
4799      support_static_cons=yes
4800    fi
4801 fi;
4802
4803 STATIC_CONS=
4804 STATIC_GNOME_CONS=
4805 if test x$support_static_cons = xyes; then
4806    STATIC_CONS="static-console"
4807    STATIC_GNOME_CONS="static-gnome-console"
4808 fi
4809
4810
4811
4812 # -------------------------------------------
4813 # client_only  (default off)
4814 # -------------------------------------------
4815 # Check whether --enable-client-only or --disable-client-only was given.
4816 if test "${enable_client_only+set}" = set; then
4817   enableval="$enable_client_only"
4818   if test x$enableval = xyes; then
4819      build_client_only=yes
4820    fi
4821 fi;
4822 if test x$build_client_only = xno; then
4823    ALL_DIRS="subdirs"
4824 else
4825    ALL_DIRS=""
4826 fi
4827
4828
4829 # ---------------------------------------------------
4830 # Check for readline support/directory (default on)
4831 # ---------------------------------------------------
4832 # this allows you to turn it completely off
4833 # Check whether --enable-readline or --disable-readline was given.
4834 if test "${enable_readline+set}" = set; then
4835   enableval="$enable_readline"
4836   if test x$enableval = xno; then
4837     support_readline=no
4838   fi
4839 fi;
4840
4841 got_readline="no"
4842 READLINE_SRC=
4843 if test x$support_readline = xyes; then
4844    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4846 if test "${ac_cv_header_stdc+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   cat >conftest.$ac_ext <<_ACEOF
4850 #line $LINENO "configure"
4851 /* confdefs.h.  */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h.  */
4856 #include <stdlib.h>
4857 #include <stdarg.h>
4858 #include <string.h>
4859 #include <float.h>
4860
4861 int
4862 main ()
4863 {
4864
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871   (eval $ac_compile) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -s conftest.$ac_objext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_cv_header_stdc=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 ac_cv_header_stdc=no
4887 fi
4888 rm -f conftest.$ac_objext conftest.$ac_ext
4889
4890 if test $ac_cv_header_stdc = yes; then
4891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4892   cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899 #include <string.h>
4900
4901 _ACEOF
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903   $EGREP "memchr" >/dev/null 2>&1; then
4904   :
4905 else
4906   ac_cv_header_stdc=no
4907 fi
4908 rm -f conftest*
4909
4910 fi
4911
4912 if test $ac_cv_header_stdc = yes; then
4913   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4914   cat >conftest.$ac_ext <<_ACEOF
4915 #line $LINENO "configure"
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 #include <stdlib.h>
4922
4923 _ACEOF
4924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925   $EGREP "free" >/dev/null 2>&1; then
4926   :
4927 else
4928   ac_cv_header_stdc=no
4929 fi
4930 rm -f conftest*
4931
4932 fi
4933
4934 if test $ac_cv_header_stdc = yes; then
4935   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4936   if test "$cross_compiling" = yes; then
4937   :
4938 else
4939   cat >conftest.$ac_ext <<_ACEOF
4940 #line $LINENO "configure"
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #include <ctype.h>
4947 #if ((' ' & 0x0FF) == 0x020)
4948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4950 #else
4951 # define ISLOWER(c) \
4952                    (('a' <= (c) && (c) <= 'i') \
4953                      || ('j' <= (c) && (c) <= 'r') \
4954                      || ('s' <= (c) && (c) <= 'z'))
4955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4956 #endif
4957
4958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4959 int
4960 main ()
4961 {
4962   int i;
4963   for (i = 0; i < 256; i++)
4964     if (XOR (islower (i), ISLOWER (i))
4965         || toupper (i) != TOUPPER (i))
4966       exit(2);
4967   exit (0);
4968 }
4969 _ACEOF
4970 rm -f conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972   (eval $ac_link) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   :
4982 else
4983   echo "$as_me: program exited with status $ac_status" >&5
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 ( exit $ac_status )
4988 ac_cv_header_stdc=no
4989 fi
4990 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4991 fi
4992 fi
4993 fi
4994 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4995 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4996 if test $ac_cv_header_stdc = yes; then
4997
4998 cat >>confdefs.h <<\_ACEOF
4999 #define STDC_HEADERS 1
5000 _ACEOF
5001
5002 fi
5003
5004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5015                   inttypes.h stdint.h unistd.h
5016 do
5017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   cat >conftest.$ac_ext <<_ACEOF
5024 #line $LINENO "configure"
5025 /* confdefs.h.  */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h.  */
5030 $ac_includes_default
5031
5032 #include <$ac_header>
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036   (eval $ac_compile) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -s conftest.$ac_objext'
5041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042   (eval $ac_try) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   eval "$as_ac_Header=yes"
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 eval "$as_ac_Header=no"
5052 fi
5053 rm -f conftest.$ac_objext conftest.$ac_ext
5054 fi
5055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5058   cat >>confdefs.h <<_ACEOF
5059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5060 _ACEOF
5061
5062 fi
5063
5064 done
5065
5066
5067
5068 # Check whether --with-readline or --without-readline was given.
5069 if test "${with_readline+set}" = set; then
5070   withval="$with_readline"
5071
5072         case "$with_readline" in
5073         no) : ;;
5074         yes|*)
5075           if test "$with_readline" != "yes"; then
5076             CONS_INC="-I${with_readline}"
5077             CONS_LDFLAGS="-L$with_readline"
5078           else
5079              with_readline="/usr/include/readline"
5080           fi
5081           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5083   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5084 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 fi
5088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5090 else
5091   # Is the header compilable?
5092 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5093 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 $ac_includes_default
5102 #include <${with_readline}/readline.h>
5103 _ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106   (eval $ac_compile) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -s conftest.$ac_objext'
5111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112   (eval $ac_try) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   ac_header_compiler=yes
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 ac_header_compiler=no
5122 fi
5123 rm -f conftest.$ac_objext conftest.$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5125 echo "${ECHO_T}$ac_header_compiler" >&6
5126
5127 # Is the header present?
5128 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5129 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5130 cat >conftest.$ac_ext <<_ACEOF
5131 #line $LINENO "configure"
5132 /* confdefs.h.  */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h.  */
5137 #include <${with_readline}/readline.h>
5138 _ACEOF
5139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5141   ac_status=$?
5142   grep -v '^ *+' conftest.er1 >conftest.err
5143   rm -f conftest.er1
5144   cat conftest.err >&5
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } >/dev/null; then
5147   if test -s conftest.err; then
5148     ac_cpp_err=$ac_c_preproc_warn_flag
5149   else
5150     ac_cpp_err=
5151   fi
5152 else
5153   ac_cpp_err=yes
5154 fi
5155 if test -z "$ac_cpp_err"; then
5156   ac_header_preproc=yes
5157 else
5158   echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161   ac_header_preproc=no
5162 fi
5163 rm -f conftest.err conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5165 echo "${ECHO_T}$ac_header_preproc" >&6
5166
5167 # So?  What about this header?
5168 case $ac_header_compiler:$ac_header_preproc in
5169   yes:no )
5170     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5171 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5172     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5173 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5174     (
5175       cat <<\_ASBOX
5176 ## ------------------------------------ ##
5177 ## Report this to bug-autoconf@gnu.org. ##
5178 ## ------------------------------------ ##
5179 _ASBOX
5180     ) |
5181       sed "s/^/$as_me: WARNING:     /" >&2
5182     ;;
5183   no:yes )
5184     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5185 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5186     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5187 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5188     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5189 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5190     (
5191       cat <<\_ASBOX
5192 ## ------------------------------------ ##
5193 ## Report this to bug-autoconf@gnu.org. ##
5194 ## ------------------------------------ ##
5195 _ASBOX
5196     ) |
5197       sed "s/^/$as_me: WARNING:     /" >&2
5198     ;;
5199 esac
5200 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5201 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   eval "$as_ac_Header=$ac_header_preproc"
5206 fi
5207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5209
5210 fi
5211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5212    cat >>confdefs.h <<\_ACEOF
5213 #define HAVE_READLINE 1
5214 _ACEOF
5215
5216                CONS_LIBS="-lreadline -ltermcap"
5217                got_readline="yes"
5218
5219 else
5220    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5221 echo "$as_me: error: *** readline library missing" >&2;}
5222    { (exit 1); exit 1; }; }
5223
5224
5225 fi
5226
5227
5228           ;;
5229         esac
5230
5231 else
5232
5233        # check for standard readline library
5234        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5235   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5236 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5237 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 fi
5240 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5241 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5242 else
5243   # Is the header compilable?
5244 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5245 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253 $ac_includes_default
5254 #include </usr/include/readline/readline.h>
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258   (eval $ac_compile) 2>&5
5259   ac_status=$?
5260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261   (exit $ac_status); } &&
5262          { ac_try='test -s conftest.$ac_objext'
5263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264   (eval $ac_try) 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; }; then
5268   ac_header_compiler=yes
5269 else
5270   echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273 ac_header_compiler=no
5274 fi
5275 rm -f conftest.$ac_objext conftest.$ac_ext
5276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5277 echo "${ECHO_T}$ac_header_compiler" >&6
5278
5279 # Is the header present?
5280 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5281 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 #include </usr/include/readline/readline.h>
5290 _ACEOF
5291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } >/dev/null; then
5299   if test -s conftest.err; then
5300     ac_cpp_err=$ac_c_preproc_warn_flag
5301   else
5302     ac_cpp_err=
5303   fi
5304 else
5305   ac_cpp_err=yes
5306 fi
5307 if test -z "$ac_cpp_err"; then
5308   ac_header_preproc=yes
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313   ac_header_preproc=no
5314 fi
5315 rm -f conftest.err conftest.$ac_ext
5316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5317 echo "${ECHO_T}$ac_header_preproc" >&6
5318
5319 # So?  What about this header?
5320 case $ac_header_compiler:$ac_header_preproc in
5321   yes:no )
5322     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5323 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5324     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5325 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5326     (
5327       cat <<\_ASBOX
5328 ## ------------------------------------ ##
5329 ## Report this to bug-autoconf@gnu.org. ##
5330 ## ------------------------------------ ##
5331 _ASBOX
5332     ) |
5333       sed "s/^/$as_me: WARNING:     /" >&2
5334     ;;
5335   no:yes )
5336     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5337 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5338     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5339 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5340     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5341 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5342     (
5343       cat <<\_ASBOX
5344 ## ------------------------------------ ##
5345 ## Report this to bug-autoconf@gnu.org. ##
5346 ## ------------------------------------ ##
5347 _ASBOX
5348     ) |
5349       sed "s/^/$as_me: WARNING:     /" >&2
5350     ;;
5351 esac
5352 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5353 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5354 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5358 fi
5359 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5360 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5361
5362 fi
5363 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5364    cat >>confdefs.h <<\_ACEOF
5365 #define HAVE_READLINE 1
5366 _ACEOF
5367
5368            got_readline="yes"
5369            CONS_INC="-I/usr/include/readline"
5370            CONS_LIBS="-lreadline -ltermcap"
5371
5372 else
5373
5374            # Did not find standard library, so try Bacula's default
5375             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5377   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5378 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 fi
5382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5384 else
5385   # Is the header compilable?
5386 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5387 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395 $ac_includes_default
5396 #include <${TOP_DIR}/depkgs/readline/readline.h>
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400   (eval $ac_compile) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } &&
5404          { ac_try='test -s conftest.$ac_objext'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   ac_header_compiler=yes
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_header_compiler=no
5416 fi
5417 rm -f conftest.$ac_objext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5419 echo "${ECHO_T}$ac_header_compiler" >&6
5420
5421 # Is the header present?
5422 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5423 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5424 cat >conftest.$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 #include <${TOP_DIR}/depkgs/readline/readline.h>
5432 _ACEOF
5433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } >/dev/null; then
5441   if test -s conftest.err; then
5442     ac_cpp_err=$ac_c_preproc_warn_flag
5443   else
5444     ac_cpp_err=
5445   fi
5446 else
5447   ac_cpp_err=yes
5448 fi
5449 if test -z "$ac_cpp_err"; then
5450   ac_header_preproc=yes
5451 else
5452   echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455   ac_header_preproc=no
5456 fi
5457 rm -f conftest.err conftest.$ac_ext
5458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5459 echo "${ECHO_T}$ac_header_preproc" >&6
5460
5461 # So?  What about this header?
5462 case $ac_header_compiler:$ac_header_preproc in
5463   yes:no )
5464     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5465 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5466     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5467 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5468     (
5469       cat <<\_ASBOX
5470 ## ------------------------------------ ##
5471 ## Report this to bug-autoconf@gnu.org. ##
5472 ## ------------------------------------ ##
5473 _ASBOX
5474     ) |
5475       sed "s/^/$as_me: WARNING:     /" >&2
5476     ;;
5477   no:yes )
5478     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5479 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5480     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5481 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5482     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5483 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5484     (
5485       cat <<\_ASBOX
5486 ## ------------------------------------ ##
5487 ## Report this to bug-autoconf@gnu.org. ##
5488 ## ------------------------------------ ##
5489 _ASBOX
5490     ) |
5491       sed "s/^/$as_me: WARNING:     /" >&2
5492     ;;
5493 esac
5494 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5495 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499   eval "$as_ac_Header=$ac_header_preproc"
5500 fi
5501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5503
5504 fi
5505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506    cat >>confdefs.h <<\_ACEOF
5507 #define HAVE_READLINE 1
5508 _ACEOF
5509
5510                  got_readline="yes"
5511                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5512                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5513                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5514                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5515
5516 else
5517    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5518 echo "$as_me: error: *** readline library missing" >&2;}
5519    { (exit 1); exit 1; }; }
5520
5521
5522 fi
5523
5524
5525
5526
5527 fi
5528
5529
5530
5531
5532 fi;
5533 fi
5534
5535
5536
5537
5538
5539 # Minimal stuff for readline Makefile configuration
5540 MAKE_SHELL=/bin/sh
5541
5542
5543 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5544 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5545 if test "${ac_cv_header_stat_broken+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   cat >conftest.$ac_ext <<_ACEOF
5549 #line $LINENO "configure"
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 #include <sys/types.h>
5556 #include <sys/stat.h>
5557
5558 #if defined(S_ISBLK) && defined(S_IFDIR)
5559 # if S_ISBLK (S_IFDIR)
5560 You lose.
5561 # endif
5562 #endif
5563
5564 #if defined(S_ISBLK) && defined(S_IFCHR)
5565 # if S_ISBLK (S_IFCHR)
5566 You lose.
5567 # endif
5568 #endif
5569
5570 #if defined(S_ISLNK) && defined(S_IFREG)
5571 # if S_ISLNK (S_IFREG)
5572 You lose.
5573 # endif
5574 #endif
5575
5576 #if defined(S_ISSOCK) && defined(S_IFREG)
5577 # if S_ISSOCK (S_IFREG)
5578 You lose.
5579 # endif
5580 #endif
5581
5582 _ACEOF
5583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584   $EGREP "You lose" >/dev/null 2>&1; then
5585   ac_cv_header_stat_broken=yes
5586 else
5587   ac_cv_header_stat_broken=no
5588 fi
5589 rm -f conftest*
5590
5591 fi
5592 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5593 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5594 if test $ac_cv_header_stat_broken = yes; then
5595
5596 cat >>confdefs.h <<\_ACEOF
5597 #define STAT_MACROS_BROKEN 1
5598 _ACEOF
5599
5600 fi
5601
5602
5603
5604
5605
5606
5607 ac_header_dirent=no
5608 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5609   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5610 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5611 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 /* confdefs.h.  */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h.  */
5622 #include <sys/types.h>
5623 #include <$ac_hdr>
5624
5625 int
5626 main ()
5627 {
5628 if ((DIR *) 0)
5629 return 0;
5630   ;
5631   return 0;
5632 }
5633 _ACEOF
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636   (eval $ac_compile) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } &&
5640          { ac_try='test -s conftest.$ac_objext'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; }; then
5646   eval "$as_ac_Header=yes"
5647 else
5648   echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5650
5651 eval "$as_ac_Header=no"
5652 fi
5653 rm -f conftest.$ac_objext conftest.$ac_ext
5654 fi
5655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5658   cat >>confdefs.h <<_ACEOF
5659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5660 _ACEOF
5661
5662 ac_header_dirent=$ac_hdr; break
5663 fi
5664
5665 done
5666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5667 if test $ac_header_dirent = dirent.h; then
5668   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5669 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5670 if test "${ac_cv_search_opendir+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   ac_func_search_save_LIBS=$LIBS
5674 ac_cv_search_opendir=no
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5677 /* confdefs.h.  */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h.  */
5682
5683 /* Override any gcc2 internal prototype to avoid an error.  */
5684 #ifdef __cplusplus
5685 extern "C"
5686 #endif
5687 /* We use char because int might match the return type of a gcc2
5688    builtin and then its argument prototype would still apply.  */
5689 char opendir ();
5690 int
5691 main ()
5692 {
5693 opendir ();
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700   (eval $ac_link) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -s conftest$ac_exeext'
5705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706   (eval $ac_try) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; }; then
5710   ac_cv_search_opendir="none required"
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 fi
5716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5717 if test "$ac_cv_search_opendir" = no; then
5718   for ac_lib in dir; do
5719     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5720     cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5722 /* confdefs.h.  */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h.  */
5727
5728 /* Override any gcc2 internal prototype to avoid an error.  */
5729 #ifdef __cplusplus
5730 extern "C"
5731 #endif
5732 /* We use char because int might match the return type of a gcc2
5733    builtin and then its argument prototype would still apply.  */
5734 char opendir ();
5735 int
5736 main ()
5737 {
5738 opendir ();
5739   ;
5740   return 0;
5741 }
5742 _ACEOF
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745   (eval $ac_link) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); } &&
5749          { ac_try='test -s conftest$ac_exeext'
5750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751   (eval $ac_try) 2>&5
5752   ac_status=$?
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); }; }; then
5755   ac_cv_search_opendir="-l$ac_lib"
5756 break
5757 else
5758   echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 fi
5762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5763   done
5764 fi
5765 LIBS=$ac_func_search_save_LIBS
5766 fi
5767 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5768 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5769 if test "$ac_cv_search_opendir" != no; then
5770   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5771
5772 fi
5773
5774 else
5775   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5777 if test "${ac_cv_search_opendir+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   ac_func_search_save_LIBS=$LIBS
5781 ac_cv_search_opendir=no
5782 cat >conftest.$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5784 /* confdefs.h.  */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h.  */
5789
5790 /* Override any gcc2 internal prototype to avoid an error.  */
5791 #ifdef __cplusplus
5792 extern "C"
5793 #endif
5794 /* We use char because int might match the return type of a gcc2
5795    builtin and then its argument prototype would still apply.  */
5796 char opendir ();
5797 int
5798 main ()
5799 {
5800 opendir ();
5801   ;
5802   return 0;
5803 }
5804 _ACEOF
5805 rm -f conftest.$ac_objext conftest$ac_exeext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807   (eval $ac_link) 2>&5
5808   ac_status=$?
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -s conftest$ac_exeext'
5812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813   (eval $ac_try) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; }; then
5817   ac_cv_search_opendir="none required"
5818 else
5819   echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 fi
5823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5824 if test "$ac_cv_search_opendir" = no; then
5825   for ac_lib in x; do
5826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5827     cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 /* confdefs.h.  */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h.  */
5834
5835 /* Override any gcc2 internal prototype to avoid an error.  */
5836 #ifdef __cplusplus
5837 extern "C"
5838 #endif
5839 /* We use char because int might match the return type of a gcc2
5840    builtin and then its argument prototype would still apply.  */
5841 char opendir ();
5842 int
5843 main ()
5844 {
5845 opendir ();
5846   ;
5847   return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext conftest$ac_exeext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852   (eval $ac_link) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -s conftest$ac_exeext'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; }; then
5862   ac_cv_search_opendir="-l$ac_lib"
5863 break
5864 else
5865   echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 fi
5869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5870   done
5871 fi
5872 LIBS=$ac_func_search_save_LIBS
5873 fi
5874 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5875 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5876 if test "$ac_cv_search_opendir" != no; then
5877   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5878
5879 fi
5880
5881 fi
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5893 do
5894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5895 echo "$as_me:$LINENO: checking for $ac_func" >&5
5896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5897 if eval "test \"\${$as_ac_var+set}\" = set"; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   cat >conftest.$ac_ext <<_ACEOF
5901 #line $LINENO "configure"
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907 /* System header to define __stub macros and hopefully few prototypes,
5908     which can conflict with char $ac_func (); below.
5909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5910     <limits.h> exists even on freestanding compilers.  */
5911 #ifdef __STDC__
5912 # include <limits.h>
5913 #else
5914 # include <assert.h>
5915 #endif
5916 /* Override any gcc2 internal prototype to avoid an error.  */
5917 #ifdef __cplusplus
5918 extern "C"
5919 {
5920 #endif
5921 /* We use char because int might match the return type of a gcc2
5922    builtin and then its argument prototype would still apply.  */
5923 char $ac_func ();
5924 /* The GNU C library defines this for functions which it implements
5925     to always fail with ENOSYS.  Some functions are actually named
5926     something starting with __ and the normal name is an alias.  */
5927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5928 choke me
5929 #else
5930 char (*f) () = $ac_func;
5931 #endif
5932 #ifdef __cplusplus
5933 }
5934 #endif
5935
5936 int
5937 main ()
5938 {
5939 return f != $ac_func;
5940   ;
5941   return 0;
5942 }
5943 _ACEOF
5944 rm -f conftest.$ac_objext conftest$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946   (eval $ac_link) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); } &&
5950          { ac_try='test -s conftest$ac_exeext'
5951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952   (eval $ac_try) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); }; }; then
5956   eval "$as_ac_var=yes"
5957 else
5958   echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 eval "$as_ac_var=no"
5962 fi
5963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5964 fi
5965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5967 if test `eval echo '${'$as_ac_var'}'` = yes; then
5968   cat >>confdefs.h <<_ACEOF
5969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5970 _ACEOF
5971
5972 fi
5973 done
5974
5975
5976 for ac_func in nanosleep
5977 do
5978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979 echo "$as_me:$LINENO: checking for $ac_func" >&5
5980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5981 if eval "test \"\${$as_ac_var+set}\" = set"; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   cat >conftest.$ac_ext <<_ACEOF
5985 #line $LINENO "configure"
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 /* System header to define __stub macros and hopefully few prototypes,
5992     which can conflict with char $ac_func (); below.
5993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994     <limits.h> exists even on freestanding compilers.  */
5995 #ifdef __STDC__
5996 # include <limits.h>
5997 #else
5998 # include <assert.h>
5999 #endif
6000 /* Override any gcc2 internal prototype to avoid an error.  */
6001 #ifdef __cplusplus
6002 extern "C"
6003 {
6004 #endif
6005 /* We use char because int might match the return type of a gcc2
6006    builtin and then its argument prototype would still apply.  */
6007 char $ac_func ();
6008 /* The GNU C library defines this for functions which it implements
6009     to always fail with ENOSYS.  Some functions are actually named
6010     something starting with __ and the normal name is an alias.  */
6011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 choke me
6013 #else
6014 char (*f) () = $ac_func;
6015 #endif
6016 #ifdef __cplusplus
6017 }
6018 #endif
6019
6020 int
6021 main ()
6022 {
6023 return f != $ac_func;
6024   ;
6025   return 0;
6026 }
6027 _ACEOF
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030   (eval $ac_link) 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); } &&
6034          { ac_try='test -s conftest$ac_exeext'
6035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036   (eval $ac_try) 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; }; then
6040   eval "$as_ac_var=yes"
6041 else
6042   echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6044
6045 eval "$as_ac_var=no"
6046 fi
6047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6048 fi
6049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6051 if test `eval echo '${'$as_ac_var'}'` = yes; then
6052   cat >>confdefs.h <<_ACEOF
6053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6054 _ACEOF
6055
6056 fi
6057 done
6058
6059
6060
6061 for ac_header in varargs.h
6062 do
6063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065   echo "$as_me:$LINENO: checking for $ac_header" >&5
6066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 fi
6070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6072 else
6073   # Is the header compilable?
6074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6076 cat >conftest.$ac_ext <<_ACEOF
6077 #line $LINENO "configure"
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 $ac_includes_default
6084 #include <$ac_header>
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088   (eval $ac_compile) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } &&
6092          { ac_try='test -s conftest.$ac_objext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_header_compiler=yes
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_header_compiler=no
6104 fi
6105 rm -f conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6107 echo "${ECHO_T}$ac_header_compiler" >&6
6108
6109 # Is the header present?
6110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6112 cat >conftest.$ac_ext <<_ACEOF
6113 #line $LINENO "configure"
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119 #include <$ac_header>
6120 _ACEOF
6121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } >/dev/null; then
6129   if test -s conftest.err; then
6130     ac_cpp_err=$ac_c_preproc_warn_flag
6131   else
6132     ac_cpp_err=
6133   fi
6134 else
6135   ac_cpp_err=yes
6136 fi
6137 if test -z "$ac_cpp_err"; then
6138   ac_header_preproc=yes
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143   ac_header_preproc=no
6144 fi
6145 rm -f conftest.err conftest.$ac_ext
6146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6147 echo "${ECHO_T}$ac_header_preproc" >&6
6148
6149 # So?  What about this header?
6150 case $ac_header_compiler:$ac_header_preproc in
6151   yes:no )
6152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6156     (
6157       cat <<\_ASBOX
6158 ## ------------------------------------ ##
6159 ## Report this to bug-autoconf@gnu.org. ##
6160 ## ------------------------------------ ##
6161 _ASBOX
6162     ) |
6163       sed "s/^/$as_me: WARNING:     /" >&2
6164     ;;
6165   no:yes )
6166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6168     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6172     (
6173       cat <<\_ASBOX
6174 ## ------------------------------------ ##
6175 ## Report this to bug-autoconf@gnu.org. ##
6176 ## ------------------------------------ ##
6177 _ASBOX
6178     ) |
6179       sed "s/^/$as_me: WARNING:     /" >&2
6180     ;;
6181 esac
6182 echo "$as_me:$LINENO: checking for $ac_header" >&5
6183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   eval "$as_ac_Header=$ac_header_preproc"
6188 fi
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6191
6192 fi
6193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6194   cat >>confdefs.h <<_ACEOF
6195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6196 _ACEOF
6197
6198 fi
6199
6200 done
6201
6202
6203 # End of readline stuff
6204 # -----------------------------------------------------------------------
6205
6206
6207 # ---------------------------------------------------
6208 # Check for GMP support/directory
6209 # ---------------------------------------------------
6210 #GMP_SRC=
6211 #local_gmp="no"
6212 #AC_ARG_WITH(gmp,
6213 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6214 #  [
6215 #     case "$with_gmp" in
6216 #     no) : ;;
6217 #     yes|*)
6218 #       if test "$with_gmp" != "yes"; then
6219 #         GMP_INC="-I$with_gmp"
6220 #         GMP_LIBS="-lgmp"
6221 #         GMP_LDFLAGS="-L$with_gmp"
6222 #       else
6223 #          with_gmp="/usr/include"
6224 #       fi
6225 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6226 #          [ AC_MSG_RESULT(yes)
6227 #            AC_DEFINE(HAVE_GMP)
6228 #            GMP_LIBS="-lgmp"
6229 #            got_gmp="yes"
6230 #          ],
6231 #          [ AC_MSG_ERROR([*** gmp library missing])
6232 #          ]
6233 #       )
6234 #       ;;
6235 #     esac
6236 #  ],[
6237 #    # check for standard gmp library
6238 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6239 #    [ AC_MSG_RESULT(yes)
6240 #      AC_DEFINE(HAVE_GMP)
6241 #      got_gmp="yes"
6242 #      GMP_INC=
6243 #      GMP_LIBS="-lgmp"
6244 #    ], [
6245 #      # Did not find standard library, so use our own
6246 #      AC_MSG_RESULT(yes)
6247 #      AC_DEFINE(HAVE_GMP)
6248 #      got_gmp="yes"
6249 #      local_gmp="yes"
6250 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6251 #      GMP_LIBS="-lgmp"
6252 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6253 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6254 #    ])
6255 #  ]
6256 #)
6257 #AC_SUBST(GMP_INC)
6258 #AC_SUBST(GMP_LIBS)
6259 #AC_SUBST(GMP_LDFLAGS)
6260 #AC_SUBST(GMP_SRC)
6261
6262 # End of GMP stuff
6263 # -----------------------------------------------------------------------
6264
6265
6266 # ---------------------------------------------------
6267 # Check for CWEB support/directory
6268 # ---------------------------------------------------
6269 #CWEB_SRC=
6270 #CWEB=/bin
6271 #local_cweb="no"
6272 #AC_ARG_WITH(cweb,
6273 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6274 #  [
6275 #     case "$with_cweb" in
6276 #     no) : ;;
6277 #     yes|*)
6278 #       if test "$with_cweb" != "yes"; then
6279 #         CWEB_INC="-I$with_cweb"
6280 #         CWEB_LIBS="-lcweb"
6281 #         CWEB_LDFLAGS="-L$with_cweb"
6282 #       else
6283 #          with_cweb="/usr/include"
6284 #       fi
6285 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6286 #          [ AC_MSG_RESULT(yes)
6287 #            AC_DEFINE(HAVE_CWEB)
6288 #            CWEB_LIBS="-lcweb"
6289 #            got_cweb="yes"
6290 #          ],
6291 #          [ AC_MSG_ERROR([*** cweb library missing])
6292 #          ]
6293 #       )
6294 #       ;;
6295 #     esac
6296 #  ],[
6297 #    # check for standard cweb library
6298 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6299 #    [ AC_MSG_RESULT(yes)
6300 #      AC_DEFINE(HAVE_CWEB)
6301 #      got_cweb="yes"
6302 #      CWEB_INC=
6303 #      CWEB_LIBS="-lcweb"
6304 #    ], [
6305 #      # Did not find starndard library, so use our own
6306 #      AC_MSG_RESULT(yes)
6307 #      AC_DEFINE(HAVE_CWEB)
6308 #      got_cweb="yes"
6309 #      local_cweb="yes"
6310 #      CWEB=${TOP_DIR}/depkgs/cweb
6311 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6312 #      CWEB_LIBS="-lcweb"
6313 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6314 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6315 #    ])
6316 #  ]
6317 #)
6318 #AC_SUBST(CWEB)
6319 #AC_SUBST(CWEB_INC)
6320 #AC_SUBST(CWEB_LIBS)
6321 #AC_SUBST(CWEB_LDFLAGS)
6322 #AC_SUBST(CWEB_SRC)
6323
6324 # End of CWEB stuff
6325 # -----------------------------------------------------------------------
6326
6327
6328
6329 # -----------------------------------------------------------
6330 # Check whether user wants TCP wrappers support (default off)
6331 # -----------------------------------------------------------
6332 TCPW_MSG="no"
6333
6334 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6335 if test "${with_tcp_wrappers+set}" = set; then
6336   withval="$with_tcp_wrappers"
6337
6338     if test "x$withval" != "xno" ; then
6339        saved_LIBS="$LIBS"
6340        LIBS="$saved_LIBS -lwrap"
6341        echo "$as_me:$LINENO: checking for libwrap" >&5
6342 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6343        cat >conftest.$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6345 /* confdefs.h.  */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h.  */
6350  #include <tcpd.h>
6351              int deny_severity = 0;
6352              int allow_severity = 0;
6353              struct request_info *req;
6354 int
6355 main ()
6356 {
6357  hosts_access(req);
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364   (eval $ac_link) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } &&
6368          { ac_try='test -s conftest$ac_exeext'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; }; then
6374
6375             echo "$as_me:$LINENO: result: yes" >&5
6376 echo "${ECHO_T}yes" >&6
6377             cat >>confdefs.h <<\_ACEOF
6378 #define HAVE_LIBWRAP 1
6379 _ACEOF
6380
6381             TCPW_MSG="yes"
6382
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387
6388             LIBS="$saved_LIBS -lwrap -lnsl"
6389             cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396  #include <tcpd.h>
6397                  int deny_severity = 0;
6398                  int allow_severity = 0;
6399                  struct request_info *req;
6400 int
6401 main ()
6402 {
6403  hosts_access(req);
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410   (eval $ac_link) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } &&
6414          { ac_try='test -s conftest$ac_exeext'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; }; then
6420
6421                  echo "$as_me:$LINENO: result: yes" >&5
6422 echo "${ECHO_T}yes" >&6
6423                  cat >>confdefs.h <<\_ACEOF
6424 #define HAVE_LIBWRAP 1
6425 _ACEOF
6426
6427                  TCPW_MSG="yes"
6428
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6434 echo "$as_me: error: *** libwrap missing" >&2;}
6435    { (exit 1); exit 1; }; }
6436
6437 fi
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439
6440 fi
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442     fi
6443
6444
6445 fi;
6446
6447 # ------------------------------------------
6448 # Where to place working dir
6449 # ------------------------------------------
6450 working_dir=`eval echo ${sysconfdir}/working`
6451
6452 # Check whether --with-working-dir or --without-working-dir was given.
6453 if test "${with_working_dir+set}" = set; then
6454   withval="$with_working_dir"
6455
6456        if test "x$withval" != "xno" ; then
6457               working_dir=$withval
6458        fi
6459
6460
6461 fi;
6462
6463
6464
6465
6466 # ------------------------------------------
6467 # Where to place scriptdir (script files)
6468 # ------------------------------------------
6469 scriptdir=`eval echo ${sysconfdir}`
6470
6471 # Check whether --with-scriptdir or --without-scriptdir was given.
6472 if test "${with_scriptdir+set}" = set; then
6473   withval="$with_scriptdir"
6474
6475        if test "x$withval" != "xno" ; then
6476               scriptdir=$withval
6477        fi
6478
6479
6480 fi;
6481
6482
6483
6484
6485 # ------------------------------------------
6486 # Where to send dump email
6487 # ------------------------------------------
6488 dump_email=root@localhost
6489
6490 # Check whether --with-dump-email or --without-dump-email was given.
6491 if test "${with_dump_email+set}" = set; then
6492   withval="$with_dump_email"
6493
6494        if test "x$withval" != "xno" ; then
6495               dump_email=$withval
6496        fi
6497
6498
6499 fi;
6500
6501
6502
6503 # ------------------------------------------
6504 # Where to send job email
6505 # ------------------------------------------
6506 job_email=root@localhost
6507
6508 # Check whether --with-job-email or --without-job-email was given.
6509 if test "${with_job_email+set}" = set; then
6510   withval="$with_job_email"
6511
6512        if test "x$withval" != "xno" ; then
6513               job_email=$withval
6514        fi
6515
6516
6517 fi;
6518
6519
6520
6521 # ------------------------------------------
6522 # Where to find smtp host
6523 # ------------------------------------------
6524 smtp_host=localhost
6525
6526 # Check whether --with-smtp_host or --without-smtp_host was given.
6527 if test "${with_smtp_host+set}" = set; then
6528   withval="$with_smtp_host"
6529
6530        if test "x$withval" != "xno" ; then
6531               smtp_host=$withval
6532        fi
6533
6534
6535 fi;
6536
6537
6538
6539
6540 # ------------------------------------
6541 # Where to place pid files
6542 # ------------------------------------
6543 piddir=/var/run
6544
6545 # Check whether --with-pid-dir or --without-pid-dir was given.
6546 if test "${with_pid_dir+set}" = set; then
6547   withval="$with_pid_dir"
6548
6549         if test "x$withval" != "xno" ; then
6550             piddir=$withval
6551         fi
6552
6553
6554 fi;
6555
6556 cat >>confdefs.h <<_ACEOF
6557 #define _PATH_BACULA_PIDDIR "$piddir"
6558 _ACEOF
6559
6560
6561
6562
6563 # ------------------------------------
6564 # Where to place subsys "lock file"
6565 # ------------------------------------
6566 subsysdir=/var/run/subsys
6567
6568 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6569 if test "${with_subsys_dir+set}" = set; then
6570   withval="$with_subsys_dir"
6571
6572         if test "x$withval" != "xno" ; then
6573             subsysdir=$withval
6574         fi
6575
6576
6577 fi;
6578
6579
6580
6581
6582
6583 # ------------------------------------
6584 # Where to start assigning ports
6585 # ------------------------------------
6586 baseport=9101
6587
6588 # Check whether --with-baseport or --without-baseport was given.
6589 if test "${with_baseport+set}" = set; then
6590   withval="$with_baseport"
6591
6592         if test "x$withval" != "xno" ; then
6593              baseport=$withval
6594         fi
6595
6596
6597 fi;
6598
6599
6600 dir_port=`expr $baseport`
6601 fd_port=`expr $baseport + 1`
6602 sd_port=`expr $fd_port + 1`
6603
6604
6605
6606
6607
6608
6609 # ------------------------------------------
6610 # Generate passwords
6611 # ------------------------------------------
6612 dir_password=
6613
6614 # Check whether --with-dir-password or --without-dir-password was given.
6615 if test "${with_dir_password+set}" = set; then
6616   withval="$with_dir_password"
6617
6618        if test "x$withval" != "xno" ; then
6619            dir_password=$withval
6620        fi
6621
6622
6623 fi;
6624
6625 if test "x$dir_password" = "x" ; then
6626    if test "x$OPENSSL" = "xnone" ; then
6627 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6628       key=`autoconf/randpass 33`
6629    else
6630       key=`openssl rand -base64 33`
6631    fi
6632    dir_password=$key
6633 fi
6634
6635 fd_password=
6636
6637 # Check whether --with-fd-password or --without-fd-password was given.
6638 if test "${with_fd_password+set}" = set; then
6639   withval="$with_fd_password"
6640
6641        if test "x$withval" != "xno" ; then
6642            fd_password=$withval
6643        fi
6644
6645
6646 fi;
6647
6648 if test "x$fd_password" = "x" ; then
6649    if test "x$OPENSSL" = "xnone" ; then
6650 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6651       key=`autoconf/randpass 37`
6652    else
6653       key=`openssl rand -base64 33`
6654    fi
6655    fd_password=$key
6656 fi
6657
6658 sd_password=
6659
6660 # Check whether --with-sd-password or --without-sd-password was given.
6661 if test "${with_sd_password+set}" = set; then
6662   withval="$with_sd_password"
6663
6664        if test "x$withval" != "xno" ; then
6665            sd_password=$withval
6666        fi
6667
6668
6669 fi;
6670
6671 if test "x$sd_password" = "x" ; then
6672    if test "x$OPENSSL" = "xnone" ; then
6673 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6674       key=`autoconf/randpass 41`
6675    else
6676       key=`openssl rand -base64 33`
6677    fi
6678    sd_password=$key
6679 fi
6680
6681
6682
6683
6684
6685
6686
6687 #
6688 # Handle users and groups for each daemon
6689 #
6690 dir_user=
6691
6692 # Check whether --with-dir_user or --without-dir_user was given.
6693 if test "${with_dir_user+set}" = set; then
6694   withval="$with_dir_user"
6695
6696         if test "x$withval" != "x" ; then
6697              dir_user=$withval
6698         fi
6699
6700
6701 fi;
6702
6703 dir_group=
6704
6705 # Check whether --with-dir_group or --without-dir_group was given.
6706 if test "${with_dir_group+set}" = set; then
6707   withval="$with_dir_group"
6708
6709         if test "x$withval" != "x" ; then
6710              dir_group=$withval
6711         fi
6712
6713
6714 fi;
6715
6716 sd_user=
6717
6718 # Check whether --with-sd_user or --without-sd_user was given.
6719 if test "${with_sd_user+set}" = set; then
6720   withval="$with_sd_user"
6721
6722         if test "x$withval" != "x" ; then
6723              sd_user=$withval
6724         fi
6725
6726
6727 fi;
6728
6729 sd_group=
6730
6731 # Check whether --with-sd_group or --without-sd_group was given.
6732 if test "${with_sd_group+set}" = set; then
6733   withval="$with_sd_group"
6734
6735         if test "x$withval" != "x" ; then
6736              sd_group=$withval
6737         fi
6738
6739
6740 fi;
6741
6742 fd_user=
6743
6744 # Check whether --with-fd_user or --without-fd_user was given.
6745 if test "${with_fd_user+set}" = set; then
6746   withval="$with_fd_user"
6747
6748         if test "x$withval" != "x" ; then
6749              fd_user=$withval
6750         fi
6751
6752
6753 fi;
6754
6755 fd_group=
6756
6757 # Check whether --with-fd_group or --without-fd_group was given.
6758 if test "${with_fd_group+set}" = set; then
6759   withval="$with_fd_group"
6760
6761         if test "x$withval" != "x" ; then
6762              fd_group=$withval
6763         fi
6764
6765
6766 fi;
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778 # ------------------------------------------------
6779 # Bacula check for various SQL database engines
6780 # ------------------------------------------------
6781
6782 db_found=no
6783 echo "$as_me:$LINENO: checking for MySQL support" >&5
6784 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6785
6786 # Check whether --with-mysql or --without-mysql was given.
6787 if test "${with_mysql+set}" = set; then
6788   withval="$with_mysql"
6789
6790   if test "$withval" != "no"; then
6791         if test "$withval" = "yes"; then
6792                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6793                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6794                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6795                         MYSQL_BINDIR=/usr/local/mysql/bin
6796                 elif test -f /usr/include/mysql/mysql.h; then
6797                         MYSQL_INCDIR=/usr/include/mysql
6798                         MYSQL_LIBDIR=/usr/lib/mysql
6799                         MYSQL_BINDIR=/usr/bin
6800                 elif test -f /usr/include/mysql.h; then
6801                         MYSQL_INCDIR=/usr/include
6802                         MYSQL_LIBDIR=/usr/lib
6803                         MYSQL_BINDIR=/usr/bin
6804                 elif test -f /usr/local/include/mysql/mysql.h; then
6805                         MYSQL_INCDIR=/usr/local/include/mysql
6806                         MYSQL_LIBDIR=/usr/local/lib/mysql
6807                         MYSQL_BINDIR=/usr/local/bin
6808                 elif test -f /usr/local/include/mysql.h; then
6809                         MYSQL_INCDIR=/usr/local/include
6810                         MYSQL_LIBDIR=/usr/local/lib
6811                         MYSQL_BINDIR=/usr/local/bin
6812                 else
6813                    echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6
6815                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6816 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6817    { (exit 1); exit 1; }; }
6818                 fi
6819         else
6820                 if test -f $withval/include/mysql/mysql.h; then
6821                         MYSQL_INCDIR=$withval/include/mysql
6822                         MYSQL_LIBDIR=$withval/lib/mysql
6823                         MYSQL_BINDIR=$withval/bin
6824                 elif test -f $withval/include/mysql.h; then
6825                         MYSQL_INCDIR=$withval/include
6826                         MYSQL_LIBDIR=$withval/lib
6827                         MYSQL_BINDIR=$withval/bin
6828                 else
6829                    echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6
6831                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6832 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6833    { (exit 1); exit 1; }; }
6834                 fi
6835         fi
6836     SQL_INCLUDE=-I$MYSQL_INCDIR
6837     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
6838     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6839        cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_THREAD_SAFE_MYSQL 1
6841 _ACEOF
6842
6843     else
6844        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
6845     fi
6846     SQL_BINDIR=$MYSQL_BINDIR
6847
6848     cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_MYSQL 1
6850 _ACEOF
6851
6852     echo "$as_me:$LINENO: result: yes" >&5
6853 echo "${ECHO_T}yes" >&6
6854     db_found=yes
6855     support_mysql=yes
6856     db_name=MySQL
6857     DB_NAME=mysql
6858
6859   else
6860         echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6
6862   fi
6863
6864 else
6865
6866     echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6
6868
6869 fi;
6870
6871
6872 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6873 if test "${with_embedded_mysql+set}" = set; then
6874   withval="$with_embedded_mysql"
6875
6876   if test "$withval" != "no"; then
6877         if test "$withval" = "yes"; then
6878                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6879                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
6880                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6881                         MYSQL_BINDIR=/usr/local/mysql/bin
6882                 elif test -f /usr/include/mysql/mysql.h; then
6883                         MYSQL_INCDIR=/usr/include/mysql
6884                         MYSQL_LIBDIR=/usr/lib/mysql
6885                         MYSQL_BINDIR=/usr/bin
6886                 elif test -f /usr/include/mysql.h; then
6887                         MYSQL_INCDIR=/usr/include
6888                         MYSQL_LIBDIR=/usr/lib
6889                         MYSQL_BINDIR=/usr/bin
6890                 elif test -f /usr/local/include/mysql/mysql.h; then
6891                         MYSQL_INCDIR=/usr/local/include/mysql
6892                         MYSQL_LIBDIR=/usr/local/lib/mysql
6893                         MYSQL_BINDIR=/usr/local/bin
6894                 elif test -f /usr/local/include/mysql.h; then
6895                         MYSQL_INCDIR=/usr/local/include
6896                         MYSQL_LIBDIR=/usr/local/lib
6897                         MYSQL_BINDIR=/usr/local/bin
6898                 else
6899                    echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6
6901                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6902 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6903    { (exit 1); exit 1; }; }
6904                 fi
6905         else
6906                 if test -f $withval/include/mysql/mysql.h; then
6907                         MYSQL_INCDIR=$withval/include/mysql
6908                         MYSQL_LIBDIR=$withval/lib/mysql
6909                         MYSQL_BINDIR=$withval/bin
6910                 elif test -f $withval/include/mysql.h; then
6911                         MYSQL_INCDIR=$withval/include
6912                         MYSQL_LIBDIR=$withval/lib
6913                         MYSQL_BINDIR=$withval/bin
6914                 else
6915                    echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6
6917                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6918 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6919    { (exit 1); exit 1; }; }
6920                 fi
6921         fi
6922     SQL_INCLUDE=-I$MYSQL_INCDIR
6923     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6924     SQL_BINDIR=$MYSQL_BINDIR
6925
6926     cat >>confdefs.h <<\_ACEOF
6927 #define HAVE_MYSQL 1
6928 _ACEOF
6929
6930     cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_EMBEDDED_MYSQL 1
6932 _ACEOF
6933
6934     echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6936     db_found=yes
6937     support_mysql=yes
6938     db_name=MySQL
6939     DB_NAME=mysql
6940
6941   else
6942         echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6
6944   fi
6945
6946 else
6947
6948   echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6950
6951 fi;
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961 # ------------------------------------------------
6962 # Bacula check for various SQL database engines
6963 # ------------------------------------------------
6964
6965 db_found=no
6966 echo "$as_me:$LINENO: checking for SQLite support" >&5
6967 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6968
6969 # Check whether --with-sqlite or --without-sqlite was given.
6970 if test "${with_sqlite+set}" = set; then
6971   withval="$with_sqlite"
6972
6973   if test "$withval" != "no"; then
6974         if test "$withval" = "yes"; then
6975                 if test -f /usr/local/include/sqlite.h; then
6976                         SQLITE_INCDIR=/usr/local/include
6977                         SQLITE_LIBDIR=/usr/local/lib
6978                         SQLITE_BINDIR=/usr/local/bin
6979                 elif test -f /usr/include/sqlite.h; then
6980                         SQLITE_INCDIR=/usr/include
6981                         SQLITE_LIBDIR=/usr/lib
6982                         SQLITE_BINDIR=/usr/bin
6983                 else
6984                    echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6986                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6987 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6988    { (exit 1); exit 1; }; }
6989                 fi
6990         else
6991                 if test -f $withval/sqlite.h; then
6992                         SQLITE_INCDIR=$withval
6993                         SQLITE_LIBDIR=$withval
6994                         SQLITE_BINDIR=$withval
6995                 else
6996                    echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6999 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7000    { (exit 1); exit 1; }; }
7001                 fi
7002         fi
7003     SQL_INCLUDE=-I$SQLITE_INCDIR
7004     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7005     SQL_BINDIR=$SQLITE_BINDIR
7006
7007     cat >>confdefs.h <<\_ACEOF
7008 #define HAVE_SQLITE 1
7009 _ACEOF
7010
7011     echo "$as_me:$LINENO: result: yes" >&5
7012 echo "${ECHO_T}yes" >&6
7013     db_found=yes
7014     support_sqlite=yes
7015     db_name=SQLite
7016     DB_NAME=sqlite
7017
7018   else
7019         echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6
7021   fi
7022
7023 else
7024
7025   echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7027
7028 fi;
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038 cat >>confdefs.h <<\_ACEOF
7039 #define PROTOTYPES 1
7040 _ACEOF
7041
7042
7043 if test -z "$CFLAGS"; then
7044     if test -z "$CCOPTS"; then
7045         CCOPTS='-g -O2'
7046     fi
7047     CFLAGS="$CCOPTS"
7048 fi
7049
7050
7051
7052
7053 largefile_support="no"
7054
7055    # Check whether --enable-largefile or --disable-largefile was given.
7056 if test "${enable_largefile+set}" = set; then
7057   enableval="$enable_largefile"
7058
7059 fi;
7060    if test "$enable_largefile" != no; then
7061      if test -n "$ac_tool_prefix"; then
7062   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7064 echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066 if test "${ac_cv_prog_GETCONF+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   if test -n "$GETCONF"; then
7070   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075   IFS=$as_save_IFS
7076   test -z "$as_dir" && as_dir=.
7077   for ac_exec_ext in '' $ac_executable_extensions; do
7078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081     break 2
7082   fi
7083 done
7084 done
7085
7086 fi
7087 fi
7088 GETCONF=$ac_cv_prog_GETCONF
7089 if test -n "$GETCONF"; then
7090   echo "$as_me:$LINENO: result: $GETCONF" >&5
7091 echo "${ECHO_T}$GETCONF" >&6
7092 else
7093   echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7095 fi
7096
7097 fi
7098 if test -z "$ac_cv_prog_GETCONF"; then
7099   ac_ct_GETCONF=$GETCONF
7100   # Extract the first word of "getconf", so it can be a program name with args.
7101 set dummy getconf; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   if test -n "$ac_ct_GETCONF"; then
7108   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115   for ac_exec_ext in '' $ac_executable_extensions; do
7116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117     ac_cv_prog_ac_ct_GETCONF="getconf"
7118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122 done
7123
7124 fi
7125 fi
7126 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7127 if test -n "$ac_ct_GETCONF"; then
7128   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7129 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7130 else
7131   echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7133 fi
7134
7135   GETCONF=$ac_ct_GETCONF
7136 else
7137   GETCONF="$ac_cv_prog_GETCONF"
7138 fi
7139
7140      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7141 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7142 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7146         ac_cv_sys_largefile_CFLAGS=no
7147         case "$host_os" in
7148            # IRIX 6.2 and later require cc -n32.
7149            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7150              if test "$GCC" != yes; then
7151                ac_cv_sys_largefile_CFLAGS=-n32
7152              fi
7153              ac_save_CC="$CC"
7154              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7155              cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 /* confdefs.h.  */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h.  */
7162
7163 int
7164 main ()
7165 {
7166
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173   (eval $ac_link) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } &&
7177          { ac_try='test -s conftest$ac_exeext'
7178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179   (eval $ac_try) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; }; then
7183   :
7184 else
7185   echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7187
7188 ac_cv_sys_largefile_CFLAGS=no
7189 fi
7190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7191              CC="$ac_save_CC"
7192            esac
7193       }
7194 fi
7195 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7196 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7197      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7198 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7199 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7200   echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7203         ac_cv_sys_largefile_LDFLAGS=no
7204
7205       }
7206 fi
7207 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7208 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7209      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7210 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7211 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7215         ac_cv_sys_largefile_LIBS=no
7216
7217       }
7218 fi
7219 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7220 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7221
7222      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7223        case "$ac_flag" in
7224        no) ;;
7225        -D_FILE_OFFSET_BITS=*) ;;
7226        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7227        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7228        -D?* | -I?*)
7229          case "$ac_flag" in
7230    no) ;;
7231    ?*)
7232      case "$CPPFLAGS" in
7233      '') CPPFLAGS="$ac_flag" ;;
7234      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7235      esac ;;
7236    esac ;;
7237        *)
7238          case "$ac_flag" in
7239    no) ;;
7240    ?*)
7241      case "$CFLAGS" in
7242      '') CFLAGS="$ac_flag" ;;
7243      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7244      esac ;;
7245    esac ;;
7246        esac
7247      done
7248      case "$ac_cv_sys_largefile_LDFLAGS" in
7249    no) ;;
7250    ?*)
7251      case "$LDFLAGS" in
7252      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7253      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7254      esac ;;
7255    esac
7256      case "$ac_cv_sys_largefile_LIBS" in
7257    no) ;;
7258    ?*)
7259      case "$LIBS" in
7260      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7261      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7262      esac ;;
7263    esac
7264      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7265 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7266 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   ac_cv_sys_file_offset_bits=no
7270       case "$host_os" in
7271         # HP-UX 10.20 and later
7272         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7273           ac_cv_sys_file_offset_bits=64 ;;
7274         esac
7275       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7276         case "$ac_flag" in
7277         -D_FILE_OFFSET_BITS)
7278           ac_cv_sys_file_offset_bits=1 ;;
7279         -D_FILE_OFFSET_BITS=*)
7280           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7281         esac
7282       done
7283
7284 fi
7285 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7286 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7287    if test "$ac_cv_sys_file_offset_bits" != no; then
7288
7289 cat >>confdefs.h <<_ACEOF
7290 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7291 _ACEOF
7292
7293    fi
7294      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7295 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7296 if test "${ac_cv_sys_largefile_source+set}" = set; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   ac_cv_sys_largefile_source=no
7300       case "$host_os" in
7301         # HP-UX 10.20 and later
7302         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7303           ac_cv_sys_largefile_source=1 ;;
7304         esac
7305       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7306         case "$ac_flag" in
7307         -D_LARGEFILE_SOURCE)
7308           ac_cv_sys_largefile_source=1 ;;
7309         -D_LARGEFILE_SOURCE=*)
7310           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7311         esac
7312       done
7313
7314 fi
7315 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7316 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7317    if test "$ac_cv_sys_largefile_source" != no; then
7318
7319 cat >>confdefs.h <<_ACEOF
7320 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7321 _ACEOF
7322
7323    fi
7324      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7325 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7326 if test "${ac_cv_sys_large_files+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   ac_cv_sys_large_files=no
7330       case "$host_os" in
7331         # AIX 4.2 and later
7332         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7333           ac_cv_sys_large_files=1 ;;
7334         esac
7335       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7336         case "$ac_flag" in
7337         -D_LARGE_FILES)
7338           ac_cv_sys_large_files=1 ;;
7339         -D_LARGE_FILES=*)
7340           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7341         esac
7342       done
7343
7344 fi
7345 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7346 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7347    if test "$ac_cv_sys_large_files" != no; then
7348
7349 cat >>confdefs.h <<_ACEOF
7350 #define _LARGE_FILES $ac_cv_sys_large_files
7351 _ACEOF
7352
7353    fi
7354    fi
7355
7356
7357
7358 echo "$as_me:$LINENO: checking for X" >&5
7359 echo $ECHO_N "checking for X... $ECHO_C" >&6
7360
7361
7362 # Check whether --with-x or --without-x was given.
7363 if test "${with_x+set}" = set; then
7364   withval="$with_x"
7365
7366 fi;
7367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7368 if test "x$with_x" = xno; then
7369   # The user explicitly disabled X.
7370   have_x=disabled
7371 else
7372   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7373     # Both variables are already set.
7374     have_x=yes
7375   else
7376     if test "${ac_cv_have_x+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   # One or both of the vars are not set, and there is no cached value.
7380 ac_x_includes=no ac_x_libraries=no
7381 rm -fr conftest.dir
7382 if mkdir conftest.dir; then
7383   cd conftest.dir
7384   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7385   cat >Imakefile <<'_ACEOF'
7386 acfindx:
7387         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7388 _ACEOF
7389   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7390     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7391     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7392     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7393     for ac_extension in a so sl; do
7394       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7395          test -f $ac_im_libdir/libX11.$ac_extension; then
7396         ac_im_usrlibdir=$ac_im_libdir; break
7397       fi
7398     done
7399     # Screen out bogus values from the imake configuration.  They are
7400     # bogus both because they are the default anyway, and because
7401     # using them would break gcc on systems where it needs fixed includes.
7402     case $ac_im_incroot in
7403         /usr/include) ;;
7404         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7405     esac
7406     case $ac_im_usrlibdir in
7407         /usr/lib | /lib) ;;
7408         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7409     esac
7410   fi
7411   cd ..
7412   rm -fr conftest.dir
7413 fi
7414
7415 # Standard set of common directories for X headers.
7416 # Check X11 before X11Rn because it is often a symlink to the current release.
7417 ac_x_header_dirs='
7418 /usr/X11/include
7419 /usr/X11R6/include
7420 /usr/X11R5/include
7421 /usr/X11R4/include
7422
7423 /usr/include/X11
7424 /usr/include/X11R6
7425 /usr/include/X11R5
7426 /usr/include/X11R4
7427
7428 /usr/local/X11/include
7429 /usr/local/X11R6/include
7430 /usr/local/X11R5/include
7431 /usr/local/X11R4/include
7432
7433 /usr/local/include/X11
7434 /usr/local/include/X11R6
7435 /usr/local/include/X11R5
7436 /usr/local/include/X11R4
7437
7438 /usr/X386/include
7439 /usr/x386/include
7440 /usr/XFree86/include/X11
7441
7442 /usr/include
7443 /usr/local/include
7444 /usr/unsupported/include
7445 /usr/athena/include
7446 /usr/local/x11r5/include
7447 /usr/lpp/Xamples/include
7448
7449 /usr/openwin/include
7450 /usr/openwin/share/include'
7451
7452 if test "$ac_x_includes" = no; then
7453   # Guess where to find include files, by looking for Intrinsic.h.
7454   # First, try using that file with no special directory specified.
7455   cat >conftest.$ac_ext <<_ACEOF
7456 #line $LINENO "configure"
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462 #include <X11/Intrinsic.h>
7463 _ACEOF
7464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } >/dev/null; then
7472   if test -s conftest.err; then
7473     ac_cpp_err=$ac_c_preproc_warn_flag
7474   else
7475     ac_cpp_err=
7476   fi
7477 else
7478   ac_cpp_err=yes
7479 fi
7480 if test -z "$ac_cpp_err"; then
7481   # We can compile using X headers with no special include directory.
7482 ac_x_includes=
7483 else
7484   echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487   for ac_dir in $ac_x_header_dirs; do
7488   if test -r "$ac_dir/X11/Intrinsic.h"; then
7489     ac_x_includes=$ac_dir
7490     break
7491   fi
7492 done
7493 fi
7494 rm -f conftest.err conftest.$ac_ext
7495 fi # $ac_x_includes = no
7496
7497 if test "$ac_x_libraries" = no; then
7498   # Check for the libraries.
7499   # See if we find them without any special options.
7500   # Don't add to $LIBS permanently.
7501   ac_save_LIBS=$LIBS
7502   LIBS="-lXt $LIBS"
7503   cat >conftest.$ac_ext <<_ACEOF
7504 #line $LINENO "configure"
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510 #include <X11/Intrinsic.h>
7511 int
7512 main ()
7513 {
7514 XtMalloc (0)
7515   ;
7516   return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521   (eval $ac_link) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); } &&
7525          { ac_try='test -s conftest$ac_exeext'
7526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527   (eval $ac_try) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }; }; then
7531   LIBS=$ac_save_LIBS
7532 # We can link X programs with no special library path.
7533 ac_x_libraries=
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 LIBS=$ac_save_LIBS
7539 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7540 do
7541   # Don't even attempt the hair of trying to link an X program!
7542   for ac_extension in a so sl; do
7543     if test -r $ac_dir/libXt.$ac_extension; then
7544       ac_x_libraries=$ac_dir
7545       break 2
7546     fi
7547   done
7548 done
7549 fi
7550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7551 fi # $ac_x_libraries = no
7552
7553 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7554   # Didn't find X anywhere.  Cache the known absence of X.
7555   ac_cv_have_x="have_x=no"
7556 else
7557   # Record where we found X for the cache.
7558   ac_cv_have_x="have_x=yes \
7559                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7560 fi
7561 fi
7562
7563   fi
7564   eval "$ac_cv_have_x"
7565 fi # $with_x != no
7566
7567 if test "$have_x" != yes; then
7568   echo "$as_me:$LINENO: result: $have_x" >&5
7569 echo "${ECHO_T}$have_x" >&6
7570   no_x=yes
7571 else
7572   # If each of the values was on the command line, it overrides each guess.
7573   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7574   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7575   # Update the cache value to reflect the command line values.
7576   ac_cv_have_x="have_x=yes \
7577                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7578   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7579 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7580 fi
7581
7582 if test "$no_x" = yes; then
7583   # Not all programs may use this symbol, but it does not hurt to define it.
7584
7585 cat >>confdefs.h <<\_ACEOF
7586 #define X_DISPLAY_MISSING 1
7587 _ACEOF
7588
7589   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7590 else
7591   if test -n "$x_includes"; then
7592     X_CFLAGS="$X_CFLAGS -I$x_includes"
7593   fi
7594
7595   # It would also be nice to do this for all -L options, not just this one.
7596   if test -n "$x_libraries"; then
7597     X_LIBS="$X_LIBS -L$x_libraries"
7598     # For Solaris; some versions of Sun CC require a space after -R and
7599     # others require no space.  Words are not sufficient . . . .
7600     case `(uname -sr) 2>/dev/null` in
7601     "SunOS 5"*)
7602       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7603 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7604       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7605       cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612
7613 int
7614 main ()
7615 {
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623   (eval $ac_link) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); } &&
7627          { ac_try='test -s conftest$ac_exeext'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; }; then
7633   ac_R_nospace=yes
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_R_nospace=no
7639 fi
7640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7641       if test $ac_R_nospace = yes; then
7642         echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7644         X_LIBS="$X_LIBS -R$x_libraries"
7645       else
7646         LIBS="$ac_xsave_LIBS -R $x_libraries"
7647         cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7649 /* confdefs.h.  */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h.  */
7654
7655 int
7656 main ()
7657 {
7658
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665   (eval $ac_link) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); } &&
7669          { ac_try='test -s conftest$ac_exeext'
7670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671   (eval $ac_try) 2>&5
7672   ac_status=$?
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); }; }; then
7675   ac_R_space=yes
7676 else
7677   echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7679
7680 ac_R_space=no
7681 fi
7682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683         if test $ac_R_space = yes; then
7684           echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6
7686           X_LIBS="$X_LIBS -R $x_libraries"
7687         else
7688           echo "$as_me:$LINENO: result: neither works" >&5
7689 echo "${ECHO_T}neither works" >&6
7690         fi
7691       fi
7692       LIBS=$ac_xsave_LIBS
7693     esac
7694   fi
7695
7696   # Check for system-dependent libraries X programs must link with.
7697   # Do this before checking for the system-independent R6 libraries
7698   # (-lICE), since we may need -lsocket or whatever for X linking.
7699
7700   if test "$ISC" = yes; then
7701     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7702   else
7703     # Martyn Johnson says this is needed for Ultrix, if the X
7704     # libraries were built with DECnet support.  And Karl Berry says
7705     # the Alpha needs dnet_stub (dnet does not exist).
7706     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7707     cat >conftest.$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714
7715 /* Override any gcc2 internal prototype to avoid an error.  */
7716 #ifdef __cplusplus
7717 extern "C"
7718 #endif
7719 /* We use char because int might match the return type of a gcc2
7720    builtin and then its argument prototype would still apply.  */
7721 char XOpenDisplay ();
7722 int
7723 main ()
7724 {
7725 XOpenDisplay ();
7726   ;
7727   return 0;
7728 }
7729 _ACEOF
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732   (eval $ac_link) 2>&5
7733   ac_status=$?
7734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735   (exit $ac_status); } &&
7736          { ac_try='test -s conftest$ac_exeext'
7737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738   (eval $ac_try) 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); }; }; then
7742   :
7743 else
7744   echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7748 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7749 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   ac_check_lib_save_LIBS=$LIBS
7753 LIBS="-ldnet  $LIBS"
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #line $LINENO "configure"
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 /* Override any gcc2 internal prototype to avoid an error.  */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767    builtin and then its argument prototype would still apply.  */
7768 char dnet_ntoa ();
7769 int
7770 main ()
7771 {
7772 dnet_ntoa ();
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779   (eval $ac_link) 2>&5
7780   ac_status=$?
7781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782   (exit $ac_status); } &&
7783          { ac_try='test -s conftest$ac_exeext'
7784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785   (eval $ac_try) 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   ac_cv_lib_dnet_dnet_ntoa=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 ac_cv_lib_dnet_dnet_ntoa=no
7795 fi
7796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7797 LIBS=$ac_check_lib_save_LIBS
7798 fi
7799 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7800 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7801 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7802   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7803 fi
7804
7805     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7806       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7807 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7808 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7809   echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811   ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-ldnet_stub  $LIBS"
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line $LINENO "configure"
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820
7821 /* Override any gcc2 internal prototype to avoid an error.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 /* We use char because int might match the return type of a gcc2
7826    builtin and then its argument prototype would still apply.  */
7827 char dnet_ntoa ();
7828 int
7829 main ()
7830 {
7831 dnet_ntoa ();
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838   (eval $ac_link) 2>&5
7839   ac_status=$?
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -s conftest$ac_exeext'
7843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844   (eval $ac_try) 2>&5
7845   ac_status=$?
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); }; }; then
7848   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7849 else
7850   echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 ac_cv_lib_dnet_stub_dnet_ntoa=no
7854 fi
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7857 fi
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7859 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7860 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7861   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7862 fi
7863
7864     fi
7865 fi
7866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867     LIBS="$ac_xsave_LIBS"
7868
7869     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7870     # to get the SysV transport functions.
7871     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7872     # needs -lnsl.
7873     # The nsl library prevents programs from opening the X display
7874     # on Irix 5.2, according to T.E. Dickey.
7875     # The functions gethostbyname, getservbyname, and inet_addr are
7876     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7877     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7878 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7879 if test "${ac_cv_func_gethostbyname+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   cat >conftest.$ac_ext <<_ACEOF
7883 #line $LINENO "configure"
7884 /* confdefs.h.  */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h.  */
7889 /* System header to define __stub macros and hopefully few prototypes,
7890     which can conflict with char gethostbyname (); below.
7891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7892     <limits.h> exists even on freestanding compilers.  */
7893 #ifdef __STDC__
7894 # include <limits.h>
7895 #else
7896 # include <assert.h>
7897 #endif
7898 /* Override any gcc2 internal prototype to avoid an error.  */
7899 #ifdef __cplusplus
7900 extern "C"
7901 {
7902 #endif
7903 /* We use char because int might match the return type of a gcc2
7904    builtin and then its argument prototype would still apply.  */
7905 char gethostbyname ();
7906 /* The GNU C library defines this for functions which it implements
7907     to always fail with ENOSYS.  Some functions are actually named
7908     something starting with __ and the normal name is an alias.  */
7909 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7910 choke me
7911 #else
7912 char (*f) () = gethostbyname;
7913 #endif
7914 #ifdef __cplusplus
7915 }
7916 #endif
7917
7918 int
7919 main ()
7920 {
7921 return f != gethostbyname;
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928   (eval $ac_link) 2>&5
7929   ac_status=$?
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); } &&
7932          { ac_try='test -s conftest$ac_exeext'
7933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934   (eval $ac_try) 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); }; }; then
7938   ac_cv_func_gethostbyname=yes
7939 else
7940   echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 ac_cv_func_gethostbyname=no
7944 fi
7945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7946 fi
7947 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7948 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7949
7950     if test $ac_cv_func_gethostbyname = no; then
7951       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7952 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7953 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   ac_check_lib_save_LIBS=$LIBS
7957 LIBS="-lnsl  $LIBS"
7958 cat >conftest.$ac_ext <<_ACEOF
7959 #line $LINENO "configure"
7960 /* confdefs.h.  */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h.  */
7965
7966 /* Override any gcc2 internal prototype to avoid an error.  */
7967 #ifdef __cplusplus
7968 extern "C"
7969 #endif
7970 /* We use char because int might match the return type of a gcc2
7971    builtin and then its argument prototype would still apply.  */
7972 char gethostbyname ();
7973 int
7974 main ()
7975 {
7976 gethostbyname ();
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7983   (eval $ac_link) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } &&
7987          { ac_try='test -s conftest$ac_exeext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   ac_cv_lib_nsl_gethostbyname=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_cv_lib_nsl_gethostbyname=no
7999 fi
8000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8001 LIBS=$ac_check_lib_save_LIBS
8002 fi
8003 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8004 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8005 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8006   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8007 fi
8008
8009       if test $ac_cv_lib_nsl_gethostbyname = no; then
8010         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8011 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8012 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   ac_check_lib_save_LIBS=$LIBS
8016 LIBS="-lbsd  $LIBS"
8017 cat >conftest.$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024
8025 /* Override any gcc2 internal prototype to avoid an error.  */
8026 #ifdef __cplusplus
8027 extern "C"
8028 #endif
8029 /* We use char because int might match the return type of a gcc2
8030    builtin and then its argument prototype would still apply.  */
8031 char gethostbyname ();
8032 int
8033 main ()
8034 {
8035 gethostbyname ();
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042   (eval $ac_link) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } &&
8046          { ac_try='test -s conftest$ac_exeext'
8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048   (eval $ac_try) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; }; then
8052   ac_cv_lib_bsd_gethostbyname=yes
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_cv_lib_bsd_gethostbyname=no
8058 fi
8059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8060 LIBS=$ac_check_lib_save_LIBS
8061 fi
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8063 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8064 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8065   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8066 fi
8067
8068       fi
8069     fi
8070
8071     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8072     # socket/setsockopt and other routines are undefined under SCO ODT
8073     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8074     # on later versions), says Simon Leinen: it contains gethostby*
8075     # variants that don't use the name server (or something).  -lsocket
8076     # must be given before -lnsl if both are needed.  We assume that
8077     # if connect needs -lnsl, so does gethostbyname.
8078     echo "$as_me:$LINENO: checking for connect" >&5
8079 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8080 if test "${ac_cv_func_connect+set}" = set; then
8081   echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083   cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 /* System header to define __stub macros and hopefully few prototypes,
8091     which can conflict with char connect (); below.
8092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8093     <limits.h> exists even on freestanding compilers.  */
8094 #ifdef __STDC__
8095 # include <limits.h>
8096 #else
8097 # include <assert.h>
8098 #endif
8099 /* Override any gcc2 internal prototype to avoid an error.  */
8100 #ifdef __cplusplus
8101 extern "C"
8102 {
8103 #endif
8104 /* We use char because int might match the return type of a gcc2
8105    builtin and then its argument prototype would still apply.  */
8106 char connect ();
8107 /* The GNU C library defines this for functions which it implements
8108     to always fail with ENOSYS.  Some functions are actually named
8109     something starting with __ and the normal name is an alias.  */
8110 #if defined (__stub_connect) || defined (__stub___connect)
8111 choke me
8112 #else
8113 char (*f) () = connect;
8114 #endif
8115 #ifdef __cplusplus
8116 }
8117 #endif
8118
8119 int
8120 main ()
8121 {
8122 return f != connect;
8123   ;
8124   return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129   (eval $ac_link) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -s conftest$ac_exeext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_func_connect=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 ac_cv_func_connect=no
8145 fi
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8149 echo "${ECHO_T}$ac_cv_func_connect" >&6
8150
8151     if test $ac_cv_func_connect = no; then
8152       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8153 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8154 if test "${ac_cv_lib_socket_connect+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   ac_check_lib_save_LIBS=$LIBS
8158 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8159 cat >conftest.$ac_ext <<_ACEOF
8160 #line $LINENO "configure"
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166
8167 /* Override any gcc2 internal prototype to avoid an error.  */
8168 #ifdef __cplusplus
8169 extern "C"
8170 #endif
8171 /* We use char because int might match the return type of a gcc2
8172    builtin and then its argument prototype would still apply.  */
8173 char connect ();
8174 int
8175 main ()
8176 {
8177 connect ();
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184   (eval $ac_link) 2>&5
8185   ac_status=$?
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } &&
8188          { ac_try='test -s conftest$ac_exeext'
8189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190   (eval $ac_try) 2>&5
8191   ac_status=$?
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); }; }; then
8194   ac_cv_lib_socket_connect=yes
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199 ac_cv_lib_socket_connect=no
8200 fi
8201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_lib_save_LIBS
8203 fi
8204 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8205 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8206 if test $ac_cv_lib_socket_connect = yes; then
8207   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8208 fi
8209
8210     fi
8211
8212     # Guillermo Gomez says -lposix is necessary on A/UX.
8213     echo "$as_me:$LINENO: checking for remove" >&5
8214 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8215 if test "${ac_cv_func_remove+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8220 /* confdefs.h.  */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h.  */
8225 /* System header to define __stub macros and hopefully few prototypes,
8226     which can conflict with char remove (); below.
8227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8228     <limits.h> exists even on freestanding compilers.  */
8229 #ifdef __STDC__
8230 # include <limits.h>
8231 #else
8232 # include <assert.h>
8233 #endif
8234 /* Override any gcc2 internal prototype to avoid an error.  */
8235 #ifdef __cplusplus
8236 extern "C"
8237 {
8238 #endif
8239 /* We use char because int might match the return type of a gcc2
8240    builtin and then its argument prototype would still apply.  */
8241 char remove ();
8242 /* The GNU C library defines this for functions which it implements
8243     to always fail with ENOSYS.  Some functions are actually named
8244     something starting with __ and the normal name is an alias.  */
8245 #if defined (__stub_remove) || defined (__stub___remove)
8246 choke me
8247 #else
8248 char (*f) () = remove;
8249 #endif
8250 #ifdef __cplusplus
8251 }
8252 #endif
8253
8254 int
8255 main ()
8256 {
8257 return f != remove;
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264   (eval $ac_link) 2>&5
8265   ac_status=$?
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -s conftest$ac_exeext'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; }; then
8274   ac_cv_func_remove=yes
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279 ac_cv_func_remove=no
8280 fi
8281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8282 fi
8283 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8284 echo "${ECHO_T}$ac_cv_func_remove" >&6
8285
8286     if test $ac_cv_func_remove = no; then
8287       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8288 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8289 if test "${ac_cv_lib_posix_remove+set}" = set; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   ac_check_lib_save_LIBS=$LIBS
8293 LIBS="-lposix  $LIBS"
8294 cat >conftest.$ac_ext <<_ACEOF
8295 #line $LINENO "configure"
8296 /* confdefs.h.  */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h.  */
8301
8302 /* Override any gcc2 internal prototype to avoid an error.  */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 /* We use char because int might match the return type of a gcc2
8307    builtin and then its argument prototype would still apply.  */
8308 char remove ();
8309 int
8310 main ()
8311 {
8312 remove ();
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319   (eval $ac_link) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); } &&
8323          { ac_try='test -s conftest$ac_exeext'
8324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325   (eval $ac_try) 2>&5
8326   ac_status=$?
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); }; }; then
8329   ac_cv_lib_posix_remove=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334 ac_cv_lib_posix_remove=no
8335 fi
8336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8337 LIBS=$ac_check_lib_save_LIBS
8338 fi
8339 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8340 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8341 if test $ac_cv_lib_posix_remove = yes; then
8342   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8343 fi
8344
8345     fi
8346
8347     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8348     echo "$as_me:$LINENO: checking for shmat" >&5
8349 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8350 if test "${ac_cv_func_shmat+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   cat >conftest.$ac_ext <<_ACEOF
8354 #line $LINENO "configure"
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360 /* System header to define __stub macros and hopefully few prototypes,
8361     which can conflict with char shmat (); below.
8362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8363     <limits.h> exists even on freestanding compilers.  */
8364 #ifdef __STDC__
8365 # include <limits.h>
8366 #else
8367 # include <assert.h>
8368 #endif
8369 /* Override any gcc2 internal prototype to avoid an error.  */
8370 #ifdef __cplusplus
8371 extern "C"
8372 {
8373 #endif
8374 /* We use char because int might match the return type of a gcc2
8375    builtin and then its argument prototype would still apply.  */
8376 char shmat ();
8377 /* The GNU C library defines this for functions which it implements
8378     to always fail with ENOSYS.  Some functions are actually named
8379     something starting with __ and the normal name is an alias.  */
8380 #if defined (__stub_shmat) || defined (__stub___shmat)
8381 choke me
8382 #else
8383 char (*f) () = shmat;
8384 #endif
8385 #ifdef __cplusplus
8386 }
8387 #endif
8388
8389 int
8390 main ()
8391 {
8392 return f != shmat;
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399   (eval $ac_link) 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } &&
8403          { ac_try='test -s conftest$ac_exeext'
8404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405   (eval $ac_try) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; }; then
8409   ac_cv_func_shmat=yes
8410 else
8411   echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414 ac_cv_func_shmat=no
8415 fi
8416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8417 fi
8418 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8419 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8420
8421     if test $ac_cv_func_shmat = no; then
8422       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8423 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8424 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427   ac_check_lib_save_LIBS=$LIBS
8428 LIBS="-lipc  $LIBS"
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436
8437 /* Override any gcc2 internal prototype to avoid an error.  */
8438 #ifdef __cplusplus
8439 extern "C"
8440 #endif
8441 /* We use char because int might match the return type of a gcc2
8442    builtin and then its argument prototype would still apply.  */
8443 char shmat ();
8444 int
8445 main ()
8446 {
8447 shmat ();
8448   ;
8449   return 0;
8450 }
8451 _ACEOF
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454   (eval $ac_link) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -s conftest$ac_exeext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_cv_lib_ipc_shmat=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_cv_lib_ipc_shmat=no
8470 fi
8471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8472 LIBS=$ac_check_lib_save_LIBS
8473 fi
8474 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8475 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8476 if test $ac_cv_lib_ipc_shmat = yes; then
8477   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8478 fi
8479
8480     fi
8481   fi
8482
8483   # Check for libraries that X11R6 Xt/Xaw programs need.
8484   ac_save_LDFLAGS=$LDFLAGS
8485   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8486   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8487   # check for ICE first), but we must link in the order -lSM -lICE or
8488   # we get undefined symbols.  So assume we have SM if we have ICE.
8489   # These have to be linked with before -lX11, unlike the other
8490   # libraries we check for below, so use a different variable.
8491   # John Interrante, Karl Berry
8492   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8493 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8494 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8495   echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497   ac_check_lib_save_LIBS=$LIBS
8498 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 /* Override any gcc2 internal prototype to avoid an error.  */
8508 #ifdef __cplusplus
8509 extern "C"
8510 #endif
8511 /* We use char because int might match the return type of a gcc2
8512    builtin and then its argument prototype would still apply.  */
8513 char IceConnectionNumber ();
8514 int
8515 main ()
8516 {
8517 IceConnectionNumber ();
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524   (eval $ac_link) 2>&5
8525   ac_status=$?
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -s conftest$ac_exeext'
8529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530   (eval $ac_try) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); }; }; then
8534   ac_cv_lib_ICE_IceConnectionNumber=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539 ac_cv_lib_ICE_IceConnectionNumber=no
8540 fi
8541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8542 LIBS=$ac_check_lib_save_LIBS
8543 fi
8544 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8545 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8546 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8547   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8548 fi
8549
8550   LDFLAGS=$ac_save_LDFLAGS
8551
8552 fi
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577 for ac_header in \
8578         assert.h \
8579         fcntl.h \
8580         grp.h \
8581         pwd.h \
8582         libc.h \
8583         limits.h \
8584         stdarg.h \
8585         stdlib.h \
8586         stdint.h \
8587         string.h \
8588         termios.h \
8589         unistd.h \
8590         sys/byteorder.h \
8591         sys/ioctl.h \
8592         sys/select.h \
8593         sys/sockio.h \
8594         sys/time.h \
8595         sys/socket.h \
8596         arpa/nameser.h \
8597         resolv.h \
8598         mtio.h \
8599         sys/mtio.h \
8600
8601 do
8602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8604   echo "$as_me:$LINENO: checking for $ac_header" >&5
8605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 fi
8609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8611 else
8612   # Is the header compilable?
8613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8616 #line $LINENO "configure"
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622 $ac_includes_default
8623 #include <$ac_header>
8624 _ACEOF
8625 rm -f conftest.$ac_objext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627   (eval $ac_compile) 2>&5
8628   ac_status=$?
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } &&
8631          { ac_try='test -s conftest.$ac_objext'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   ac_header_compiler=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642 ac_header_compiler=no
8643 fi
8644 rm -f conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8646 echo "${ECHO_T}$ac_header_compiler" >&6
8647
8648 # Is the header present?
8649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8652 #line $LINENO "configure"
8653 /* confdefs.h.  */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h.  */
8658 #include <$ac_header>
8659 _ACEOF
8660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8662   ac_status=$?
8663   grep -v '^ *+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } >/dev/null; then
8668   if test -s conftest.err; then
8669     ac_cpp_err=$ac_c_preproc_warn_flag
8670   else
8671     ac_cpp_err=
8672   fi
8673 else
8674   ac_cpp_err=yes
8675 fi
8676 if test -z "$ac_cpp_err"; then
8677   ac_header_preproc=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682   ac_header_preproc=no
8683 fi
8684 rm -f conftest.err conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8686 echo "${ECHO_T}$ac_header_preproc" >&6
8687
8688 # So?  What about this header?
8689 case $ac_header_compiler:$ac_header_preproc in
8690   yes:no )
8691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8695     (
8696       cat <<\_ASBOX
8697 ## ------------------------------------ ##
8698 ## Report this to bug-autoconf@gnu.org. ##
8699 ## ------------------------------------ ##
8700 _ASBOX
8701     ) |
8702       sed "s/^/$as_me: WARNING:     /" >&2
8703     ;;
8704   no:yes )
8705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8707     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8711     (
8712       cat <<\_ASBOX
8713 ## ------------------------------------ ##
8714 ## Report this to bug-autoconf@gnu.org. ##
8715 ## ------------------------------------ ##
8716 _ASBOX
8717     ) |
8718       sed "s/^/$as_me: WARNING:     /" >&2
8719     ;;
8720 esac
8721 echo "$as_me:$LINENO: checking for $ac_header" >&5
8722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726   eval "$as_ac_Header=$ac_header_preproc"
8727 fi
8728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8730
8731 fi
8732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8733   cat >>confdefs.h <<_ACEOF
8734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 _ACEOF
8736
8737 fi
8738
8739 done
8740
8741 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8742 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8743 if test "${ac_cv_header_stdc+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746   cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 #include <stdlib.h>
8754 #include <stdarg.h>
8755 #include <string.h>
8756 #include <float.h>
8757
8758 int
8759 main ()
8760 {
8761
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 rm -f conftest.$ac_objext
8767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8768   (eval $ac_compile) 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } &&
8772          { ac_try='test -s conftest.$ac_objext'
8773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774   (eval $ac_try) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   ac_cv_header_stdc=yes
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_cv_header_stdc=no
8784 fi
8785 rm -f conftest.$ac_objext conftest.$ac_ext
8786
8787 if test $ac_cv_header_stdc = yes; then
8788   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8789   cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796 #include <string.h>
8797
8798 _ACEOF
8799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8800   $EGREP "memchr" >/dev/null 2>&1; then
8801   :
8802 else
8803   ac_cv_header_stdc=no
8804 fi
8805 rm -f conftest*
8806
8807 fi
8808
8809 if test $ac_cv_header_stdc = yes; then
8810   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8811   cat >conftest.$ac_ext <<_ACEOF
8812 #line $LINENO "configure"
8813 /* confdefs.h.  */
8814 _ACEOF
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h.  */
8818 #include <stdlib.h>
8819
8820 _ACEOF
8821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8822   $EGREP "free" >/dev/null 2>&1; then
8823   :
8824 else
8825   ac_cv_header_stdc=no
8826 fi
8827 rm -f conftest*
8828
8829 fi
8830
8831 if test $ac_cv_header_stdc = yes; then
8832   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8833   if test "$cross_compiling" = yes; then
8834   :
8835 else
8836   cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843 #include <ctype.h>
8844 #if ((' ' & 0x0FF) == 0x020)
8845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8847 #else
8848 # define ISLOWER(c) \
8849                    (('a' <= (c) && (c) <= 'i') \
8850                      || ('j' <= (c) && (c) <= 'r') \
8851                      || ('s' <= (c) && (c) <= 'z'))
8852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8853 #endif
8854
8855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8856 int
8857 main ()
8858 {
8859   int i;
8860   for (i = 0; i < 256; i++)
8861     if (XOR (islower (i), ISLOWER (i))
8862         || toupper (i) != TOUPPER (i))
8863       exit(2);
8864   exit (0);
8865 }
8866 _ACEOF
8867 rm -f conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869   (eval $ac_link) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; }; then
8878   :
8879 else
8880   echo "$as_me: program exited with status $ac_status" >&5
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 ( exit $ac_status )
8885 ac_cv_header_stdc=no
8886 fi
8887 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8888 fi
8889 fi
8890 fi
8891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8893 if test $ac_cv_header_stdc = yes; then
8894
8895 cat >>confdefs.h <<\_ACEOF
8896 #define STDC_HEADERS 1
8897 _ACEOF
8898
8899 fi
8900
8901 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8902 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8903 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   cat >conftest.$ac_ext <<_ACEOF
8907 #line $LINENO "configure"
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 #include <sys/types.h>
8914 int
8915 main ()
8916 {
8917 return makedev(0, 0);
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924   (eval $ac_link) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } &&
8928          { ac_try='test -s conftest$ac_exeext'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   ac_cv_header_sys_types_h_makedev=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ac_cv_header_sys_types_h_makedev=no
8940 fi
8941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8942
8943 fi
8944 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8945 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8946
8947 if test $ac_cv_header_sys_types_h_makedev = no; then
8948 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8949   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8950 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8951 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8952   echo $ECHO_N "(cached) $ECHO_C" >&6
8953 fi
8954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8955 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8956 else
8957   # Is the header compilable?
8958 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8959 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8960 cat >conftest.$ac_ext <<_ACEOF
8961 #line $LINENO "configure"
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967 $ac_includes_default
8968 #include <sys/mkdev.h>
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -s conftest.$ac_objext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_header_compiler=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_header_compiler=no
8988 fi
8989 rm -f conftest.$ac_objext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8991 echo "${ECHO_T}$ac_header_compiler" >&6
8992
8993 # Is the header present?
8994 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8995 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8997 #line $LINENO "configure"
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003 #include <sys/mkdev.h>
9004 _ACEOF
9005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } >/dev/null; then
9013   if test -s conftest.err; then
9014     ac_cpp_err=$ac_c_preproc_warn_flag
9015   else
9016     ac_cpp_err=
9017   fi
9018 else
9019   ac_cpp_err=yes
9020 fi
9021 if test -z "$ac_cpp_err"; then
9022   ac_header_preproc=yes
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027   ac_header_preproc=no
9028 fi
9029 rm -f conftest.err conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031 echo "${ECHO_T}$ac_header_preproc" >&6
9032
9033 # So?  What about this header?
9034 case $ac_header_compiler:$ac_header_preproc in
9035   yes:no )
9036     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9037 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9039 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9040     (
9041       cat <<\_ASBOX
9042 ## ------------------------------------ ##
9043 ## Report this to bug-autoconf@gnu.org. ##
9044 ## ------------------------------------ ##
9045 _ASBOX
9046     ) |
9047       sed "s/^/$as_me: WARNING:     /" >&2
9048     ;;
9049   no:yes )
9050     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9051 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9052     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9053 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9054     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9055 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9056     (
9057       cat <<\_ASBOX
9058 ## ------------------------------------ ##
9059 ## Report this to bug-autoconf@gnu.org. ##
9060 ## ------------------------------------ ##
9061 _ASBOX
9062     ) |
9063       sed "s/^/$as_me: WARNING:     /" >&2
9064     ;;
9065 esac
9066 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9067 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9068 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9069   echo $ECHO_N "(cached) $ECHO_C" >&6
9070 else
9071   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9072 fi
9073 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9074 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9075
9076 fi
9077 if test $ac_cv_header_sys_mkdev_h = yes; then
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define MAJOR_IN_MKDEV 1
9081 _ACEOF
9082
9083 fi
9084
9085
9086
9087   if test $ac_cv_header_sys_mkdev_h = no; then
9088     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9089   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9090 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9091 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 fi
9094 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9095 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9096 else
9097   # Is the header compilable?
9098 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9099 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107 $ac_includes_default
9108 #include <sys/sysmacros.h>
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112   (eval $ac_compile) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } &&
9116          { ac_try='test -s conftest.$ac_objext'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_header_compiler=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_header_compiler=no
9128 fi
9129 rm -f conftest.$ac_objext conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9131 echo "${ECHO_T}$ac_header_compiler" >&6
9132
9133 # Is the header present?
9134 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9135 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9136 cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9138 /* confdefs.h.  */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h.  */
9143 #include <sys/sysmacros.h>
9144 _ACEOF
9145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } >/dev/null; then
9153   if test -s conftest.err; then
9154     ac_cpp_err=$ac_c_preproc_warn_flag
9155   else
9156     ac_cpp_err=
9157   fi
9158 else
9159   ac_cpp_err=yes
9160 fi
9161 if test -z "$ac_cpp_err"; then
9162   ac_header_preproc=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167   ac_header_preproc=no
9168 fi
9169 rm -f conftest.err conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9171 echo "${ECHO_T}$ac_header_preproc" >&6
9172
9173 # So?  What about this header?
9174 case $ac_header_compiler:$ac_header_preproc in
9175   yes:no )
9176     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9177 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9178     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9179 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9180     (
9181       cat <<\_ASBOX
9182 ## ------------------------------------ ##
9183 ## Report this to bug-autoconf@gnu.org. ##
9184 ## ------------------------------------ ##
9185 _ASBOX
9186     ) |
9187       sed "s/^/$as_me: WARNING:     /" >&2
9188     ;;
9189   no:yes )
9190     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9191 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9192     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9193 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9194     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9195 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9196     (
9197       cat <<\_ASBOX
9198 ## ------------------------------------ ##
9199 ## Report this to bug-autoconf@gnu.org. ##
9200 ## ------------------------------------ ##
9201 _ASBOX
9202     ) |
9203       sed "s/^/$as_me: WARNING:     /" >&2
9204     ;;
9205 esac
9206 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9207 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9208 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9209   echo $ECHO_N "(cached) $ECHO_C" >&6
9210 else
9211   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9212 fi
9213 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9214 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9215
9216 fi
9217 if test $ac_cv_header_sys_sysmacros_h = yes; then
9218
9219 cat >>confdefs.h <<\_ACEOF
9220 #define MAJOR_IN_SYSMACROS 1
9221 _ACEOF
9222
9223 fi
9224
9225
9226   fi
9227 fi
9228
9229
9230
9231
9232
9233
9234 ac_header_dirent=no
9235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9236   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9237 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9238 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   cat >conftest.$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9244 /* confdefs.h.  */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h.  */
9249 #include <sys/types.h>
9250 #include <$ac_hdr>
9251
9252 int
9253 main ()
9254 {
9255 if ((DIR *) 0)
9256 return 0;
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9263   (eval $ac_compile) 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); } &&
9267          { ac_try='test -s conftest.$ac_objext'
9268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269   (eval $ac_try) 2>&5
9270   ac_status=$?
9271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272   (exit $ac_status); }; }; then
9273   eval "$as_ac_Header=yes"
9274 else
9275   echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278 eval "$as_ac_Header=no"
9279 fi
9280 rm -f conftest.$ac_objext conftest.$ac_ext
9281 fi
9282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9285   cat >>confdefs.h <<_ACEOF
9286 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9287 _ACEOF
9288
9289 ac_header_dirent=$ac_hdr; break
9290 fi
9291
9292 done
9293 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9294 if test $ac_header_dirent = dirent.h; then
9295   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9296 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9297 if test "${ac_cv_search_opendir+set}" = set; then
9298   echo $ECHO_N "(cached) $ECHO_C" >&6
9299 else
9300   ac_func_search_save_LIBS=$LIBS
9301 ac_cv_search_opendir=no
9302 cat >conftest.$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9304 /* confdefs.h.  */
9305 _ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h.  */
9309
9310 /* Override any gcc2 internal prototype to avoid an error.  */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 /* We use char because int might match the return type of a gcc2
9315    builtin and then its argument prototype would still apply.  */
9316 char opendir ();
9317 int
9318 main ()
9319 {
9320 opendir ();
9321   ;
9322   return 0;
9323 }
9324 _ACEOF
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327   (eval $ac_link) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); } &&
9331          { ac_try='test -s conftest$ac_exeext'
9332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333   (eval $ac_try) 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); }; }; then
9337   ac_cv_search_opendir="none required"
9338 else
9339   echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9341
9342 fi
9343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9344 if test "$ac_cv_search_opendir" = no; then
9345   for ac_lib in dir; do
9346     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9347     cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354
9355 /* Override any gcc2 internal prototype to avoid an error.  */
9356 #ifdef __cplusplus
9357 extern "C"
9358 #endif
9359 /* We use char because int might match the return type of a gcc2
9360    builtin and then its argument prototype would still apply.  */
9361 char opendir ();
9362 int
9363 main ()
9364 {
9365 opendir ();
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372   (eval $ac_link) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -s conftest$ac_exeext'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   ac_cv_search_opendir="-l$ac_lib"
9383 break
9384 else
9385   echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 fi
9389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9390   done
9391 fi
9392 LIBS=$ac_func_search_save_LIBS
9393 fi
9394 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9395 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9396 if test "$ac_cv_search_opendir" != no; then
9397   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9398
9399 fi
9400
9401 else
9402   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9403 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9404 if test "${ac_cv_search_opendir+set}" = set; then
9405   echo $ECHO_N "(cached) $ECHO_C" >&6
9406 else
9407   ac_func_search_save_LIBS=$LIBS
9408 ac_cv_search_opendir=no
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416
9417 /* Override any gcc2 internal prototype to avoid an error.  */
9418 #ifdef __cplusplus
9419 extern "C"
9420 #endif
9421 /* We use char because int might match the return type of a gcc2
9422    builtin and then its argument prototype would still apply.  */
9423 char opendir ();
9424 int
9425 main ()
9426 {
9427 opendir ();
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434   (eval $ac_link) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } &&
9438          { ac_try='test -s conftest$ac_exeext'
9439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440   (eval $ac_try) 2>&5
9441   ac_status=$?
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); }; }; then
9444   ac_cv_search_opendir="none required"
9445 else
9446   echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9448
9449 fi
9450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9451 if test "$ac_cv_search_opendir" = no; then
9452   for ac_lib in x; do
9453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9454     cat >conftest.$ac_ext <<_ACEOF
9455 #line $LINENO "configure"
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461
9462 /* Override any gcc2 internal prototype to avoid an error.  */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 /* We use char because int might match the return type of a gcc2
9467    builtin and then its argument prototype would still apply.  */
9468 char opendir ();
9469 int
9470 main ()
9471 {
9472 opendir ();
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479   (eval $ac_link) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); } &&
9483          { ac_try='test -s conftest$ac_exeext'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489   ac_cv_search_opendir="-l$ac_lib"
9490 break
9491 else
9492   echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 fi
9496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9497   done
9498 fi
9499 LIBS=$ac_func_search_save_LIBS
9500 fi
9501 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9502 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9503 if test "$ac_cv_search_opendir" != no; then
9504   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9505
9506 fi
9507
9508 fi
9509
9510 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9511 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9512 if test "${ac_cv_header_stat_broken+set}" = set; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 else
9515   cat >conftest.$ac_ext <<_ACEOF
9516 #line $LINENO "configure"
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 #include <sys/types.h>
9523 #include <sys/stat.h>
9524
9525 #if defined(S_ISBLK) && defined(S_IFDIR)
9526 # if S_ISBLK (S_IFDIR)
9527 You lose.
9528 # endif
9529 #endif
9530
9531 #if defined(S_ISBLK) && defined(S_IFCHR)
9532 # if S_ISBLK (S_IFCHR)
9533 You lose.
9534 # endif
9535 #endif
9536
9537 #if defined(S_ISLNK) && defined(S_IFREG)
9538 # if S_ISLNK (S_IFREG)
9539 You lose.
9540 # endif
9541 #endif
9542
9543 #if defined(S_ISSOCK) && defined(S_IFREG)
9544 # if S_ISSOCK (S_IFREG)
9545 You lose.
9546 # endif
9547 #endif
9548
9549 _ACEOF
9550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9551   $EGREP "You lose" >/dev/null 2>&1; then
9552   ac_cv_header_stat_broken=yes
9553 else
9554   ac_cv_header_stat_broken=no
9555 fi
9556 rm -f conftest*
9557
9558 fi
9559 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9560 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9561 if test $ac_cv_header_stat_broken = yes; then
9562
9563 cat >>confdefs.h <<\_ACEOF
9564 #define STAT_MACROS_BROKEN 1
9565 _ACEOF
9566
9567 fi
9568
9569 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9570 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9571 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574   cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #include <sys/types.h>
9582 #include <sys/wait.h>
9583 #ifndef WEXITSTATUS
9584 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9585 #endif
9586 #ifndef WIFEXITED
9587 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9588 #endif
9589
9590 int
9591 main ()
9592 {
9593   int s;
9594   wait (&s);
9595   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9596   ;
9597   return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602   (eval $ac_compile) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); } &&
9606          { ac_try='test -s conftest.$ac_objext'
9607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608   (eval $ac_try) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); }; }; then
9612   ac_cv_header_sys_wait_h=yes
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_cv_header_sys_wait_h=no
9618 fi
9619 rm -f conftest.$ac_objext conftest.$ac_ext
9620 fi
9621 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9622 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9623 if test $ac_cv_header_sys_wait_h = yes; then
9624
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_SYS_WAIT_H 1
9627 _ACEOF
9628
9629 fi
9630
9631 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9632 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9633 if test "${ac_cv_header_time+set}" = set; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636   cat >conftest.$ac_ext <<_ACEOF
9637 #line $LINENO "configure"
9638 /* confdefs.h.  */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h.  */
9643 #include <sys/types.h>
9644 #include <sys/time.h>
9645 #include <time.h>
9646
9647 int
9648 main ()
9649 {
9650 if ((struct tm *) 0)
9651 return 0;
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658   (eval $ac_compile) 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } &&
9662          { ac_try='test -s conftest.$ac_objext'
9663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664   (eval $ac_try) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); }; }; then
9668   ac_cv_header_time=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_cv_header_time=no
9674 fi
9675 rm -f conftest.$ac_objext conftest.$ac_ext
9676 fi
9677 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9678 echo "${ECHO_T}$ac_cv_header_time" >&6
9679 if test $ac_cv_header_time = yes; then
9680
9681 cat >>confdefs.h <<\_ACEOF
9682 #define TIME_WITH_SYS_TIME 1
9683 _ACEOF
9684
9685 fi
9686
9687
9688 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9689 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9690 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   cat >conftest.$ac_ext <<_ACEOF
9694 #line $LINENO "configure"
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700 $ac_includes_default
9701 int
9702 main ()
9703 {
9704 static struct stat ac_aggr;
9705 if (ac_aggr.st_blksize)
9706 return 0;
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713   (eval $ac_compile) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } &&
9717          { ac_try='test -s conftest.$ac_objext'
9718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719   (eval $ac_try) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; }; then
9723   ac_cv_member_struct_stat_st_blksize=yes
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 cat >conftest.$ac_ext <<_ACEOF
9729 #line $LINENO "configure"
9730 /* confdefs.h.  */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h.  */
9735 $ac_includes_default
9736 int
9737 main ()
9738 {
9739 static struct stat ac_aggr;
9740 if (sizeof ac_aggr.st_blksize)
9741 return 0;
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748   (eval $ac_compile) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } &&
9752          { ac_try='test -s conftest.$ac_objext'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   ac_cv_member_struct_stat_st_blksize=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_cv_member_struct_stat_st_blksize=no
9764 fi
9765 rm -f conftest.$ac_objext conftest.$ac_ext
9766 fi
9767 rm -f conftest.$ac_objext conftest.$ac_ext
9768 fi
9769 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9770 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9771 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9772
9773 cat >>confdefs.h <<_ACEOF
9774 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9775 _ACEOF
9776
9777
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_ST_BLKSIZE 1
9780 _ACEOF
9781
9782 fi
9783
9784
9785 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9786 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9787 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9788   echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790   cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9792 /* confdefs.h.  */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h.  */
9797 $ac_includes_default
9798 int
9799 main ()
9800 {
9801 static struct stat ac_aggr;
9802 if (ac_aggr.st_blocks)
9803 return 0;
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9810   (eval $ac_compile) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); } &&
9814          { ac_try='test -s conftest.$ac_objext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_member_struct_stat_st_blocks=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 cat >conftest.$ac_ext <<_ACEOF
9826 #line $LINENO "configure"
9827 /* confdefs.h.  */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h.  */
9832 $ac_includes_default
9833 int
9834 main ()
9835 {
9836 static struct stat ac_aggr;
9837 if (sizeof ac_aggr.st_blocks)
9838 return 0;
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845   (eval $ac_compile) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } &&
9849          { ac_try='test -s conftest.$ac_objext'
9850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851   (eval $ac_try) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855   ac_cv_member_struct_stat_st_blocks=yes
9856 else
9857   echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860 ac_cv_member_struct_stat_st_blocks=no
9861 fi
9862 rm -f conftest.$ac_objext conftest.$ac_ext
9863 fi
9864 rm -f conftest.$ac_objext conftest.$ac_ext
9865 fi
9866 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9867 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9868 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9869
9870 cat >>confdefs.h <<_ACEOF
9871 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9872 _ACEOF
9873
9874
9875 cat >>confdefs.h <<\_ACEOF
9876 #define HAVE_ST_BLOCKS 1
9877 _ACEOF
9878
9879 else
9880   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9881 fi
9882
9883
9884 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9886 if test "${ac_cv_struct_tm+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9891 /* confdefs.h.  */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h.  */
9896 #include <sys/types.h>
9897 #include <time.h>
9898
9899 int
9900 main ()
9901 {
9902 struct tm *tp; tp->tm_sec;
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909   (eval $ac_compile) 2>&5
9910   ac_status=$?
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); } &&
9913          { ac_try='test -s conftest.$ac_objext'
9914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915   (eval $ac_try) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; }; then
9919   ac_cv_struct_tm=time.h
9920 else
9921   echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 ac_cv_struct_tm=sys/time.h
9925 fi
9926 rm -f conftest.$ac_objext conftest.$ac_ext
9927 fi
9928 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9929 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9930 if test $ac_cv_struct_tm = sys/time.h; then
9931
9932 cat >>confdefs.h <<\_ACEOF
9933 #define TM_IN_SYS_TIME 1
9934 _ACEOF
9935
9936 fi
9937
9938 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9939 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9940 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9941   echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943   cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9945 /* confdefs.h.  */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h.  */
9950 #include <sys/types.h>
9951 #include <$ac_cv_struct_tm>
9952
9953
9954 int
9955 main ()
9956 {
9957 static struct tm ac_aggr;
9958 if (ac_aggr.tm_zone)
9959 return 0;
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966   (eval $ac_compile) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } &&
9970          { ac_try='test -s conftest.$ac_objext'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; }; then
9976   ac_cv_member_struct_tm_tm_zone=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981 cat >conftest.$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988 #include <sys/types.h>
9989 #include <$ac_cv_struct_tm>
9990
9991
9992 int
9993 main ()
9994 {
9995 static struct tm ac_aggr;
9996 if (sizeof ac_aggr.tm_zone)
9997 return 0;
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004   (eval $ac_compile) 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } &&
10008          { ac_try='test -s conftest.$ac_objext'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   ac_cv_member_struct_tm_tm_zone=yes
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_cv_member_struct_tm_tm_zone=no
10020 fi
10021 rm -f conftest.$ac_objext conftest.$ac_ext
10022 fi
10023 rm -f conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10026 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10027 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10028
10029 cat >>confdefs.h <<_ACEOF
10030 #define HAVE_STRUCT_TM_TM_ZONE 1
10031 _ACEOF
10032
10033
10034 fi
10035
10036 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10037
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_TM_ZONE 1
10040 _ACEOF
10041
10042 else
10043   echo "$as_me:$LINENO: checking for tzname" >&5
10044 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10045 if test "${ac_cv_var_tzname+set}" = set; then
10046   echo $ECHO_N "(cached) $ECHO_C" >&6
10047 else
10048   cat >conftest.$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10050 /* confdefs.h.  */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h.  */
10055 #include <time.h>
10056 #ifndef tzname /* For SGI.  */
10057 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10058 #endif
10059
10060 int
10061 main ()
10062 {
10063 atoi(*tzname);
10064   ;
10065   return 0;
10066 }
10067 _ACEOF
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070   (eval $ac_link) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -s conftest$ac_exeext'
10075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076   (eval $ac_try) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; }; then
10080   ac_cv_var_tzname=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 ac_cv_var_tzname=no
10086 fi
10087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10088 fi
10089 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10090 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10091   if test $ac_cv_var_tzname = yes; then
10092
10093 cat >>confdefs.h <<\_ACEOF
10094 #define HAVE_TZNAME 1
10095 _ACEOF
10096
10097   fi
10098 fi
10099
10100
10101 echo "$as_me:$LINENO: checking for utime.h" >&5
10102 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10103 if test "${ba_cv_header_utime_h+set}" = set; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106   cat >conftest.$ac_ext <<_ACEOF
10107 #line $LINENO "configure"
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113
10114 #include <sys/types.h>
10115 #include <utime.h>
10116 int
10117 main ()
10118 {
10119 struct utimbuf foo
10120   ;
10121   return 0;
10122 }
10123 _ACEOF
10124 rm -f conftest.$ac_objext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10126   (eval $ac_compile) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } &&
10130          { ac_try='test -s conftest.$ac_objext'
10131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132   (eval $ac_try) 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; }; then
10136   ba_cv_header_utime_h=yes
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 ba_cv_header_utime_h=no
10142 fi
10143 rm -f conftest.$ac_objext conftest.$ac_ext
10144 fi
10145 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10146 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10147 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10148 #define HAVE_UTIME_H 1
10149 _ACEOF
10150
10151
10152 echo "$as_me:$LINENO: checking for socklen_t" >&5
10153 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10154 if test "${ba_cv_header_socklen_t+set}" = set; then
10155   echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157   cat >conftest.$ac_ext <<_ACEOF
10158 #line $LINENO "configure"
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 #include <sys/types.h>
10166 #include <sys/socket.h>
10167 int
10168 main ()
10169 {
10170 socklen_t x
10171   ;
10172   return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177   (eval $ac_compile) 2>&5
10178   ac_status=$?
10179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180   (exit $ac_status); } &&
10181          { ac_try='test -s conftest.$ac_objext'
10182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183   (eval $ac_try) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; }; then
10187   ba_cv_header_socklen_t=yes
10188 else
10189   echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10191
10192 ba_cv_header_socklen_t=no
10193 fi
10194 rm -f conftest.$ac_objext conftest.$ac_ext
10195 fi
10196 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10197 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10198 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_SOCKLEN_T 1
10200 _ACEOF
10201
10202
10203 echo "$as_me:$LINENO: checking for bigendian" >&5
10204 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10205 if test "${ba_cv_bigendian+set}" = set; then
10206   echo $ECHO_N "(cached) $ECHO_C" >&6
10207 else
10208   if test "$cross_compiling" = yes; then
10209   ba_cv_bigendian=no
10210 else
10211   cat >conftest.$ac_ext <<_ACEOF
10212 #line $LINENO "configure"
10213 /* confdefs.h.  */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h.  */
10218 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10219 _ACEOF
10220 rm -f conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222   (eval $ac_link) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227   (eval $ac_try) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231   ba_cv_bigendian=yes
10232 else
10233   echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ( exit $ac_status )
10238 ba_cv_bigendian=no
10239 fi
10240 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10241 fi
10242 fi
10243 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10244 echo "${ECHO_T}$ba_cv_bigendian" >&6
10245 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_BIGENDIAN 1
10247 _ACEOF
10248
10249
10250
10251 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10252 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10253 if test "${ac_cv_c_const+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   cat >conftest.$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263
10264 int
10265 main ()
10266 {
10267 /* FIXME: Include the comments suggested by Paul. */
10268 #ifndef __cplusplus
10269   /* Ultrix mips cc rejects this.  */
10270   typedef int charset[2];
10271   const charset x;
10272   /* SunOS 4.1.1 cc rejects this.  */
10273   char const *const *ccp;
10274   char **p;
10275   /* NEC SVR4.0.2 mips cc rejects this.  */
10276   struct point {int x, y;};
10277   static struct point const zero = {0,0};
10278   /* AIX XL C 1.02.0.0 rejects this.
10279      It does not let you subtract one const X* pointer from another in
10280      an arm of an if-expression whose if-part is not a constant
10281      expression */
10282   const char *g = "string";
10283   ccp = &g + (g ? g-g : 0);
10284   /* HPUX 7.0 cc rejects these. */
10285   ++ccp;
10286   p = (char**) ccp;
10287   ccp = (char const *const *) p;
10288   { /* SCO 3.2v4 cc rejects this.  */
10289     char *t;
10290     char const *s = 0 ? (char *) 0 : (char const *) 0;
10291
10292     *t++ = 0;
10293   }
10294   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10295     int x[] = {25, 17};
10296     const int *foo = &x[0];
10297     ++foo;
10298   }
10299   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10300     typedef const int *iptr;
10301     iptr p = 0;
10302     ++p;
10303   }
10304   { /* AIX XL C 1.02.0.0 rejects this saying
10305        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10306     struct s { int j; const int *ap[3]; };
10307     struct s *b; b->j = 5;
10308   }
10309   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10310     const int foo = 10;
10311   }
10312 #endif
10313
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320   (eval $ac_compile) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -s conftest.$ac_objext'
10325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326   (eval $ac_try) 2>&5
10327   ac_status=$?
10328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329   (exit $ac_status); }; }; then
10330   ac_cv_c_const=yes
10331 else
10332   echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335 ac_cv_c_const=no
10336 fi
10337 rm -f conftest.$ac_objext conftest.$ac_ext
10338 fi
10339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10340 echo "${ECHO_T}$ac_cv_c_const" >&6
10341 if test $ac_cv_c_const = no; then
10342
10343 cat >>confdefs.h <<\_ACEOF
10344 #define const
10345 _ACEOF
10346
10347 fi
10348
10349
10350
10351 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10352 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10353 fstype=no
10354 # The order of these tests is important.
10355 cat >conftest.$ac_ext <<_ACEOF
10356 #line $LINENO "configure"
10357 /* confdefs.h.  */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h.  */
10362 #include <sys/statvfs.h>
10363 #include <sys/fstyp.h>
10364 _ACEOF
10365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10367   ac_status=$?
10368   grep -v '^ *+' conftest.er1 >conftest.err
10369   rm -f conftest.er1
10370   cat conftest.err >&5
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); } >/dev/null; then
10373   if test -s conftest.err; then
10374     ac_cpp_err=$ac_c_preproc_warn_flag
10375   else
10376     ac_cpp_err=
10377   fi
10378 else
10379   ac_cpp_err=yes
10380 fi
10381 if test -z "$ac_cpp_err"; then
10382   cat >>confdefs.h <<\_ACEOF
10383 #define FSTYPE_STATVFS 1
10384 _ACEOF
10385  fstype=SVR4
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390
10391 fi
10392 rm -f conftest.err conftest.$ac_ext
10393 if test $fstype = no; then
10394 cat >conftest.$ac_ext <<_ACEOF
10395 #line $LINENO "configure"
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 #include <sys/statfs.h>
10402 #include <sys/fstyp.h>
10403 _ACEOF
10404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } >/dev/null; then
10412   if test -s conftest.err; then
10413     ac_cpp_err=$ac_c_preproc_warn_flag
10414   else
10415     ac_cpp_err=
10416   fi
10417 else
10418   ac_cpp_err=yes
10419 fi
10420 if test -z "$ac_cpp_err"; then
10421   cat >>confdefs.h <<\_ACEOF
10422 #define FSTYPE_USG_STATFS 1
10423 _ACEOF
10424  fstype=SVR3
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429
10430 fi
10431 rm -f conftest.err conftest.$ac_ext
10432 fi
10433 if test $fstype = no; then
10434 cat >conftest.$ac_ext <<_ACEOF
10435 #line $LINENO "configure"
10436 /* confdefs.h.  */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h.  */
10441 #include <sys/statfs.h>
10442 #include <sys/vmount.h>
10443 _ACEOF
10444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10446   ac_status=$?
10447   grep -v '^ *+' conftest.er1 >conftest.err
10448   rm -f conftest.er1
10449   cat conftest.err >&5
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } >/dev/null; then
10452   if test -s conftest.err; then
10453     ac_cpp_err=$ac_c_preproc_warn_flag
10454   else
10455     ac_cpp_err=
10456   fi
10457 else
10458   ac_cpp_err=yes
10459 fi
10460 if test -z "$ac_cpp_err"; then
10461   cat >>confdefs.h <<\_ACEOF
10462 #define FSTYPE_AIX_STATFS 1
10463 _ACEOF
10464  fstype=AIX
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469
10470 fi
10471 rm -f conftest.err conftest.$ac_ext
10472 fi
10473 if test $fstype = no; then
10474 cat >conftest.$ac_ext <<_ACEOF
10475 #line $LINENO "configure"
10476 /* confdefs.h.  */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h.  */
10481 #include <mntent.h>
10482 _ACEOF
10483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10485   ac_status=$?
10486   grep -v '^ *+' conftest.er1 >conftest.err
10487   rm -f conftest.er1
10488   cat conftest.err >&5
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } >/dev/null; then
10491   if test -s conftest.err; then
10492     ac_cpp_err=$ac_c_preproc_warn_flag
10493   else
10494     ac_cpp_err=
10495   fi
10496 else
10497   ac_cpp_err=yes
10498 fi
10499 if test -z "$ac_cpp_err"; then
10500   cat >>confdefs.h <<\_ACEOF
10501 #define FSTYPE_MNTENT 1
10502 _ACEOF
10503  fstype=4.3BSD
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508
10509 fi
10510 rm -f conftest.err conftest.$ac_ext
10511 fi
10512 if test $fstype = no; then
10513 cat >conftest.$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520 #include <sys/mount.h>
10521
10522 _ACEOF
10523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10524   $EGREP "f_type;" >/dev/null 2>&1; then
10525   cat >>confdefs.h <<\_ACEOF
10526 #define FSTYPE_STATFS 1
10527 _ACEOF
10528  fstype=4.4BSD/OSF1
10529 fi
10530 rm -f conftest*
10531
10532 fi
10533 if test $fstype = no; then
10534 cat >conftest.$ac_ext <<_ACEOF
10535 #line $LINENO "configure"
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541 #include <sys/mount.h>
10542 #include <sys/fs_types.h>
10543 _ACEOF
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10546   ac_status=$?
10547   grep -v '^ *+' conftest.er1 >conftest.err
10548   rm -f conftest.er1
10549   cat conftest.err >&5
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } >/dev/null; then
10552   if test -s conftest.err; then
10553     ac_cpp_err=$ac_c_preproc_warn_flag
10554   else
10555     ac_cpp_err=
10556   fi
10557 else
10558   ac_cpp_err=yes
10559 fi
10560 if test -z "$ac_cpp_err"; then
10561   cat >>confdefs.h <<\_ACEOF
10562 #define FSTYPE_GETMNT 1
10563 _ACEOF
10564  fstype=Ultrix
10565 else
10566   echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569
10570 fi
10571 rm -f conftest.err conftest.$ac_ext
10572 fi
10573 echo "$as_me:$LINENO: result: $fstype" >&5
10574 echo "${ECHO_T}$fstype" >&6
10575
10576 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10577 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10578 if test "${ac_cv_type_signal+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 #include <sys/types.h>
10589 #include <signal.h>
10590 #ifdef signal
10591 # undef signal
10592 #endif
10593 #ifdef __cplusplus
10594 extern "C" void (*signal (int, void (*)(int)))(int);
10595 #else
10596 void (*signal ()) ();
10597 #endif
10598
10599 int
10600 main ()
10601 {
10602 int i;
10603   ;
10604   return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609   (eval $ac_compile) 2>&5
10610   ac_status=$?
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } &&
10613          { ac_try='test -s conftest.$ac_objext'
10614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615   (eval $ac_try) 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; }; then
10619   ac_cv_type_signal=void
10620 else
10621   echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 ac_cv_type_signal=int
10625 fi
10626 rm -f conftest.$ac_objext conftest.$ac_ext
10627 fi
10628 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10629 echo "${ECHO_T}$ac_cv_type_signal" >&6
10630
10631 cat >>confdefs.h <<_ACEOF
10632 #define RETSIGTYPE $ac_cv_type_signal
10633 _ACEOF
10634
10635
10636
10637 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10638 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10639 if test "${bash_cv_signal_vintage+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642
10643   cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10645 /* confdefs.h.  */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h.  */
10650 #include <signal.h>
10651 int
10652 main ()
10653 {
10654
10655     sigset_t ss;
10656     struct sigaction sa;
10657     sigemptyset(&ss); sigsuspend(&ss);
10658     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10659     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10660
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667   (eval $ac_link) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } &&
10671          { ac_try='test -s conftest$ac_exeext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   bash_cv_signal_vintage=posix
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682
10683     cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690 #include <signal.h>
10691 int
10692 main ()
10693 {
10694
10695         int mask = sigmask(SIGINT);
10696         sigsetmask(mask); sigblock(mask); sigpause(mask);
10697
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704   (eval $ac_link) 2>&5
10705   ac_status=$?
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } &&
10708          { ac_try='test -s conftest$ac_exeext'
10709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710   (eval $ac_try) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; }; then
10714   bash_cv_signal_vintage=4.2bsd
10715 else
10716   echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719
10720       cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727
10728         #include <signal.h>
10729         RETSIGTYPE foo() { }
10730 int
10731 main ()
10732 {
10733
10734                 int mask = sigmask(SIGINT);
10735                 sigset(SIGINT, foo); sigrelse(SIGINT);
10736                 sighold(SIGINT); sigpause(SIGINT);
10737
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744   (eval $ac_link) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } &&
10748          { ac_try='test -s conftest$ac_exeext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   bash_cv_signal_vintage=svr3
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 bash_cv_signal_vintage=v7
10760
10761 fi
10762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10763
10764 fi
10765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10766
10767 fi
10768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10769
10770 fi
10771
10772 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10773 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10774 if test "$bash_cv_signal_vintage" = posix; then
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_POSIX_SIGNALS 1
10777 _ACEOF
10778
10779 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_BSD_SIGNALS 1
10782 _ACEOF
10783
10784 elif test "$bash_cv_signal_vintage" = svr3; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_USG_SIGHOLD 1
10787 _ACEOF
10788
10789 fi
10790
10791 echo "$as_me:$LINENO: checking for mode_t" >&5
10792 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10793 if test "${ac_cv_type_mode_t+set}" = set; then
10794   echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796   cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10798 /* confdefs.h.  */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h.  */
10803 $ac_includes_default
10804 int
10805 main ()
10806 {
10807 if ((mode_t *) 0)
10808   return 0;
10809 if (sizeof (mode_t))
10810   return 0;
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 rm -f conftest.$ac_objext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10817   (eval $ac_compile) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } &&
10821          { ac_try='test -s conftest.$ac_objext'
10822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823   (eval $ac_try) 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); }; }; then
10827   ac_cv_type_mode_t=yes
10828 else
10829   echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 ac_cv_type_mode_t=no
10833 fi
10834 rm -f conftest.$ac_objext conftest.$ac_ext
10835 fi
10836 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10837 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10838 if test $ac_cv_type_mode_t = yes; then
10839   :
10840 else
10841
10842 cat >>confdefs.h <<_ACEOF
10843 #define mode_t int
10844 _ACEOF
10845
10846 fi
10847
10848 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10849 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10850 if test "${ac_cv_type_uid_t+set}" = set; then
10851   echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853   cat >conftest.$ac_ext <<_ACEOF
10854 #line $LINENO "configure"
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860 #include <sys/types.h>
10861
10862 _ACEOF
10863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10864   $EGREP "uid_t" >/dev/null 2>&1; then
10865   ac_cv_type_uid_t=yes
10866 else
10867   ac_cv_type_uid_t=no
10868 fi
10869 rm -f conftest*
10870
10871 fi
10872 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10873 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10874 if test $ac_cv_type_uid_t = no; then
10875
10876 cat >>confdefs.h <<\_ACEOF
10877 #define uid_t int
10878 _ACEOF
10879
10880
10881 cat >>confdefs.h <<\_ACEOF
10882 #define gid_t int
10883 _ACEOF
10884
10885 fi
10886
10887 echo "$as_me:$LINENO: checking for size_t" >&5
10888 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10889 if test "${ac_cv_type_size_t+set}" = set; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   cat >conftest.$ac_ext <<_ACEOF
10893 #line $LINENO "configure"
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 $ac_includes_default
10900 int
10901 main ()
10902 {
10903 if ((size_t *) 0)
10904   return 0;
10905 if (sizeof (size_t))
10906   return 0;
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913   (eval $ac_compile) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } &&
10917          { ac_try='test -s conftest.$ac_objext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   ac_cv_type_size_t=yes
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 ac_cv_type_size_t=no
10929 fi
10930 rm -f conftest.$ac_objext conftest.$ac_ext
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10933 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10934 if test $ac_cv_type_size_t = yes; then
10935   :
10936 else
10937
10938 cat >>confdefs.h <<_ACEOF
10939 #define size_t unsigned
10940 _ACEOF
10941
10942 fi
10943
10944 echo "$as_me:$LINENO: checking for pid_t" >&5
10945 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10946 if test "${ac_cv_type_pid_t+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 $ac_includes_default
10957 int
10958 main ()
10959 {
10960 if ((pid_t *) 0)
10961   return 0;
10962 if (sizeof (pid_t))
10963   return 0;
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970   (eval $ac_compile) 2>&5
10971   ac_status=$?
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } &&
10974          { ac_try='test -s conftest.$ac_objext'
10975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976   (eval $ac_try) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); }; }; then
10980   ac_cv_type_pid_t=yes
10981 else
10982   echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 ac_cv_type_pid_t=no
10986 fi
10987 rm -f conftest.$ac_objext conftest.$ac_ext
10988 fi
10989 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10990 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10991 if test $ac_cv_type_pid_t = yes; then
10992   :
10993 else
10994
10995 cat >>confdefs.h <<_ACEOF
10996 #define pid_t int
10997 _ACEOF
10998
10999 fi
11000
11001 echo "$as_me:$LINENO: checking for off_t" >&5
11002 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11003 if test "${ac_cv_type_off_t+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   cat >conftest.$ac_ext <<_ACEOF
11007 #line $LINENO "configure"
11008 /* confdefs.h.  */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h.  */
11013 $ac_includes_default
11014 int
11015 main ()
11016 {
11017 if ((off_t *) 0)
11018   return 0;
11019 if (sizeof (off_t))
11020   return 0;
11021   ;
11022   return 0;
11023 }
11024 _ACEOF
11025 rm -f conftest.$ac_objext
11026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027   (eval $ac_compile) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } &&
11031          { ac_try='test -s conftest.$ac_objext'
11032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033   (eval $ac_try) 2>&5
11034   ac_status=$?
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); }; }; then
11037   ac_cv_type_off_t=yes
11038 else
11039   echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11041
11042 ac_cv_type_off_t=no
11043 fi
11044 rm -f conftest.$ac_objext conftest.$ac_ext
11045 fi
11046 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11047 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11048 if test $ac_cv_type_off_t = yes; then
11049   :
11050 else
11051
11052 cat >>confdefs.h <<_ACEOF
11053 #define off_t long
11054 _ACEOF
11055
11056 fi
11057
11058 echo "$as_me:$LINENO: checking for ino_t" >&5
11059 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11060 if test "${ac_cv_type_ino_t+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063   cat >conftest.$ac_ext <<_ACEOF
11064 #line $LINENO "configure"
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070 $ac_includes_default
11071 int
11072 main ()
11073 {
11074 if ((ino_t *) 0)
11075   return 0;
11076 if (sizeof (ino_t))
11077   return 0;
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084   (eval $ac_compile) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -s conftest.$ac_objext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   ac_cv_type_ino_t=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_cv_type_ino_t=no
11100 fi
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11102 fi
11103 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11104 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11105 if test $ac_cv_type_ino_t = yes; then
11106   :
11107 else
11108
11109 cat >>confdefs.h <<_ACEOF
11110 #define ino_t unsigned long
11111 _ACEOF
11112
11113 fi
11114
11115 echo "$as_me:$LINENO: checking for dev_t" >&5
11116 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11117 if test "${ac_cv_type_dev_t+set}" = set; then
11118   echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120   cat >conftest.$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11122 /* confdefs.h.  */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h.  */
11127 $ac_includes_default
11128 int
11129 main ()
11130 {
11131 if ((dev_t *) 0)
11132   return 0;
11133 if (sizeof (dev_t))
11134   return 0;
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11141   (eval $ac_compile) 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); } &&
11145          { ac_try='test -s conftest.$ac_objext'
11146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147   (eval $ac_try) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; }; then
11151   ac_cv_type_dev_t=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_cv_type_dev_t=no
11157 fi
11158 rm -f conftest.$ac_objext conftest.$ac_ext
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11161 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11162 if test $ac_cv_type_dev_t = yes; then
11163   :
11164 else
11165
11166 cat >>confdefs.h <<_ACEOF
11167 #define dev_t unsigned long
11168 _ACEOF
11169
11170 fi
11171
11172 echo "$as_me:$LINENO: checking for daddr_t" >&5
11173 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11174 if test "${ac_cv_type_daddr_t+set}" = set; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177   cat >conftest.$ac_ext <<_ACEOF
11178 #line $LINENO "configure"
11179 /* confdefs.h.  */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h.  */
11184 $ac_includes_default
11185 int
11186 main ()
11187 {
11188 if ((daddr_t *) 0)
11189   return 0;
11190 if (sizeof (daddr_t))
11191   return 0;
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 rm -f conftest.$ac_objext
11197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198   (eval $ac_compile) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); } &&
11202          { ac_try='test -s conftest.$ac_objext'
11203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204   (eval $ac_try) 2>&5
11205   ac_status=$?
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); }; }; then
11208   ac_cv_type_daddr_t=yes
11209 else
11210   echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11212
11213 ac_cv_type_daddr_t=no
11214 fi
11215 rm -f conftest.$ac_objext conftest.$ac_ext
11216 fi
11217 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11218 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11219 if test $ac_cv_type_daddr_t = yes; then
11220   :
11221 else
11222
11223 cat >>confdefs.h <<_ACEOF
11224 #define daddr_t long
11225 _ACEOF
11226
11227 fi
11228
11229 echo "$as_me:$LINENO: checking for major_t" >&5
11230 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11231 if test "${ac_cv_type_major_t+set}" = set; then
11232   echo $ECHO_N "(cached) $ECHO_C" >&6
11233 else
11234   cat >conftest.$ac_ext <<_ACEOF
11235 #line $LINENO "configure"
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 $ac_includes_default
11242 int
11243 main ()
11244 {
11245 if ((major_t *) 0)
11246   return 0;
11247 if (sizeof (major_t))
11248   return 0;
11249   ;
11250   return 0;
11251 }
11252 _ACEOF
11253 rm -f conftest.$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255   (eval $ac_compile) 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); } &&
11259          { ac_try='test -s conftest.$ac_objext'
11260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261   (eval $ac_try) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; }; then
11265   ac_cv_type_major_t=yes
11266 else
11267   echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11269
11270 ac_cv_type_major_t=no
11271 fi
11272 rm -f conftest.$ac_objext conftest.$ac_ext
11273 fi
11274 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11275 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11276 if test $ac_cv_type_major_t = yes; then
11277   :
11278 else
11279
11280 cat >>confdefs.h <<_ACEOF
11281 #define major_t int
11282 _ACEOF
11283
11284 fi
11285
11286 echo "$as_me:$LINENO: checking for minor_t" >&5
11287 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11288 if test "${ac_cv_type_minor_t+set}" = set; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   cat >conftest.$ac_ext <<_ACEOF
11292 #line $LINENO "configure"
11293 /* confdefs.h.  */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h.  */
11298 $ac_includes_default
11299 int
11300 main ()
11301 {
11302 if ((minor_t *) 0)
11303   return 0;
11304 if (sizeof (minor_t))
11305   return 0;
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312   (eval $ac_compile) 2>&5
11313   ac_status=$?
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } &&
11316          { ac_try='test -s conftest.$ac_objext'
11317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318   (eval $ac_try) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; }; then
11322   ac_cv_type_minor_t=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_cv_type_minor_t=no
11328 fi
11329 rm -f conftest.$ac_objext conftest.$ac_ext
11330 fi
11331 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11332 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11333 if test $ac_cv_type_minor_t = yes; then
11334   :
11335 else
11336
11337 cat >>confdefs.h <<_ACEOF
11338 #define minor_t int
11339 _ACEOF
11340
11341 fi
11342
11343 echo "$as_me:$LINENO: checking for ssize_t" >&5
11344 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11345 if test "${ac_cv_type_ssize_t+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11350 /* confdefs.h.  */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h.  */
11355 $ac_includes_default
11356 int
11357 main ()
11358 {
11359 if ((ssize_t *) 0)
11360   return 0;
11361 if (sizeof (ssize_t))
11362   return 0;
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369   (eval $ac_compile) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } &&
11373          { ac_try='test -s conftest.$ac_objext'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; }; then
11379   ac_cv_type_ssize_t=yes
11380 else
11381   echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384 ac_cv_type_ssize_t=no
11385 fi
11386 rm -f conftest.$ac_objext conftest.$ac_ext
11387 fi
11388 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11389 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11390 if test $ac_cv_type_ssize_t = yes; then
11391   :
11392 else
11393
11394 cat >>confdefs.h <<_ACEOF
11395 #define ssize_t int
11396 _ACEOF
11397
11398 fi
11399
11400 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11401 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11402 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412 $ac_includes_default
11413 int
11414 main ()
11415 {
11416 static struct stat ac_aggr;
11417 if (ac_aggr.st_blocks)
11418 return 0;
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425   (eval $ac_compile) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); } &&
11429          { ac_try='test -s conftest.$ac_objext'
11430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431   (eval $ac_try) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   ac_cv_member_struct_stat_st_blocks=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 /* confdefs.h.  */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h.  */
11447 $ac_includes_default
11448 int
11449 main ()
11450 {
11451 static struct stat ac_aggr;
11452 if (sizeof ac_aggr.st_blocks)
11453 return 0;
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460   (eval $ac_compile) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); } &&
11464          { ac_try='test -s conftest.$ac_objext'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   ac_cv_member_struct_stat_st_blocks=yes
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_cv_member_struct_stat_st_blocks=no
11476 fi
11477 rm -f conftest.$ac_objext conftest.$ac_ext
11478 fi
11479 rm -f conftest.$ac_objext conftest.$ac_ext
11480 fi
11481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11482 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11483 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11484
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11487 _ACEOF
11488
11489
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_ST_BLOCKS 1
11492 _ACEOF
11493
11494 else
11495   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11496 fi
11497
11498
11499
11500 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11501 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11502 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505   cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 $ac_includes_default
11513 int
11514 main ()
11515 {
11516 static struct stat ac_aggr;
11517 if (ac_aggr.st_rdev)
11518 return 0;
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525   (eval $ac_compile) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } &&
11529          { ac_try='test -s conftest.$ac_objext'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; }; then
11535   ac_cv_member_struct_stat_st_rdev=yes
11536 else
11537   echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 $ac_includes_default
11548 int
11549 main ()
11550 {
11551 static struct stat ac_aggr;
11552 if (sizeof ac_aggr.st_rdev)
11553 return 0;
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560   (eval $ac_compile) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } &&
11564          { ac_try='test -s conftest.$ac_objext'
11565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566   (eval $ac_try) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; }; then
11570   ac_cv_member_struct_stat_st_rdev=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ac_cv_member_struct_stat_st_rdev=no
11576 fi
11577 rm -f conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 rm -f conftest.$ac_objext conftest.$ac_ext
11580 fi
11581 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11582 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11583 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11584
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_STRUCT_STAT_ST_RDEV 1
11587 _ACEOF
11588
11589
11590 cat >>confdefs.h <<\_ACEOF
11591 #define HAVE_ST_RDEV 1
11592 _ACEOF
11593
11594 fi
11595
11596
11597 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11598 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11599 if test "${ac_cv_struct_tm+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609 #include <sys/types.h>
11610 #include <time.h>
11611
11612 int
11613 main ()
11614 {
11615 struct tm *tp; tp->tm_sec;
11616   ;
11617   return 0;
11618 }
11619 _ACEOF
11620 rm -f conftest.$ac_objext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622   (eval $ac_compile) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); } &&
11626          { ac_try='test -s conftest.$ac_objext'
11627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628   (eval $ac_try) 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; }; then
11632   ac_cv_struct_tm=time.h
11633 else
11634   echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637 ac_cv_struct_tm=sys/time.h
11638 fi
11639 rm -f conftest.$ac_objext conftest.$ac_ext
11640 fi
11641 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11642 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11643 if test $ac_cv_struct_tm = sys/time.h; then
11644
11645 cat >>confdefs.h <<\_ACEOF
11646 #define TM_IN_SYS_TIME 1
11647 _ACEOF
11648
11649 fi
11650
11651 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11652 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11653 if test "${ac_cv_c_const+set}" = set; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656   cat >conftest.$ac_ext <<_ACEOF
11657 #line $LINENO "configure"
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663
11664 int
11665 main ()
11666 {
11667 /* FIXME: Include the comments suggested by Paul. */
11668 #ifndef __cplusplus
11669   /* Ultrix mips cc rejects this.  */
11670   typedef int charset[2];
11671   const charset x;
11672   /* SunOS 4.1.1 cc rejects this.  */
11673   char const *const *ccp;
11674   char **p;
11675   /* NEC SVR4.0.2 mips cc rejects this.  */
11676   struct point {int x, y;};
11677   static struct point const zero = {0,0};
11678   /* AIX XL C 1.02.0.0 rejects this.
11679      It does not let you subtract one const X* pointer from another in
11680      an arm of an if-expression whose if-part is not a constant
11681      expression */
11682   const char *g = "string";
11683   ccp = &g + (g ? g-g : 0);
11684   /* HPUX 7.0 cc rejects these. */
11685   ++ccp;
11686   p = (char**) ccp;
11687   ccp = (char const *const *) p;
11688   { /* SCO 3.2v4 cc rejects this.  */
11689     char *t;
11690     char const *s = 0 ? (char *) 0 : (char const *) 0;
11691
11692     *t++ = 0;
11693   }
11694   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11695     int x[] = {25, 17};
11696     const int *foo = &x[0];
11697     ++foo;
11698   }
11699   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11700     typedef const int *iptr;
11701     iptr p = 0;
11702     ++p;
11703   }
11704   { /* AIX XL C 1.02.0.0 rejects this saying
11705        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11706     struct s { int j; const int *ap[3]; };
11707     struct s *b; b->j = 5;
11708   }
11709   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11710     const int foo = 10;
11711   }
11712 #endif
11713
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720   (eval $ac_compile) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } &&
11724          { ac_try='test -s conftest.$ac_objext'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   ac_cv_c_const=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 ac_cv_c_const=no
11736 fi
11737 rm -f conftest.$ac_objext conftest.$ac_ext
11738 fi
11739 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11740 echo "${ECHO_T}$ac_cv_c_const" >&6
11741 if test $ac_cv_c_const = no; then
11742
11743 cat >>confdefs.h <<\_ACEOF
11744 #define const
11745 _ACEOF
11746
11747 fi
11748
11749
11750
11751 echo "$as_me:$LINENO: checking for char" >&5
11752 echo $ECHO_N "checking for char... $ECHO_C" >&6
11753 if test "${ac_cv_type_char+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 /* confdefs.h.  */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h.  */
11763 $ac_includes_default
11764 int
11765 main ()
11766 {
11767 if ((char *) 0)
11768   return 0;
11769 if (sizeof (char))
11770   return 0;
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777   (eval $ac_compile) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } &&
11781          { ac_try='test -s conftest.$ac_objext'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787   ac_cv_type_char=yes
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 ac_cv_type_char=no
11793 fi
11794 rm -f conftest.$ac_objext conftest.$ac_ext
11795 fi
11796 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11797 echo "${ECHO_T}$ac_cv_type_char" >&6
11798
11799 echo "$as_me:$LINENO: checking size of char" >&5
11800 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11801 if test "${ac_cv_sizeof_char+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   if test "$ac_cv_type_char" = yes; then
11805   # The cast to unsigned long works around a bug in the HP C Compiler
11806   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808   # This bug is HP SR number 8606223364.
11809   if test "$cross_compiling" = yes; then
11810   # Depending upon the size, compute the lo and hi bounds.
11811 cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 $ac_includes_default
11819 int
11820 main ()
11821 {
11822 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11823 test_array [0] = 0
11824
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831   (eval $ac_compile) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -s conftest.$ac_objext'
11836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837   (eval $ac_try) 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }; then
11841   ac_lo=0 ac_mid=0
11842   while :; do
11843     cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850 $ac_includes_default
11851 int
11852 main ()
11853 {
11854 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11855 test_array [0] = 0
11856
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863   (eval $ac_compile) 2>&5
11864   ac_status=$?
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } &&
11867          { ac_try='test -s conftest.$ac_objext'
11868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869   (eval $ac_try) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); }; }; then
11873   ac_hi=$ac_mid; break
11874 else
11875   echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 ac_lo=`expr $ac_mid + 1`
11879                     if test $ac_lo -le $ac_mid; then
11880                       ac_lo= ac_hi=
11881                       break
11882                     fi
11883                     ac_mid=`expr 2 '*' $ac_mid + 1`
11884 fi
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11886   done
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891 cat >conftest.$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 $ac_includes_default
11899 int
11900 main ()
11901 {
11902 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11903 test_array [0] = 0
11904
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911   (eval $ac_compile) 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); } &&
11915          { ac_try='test -s conftest.$ac_objext'
11916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917   (eval $ac_try) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); }; }; then
11921   ac_hi=-1 ac_mid=-1
11922   while :; do
11923     cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11925 /* confdefs.h.  */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h.  */
11930 $ac_includes_default
11931 int
11932 main ()
11933 {
11934 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11935 test_array [0] = 0
11936
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11943   (eval $ac_compile) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -s conftest.$ac_objext'
11948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949   (eval $ac_try) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; }; then
11953   ac_lo=$ac_mid; break
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958 ac_hi=`expr '(' $ac_mid ')' - 1`
11959                        if test $ac_mid -le $ac_hi; then
11960                          ac_lo= ac_hi=
11961                          break
11962                        fi
11963                        ac_mid=`expr 2 '*' $ac_mid`
11964 fi
11965 rm -f conftest.$ac_objext conftest.$ac_ext
11966   done
11967 else
11968   echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11970
11971 ac_lo= ac_hi=
11972 fi
11973 rm -f conftest.$ac_objext conftest.$ac_ext
11974 fi
11975 rm -f conftest.$ac_objext conftest.$ac_ext
11976 # Binary search between lo and hi bounds.
11977 while test "x$ac_lo" != "x$ac_hi"; do
11978   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11979   cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986 $ac_includes_default
11987 int
11988 main ()
11989 {
11990 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11991 test_array [0] = 0
11992
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11999   (eval $ac_compile) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } &&
12003          { ac_try='test -s conftest.$ac_objext'
12004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005   (eval $ac_try) 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); }; }; then
12009   ac_hi=$ac_mid
12010 else
12011   echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12013
12014 ac_lo=`expr '(' $ac_mid ')' + 1`
12015 fi
12016 rm -f conftest.$ac_objext conftest.$ac_ext
12017 done
12018 case $ac_lo in
12019 ?*) ac_cv_sizeof_char=$ac_lo;;
12020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12021 See \`config.log' for more details." >&5
12022 echo "$as_me: error: cannot compute sizeof (char), 77
12023 See \`config.log' for more details." >&2;}
12024    { (exit 1); exit 1; }; } ;;
12025 esac
12026 else
12027   if test "$cross_compiling" = yes; then
12028   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12029 See \`config.log' for more details." >&5
12030 echo "$as_me: error: cannot run test program while cross compiling
12031 See \`config.log' for more details." >&2;}
12032    { (exit 1); exit 1; }; }
12033 else
12034   cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 $ac_includes_default
12042 long longval () { return (long) (sizeof (char)); }
12043 unsigned long ulongval () { return (long) (sizeof (char)); }
12044 #include <stdio.h>
12045 #include <stdlib.h>
12046 int
12047 main ()
12048 {
12049
12050   FILE *f = fopen ("conftest.val", "w");
12051   if (! f)
12052     exit (1);
12053   if (((long) (sizeof (char))) < 0)
12054     {
12055       long i = longval ();
12056       if (i != ((long) (sizeof (char))))
12057         exit (1);
12058       fprintf (f, "%ld\n", i);
12059     }
12060   else
12061     {
12062       unsigned long i = ulongval ();
12063       if (i != ((long) (sizeof (char))))
12064         exit (1);
12065       fprintf (f, "%lu\n", i);
12066     }
12067   exit (ferror (f) || fclose (f) != 0);
12068
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075   (eval $ac_link) 2>&5
12076   ac_status=$?
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080   (eval $ac_try) 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; }; then
12084   ac_cv_sizeof_char=`cat conftest.val`
12085 else
12086   echo "$as_me: program exited with status $ac_status" >&5
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 ( exit $ac_status )
12091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12092 See \`config.log' for more details." >&5
12093 echo "$as_me: error: cannot compute sizeof (char), 77
12094 See \`config.log' for more details." >&2;}
12095    { (exit 1); exit 1; }; }
12096 fi
12097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12098 fi
12099 fi
12100 rm -f conftest.val
12101 else
12102   ac_cv_sizeof_char=0
12103 fi
12104 fi
12105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12106 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12107 cat >>confdefs.h <<_ACEOF
12108 #define SIZEOF_CHAR $ac_cv_sizeof_char
12109 _ACEOF
12110
12111
12112 echo "$as_me:$LINENO: checking for short int" >&5
12113 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12114 if test "${ac_cv_type_short_int+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 $ac_includes_default
12125 int
12126 main ()
12127 {
12128 if ((short int *) 0)
12129   return 0;
12130 if (sizeof (short int))
12131   return 0;
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138   (eval $ac_compile) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -s conftest.$ac_objext'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   ac_cv_type_short_int=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ac_cv_type_short_int=no
12154 fi
12155 rm -f conftest.$ac_objext conftest.$ac_ext
12156 fi
12157 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12158 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12159
12160 echo "$as_me:$LINENO: checking size of short int" >&5
12161 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12162 if test "${ac_cv_sizeof_short_int+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   if test "$ac_cv_type_short_int" = yes; then
12166   # The cast to unsigned long works around a bug in the HP C Compiler
12167   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12168   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12169   # This bug is HP SR number 8606223364.
12170   if test "$cross_compiling" = yes; then
12171   # Depending upon the size, compute the lo and hi bounds.
12172 cat >conftest.$ac_ext <<_ACEOF
12173 #line $LINENO "configure"
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179 $ac_includes_default
12180 int
12181 main ()
12182 {
12183 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12184 test_array [0] = 0
12185
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192   (eval $ac_compile) 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); } &&
12196          { ac_try='test -s conftest.$ac_objext'
12197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198   (eval $ac_try) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); }; }; then
12202   ac_lo=0 ac_mid=0
12203   while :; do
12204     cat >conftest.$ac_ext <<_ACEOF
12205 #line $LINENO "configure"
12206 /* confdefs.h.  */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h.  */
12211 $ac_includes_default
12212 int
12213 main ()
12214 {
12215 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12216 test_array [0] = 0
12217
12218   ;
12219   return 0;
12220 }
12221 _ACEOF
12222 rm -f conftest.$ac_objext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224   (eval $ac_compile) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -s conftest.$ac_objext'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   ac_hi=$ac_mid; break
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_lo=`expr $ac_mid + 1`
12240                     if test $ac_lo -le $ac_mid; then
12241                       ac_lo= ac_hi=
12242                       break
12243                     fi
12244                     ac_mid=`expr 2 '*' $ac_mid + 1`
12245 fi
12246 rm -f conftest.$ac_objext conftest.$ac_ext
12247   done
12248 else
12249   echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 /* confdefs.h.  */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h.  */
12259 $ac_includes_default
12260 int
12261 main ()
12262 {
12263 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12264 test_array [0] = 0
12265
12266   ;
12267   return 0;
12268 }
12269 _ACEOF
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272   (eval $ac_compile) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } &&
12276          { ac_try='test -s conftest.$ac_objext'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; }; then
12282   ac_hi=-1 ac_mid=-1
12283   while :; do
12284     cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291 $ac_includes_default
12292 int
12293 main ()
12294 {
12295 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12296 test_array [0] = 0
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304   (eval $ac_compile) 2>&5
12305   ac_status=$?
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); } &&
12308          { ac_try='test -s conftest.$ac_objext'
12309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310   (eval $ac_try) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; }; then
12314   ac_lo=$ac_mid; break
12315 else
12316   echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_hi=`expr '(' $ac_mid ')' - 1`
12320                        if test $ac_mid -le $ac_hi; then
12321                          ac_lo= ac_hi=
12322                          break
12323                        fi
12324                        ac_mid=`expr 2 '*' $ac_mid`
12325 fi
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12327   done
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 ac_lo= ac_hi=
12333 fi
12334 rm -f conftest.$ac_objext conftest.$ac_ext
12335 fi
12336 rm -f conftest.$ac_objext conftest.$ac_ext
12337 # Binary search between lo and hi bounds.
12338 while test "x$ac_lo" != "x$ac_hi"; do
12339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12340   cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 $ac_includes_default
12348 int
12349 main ()
12350 {
12351 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12352 test_array [0] = 0
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360   (eval $ac_compile) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   ac_hi=$ac_mid
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ac_lo=`expr '(' $ac_mid ')' + 1`
12376 fi
12377 rm -f conftest.$ac_objext conftest.$ac_ext
12378 done
12379 case $ac_lo in
12380 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12382 See \`config.log' for more details." >&5
12383 echo "$as_me: error: cannot compute sizeof (short int), 77
12384 See \`config.log' for more details." >&2;}
12385    { (exit 1); exit 1; }; } ;;
12386 esac
12387 else
12388   if test "$cross_compiling" = yes; then
12389   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12390 See \`config.log' for more details." >&5
12391 echo "$as_me: error: cannot run test program while cross compiling
12392 See \`config.log' for more details." >&2;}
12393    { (exit 1); exit 1; }; }
12394 else
12395   cat >conftest.$ac_ext <<_ACEOF
12396 #line $LINENO "configure"
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402 $ac_includes_default
12403 long longval () { return (long) (sizeof (short int)); }
12404 unsigned long ulongval () { return (long) (sizeof (short int)); }
12405 #include <stdio.h>
12406 #include <stdlib.h>
12407 int
12408 main ()
12409 {
12410
12411   FILE *f = fopen ("conftest.val", "w");
12412   if (! f)
12413     exit (1);
12414   if (((long) (sizeof (short int))) < 0)
12415     {
12416       long i = longval ();
12417       if (i != ((long) (sizeof (short int))))
12418         exit (1);
12419       fprintf (f, "%ld\n", i);
12420     }
12421   else
12422     {
12423       unsigned long i = ulongval ();
12424       if (i != ((long) (sizeof (short int))))
12425         exit (1);
12426       fprintf (f, "%lu\n", i);
12427     }
12428   exit (ferror (f) || fclose (f) != 0);
12429
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest$ac_exeext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436   (eval $ac_link) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441   (eval $ac_try) 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_cv_sizeof_short_int=`cat conftest.val`
12446 else
12447   echo "$as_me: program exited with status $ac_status" >&5
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 ( exit $ac_status )
12452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12453 See \`config.log' for more details." >&5
12454 echo "$as_me: error: cannot compute sizeof (short int), 77
12455 See \`config.log' for more details." >&2;}
12456    { (exit 1); exit 1; }; }
12457 fi
12458 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 fi
12461 rm -f conftest.val
12462 else
12463   ac_cv_sizeof_short_int=0
12464 fi
12465 fi
12466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12467 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12468 cat >>confdefs.h <<_ACEOF
12469 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12470 _ACEOF
12471
12472
12473 echo "$as_me:$LINENO: checking for int" >&5
12474 echo $ECHO_N "checking for int... $ECHO_C" >&6
12475 if test "${ac_cv_type_int+set}" = set; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
12487 main ()
12488 {
12489 if ((int *) 0)
12490   return 0;
12491 if (sizeof (int))
12492   return 0;
12493   ;
12494   return 0;
12495 }
12496 _ACEOF
12497 rm -f conftest.$ac_objext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12499   (eval $ac_compile) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } &&
12503          { ac_try='test -s conftest.$ac_objext'
12504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505   (eval $ac_try) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; }; then
12509   ac_cv_type_int=yes
12510 else
12511   echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514 ac_cv_type_int=no
12515 fi
12516 rm -f conftest.$ac_objext conftest.$ac_ext
12517 fi
12518 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12519 echo "${ECHO_T}$ac_cv_type_int" >&6
12520
12521 echo "$as_me:$LINENO: checking size of int" >&5
12522 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12523 if test "${ac_cv_sizeof_int+set}" = set; then
12524   echo $ECHO_N "(cached) $ECHO_C" >&6
12525 else
12526   if test "$ac_cv_type_int" = yes; then
12527   # The cast to unsigned long works around a bug in the HP C Compiler
12528   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12529   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12530   # This bug is HP SR number 8606223364.
12531   if test "$cross_compiling" = yes; then
12532   # Depending upon the size, compute the lo and hi bounds.
12533 cat >conftest.$ac_ext <<_ACEOF
12534 #line $LINENO "configure"
12535 /* confdefs.h.  */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h.  */
12540 $ac_includes_default
12541 int
12542 main ()
12543 {
12544 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12545 test_array [0] = 0
12546
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553   (eval $ac_compile) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } &&
12557          { ac_try='test -s conftest.$ac_objext'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_lo=0 ac_mid=0
12564   while :; do
12565     cat >conftest.$ac_ext <<_ACEOF
12566 #line $LINENO "configure"
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572 $ac_includes_default
12573 int
12574 main ()
12575 {
12576 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12577 test_array [0] = 0
12578
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 rm -f conftest.$ac_objext
12584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12585   (eval $ac_compile) 2>&5
12586   ac_status=$?
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } &&
12589          { ac_try='test -s conftest.$ac_objext'
12590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591   (eval $ac_try) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }; }; then
12595   ac_hi=$ac_mid; break
12596 else
12597   echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12599
12600 ac_lo=`expr $ac_mid + 1`
12601                     if test $ac_lo -le $ac_mid; then
12602                       ac_lo= ac_hi=
12603                       break
12604                     fi
12605                     ac_mid=`expr 2 '*' $ac_mid + 1`
12606 fi
12607 rm -f conftest.$ac_objext conftest.$ac_ext
12608   done
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 /* confdefs.h.  */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h.  */
12620 $ac_includes_default
12621 int
12622 main ()
12623 {
12624 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12625 test_array [0] = 0
12626
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633   (eval $ac_compile) 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); } &&
12637          { ac_try='test -s conftest.$ac_objext'
12638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639   (eval $ac_try) 2>&5
12640   ac_status=$?
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); }; }; then
12643   ac_hi=-1 ac_mid=-1
12644   while :; do
12645     cat >conftest.$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652 $ac_includes_default
12653 int
12654 main ()
12655 {
12656 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12657 test_array [0] = 0
12658
12659   ;
12660   return 0;
12661 }
12662 _ACEOF
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665   (eval $ac_compile) 2>&5
12666   ac_status=$?
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } &&
12669          { ac_try='test -s conftest.$ac_objext'
12670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671   (eval $ac_try) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; }; then
12675   ac_lo=$ac_mid; break
12676 else
12677   echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ac_hi=`expr '(' $ac_mid ')' - 1`
12681                        if test $ac_mid -le $ac_hi; then
12682                          ac_lo= ac_hi=
12683                          break
12684                        fi
12685                        ac_mid=`expr 2 '*' $ac_mid`
12686 fi
12687 rm -f conftest.$ac_objext conftest.$ac_ext
12688   done
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 ac_lo= ac_hi=
12694 fi
12695 rm -f conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 rm -f conftest.$ac_objext conftest.$ac_ext
12698 # Binary search between lo and hi bounds.
12699 while test "x$ac_lo" != "x$ac_hi"; do
12700   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12701   cat >conftest.$ac_ext <<_ACEOF
12702 #line $LINENO "configure"
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708 $ac_includes_default
12709 int
12710 main ()
12711 {
12712 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12713 test_array [0] = 0
12714
12715   ;
12716   return 0;
12717 }
12718 _ACEOF
12719 rm -f conftest.$ac_objext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12721   (eval $ac_compile) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); } &&
12725          { ac_try='test -s conftest.$ac_objext'
12726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727   (eval $ac_try) 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); }; }; then
12731   ac_hi=$ac_mid
12732 else
12733   echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 ac_lo=`expr '(' $ac_mid ')' + 1`
12737 fi
12738 rm -f conftest.$ac_objext conftest.$ac_ext
12739 done
12740 case $ac_lo in
12741 ?*) ac_cv_sizeof_int=$ac_lo;;
12742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12743 See \`config.log' for more details." >&5
12744 echo "$as_me: error: cannot compute sizeof (int), 77
12745 See \`config.log' for more details." >&2;}
12746    { (exit 1); exit 1; }; } ;;
12747 esac
12748 else
12749   if test "$cross_compiling" = yes; then
12750   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12751 See \`config.log' for more details." >&5
12752 echo "$as_me: error: cannot run test program while cross compiling
12753 See \`config.log' for more details." >&2;}
12754    { (exit 1); exit 1; }; }
12755 else
12756   cat >conftest.$ac_ext <<_ACEOF
12757 #line $LINENO "configure"
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763 $ac_includes_default
12764 long longval () { return (long) (sizeof (int)); }
12765 unsigned long ulongval () { return (long) (sizeof (int)); }
12766 #include <stdio.h>
12767 #include <stdlib.h>
12768 int
12769 main ()
12770 {
12771
12772   FILE *f = fopen ("conftest.val", "w");
12773   if (! f)
12774     exit (1);
12775   if (((long) (sizeof (int))) < 0)
12776     {
12777       long i = longval ();
12778       if (i != ((long) (sizeof (int))))
12779         exit (1);
12780       fprintf (f, "%ld\n", i);
12781     }
12782   else
12783     {
12784       unsigned long i = ulongval ();
12785       if (i != ((long) (sizeof (int))))
12786         exit (1);
12787       fprintf (f, "%lu\n", i);
12788     }
12789   exit (ferror (f) || fclose (f) != 0);
12790
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797   (eval $ac_link) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   ac_cv_sizeof_int=`cat conftest.val`
12807 else
12808   echo "$as_me: program exited with status $ac_status" >&5
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 ( exit $ac_status )
12813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12814 See \`config.log' for more details." >&5
12815 echo "$as_me: error: cannot compute sizeof (int), 77
12816 See \`config.log' for more details." >&2;}
12817    { (exit 1); exit 1; }; }
12818 fi
12819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12820 fi
12821 fi
12822 rm -f conftest.val
12823 else
12824   ac_cv_sizeof_int=0
12825 fi
12826 fi
12827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12828 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12829 cat >>confdefs.h <<_ACEOF
12830 #define SIZEOF_INT $ac_cv_sizeof_int
12831 _ACEOF
12832
12833
12834 echo "$as_me:$LINENO: checking for long int" >&5
12835 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12836 if test "${ac_cv_type_long_int+set}" = set; then
12837   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
12848 main ()
12849 {
12850 if ((long int *) 0)
12851   return 0;
12852 if (sizeof (long int))
12853   return 0;
12854   ;
12855   return 0;
12856 }
12857 _ACEOF
12858 rm -f conftest.$ac_objext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860   (eval $ac_compile) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); } &&
12864          { ac_try='test -s conftest.$ac_objext'
12865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866   (eval $ac_try) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; }; then
12870   ac_cv_type_long_int=yes
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 ac_cv_type_long_int=no
12876 fi
12877 rm -f conftest.$ac_objext conftest.$ac_ext
12878 fi
12879 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12880 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12881
12882 echo "$as_me:$LINENO: checking size of long int" >&5
12883 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12884 if test "${ac_cv_sizeof_long_int+set}" = set; then
12885   echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887   if test "$ac_cv_type_long_int" = yes; then
12888   # The cast to unsigned long works around a bug in the HP C Compiler
12889   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12890   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12891   # This bug is HP SR number 8606223364.
12892   if test "$cross_compiling" = yes; then
12893   # Depending upon the size, compute the lo and hi bounds.
12894 cat >conftest.$ac_ext <<_ACEOF
12895 #line $LINENO "configure"
12896 /* confdefs.h.  */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h.  */
12901 $ac_includes_default
12902 int
12903 main ()
12904 {
12905 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12906 test_array [0] = 0
12907
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 rm -f conftest.$ac_objext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914   (eval $ac_compile) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } &&
12918          { ac_try='test -s conftest.$ac_objext'
12919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920   (eval $ac_try) 2>&5
12921   ac_status=$?
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); }; }; then
12924   ac_lo=0 ac_mid=0
12925   while :; do
12926     cat >conftest.$ac_ext <<_ACEOF
12927 #line $LINENO "configure"
12928 /* confdefs.h.  */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h.  */
12933 $ac_includes_default
12934 int
12935 main ()
12936 {
12937 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12938 test_array [0] = 0
12939
12940   ;
12941   return 0;
12942 }
12943 _ACEOF
12944 rm -f conftest.$ac_objext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946   (eval $ac_compile) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } &&
12950          { ac_try='test -s conftest.$ac_objext'
12951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952   (eval $ac_try) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); }; }; then
12956   ac_hi=$ac_mid; break
12957 else
12958   echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 ac_lo=`expr $ac_mid + 1`
12962                     if test $ac_lo -le $ac_mid; then
12963                       ac_lo= ac_hi=
12964                       break
12965                     fi
12966                     ac_mid=`expr 2 '*' $ac_mid + 1`
12967 fi
12968 rm -f conftest.$ac_objext conftest.$ac_ext
12969   done
12970 else
12971   echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line $LINENO "configure"
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981 $ac_includes_default
12982 int
12983 main ()
12984 {
12985 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12986 test_array [0] = 0
12987
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994   (eval $ac_compile) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -s conftest.$ac_objext'
12999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000   (eval $ac_try) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; }; then
13004   ac_hi=-1 ac_mid=-1
13005   while :; do
13006     cat >conftest.$ac_ext <<_ACEOF
13007 #line $LINENO "configure"
13008 /* confdefs.h.  */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h.  */
13013 $ac_includes_default
13014 int
13015 main ()
13016 {
13017 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13018 test_array [0] = 0
13019
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026   (eval $ac_compile) 2>&5
13027   ac_status=$?
13028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029   (exit $ac_status); } &&
13030          { ac_try='test -s conftest.$ac_objext'
13031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032   (eval $ac_try) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; }; then
13036   ac_lo=$ac_mid; break
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041 ac_hi=`expr '(' $ac_mid ')' - 1`
13042                        if test $ac_mid -le $ac_hi; then
13043                          ac_lo= ac_hi=
13044                          break
13045                        fi
13046                        ac_mid=`expr 2 '*' $ac_mid`
13047 fi
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13049   done
13050 else
13051   echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 ac_lo= ac_hi=
13055 fi
13056 rm -f conftest.$ac_objext conftest.$ac_ext
13057 fi
13058 rm -f conftest.$ac_objext conftest.$ac_ext
13059 # Binary search between lo and hi bounds.
13060 while test "x$ac_lo" != "x$ac_hi"; do
13061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13062   cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13064 /* confdefs.h.  */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h.  */
13069 $ac_includes_default
13070 int
13071 main ()
13072 {
13073 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13074 test_array [0] = 0
13075
13076   ;
13077   return 0;
13078 }
13079 _ACEOF
13080 rm -f conftest.$ac_objext
13081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082   (eval $ac_compile) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); } &&
13086          { ac_try='test -s conftest.$ac_objext'
13087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088   (eval $ac_try) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; }; then
13092   ac_hi=$ac_mid
13093 else
13094   echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096
13097 ac_lo=`expr '(' $ac_mid ')' + 1`
13098 fi
13099 rm -f conftest.$ac_objext conftest.$ac_ext
13100 done
13101 case $ac_lo in
13102 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13104 See \`config.log' for more details." >&5
13105 echo "$as_me: error: cannot compute sizeof (long int), 77
13106 See \`config.log' for more details." >&2;}
13107    { (exit 1); exit 1; }; } ;;
13108 esac
13109 else
13110   if test "$cross_compiling" = yes; then
13111   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13112 See \`config.log' for more details." >&5
13113 echo "$as_me: error: cannot run test program while cross compiling
13114 See \`config.log' for more details." >&2;}
13115    { (exit 1); exit 1; }; }
13116 else
13117   cat >conftest.$ac_ext <<_ACEOF
13118 #line $LINENO "configure"
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124 $ac_includes_default
13125 long longval () { return (long) (sizeof (long int)); }
13126 unsigned long ulongval () { return (long) (sizeof (long int)); }
13127 #include <stdio.h>
13128 #include <stdlib.h>
13129 int
13130 main ()
13131 {
13132
13133   FILE *f = fopen ("conftest.val", "w");
13134   if (! f)
13135     exit (1);
13136   if (((long) (sizeof (long int))) < 0)
13137     {
13138       long i = longval ();
13139       if (i != ((long) (sizeof (long int))))
13140         exit (1);
13141       fprintf (f, "%ld\n", i);
13142     }
13143   else
13144     {
13145       unsigned long i = ulongval ();
13146       if (i != ((long) (sizeof (long int))))
13147         exit (1);
13148       fprintf (f, "%lu\n", i);
13149     }
13150   exit (ferror (f) || fclose (f) != 0);
13151
13152   ;
13153   return 0;
13154 }
13155 _ACEOF
13156 rm -f conftest$ac_exeext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13158   (eval $ac_link) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167   ac_cv_sizeof_long_int=`cat conftest.val`
13168 else
13169   echo "$as_me: program exited with status $ac_status" >&5
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 ( exit $ac_status )
13174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13175 See \`config.log' for more details." >&5
13176 echo "$as_me: error: cannot compute sizeof (long int), 77
13177 See \`config.log' for more details." >&2;}
13178    { (exit 1); exit 1; }; }
13179 fi
13180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13181 fi
13182 fi
13183 rm -f conftest.val
13184 else
13185   ac_cv_sizeof_long_int=0
13186 fi
13187 fi
13188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13189 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13190 cat >>confdefs.h <<_ACEOF
13191 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13192 _ACEOF
13193
13194
13195 echo "$as_me:$LINENO: checking for long long int" >&5
13196 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13197 if test "${ac_cv_type_long_long_int+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
13209 main ()
13210 {
13211 if ((long long int *) 0)
13212   return 0;
13213 if (sizeof (long long int))
13214   return 0;
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13221   (eval $ac_compile) 2>&5
13222   ac_status=$?
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); } &&
13225          { ac_try='test -s conftest.$ac_objext'
13226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227   (eval $ac_try) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; }; then
13231   ac_cv_type_long_long_int=yes
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236 ac_cv_type_long_long_int=no
13237 fi
13238 rm -f conftest.$ac_objext conftest.$ac_ext
13239 fi
13240 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13241 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13242
13243 echo "$as_me:$LINENO: checking size of long long int" >&5
13244 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13245 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13246   echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248   if test "$ac_cv_type_long_long_int" = yes; then
13249   # The cast to unsigned long works around a bug in the HP C Compiler
13250   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13251   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13252   # This bug is HP SR number 8606223364.
13253   if test "$cross_compiling" = yes; then
13254   # Depending upon the size, compute the lo and hi bounds.
13255 cat >conftest.$ac_ext <<_ACEOF
13256 #line $LINENO "configure"
13257 /* confdefs.h.  */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h.  */
13262 $ac_includes_default
13263 int
13264 main ()
13265 {
13266 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13267 test_array [0] = 0
13268
13269   ;
13270   return 0;
13271 }
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275   (eval $ac_compile) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } &&
13279          { ac_try='test -s conftest.$ac_objext'
13280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281   (eval $ac_try) 2>&5
13282   ac_status=$?
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); }; }; then
13285   ac_lo=0 ac_mid=0
13286   while :; do
13287     cat >conftest.$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 $ac_includes_default
13295 int
13296 main ()
13297 {
13298 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13299 test_array [0] = 0
13300
13301   ;
13302   return 0;
13303 }
13304 _ACEOF
13305 rm -f conftest.$ac_objext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307   (eval $ac_compile) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); } &&
13311          { ac_try='test -s conftest.$ac_objext'
13312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313   (eval $ac_try) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }; }; then
13317   ac_hi=$ac_mid; break
13318 else
13319   echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322 ac_lo=`expr $ac_mid + 1`
13323                     if test $ac_lo -le $ac_mid; then
13324                       ac_lo= ac_hi=
13325                       break
13326                     fi
13327                     ac_mid=`expr 2 '*' $ac_mid + 1`
13328 fi
13329 rm -f conftest.$ac_objext conftest.$ac_ext
13330   done
13331 else
13332   echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #line $LINENO "configure"
13337 /* confdefs.h.  */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h.  */
13342 $ac_includes_default
13343 int
13344 main ()
13345 {
13346 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13347 test_array [0] = 0
13348
13349   ;
13350   return 0;
13351 }
13352 _ACEOF
13353 rm -f conftest.$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355   (eval $ac_compile) 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); } &&
13359          { ac_try='test -s conftest.$ac_objext'
13360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361   (eval $ac_try) 2>&5
13362   ac_status=$?
13363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364   (exit $ac_status); }; }; then
13365   ac_hi=-1 ac_mid=-1
13366   while :; do
13367     cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374 $ac_includes_default
13375 int
13376 main ()
13377 {
13378 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13379 test_array [0] = 0
13380
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387   (eval $ac_compile) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } &&
13391          { ac_try='test -s conftest.$ac_objext'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; }; then
13397   ac_lo=$ac_mid; break
13398 else
13399   echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 ac_hi=`expr '(' $ac_mid ')' - 1`
13403                        if test $ac_mid -le $ac_hi; then
13404                          ac_lo= ac_hi=
13405                          break
13406                        fi
13407                        ac_mid=`expr 2 '*' $ac_mid`
13408 fi
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13410   done
13411 else
13412   echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13414
13415 ac_lo= ac_hi=
13416 fi
13417 rm -f conftest.$ac_objext conftest.$ac_ext
13418 fi
13419 rm -f conftest.$ac_objext conftest.$ac_ext
13420 # Binary search between lo and hi bounds.
13421 while test "x$ac_lo" != "x$ac_hi"; do
13422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13423   cat >conftest.$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13425 /* confdefs.h.  */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h.  */
13430 $ac_includes_default
13431 int
13432 main ()
13433 {
13434 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13435 test_array [0] = 0
13436
13437   ;
13438   return 0;
13439 }
13440 _ACEOF
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443   (eval $ac_compile) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -s conftest.$ac_objext'
13448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449   (eval $ac_try) 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }; then
13453   ac_hi=$ac_mid
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458 ac_lo=`expr '(' $ac_mid ')' + 1`
13459 fi
13460 rm -f conftest.$ac_objext conftest.$ac_ext
13461 done
13462 case $ac_lo in
13463 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13465 See \`config.log' for more details." >&5
13466 echo "$as_me: error: cannot compute sizeof (long long int), 77
13467 See \`config.log' for more details." >&2;}
13468    { (exit 1); exit 1; }; } ;;
13469 esac
13470 else
13471   if test "$cross_compiling" = yes; then
13472   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13473 See \`config.log' for more details." >&5
13474 echo "$as_me: error: cannot run test program while cross compiling
13475 See \`config.log' for more details." >&2;}
13476    { (exit 1); exit 1; }; }
13477 else
13478   cat >conftest.$ac_ext <<_ACEOF
13479 #line $LINENO "configure"
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485 $ac_includes_default
13486 long longval () { return (long) (sizeof (long long int)); }
13487 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13488 #include <stdio.h>
13489 #include <stdlib.h>
13490 int
13491 main ()
13492 {
13493
13494   FILE *f = fopen ("conftest.val", "w");
13495   if (! f)
13496     exit (1);
13497   if (((long) (sizeof (long long int))) < 0)
13498     {
13499       long i = longval ();
13500       if (i != ((long) (sizeof (long long int))))
13501         exit (1);
13502       fprintf (f, "%ld\n", i);
13503     }
13504   else
13505     {
13506       unsigned long i = ulongval ();
13507       if (i != ((long) (sizeof (long long int))))
13508         exit (1);
13509       fprintf (f, "%lu\n", i);
13510     }
13511   exit (ferror (f) || fclose (f) != 0);
13512
13513   ;
13514   return 0;
13515 }
13516 _ACEOF
13517 rm -f conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519   (eval $ac_link) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524   (eval $ac_try) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; }; then
13528   ac_cv_sizeof_long_long_int=`cat conftest.val`
13529 else
13530   echo "$as_me: program exited with status $ac_status" >&5
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 ( exit $ac_status )
13535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13536 See \`config.log' for more details." >&5
13537 echo "$as_me: error: cannot compute sizeof (long long int), 77
13538 See \`config.log' for more details." >&2;}
13539    { (exit 1); exit 1; }; }
13540 fi
13541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13542 fi
13543 fi
13544 rm -f conftest.val
13545 else
13546   ac_cv_sizeof_long_long_int=0
13547 fi
13548 fi
13549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13550 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13551 cat >>confdefs.h <<_ACEOF
13552 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13553 _ACEOF
13554
13555
13556 echo "$as_me:$LINENO: checking for int *" >&5
13557 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13558 if test "${ac_cv_type_int_p+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
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 int
13570 main ()
13571 {
13572 if ((int * *) 0)
13573   return 0;
13574 if (sizeof (int *))
13575   return 0;
13576   ;
13577   return 0;
13578 }
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582   (eval $ac_compile) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); } &&
13586          { ac_try='test -s conftest.$ac_objext'
13587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588   (eval $ac_try) 2>&5
13589   ac_status=$?
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); }; }; then
13592   ac_cv_type_int_p=yes
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 ac_cv_type_int_p=no
13598 fi
13599 rm -f conftest.$ac_objext conftest.$ac_ext
13600 fi
13601 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13602 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13603
13604 echo "$as_me:$LINENO: checking size of int *" >&5
13605 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13606 if test "${ac_cv_sizeof_int_p+set}" = set; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   if test "$ac_cv_type_int_p" = yes; then
13610   # The cast to unsigned long works around a bug in the HP C Compiler
13611   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13612   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13613   # This bug is HP SR number 8606223364.
13614   if test "$cross_compiling" = yes; then
13615   # Depending upon the size, compute the lo and hi bounds.
13616 cat >conftest.$ac_ext <<_ACEOF
13617 #line $LINENO "configure"
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 $ac_includes_default
13624 int
13625 main ()
13626 {
13627 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13628 test_array [0] = 0
13629
13630   ;
13631   return 0;
13632 }
13633 _ACEOF
13634 rm -f conftest.$ac_objext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636   (eval $ac_compile) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); } &&
13640          { ac_try='test -s conftest.$ac_objext'
13641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642   (eval $ac_try) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; }; then
13646   ac_lo=0 ac_mid=0
13647   while :; do
13648     cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 /* confdefs.h.  */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h.  */
13655 $ac_includes_default
13656 int
13657 main ()
13658 {
13659 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13660 test_array [0] = 0
13661
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668   (eval $ac_compile) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -s conftest.$ac_objext'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; }; then
13678   ac_hi=$ac_mid; break
13679 else
13680   echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683 ac_lo=`expr $ac_mid + 1`
13684                     if test $ac_lo -le $ac_mid; then
13685                       ac_lo= ac_hi=
13686                       break
13687                     fi
13688                     ac_mid=`expr 2 '*' $ac_mid + 1`
13689 fi
13690 rm -f conftest.$ac_objext conftest.$ac_ext
13691   done
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13698 /* confdefs.h.  */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h.  */
13703 $ac_includes_default
13704 int
13705 main ()
13706 {
13707 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13708 test_array [0] = 0
13709
13710   ;
13711   return 0;
13712 }
13713 _ACEOF
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716   (eval $ac_compile) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -s conftest.$ac_objext'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; }; then
13726   ac_hi=-1 ac_mid=-1
13727   while :; do
13728     cat >conftest.$ac_ext <<_ACEOF
13729 #line $LINENO "configure"
13730 /* confdefs.h.  */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h.  */
13735 $ac_includes_default
13736 int
13737 main ()
13738 {
13739 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13740 test_array [0] = 0
13741
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748   (eval $ac_compile) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -s conftest.$ac_objext'
13753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754   (eval $ac_try) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   ac_lo=$ac_mid; break
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 ac_hi=`expr '(' $ac_mid ')' - 1`
13764                        if test $ac_mid -le $ac_hi; then
13765                          ac_lo= ac_hi=
13766                          break
13767                        fi
13768                        ac_mid=`expr 2 '*' $ac_mid`
13769 fi
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13771   done
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 ac_lo= ac_hi=
13777 fi
13778 rm -f conftest.$ac_objext conftest.$ac_ext
13779 fi
13780 rm -f conftest.$ac_objext conftest.$ac_ext
13781 # Binary search between lo and hi bounds.
13782 while test "x$ac_lo" != "x$ac_hi"; do
13783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13784   cat >conftest.$ac_ext <<_ACEOF
13785 #line $LINENO "configure"
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 $ac_includes_default
13792 int
13793 main ()
13794 {
13795 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13796 test_array [0] = 0
13797
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804   (eval $ac_compile) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); } &&
13808          { ac_try='test -s conftest.$ac_objext'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814   ac_hi=$ac_mid
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 ac_lo=`expr '(' $ac_mid ')' + 1`
13820 fi
13821 rm -f conftest.$ac_objext conftest.$ac_ext
13822 done
13823 case $ac_lo in
13824 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13826 See \`config.log' for more details." >&5
13827 echo "$as_me: error: cannot compute sizeof (int *), 77
13828 See \`config.log' for more details." >&2;}
13829    { (exit 1); exit 1; }; } ;;
13830 esac
13831 else
13832   if test "$cross_compiling" = yes; then
13833   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13834 See \`config.log' for more details." >&5
13835 echo "$as_me: error: cannot run test program while cross compiling
13836 See \`config.log' for more details." >&2;}
13837    { (exit 1); exit 1; }; }
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847 long longval () { return (long) (sizeof (int *)); }
13848 unsigned long ulongval () { return (long) (sizeof (int *)); }
13849 #include <stdio.h>
13850 #include <stdlib.h>
13851 int
13852 main ()
13853 {
13854
13855   FILE *f = fopen ("conftest.val", "w");
13856   if (! f)
13857     exit (1);
13858   if (((long) (sizeof (int *))) < 0)
13859     {
13860       long i = longval ();
13861       if (i != ((long) (sizeof (int *))))
13862         exit (1);
13863       fprintf (f, "%ld\n", i);
13864     }
13865   else
13866     {
13867       unsigned long i = ulongval ();
13868       if (i != ((long) (sizeof (int *))))
13869         exit (1);
13870       fprintf (f, "%lu\n", i);
13871     }
13872   exit (ferror (f) || fclose (f) != 0);
13873
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest$ac_exeext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880   (eval $ac_link) 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885   (eval $ac_try) 2>&5
13886   ac_status=$?
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); }; }; then
13889   ac_cv_sizeof_int_p=`cat conftest.val`
13890 else
13891   echo "$as_me: program exited with status $ac_status" >&5
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895 ( exit $ac_status )
13896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13897 See \`config.log' for more details." >&5
13898 echo "$as_me: error: cannot compute sizeof (int *), 77
13899 See \`config.log' for more details." >&2;}
13900    { (exit 1); exit 1; }; }
13901 fi
13902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13903 fi
13904 fi
13905 rm -f conftest.val
13906 else
13907   ac_cv_sizeof_int_p=0
13908 fi
13909 fi
13910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13911 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13912 cat >>confdefs.h <<_ACEOF
13913 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13914 _ACEOF
13915
13916
13917
13918 # Check for sys/types.h types
13919 echo "$as_me:$LINENO: checking for u_int type" >&5
13920 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13921 if test "${ac_cv_have_u_int+set}" = set; then
13922   echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924
13925     cat >conftest.$ac_ext <<_ACEOF
13926 #line $LINENO "configure"
13927 /* confdefs.h.  */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h.  */
13932  #include <sys/types.h>
13933 int
13934 main ()
13935 {
13936  u_int a; a = 1;
13937   ;
13938   return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943   (eval $ac_compile) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); } &&
13947          { ac_try='test -s conftest.$ac_objext'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; }; then
13953    ac_cv_have_u_int="yes"
13954 else
13955   echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958  ac_cv_have_u_int="no"
13959
13960 fi
13961 rm -f conftest.$ac_objext conftest.$ac_ext
13962
13963 fi
13964 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13965 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13966 if test "x$ac_cv_have_u_int" = "xyes" ; then
13967    cat >>confdefs.h <<\_ACEOF
13968 #define HAVE_U_INT 1
13969 _ACEOF
13970
13971    have_u_int=1
13972 fi
13973
13974 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13975 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13976 if test "${ac_cv_have_intmax_t+set}" = set; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979
13980    cat >conftest.$ac_ext <<_ACEOF
13981 #line $LINENO "configure"
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987  #include <sys/types.h>
13988 int
13989 main ()
13990 {
13991  intmax_t a; a = 1;
13992   ;
13993   return 0;
13994 }
13995 _ACEOF
13996 rm -f conftest.$ac_objext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998   (eval $ac_compile) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } &&
14002          { ac_try='test -s conftest.$ac_objext'
14003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004   (eval $ac_try) 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; }; then
14008    ac_cv_have_intmax_t="yes"
14009 else
14010   echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14012
14013
14014          cat >conftest.$ac_ext <<_ACEOF
14015 #line $LINENO "configure"
14016 /* confdefs.h.  */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h.  */
14021  #include <stdint.h>
14022 int
14023 main ()
14024 {
14025  intmax_t a; a = 1;
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032   (eval $ac_compile) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } &&
14036          { ac_try='test -s conftest.$ac_objext'
14037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038   (eval $ac_try) 2>&5
14039   ac_status=$?
14040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041   (exit $ac_status); }; }; then
14042    ac_cv_have_intmax_t="yes"
14043 else
14044   echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047  ac_cv_have_intmax_t="no"
14048
14049 fi
14050 rm -f conftest.$ac_objext conftest.$ac_ext
14051
14052
14053 fi
14054 rm -f conftest.$ac_objext conftest.$ac_ext
14055
14056
14057 fi
14058 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14059 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14060 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14061    cat >>confdefs.h <<\_ACEOF
14062 #define HAVE_INTMAX_T 1
14063 _ACEOF
14064
14065    have_intmax_t=1
14066 fi
14067
14068
14069 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14070 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14071 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14072   echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074
14075    cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14077 /* confdefs.h.  */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h.  */
14082  #include <sys/types.h>
14083 int
14084 main ()
14085 {
14086  u_intmax_t a; a = 1;
14087   ;
14088   return 0;
14089 }
14090 _ACEOF
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093   (eval $ac_compile) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } &&
14097          { ac_try='test -s conftest.$ac_objext'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103    ac_cv_have_u_intmax_t="yes"
14104 else
14105   echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108
14109          cat >conftest.$ac_ext <<_ACEOF
14110 #line $LINENO "configure"
14111 /* confdefs.h.  */
14112 _ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h.  */
14116  #include <stdint.h>
14117 int
14118 main ()
14119 {
14120  u_intmax_t a; a = 1;
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127   (eval $ac_compile) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137    ac_cv_have_u_intmax_t="yes"
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142  ac_cv_have_u_intmax_t="no"
14143
14144 fi
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14146
14147
14148 fi
14149 rm -f conftest.$ac_objext conftest.$ac_ext
14150
14151 fi
14152 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14153 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14154 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14155    cat >>confdefs.h <<\_ACEOF
14156 #define HAVE_U_INTMAX_T 1
14157 _ACEOF
14158
14159    have_u_intmax_t=1
14160 fi
14161
14162
14163 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14164 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14165 if test "${ac_cv_have_intxx_t+set}" = set; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168
14169    cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14171 /* confdefs.h.  */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h.  */
14176  #include <sys/types.h>
14177 int
14178 main ()
14179 {
14180  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14181   ;
14182   return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14187   (eval $ac_compile) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -s conftest.$ac_objext'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; }; then
14197    ac_cv_have_intxx_t="yes"
14198 else
14199   echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14201
14202  ac_cv_have_intxx_t="no"
14203
14204 fi
14205 rm -f conftest.$ac_objext conftest.$ac_ext
14206
14207 fi
14208 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14209 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14210 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14211    cat >>confdefs.h <<\_ACEOF
14212 #define HAVE_INTXX_T 1
14213 _ACEOF
14214
14215    have_intxx_t=1
14216 fi
14217
14218 echo "$as_me:$LINENO: checking for int64_t type" >&5
14219 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14220 if test "${ac_cv_have_int64_t+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223
14224    cat >conftest.$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231  #include <sys/types.h>
14232 int
14233 main ()
14234 {
14235  int64_t a; a = 1;
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242   (eval $ac_compile) 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); } &&
14246          { ac_try='test -s conftest.$ac_objext'
14247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248   (eval $ac_try) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; }; then
14252    ac_cv_have_int64_t="yes"
14253 else
14254   echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257  ac_cv_have_int64_t="no"
14258
14259 fi
14260 rm -f conftest.$ac_objext conftest.$ac_ext
14261
14262 fi
14263 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14264 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14265 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14266    cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_INT64_T 1
14268 _ACEOF
14269
14270    have_int64_t=1
14271 fi
14272
14273 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14274 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14275 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14276   echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278
14279    cat >conftest.$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286  #include <sys/types.h>
14287 int
14288 main ()
14289 {
14290  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297   (eval $ac_compile) 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); } &&
14301          { ac_try='test -s conftest.$ac_objext'
14302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303   (eval $ac_try) 2>&5
14304   ac_status=$?
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); }; }; then
14307    ac_cv_have_u_intxx_t="yes"
14308 else
14309   echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312  ac_cv_have_u_intxx_t="no"
14313
14314 fi
14315 rm -f conftest.$ac_objext conftest.$ac_ext
14316
14317 fi
14318 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14319 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14320 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14321    cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_U_INTXX_T 1
14323 _ACEOF
14324
14325    have_u_intxx_t=1
14326 fi
14327
14328 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14329 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14330 if test "${ac_cv_have_u_int64_t+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333
14334    cat >conftest.$ac_ext <<_ACEOF
14335 #line $LINENO "configure"
14336 /* confdefs.h.  */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h.  */
14341  #include <sys/types.h>
14342 int
14343 main ()
14344 {
14345  u_int64_t a; a = 1;
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352   (eval $ac_compile) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); } &&
14356          { ac_try='test -s conftest.$ac_objext'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; }; then
14362    ac_cv_have_u_int64_t="yes"
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367  ac_cv_have_u_int64_t="no"
14368
14369 fi
14370 rm -f conftest.$ac_objext conftest.$ac_ext
14371
14372 fi
14373 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14374 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14375 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14376    cat >>confdefs.h <<\_ACEOF
14377 #define HAVE_U_INT64_T 1
14378 _ACEOF
14379
14380    have_u_int64_t=1
14381 fi
14382
14383 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14384            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14385 then
14386    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14387 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14388    cat >conftest.$ac_ext <<_ACEOF
14389 #line $LINENO "configure"
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395  #include <sys/bitypes.h>
14396 int
14397 main ()
14398 {
14399  int8_t a; int16_t b; int32_t c;
14400         u_int8_t e; u_int16_t f; u_int32_t g;
14401         a = b = c = e = f = g = 1;
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408   (eval $ac_compile) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -s conftest.$ac_objext'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418    cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_U_INTXX_T 1
14420 _ACEOF
14421
14422         cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_INTXX_T 1
14424 _ACEOF
14425
14426         cat >>confdefs.h <<\_ACEOF
14427 #define HAVE_SYS_BITYPES_H 1
14428 _ACEOF
14429
14430         echo "$as_me:$LINENO: result: yes" >&5
14431 echo "${ECHO_T}yes" >&6
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436  echo "$as_me:$LINENO: result: no" >&5
14437 echo "${ECHO_T}no" >&6
14438
14439 fi
14440 rm -f conftest.$ac_objext conftest.$ac_ext
14441 fi
14442
14443 if test -z "$have_u_intxx_t" ; then
14444    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14445 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14446 if test "${ac_cv_have_uintxx_t+set}" = set; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449
14450       cat >conftest.$ac_ext <<_ACEOF
14451 #line $LINENO "configure"
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457  #include <sys/types.h>
14458 int
14459 main ()
14460 {
14461  uint8_t a; uint16_t b;
14462            uint32_t c; a = b = c = 1;
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } &&
14473          { ac_try='test -s conftest.$ac_objext'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479    ac_cv_have_uintxx_t="yes"
14480 else
14481   echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484  ac_cv_have_uintxx_t="no"
14485
14486 fi
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14488
14489 fi
14490 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14491 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14492    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14493       cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_UINTXX_T 1
14495 _ACEOF
14496
14497    fi
14498 fi
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514 for ac_func in \
14515         fork \
14516         getcwd \
14517         gethostname \
14518         getpid \
14519         gettimeofday \
14520         setpgid \
14521         setpgrp \
14522         setsid \
14523         signal \
14524         strerror \
14525         strncmp \
14526         strncpy \
14527         vfprintf \
14528
14529 do
14530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14531 echo "$as_me:$LINENO: checking for $ac_func" >&5
14532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14533 if eval "test \"\${$as_ac_var+set}\" = set"; then
14534   echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536   cat >conftest.$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14538 /* confdefs.h.  */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h.  */
14543 /* System header to define __stub macros and hopefully few prototypes,
14544     which can conflict with char $ac_func (); below.
14545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14546     <limits.h> exists even on freestanding compilers.  */
14547 #ifdef __STDC__
14548 # include <limits.h>
14549 #else
14550 # include <assert.h>
14551 #endif
14552 /* Override any gcc2 internal prototype to avoid an error.  */
14553 #ifdef __cplusplus
14554 extern "C"
14555 {
14556 #endif
14557 /* We use char because int might match the return type of a gcc2
14558    builtin and then its argument prototype would still apply.  */
14559 char $ac_func ();
14560 /* The GNU C library defines this for functions which it implements
14561     to always fail with ENOSYS.  Some functions are actually named
14562     something starting with __ and the normal name is an alias.  */
14563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14564 choke me
14565 #else
14566 char (*f) () = $ac_func;
14567 #endif
14568 #ifdef __cplusplus
14569 }
14570 #endif
14571
14572 int
14573 main ()
14574 {
14575 return f != $ac_func;
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14582   (eval $ac_link) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -s conftest$ac_exeext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   eval "$as_ac_var=yes"
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 eval "$as_ac_var=no"
14598 fi
14599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14600 fi
14601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14603 if test `eval echo '${'$as_ac_var'}'` = yes; then
14604   cat >>confdefs.h <<_ACEOF
14605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14606 _ACEOF
14607
14608 else
14609   echo 'configure: cannot find needed function.'; exit 1
14610
14611 fi
14612 done
14613
14614
14615
14616 for ac_func in fchdir
14617 do
14618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14619 echo "$as_me:$LINENO: checking for $ac_func" >&5
14620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14621 if eval "test \"\${$as_ac_var+set}\" = set"; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   cat >conftest.$ac_ext <<_ACEOF
14625 #line $LINENO "configure"
14626 /* confdefs.h.  */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h.  */
14631 /* System header to define __stub macros and hopefully few prototypes,
14632     which can conflict with char $ac_func (); below.
14633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14634     <limits.h> exists even on freestanding compilers.  */
14635 #ifdef __STDC__
14636 # include <limits.h>
14637 #else
14638 # include <assert.h>
14639 #endif
14640 /* Override any gcc2 internal prototype to avoid an error.  */
14641 #ifdef __cplusplus
14642 extern "C"
14643 {
14644 #endif
14645 /* We use char because int might match the return type of a gcc2
14646    builtin and then its argument prototype would still apply.  */
14647 char $ac_func ();
14648 /* The GNU C library defines this for functions which it implements
14649     to always fail with ENOSYS.  Some functions are actually named
14650     something starting with __ and the normal name is an alias.  */
14651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14652 choke me
14653 #else
14654 char (*f) () = $ac_func;
14655 #endif
14656 #ifdef __cplusplus
14657 }
14658 #endif
14659
14660 int
14661 main ()
14662 {
14663 return f != $ac_func;
14664   ;
14665   return 0;
14666 }
14667 _ACEOF
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670   (eval $ac_link) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -s conftest$ac_exeext'
14675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676   (eval $ac_try) 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   eval "$as_ac_var=yes"
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685 eval "$as_ac_var=no"
14686 fi
14687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14688 fi
14689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14691 if test `eval echo '${'$as_ac_var'}'` = yes; then
14692   cat >>confdefs.h <<_ACEOF
14693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14694 _ACEOF
14695  cat >>confdefs.h <<\_ACEOF
14696 #define HAVE_FCHDIR 1
14697 _ACEOF
14698
14699 fi
14700 done
14701
14702
14703 for ac_func in strtoll
14704 do
14705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14706 echo "$as_me:$LINENO: checking for $ac_func" >&5
14707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14708 if eval "test \"\${$as_ac_var+set}\" = set"; then
14709   echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711   cat >conftest.$ac_ext <<_ACEOF
14712 #line $LINENO "configure"
14713 /* confdefs.h.  */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h.  */
14718 /* System header to define __stub macros and hopefully few prototypes,
14719     which can conflict with char $ac_func (); below.
14720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14721     <limits.h> exists even on freestanding compilers.  */
14722 #ifdef __STDC__
14723 # include <limits.h>
14724 #else
14725 # include <assert.h>
14726 #endif
14727 /* Override any gcc2 internal prototype to avoid an error.  */
14728 #ifdef __cplusplus
14729 extern "C"
14730 {
14731 #endif
14732 /* We use char because int might match the return type of a gcc2
14733    builtin and then its argument prototype would still apply.  */
14734 char $ac_func ();
14735 /* The GNU C library defines this for functions which it implements
14736     to always fail with ENOSYS.  Some functions are actually named
14737     something starting with __ and the normal name is an alias.  */
14738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14739 choke me
14740 #else
14741 char (*f) () = $ac_func;
14742 #endif
14743 #ifdef __cplusplus
14744 }
14745 #endif
14746
14747 int
14748 main ()
14749 {
14750 return f != $ac_func;
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext conftest$ac_exeext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14757   (eval $ac_link) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } &&
14761          { ac_try='test -s conftest$ac_exeext'
14762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763   (eval $ac_try) 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; }; then
14767   eval "$as_ac_var=yes"
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 eval "$as_ac_var=no"
14773 fi
14774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14775 fi
14776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14778 if test `eval echo '${'$as_ac_var'}'` = yes; then
14779   cat >>confdefs.h <<_ACEOF
14780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781 _ACEOF
14782  cat >>confdefs.h <<\_ACEOF
14783 #define HAVE_STRTOLL 1
14784 _ACEOF
14785
14786 fi
14787 done
14788
14789
14790
14791 for ac_func in chflags
14792 do
14793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14794 echo "$as_me:$LINENO: checking for $ac_func" >&5
14795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14796 if eval "test \"\${$as_ac_var+set}\" = set"; then
14797   echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799   cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 /* System header to define __stub macros and hopefully few prototypes,
14807     which can conflict with char $ac_func (); below.
14808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14809     <limits.h> exists even on freestanding compilers.  */
14810 #ifdef __STDC__
14811 # include <limits.h>
14812 #else
14813 # include <assert.h>
14814 #endif
14815 /* Override any gcc2 internal prototype to avoid an error.  */
14816 #ifdef __cplusplus
14817 extern "C"
14818 {
14819 #endif
14820 /* We use char because int might match the return type of a gcc2
14821    builtin and then its argument prototype would still apply.  */
14822 char $ac_func ();
14823 /* The GNU C library defines this for functions which it implements
14824     to always fail with ENOSYS.  Some functions are actually named
14825     something starting with __ and the normal name is an alias.  */
14826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14827 choke me
14828 #else
14829 char (*f) () = $ac_func;
14830 #endif
14831 #ifdef __cplusplus
14832 }
14833 #endif
14834
14835 int
14836 main ()
14837 {
14838 return f != $ac_func;
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845   (eval $ac_link) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); } &&
14849          { ac_try='test -s conftest$ac_exeext'
14850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851   (eval $ac_try) 2>&5
14852   ac_status=$?
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); }; }; then
14855   eval "$as_ac_var=yes"
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860 eval "$as_ac_var=no"
14861 fi
14862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14863 fi
14864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14866 if test `eval echo '${'$as_ac_var'}'` = yes; then
14867   cat >>confdefs.h <<_ACEOF
14868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14869 _ACEOF
14870
14871 fi
14872 done
14873
14874
14875
14876
14877
14878
14879 for ac_func in snprintf vsnprintf gethostid getdomainname
14880 do
14881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14882 echo "$as_me:$LINENO: checking for $ac_func" >&5
14883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14884 if eval "test \"\${$as_ac_var+set}\" = set"; then
14885   echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887   cat >conftest.$ac_ext <<_ACEOF
14888 #line $LINENO "configure"
14889 /* confdefs.h.  */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h.  */
14894 /* System header to define __stub macros and hopefully few prototypes,
14895     which can conflict with char $ac_func (); below.
14896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14897     <limits.h> exists even on freestanding compilers.  */
14898 #ifdef __STDC__
14899 # include <limits.h>
14900 #else
14901 # include <assert.h>
14902 #endif
14903 /* Override any gcc2 internal prototype to avoid an error.  */
14904 #ifdef __cplusplus
14905 extern "C"
14906 {
14907 #endif
14908 /* We use char because int might match the return type of a gcc2
14909    builtin and then its argument prototype would still apply.  */
14910 char $ac_func ();
14911 /* The GNU C library defines this for functions which it implements
14912     to always fail with ENOSYS.  Some functions are actually named
14913     something starting with __ and the normal name is an alias.  */
14914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14915 choke me
14916 #else
14917 char (*f) () = $ac_func;
14918 #endif
14919 #ifdef __cplusplus
14920 }
14921 #endif
14922
14923 int
14924 main ()
14925 {
14926 return f != $ac_func;
14927   ;
14928   return 0;
14929 }
14930 _ACEOF
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933   (eval $ac_link) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); } &&
14937          { ac_try='test -s conftest$ac_exeext'
14938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939   (eval $ac_try) 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); }; }; then
14943   eval "$as_ac_var=yes"
14944 else
14945   echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 eval "$as_ac_var=no"
14949 fi
14950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14951 fi
14952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14954 if test `eval echo '${'$as_ac_var'}'` = yes; then
14955   cat >>confdefs.h <<_ACEOF
14956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14957 _ACEOF
14958
14959 fi
14960 done
14961
14962
14963
14964
14965
14966
14967 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14968 do
14969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 echo "$as_me:$LINENO: checking for $ac_func" >&5
14971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_var+set}\" = set"; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14977 /* confdefs.h.  */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h.  */
14982 /* System header to define __stub macros and hopefully few prototypes,
14983     which can conflict with char $ac_func (); below.
14984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14985     <limits.h> exists even on freestanding compilers.  */
14986 #ifdef __STDC__
14987 # include <limits.h>
14988 #else
14989 # include <assert.h>
14990 #endif
14991 /* Override any gcc2 internal prototype to avoid an error.  */
14992 #ifdef __cplusplus
14993 extern "C"
14994 {
14995 #endif
14996 /* We use char because int might match the return type of a gcc2
14997    builtin and then its argument prototype would still apply.  */
14998 char $ac_func ();
14999 /* The GNU C library defines this for functions which it implements
15000     to always fail with ENOSYS.  Some functions are actually named
15001     something starting with __ and the normal name is an alias.  */
15002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15003 choke me
15004 #else
15005 char (*f) () = $ac_func;
15006 #endif
15007 #ifdef __cplusplus
15008 }
15009 #endif
15010
15011 int
15012 main ()
15013 {
15014 return f != $ac_func;
15015   ;
15016   return 0;
15017 }
15018 _ACEOF
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021   (eval $ac_link) 2>&5
15022   ac_status=$?
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } &&
15025          { ac_try='test -s conftest$ac_exeext'
15026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027   (eval $ac_try) 2>&5
15028   ac_status=$?
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); }; }; then
15031   eval "$as_ac_var=yes"
15032 else
15033   echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036 eval "$as_ac_var=no"
15037 fi
15038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15039 fi
15040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15042 if test `eval echo '${'$as_ac_var'}'` = yes; then
15043   cat >>confdefs.h <<_ACEOF
15044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15045 _ACEOF
15046
15047 fi
15048 done
15049
15050
15051 # If resolver functions are not in libc check for -lnsl or -lresolv.
15052 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15053 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15054 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 /* System header to define __stub macros and hopefully few prototypes,
15065     which can conflict with char gethostbyname_r (); below.
15066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15067     <limits.h> exists even on freestanding compilers.  */
15068 #ifdef __STDC__
15069 # include <limits.h>
15070 #else
15071 # include <assert.h>
15072 #endif
15073 /* Override any gcc2 internal prototype to avoid an error.  */
15074 #ifdef __cplusplus
15075 extern "C"
15076 {
15077 #endif
15078 /* We use char because int might match the return type of a gcc2
15079    builtin and then its argument prototype would still apply.  */
15080 char gethostbyname_r ();
15081 /* The GNU C library defines this for functions which it implements
15082     to always fail with ENOSYS.  Some functions are actually named
15083     something starting with __ and the normal name is an alias.  */
15084 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15085 choke me
15086 #else
15087 char (*f) () = gethostbyname_r;
15088 #endif
15089 #ifdef __cplusplus
15090 }
15091 #endif
15092
15093 int
15094 main ()
15095 {
15096 return f != gethostbyname_r;
15097   ;
15098   return 0;
15099 }
15100 _ACEOF
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103   (eval $ac_link) 2>&5
15104   ac_status=$?
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } &&
15107          { ac_try='test -s conftest$ac_exeext'
15108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109   (eval $ac_try) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; }; then
15113   ac_cv_func_gethostbyname_r=yes
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 ac_cv_func_gethostbyname_r=no
15119 fi
15120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15121 fi
15122 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15123 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15124 if test $ac_cv_func_gethostbyname_r = yes; then
15125   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15126 echo "${ECHO_T}using libc's resolver" >&6
15127 else
15128
15129 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15130 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15131 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134   ac_check_lib_save_LIBS=$LIBS
15135 LIBS="-lnsl  $LIBS"
15136 cat >conftest.$ac_ext <<_ACEOF
15137 #line $LINENO "configure"
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143
15144 /* Override any gcc2 internal prototype to avoid an error.  */
15145 #ifdef __cplusplus
15146 extern "C"
15147 #endif
15148 /* We use char because int might match the return type of a gcc2
15149    builtin and then its argument prototype would still apply.  */
15150 char gethostbyname_r ();
15151 int
15152 main ()
15153 {
15154 gethostbyname_r ();
15155   ;
15156   return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15161   (eval $ac_link) 2>&5
15162   ac_status=$?
15163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164   (exit $ac_status); } &&
15165          { ac_try='test -s conftest$ac_exeext'
15166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167   (eval $ac_try) 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }; }; then
15171   ac_cv_lib_nsl_gethostbyname_r=yes
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176 ac_cv_lib_nsl_gethostbyname_r=no
15177 fi
15178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15179 LIBS=$ac_check_lib_save_LIBS
15180 fi
15181 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15182 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15183 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15184   cat >>confdefs.h <<_ACEOF
15185 #define HAVE_LIBNSL 1
15186 _ACEOF
15187
15188   LIBS="-lnsl $LIBS"
15189
15190 fi
15191
15192
15193 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15194 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15195 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15196   echo $ECHO_N "(cached) $ECHO_C" >&6
15197 else
15198   ac_check_lib_save_LIBS=$LIBS
15199 LIBS="-lresolv  $LIBS"
15200 cat >conftest.$ac_ext <<_ACEOF
15201 #line $LINENO "configure"
15202 /* confdefs.h.  */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h.  */
15207
15208 /* Override any gcc2 internal prototype to avoid an error.  */
15209 #ifdef __cplusplus
15210 extern "C"
15211 #endif
15212 /* We use char because int might match the return type of a gcc2
15213    builtin and then its argument prototype would still apply.  */
15214 char gethostbyname_r ();
15215 int
15216 main ()
15217 {
15218 gethostbyname_r ();
15219   ;
15220   return 0;
15221 }
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225   (eval $ac_link) 2>&5
15226   ac_status=$?
15227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228   (exit $ac_status); } &&
15229          { ac_try='test -s conftest$ac_exeext'
15230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231   (eval $ac_try) 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); }; }; then
15235   ac_cv_lib_resolv_gethostbyname_r=yes
15236 else
15237   echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 ac_cv_lib_resolv_gethostbyname_r=no
15241 fi
15242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15243 LIBS=$ac_check_lib_save_LIBS
15244 fi
15245 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15246 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15247 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15248   cat >>confdefs.h <<_ACEOF
15249 #define HAVE_LIBRESOLV 1
15250 _ACEOF
15251
15252   LIBS="-lresolv $LIBS"
15253
15254 fi
15255
15256 fi
15257
15258
15259
15260 # Find where sockets are (especially for Solaris)
15261 echo "$as_me:$LINENO: checking for socket" >&5
15262 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15263 if test "${ac_cv_func_socket+set}" = set; then
15264   echo $ECHO_N "(cached) $ECHO_C" >&6
15265 else
15266   cat >conftest.$ac_ext <<_ACEOF
15267 #line $LINENO "configure"
15268 /* confdefs.h.  */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h.  */
15273 /* System header to define __stub macros and hopefully few prototypes,
15274     which can conflict with char socket (); below.
15275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15276     <limits.h> exists even on freestanding compilers.  */
15277 #ifdef __STDC__
15278 # include <limits.h>
15279 #else
15280 # include <assert.h>
15281 #endif
15282 /* Override any gcc2 internal prototype to avoid an error.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 {
15286 #endif
15287 /* We use char because int might match the return type of a gcc2
15288    builtin and then its argument prototype would still apply.  */
15289 char socket ();
15290 /* The GNU C library defines this for functions which it implements
15291     to always fail with ENOSYS.  Some functions are actually named
15292     something starting with __ and the normal name is an alias.  */
15293 #if defined (__stub_socket) || defined (__stub___socket)
15294 choke me
15295 #else
15296 char (*f) () = socket;
15297 #endif
15298 #ifdef __cplusplus
15299 }
15300 #endif
15301
15302 int
15303 main ()
15304 {
15305 return f != socket;
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312   (eval $ac_link) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -s conftest$ac_exeext'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322   ac_cv_func_socket=yes
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_cv_func_socket=no
15328 fi
15329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15330 fi
15331 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15332 echo "${ECHO_T}$ac_cv_func_socket" >&6
15333 if test $ac_cv_func_socket = yes; then
15334   echo "$as_me:$LINENO: result: using libc's socket" >&5
15335 echo "${ECHO_T}using libc's socket" >&6
15336 else
15337
15338 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15339 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15340 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15341   echo $ECHO_N "(cached) $ECHO_C" >&6
15342 else
15343   ac_check_lib_save_LIBS=$LIBS
15344 LIBS="-lxnet  $LIBS"
15345 cat >conftest.$ac_ext <<_ACEOF
15346 #line $LINENO "configure"
15347 /* confdefs.h.  */
15348 _ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h.  */
15352
15353 /* Override any gcc2 internal prototype to avoid an error.  */
15354 #ifdef __cplusplus
15355 extern "C"
15356 #endif
15357 /* We use char because int might match the return type of a gcc2
15358    builtin and then its argument prototype would still apply.  */
15359 char socket ();
15360 int
15361 main ()
15362 {
15363 socket ();
15364   ;
15365   return 0;
15366 }
15367 _ACEOF
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370   (eval $ac_link) 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -s conftest$ac_exeext'
15375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376   (eval $ac_try) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); }; }; then
15380   ac_cv_lib_xnet_socket=yes
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385 ac_cv_lib_xnet_socket=no
15386 fi
15387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15388 LIBS=$ac_check_lib_save_LIBS
15389 fi
15390 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15391 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15392 if test $ac_cv_lib_xnet_socket = yes; then
15393   cat >>confdefs.h <<_ACEOF
15394 #define HAVE_LIBXNET 1
15395 _ACEOF
15396
15397   LIBS="-lxnet $LIBS"
15398
15399 fi
15400
15401
15402 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15403 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15404 if test "${ac_cv_lib_socket_socket+set}" = set; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   ac_check_lib_save_LIBS=$LIBS
15408 LIBS="-lsocket  $LIBS"
15409 cat >conftest.$ac_ext <<_ACEOF
15410 #line $LINENO "configure"
15411 /* confdefs.h.  */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h.  */
15416
15417 /* Override any gcc2 internal prototype to avoid an error.  */
15418 #ifdef __cplusplus
15419 extern "C"
15420 #endif
15421 /* We use char because int might match the return type of a gcc2
15422    builtin and then its argument prototype would still apply.  */
15423 char socket ();
15424 int
15425 main ()
15426 {
15427 socket ();
15428   ;
15429   return 0;
15430 }
15431 _ACEOF
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434   (eval $ac_link) 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -s conftest$ac_exeext'
15439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440   (eval $ac_try) 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; }; then
15444   ac_cv_lib_socket_socket=yes
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449 ac_cv_lib_socket_socket=no
15450 fi
15451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15452 LIBS=$ac_check_lib_save_LIBS
15453 fi
15454 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15455 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15456 if test $ac_cv_lib_socket_socket = yes; then
15457   cat >>confdefs.h <<_ACEOF
15458 #define HAVE_LIBSOCKET 1
15459 _ACEOF
15460
15461   LIBS="-lsocket $LIBS"
15462
15463 fi
15464
15465
15466 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15467 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15468 if test "${ac_cv_lib_inet_socket+set}" = set; then
15469   echo $ECHO_N "(cached) $ECHO_C" >&6
15470 else
15471   ac_check_lib_save_LIBS=$LIBS
15472 LIBS="-linet  $LIBS"
15473 cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480
15481 /* Override any gcc2 internal prototype to avoid an error.  */
15482 #ifdef __cplusplus
15483 extern "C"
15484 #endif
15485 /* We use char because int might match the return type of a gcc2
15486    builtin and then its argument prototype would still apply.  */
15487 char socket ();
15488 int
15489 main ()
15490 {
15491 socket ();
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498   (eval $ac_link) 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); } &&
15502          { ac_try='test -s conftest$ac_exeext'
15503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504   (eval $ac_try) 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508   ac_cv_lib_inet_socket=yes
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_cv_lib_inet_socket=no
15514 fi
15515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15517 fi
15518 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15519 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15520 if test $ac_cv_lib_inet_socket = yes; then
15521   cat >>confdefs.h <<_ACEOF
15522 #define HAVE_LIBINET 1
15523 _ACEOF
15524
15525   LIBS="-linet $LIBS"
15526
15527 fi
15528
15529 fi
15530
15531
15532
15533 for ac_func in inet_pton
15534 do
15535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15536 echo "$as_me:$LINENO: checking for $ac_func" >&5
15537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15538 if eval "test \"\${$as_ac_var+set}\" = set"; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548 /* System header to define __stub macros and hopefully few prototypes,
15549     which can conflict with char $ac_func (); below.
15550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15551     <limits.h> exists even on freestanding compilers.  */
15552 #ifdef __STDC__
15553 # include <limits.h>
15554 #else
15555 # include <assert.h>
15556 #endif
15557 /* Override any gcc2 internal prototype to avoid an error.  */
15558 #ifdef __cplusplus
15559 extern "C"
15560 {
15561 #endif
15562 /* We use char because int might match the return type of a gcc2
15563    builtin and then its argument prototype would still apply.  */
15564 char $ac_func ();
15565 /* The GNU C library defines this for functions which it implements
15566     to always fail with ENOSYS.  Some functions are actually named
15567     something starting with __ and the normal name is an alias.  */
15568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15569 choke me
15570 #else
15571 char (*f) () = $ac_func;
15572 #endif
15573 #ifdef __cplusplus
15574 }
15575 #endif
15576
15577 int
15578 main ()
15579 {
15580 return f != $ac_func;
15581   ;
15582   return 0;
15583 }
15584 _ACEOF
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587   (eval $ac_link) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); } &&
15591          { ac_try='test -s conftest$ac_exeext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   eval "$as_ac_var=yes"
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 eval "$as_ac_var=no"
15603 fi
15604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15605 fi
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609   cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611 _ACEOF
15612  cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_INET_PTON 1
15614 _ACEOF
15615
15616 fi
15617 done
15618
15619
15620
15621 for ac_func in strftime
15622 do
15623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15624 echo "$as_me:$LINENO: checking for $ac_func" >&5
15625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15626 if eval "test \"\${$as_ac_var+set}\" = set"; then
15627   echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629   cat >conftest.$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15631 /* confdefs.h.  */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h.  */
15636 /* System header to define __stub macros and hopefully few prototypes,
15637     which can conflict with char $ac_func (); below.
15638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639     <limits.h> exists even on freestanding compilers.  */
15640 #ifdef __STDC__
15641 # include <limits.h>
15642 #else
15643 # include <assert.h>
15644 #endif
15645 /* Override any gcc2 internal prototype to avoid an error.  */
15646 #ifdef __cplusplus
15647 extern "C"
15648 {
15649 #endif
15650 /* We use char because int might match the return type of a gcc2
15651    builtin and then its argument prototype would still apply.  */
15652 char $ac_func ();
15653 /* The GNU C library defines this for functions which it implements
15654     to always fail with ENOSYS.  Some functions are actually named
15655     something starting with __ and the normal name is an alias.  */
15656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15657 choke me
15658 #else
15659 char (*f) () = $ac_func;
15660 #endif
15661 #ifdef __cplusplus
15662 }
15663 #endif
15664
15665 int
15666 main ()
15667 {
15668 return f != $ac_func;
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15675   (eval $ac_link) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); } &&
15679          { ac_try='test -s conftest$ac_exeext'
15680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681   (eval $ac_try) 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; }; then
15685   eval "$as_ac_var=yes"
15686 else
15687   echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15689
15690 eval "$as_ac_var=no"
15691 fi
15692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15693 fi
15694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15696 if test `eval echo '${'$as_ac_var'}'` = yes; then
15697   cat >>confdefs.h <<_ACEOF
15698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15699 _ACEOF
15700
15701 else
15702   # strftime is in -lintl on SCO UNIX.
15703 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15704 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15705 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15706   echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708   ac_check_lib_save_LIBS=$LIBS
15709 LIBS="-lintl  $LIBS"
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
15718 /* Override any gcc2 internal prototype to avoid an error.  */
15719 #ifdef __cplusplus
15720 extern "C"
15721 #endif
15722 /* We use char because int might match the return type of a gcc2
15723    builtin and then its argument prototype would still apply.  */
15724 char strftime ();
15725 int
15726 main ()
15727 {
15728 strftime ();
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735   (eval $ac_link) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -s conftest$ac_exeext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_cv_lib_intl_strftime=yes
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ac_cv_lib_intl_strftime=no
15751 fi
15752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15754 fi
15755 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15756 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15757 if test $ac_cv_lib_intl_strftime = yes; then
15758   cat >>confdefs.h <<\_ACEOF
15759 #define HAVE_STRFTIME 1
15760 _ACEOF
15761
15762 LIBS="-lintl $LIBS"
15763 fi
15764
15765 fi
15766 done
15767
15768
15769 for ac_func in vprintf
15770 do
15771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 echo "$as_me:$LINENO: checking for $ac_func" >&5
15773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15774 if eval "test \"\${$as_ac_var+set}\" = set"; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   cat >conftest.$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15779 /* confdefs.h.  */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h.  */
15784 /* System header to define __stub macros and hopefully few prototypes,
15785     which can conflict with char $ac_func (); below.
15786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15787     <limits.h> exists even on freestanding compilers.  */
15788 #ifdef __STDC__
15789 # include <limits.h>
15790 #else
15791 # include <assert.h>
15792 #endif
15793 /* Override any gcc2 internal prototype to avoid an error.  */
15794 #ifdef __cplusplus
15795 extern "C"
15796 {
15797 #endif
15798 /* We use char because int might match the return type of a gcc2
15799    builtin and then its argument prototype would still apply.  */
15800 char $ac_func ();
15801 /* The GNU C library defines this for functions which it implements
15802     to always fail with ENOSYS.  Some functions are actually named
15803     something starting with __ and the normal name is an alias.  */
15804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15805 choke me
15806 #else
15807 char (*f) () = $ac_func;
15808 #endif
15809 #ifdef __cplusplus
15810 }
15811 #endif
15812
15813 int
15814 main ()
15815 {
15816 return f != $ac_func;
15817   ;
15818   return 0;
15819 }
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823   (eval $ac_link) 2>&5
15824   ac_status=$?
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -s conftest$ac_exeext'
15828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829   (eval $ac_try) 2>&5
15830   ac_status=$?
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); }; }; then
15833   eval "$as_ac_var=yes"
15834 else
15835   echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15837
15838 eval "$as_ac_var=no"
15839 fi
15840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15841 fi
15842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15844 if test `eval echo '${'$as_ac_var'}'` = yes; then
15845   cat >>confdefs.h <<_ACEOF
15846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15847 _ACEOF
15848
15849 echo "$as_me:$LINENO: checking for _doprnt" >&5
15850 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15851 if test "${ac_cv_func__doprnt+set}" = set; then
15852   echo $ECHO_N "(cached) $ECHO_C" >&6
15853 else
15854   cat >conftest.$ac_ext <<_ACEOF
15855 #line $LINENO "configure"
15856 /* confdefs.h.  */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h.  */
15861 /* System header to define __stub macros and hopefully few prototypes,
15862     which can conflict with char _doprnt (); below.
15863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15864     <limits.h> exists even on freestanding compilers.  */
15865 #ifdef __STDC__
15866 # include <limits.h>
15867 #else
15868 # include <assert.h>
15869 #endif
15870 /* Override any gcc2 internal prototype to avoid an error.  */
15871 #ifdef __cplusplus
15872 extern "C"
15873 {
15874 #endif
15875 /* We use char because int might match the return type of a gcc2
15876    builtin and then its argument prototype would still apply.  */
15877 char _doprnt ();
15878 /* The GNU C library defines this for functions which it implements
15879     to always fail with ENOSYS.  Some functions are actually named
15880     something starting with __ and the normal name is an alias.  */
15881 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15882 choke me
15883 #else
15884 char (*f) () = _doprnt;
15885 #endif
15886 #ifdef __cplusplus
15887 }
15888 #endif
15889
15890 int
15891 main ()
15892 {
15893 return f != _doprnt;
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15900   (eval $ac_link) 2>&5
15901   ac_status=$?
15902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903   (exit $ac_status); } &&
15904          { ac_try='test -s conftest$ac_exeext'
15905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906   (eval $ac_try) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); }; }; then
15910   ac_cv_func__doprnt=yes
15911 else
15912   echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15914
15915 ac_cv_func__doprnt=no
15916 fi
15917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15918 fi
15919 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15920 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15921 if test $ac_cv_func__doprnt = yes; then
15922
15923 cat >>confdefs.h <<\_ACEOF
15924 #define HAVE_DOPRNT 1
15925 _ACEOF
15926
15927 fi
15928
15929 fi
15930 done
15931
15932
15933 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15934 # for constant arguments.  Useless!
15935 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15936 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15937 if test "${ac_cv_working_alloca_h+set}" = set; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   cat >conftest.$ac_ext <<_ACEOF
15941 #line $LINENO "configure"
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947 #include <alloca.h>
15948 int
15949 main ()
15950 {
15951 char *p = (char *) alloca (2 * sizeof (int));
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958   (eval $ac_link) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); } &&
15962          { ac_try='test -s conftest$ac_exeext'
15963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964   (eval $ac_try) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; }; then
15968   ac_cv_working_alloca_h=yes
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 ac_cv_working_alloca_h=no
15974 fi
15975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15976 fi
15977 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15978 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15979 if test $ac_cv_working_alloca_h = yes; then
15980
15981 cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_ALLOCA_H 1
15983 _ACEOF
15984
15985 fi
15986
15987 echo "$as_me:$LINENO: checking for alloca" >&5
15988 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15989 if test "${ac_cv_func_alloca_works+set}" = set; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   cat >conftest.$ac_ext <<_ACEOF
15993 #line $LINENO "configure"
15994 /* confdefs.h.  */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h.  */
15999 #ifdef __GNUC__
16000 # define alloca __builtin_alloca
16001 #else
16002 # ifdef _MSC_VER
16003 #  include <malloc.h>
16004 #  define alloca _alloca
16005 # else
16006 #  if HAVE_ALLOCA_H
16007 #   include <alloca.h>
16008 #  else
16009 #   ifdef _AIX
16010  #pragma alloca
16011 #   else
16012 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16013 char *alloca ();
16014 #    endif
16015 #   endif
16016 #  endif
16017 # endif
16018 #endif
16019
16020 int
16021 main ()
16022 {
16023 char *p = (char *) alloca (1);
16024   ;
16025   return 0;
16026 }
16027 _ACEOF
16028 rm -f conftest.$ac_objext conftest$ac_exeext
16029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16030   (eval $ac_link) 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); } &&
16034          { ac_try='test -s conftest$ac_exeext'
16035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036   (eval $ac_try) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; }; then
16040   ac_cv_func_alloca_works=yes
16041 else
16042   echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 ac_cv_func_alloca_works=no
16046 fi
16047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16048 fi
16049 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16050 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16051
16052 if test $ac_cv_func_alloca_works = yes; then
16053
16054 cat >>confdefs.h <<\_ACEOF
16055 #define HAVE_ALLOCA 1
16056 _ACEOF
16057
16058 else
16059   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16060 # that cause trouble.  Some versions do not even contain alloca or
16061 # contain a buggy version.  If you still want to use their alloca,
16062 # use ar to extract alloca.o from them instead of compiling alloca.c.
16063
16064 ALLOCA=alloca.$ac_objext
16065
16066 cat >>confdefs.h <<\_ACEOF
16067 #define C_ALLOCA 1
16068 _ACEOF
16069
16070
16071 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16072 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16073 if test "${ac_cv_os_cray+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076   cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 #if defined(CRAY) && ! defined(CRAY2)
16084 webecray
16085 #else
16086 wenotbecray
16087 #endif
16088
16089 _ACEOF
16090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16091   $EGREP "webecray" >/dev/null 2>&1; then
16092   ac_cv_os_cray=yes
16093 else
16094   ac_cv_os_cray=no
16095 fi
16096 rm -f conftest*
16097
16098 fi
16099 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16100 echo "${ECHO_T}$ac_cv_os_cray" >&6
16101 if test $ac_cv_os_cray = yes; then
16102   for ac_func in _getb67 GETB67 getb67; do
16103     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16104 echo "$as_me:$LINENO: checking for $ac_func" >&5
16105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16106 if eval "test \"\${$as_ac_var+set}\" = set"; then
16107   echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109   cat >conftest.$ac_ext <<_ACEOF
16110 #line $LINENO "configure"
16111 /* confdefs.h.  */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h.  */
16116 /* System header to define __stub macros and hopefully few prototypes,
16117     which can conflict with char $ac_func (); below.
16118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16119     <limits.h> exists even on freestanding compilers.  */
16120 #ifdef __STDC__
16121 # include <limits.h>
16122 #else
16123 # include <assert.h>
16124 #endif
16125 /* Override any gcc2 internal prototype to avoid an error.  */
16126 #ifdef __cplusplus
16127 extern "C"
16128 {
16129 #endif
16130 /* We use char because int might match the return type of a gcc2
16131    builtin and then its argument prototype would still apply.  */
16132 char $ac_func ();
16133 /* The GNU C library defines this for functions which it implements
16134     to always fail with ENOSYS.  Some functions are actually named
16135     something starting with __ and the normal name is an alias.  */
16136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16137 choke me
16138 #else
16139 char (*f) () = $ac_func;
16140 #endif
16141 #ifdef __cplusplus
16142 }
16143 #endif
16144
16145 int
16146 main ()
16147 {
16148 return f != $ac_func;
16149   ;
16150   return 0;
16151 }
16152 _ACEOF
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16155   (eval $ac_link) 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); } &&
16159          { ac_try='test -s conftest$ac_exeext'
16160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161   (eval $ac_try) 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); }; }; then
16165   eval "$as_ac_var=yes"
16166 else
16167   echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170 eval "$as_ac_var=no"
16171 fi
16172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16173 fi
16174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16176 if test `eval echo '${'$as_ac_var'}'` = yes; then
16177
16178 cat >>confdefs.h <<_ACEOF
16179 #define CRAY_STACKSEG_END $ac_func
16180 _ACEOF
16181
16182     break
16183 fi
16184
16185   done
16186 fi
16187
16188 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16189 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16190 if test "${ac_cv_c_stack_direction+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193   if test "$cross_compiling" = yes; then
16194   ac_cv_c_stack_direction=0
16195 else
16196   cat >conftest.$ac_ext <<_ACEOF
16197 #line $LINENO "configure"
16198 /* confdefs.h.  */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h.  */
16203 int
16204 find_stack_direction ()
16205 {
16206   static char *addr = 0;
16207   auto char dummy;
16208   if (addr == 0)
16209     {
16210       addr = &dummy;
16211       return find_stack_direction ();
16212     }
16213   else
16214     return (&dummy > addr) ? 1 : -1;
16215 }
16216
16217 int
16218 main ()
16219 {
16220   exit (find_stack_direction () < 0);
16221 }
16222 _ACEOF
16223 rm -f conftest$ac_exeext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16225   (eval $ac_link) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230   (eval $ac_try) 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; }; then
16234   ac_cv_c_stack_direction=1
16235 else
16236   echo "$as_me: program exited with status $ac_status" >&5
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16239
16240 ( exit $ac_status )
16241 ac_cv_c_stack_direction=-1
16242 fi
16243 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16244 fi
16245 fi
16246 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16247 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define STACK_DIRECTION $ac_cv_c_stack_direction
16251 _ACEOF
16252
16253
16254 fi
16255
16256 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16257 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16258 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16259 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262   ac_check_lib_save_LIBS=$LIBS
16263 LIBS="-lsun  $LIBS"
16264 cat >conftest.$ac_ext <<_ACEOF
16265 #line $LINENO "configure"
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271
16272 /* Override any gcc2 internal prototype to avoid an error.  */
16273 #ifdef __cplusplus
16274 extern "C"
16275 #endif
16276 /* We use char because int might match the return type of a gcc2
16277    builtin and then its argument prototype would still apply.  */
16278 char getmntent ();
16279 int
16280 main ()
16281 {
16282 getmntent ();
16283   ;
16284   return 0;
16285 }
16286 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289   (eval $ac_link) 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } &&
16293          { ac_try='test -s conftest$ac_exeext'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; }; then
16299   ac_cv_lib_sun_getmntent=yes
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304 ac_cv_lib_sun_getmntent=no
16305 fi
16306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16307 LIBS=$ac_check_lib_save_LIBS
16308 fi
16309 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16310 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16311 if test $ac_cv_lib_sun_getmntent = yes; then
16312   LIBS="-lsun $LIBS"
16313 else
16314   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16315 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16316 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   ac_check_lib_save_LIBS=$LIBS
16320 LIBS="-lseq  $LIBS"
16321 cat >conftest.$ac_ext <<_ACEOF
16322 #line $LINENO "configure"
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328
16329 /* Override any gcc2 internal prototype to avoid an error.  */
16330 #ifdef __cplusplus
16331 extern "C"
16332 #endif
16333 /* We use char because int might match the return type of a gcc2
16334    builtin and then its argument prototype would still apply.  */
16335 char getmntent ();
16336 int
16337 main ()
16338 {
16339 getmntent ();
16340   ;
16341   return 0;
16342 }
16343 _ACEOF
16344 rm -f conftest.$ac_objext conftest$ac_exeext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346   (eval $ac_link) 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -s conftest$ac_exeext'
16351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352   (eval $ac_try) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; }; then
16356   ac_cv_lib_seq_getmntent=yes
16357 else
16358   echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16360
16361 ac_cv_lib_seq_getmntent=no
16362 fi
16363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16364 LIBS=$ac_check_lib_save_LIBS
16365 fi
16366 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16367 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16368 if test $ac_cv_lib_seq_getmntent = yes; then
16369   LIBS="-lseq $LIBS"
16370 else
16371   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16372 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16373 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16374   echo $ECHO_N "(cached) $ECHO_C" >&6
16375 else
16376   ac_check_lib_save_LIBS=$LIBS
16377 LIBS="-lgen  $LIBS"
16378 cat >conftest.$ac_ext <<_ACEOF
16379 #line $LINENO "configure"
16380 /* confdefs.h.  */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h.  */
16385
16386 /* Override any gcc2 internal prototype to avoid an error.  */
16387 #ifdef __cplusplus
16388 extern "C"
16389 #endif
16390 /* We use char because int might match the return type of a gcc2
16391    builtin and then its argument prototype would still apply.  */
16392 char getmntent ();
16393 int
16394 main ()
16395 {
16396 getmntent ();
16397   ;
16398   return 0;
16399 }
16400 _ACEOF
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403   (eval $ac_link) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); } &&
16407          { ac_try='test -s conftest$ac_exeext'
16408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409   (eval $ac_try) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   ac_cv_lib_gen_getmntent=yes
16414 else
16415   echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16417
16418 ac_cv_lib_gen_getmntent=no
16419 fi
16420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16421 LIBS=$ac_check_lib_save_LIBS
16422 fi
16423 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16424 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16425 if test $ac_cv_lib_gen_getmntent = yes; then
16426   LIBS="-lgen $LIBS"
16427 fi
16428
16429 fi
16430
16431 fi
16432
16433
16434 for ac_func in getmntent
16435 do
16436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16437 echo "$as_me:$LINENO: checking for $ac_func" >&5
16438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16439 if eval "test \"\${$as_ac_var+set}\" = set"; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442   cat >conftest.$ac_ext <<_ACEOF
16443 #line $LINENO "configure"
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449 /* System header to define __stub macros and hopefully few prototypes,
16450     which can conflict with char $ac_func (); below.
16451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16452     <limits.h> exists even on freestanding compilers.  */
16453 #ifdef __STDC__
16454 # include <limits.h>
16455 #else
16456 # include <assert.h>
16457 #endif
16458 /* Override any gcc2 internal prototype to avoid an error.  */
16459 #ifdef __cplusplus
16460 extern "C"
16461 {
16462 #endif
16463 /* We use char because int might match the return type of a gcc2
16464    builtin and then its argument prototype would still apply.  */
16465 char $ac_func ();
16466 /* The GNU C library defines this for functions which it implements
16467     to always fail with ENOSYS.  Some functions are actually named
16468     something starting with __ and the normal name is an alias.  */
16469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16470 choke me
16471 #else
16472 char (*f) () = $ac_func;
16473 #endif
16474 #ifdef __cplusplus
16475 }
16476 #endif
16477
16478 int
16479 main ()
16480 {
16481 return f != $ac_func;
16482   ;
16483   return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext conftest$ac_exeext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16488   (eval $ac_link) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); } &&
16492          { ac_try='test -s conftest$ac_exeext'
16493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494   (eval $ac_try) 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; }; then
16498   eval "$as_ac_var=yes"
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 eval "$as_ac_var=no"
16504 fi
16505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16506 fi
16507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16509 if test `eval echo '${'$as_ac_var'}'` = yes; then
16510   cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16512 _ACEOF
16513
16514 fi
16515 done
16516
16517
16518 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16519 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16520 if test "${ac_cv_func_closedir_void+set}" = set; then
16521   echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523   if test "$cross_compiling" = yes; then
16524   ac_cv_func_closedir_void=yes
16525 else
16526   cat >conftest.$ac_ext <<_ACEOF
16527 #line $LINENO "configure"
16528 /* confdefs.h.  */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h.  */
16533 $ac_includes_default
16534 #include <$ac_header_dirent>
16535 #ifndef __cplusplus
16536 int closedir ();
16537 #endif
16538
16539 int
16540 main ()
16541 {
16542 exit (closedir (opendir (".")) != 0);
16543   ;
16544   return 0;
16545 }
16546 _ACEOF
16547 rm -f conftest$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549   (eval $ac_link) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554   (eval $ac_try) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; }; then
16558   ac_cv_func_closedir_void=no
16559 else
16560   echo "$as_me: program exited with status $ac_status" >&5
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564 ( exit $ac_status )
16565 ac_cv_func_closedir_void=yes
16566 fi
16567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16568 fi
16569 fi
16570 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16571 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16572 if test $ac_cv_func_closedir_void = yes; then
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define CLOSEDIR_VOID 1
16576 _ACEOF
16577
16578 fi
16579
16580 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16581 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16582 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   if test "$cross_compiling" = yes; then
16586   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16587 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16588    { (exit 1); exit 1; }; }
16589 else
16590   cat >conftest.$ac_ext <<_ACEOF
16591 #line $LINENO "configure"
16592 /* confdefs.h.  */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h.  */
16597 #if HAVE_UNISTD_H
16598 # include <unistd.h>
16599 #endif
16600
16601 int
16602 main ()
16603 {
16604 /* If this system has a BSD-style setpgrp which takes arguments,
16605   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16606   exit successfully. */
16607   exit (setpgrp (1,1) == -1 ? 0 : 1);
16608   ;
16609   return 0;
16610 }
16611 _ACEOF
16612 rm -f conftest$ac_exeext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614   (eval $ac_link) 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; }; then
16623   ac_cv_func_setpgrp_void=no
16624 else
16625   echo "$as_me: program exited with status $ac_status" >&5
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629 ( exit $ac_status )
16630 ac_cv_func_setpgrp_void=yes
16631 fi
16632 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16633 fi
16634 fi
16635 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16636 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16637 if test $ac_cv_func_setpgrp_void = yes; then
16638
16639 cat >>confdefs.h <<\_ACEOF
16640 #define SETPGRP_VOID 1
16641 _ACEOF
16642
16643 fi
16644                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16645 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16646 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   # Some versions of Solaris, SCO, and the GNU C Library
16650    # have a broken or incompatible fnmatch.
16651    # So we run a test program.  If we are cross-compiling, take no chance.
16652    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16653    if test "$cross_compiling" = yes; then
16654   ac_cv_func_fnmatch_works=cross
16655 else
16656   cat >conftest.$ac_ext <<_ACEOF
16657 #line $LINENO "configure"
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663 #include <fnmatch.h>
16664 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16665 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16666
16667 int
16668 main ()
16669 {
16670 exit
16671            (!(y ("a*", "abc", 0)
16672               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16673               && y ("a\\\\bc", "abc", 0)
16674               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16675               && y ("*x", ".x", 0)
16676               && n ("*x", ".x", FNM_PERIOD)
16677               && 1));
16678   ;
16679   return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest$ac_exeext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16684   (eval $ac_link) 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689   (eval $ac_try) 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }; }; then
16693   ac_cv_func_fnmatch_works=yes
16694 else
16695   echo "$as_me: program exited with status $ac_status" >&5
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16698
16699 ( exit $ac_status )
16700 ac_cv_func_fnmatch_works=no
16701 fi
16702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16703 fi
16704 fi
16705 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16706 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16707 if test $ac_cv_func_fnmatch_works = yes; then
16708
16709 cat >>confdefs.h <<\_ACEOF
16710 #define HAVE_FNMATCH 1
16711 _ACEOF
16712
16713 fi
16714
16715
16716
16717
16718
16719 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16720 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16721 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   ac_check_lib_save_LIBS=$LIBS
16725 LIBS="-lxpg4  $LIBS"
16726 cat >conftest.$ac_ext <<_ACEOF
16727 #line $LINENO "configure"
16728 /* confdefs.h.  */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h.  */
16733
16734 /* Override any gcc2 internal prototype to avoid an error.  */
16735 #ifdef __cplusplus
16736 extern "C"
16737 #endif
16738 /* We use char because int might match the return type of a gcc2
16739    builtin and then its argument prototype would still apply.  */
16740 char setlocale ();
16741 int
16742 main ()
16743 {
16744 setlocale ();
16745   ;
16746   return 0;
16747 }
16748 _ACEOF
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751   (eval $ac_link) 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); } &&
16755          { ac_try='test -s conftest$ac_exeext'
16756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757   (eval $ac_try) 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; }; then
16761   ac_cv_lib_xpg4_setlocale=yes
16762 else
16763   echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766 ac_cv_lib_xpg4_setlocale=no
16767 fi
16768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16769 LIBS=$ac_check_lib_save_LIBS
16770 fi
16771 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16772 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16773 if test $ac_cv_lib_xpg4_setlocale = yes; then
16774   LIBS="$LIBS -lxpg4"
16775 fi
16776
16777
16778
16779
16780 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16781 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16782 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-lsun  $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16788 #line $LINENO "configure"
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794
16795 /* Override any gcc2 internal prototype to avoid an error.  */
16796 #ifdef __cplusplus
16797 extern "C"
16798 #endif
16799 /* We use char because int might match the return type of a gcc2
16800    builtin and then its argument prototype would still apply.  */
16801 char getpwnam ();
16802 int
16803 main ()
16804 {
16805 getpwnam ();
16806   ;
16807   return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812   (eval $ac_link) 2>&5
16813   ac_status=$?
16814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815   (exit $ac_status); } &&
16816          { ac_try='test -s conftest$ac_exeext'
16817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818   (eval $ac_try) 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; }; then
16822   ac_cv_lib_sun_getpwnam=yes
16823 else
16824   echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 ac_cv_lib_sun_getpwnam=no
16828 fi
16829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16830 LIBS=$ac_check_lib_save_LIBS
16831 fi
16832 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16833 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16834 if test $ac_cv_lib_sun_getpwnam = yes; then
16835   cat >>confdefs.h <<_ACEOF
16836 #define HAVE_LIBSUN 1
16837 _ACEOF
16838
16839   LIBS="-lsun $LIBS"
16840
16841 fi
16842
16843
16844
16845 for ac_header in zlib.h
16846 do
16847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16849   echo "$as_me:$LINENO: checking for $ac_header" >&5
16850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16852   echo $ECHO_N "(cached) $ECHO_C" >&6
16853 fi
16854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16856 else
16857   # Is the header compilable?
16858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 $ac_includes_default
16868 #include <$ac_header>
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872   (eval $ac_compile) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); } &&
16876          { ac_try='test -s conftest.$ac_objext'
16877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878   (eval $ac_try) 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; }; then
16882   ac_header_compiler=yes
16883 else
16884   echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887 ac_header_compiler=no
16888 fi
16889 rm -f conftest.$ac_objext conftest.$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16891 echo "${ECHO_T}$ac_header_compiler" >&6
16892
16893 # Is the header present?
16894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16896 cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16898 /* confdefs.h.  */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h.  */
16903 #include <$ac_header>
16904 _ACEOF
16905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16907   ac_status=$?
16908   grep -v '^ *+' conftest.er1 >conftest.err
16909   rm -f conftest.er1
16910   cat conftest.err >&5
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); } >/dev/null; then
16913   if test -s conftest.err; then
16914     ac_cpp_err=$ac_c_preproc_warn_flag
16915   else
16916     ac_cpp_err=
16917   fi
16918 else
16919   ac_cpp_err=yes
16920 fi
16921 if test -z "$ac_cpp_err"; then
16922   ac_header_preproc=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927   ac_header_preproc=no
16928 fi
16929 rm -f conftest.err conftest.$ac_ext
16930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16931 echo "${ECHO_T}$ac_header_preproc" >&6
16932
16933 # So?  What about this header?
16934 case $ac_header_compiler:$ac_header_preproc in
16935   yes:no )
16936     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16938     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16940     (
16941       cat <<\_ASBOX
16942 ## ------------------------------------ ##
16943 ## Report this to bug-autoconf@gnu.org. ##
16944 ## ------------------------------------ ##
16945 _ASBOX
16946     ) |
16947       sed "s/^/$as_me: WARNING:     /" >&2
16948     ;;
16949   no:yes )
16950     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16952     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16956     (
16957       cat <<\_ASBOX
16958 ## ------------------------------------ ##
16959 ## Report this to bug-autoconf@gnu.org. ##
16960 ## ------------------------------------ ##
16961 _ASBOX
16962     ) |
16963       sed "s/^/$as_me: WARNING:     /" >&2
16964     ;;
16965 esac
16966 echo "$as_me:$LINENO: checking for $ac_header" >&5
16967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16969   echo $ECHO_N "(cached) $ECHO_C" >&6
16970 else
16971   eval "$as_ac_Header=$ac_header_preproc"
16972 fi
16973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16975
16976 fi
16977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16978   cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16980 _ACEOF
16981
16982 fi
16983
16984 done
16985
16986 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16987 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16988 if test "${ac_cv_lib_z_deflate+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-lz  $LIBS"
16993 cat >conftest.$ac_ext <<_ACEOF
16994 #line $LINENO "configure"
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000
17001 /* Override any gcc2 internal prototype to avoid an error.  */
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 /* We use char because int might match the return type of a gcc2
17006    builtin and then its argument prototype would still apply.  */
17007 char deflate ();
17008 int
17009 main ()
17010 {
17011 deflate ();
17012   ;
17013   return 0;
17014 }
17015 _ACEOF
17016 rm -f conftest.$ac_objext conftest$ac_exeext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17018   (eval $ac_link) 2>&5
17019   ac_status=$?
17020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021   (exit $ac_status); } &&
17022          { ac_try='test -s conftest$ac_exeext'
17023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024   (eval $ac_try) 2>&5
17025   ac_status=$?
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); }; }; then
17028   ac_cv_lib_z_deflate=yes
17029 else
17030   echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17032
17033 ac_cv_lib_z_deflate=no
17034 fi
17035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17036 LIBS=$ac_check_lib_save_LIBS
17037 fi
17038 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17039 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17040 if test $ac_cv_lib_z_deflate = yes; then
17041   FDLIBS="-lz"
17042 fi
17043
17044 have_zlib=no
17045 if test x$FDLIBS = x-lz; then
17046   cat >>confdefs.h <<\_ACEOF
17047 #define HAVE_LIBZ 1
17048 _ACEOF
17049
17050   have_zlib=yes
17051 fi
17052
17053 PTHREAD_LIB=""
17054 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17055 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17056 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   ac_check_lib_save_LIBS=$LIBS
17060 LIBS="-lpthread  $LIBS"
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17063 /* confdefs.h.  */
17064 _ACEOF
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h.  */
17068
17069 /* Override any gcc2 internal prototype to avoid an error.  */
17070 #ifdef __cplusplus
17071 extern "C"
17072 #endif
17073 /* We use char because int might match the return type of a gcc2
17074    builtin and then its argument prototype would still apply.  */
17075 char pthread_create ();
17076 int
17077 main ()
17078 {
17079 pthread_create ();
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086   (eval $ac_link) 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } &&
17090          { ac_try='test -s conftest$ac_exeext'
17091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092   (eval $ac_try) 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_lib_pthread_pthread_create=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101 ac_cv_lib_pthread_pthread_create=no
17102 fi
17103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17104 LIBS=$ac_check_lib_save_LIBS
17105 fi
17106 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17107 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17108 if test $ac_cv_lib_pthread_pthread_create = yes; then
17109   PTHREAD_LIB="-lpthread"
17110 else
17111   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17112 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17113 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   ac_check_lib_save_LIBS=$LIBS
17117 LIBS="-lpthreads  $LIBS"
17118 cat >conftest.$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125
17126 /* Override any gcc2 internal prototype to avoid an error.  */
17127 #ifdef __cplusplus
17128 extern "C"
17129 #endif
17130 /* We use char because int might match the return type of a gcc2
17131    builtin and then its argument prototype would still apply.  */
17132 char pthread_create ();
17133 int
17134 main ()
17135 {
17136 pthread_create ();
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143   (eval $ac_link) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } &&
17147          { ac_try='test -s conftest$ac_exeext'
17148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149   (eval $ac_try) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; }; then
17153   ac_cv_lib_pthreads_pthread_create=yes
17154 else
17155   echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158 ac_cv_lib_pthreads_pthread_create=no
17159 fi
17160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17162 fi
17163 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17164 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17165 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17166   PTHREAD_LIB="-lpthreads"
17167 else
17168   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17169 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17170 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17171   echo $ECHO_N "(cached) $ECHO_C" >&6
17172 else
17173   ac_check_lib_save_LIBS=$LIBS
17174 LIBS="-lc_r  $LIBS"
17175 cat >conftest.$ac_ext <<_ACEOF
17176 #line $LINENO "configure"
17177 /* confdefs.h.  */
17178 _ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h.  */
17182
17183 /* Override any gcc2 internal prototype to avoid an error.  */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 /* We use char because int might match the return type of a gcc2
17188    builtin and then its argument prototype would still apply.  */
17189 char pthread_create ();
17190 int
17191 main ()
17192 {
17193 pthread_create ();
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200   (eval $ac_link) 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -s conftest$ac_exeext'
17205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206   (eval $ac_try) 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; }; then
17210   ac_cv_lib_c_r_pthread_create=yes
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 ac_cv_lib_c_r_pthread_create=no
17216 fi
17217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17219 fi
17220 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17221 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17222 if test $ac_cv_lib_c_r_pthread_create = yes; then
17223   PTHREAD_LIB="-lc_r"
17224 else
17225   echo "$as_me:$LINENO: checking for pthread_create" >&5
17226 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17227 if test "${ac_cv_func_pthread_create+set}" = set; then
17228   echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230   cat >conftest.$ac_ext <<_ACEOF
17231 #line $LINENO "configure"
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237 /* System header to define __stub macros and hopefully few prototypes,
17238     which can conflict with char pthread_create (); below.
17239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17240     <limits.h> exists even on freestanding compilers.  */
17241 #ifdef __STDC__
17242 # include <limits.h>
17243 #else
17244 # include <assert.h>
17245 #endif
17246 /* Override any gcc2 internal prototype to avoid an error.  */
17247 #ifdef __cplusplus
17248 extern "C"
17249 {
17250 #endif
17251 /* We use char because int might match the return type of a gcc2
17252    builtin and then its argument prototype would still apply.  */
17253 char pthread_create ();
17254 /* The GNU C library defines this for functions which it implements
17255     to always fail with ENOSYS.  Some functions are actually named
17256     something starting with __ and the normal name is an alias.  */
17257 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17258 choke me
17259 #else
17260 char (*f) () = pthread_create;
17261 #endif
17262 #ifdef __cplusplus
17263 }
17264 #endif
17265
17266 int
17267 main ()
17268 {
17269 return f != pthread_create;
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 rm -f conftest.$ac_objext conftest$ac_exeext
17275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17276   (eval $ac_link) 2>&5
17277   ac_status=$?
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } &&
17280          { ac_try='test -s conftest$ac_exeext'
17281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282   (eval $ac_try) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; }; then
17286   ac_cv_func_pthread_create=yes
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 ac_cv_func_pthread_create=no
17292 fi
17293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17294 fi
17295 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17296 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17297
17298
17299 fi
17300
17301
17302 fi
17303
17304
17305 fi
17306
17307
17308
17309 cat >>confdefs.h <<\_ACEOF
17310 #define FDLIBS 1
17311 _ACEOF
17312
17313
17314
17315 CFLAGS=${CFLAGS--O}
17316 LDFLAGS=${LDFLAGS--O}
17317 DB_LIBS="${SQL_LFLAGS}"
17318
17319 CPPFLAGS="$CPPFLAGS"
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334 OBJLIST=
17335
17336
17337 lld="lld"
17338 llu="llu"
17339
17340 WCFLAGS=
17341 WLDFLAGS=
17342
17343 #
17344 # Finally we set appropriate distribution specific
17345 #  variables and defaults
17346 #
17347 # PFILES are platform specific files
17348 PFILES="platforms/Makefile"
17349 PSCMD="ps -e"
17350 WIN32=
17351 hostname=`uname -n`
17352 case "$DISTNAME" in
17353 aix)
17354         DISTVER=`uname -r`
17355         PSCMD="ps -e -o pid,comm"
17356         PFILES="${PFILES} \
17357            platforms/aix/Makefile"
17358         TAPEDRIVE="/dev/rmt0.1"
17359   ;;
17360 alpha)
17361         DISTVER=`uname -r`
17362         PTHREAD_LIB="-lpthread -lexc"
17363         if test "${CC}" = "gcc" ; then
17364            lld="lld"
17365            llu="llu"
17366         else
17367            lld="ld"
17368            llu="lu"
17369         fi
17370         TAPEDRIVE="/dev/nrmt0"
17371   ;;
17372 bsdi)
17373         DISTVER=`uname -a |awk '{print $3}'`
17374         TAPEDRIVE="/dev/nrmt0"
17375         PTHREAD_LIB="-pthread"
17376         CFLAGS="${CFLAGS} -pthread"
17377         PSCMD="ps -x -o pid,command"
17378         lld="qd"
17379         llu="qu"
17380         PFILES="${PFILES} \
17381             platforms/bsdi/Makefile \
17382             platforms/bsdi/bacula-fd \
17383             platforms/bsdi/bacula-sd \
17384             platforms/bsdi/bacula-dir"
17385         hostname=`hostname -s`
17386         largefile_support="yes"
17387   ;;
17388 cygwin)
17389         DISTVER=`uname -a |awk '{print $3}'`
17390         TAPEDRIVE="/dev/nrst0"
17391         WIN32=win32
17392         WCFLAGS="-mwindows"
17393         WLDFLAGS="-mwindows"
17394   ;;
17395 darwin)
17396         DISTVER=`uname -r`
17397         TAPEDRIVE="/dev/nst0"
17398         PSCMD="ps -e -o pid,command"
17399         hostname=`hostname -s`
17400         PFILES="${PFILES} \
17401            platforms/darwin/Makefile"
17402   ;;
17403 debian)
17404         DISTVER=`cat /etc/debian_version`
17405         TAPEDRIVE="/dev/nrst0"
17406         PSCMD="ps -e -o pid,command"
17407         hostname=`hostname -s`
17408   ;;
17409 freebsd)
17410         DISTVER=`uname -a |awk '{print $3}'`
17411         VER=`echo $DISTVER | cut -c 1`
17412         if test x$VER = x4 ; then
17413            PTHREAD_LIB="-pthread"
17414            CFLAGS="${CFLAGS} -pthread"
17415         fi
17416         lld="qd"
17417         llu="qu"
17418         TAPEDRIVE="/dev/nrsa0"
17419         PSCMD="ps -x -o pid,command"
17420         PFILES="${PFILES} \
17421             platforms/freebsd/Makefile \
17422             platforms/freebsd/bacula-fd \
17423             platforms/freebsd/bacula-sd \
17424             platforms/freebsd/bacula-dir"
17425         hostname=`hostname -s`
17426         largefile_support="yes"
17427   ;;
17428 hpux)
17429         DISTVER=`uname -r`
17430         TAPEDRIVE="/dev/rmt/0hnb"
17431   ;;
17432 irix)
17433         DISTVER=`uname -r`
17434         TAPEDRIVE="/dev/rmt/0cbn"
17435         PSCMD="ps -e -o pid,comm"
17436         PFILES="${PFILES} \
17437             platforms/irix/Makefile \
17438             platforms/irix/bacula-fd \
17439             platforms/irix/bacula-sd \
17440             platforms/irix/bacula-dir"
17441   ;;
17442 netbsd)
17443         DISTVER=`uname -a |awk '{print $3}'`
17444         lld="qd"
17445         llu="qu"
17446         TAPEDRIVE="/dev/nrst0"
17447         PSCMD="ps -a -o pid,command"
17448         PTHREAD_LIB="-pthread"
17449         CFLAGS="${CFLAGS} -pthread"
17450   ;;
17451 openbsd)
17452         DISTVER=`uname -a |awk '{print $3}'`
17453         lld="qd"
17454         llu="qu"
17455         TAPEDRIVE="/dev/nrst0"
17456         PSCMD="ps -a -o pid,command"
17457         PTHREAD_LIB="-pthread"
17458         CFLAGS="${CFLAGS} -pthread"
17459         PFILES="${PFILES} \
17460             platforms/openbsd/Makefile \
17461             platforms/openbsd/bacula-fd \
17462             platforms/openbsd/bacula-sd \
17463             platforms/openbsd/bacula-dir"
17464   ;;
17465 redhat)
17466         DISTVER=`cat /etc/redhat-release | grep release |\
17467            cut -f 5 -d ' '`
17468         TAPEDRIVE="/dev/nst0"
17469         PSCMD="ps -e -o pid,command"
17470         PFILES="${PFILES} \
17471             platforms/redhat/Makefile \
17472             platforms/redhat/bacula-fd \
17473             platforms/redhat/bacula-sd \
17474             platforms/redhat/bacula-dir \
17475             platforms/redhat/bacula.spec \
17476             "
17477         hostname=`hostname -s`
17478   ;;
17479 mandrake)
17480         DISTVER=`cat /etc/mandrake-release | grep release |\
17481            cut -f 5 -d ' '`
17482         TAPEDRIVE="/dev/nst0"
17483         PSCMD="ps -e -o pid,command"
17484         PFILES="${PFILES} \
17485             platforms/mandrake/Makefile \
17486             platforms/mandrake/bacula-fd \
17487             platforms/mandrake/bacula-sd \
17488             platforms/mandrake/bacula-dir \
17489             platforms/mandrake/bacula.spec \
17490             "
17491         hostname=`hostname -s`
17492   ;;
17493 gentoo)
17494         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17495         TAPEDRIVE="/dev/nst0"
17496         PSCMD="ps -e -o pid,command"
17497         PFILES="${PFILES} \
17498             platforms/gentoo/Makefile \
17499             platforms/gentoo/bacula-fd \
17500             platforms/gentoo/bacula-sd \
17501             platforms/gentoo/bacula-dir"
17502         hostname=`hostname -s`
17503   ;;
17504
17505 slackware)
17506         DISTVER=`cat /etc/slackware-version`
17507         TAPEDRIVE="/dev/nst0"
17508         PSCMD="ps -e -o pid,command"
17509         hostname=`hostname -s`
17510   ;;
17511 solaris)
17512         DISTVER=`uname -r`
17513         TAPEDRIVE="/dev/rmt/0cbn"
17514         PSCMD="ps -e -o pid,comm"
17515         PFILES="${PFILES} \
17516             platforms/solaris/Makefile \
17517             platforms/solaris/bacula-fd \
17518             platforms/solaris/bacula-sd \
17519             platforms/solaris/bacula-dir"
17520         if test x$DISTVER = x5.6 ; then
17521             cat >>confdefs.h <<\_ACEOF
17522 #define HAVE_OLD_SOCKOPT 1
17523 _ACEOF
17524
17525         fi
17526   ;;
17527 suse)
17528         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17529             cut -f 3 -d ' '`
17530         TAPEDRIVE="/dev/nst0"
17531         PSCMD="ps -e -o pid,command"
17532         hostname=`hostname -s`
17533         PFILES="${PFILES} \
17534             platforms/suse/Makefile \
17535             platforms/suse/bacula-fd \
17536             platforms/suse/bacula-sd \
17537             platforms/suse/bacula-dir"
17538   ;;
17539 suse5)
17540         DISTNAME=suse
17541         DISTVER=5.x
17542         TAPEDRIVE="/dev/nst0"
17543         PSCMD="ps -e -o pid,command"
17544         hostname=`hostname -s`
17545         PFILES="${PFILES} \
17546             platforms/suse/Makefile \
17547             platforms/suse/bacula-fd \
17548             platforms/suse/bacula-sd \
17549             platforms/suse/bacula-dir"
17550   ;;
17551 unknown)
17552         DISTVER=unknown
17553         TAPEDRIVE="/dev/nst0"
17554   ;;
17555 *)
17556   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17557   ;;
17558 esac
17559
17560
17561
17562 LIBS="$PTHREAD_LIB $LIBS"
17563
17564 cat >>confdefs.h <<_ACEOF
17565 #define lld "$lld"
17566 _ACEOF
17567
17568 cat >>confdefs.h <<_ACEOF
17569 #define llu "$llu"
17570 _ACEOF
17571
17572
17573
17574
17575
17576
17577
17578 MCOMMON=./autoconf/Make.common
17579
17580
17581 if test "x${subsysdir}" = "x${sbindir}" ; then
17582    echo " "
17583    echo " "
17584    echo "You have set both --sbindir and --with-subsys-dir"
17585    echo "  equal to: ${subsysdir} "
17586    echo "This is not permitted. Please reconfigure."
17587    echo " "
17588    echo "Aborting configuration ..."
17589    echo " "
17590    echo " "
17591    exit 1
17592 fi
17593
17594                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/console scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/console.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/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/make_mysql_tables src/cats/drop_mysql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/update_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17595           ac_config_commands="$ac_config_commands default"
17596 cat >confcache <<\_ACEOF
17597 # This file is a shell script that caches the results of configure
17598 # tests run on this system so they can be shared between configure
17599 # scripts and configure runs, see configure's option --config-cache.
17600 # It is not useful on other systems.  If it contains results you don't
17601 # want to keep, you may remove or edit it.
17602 #
17603 # config.status only pays attention to the cache file if you give it
17604 # the --recheck option to rerun configure.
17605 #
17606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17608 # following values.
17609
17610 _ACEOF
17611
17612 # The following way of writing the cache mishandles newlines in values,
17613 # but we know of no workaround that is simple, portable, and efficient.
17614 # So, don't put newlines in cache variables' values.
17615 # Ultrix sh set writes to stderr and can't be redirected directly,
17616 # and sets the high bit in the cache file unless we assign to the vars.
17617 {
17618   (set) 2>&1 |
17619     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17620     *ac_space=\ *)
17621       # `set' does not quote correctly, so add quotes (double-quote
17622       # substitution turns \\\\ into \\, and sed turns \\ into \).
17623       sed -n \
17624         "s/'/'\\\\''/g;
17625           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17626       ;;
17627     *)
17628       # `set' quotes correctly as required by POSIX, so do not add quotes.
17629       sed -n \
17630         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17631       ;;
17632     esac;
17633 } |
17634   sed '
17635      t clear
17636      : clear
17637      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17638      t end
17639      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17640      : end' >>confcache
17641 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17642   if test -w $cache_file; then
17643     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17644     cat confcache >$cache_file
17645   else
17646     echo "not updating unwritable cache $cache_file"
17647   fi
17648 fi
17649 rm -f confcache
17650
17651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17652 # Let make expand exec_prefix.
17653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17654
17655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17657 # trailing colons and then remove the whole line if VPATH becomes empty
17658 # (actually we leave an empty line to preserve line numbers).
17659 if test "x$srcdir" = x.; then
17660   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17661 s/:*\$(srcdir):*/:/;
17662 s/:*\${srcdir}:*/:/;
17663 s/:*@srcdir@:*/:/;
17664 s/^\([^=]*=[    ]*\):*/\1/;
17665 s/:*$//;
17666 s/^[^=]*=[      ]*$//;
17667 }'
17668 fi
17669
17670 DEFS=-DHAVE_CONFIG_H
17671
17672 ac_libobjs=
17673 ac_ltlibobjs=
17674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17675   # 1. Remove the extension, and $U if already installed.
17676   ac_i=`echo "$ac_i" |
17677          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17678   # 2. Add them.
17679   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17680   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17681 done
17682 LIBOBJS=$ac_libobjs
17683
17684 LTLIBOBJS=$ac_ltlibobjs
17685
17686
17687
17688 : ${CONFIG_STATUS=./config.status}
17689 ac_clean_files_save=$ac_clean_files
17690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17693 cat >$CONFIG_STATUS <<_ACEOF
17694 #! $SHELL
17695 # Generated by $as_me.
17696 # Run this file to recreate the current configuration.
17697 # Compiler output produced by configure, useful for debugging
17698 # configure, is in config.log if it exists.
17699
17700 debug=false
17701 ac_cs_recheck=false
17702 ac_cs_silent=false
17703 SHELL=\${CONFIG_SHELL-$SHELL}
17704 _ACEOF
17705
17706 cat >>$CONFIG_STATUS <<\_ACEOF
17707 ## --------------------- ##
17708 ## M4sh Initialization.  ##
17709 ## --------------------- ##
17710
17711 # Be Bourne compatible
17712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17713   emulate sh
17714   NULLCMD=:
17715   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17716   # is contrary to our usage.  Disable this feature.
17717   alias -g '${1+"$@"}'='"$@"'
17718 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17719   set -o posix
17720 fi
17721
17722 # Support unset when possible.
17723 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17724   as_unset=unset
17725 else
17726   as_unset=false
17727 fi
17728
17729
17730 # Work around bugs in pre-3.0 UWIN ksh.
17731 $as_unset ENV MAIL MAILPATH
17732 PS1='$ '
17733 PS2='> '
17734 PS4='+ '
17735
17736 # NLS nuisances.
17737 for as_var in \
17738   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17739   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17740   LC_TELEPHONE LC_TIME
17741 do
17742   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17743     eval $as_var=C; export $as_var
17744   else
17745     $as_unset $as_var
17746   fi
17747 done
17748
17749 # Required to use basename.
17750 if expr a : '\(a\)' >/dev/null 2>&1; then
17751   as_expr=expr
17752 else
17753   as_expr=false
17754 fi
17755
17756 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17757   as_basename=basename
17758 else
17759   as_basename=false
17760 fi
17761
17762
17763 # Name of the executable.
17764 as_me=`$as_basename "$0" ||
17765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17766          X"$0" : 'X\(//\)$' \| \
17767          X"$0" : 'X\(/\)$' \| \
17768          .     : '\(.\)' 2>/dev/null ||
17769 echo X/"$0" |
17770     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17771           /^X\/\(\/\/\)$/{ s//\1/; q; }
17772           /^X\/\(\/\).*/{ s//\1/; q; }
17773           s/.*/./; q'`
17774
17775
17776 # PATH needs CR, and LINENO needs CR and PATH.
17777 # Avoid depending upon Character Ranges.
17778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17781 as_cr_digits='0123456789'
17782 as_cr_alnum=$as_cr_Letters$as_cr_digits
17783
17784 # The user is always right.
17785 if test "${PATH_SEPARATOR+set}" != set; then
17786   echo "#! /bin/sh" >conf$$.sh
17787   echo  "exit 0"   >>conf$$.sh
17788   chmod +x conf$$.sh
17789   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17790     PATH_SEPARATOR=';'
17791   else
17792     PATH_SEPARATOR=:
17793   fi
17794   rm -f conf$$.sh
17795 fi
17796
17797
17798   as_lineno_1=$LINENO
17799   as_lineno_2=$LINENO
17800   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17801   test "x$as_lineno_1" != "x$as_lineno_2" &&
17802   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17803   # Find who we are.  Look in the path if we contain no path at all
17804   # relative or not.
17805   case $0 in
17806     *[\\/]* ) as_myself=$0 ;;
17807     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17808 for as_dir in $PATH
17809 do
17810   IFS=$as_save_IFS
17811   test -z "$as_dir" && as_dir=.
17812   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17813 done
17814
17815        ;;
17816   esac
17817   # We did not find ourselves, most probably we were run as `sh COMMAND'
17818   # in which case we are not to be found in the path.
17819   if test "x$as_myself" = x; then
17820     as_myself=$0
17821   fi
17822   if test ! -f "$as_myself"; then
17823     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17824 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17825    { (exit 1); exit 1; }; }
17826   fi
17827   case $CONFIG_SHELL in
17828   '')
17829     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17830 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17831 do
17832   IFS=$as_save_IFS
17833   test -z "$as_dir" && as_dir=.
17834   for as_base in sh bash ksh sh5; do
17835          case $as_dir in
17836          /*)
17837            if ("$as_dir/$as_base" -c '
17838   as_lineno_1=$LINENO
17839   as_lineno_2=$LINENO
17840   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17841   test "x$as_lineno_1" != "x$as_lineno_2" &&
17842   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17843              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17844              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17845              CONFIG_SHELL=$as_dir/$as_base
17846              export CONFIG_SHELL
17847              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17848            fi;;
17849          esac
17850        done
17851 done
17852 ;;
17853   esac
17854
17855   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17856   # uniformly replaced by the line number.  The first 'sed' inserts a
17857   # line-number line before each line; the second 'sed' does the real
17858   # work.  The second script uses 'N' to pair each line-number line
17859   # with the numbered line, and appends trailing '-' during
17860   # substitution so that $LINENO is not a special case at line end.
17861   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17862   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17863   sed '=' <$as_myself |
17864     sed '
17865       N
17866       s,$,-,
17867       : loop
17868       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17869       t loop
17870       s,-$,,
17871       s,^['$as_cr_digits']*\n,,
17872     ' >$as_me.lineno &&
17873   chmod +x $as_me.lineno ||
17874     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17875 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17876    { (exit 1); exit 1; }; }
17877
17878   # Don't try to exec as it changes $[0], causing all sort of problems
17879   # (the dirname of $[0] is not the place where we might find the
17880   # original and so on.  Autoconf is especially sensible to this).
17881   . ./$as_me.lineno
17882   # Exit status is that of the last command.
17883   exit
17884 }
17885
17886
17887 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17888   *c*,-n*) ECHO_N= ECHO_C='
17889 ' ECHO_T='      ' ;;
17890   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17891   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17892 esac
17893
17894 if expr a : '\(a\)' >/dev/null 2>&1; then
17895   as_expr=expr
17896 else
17897   as_expr=false
17898 fi
17899
17900 rm -f conf$$ conf$$.exe conf$$.file
17901 echo >conf$$.file
17902 if ln -s conf$$.file conf$$ 2>/dev/null; then
17903   # We could just check for DJGPP; but this test a) works b) is more generic
17904   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17905   if test -f conf$$.exe; then
17906     # Don't use ln at all; we don't have any links
17907     as_ln_s='cp -p'
17908   else
17909     as_ln_s='ln -s'
17910   fi
17911 elif ln conf$$.file conf$$ 2>/dev/null; then
17912   as_ln_s=ln
17913 else
17914   as_ln_s='cp -p'
17915 fi
17916 rm -f conf$$ conf$$.exe conf$$.file
17917
17918 if mkdir -p . 2>/dev/null; then
17919   as_mkdir_p=:
17920 else
17921   as_mkdir_p=false
17922 fi
17923
17924 as_executable_p="test -f"
17925
17926 # Sed expression to map a string onto a valid CPP name.
17927 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17928
17929 # Sed expression to map a string onto a valid variable name.
17930 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17931
17932
17933 # IFS
17934 # We need space, tab and new line, in precisely that order.
17935 as_nl='
17936 '
17937 IFS="   $as_nl"
17938
17939 # CDPATH.
17940 $as_unset CDPATH
17941
17942 exec 6>&1
17943
17944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17945 # report actual input values of CONFIG_FILES etc. instead of their
17946 # values after options handling.  Logging --version etc. is OK.
17947 exec 5>>config.log
17948 {
17949   echo
17950   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17951 ## Running $as_me. ##
17952 _ASBOX
17953 } >&5
17954 cat >&5 <<_CSEOF
17955
17956 This file was extended by $as_me, which was
17957 generated by GNU Autoconf 2.57.  Invocation command line was
17958
17959   CONFIG_FILES    = $CONFIG_FILES
17960   CONFIG_HEADERS  = $CONFIG_HEADERS
17961   CONFIG_LINKS    = $CONFIG_LINKS
17962   CONFIG_COMMANDS = $CONFIG_COMMANDS
17963   $ $0 $@
17964
17965 _CSEOF
17966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17967 echo >&5
17968 _ACEOF
17969
17970 # Files that config.status was made for.
17971 if test -n "$ac_config_files"; then
17972   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17973 fi
17974
17975 if test -n "$ac_config_headers"; then
17976   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17977 fi
17978
17979 if test -n "$ac_config_links"; then
17980   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17981 fi
17982
17983 if test -n "$ac_config_commands"; then
17984   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17985 fi
17986
17987 cat >>$CONFIG_STATUS <<\_ACEOF
17988
17989 ac_cs_usage="\
17990 \`$as_me' instantiates files from templates according to the
17991 current configuration.
17992
17993 Usage: $0 [OPTIONS] [FILE]...
17994
17995   -h, --help       print this help, then exit
17996   -V, --version    print version number, then exit
17997   -q, --quiet      do not print progress messages
17998   -d, --debug      don't remove temporary files
17999       --recheck    update $as_me by reconfiguring in the same conditions
18000   --file=FILE[:TEMPLATE]
18001                    instantiate the configuration file FILE
18002   --header=FILE[:TEMPLATE]
18003                    instantiate the configuration header FILE
18004
18005 Configuration files:
18006 $config_files
18007
18008 Configuration headers:
18009 $config_headers
18010
18011 Configuration commands:
18012 $config_commands
18013
18014 Report bugs to <bug-autoconf@gnu.org>."
18015 _ACEOF
18016
18017 cat >>$CONFIG_STATUS <<_ACEOF
18018 ac_cs_version="\\
18019 config.status
18020 configured by $0, generated by GNU Autoconf 2.57,
18021   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18022
18023 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18024 Free Software Foundation, Inc.
18025 This config.status script is free software; the Free Software Foundation
18026 gives unlimited permission to copy, distribute and modify it."
18027 srcdir=$srcdir
18028 INSTALL="$INSTALL"
18029 _ACEOF
18030
18031 cat >>$CONFIG_STATUS <<\_ACEOF
18032 # If no file are specified by the user, then we need to provide default
18033 # value.  By we need to know if files were specified by the user.
18034 ac_need_defaults=:
18035 while test $# != 0
18036 do
18037   case $1 in
18038   --*=*)
18039     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18040     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18041     ac_shift=:
18042     ;;
18043   -*)
18044     ac_option=$1
18045     ac_optarg=$2
18046     ac_shift=shift
18047     ;;
18048   *) # This is not an option, so the user has probably given explicit
18049      # arguments.
18050      ac_option=$1
18051      ac_need_defaults=false;;
18052   esac
18053
18054   case $ac_option in
18055   # Handling of the options.
18056 _ACEOF
18057 cat >>$CONFIG_STATUS <<\_ACEOF
18058   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18059     ac_cs_recheck=: ;;
18060   --version | --vers* | -V )
18061     echo "$ac_cs_version"; exit 0 ;;
18062   --he | --h)
18063     # Conflict between --help and --header
18064     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18065 Try \`$0 --help' for more information." >&5
18066 echo "$as_me: error: ambiguous option: $1
18067 Try \`$0 --help' for more information." >&2;}
18068    { (exit 1); exit 1; }; };;
18069   --help | --hel | -h )
18070     echo "$ac_cs_usage"; exit 0 ;;
18071   --debug | --d* | -d )
18072     debug=: ;;
18073   --file | --fil | --fi | --f )
18074     $ac_shift
18075     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18076     ac_need_defaults=false;;
18077   --header | --heade | --head | --hea )
18078     $ac_shift
18079     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18080     ac_need_defaults=false;;
18081   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18082   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18083     ac_cs_silent=: ;;
18084
18085   # This is an error.
18086   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18087 Try \`$0 --help' for more information." >&5
18088 echo "$as_me: error: unrecognized option: $1
18089 Try \`$0 --help' for more information." >&2;}
18090    { (exit 1); exit 1; }; } ;;
18091
18092   *) ac_config_targets="$ac_config_targets $1" ;;
18093
18094   esac
18095   shift
18096 done
18097
18098 ac_configure_extra_args=
18099
18100 if $ac_cs_silent; then
18101   exec 6>/dev/null
18102   ac_configure_extra_args="$ac_configure_extra_args --silent"
18103 fi
18104
18105 _ACEOF
18106 cat >>$CONFIG_STATUS <<_ACEOF
18107 if \$ac_cs_recheck; then
18108   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18109   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18110 fi
18111
18112 _ACEOF
18113
18114
18115
18116
18117
18118 cat >>$CONFIG_STATUS <<\_ACEOF
18119 for ac_config_target in $ac_config_targets
18120 do
18121   case "$ac_config_target" in
18122   # Handling of arguments.
18123   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18124   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18125   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18126   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18127   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18128   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18129   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18130   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18131   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18132   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18133   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18134   "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18135   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18136   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18137   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18138   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18139   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18140   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18141   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18142   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18143   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18144   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18145   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18146   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18147   "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18148   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18149   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18150   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18151   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18152   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18153   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18154   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18155   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18156   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18157   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18158   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18159   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18160   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18161   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18162   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18163   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18164   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18165   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18166   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18167   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18168   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18169   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18170   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18171   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18172   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18173   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18174   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18175   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18176   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18177   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18178   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18179   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18180   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18181   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18182   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18183   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18184   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18185   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18186   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18187 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18188    { (exit 1); exit 1; }; };;
18189   esac
18190 done
18191
18192 # If the user did not use the arguments to specify the items to instantiate,
18193 # then the envvar interface is used.  Set only those that are not.
18194 # We use the long form for the default assignment because of an extremely
18195 # bizarre bug on SunOS 4.1.3.
18196 if $ac_need_defaults; then
18197   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18198   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18199   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18200 fi
18201
18202 # Have a temporary directory for convenience.  Make it in the build tree
18203 # simply because there is no reason to put it here, and in addition,
18204 # creating and moving files from /tmp can sometimes cause problems.
18205 # Create a temporary directory, and hook for its removal unless debugging.
18206 $debug ||
18207 {
18208   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18209   trap '{ (exit 1); exit 1; }' 1 2 13 15
18210 }
18211
18212 # Create a (secure) tmp directory for tmp files.
18213
18214 {
18215   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18216   test -n "$tmp" && test -d "$tmp"
18217 }  ||
18218 {
18219   tmp=./confstat$$-$RANDOM
18220   (umask 077 && mkdir $tmp)
18221 } ||
18222 {
18223    echo "$me: cannot create a temporary directory in ." >&2
18224    { (exit 1); exit 1; }
18225 }
18226
18227 _ACEOF
18228
18229 cat >>$CONFIG_STATUS <<_ACEOF
18230
18231 #
18232 # CONFIG_FILES section.
18233 #
18234
18235 # No need to generate the scripts if there are no CONFIG_FILES.
18236 # This happens for instance when ./config.status config.h
18237 if test -n "\$CONFIG_FILES"; then
18238   # Protect against being on the right side of a sed subst in config.status.
18239   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18240    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18241 s,@SHELL@,$SHELL,;t t
18242 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18243 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18244 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18245 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18246 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18247 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18248 s,@exec_prefix@,$exec_prefix,;t t
18249 s,@prefix@,$prefix,;t t
18250 s,@program_transform_name@,$program_transform_name,;t t
18251 s,@bindir@,$bindir,;t t
18252 s,@sbindir@,$sbindir,;t t
18253 s,@libexecdir@,$libexecdir,;t t
18254 s,@datadir@,$datadir,;t t
18255 s,@sysconfdir@,$sysconfdir,;t t
18256 s,@sharedstatedir@,$sharedstatedir,;t t
18257 s,@localstatedir@,$localstatedir,;t t
18258 s,@libdir@,$libdir,;t t
18259 s,@includedir@,$includedir,;t t
18260 s,@oldincludedir@,$oldincludedir,;t t
18261 s,@infodir@,$infodir,;t t
18262 s,@mandir@,$mandir,;t t
18263 s,@build_alias@,$build_alias,;t t
18264 s,@host_alias@,$host_alias,;t t
18265 s,@target_alias@,$target_alias,;t t
18266 s,@DEFS@,$DEFS,;t t
18267 s,@ECHO_C@,$ECHO_C,;t t
18268 s,@ECHO_N@,$ECHO_N,;t t
18269 s,@ECHO_T@,$ECHO_T,;t t
18270 s,@LIBS@,$LIBS,;t t
18271 s,@BUILD_DIR@,$BUILD_DIR,;t t
18272 s,@TRUEPRG@,$TRUEPRG,;t t
18273 s,@FALSEPRG@,$FALSEPRG,;t t
18274 s,@build@,$build,;t t
18275 s,@build_cpu@,$build_cpu,;t t
18276 s,@build_vendor@,$build_vendor,;t t
18277 s,@build_os@,$build_os,;t t
18278 s,@host@,$host,;t t
18279 s,@host_cpu@,$host_cpu,;t t
18280 s,@host_vendor@,$host_vendor,;t t
18281 s,@host_os@,$host_os,;t t
18282 s,@VERSION@,$VERSION,;t t
18283 s,@DATE@,$DATE,;t t
18284 s,@LSMDATE@,$LSMDATE,;t t
18285 s,@CC@,$CC,;t t
18286 s,@CFLAGS@,$CFLAGS,;t t
18287 s,@LDFLAGS@,$LDFLAGS,;t t
18288 s,@CPPFLAGS@,$CPPFLAGS,;t t
18289 s,@ac_ct_CC@,$ac_ct_CC,;t t
18290 s,@EXEEXT@,$EXEEXT,;t t
18291 s,@OBJEXT@,$OBJEXT,;t t
18292 s,@CXX@,$CXX,;t t
18293 s,@CXXFLAGS@,$CXXFLAGS,;t t
18294 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18295 s,@CPP@,$CPP,;t t
18296 s,@EGREP@,$EGREP,;t t
18297 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18298 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18299 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18300 s,@RANLIB@,$RANLIB,;t t
18301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18302 s,@MV@,$MV,;t t
18303 s,@RM@,$RM,;t t
18304 s,@CP@,$CP,;t t
18305 s,@SED@,$SED,;t t
18306 s,@AWK@,$AWK,;t t
18307 s,@ECHO@,$ECHO,;t t
18308 s,@CMP@,$CMP,;t t
18309 s,@TBL@,$TBL,;t t
18310 s,@AR@,$AR,;t t
18311 s,@OPENSSL@,$OPENSSL,;t t
18312 s,@MTX@,$MTX,;t t
18313 s,@PKGCONFIG@,$PKGCONFIG,;t t
18314 s,@ARFLAGS@,$ARFLAGS,;t t
18315 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18316 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18317 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18318 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18319 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18320 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18321 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18322 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18323 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18324 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18325 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18326 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18327 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18328 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18329 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18330 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18331 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18332 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18333 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18334 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18335 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18336 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18337 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18338 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18339 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18340 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18341 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18342 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18343 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18344 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18345 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18346 s,@MSGFMT@,$MSGFMT,;t t
18347 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18348 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18349 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18350 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18351 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18352 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18353 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18354 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18355 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18356 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18357 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18358 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18359 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18360 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18361 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18362 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18363 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18364 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18365 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18366 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18367 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18368 s,@GNOME_DIR@,$GNOME_DIR,;t t
18369 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18370 s,@STATIC_FD@,$STATIC_FD,;t t
18371 s,@STATIC_SD@,$STATIC_SD,;t t
18372 s,@STATIC_DIR@,$STATIC_DIR,;t t
18373 s,@STATIC_CONS@,$STATIC_CONS,;t t
18374 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18375 s,@ALL_DIRS@,$ALL_DIRS,;t t
18376 s,@CONS_INC@,$CONS_INC,;t t
18377 s,@CONS_LIBS@,$CONS_LIBS,;t t
18378 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18379 s,@READLINE_SRC@,$READLINE_SRC,;t t
18380 s,@working_dir@,$working_dir,;t t
18381 s,@scriptdir@,$scriptdir,;t t
18382 s,@dump_email@,$dump_email,;t t
18383 s,@job_email@,$job_email,;t t
18384 s,@smtp_host@,$smtp_host,;t t
18385 s,@piddir@,$piddir,;t t
18386 s,@subsysdir@,$subsysdir,;t t
18387 s,@baseport@,$baseport,;t t
18388 s,@dir_port@,$dir_port,;t t
18389 s,@fd_port@,$fd_port,;t t
18390 s,@sd_port@,$sd_port,;t t
18391 s,@dir_password@,$dir_password,;t t
18392 s,@fd_password@,$fd_password,;t t
18393 s,@sd_password@,$sd_password,;t t
18394 s,@dir_user@,$dir_user,;t t
18395 s,@dir_group@,$dir_group,;t t
18396 s,@sd_user@,$sd_user,;t t
18397 s,@sd_group@,$sd_group,;t t
18398 s,@fd_user@,$fd_user,;t t
18399 s,@fd_group@,$fd_group,;t t
18400 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18401 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18402 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18403 s,@cats@,$cats,;t t
18404 s,@DB_NAME@,$DB_NAME,;t t
18405 s,@GETCONF@,$GETCONF,;t t
18406 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18407 s,@X_CFLAGS@,$X_CFLAGS,;t t
18408 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18409 s,@X_LIBS@,$X_LIBS,;t t
18410 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18411 s,@LIBOBJS@,$LIBOBJS,;t t
18412 s,@ALLOCA@,$ALLOCA,;t t
18413 s,@FDLIBS@,$FDLIBS,;t t
18414 s,@DEBUG@,$DEBUG,;t t
18415 s,@DINCLUDE@,$DINCLUDE,;t t
18416 s,@DLIB@,$DLIB,;t t
18417 s,@DB_LIBS@,$DB_LIBS,;t t
18418 s,@WCFLAGS@,$WCFLAGS,;t t
18419 s,@WLDFLAGS@,$WLDFLAGS,;t t
18420 s,@OBJLIST@,$OBJLIST,;t t
18421 s,@hostname@,$hostname,;t t
18422 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18423 s,@PSCMD@,$PSCMD,;t t
18424 s,@WIN32@,$WIN32,;t t
18425 s,@DISTNAME@,$DISTNAME,;t t
18426 s,@DISTVER@,$DISTVER,;t t
18427 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18428 /@MCOMMON@/r $MCOMMON
18429 s,@MCOMMON@,,;t t
18430 CEOF
18431
18432 _ACEOF
18433
18434   cat >>$CONFIG_STATUS <<\_ACEOF
18435   # Split the substitutions into bite-sized pieces for seds with
18436   # small command number limits, like on Digital OSF/1 and HP-UX.
18437   ac_max_sed_lines=48
18438   ac_sed_frag=1 # Number of current file.
18439   ac_beg=1 # First line for current file.
18440   ac_end=$ac_max_sed_lines # Line after last line for current file.
18441   ac_more_lines=:
18442   ac_sed_cmds=
18443   while $ac_more_lines; do
18444     if test $ac_beg -gt 1; then
18445       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18446     else
18447       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18448     fi
18449     if test ! -s $tmp/subs.frag; then
18450       ac_more_lines=false
18451     else
18452       # The purpose of the label and of the branching condition is to
18453       # speed up the sed processing (if there are no `@' at all, there
18454       # is no need to browse any of the substitutions).
18455       # These are the two extra sed commands mentioned above.
18456       (echo ':t
18457   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18458       if test -z "$ac_sed_cmds"; then
18459         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18460       else
18461         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18462       fi
18463       ac_sed_frag=`expr $ac_sed_frag + 1`
18464       ac_beg=$ac_end
18465       ac_end=`expr $ac_end + $ac_max_sed_lines`
18466     fi
18467   done
18468   if test -z "$ac_sed_cmds"; then
18469     ac_sed_cmds=cat
18470   fi
18471 fi # test -n "$CONFIG_FILES"
18472
18473 _ACEOF
18474 cat >>$CONFIG_STATUS <<\_ACEOF
18475 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18476   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18477   case $ac_file in
18478   - | *:- | *:-:* ) # input from stdin
18479         cat >$tmp/stdin
18480         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18481         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18482   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18483         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18484   * )   ac_file_in=$ac_file.in ;;
18485   esac
18486
18487   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18488   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18490          X"$ac_file" : 'X\(//\)[^/]' \| \
18491          X"$ac_file" : 'X\(//\)$' \| \
18492          X"$ac_file" : 'X\(/\)' \| \
18493          .     : '\(.\)' 2>/dev/null ||
18494 echo X"$ac_file" |
18495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18496           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18497           /^X\(\/\/\)$/{ s//\1/; q; }
18498           /^X\(\/\).*/{ s//\1/; q; }
18499           s/.*/./; q'`
18500   { if $as_mkdir_p; then
18501     mkdir -p "$ac_dir"
18502   else
18503     as_dir="$ac_dir"
18504     as_dirs=
18505     while test ! -d "$as_dir"; do
18506       as_dirs="$as_dir $as_dirs"
18507       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18509          X"$as_dir" : 'X\(//\)[^/]' \| \
18510          X"$as_dir" : 'X\(//\)$' \| \
18511          X"$as_dir" : 'X\(/\)' \| \
18512          .     : '\(.\)' 2>/dev/null ||
18513 echo X"$as_dir" |
18514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18515           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18516           /^X\(\/\/\)$/{ s//\1/; q; }
18517           /^X\(\/\).*/{ s//\1/; q; }
18518           s/.*/./; q'`
18519     done
18520     test ! -n "$as_dirs" || mkdir $as_dirs
18521   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18522 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18523    { (exit 1); exit 1; }; }; }
18524
18525   ac_builddir=.
18526
18527 if test "$ac_dir" != .; then
18528   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18529   # A "../" for each directory in $ac_dir_suffix.
18530   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18531 else
18532   ac_dir_suffix= ac_top_builddir=
18533 fi
18534
18535 case $srcdir in
18536   .)  # No --srcdir option.  We are building in place.
18537     ac_srcdir=.
18538     if test -z "$ac_top_builddir"; then
18539        ac_top_srcdir=.
18540     else
18541        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18542     fi ;;
18543   [\\/]* | ?:[\\/]* )  # Absolute path.
18544     ac_srcdir=$srcdir$ac_dir_suffix;
18545     ac_top_srcdir=$srcdir ;;
18546   *) # Relative path.
18547     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18548     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18549 esac
18550 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18551 # absolute.
18552 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18553 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18554 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18555 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18556
18557
18558   case $INSTALL in
18559   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18560   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18561   esac
18562
18563   if test x"$ac_file" != x-; then
18564     { echo "$as_me:$LINENO: creating $ac_file" >&5
18565 echo "$as_me: creating $ac_file" >&6;}
18566     rm -f "$ac_file"
18567   fi
18568   # Let's still pretend it is `configure' which instantiates (i.e., don't
18569   # use $as_me), people would be surprised to read:
18570   #    /* config.h.  Generated by config.status.  */
18571   if test x"$ac_file" = x-; then
18572     configure_input=
18573   else
18574     configure_input="$ac_file.  "
18575   fi
18576   configure_input=$configure_input"Generated from `echo $ac_file_in |
18577                                      sed 's,.*/,,'` by configure."
18578
18579   # First look for the input files in the build tree, otherwise in the
18580   # src tree.
18581   ac_file_inputs=`IFS=:
18582     for f in $ac_file_in; do
18583       case $f in
18584       -) echo $tmp/stdin ;;
18585       [\\/$]*)
18586          # Absolute (can't be DOS-style, as IFS=:)
18587          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18588 echo "$as_me: error: cannot find input file: $f" >&2;}
18589    { (exit 1); exit 1; }; }
18590          echo $f;;
18591       *) # Relative
18592          if test -f "$f"; then
18593            # Build tree
18594            echo $f
18595          elif test -f "$srcdir/$f"; then
18596            # Source tree
18597            echo $srcdir/$f
18598          else
18599            # /dev/null tree
18600            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18601 echo "$as_me: error: cannot find input file: $f" >&2;}
18602    { (exit 1); exit 1; }; }
18603          fi;;
18604       esac
18605     done` || { (exit 1); exit 1; }
18606 _ACEOF
18607 cat >>$CONFIG_STATUS <<_ACEOF
18608   sed "$ac_vpsub
18609 $extrasub
18610 _ACEOF
18611 cat >>$CONFIG_STATUS <<\_ACEOF
18612 :t
18613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18614 s,@configure_input@,$configure_input,;t t
18615 s,@srcdir@,$ac_srcdir,;t t
18616 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18617 s,@top_srcdir@,$ac_top_srcdir,;t t
18618 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18619 s,@builddir@,$ac_builddir,;t t
18620 s,@abs_builddir@,$ac_abs_builddir,;t t
18621 s,@top_builddir@,$ac_top_builddir,;t t
18622 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18623 s,@INSTALL@,$ac_INSTALL,;t t
18624 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18625   rm -f $tmp/stdin
18626   if test x"$ac_file" != x-; then
18627     mv $tmp/out $ac_file
18628   else
18629     cat $tmp/out
18630     rm -f $tmp/out
18631   fi
18632
18633 done
18634 _ACEOF
18635 cat >>$CONFIG_STATUS <<\_ACEOF
18636
18637 #
18638 # CONFIG_HEADER section.
18639 #
18640
18641 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18642 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18643 #
18644 # ac_d sets the value in "#define NAME VALUE" lines.
18645 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18646 ac_dB='[        ].*$,\1#\2'
18647 ac_dC=' '
18648 ac_dD=',;t'
18649 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18650 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18651 ac_uB='$,\1#\2define\3'
18652 ac_uC=' '
18653 ac_uD=',;t'
18654
18655 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18656   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18657   case $ac_file in
18658   - | *:- | *:-:* ) # input from stdin
18659         cat >$tmp/stdin
18660         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18661         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18662   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18663         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18664   * )   ac_file_in=$ac_file.in ;;
18665   esac
18666
18667   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18668 echo "$as_me: creating $ac_file" >&6;}
18669
18670   # First look for the input files in the build tree, otherwise in the
18671   # src tree.
18672   ac_file_inputs=`IFS=:
18673     for f in $ac_file_in; do
18674       case $f in
18675       -) echo $tmp/stdin ;;
18676       [\\/$]*)
18677          # Absolute (can't be DOS-style, as IFS=:)
18678          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18679 echo "$as_me: error: cannot find input file: $f" >&2;}
18680    { (exit 1); exit 1; }; }
18681          echo $f;;
18682       *) # Relative
18683          if test -f "$f"; then
18684            # Build tree
18685            echo $f
18686          elif test -f "$srcdir/$f"; then
18687            # Source tree
18688            echo $srcdir/$f
18689          else
18690            # /dev/null tree
18691            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18692 echo "$as_me: error: cannot find input file: $f" >&2;}
18693    { (exit 1); exit 1; }; }
18694          fi;;
18695       esac
18696     done` || { (exit 1); exit 1; }
18697   # Remove the trailing spaces.
18698   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18699
18700 _ACEOF
18701
18702 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18703 # `conftest.undefs', that substitutes the proper values into
18704 # config.h.in to produce config.h.  The first handles `#define'
18705 # templates, and the second `#undef' templates.
18706 # And first: Protect against being on the right side of a sed subst in
18707 # config.status.  Protect against being in an unquoted here document
18708 # in config.status.
18709 rm -f conftest.defines conftest.undefs
18710 # Using a here document instead of a string reduces the quoting nightmare.
18711 # Putting comments in sed scripts is not portable.
18712 #
18713 # `end' is used to avoid that the second main sed command (meant for
18714 # 0-ary CPP macros) applies to n-ary macro definitions.
18715 # See the Autoconf documentation for `clear'.
18716 cat >confdef2sed.sed <<\_ACEOF
18717 s/[\\&,]/\\&/g
18718 s,[\\$`],\\&,g
18719 t clear
18720 : clear
18721 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18722 t end
18723 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18724 : end
18725 _ACEOF
18726 # If some macros were called several times there might be several times
18727 # the same #defines, which is useless.  Nevertheless, we may not want to
18728 # sort them, since we want the *last* AC-DEFINE to be honored.
18729 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18730 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18731 rm -f confdef2sed.sed
18732
18733 # This sed command replaces #undef with comments.  This is necessary, for
18734 # example, in the case of _POSIX_SOURCE, which is predefined and required
18735 # on some systems where configure will not decide to define it.
18736 cat >>conftest.undefs <<\_ACEOF
18737 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18738 _ACEOF
18739
18740 # Break up conftest.defines because some shells have a limit on the size
18741 # of here documents, and old seds have small limits too (100 cmds).
18742 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18743 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18744 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18745 echo '  :' >>$CONFIG_STATUS
18746 rm -f conftest.tail
18747 while grep . conftest.defines >/dev/null
18748 do
18749   # Write a limited-size here document to $tmp/defines.sed.
18750   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18751   # Speed up: don't consider the non `#define' lines.
18752   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18753   # Work around the forget-to-reset-the-flag bug.
18754   echo 't clr' >>$CONFIG_STATUS
18755   echo ': clr' >>$CONFIG_STATUS
18756   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18757   echo 'CEOF
18758   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18759   rm -f $tmp/in
18760   mv $tmp/out $tmp/in
18761 ' >>$CONFIG_STATUS
18762   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18763   rm -f conftest.defines
18764   mv conftest.tail conftest.defines
18765 done
18766 rm -f conftest.defines
18767 echo '  fi # grep' >>$CONFIG_STATUS
18768 echo >>$CONFIG_STATUS
18769
18770 # Break up conftest.undefs because some shells have a limit on the size
18771 # of here documents, and old seds have small limits too (100 cmds).
18772 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18773 rm -f conftest.tail
18774 while grep . conftest.undefs >/dev/null
18775 do
18776   # Write a limited-size here document to $tmp/undefs.sed.
18777   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18778   # Speed up: don't consider the non `#undef'
18779   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18780   # Work around the forget-to-reset-the-flag bug.
18781   echo 't clr' >>$CONFIG_STATUS
18782   echo ': clr' >>$CONFIG_STATUS
18783   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18784   echo 'CEOF
18785   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18786   rm -f $tmp/in
18787   mv $tmp/out $tmp/in
18788 ' >>$CONFIG_STATUS
18789   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18790   rm -f conftest.undefs
18791   mv conftest.tail conftest.undefs
18792 done
18793 rm -f conftest.undefs
18794
18795 cat >>$CONFIG_STATUS <<\_ACEOF
18796   # Let's still pretend it is `configure' which instantiates (i.e., don't
18797   # use $as_me), people would be surprised to read:
18798   #    /* config.h.  Generated by config.status.  */
18799   if test x"$ac_file" = x-; then
18800     echo "/* Generated by configure.  */" >$tmp/config.h
18801   else
18802     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18803   fi
18804   cat $tmp/in >>$tmp/config.h
18805   rm -f $tmp/in
18806   if test x"$ac_file" != x-; then
18807     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18808       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18809 echo "$as_me: $ac_file is unchanged" >&6;}
18810     else
18811       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18813          X"$ac_file" : 'X\(//\)[^/]' \| \
18814          X"$ac_file" : 'X\(//\)$' \| \
18815          X"$ac_file" : 'X\(/\)' \| \
18816          .     : '\(.\)' 2>/dev/null ||
18817 echo X"$ac_file" |
18818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18819           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18820           /^X\(\/\/\)$/{ s//\1/; q; }
18821           /^X\(\/\).*/{ s//\1/; q; }
18822           s/.*/./; q'`
18823       { if $as_mkdir_p; then
18824     mkdir -p "$ac_dir"
18825   else
18826     as_dir="$ac_dir"
18827     as_dirs=
18828     while test ! -d "$as_dir"; do
18829       as_dirs="$as_dir $as_dirs"
18830       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18832          X"$as_dir" : 'X\(//\)[^/]' \| \
18833          X"$as_dir" : 'X\(//\)$' \| \
18834          X"$as_dir" : 'X\(/\)' \| \
18835          .     : '\(.\)' 2>/dev/null ||
18836 echo X"$as_dir" |
18837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18838           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18839           /^X\(\/\/\)$/{ s//\1/; q; }
18840           /^X\(\/\).*/{ s//\1/; q; }
18841           s/.*/./; q'`
18842     done
18843     test ! -n "$as_dirs" || mkdir $as_dirs
18844   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18845 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18846    { (exit 1); exit 1; }; }; }
18847
18848       rm -f $ac_file
18849       mv $tmp/config.h $ac_file
18850     fi
18851   else
18852     cat $tmp/config.h
18853     rm -f $tmp/config.h
18854   fi
18855 done
18856 _ACEOF
18857 cat >>$CONFIG_STATUS <<\_ACEOF
18858
18859 #
18860 # CONFIG_COMMANDS section.
18861 #
18862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18863   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18864   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18865   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18867          X"$ac_dest" : 'X\(//\)[^/]' \| \
18868          X"$ac_dest" : 'X\(//\)$' \| \
18869          X"$ac_dest" : 'X\(/\)' \| \
18870          .     : '\(.\)' 2>/dev/null ||
18871 echo X"$ac_dest" |
18872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18874           /^X\(\/\/\)$/{ s//\1/; q; }
18875           /^X\(\/\).*/{ s//\1/; q; }
18876           s/.*/./; q'`
18877   ac_builddir=.
18878
18879 if test "$ac_dir" != .; then
18880   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18881   # A "../" for each directory in $ac_dir_suffix.
18882   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18883 else
18884   ac_dir_suffix= ac_top_builddir=
18885 fi
18886
18887 case $srcdir in
18888   .)  # No --srcdir option.  We are building in place.
18889     ac_srcdir=.
18890     if test -z "$ac_top_builddir"; then
18891        ac_top_srcdir=.
18892     else
18893        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18894     fi ;;
18895   [\\/]* | ?:[\\/]* )  # Absolute path.
18896     ac_srcdir=$srcdir$ac_dir_suffix;
18897     ac_top_srcdir=$srcdir ;;
18898   *) # Relative path.
18899     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18900     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18901 esac
18902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18903 # absolute.
18904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18908
18909
18910   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18911 echo "$as_me: executing $ac_dest commands" >&6;}
18912   case $ac_dest in
18913     default ) (echo "Doing make of dependencies"; make depend;)
18914  ;;
18915   esac
18916 done
18917 _ACEOF
18918
18919 cat >>$CONFIG_STATUS <<\_ACEOF
18920
18921 { (exit 0); exit 0; }
18922 _ACEOF
18923 chmod +x $CONFIG_STATUS
18924 ac_clean_files=$ac_clean_files_save
18925
18926
18927 # configure is writing to config.log, and then calls config.status.
18928 # config.status does its own redirection, appending to config.log.
18929 # Unfortunately, on DOS this fails, as config.log is still kept open
18930 # by configure, so config.status won't be able to write to it; its
18931 # output is simply discarded.  So we exec the FD to /dev/null,
18932 # effectively closing config.log, so it can be properly (re)opened and
18933 # appended to by config.status.  When coming back to configure, we
18934 # need to make the FD available again.
18935 if test "$no_create" != yes; then
18936   ac_cs_success=:
18937   ac_config_status_args=
18938   test "$silent" = yes &&
18939     ac_config_status_args="$ac_config_status_args --quiet"
18940   exec 5>/dev/null
18941   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18942   exec 5>>config.log
18943   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18944   # would make configure fail if this is the last instruction.
18945   $ac_cs_success || { (exit 1); exit 1; }
18946 fi
18947
18948
18949 cd scripts
18950 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18951 chmod 755 console gconsole mtx-changer
18952 cd ..
18953 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18954 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18955 chmod 755 src/cats/create_mysql_database
18956 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18957 chmod 755 src/cats/grant_mysql_privileges
18958 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18959 chmod 755 src/cats/update_sqlite_tables
18960 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18961 chmod 755 src/cats/update_mysql_tables
18962 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
18963 chmod 755 src/cats/create_sqlite_database
18964 chmod 755 src/cats/sqlite
18965 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18966 chmod 755 src/cats/create_bdb_database
18967
18968 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18969    largefile_support="yes"
18970 fi
18971
18972 #
18973 # A whole lot of hand springs to get the compiler version.
18974 #  This is because gcc changed the output in version 3.0
18975 #
18976 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18977 if test "x${CCVERSION}" = "x" ; then
18978   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18979 fi
18980 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18981 if test x"${CXXVERSION}" = x ; then
18982   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18983 fi
18984
18985 if test "x${subsysdir}" = "x${sbindir}" ; then
18986    echo " "
18987    echo " "
18988    echo "You have set --sbindir and --with-subsys-dir"
18989    echo "  both equal to: ${subsysdir} "
18990    echo "  This is not permitted. Please reconfigure."
18991    echo "Aborting configuration ..."
18992    echo " "
18993    echo " "
18994    exit 1
18995 fi
18996
18997 echo "
18998 Configuration on `date`:
18999
19000   Host:                       $host -- ${DISTNAME} ${DISTVER}
19001   Bacula version:             ${VERSION} (${DATE})
19002   Source code location:       ${srcdir}
19003   Install binaries:           ${sbindir}
19004   Install config files:       ${sysconfdir}
19005   Scripts directory:          ${scriptdir}
19006   Working directory:          ${working_dir}
19007   PID directory:              ${piddir}
19008   Subsys directory:           ${subsysdir}
19009   C Compiler:                 ${CC} ${CCVERSION}
19010   C++ Compiler:               ${CXX} ${CXXVERSION}
19011   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19012   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19013   Libraries:                  ${LIBS}
19014   Statically Linked Tools:    ${support_static_tools}
19015   Statically Linked FD:       ${support_static_fd}
19016   Statically Linked SD:       ${support_static_sd}
19017   Statically Linked DIR:      ${support_static_dir}
19018   Statically Linked CONS:     ${support_static_cons}
19019   Database type:              ${db_name}
19020   Database lib:               ${DB_LIBS}
19021
19022   Job Output Email:           ${job_email}
19023   Traceback Email:            ${dump_email}
19024   SMTP Host Address:          ${smtp_host}
19025
19026   Director Port:              ${dir_port}
19027   File daemon Port:           ${fd_port}
19028   Storage daemon Port:        ${sd_port}
19029
19030   Director User:            ${dir_user}
19031   Director Group:           ${dir_group}
19032   Storage Daemon User:      ${dir_user}
19033   Storage DaemonGroup:      ${dir_group}
19034   File Daemon User:         ${dir_user}
19035   File Daemon Group:        ${dir_group}
19036
19037   SQL binaries Directory      ${SQL_BINDIR}
19038
19039   Large file support:         $largefile_support
19040   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19041   TCP Wrappers support:       ${TCPW_MSG}
19042   ZLIB support:               ${have_zlib}
19043   enable-smartalloc:          ${support_smartalloc}
19044   enable-gnome:               ${support_gnome} ${gnome_version}
19045   client-only:                ${build_client_only}
19046
19047   " > config.out
19048
19049 cat config.out
19050
19051 # old stuff
19052 # cweb support:               ${got_cweb} ${CWEB_SRC}
19053 # gmp support:                ${got_gmp} ${GMP_SRC}