]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
a445d54ecfd8c1771d0150f40a53a327d85acaea
[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 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 WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM 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 MACOSX 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-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-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   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
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_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
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_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $OPENSSL in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3601   ;;
3602 esac
3603 fi
3604 OPENSSL=$ac_cv_path_OPENSSL
3605
3606 if test -n "$OPENSSL"; then
3607   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $MTX in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3641   ;;
3642 esac
3643 fi
3644 MTX=$ac_cv_path_MTX
3645
3646 if test -n "$MTX"; then
3647   echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $PKGCONFIG in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3681   ;;
3682 esac
3683 fi
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3685
3686 if test -n "$PKGCONFIG"; then
3687   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $WXCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3721   ;;
3722 esac
3723 fi
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3725
3726 if test -n "$WXCONFIG"; then
3727   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3736
3737
3738 MAKE_SHELL=/bin/sh
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761   ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765    { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769    { (exit 1); exit 1; }; }
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3774 build=$ac_cv_build
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778
3779
3780 echo "$as_me:$LINENO: checking for Operating System" >&5
3781 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789   ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793    { (exit 1); exit 1; }; }
3794
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3798 host=$ac_cv_host
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3802
3803
3804 case $host_os in
3805   *cygwin* ) CYGWIN=yes;;
3806          * ) CYGWIN=no;;
3807 esac
3808
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3810 then
3811
3812
3813 if $TRUEPRG; then
3814   HAVE_SUN_OS_TRUE=
3815   HAVE_SUN_OS_FALSE='#'
3816 else
3817   HAVE_SUN_OS_TRUE='#'
3818   HAVE_SUN_OS_FALSE=
3819 fi
3820         cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3822 _ACEOF
3823
3824 else
3825
3826
3827 if $FALSEPRG; then
3828   HAVE_SUN_OS_TRUE=
3829   HAVE_SUN_OS_FALSE='#'
3830 else
3831   HAVE_SUN_OS_TRUE='#'
3832   HAVE_SUN_OS_FALSE=
3833 fi
3834 fi
3835
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3837 then
3838
3839
3840 if $TRUEPRG; then
3841   HAVE_OSF1_OS_TRUE=
3842   HAVE_OSF1_OS_FALSE='#'
3843 else
3844   HAVE_OSF1_OS_TRUE='#'
3845   HAVE_OSF1_OS_FALSE=
3846 fi
3847         cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3849 _ACEOF
3850
3851 else
3852
3853
3854 if $FALSEPRG; then
3855   HAVE_OSF1_OS_TRUE=
3856   HAVE_OSF1_OS_FALSE='#'
3857 else
3858   HAVE_OSF1_OS_TRUE='#'
3859   HAVE_OSF1_OS_FALSE=
3860 fi
3861 fi
3862
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3864 then
3865
3866
3867 if $TRUEPRG; then
3868   HAVE_AIX_OS_TRUE=
3869   HAVE_AIX_OS_FALSE='#'
3870 else
3871   HAVE_AIX_OS_TRUE='#'
3872   HAVE_AIX_OS_FALSE=
3873 fi
3874         cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3876 _ACEOF
3877
3878 else
3879
3880
3881 if $FALSEPRG; then
3882   HAVE_AIX_OS_TRUE=
3883   HAVE_AIX_OS_FALSE='#'
3884 else
3885   HAVE_AIX_OS_TRUE='#'
3886   HAVE_AIX_OS_FALSE=
3887 fi
3888 fi
3889
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3891 then
3892
3893
3894 if $TRUEPRG; then
3895   HAVE_HPUX_OS_TRUE=
3896   HAVE_HPUX_OS_FALSE='#'
3897 else
3898   HAVE_HPUX_OS_TRUE='#'
3899   HAVE_HPUX_OS_FALSE=
3900 fi
3901         cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3903 _ACEOF
3904
3905 else
3906
3907
3908 if $FALSEPRG; then
3909   HAVE_HPUX_OS_TRUE=
3910   HAVE_HPUX_OS_FALSE='#'
3911 else
3912   HAVE_HPUX_OS_TRUE='#'
3913   HAVE_HPUX_OS_FALSE=
3914 fi
3915 fi
3916
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3918 then
3919
3920
3921 if $TRUEPRG; then
3922   HAVE_LINUX_OS_TRUE=
3923   HAVE_LINUX_OS_FALSE='#'
3924 else
3925   HAVE_LINUX_OS_TRUE='#'
3926   HAVE_LINUX_OS_FALSE=
3927 fi
3928         cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3930 _ACEOF
3931
3932 else
3933
3934
3935 if $FALSEPRG; then
3936   HAVE_LINUX_OS_TRUE=
3937   HAVE_LINUX_OS_FALSE='#'
3938 else
3939   HAVE_LINUX_OS_TRUE='#'
3940   HAVE_LINUX_OS_FALSE=
3941 fi
3942 fi
3943
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3945 then
3946
3947
3948 if $TRUEPRG; then
3949   HAVE_FREEBSD_OS_TRUE=
3950   HAVE_FREEBSD_OS_FALSE='#'
3951 else
3952   HAVE_FREEBSD_OS_TRUE='#'
3953   HAVE_FREEBSD_OS_FALSE=
3954 fi
3955         cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3957 _ACEOF
3958
3959 else
3960
3961
3962 if $FALSEPRG; then
3963   HAVE_FREEBSD_OS_TRUE=
3964   HAVE_FREEBSD_OS_FALSE='#'
3965 else
3966   HAVE_FREEBSD_OS_TRUE='#'
3967   HAVE_FREEBSD_OS_FALSE=
3968 fi
3969 fi
3970
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3972 then
3973
3974
3975 if $TRUEPRG; then
3976   HAVE_NETBSD_OS_TRUE=
3977   HAVE_NETBSD_OS_FALSE='#'
3978 else
3979   HAVE_NETBSD_OS_TRUE='#'
3980   HAVE_NETBSD_OS_FALSE=
3981 fi
3982         cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3984 _ACEOF
3985
3986 else
3987
3988
3989 if $FALSEPRG; then
3990   HAVE_NETBSD_OS_TRUE=
3991   HAVE_NETBSD_OS_FALSE='#'
3992 else
3993   HAVE_NETBSD_OS_TRUE='#'
3994   HAVE_NETBSD_OS_FALSE=
3995 fi
3996 fi
3997
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3999 then
4000
4001
4002 if $TRUEPRG; then
4003   HAVE_OPENBSD_OS_TRUE=
4004   HAVE_OPENBSD_OS_FALSE='#'
4005 else
4006   HAVE_OPENBSD_OS_TRUE='#'
4007   HAVE_OPENBSD_OS_FALSE=
4008 fi
4009         cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4011 _ACEOF
4012
4013 else
4014
4015
4016 if $FALSEPRG; then
4017   HAVE_OPENBSD_OS_TRUE=
4018   HAVE_OPENBSD_OS_FALSE='#'
4019 else
4020   HAVE_OPENBSD_OS_TRUE='#'
4021   HAVE_OPENBSD_OS_FALSE=
4022 fi
4023 fi
4024
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4026 then
4027
4028
4029 if $TRUEPRG; then
4030   HAVE_BSDI_OS_TRUE=
4031   HAVE_BSDI_OS_FALSE='#'
4032 else
4033   HAVE_BSDI_OS_TRUE='#'
4034   HAVE_BSDI_OS_FALSE=
4035 fi
4036         cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4038 _ACEOF
4039
4040 else
4041
4042
4043 if $FALSEPRG; then
4044   HAVE_BSDI_OS_TRUE=
4045   HAVE_BSDI_OS_FALSE='#'
4046 else
4047   HAVE_BSDI_OS_TRUE='#'
4048   HAVE_BSDI_OS_FALSE=
4049 fi
4050 fi
4051
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4053 then
4054
4055
4056 if $TRUEPRG; then
4057   HAVE_SGI_OS_TRUE=
4058   HAVE_SGI_OS_FALSE='#'
4059 else
4060   HAVE_SGI_OS_TRUE='#'
4061   HAVE_SGI_OS_FALSE=
4062 fi
4063         cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4065 _ACEOF
4066
4067 else
4068
4069
4070 if $FALSEPRG; then
4071   HAVE_SGI_OS_TRUE=
4072   HAVE_SGI_OS_FALSE='#'
4073 else
4074   HAVE_SGI_OS_TRUE='#'
4075   HAVE_SGI_OS_FALSE=
4076 fi
4077 fi
4078
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4080 then
4081
4082
4083 if $TRUEPRG; then
4084   HAVE_IRIX_OS_TRUE=
4085   HAVE_IRIX_OS_FALSE='#'
4086 else
4087   HAVE_IRIX_OS_TRUE='#'
4088   HAVE_IRIX_OS_FALSE=
4089 fi
4090         cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4092 _ACEOF
4093
4094 else
4095
4096
4097 if $FALSEPRG; then
4098   HAVE_IRIX_OS_TRUE=
4099   HAVE_IRIX_OS_FALSE='#'
4100 else
4101   HAVE_IRIX_OS_TRUE='#'
4102   HAVE_IRIX_OS_FALSE=
4103 fi
4104 fi
4105
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4107 then
4108
4109
4110 if $TRUEPRG; then
4111   HAVE_DARWIN_OS_TRUE=
4112   HAVE_DARWIN_OS_FALSE='#'
4113 else
4114   HAVE_DARWIN_OS_TRUE='#'
4115   HAVE_DARWIN_OS_FALSE=
4116 fi
4117     cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4119 _ACEOF
4120
4121 else
4122
4123
4124 if $FALSEPRG; then
4125   HAVE_DARWIN_OS_TRUE=
4126   HAVE_DARWIN_OS_FALSE='#'
4127 else
4128   HAVE_DARWIN_OS_TRUE='#'
4129   HAVE_DARWIN_OS_FALSE=
4130 fi
4131 fi
4132
4133 echo "$as_me:$LINENO: result: \" \"" >&5
4134 echo "${ECHO_T}\" \"" >&6
4135
4136
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4142 then
4143         echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 then
4146         DISTNAME=alpha
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 then
4149         DISTNAME=aix
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 then
4152         DISTNAME=hpux
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 then
4155         DISTNAME=solaris
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 then
4158         DISTNAME=freebsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 then
4161         DISTNAME=netbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 then
4164         DISTNAME=openbsd
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 then
4167         DISTNAME=irix
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 then
4170         DISTNAME=bsdi
4171 elif test -f /etc/SuSE-release
4172 then
4173         DISTNAME=suse
4174 elif test -d /etc/SuSEconfig
4175 then
4176         DISTNAME=suse5
4177 elif test -f /etc/mandrake-release
4178 then
4179         DISTNAME=mandrake
4180 elif test -f /etc/redhat-release
4181 then
4182         DISTNAME=redhat
4183 elif test -f /etc/gentoo-release
4184 then
4185         DISTNAME=gentoo
4186 elif test -f /etc/debian_version
4187 then
4188         DISTNAME=debian
4189 elif test -f /etc/slackware-version
4190 then
4191         DISTNAME=slackware
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4193 then
4194     DISTNAME=darwin
4195 elif test -f /etc/engarde-version
4196 then
4197         DISTNAME=engarde
4198 elif test "$CYGWIN" = yes
4199 then
4200         DISTNAME=cygwin
4201         cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4203 _ACEOF
4204
4205 else
4206         DISTNAME=unknown
4207 fi
4208 echo "$as_me:$LINENO: result: \" \"" >&5
4209 echo "${ECHO_T}\" \"" >&6
4210
4211
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4214
4215
4216
4217 if false; then
4218   INSIDE_GNOME_COMMON_TRUE=
4219   INSIDE_GNOME_COMMON_FALSE='#'
4220 else
4221   INSIDE_GNOME_COMMON_TRUE='#'
4222   INSIDE_GNOME_COMMON_FALSE=
4223 fi
4224
4225         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226
4227         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4228
4229
4230 # ------------------------------------------------------------------
4231 #  If the user has not set --prefix, we set our default to nothing.
4232 #  In this case, if the user has not set --sysconfdir, we set it
4233 #  to the package default of /etc/bacula.  If either --prefix or
4234 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238         sysconfdir=/etc/bacula
4239     fi
4240     prefix=
4241 fi
4242 sysconfdir=`eval echo ${sysconfdir}`
4243
4244 # -------------------------------------------------------------------------
4245 #  If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248     exec_prefix=${prefix}
4249 fi
4250
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255     sbindir=${exec_prefix}/sbin
4256 fi
4257 sbindir=`eval echo ${sbindir}`
4258
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 #  language is separated by a space.
4262 # ------------------------------------------------------------------
4263 ALL_LINGUAS=""
4264
4265 for ac_prog in msgfmt
4266 do
4267   # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   case $MSGFMT in
4275   [\\/]* | ?:[\\/]*)
4276   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4277   ;;
4278   *)
4279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293   ;;
4294 esac
4295 fi
4296 MSGFMT=$ac_cv_path_MSGFMT
4297
4298 if test -n "$MSGFMT"; then
4299   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   test -n "$MSGFMT" && break
4307 done
4308 test -n "$MSGFMT" || MSGFMT="no"
4309
4310 if test "$MSGFMT" = "no"
4311 then
4312    echo 'msgfmt program not found, disabling NLS !'
4313    USE_NLS=no
4314    USE_INCLUDED_LIBINTL=no
4315 #else
4316 #   AM_GNU_GETTEXT
4317 fi
4318
4319
4320 support_mysql=no
4321 support_sqlite=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4325 support_conio=yes
4326 support_gnome=no
4327 support_wx_console=no
4328 gnome_version=
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4335 cats=
4336 db_name=Internal
4337 DB_NAME=bdb
4338
4339
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345   enableval="$enable_gnome"
4346   if test x$enableval = xyes; then
4347     support_gnome=yes
4348   fi
4349 fi;
4350
4351 GNOME_DIR=
4352 if test x$support_gnome = xyes; then
4353   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354   pkg=$?
4355   if test $pkg = 0; then
4356      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4360
4361
4362
4363
4364      GNOME_DIR=src/gnome2-console
4365      gnome_version="Version 2.x"
4366   else
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380   withval="$with_gnome_includes"
4381
4382         CFLAGS="$CFLAGS -I$withval"
4383
4384 fi;
4385
4386
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389   withval="$with_gnome_libs"
4390
4391         LDFLAGS="$LDFLAGS -L$withval"
4392         gnome_prefix=$withval
4393
4394 fi;
4395
4396
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399   withval="$with_gnome"
4400   if test x$withval = xyes; then
4401                         want_gnome=yes
4402                                                                         :
4403                 else
4404                         if test "x$withval" = xno; then
4405                                 want_gnome=no
4406                         else
4407                                 want_gnome=yes
4408                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4409                                 CFLAGS="$CFLAGS -I$withval/include"
4410                                 gnome_prefix=$withval/lib
4411                         fi
4412                 fi
4413 else
4414   want_gnome=yes
4415 fi;
4416
4417         if test "x$want_gnome" = xyes; then
4418
4419             # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $GNOME_CONFIG in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446   ;;
4447 esac
4448 fi
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450
4451 if test -n "$GNOME_CONFIG"; then
4452   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459             if test "$GNOME_CONFIG" = "no"; then
4460               no_gnome_config="yes"
4461             else
4462               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465                 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467
4468
4469         # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ORBIT_CONFIG in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496   ;;
4497 esac
4498 fi
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500
4501 if test -n "$ORBIT_CONFIG"; then
4502   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509         # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_IDL in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540
4541 if test -n "$ORBIT_IDL"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554
4555                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556                         gnome_cv_orbit_found=no
4557                 else
4558                         gnome_cv_orbit_found=yes
4559                 fi
4560
4561 fi
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564
4565
4566 if test x$gnome_cv_orbit_found = xyes; then
4567   HAVE_ORBIT_TRUE=
4568   HAVE_ORBIT_FALSE='#'
4569 else
4570   HAVE_ORBIT_TRUE='#'
4571   HAVE_ORBIT_FALSE=
4572 fi
4573         if test x$gnome_cv_orbit_found = xyes; then
4574
4575                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577
4578
4579         else
4580                 if test xfail = xfailure; then
4581                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583    { (exit 1); exit 1; }; }
4584                 fi
4585         fi
4586
4587         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592
4593                 gnome_cv_gnorba_found=no
4594                 if test x$gnome_cv_orbit_found = xyes; then
4595                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597                         if test -n "$GNORBA_LIBS"; then
4598                                 gnome_cv_gnorba_found=yes
4599                         fi
4600                 fi
4601
4602 fi
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605
4606
4607 if test x$gnome_cv_gnorba_found = xyes; then
4608   HAVE_GNORBA_TRUE=
4609   HAVE_GNORBA_FALSE='#'
4610 else
4611   HAVE_GNORBA_TRUE='#'
4612   HAVE_GNORBA_FALSE=
4613 fi
4614         if test x$gnome_cv_orbit_found = xyes; then
4615
4616                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618
4619
4620         else
4621                 if test xfail = xfailure; then
4622                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624    { (exit 1); exit 1; }; }
4625                 fi
4626         fi
4627
4628                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635
4636               else
4637                 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639                 no_gnome_config="yes"
4640               fi
4641             fi
4642
4643             if test x$exec_prefix = xNONE; then
4644                 if test x$prefix = xNONE; then
4645                     gnome_prefix=$ac_default_prefix/lib
4646                 else
4647                     gnome_prefix=$prefix/lib
4648                 fi
4649             else
4650                 gnome_prefix=`eval echo \`echo $libdir\``
4651             fi
4652
4653             if test "$no_gnome_config" = "yes"; then
4654               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656               if test -f $gnome_prefix/gnomeConf.sh; then
4657                 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659                 echo "loading gnome configuration from" \
4660                      "$gnome_prefix/gnomeConf.sh"
4661                 . $gnome_prefix/gnomeConf.sh
4662
4663               else
4664                 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666                 if test xfail = xfail; then
4667                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669    { (exit 1); exit 1; }; }
4670                 fi
4671               fi
4672             fi
4673         fi
4674
4675         if test -n ""; then
4676           n=""
4677           for i in $n; do
4678             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680             case $i in
4681               applets)
4682
4683                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686               docklets)
4687
4688                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691               capplet)
4692
4693                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696               *)
4697                 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4699             esac
4700             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4702           done
4703         fi
4704
4705
4706      GNOME_DIR=src/gnome-console
4707      gnome_version="Version 1.4"
4708   fi
4709 fi
4710
4711
4712
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718   enableval="$enable_wx_console"
4719   if test x$enableval = xyes; then
4720     support_wx_console=yes
4721   fi
4722 fi;
4723
4724 WX_DIR=
4725 if test x$support_wx_console = xyes; then
4726   abc=`$WXCONFIG --cppflags`
4727   pkg=$?
4728   if test $pkg = 0; then
4729      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4731
4732
4733      WX_DIR=src/wx-console
4734   else
4735      echo " "
4736      echo "wx-config program not found. wx-console disabled."
4737      echo " "
4738      support_wx_console=no
4739   fi
4740 fi
4741
4742
4743
4744
4745 # -------------------------------------------
4746 # smartalloc (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4749 if test "${enable_smartalloc+set}" = set; then
4750   enableval="$enable_smartalloc"
4751   if test x$enableval = xno; then
4752     support_smartalloc=no
4753   fi
4754 fi;
4755
4756 if test x$support_smartalloc = xyes; then
4757    cat >>confdefs.h <<\_ACEOF
4758 #define SMARTALLOC 1
4759 _ACEOF
4760
4761 fi
4762
4763 # -------------------------------------------
4764 # static-tools (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-tools or --disable-static-tools was given.
4767 if test "${enable_static_tools+set}" = set; then
4768   enableval="$enable_static_tools"
4769   if test x$enableval = xyes; then
4770      support_static_tools=yes
4771    fi
4772 fi;
4773
4774 TTOOL_LDFLAGS=
4775 if test x$support_static_tools = xyes; then
4776    TTOOL_LDFLAGS="-static"
4777 fi
4778
4779
4780 # -------------------------------------------
4781 # static-fd    (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-fd or --disable-static-fd was given.
4784 if test "${enable_static_fd+set}" = set; then
4785   enableval="$enable_static_fd"
4786   if test x$enableval = xyes; then
4787      support_static_fd=yes
4788    fi
4789 fi;
4790
4791 STATIC_FD=
4792 if test x$support_static_fd = xyes; then
4793    STATIC_FD="static-bacula-fd"
4794 fi
4795
4796
4797 # -------------------------------------------
4798 # static-sd    (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-sd or --disable-static-sd was given.
4801 if test "${enable_static_sd+set}" = set; then
4802   enableval="$enable_static_sd"
4803   if test x$enableval = xyes; then
4804      support_static_sd=yes
4805    fi
4806 fi;
4807
4808 STATIC_SD=
4809 if test x$support_static_sd = xyes; then
4810    STATIC_SD="static-bacula-sd"
4811 fi
4812
4813
4814 # -------------------------------------------
4815 # static-dir   (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-static-dir or --disable-static-dir was given.
4818 if test "${enable_static_dir+set}" = set; then
4819   enableval="$enable_static_dir"
4820   if test x$enableval = xyes; then
4821      support_static_dir=yes
4822    fi
4823 fi;
4824
4825 STATIC_DIR=
4826 if test x$support_static_dir = xyes; then
4827    STATIC_DIR="static-bacula-dir"
4828 fi
4829
4830
4831 # -------------------------------------------
4832 # static-cons  (default off)
4833 # -------------------------------------------
4834 # Check whether --enable-static-cons or --disable-static-cons was given.
4835 if test "${enable_static_cons+set}" = set; then
4836   enableval="$enable_static_cons"
4837   if test x$enableval = xyes; then
4838      support_static_cons=yes
4839    fi
4840 fi;
4841
4842 STATIC_CONS=
4843 STATIC_GNOME_CONS=
4844 STATIC_WX_CONS=
4845 if test x$support_static_cons = xyes; then
4846    STATIC_CONS="static-bconsole"
4847    STATIC_GNOME_CONS="static-gnome-console"
4848    STATIC_WX_CONS="static-wx-console"
4849 fi
4850
4851
4852
4853
4854 # -------------------------------------------
4855 # client_only  (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-client-only or --disable-client-only was given.
4858 if test "${enable_client_only+set}" = set; then
4859   enableval="$enable_client_only"
4860   if test x$enableval = xyes; then
4861      build_client_only=yes
4862     db_name=None
4863     DB_NAME=none
4864    fi
4865 fi;
4866 if test x$build_client_only = xno; then
4867    ALL_DIRS="subdirs"
4868 else
4869    ALL_DIRS=""
4870 fi
4871
4872
4873 # ---------------------------------------------------
4874 # Check for conio (Bacula readline substitute)(
4875 # ---------------------------------------------------
4876 # this allows you to turn it completely off
4877 # Check whether --enable-conio or --disable-conio was given.
4878 if test "${enable_conio+set}" = set; then
4879   enableval="$enable_conio"
4880   if test x$enableval = xno; then
4881     support_conio=no
4882   fi
4883 fi;
4884
4885 got_conio="no"
4886 if test x$support_conio = xyes; then
4887    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4888 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4889 if test "${ac_cv_header_stdc+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
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 <stdlib.h>
4900 #include <stdarg.h>
4901 #include <string.h>
4902 #include <float.h>
4903
4904 int
4905 main ()
4906 {
4907
4908   ;
4909   return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914   (eval $ac_compile) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } &&
4918          { ac_try='test -s conftest.$ac_objext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   ac_cv_header_stdc=yes
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 ac_cv_header_stdc=no
4930 fi
4931 rm -f conftest.$ac_objext conftest.$ac_ext
4932
4933 if test $ac_cv_header_stdc = yes; then
4934   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4935   cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 /* confdefs.h.  */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h.  */
4942 #include <string.h>
4943
4944 _ACEOF
4945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946   $EGREP "memchr" >/dev/null 2>&1; then
4947   :
4948 else
4949   ac_cv_header_stdc=no
4950 fi
4951 rm -f conftest*
4952
4953 fi
4954
4955 if test $ac_cv_header_stdc = yes; then
4956   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4957   cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964 #include <stdlib.h>
4965
4966 _ACEOF
4967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968   $EGREP "free" >/dev/null 2>&1; then
4969   :
4970 else
4971   ac_cv_header_stdc=no
4972 fi
4973 rm -f conftest*
4974
4975 fi
4976
4977 if test $ac_cv_header_stdc = yes; then
4978   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4979   if test "$cross_compiling" = yes; then
4980   :
4981 else
4982   cat >conftest.$ac_ext <<_ACEOF
4983 #line $LINENO "configure"
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 #include <ctype.h>
4990 #if ((' ' & 0x0FF) == 0x020)
4991 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4992 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4993 #else
4994 # define ISLOWER(c) \
4995                    (('a' <= (c) && (c) <= 'i') \
4996                      || ('j' <= (c) && (c) <= 'r') \
4997                      || ('s' <= (c) && (c) <= 'z'))
4998 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4999 #endif
5000
5001 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5002 int
5003 main ()
5004 {
5005   int i;
5006   for (i = 0; i < 256; i++)
5007     if (XOR (islower (i), ISLOWER (i))
5008         || toupper (i) != TOUPPER (i))
5009       exit(2);
5010   exit (0);
5011 }
5012 _ACEOF
5013 rm -f conftest$ac_exeext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5015   (eval $ac_link) 2>&5
5016   ac_status=$?
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; }; then
5024   :
5025 else
5026   echo "$as_me: program exited with status $ac_status" >&5
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 ( exit $ac_status )
5031 ac_cv_header_stdc=no
5032 fi
5033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5034 fi
5035 fi
5036 fi
5037 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5038 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5039 if test $ac_cv_header_stdc = yes; then
5040
5041 cat >>confdefs.h <<\_ACEOF
5042 #define STDC_HEADERS 1
5043 _ACEOF
5044
5045 fi
5046
5047 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5058                   inttypes.h stdint.h unistd.h
5059 do
5060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5061 echo "$as_me:$LINENO: checking for $ac_header" >&5
5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   cat >conftest.$ac_ext <<_ACEOF
5067 #line $LINENO "configure"
5068 /* confdefs.h.  */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h.  */
5073 $ac_includes_default
5074
5075 #include <$ac_header>
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); } &&
5083          { ac_try='test -s conftest.$ac_objext'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; }; then
5089   eval "$as_ac_Header=yes"
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 eval "$as_ac_Header=no"
5095 fi
5096 rm -f conftest.$ac_objext conftest.$ac_ext
5097 fi
5098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101   cat >>confdefs.h <<_ACEOF
5102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103 _ACEOF
5104
5105 fi
5106
5107 done
5108
5109
5110 if test "${ac_cv_header_termcap_h+set}" = set; then
5111   echo "$as_me:$LINENO: checking for termcap.h" >&5
5112 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5113 if test "${ac_cv_header_termcap_h+set}" = set; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 fi
5116 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5117 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5118 else
5119   # Is the header compilable?
5120 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5121 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5122 cat >conftest.$ac_ext <<_ACEOF
5123 #line $LINENO "configure"
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 $ac_includes_default
5130 #include <termcap.h>
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134   (eval $ac_compile) 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); } &&
5138          { ac_try='test -s conftest.$ac_objext'
5139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140   (eval $ac_try) 2>&5
5141   ac_status=$?
5142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143   (exit $ac_status); }; }; then
5144   ac_header_compiler=yes
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149 ac_header_compiler=no
5150 fi
5151 rm -f conftest.$ac_objext conftest.$ac_ext
5152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5153 echo "${ECHO_T}$ac_header_compiler" >&6
5154
5155 # Is the header present?
5156 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5157 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5158 cat >conftest.$ac_ext <<_ACEOF
5159 #line $LINENO "configure"
5160 /* confdefs.h.  */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h.  */
5165 #include <termcap.h>
5166 _ACEOF
5167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169   ac_status=$?
5170   grep -v '^ *+' conftest.er1 >conftest.err
5171   rm -f conftest.er1
5172   cat conftest.err >&5
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } >/dev/null; then
5175   if test -s conftest.err; then
5176     ac_cpp_err=$ac_c_preproc_warn_flag
5177   else
5178     ac_cpp_err=
5179   fi
5180 else
5181   ac_cpp_err=yes
5182 fi
5183 if test -z "$ac_cpp_err"; then
5184   ac_header_preproc=yes
5185 else
5186   echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189   ac_header_preproc=no
5190 fi
5191 rm -f conftest.err conftest.$ac_ext
5192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5193 echo "${ECHO_T}$ac_header_preproc" >&6
5194
5195 # So?  What about this header?
5196 case $ac_header_compiler:$ac_header_preproc in
5197   yes:no )
5198     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5199 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5200     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5201 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5202     (
5203       cat <<\_ASBOX
5204 ## ------------------------------------ ##
5205 ## Report this to bug-autoconf@gnu.org. ##
5206 ## ------------------------------------ ##
5207 _ASBOX
5208     ) |
5209       sed "s/^/$as_me: WARNING:     /" >&2
5210     ;;
5211   no:yes )
5212     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5213 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5214     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5215 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5216     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5217 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5218     (
5219       cat <<\_ASBOX
5220 ## ------------------------------------ ##
5221 ## Report this to bug-autoconf@gnu.org. ##
5222 ## ------------------------------------ ##
5223 _ASBOX
5224     ) |
5225       sed "s/^/$as_me: WARNING:     /" >&2
5226     ;;
5227 esac
5228 echo "$as_me:$LINENO: checking for termcap.h" >&5
5229 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5230 if test "${ac_cv_header_termcap_h+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   ac_cv_header_termcap_h=$ac_header_preproc
5234 fi
5235 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5236 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5237
5238 fi
5239 if test $ac_cv_header_termcap_h = yes; then
5240    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5241 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5242 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   ac_check_lib_save_LIBS=$LIBS
5246 LIBS="-ltermcap  $LIBS"
5247 cat >conftest.$ac_ext <<_ACEOF
5248 #line $LINENO "configure"
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254
5255 /* Override any gcc2 internal prototype to avoid an error.  */
5256 #ifdef __cplusplus
5257 extern "C"
5258 #endif
5259 /* We use char because int might match the return type of a gcc2
5260    builtin and then its argument prototype would still apply.  */
5261 char tgetent ();
5262 int
5263 main ()
5264 {
5265 tgetent ();
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272   (eval $ac_link) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } &&
5276          { ac_try='test -s conftest$ac_exeext'
5277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278   (eval $ac_try) 2>&5
5279   ac_status=$?
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); }; }; then
5282   ac_cv_lib_termcap_tgetent=yes
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287 ac_cv_lib_termcap_tgetent=no
5288 fi
5289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5290 LIBS=$ac_check_lib_save_LIBS
5291 fi
5292 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5293 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5294 if test $ac_cv_lib_termcap_tgetent = yes; then
5295    CONS_LIBS="-ltermcap"
5296          CONS_OBJ="conio.o"
5297          CONS_SRC="conio.c"
5298          got_conio="yes"
5299          support_readline=no
5300
5301 cat >>confdefs.h <<\_ACEOF
5302 #define HAVE_CONIO 1
5303 _ACEOF
5304
5305
5306 else
5307    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5308 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5309 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   ac_check_lib_save_LIBS=$LIBS
5313 LIBS="-lncurses  $LIBS"
5314 cat >conftest.$ac_ext <<_ACEOF
5315 #line $LINENO "configure"
5316 /* confdefs.h.  */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h.  */
5321
5322 /* Override any gcc2 internal prototype to avoid an error.  */
5323 #ifdef __cplusplus
5324 extern "C"
5325 #endif
5326 /* We use char because int might match the return type of a gcc2
5327    builtin and then its argument prototype would still apply.  */
5328 char tgetent ();
5329 int
5330 main ()
5331 {
5332 tgetent ();
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext conftest$ac_exeext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5339   (eval $ac_link) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); } &&
5343          { ac_try='test -s conftest$ac_exeext'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; }; then
5349   ac_cv_lib_ncurses_tgetent=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_cv_lib_ncurses_tgetent=no
5355 fi
5356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5357 LIBS=$ac_check_lib_save_LIBS
5358 fi
5359 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5360 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5361 if test $ac_cv_lib_ncurses_tgetent = yes; then
5362    CONS_LIBS="-lncurses"
5363            CONS_OBJ="conio.o"
5364            CONS_SRC="conio.c"
5365            got_conio="yes"
5366            support_readline=no
5367
5368 cat >>confdefs.h <<\_ACEOF
5369 #define HAVE_CONIO 1
5370 _ACEOF
5371
5372
5373 else
5374    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5375 fi
5376
5377
5378 fi
5379
5380
5381 else
5382   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5383 fi
5384
5385
5386 fi
5387
5388
5389 # ---------------------------------------------------
5390 # Check for readline support/directory (default off)
5391 # ---------------------------------------------------
5392 # this allows you to turn it completely off
5393 # Check whether --enable-readline or --disable-readline was given.
5394 if test "${enable_readline+set}" = set; then
5395   enableval="$enable_readline"
5396   if test x$enableval = xno; then
5397     support_readline=no
5398   fi
5399 fi;
5400
5401 got_readline="no"
5402 READLINE_SRC=
5403 if test x$support_readline = xyes; then
5404
5405 # Check whether --with-readline or --without-readline was given.
5406 if test "${with_readline+set}" = set; then
5407   withval="$with_readline"
5408
5409         case "$with_readline" in
5410         no) : ;;
5411         yes|*)
5412           if test "$with_readline" != "yes"; then
5413             CONS_INC="-I${with_readline}"
5414             CONS_LDFLAGS="-L$with_readline"
5415           else
5416              with_readline="/usr/include/readline"
5417           fi
5418           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5420   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5421 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 fi
5425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5427 else
5428   # Is the header compilable?
5429 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5430 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 $ac_includes_default
5439 #include <${with_readline}/readline.h>
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443   (eval $ac_compile) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); } &&
5447          { ac_try='test -s conftest.$ac_objext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_header_compiler=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_header_compiler=no
5459 fi
5460 rm -f conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5462 echo "${ECHO_T}$ac_header_compiler" >&6
5463
5464 # Is the header present?
5465 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5466 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5467 cat >conftest.$ac_ext <<_ACEOF
5468 #line $LINENO "configure"
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 #include <${with_readline}/readline.h>
5475 _ACEOF
5476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478   ac_status=$?
5479   grep -v '^ *+' conftest.er1 >conftest.err
5480   rm -f conftest.er1
5481   cat conftest.err >&5
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } >/dev/null; then
5484   if test -s conftest.err; then
5485     ac_cpp_err=$ac_c_preproc_warn_flag
5486   else
5487     ac_cpp_err=
5488   fi
5489 else
5490   ac_cpp_err=yes
5491 fi
5492 if test -z "$ac_cpp_err"; then
5493   ac_header_preproc=yes
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498   ac_header_preproc=no
5499 fi
5500 rm -f conftest.err conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5502 echo "${ECHO_T}$ac_header_preproc" >&6
5503
5504 # So?  What about this header?
5505 case $ac_header_compiler:$ac_header_preproc in
5506   yes:no )
5507     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5508 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5509     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5510 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5511     (
5512       cat <<\_ASBOX
5513 ## ------------------------------------ ##
5514 ## Report this to bug-autoconf@gnu.org. ##
5515 ## ------------------------------------ ##
5516 _ASBOX
5517     ) |
5518       sed "s/^/$as_me: WARNING:     /" >&2
5519     ;;
5520   no:yes )
5521     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5522 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5523     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5524 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5525     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5527     (
5528       cat <<\_ASBOX
5529 ## ------------------------------------ ##
5530 ## Report this to bug-autoconf@gnu.org. ##
5531 ## ------------------------------------ ##
5532 _ASBOX
5533     ) |
5534       sed "s/^/$as_me: WARNING:     /" >&2
5535     ;;
5536 esac
5537 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5538 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5540   echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542   eval "$as_ac_Header=$ac_header_preproc"
5543 fi
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5546
5547 fi
5548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5549    cat >>confdefs.h <<\_ACEOF
5550 #define HAVE_READLINE 1
5551 _ACEOF
5552
5553                CONS_LIBS="-lreadline -ltermcap"
5554                got_readline="yes"
5555
5556 else
5557    echo " "
5558                echo "readline.h not found. readline turned off ..."
5559                echo " "
5560
5561
5562 fi
5563
5564
5565           ;;
5566         esac
5567
5568 else
5569
5570        # check for standard readline library
5571        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5572   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5573 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5574 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 fi
5577 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5578 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5579 else
5580   # Is the header compilable?
5581 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5582 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5583 cat >conftest.$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 /* confdefs.h.  */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h.  */
5590 $ac_includes_default
5591 #include </usr/include/readline/readline.h>
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5595   (eval $ac_compile) 2>&5
5596   ac_status=$?
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } &&
5599          { ac_try='test -s conftest.$ac_objext'
5600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601   (eval $ac_try) 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }; }; then
5605   ac_header_compiler=yes
5606 else
5607   echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 ac_header_compiler=no
5611 fi
5612 rm -f conftest.$ac_objext conftest.$ac_ext
5613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5614 echo "${ECHO_T}$ac_header_compiler" >&6
5615
5616 # Is the header present?
5617 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5618 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5619 cat >conftest.$ac_ext <<_ACEOF
5620 #line $LINENO "configure"
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626 #include </usr/include/readline/readline.h>
5627 _ACEOF
5628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5629   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5630   ac_status=$?
5631   grep -v '^ *+' conftest.er1 >conftest.err
5632   rm -f conftest.er1
5633   cat conftest.err >&5
5634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635   (exit $ac_status); } >/dev/null; then
5636   if test -s conftest.err; then
5637     ac_cpp_err=$ac_c_preproc_warn_flag
5638   else
5639     ac_cpp_err=
5640   fi
5641 else
5642   ac_cpp_err=yes
5643 fi
5644 if test -z "$ac_cpp_err"; then
5645   ac_header_preproc=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650   ac_header_preproc=no
5651 fi
5652 rm -f conftest.err conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5654 echo "${ECHO_T}$ac_header_preproc" >&6
5655
5656 # So?  What about this header?
5657 case $ac_header_compiler:$ac_header_preproc in
5658   yes:no )
5659     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5660 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5661     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5662 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5663     (
5664       cat <<\_ASBOX
5665 ## ------------------------------------ ##
5666 ## Report this to bug-autoconf@gnu.org. ##
5667 ## ------------------------------------ ##
5668 _ASBOX
5669     ) |
5670       sed "s/^/$as_me: WARNING:     /" >&2
5671     ;;
5672   no:yes )
5673     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5674 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5675     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5676 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5677     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5678 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5679     (
5680       cat <<\_ASBOX
5681 ## ------------------------------------ ##
5682 ## Report this to bug-autoconf@gnu.org. ##
5683 ## ------------------------------------ ##
5684 _ASBOX
5685     ) |
5686       sed "s/^/$as_me: WARNING:     /" >&2
5687     ;;
5688 esac
5689 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5690 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5691 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5695 fi
5696 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5697 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5698
5699 fi
5700 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5701    cat >>confdefs.h <<\_ACEOF
5702 #define HAVE_READLINE 1
5703 _ACEOF
5704
5705            got_readline="yes"
5706            CONS_INC="-I/usr/include/readline"
5707            CONS_LIBS="-lreadline -ltermcap"
5708
5709 else
5710
5711            # Did not find standard library, so try Bacula's default
5712             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5714   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5715 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 fi
5719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5721 else
5722   # Is the header compilable?
5723 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5724 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5726 #line $LINENO "configure"
5727 /* confdefs.h.  */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h.  */
5732 $ac_includes_default
5733 #include <${TOP_DIR}/depkgs/readline/readline.h>
5734 _ACEOF
5735 rm -f conftest.$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737   (eval $ac_compile) 2>&5
5738   ac_status=$?
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } &&
5741          { ac_try='test -s conftest.$ac_objext'
5742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743   (eval $ac_try) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); }; }; then
5747   ac_header_compiler=yes
5748 else
5749   echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5751
5752 ac_header_compiler=no
5753 fi
5754 rm -f conftest.$ac_objext conftest.$ac_ext
5755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5756 echo "${ECHO_T}$ac_header_compiler" >&6
5757
5758 # Is the header present?
5759 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5760 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768 #include <${TOP_DIR}/depkgs/readline/readline.h>
5769 _ACEOF
5770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5772   ac_status=$?
5773   grep -v '^ *+' conftest.er1 >conftest.err
5774   rm -f conftest.er1
5775   cat conftest.err >&5
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } >/dev/null; then
5778   if test -s conftest.err; then
5779     ac_cpp_err=$ac_c_preproc_warn_flag
5780   else
5781     ac_cpp_err=
5782   fi
5783 else
5784   ac_cpp_err=yes
5785 fi
5786 if test -z "$ac_cpp_err"; then
5787   ac_header_preproc=yes
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792   ac_header_preproc=no
5793 fi
5794 rm -f conftest.err conftest.$ac_ext
5795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5796 echo "${ECHO_T}$ac_header_preproc" >&6
5797
5798 # So?  What about this header?
5799 case $ac_header_compiler:$ac_header_preproc in
5800   yes:no )
5801     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5802 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5803     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5804 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5805     (
5806       cat <<\_ASBOX
5807 ## ------------------------------------ ##
5808 ## Report this to bug-autoconf@gnu.org. ##
5809 ## ------------------------------------ ##
5810 _ASBOX
5811     ) |
5812       sed "s/^/$as_me: WARNING:     /" >&2
5813     ;;
5814   no:yes )
5815     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5816 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5817     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5818 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5819     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5820 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5821     (
5822       cat <<\_ASBOX
5823 ## ------------------------------------ ##
5824 ## Report this to bug-autoconf@gnu.org. ##
5825 ## ------------------------------------ ##
5826 _ASBOX
5827     ) |
5828       sed "s/^/$as_me: WARNING:     /" >&2
5829     ;;
5830 esac
5831 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5832 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5834   echo $ECHO_N "(cached) $ECHO_C" >&6
5835 else
5836   eval "$as_ac_Header=$ac_header_preproc"
5837 fi
5838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5840
5841 fi
5842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5843    cat >>confdefs.h <<\_ACEOF
5844 #define HAVE_READLINE 1
5845 _ACEOF
5846
5847                  got_readline="yes"
5848                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5849                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5850                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5851                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5852
5853 else
5854    echo " "
5855                 echo "readline.h not found. readline turned off ..."
5856                 echo " "
5857
5858
5859 fi
5860
5861
5862
5863
5864 fi
5865
5866
5867
5868
5869 fi;
5870 fi
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 # Minimal stuff for readline Makefile configuration
5882 MAKE_SHELL=/bin/sh
5883
5884
5885 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5886 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5887 if test "${ac_cv_header_stat_broken+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 #include <sys/types.h>
5898 #include <sys/stat.h>
5899
5900 #if defined(S_ISBLK) && defined(S_IFDIR)
5901 # if S_ISBLK (S_IFDIR)
5902 You lose.
5903 # endif
5904 #endif
5905
5906 #if defined(S_ISBLK) && defined(S_IFCHR)
5907 # if S_ISBLK (S_IFCHR)
5908 You lose.
5909 # endif
5910 #endif
5911
5912 #if defined(S_ISLNK) && defined(S_IFREG)
5913 # if S_ISLNK (S_IFREG)
5914 You lose.
5915 # endif
5916 #endif
5917
5918 #if defined(S_ISSOCK) && defined(S_IFREG)
5919 # if S_ISSOCK (S_IFREG)
5920 You lose.
5921 # endif
5922 #endif
5923
5924 _ACEOF
5925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5926   $EGREP "You lose" >/dev/null 2>&1; then
5927   ac_cv_header_stat_broken=yes
5928 else
5929   ac_cv_header_stat_broken=no
5930 fi
5931 rm -f conftest*
5932
5933 fi
5934 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5935 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5936 if test $ac_cv_header_stat_broken = yes; then
5937
5938 cat >>confdefs.h <<\_ACEOF
5939 #define STAT_MACROS_BROKEN 1
5940 _ACEOF
5941
5942 fi
5943
5944
5945
5946
5947
5948
5949 ac_header_dirent=no
5950 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5951   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5952 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5953 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5955   echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957   cat >conftest.$ac_ext <<_ACEOF
5958 #line $LINENO "configure"
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964 #include <sys/types.h>
5965 #include <$ac_hdr>
5966
5967 int
5968 main ()
5969 {
5970 if ((DIR *) 0)
5971 return 0;
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5978   (eval $ac_compile) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -s conftest.$ac_objext'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   eval "$as_ac_Header=yes"
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 eval "$as_ac_Header=no"
5994 fi
5995 rm -f conftest.$ac_objext conftest.$ac_ext
5996 fi
5997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6000   cat >>confdefs.h <<_ACEOF
6001 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6002 _ACEOF
6003
6004 ac_header_dirent=$ac_hdr; break
6005 fi
6006
6007 done
6008 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6009 if test $ac_header_dirent = dirent.h; then
6010   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6011 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6012 if test "${ac_cv_search_opendir+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   ac_func_search_save_LIBS=$LIBS
6016 ac_cv_search_opendir=no
6017 cat >conftest.$ac_ext <<_ACEOF
6018 #line $LINENO "configure"
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024
6025 /* Override any gcc2 internal prototype to avoid an error.  */
6026 #ifdef __cplusplus
6027 extern "C"
6028 #endif
6029 /* We use char because int might match the return type of a gcc2
6030    builtin and then its argument prototype would still apply.  */
6031 char opendir ();
6032 int
6033 main ()
6034 {
6035 opendir ();
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042   (eval $ac_link) 2>&5
6043   ac_status=$?
6044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045   (exit $ac_status); } &&
6046          { ac_try='test -s conftest$ac_exeext'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; }; then
6052   ac_cv_search_opendir="none required"
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 fi
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 if test "$ac_cv_search_opendir" = no; then
6060   for ac_lib in dir; do
6061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6062     cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069
6070 /* Override any gcc2 internal prototype to avoid an error.  */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 /* We use char because int might match the return type of a gcc2
6075    builtin and then its argument prototype would still apply.  */
6076 char opendir ();
6077 int
6078 main ()
6079 {
6080 opendir ();
6081   ;
6082   return 0;
6083 }
6084 _ACEOF
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087   (eval $ac_link) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } &&
6091          { ac_try='test -s conftest$ac_exeext'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; }; then
6097   ac_cv_search_opendir="-l$ac_lib"
6098 break
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 fi
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105   done
6106 fi
6107 LIBS=$ac_func_search_save_LIBS
6108 fi
6109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6111 if test "$ac_cv_search_opendir" != no; then
6112   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6113
6114 fi
6115
6116 else
6117   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6118 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6119 if test "${ac_cv_search_opendir+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   ac_func_search_save_LIBS=$LIBS
6123 ac_cv_search_opendir=no
6124 cat >conftest.$ac_ext <<_ACEOF
6125 #line $LINENO "configure"
6126 /* confdefs.h.  */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h.  */
6131
6132 /* Override any gcc2 internal prototype to avoid an error.  */
6133 #ifdef __cplusplus
6134 extern "C"
6135 #endif
6136 /* We use char because int might match the return type of a gcc2
6137    builtin and then its argument prototype would still apply.  */
6138 char opendir ();
6139 int
6140 main ()
6141 {
6142 opendir ();
6143   ;
6144   return 0;
6145 }
6146 _ACEOF
6147 rm -f conftest.$ac_objext conftest$ac_exeext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149   (eval $ac_link) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); } &&
6153          { ac_try='test -s conftest$ac_exeext'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; }; then
6159   ac_cv_search_opendir="none required"
6160 else
6161   echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 fi
6165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6166 if test "$ac_cv_search_opendir" = no; then
6167   for ac_lib in x; do
6168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6169     cat >conftest.$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176
6177 /* Override any gcc2 internal prototype to avoid an error.  */
6178 #ifdef __cplusplus
6179 extern "C"
6180 #endif
6181 /* We use char because int might match the return type of a gcc2
6182    builtin and then its argument prototype would still apply.  */
6183 char opendir ();
6184 int
6185 main ()
6186 {
6187 opendir ();
6188   ;
6189   return 0;
6190 }
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194   (eval $ac_link) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); } &&
6198          { ac_try='test -s conftest$ac_exeext'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_search_opendir="-l$ac_lib"
6205 break
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 fi
6211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212   done
6213 fi
6214 LIBS=$ac_func_search_save_LIBS
6215 fi
6216 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6217 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6218 if test "$ac_cv_search_opendir" != no; then
6219   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6220
6221 fi
6222
6223 fi
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6235 do
6236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6237 echo "$as_me:$LINENO: checking for $ac_func" >&5
6238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6239 if eval "test \"\${$as_ac_var+set}\" = set"; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   cat >conftest.$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249 /* System header to define __stub macros and hopefully few prototypes,
6250     which can conflict with char $ac_func (); below.
6251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6252     <limits.h> exists even on freestanding compilers.  */
6253 #ifdef __STDC__
6254 # include <limits.h>
6255 #else
6256 # include <assert.h>
6257 #endif
6258 /* Override any gcc2 internal prototype to avoid an error.  */
6259 #ifdef __cplusplus
6260 extern "C"
6261 {
6262 #endif
6263 /* We use char because int might match the return type of a gcc2
6264    builtin and then its argument prototype would still apply.  */
6265 char $ac_func ();
6266 /* The GNU C library defines this for functions which it implements
6267     to always fail with ENOSYS.  Some functions are actually named
6268     something starting with __ and the normal name is an alias.  */
6269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6270 choke me
6271 #else
6272 char (*f) () = $ac_func;
6273 #endif
6274 #ifdef __cplusplus
6275 }
6276 #endif
6277
6278 int
6279 main ()
6280 {
6281 return f != $ac_func;
6282   ;
6283   return 0;
6284 }
6285 _ACEOF
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288   (eval $ac_link) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); } &&
6292          { ac_try='test -s conftest$ac_exeext'
6293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294   (eval $ac_try) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); }; }; then
6298   eval "$as_ac_var=yes"
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 eval "$as_ac_var=no"
6304 fi
6305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6306 fi
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6309 if test `eval echo '${'$as_ac_var'}'` = yes; then
6310   cat >>confdefs.h <<_ACEOF
6311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6312 _ACEOF
6313
6314 fi
6315 done
6316
6317
6318
6319 for ac_func in nanosleep nl_langinfo
6320 do
6321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6322 echo "$as_me:$LINENO: checking for $ac_func" >&5
6323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6324 if eval "test \"\${$as_ac_var+set}\" = set"; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 /* System header to define __stub macros and hopefully few prototypes,
6335     which can conflict with char $ac_func (); below.
6336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6337     <limits.h> exists even on freestanding compilers.  */
6338 #ifdef __STDC__
6339 # include <limits.h>
6340 #else
6341 # include <assert.h>
6342 #endif
6343 /* Override any gcc2 internal prototype to avoid an error.  */
6344 #ifdef __cplusplus
6345 extern "C"
6346 {
6347 #endif
6348 /* We use char because int might match the return type of a gcc2
6349    builtin and then its argument prototype would still apply.  */
6350 char $ac_func ();
6351 /* The GNU C library defines this for functions which it implements
6352     to always fail with ENOSYS.  Some functions are actually named
6353     something starting with __ and the normal name is an alias.  */
6354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6355 choke me
6356 #else
6357 char (*f) () = $ac_func;
6358 #endif
6359 #ifdef __cplusplus
6360 }
6361 #endif
6362
6363 int
6364 main ()
6365 {
6366 return f != $ac_func;
6367   ;
6368   return 0;
6369 }
6370 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373   (eval $ac_link) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } &&
6377          { ac_try='test -s conftest$ac_exeext'
6378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379   (eval $ac_try) 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; }; then
6383   eval "$as_ac_var=yes"
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388 eval "$as_ac_var=no"
6389 fi
6390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6391 fi
6392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6394 if test `eval echo '${'$as_ac_var'}'` = yes; then
6395   cat >>confdefs.h <<_ACEOF
6396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6397 _ACEOF
6398
6399 fi
6400 done
6401
6402
6403
6404 for ac_header in varargs.h
6405 do
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6408   echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 fi
6413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6415 else
6416   # Is the header compilable?
6417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line $LINENO "configure"
6421 /* confdefs.h.  */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h.  */
6426 $ac_includes_default
6427 #include <$ac_header>
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431   (eval $ac_compile) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); } &&
6435          { ac_try='test -s conftest.$ac_objext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   ac_header_compiler=yes
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 ac_header_compiler=no
6447 fi
6448 rm -f conftest.$ac_objext conftest.$ac_ext
6449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450 echo "${ECHO_T}$ac_header_compiler" >&6
6451
6452 # Is the header present?
6453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 #include <$ac_header>
6463 _ACEOF
6464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } >/dev/null; then
6472   if test -s conftest.err; then
6473     ac_cpp_err=$ac_c_preproc_warn_flag
6474   else
6475     ac_cpp_err=
6476   fi
6477 else
6478   ac_cpp_err=yes
6479 fi
6480 if test -z "$ac_cpp_err"; then
6481   ac_header_preproc=yes
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486   ac_header_preproc=no
6487 fi
6488 rm -f conftest.err conftest.$ac_ext
6489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6490 echo "${ECHO_T}$ac_header_preproc" >&6
6491
6492 # So?  What about this header?
6493 case $ac_header_compiler:$ac_header_preproc in
6494   yes:no )
6495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6499     (
6500       cat <<\_ASBOX
6501 ## ------------------------------------ ##
6502 ## Report this to bug-autoconf@gnu.org. ##
6503 ## ------------------------------------ ##
6504 _ASBOX
6505     ) |
6506       sed "s/^/$as_me: WARNING:     /" >&2
6507     ;;
6508   no:yes )
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515     (
6516       cat <<\_ASBOX
6517 ## ------------------------------------ ##
6518 ## Report this to bug-autoconf@gnu.org. ##
6519 ## ------------------------------------ ##
6520 _ASBOX
6521     ) |
6522       sed "s/^/$as_me: WARNING:     /" >&2
6523     ;;
6524 esac
6525 echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528   echo $ECHO_N "(cached) $ECHO_C" >&6
6529 else
6530   eval "$as_ac_Header=$ac_header_preproc"
6531 fi
6532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534
6535 fi
6536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537   cat >>confdefs.h <<_ACEOF
6538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539 _ACEOF
6540
6541 fi
6542
6543 done
6544
6545
6546 # End of readline/conio stuff
6547 # -----------------------------------------------------------------------
6548
6549
6550 # ---------------------------------------------------
6551 # Check for GMP support/directory
6552 # ---------------------------------------------------
6553 #GMP_SRC=
6554 #local_gmp="no"
6555 #AC_ARG_WITH(gmp,
6556 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6557 #  [
6558 #     case "$with_gmp" in
6559 #     no) : ;;
6560 #     yes|*)
6561 #       if test "$with_gmp" != "yes"; then
6562 #         GMP_INC="-I$with_gmp"
6563 #         GMP_LIBS="-lgmp"
6564 #         GMP_LDFLAGS="-L$with_gmp"
6565 #       else
6566 #          with_gmp="/usr/include"
6567 #       fi
6568 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6569 #          [ AC_MSG_RESULT(yes)
6570 #            AC_DEFINE(HAVE_GMP)
6571 #            GMP_LIBS="-lgmp"
6572 #            got_gmp="yes"
6573 #          ],
6574 #          [ AC_MSG_ERROR([*** gmp library missing])
6575 #          ]
6576 #       )
6577 #       ;;
6578 #     esac
6579 #  ],[
6580 #    # check for standard gmp library
6581 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6582 #    [ AC_MSG_RESULT(yes)
6583 #      AC_DEFINE(HAVE_GMP)
6584 #      got_gmp="yes"
6585 #      GMP_INC=
6586 #      GMP_LIBS="-lgmp"
6587 #    ], [
6588 #      # Did not find standard library, so use our own
6589 #      AC_MSG_RESULT(yes)
6590 #      AC_DEFINE(HAVE_GMP)
6591 #      got_gmp="yes"
6592 #      local_gmp="yes"
6593 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6594 #      GMP_LIBS="-lgmp"
6595 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6596 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6597 #    ])
6598 #  ]
6599 #)
6600 #AC_SUBST(GMP_INC)
6601 #AC_SUBST(GMP_LIBS)
6602 #AC_SUBST(GMP_LDFLAGS)
6603 #AC_SUBST(GMP_SRC)
6604
6605 # End of GMP stuff
6606 # -----------------------------------------------------------------------
6607
6608
6609 # ---------------------------------------------------
6610 # Check for CWEB support/directory
6611 # ---------------------------------------------------
6612 #CWEB_SRC=
6613 #CWEB=/bin
6614 #local_cweb="no"
6615 #AC_ARG_WITH(cweb,
6616 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6617 #  [
6618 #     case "$with_cweb" in
6619 #     no) : ;;
6620 #     yes|*)
6621 #       if test "$with_cweb" != "yes"; then
6622 #         CWEB_INC="-I$with_cweb"
6623 #         CWEB_LIBS="-lcweb"
6624 #         CWEB_LDFLAGS="-L$with_cweb"
6625 #       else
6626 #          with_cweb="/usr/include"
6627 #       fi
6628 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6629 #          [ AC_MSG_RESULT(yes)
6630 #            AC_DEFINE(HAVE_CWEB)
6631 #            CWEB_LIBS="-lcweb"
6632 #            got_cweb="yes"
6633 #          ],
6634 #          [ AC_MSG_ERROR([*** cweb library missing])
6635 #          ]
6636 #       )
6637 #       ;;
6638 #     esac
6639 #  ],[
6640 #    # check for standard cweb library
6641 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6642 #    [ AC_MSG_RESULT(yes)
6643 #      AC_DEFINE(HAVE_CWEB)
6644 #      got_cweb="yes"
6645 #      CWEB_INC=
6646 #      CWEB_LIBS="-lcweb"
6647 #    ], [
6648 #      # Did not find starndard library, so use our own
6649 #      AC_MSG_RESULT(yes)
6650 #      AC_DEFINE(HAVE_CWEB)
6651 #      got_cweb="yes"
6652 #      local_cweb="yes"
6653 #      CWEB=${TOP_DIR}/depkgs/cweb
6654 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6655 #      CWEB_LIBS="-lcweb"
6656 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6657 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6658 #    ])
6659 #  ]
6660 #)
6661 #AC_SUBST(CWEB)
6662 #AC_SUBST(CWEB_INC)
6663 #AC_SUBST(CWEB_LIBS)
6664 #AC_SUBST(CWEB_LDFLAGS)
6665 #AC_SUBST(CWEB_SRC)
6666
6667 # End of CWEB stuff
6668 # -----------------------------------------------------------------------
6669
6670
6671
6672 # -----------------------------------------------------------
6673 # Check whether user wants TCP wrappers support (default off)
6674 # -----------------------------------------------------------
6675 TCPW_MSG="no"
6676
6677 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6678 if test "${with_tcp_wrappers+set}" = set; then
6679   withval="$with_tcp_wrappers"
6680
6681     if test "x$withval" != "xno" ; then
6682        saved_LIBS="$LIBS"
6683        LIBS="$saved_LIBS -lwrap"
6684        echo "$as_me:$LINENO: checking for libwrap" >&5
6685 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6686        cat >conftest.$ac_ext <<_ACEOF
6687 #line $LINENO "configure"
6688 /* confdefs.h.  */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h.  */
6693  #include <tcpd.h>
6694              int deny_severity = 0;
6695              int allow_severity = 0;
6696              struct request_info *req;
6697 int
6698 main ()
6699 {
6700  hosts_access(req);
6701   ;
6702   return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707   (eval $ac_link) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } &&
6711          { ac_try='test -s conftest$ac_exeext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717
6718             echo "$as_me:$LINENO: result: yes" >&5
6719 echo "${ECHO_T}yes" >&6
6720             cat >>confdefs.h <<\_ACEOF
6721 #define HAVE_LIBWRAP 1
6722 _ACEOF
6723
6724             TCPW_MSG="yes"
6725
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730
6731             LIBS="$saved_LIBS -lwrap -lnsl"
6732             cat >conftest.$ac_ext <<_ACEOF
6733 #line $LINENO "configure"
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739  #include <tcpd.h>
6740                  int deny_severity = 0;
6741                  int allow_severity = 0;
6742                  struct request_info *req;
6743 int
6744 main ()
6745 {
6746  hosts_access(req);
6747   ;
6748   return 0;
6749 }
6750 _ACEOF
6751 rm -f conftest.$ac_objext conftest$ac_exeext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6753   (eval $ac_link) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -s conftest$ac_exeext'
6758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759   (eval $ac_try) 2>&5
6760   ac_status=$?
6761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762   (exit $ac_status); }; }; then
6763
6764                  echo "$as_me:$LINENO: result: yes" >&5
6765 echo "${ECHO_T}yes" >&6
6766                  cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_LIBWRAP 1
6768 _ACEOF
6769
6770                  TCPW_MSG="yes"
6771
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6777 echo "$as_me: error: *** libwrap missing" >&2;}
6778    { (exit 1); exit 1; }; }
6779
6780 fi
6781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6782
6783 fi
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6785     fi
6786
6787
6788 fi;
6789
6790 # ------------------------------------------
6791 # Where to place working dir
6792 # ------------------------------------------
6793 working_dir=`eval echo ${prefix}/var/bacula/working`
6794
6795 # Check whether --with-working-dir or --without-working-dir was given.
6796 if test "${with_working_dir+set}" = set; then
6797   withval="$with_working_dir"
6798
6799        if test "x$withval" != "xno" ; then
6800               working_dir=$withval
6801        fi
6802
6803
6804 fi;
6805
6806
6807
6808
6809 # ------------------------------------------
6810 # Where to place scriptdir (script files)
6811 # ------------------------------------------
6812 scriptdir=`eval echo ${sysconfdir}`
6813
6814 # Check whether --with-scriptdir or --without-scriptdir was given.
6815 if test "${with_scriptdir+set}" = set; then
6816   withval="$with_scriptdir"
6817
6818        if test "x$withval" != "xno" ; then
6819               scriptdir=$withval
6820        fi
6821
6822
6823 fi;
6824
6825
6826
6827
6828 # ------------------------------------------
6829 # Where to send dump email
6830 # ------------------------------------------
6831 dump_email=root@localhost
6832
6833 # Check whether --with-dump-email or --without-dump-email was given.
6834 if test "${with_dump_email+set}" = set; then
6835   withval="$with_dump_email"
6836
6837        if test "x$withval" != "xno" ; then
6838               dump_email=$withval
6839        fi
6840
6841
6842 fi;
6843
6844
6845
6846 # ------------------------------------------
6847 # Where to send job email
6848 # ------------------------------------------
6849 job_email=root@localhost
6850
6851 # Check whether --with-job-email or --without-job-email was given.
6852 if test "${with_job_email+set}" = set; then
6853   withval="$with_job_email"
6854
6855        if test "x$withval" != "xno" ; then
6856               job_email=$withval
6857        fi
6858
6859
6860 fi;
6861
6862
6863
6864 # ------------------------------------------
6865 # Where to find smtp host
6866 # ------------------------------------------
6867 smtp_host=localhost
6868
6869 # Check whether --with-smtp_host or --without-smtp_host was given.
6870 if test "${with_smtp_host+set}" = set; then
6871   withval="$with_smtp_host"
6872
6873        if test "x$withval" != "xno" ; then
6874               smtp_host=$withval
6875        fi
6876
6877
6878 fi;
6879
6880
6881
6882
6883 # ------------------------------------
6884 # Where to place pid files
6885 # ------------------------------------
6886 piddir=/var/run
6887
6888 # Check whether --with-pid-dir or --without-pid-dir was given.
6889 if test "${with_pid_dir+set}" = set; then
6890   withval="$with_pid_dir"
6891
6892         if test "x$withval" != "xno" ; then
6893             piddir=$withval
6894         fi
6895
6896
6897 fi;
6898
6899 cat >>confdefs.h <<_ACEOF
6900 #define _PATH_BACULA_PIDDIR "$piddir"
6901 _ACEOF
6902
6903
6904
6905
6906 # ------------------------------------
6907 # Where to place subsys "lock file"
6908 # ------------------------------------
6909 subsysdir=/var/run/subsys
6910
6911 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6912 if test "${with_subsys_dir+set}" = set; then
6913   withval="$with_subsys_dir"
6914
6915         if test "x$withval" != "xno" ; then
6916             subsysdir=$withval
6917         fi
6918
6919
6920 fi;
6921
6922
6923
6924
6925
6926 # ------------------------------------
6927 # Where to start assigning ports
6928 # ------------------------------------
6929 baseport=9101
6930
6931 # Check whether --with-baseport or --without-baseport was given.
6932 if test "${with_baseport+set}" = set; then
6933   withval="$with_baseport"
6934
6935         if test "x$withval" != "xno" ; then
6936              baseport=$withval
6937         fi
6938
6939
6940 fi;
6941
6942
6943 dir_port=`expr $baseport`
6944 fd_port=`expr $baseport + 1`
6945 sd_port=`expr $fd_port + 1`
6946
6947
6948
6949
6950
6951
6952 # ------------------------------------------
6953 # Generate passwords
6954 # ------------------------------------------
6955 dir_password=
6956
6957 # Check whether --with-dir-password or --without-dir-password was given.
6958 if test "${with_dir_password+set}" = set; then
6959   withval="$with_dir_password"
6960
6961        if test "x$withval" != "xno" ; then
6962            dir_password=$withval
6963        fi
6964
6965
6966 fi;
6967
6968 if test "x$dir_password" = "x" ; then
6969    if test "x$OPENSSL" = "xnone" ; then
6970 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6971       key=`autoconf/randpass 33`
6972    else
6973       key=`openssl rand -base64 33`
6974    fi
6975    dir_password=$key
6976 fi
6977
6978 fd_password=
6979
6980 # Check whether --with-fd-password or --without-fd-password was given.
6981 if test "${with_fd_password+set}" = set; then
6982   withval="$with_fd_password"
6983
6984        if test "x$withval" != "xno" ; then
6985            fd_password=$withval
6986        fi
6987
6988
6989 fi;
6990
6991 if test "x$fd_password" = "x" ; then
6992    if test "x$OPENSSL" = "xnone" ; then
6993 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6994       key=`autoconf/randpass 37`
6995    else
6996       key=`openssl rand -base64 33`
6997    fi
6998    fd_password=$key
6999 fi
7000
7001 sd_password=
7002
7003 # Check whether --with-sd-password or --without-sd-password was given.
7004 if test "${with_sd_password+set}" = set; then
7005   withval="$with_sd_password"
7006
7007        if test "x$withval" != "xno" ; then
7008            sd_password=$withval
7009        fi
7010
7011
7012 fi;
7013
7014 if test "x$sd_password" = "x" ; then
7015    if test "x$OPENSSL" = "xnone" ; then
7016 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7017       key=`autoconf/randpass 41`
7018    else
7019       key=`openssl rand -base64 33`
7020    fi
7021    sd_password=$key
7022 fi
7023
7024
7025
7026
7027
7028
7029
7030 #
7031 # Handle users and groups for each daemon
7032 #
7033 dir_user=
7034
7035 # Check whether --with-dir_user or --without-dir_user was given.
7036 if test "${with_dir_user+set}" = set; then
7037   withval="$with_dir_user"
7038
7039         if test "x$withval" != "x" ; then
7040              dir_user=$withval
7041         fi
7042
7043
7044 fi;
7045
7046 dir_group=
7047
7048 # Check whether --with-dir_group or --without-dir_group was given.
7049 if test "${with_dir_group+set}" = set; then
7050   withval="$with_dir_group"
7051
7052         if test "x$withval" != "x" ; then
7053              dir_group=$withval
7054         fi
7055
7056
7057 fi;
7058
7059 sd_user=
7060
7061 # Check whether --with-sd_user or --without-sd_user was given.
7062 if test "${with_sd_user+set}" = set; then
7063   withval="$with_sd_user"
7064
7065         if test "x$withval" != "x" ; then
7066              sd_user=$withval
7067         fi
7068
7069
7070 fi;
7071
7072 sd_group=
7073
7074 # Check whether --with-sd_group or --without-sd_group was given.
7075 if test "${with_sd_group+set}" = set; then
7076   withval="$with_sd_group"
7077
7078         if test "x$withval" != "x" ; then
7079              sd_group=$withval
7080         fi
7081
7082
7083 fi;
7084
7085 fd_user=
7086
7087 # Check whether --with-fd_user or --without-fd_user was given.
7088 if test "${with_fd_user+set}" = set; then
7089   withval="$with_fd_user"
7090
7091         if test "x$withval" != "x" ; then
7092              fd_user=$withval
7093         fi
7094
7095
7096 fi;
7097
7098 fd_group=
7099
7100 # Check whether --with-fd_group or --without-fd_group was given.
7101 if test "${with_fd_group+set}" = set; then
7102   withval="$with_fd_group"
7103
7104         if test "x$withval" != "x" ; then
7105              fd_group=$withval
7106         fi
7107
7108
7109 fi;
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 #
7122 # allow setting default executable permissions
7123 #
7124 SBINPERM=0754
7125
7126 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7127 if test "${with_sbin_perm+set}" = set; then
7128   withval="$with_sbin_perm"
7129
7130         if test "x$withval" != "x" ; then
7131             SBINPERM=$withval
7132         fi
7133
7134
7135 fi;
7136
7137
7138
7139 # ------------------------------------------------
7140 # Bacula check for various SQL database engines
7141 # ------------------------------------------------
7142
7143 db_found=no
7144 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7145 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7146
7147 # Check whether --with-postgresql or --without-postgresql was given.
7148 if test "${with_postgresql+set}" = set; then
7149   withval="$with_postgresql"
7150
7151   if test "$withval" != "no"; then
7152       if test "$db_found" = "yes"; then
7153           echo "$as_me:$LINENO: result: error" >&5
7154 echo "${ECHO_T}error" >&6
7155           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7156 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7157    { (exit 1); exit 1; }; };
7158       fi
7159       if test "$withval" = "yes"; then
7160           if test -f /usr/local/include/libpq-fe.h; then
7161               POSTGRESQL_INCDIR=/usr/local/include
7162               POSTGRESQL_LIBDIR=/usr/local/lib
7163               POSTGRESQL_BINDIR=/usr/local/bin
7164           elif test -f /usr/include/libpq-fe.h; then
7165               POSTGRESQL_INCDIR=/usr/include
7166               POSTGRESQL_LIBDIR=/usr/lib
7167               POSTGRESQL_BINDIR=/usr/bin
7168           elif test -f /usr/include/pgsql/libpq-fe.h; then
7169               POSTGRESQL_INCDIR=/usr/include/pgsql
7170               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7171               POSTGRESQL_BINDIR=/usr/bin
7172           elif test -f /usr/include/postgresql/libpq-fe.h; then
7173               POSTGRESQL_INCDIR=/usr/include/postgresql
7174               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7175               POSTGRESQL_BINDIR=/usr/bin
7176           else
7177               echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7180 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7181    { (exit 1); exit 1; }; }
7182           fi
7183       elif test -f $withval/include/libpq-fe.h; then
7184           POSTGRESQL_INCDIR=$withval/include
7185           POSTGRESQL_LIBDIR=$withval/lib
7186           POSTGRESQL_BINDIR=$withval/bin
7187       else
7188           echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7191 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7192    { (exit 1); exit 1; }; }
7193       fi
7194       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7195       echo "$as_me:$LINENO: checking for crypt" >&5
7196 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7197 if test "${ac_cv_func_crypt+set}" = set; then
7198   echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200   cat >conftest.$ac_ext <<_ACEOF
7201 #line $LINENO "configure"
7202 /* confdefs.h.  */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h.  */
7207 /* System header to define __stub macros and hopefully few prototypes,
7208     which can conflict with char crypt (); below.
7209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7210     <limits.h> exists even on freestanding compilers.  */
7211 #ifdef __STDC__
7212 # include <limits.h>
7213 #else
7214 # include <assert.h>
7215 #endif
7216 /* Override any gcc2 internal prototype to avoid an error.  */
7217 #ifdef __cplusplus
7218 extern "C"
7219 {
7220 #endif
7221 /* We use char because int might match the return type of a gcc2
7222    builtin and then its argument prototype would still apply.  */
7223 char crypt ();
7224 /* The GNU C library defines this for functions which it implements
7225     to always fail with ENOSYS.  Some functions are actually named
7226     something starting with __ and the normal name is an alias.  */
7227 #if defined (__stub_crypt) || defined (__stub___crypt)
7228 choke me
7229 #else
7230 char (*f) () = crypt;
7231 #endif
7232 #ifdef __cplusplus
7233 }
7234 #endif
7235
7236 int
7237 main ()
7238 {
7239 return f != crypt;
7240   ;
7241   return 0;
7242 }
7243 _ACEOF
7244 rm -f conftest.$ac_objext conftest$ac_exeext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7246   (eval $ac_link) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); } &&
7250          { ac_try='test -s conftest$ac_exeext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256   ac_cv_func_crypt=yes
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 ac_cv_func_crypt=no
7262 fi
7263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7264 fi
7265 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7266 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7267 if test $ac_cv_func_crypt = yes; then
7268   :
7269 else
7270   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7271 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7272 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   ac_check_lib_save_LIBS=$LIBS
7276 LIBS="-lcrypt  $LIBS"
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284
7285 /* Override any gcc2 internal prototype to avoid an error.  */
7286 #ifdef __cplusplus
7287 extern "C"
7288 #endif
7289 /* We use char because int might match the return type of a gcc2
7290    builtin and then its argument prototype would still apply.  */
7291 char crypt ();
7292 int
7293 main ()
7294 {
7295 crypt ();
7296   ;
7297   return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302   (eval $ac_link) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } &&
7306          { ac_try='test -s conftest$ac_exeext'
7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308   (eval $ac_try) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }; }; then
7312   ac_cv_lib_crypt_crypt=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 ac_cv_lib_crypt_crypt=no
7318 fi
7319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7321 fi
7322 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7323 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7324 if test $ac_cv_lib_crypt_crypt = yes; then
7325   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7326 fi
7327
7328 fi
7329
7330       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7331       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7332       SQL_BINDIR=$POSTGRESQL_BINDIR
7333       cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_POSTGRESQL 1
7335 _ACEOF
7336
7337       echo "$as_me:$LINENO: result: yes" >&5
7338 echo "${ECHO_T}yes" >&6
7339       db_found=yes
7340       support_postgresql=yes
7341       db_name=PostgreSQL
7342       DB_NAME=postgresql
7343   else
7344       echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7346   fi
7347
7348 else
7349
7350   echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7352
7353 fi;
7354
7355
7356
7357
7358
7359
7360
7361 db_found=no
7362 echo "$as_me:$LINENO: checking for MySQL support" >&5
7363 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7364
7365 # Check whether --with-mysql or --without-mysql was given.
7366 if test "${with_mysql+set}" = set; then
7367   withval="$with_mysql"
7368
7369   if test "$withval" != "no"; then
7370         if test "$withval" = "yes"; then
7371                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7372                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7373                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7374                         MYSQL_BINDIR=/usr/local/mysql/bin
7375                 elif test -f /usr/include/mysql/mysql.h; then
7376                         MYSQL_INCDIR=/usr/include/mysql
7377                         MYSQL_LIBDIR=/usr/lib/mysql
7378                         MYSQL_BINDIR=/usr/bin
7379                 elif test -f /usr/include/mysql.h; then
7380                         MYSQL_INCDIR=/usr/include
7381                         MYSQL_LIBDIR=/usr/lib
7382                         MYSQL_BINDIR=/usr/bin
7383                 elif test -f /usr/local/include/mysql/mysql.h; then
7384                         MYSQL_INCDIR=/usr/local/include/mysql
7385                         MYSQL_LIBDIR=/usr/local/lib/mysql
7386                         MYSQL_BINDIR=/usr/local/bin
7387                 elif test -f /usr/local/include/mysql.h; then
7388                         MYSQL_INCDIR=/usr/local/include
7389                         MYSQL_LIBDIR=/usr/local/lib
7390                         MYSQL_BINDIR=/usr/local/bin
7391                 else
7392                    echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7394                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7395 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7396    { (exit 1); exit 1; }; }
7397                 fi
7398         else
7399                 if test -f $withval/include/mysql/mysql.h; then
7400                         MYSQL_INCDIR=$withval/include/mysql
7401                         MYSQL_LIBDIR=$withval/lib/mysql
7402                         MYSQL_BINDIR=$withval/bin
7403                 elif test -f $withval/include/mysql.h; then
7404                         MYSQL_INCDIR=$withval/include
7405                         MYSQL_LIBDIR=$withval/lib
7406                         MYSQL_BINDIR=$withval/bin
7407                 else
7408                    echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7411 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7412    { (exit 1); exit 1; }; }
7413                 fi
7414         fi
7415     SQL_INCLUDE=-I$MYSQL_INCDIR
7416     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7417        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7418        cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_THREAD_SAFE_MYSQL 1
7420 _ACEOF
7421
7422     else
7423        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7424     fi
7425     SQL_BINDIR=$MYSQL_BINDIR
7426
7427     cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_MYSQL 1
7429 _ACEOF
7430
7431     echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6
7433     db_found=yes
7434     support_mysql=yes
7435     db_name=MySQL
7436     DB_NAME=mysql
7437
7438   else
7439         echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441   fi
7442
7443 else
7444
7445     echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6
7447
7448 fi;
7449
7450
7451 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7452 if test "${with_embedded_mysql+set}" = set; then
7453   withval="$with_embedded_mysql"
7454
7455   if test "$withval" != "no"; then
7456         if test "$withval" = "yes"; then
7457                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7458                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7459                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7460                         MYSQL_BINDIR=/usr/local/mysql/bin
7461                 elif test -f /usr/include/mysql/mysql.h; then
7462                         MYSQL_INCDIR=/usr/include/mysql
7463                         MYSQL_LIBDIR=/usr/lib/mysql
7464                         MYSQL_BINDIR=/usr/bin
7465                 elif test -f /usr/include/mysql.h; then
7466                         MYSQL_INCDIR=/usr/include
7467                         MYSQL_LIBDIR=/usr/lib
7468                         MYSQL_BINDIR=/usr/bin
7469                 elif test -f /usr/local/include/mysql/mysql.h; then
7470                         MYSQL_INCDIR=/usr/local/include/mysql
7471                         MYSQL_LIBDIR=/usr/local/lib/mysql
7472                         MYSQL_BINDIR=/usr/local/bin
7473                 elif test -f /usr/local/include/mysql.h; then
7474                         MYSQL_INCDIR=/usr/local/include
7475                         MYSQL_LIBDIR=/usr/local/lib
7476                         MYSQL_BINDIR=/usr/local/bin
7477                 else
7478                    echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7480                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7481 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7482    { (exit 1); exit 1; }; }
7483                 fi
7484         else
7485                 if test -f $withval/include/mysql/mysql.h; then
7486                         MYSQL_INCDIR=$withval/include/mysql
7487                         MYSQL_LIBDIR=$withval/lib/mysql
7488                         MYSQL_BINDIR=$withval/bin
7489                 elif test -f $withval/include/mysql.h; then
7490                         MYSQL_INCDIR=$withval/include
7491                         MYSQL_LIBDIR=$withval/lib
7492                         MYSQL_BINDIR=$withval/bin
7493                 else
7494                    echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7497 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7498    { (exit 1); exit 1; }; }
7499                 fi
7500         fi
7501     SQL_INCLUDE=-I$MYSQL_INCDIR
7502     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7503     SQL_BINDIR=$MYSQL_BINDIR
7504
7505     cat >>confdefs.h <<\_ACEOF
7506 #define HAVE_MYSQL 1
7507 _ACEOF
7508
7509     cat >>confdefs.h <<\_ACEOF
7510 #define HAVE_EMBEDDED_MYSQL 1
7511 _ACEOF
7512
7513     echo "$as_me:$LINENO: result: yes" >&5
7514 echo "${ECHO_T}yes" >&6
7515     db_found=yes
7516     support_mysql=yes
7517     db_name=MySQL
7518     DB_NAME=mysql
7519
7520   else
7521         echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7523   fi
7524
7525 else
7526
7527   echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529
7530 fi;
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 db_found=no
7541 echo "$as_me:$LINENO: checking for SQLite support" >&5
7542 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7543
7544 # Check whether --with-sqlite or --without-sqlite was given.
7545 if test "${with_sqlite+set}" = set; then
7546   withval="$with_sqlite"
7547
7548   if test "$withval" != "no"; then
7549         if test "$withval" = "yes"; then
7550                 if test -f /usr/local/include/sqlite.h; then
7551                         SQLITE_INCDIR=/usr/local/include
7552                         SQLITE_LIBDIR=/usr/local/lib
7553                         SQLITE_BINDIR=/usr/local/bin
7554                 elif test -f /usr/include/sqlite.h; then
7555                         SQLITE_INCDIR=/usr/include
7556                         SQLITE_LIBDIR=/usr/lib
7557                         SQLITE_BINDIR=/usr/bin
7558                 else
7559                    echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7562 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7563    { (exit 1); exit 1; }; }
7564                 fi
7565         else
7566                 if test -f $withval/sqlite.h; then
7567                         SQLITE_INCDIR=$withval
7568                         SQLITE_LIBDIR=$withval
7569                         SQLITE_BINDIR=$withval
7570                 else
7571                    echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6
7573                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7574 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7575    { (exit 1); exit 1; }; }
7576                 fi
7577         fi
7578     SQL_INCLUDE=-I$SQLITE_INCDIR
7579     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7580     SQL_BINDIR=$SQLITE_BINDIR
7581
7582     cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_SQLITE 1
7584 _ACEOF
7585
7586     echo "$as_me:$LINENO: result: yes" >&5
7587 echo "${ECHO_T}yes" >&6
7588     db_found=yes
7589     support_sqlite=yes
7590     db_name=SQLite
7591     DB_NAME=sqlite
7592
7593   else
7594         echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6
7596   fi
7597
7598 else
7599
7600   echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6
7602
7603 fi;
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613 cat >>confdefs.h <<\_ACEOF
7614 #define PROTOTYPES 1
7615 _ACEOF
7616
7617
7618 if test -z "$CFLAGS"; then
7619     if test -z "$CCOPTS"; then
7620         CCOPTS='-g -O2'
7621     fi
7622     CFLAGS="$CCOPTS"
7623 fi
7624
7625
7626
7627
7628 largefile_support="no"
7629
7630    # Check whether --enable-largefile or --disable-largefile was given.
7631 if test "${enable_largefile+set}" = set; then
7632   enableval="$enable_largefile"
7633
7634 fi;
7635    if test "$enable_largefile" != no; then
7636      if test -n "$ac_tool_prefix"; then
7637   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7639 echo "$as_me:$LINENO: checking for $ac_word" >&5
7640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641 if test "${ac_cv_prog_GETCONF+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   if test -n "$GETCONF"; then
7645   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652   for ac_exec_ext in '' $ac_executable_extensions; do
7653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659 done
7660
7661 fi
7662 fi
7663 GETCONF=$ac_cv_prog_GETCONF
7664 if test -n "$GETCONF"; then
7665   echo "$as_me:$LINENO: result: $GETCONF" >&5
7666 echo "${ECHO_T}$GETCONF" >&6
7667 else
7668   echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7670 fi
7671
7672 fi
7673 if test -z "$ac_cv_prog_GETCONF"; then
7674   ac_ct_GETCONF=$GETCONF
7675   # Extract the first word of "getconf", so it can be a program name with args.
7676 set dummy getconf; ac_word=$2
7677 echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7679 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   if test -n "$ac_ct_GETCONF"; then
7683   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692     ac_cv_prog_ac_ct_GETCONF="getconf"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698
7699 fi
7700 fi
7701 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7702 if test -n "$ac_ct_GETCONF"; then
7703   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7704 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7705 else
7706   echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6
7708 fi
7709
7710   GETCONF=$ac_ct_GETCONF
7711 else
7712   GETCONF="$ac_cv_prog_GETCONF"
7713 fi
7714
7715      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7716 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7717 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7721         ac_cv_sys_largefile_CFLAGS=no
7722         case "$host_os" in
7723            # IRIX 6.2 and later require cc -n32.
7724            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7725              if test "$GCC" != yes; then
7726                ac_cv_sys_largefile_CFLAGS=-n32
7727              fi
7728              ac_save_CC="$CC"
7729              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7730              cat >conftest.$ac_ext <<_ACEOF
7731 #line $LINENO "configure"
7732 /* confdefs.h.  */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h.  */
7737
7738 int
7739 main ()
7740 {
7741
7742   ;
7743   return 0;
7744 }
7745 _ACEOF
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748   (eval $ac_link) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } &&
7752          { ac_try='test -s conftest$ac_exeext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   :
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_cv_sys_largefile_CFLAGS=no
7764 fi
7765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7766              CC="$ac_save_CC"
7767            esac
7768       }
7769 fi
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7772      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7773 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7778         ac_cv_sys_largefile_LDFLAGS=no
7779
7780       }
7781 fi
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7784      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7785 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7786 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7790         ac_cv_sys_largefile_LIBS=no
7791
7792       }
7793 fi
7794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7795 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7796
7797      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7798        case "$ac_flag" in
7799        no) ;;
7800        -D_FILE_OFFSET_BITS=*) ;;
7801        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7802        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7803        -D?* | -I?*)
7804          case "$ac_flag" in
7805    no) ;;
7806    ?*)
7807      case "$CPPFLAGS" in
7808      '') CPPFLAGS="$ac_flag" ;;
7809      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7810      esac ;;
7811    esac ;;
7812        *)
7813          case "$ac_flag" in
7814    no) ;;
7815    ?*)
7816      case "$CFLAGS" in
7817      '') CFLAGS="$ac_flag" ;;
7818      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7819      esac ;;
7820    esac ;;
7821        esac
7822      done
7823      case "$ac_cv_sys_largefile_LDFLAGS" in
7824    no) ;;
7825    ?*)
7826      case "$LDFLAGS" in
7827      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7828      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7829      esac ;;
7830    esac
7831      case "$ac_cv_sys_largefile_LIBS" in
7832    no) ;;
7833    ?*)
7834      case "$LIBS" in
7835      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7836      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7837      esac ;;
7838    esac
7839      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7840 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7841 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   ac_cv_sys_file_offset_bits=no
7845       case "$host_os" in
7846         # HP-UX 10.20 and later
7847         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7848           ac_cv_sys_file_offset_bits=64 ;;
7849         esac
7850       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7851         case "$ac_flag" in
7852         -D_FILE_OFFSET_BITS)
7853           ac_cv_sys_file_offset_bits=1 ;;
7854         -D_FILE_OFFSET_BITS=*)
7855           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7856         esac
7857       done
7858
7859 fi
7860 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7861 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7862    if test "$ac_cv_sys_file_offset_bits" != no; then
7863
7864 cat >>confdefs.h <<_ACEOF
7865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7866 _ACEOF
7867
7868    fi
7869      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7870 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7871 if test "${ac_cv_sys_largefile_source+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   ac_cv_sys_largefile_source=no
7875       case "$host_os" in
7876         # HP-UX 10.20 and later
7877         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7878           ac_cv_sys_largefile_source=1 ;;
7879         esac
7880       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7881         case "$ac_flag" in
7882         -D_LARGEFILE_SOURCE)
7883           ac_cv_sys_largefile_source=1 ;;
7884         -D_LARGEFILE_SOURCE=*)
7885           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7886         esac
7887       done
7888
7889 fi
7890 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7891 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7892    if test "$ac_cv_sys_largefile_source" != no; then
7893
7894 cat >>confdefs.h <<_ACEOF
7895 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7896 _ACEOF
7897
7898    fi
7899      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7900 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7901 if test "${ac_cv_sys_large_files+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   ac_cv_sys_large_files=no
7905       case "$host_os" in
7906         # AIX 4.2 and later
7907         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7908           ac_cv_sys_large_files=1 ;;
7909         esac
7910       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7911         case "$ac_flag" in
7912         -D_LARGE_FILES)
7913           ac_cv_sys_large_files=1 ;;
7914         -D_LARGE_FILES=*)
7915           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7916         esac
7917       done
7918
7919 fi
7920 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7921 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7922    if test "$ac_cv_sys_large_files" != no; then
7923
7924 cat >>confdefs.h <<_ACEOF
7925 #define _LARGE_FILES $ac_cv_sys_large_files
7926 _ACEOF
7927
7928    fi
7929    fi
7930
7931
7932
7933 echo "$as_me:$LINENO: checking for X" >&5
7934 echo $ECHO_N "checking for X... $ECHO_C" >&6
7935
7936
7937 # Check whether --with-x or --without-x was given.
7938 if test "${with_x+set}" = set; then
7939   withval="$with_x"
7940
7941 fi;
7942 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7943 if test "x$with_x" = xno; then
7944   # The user explicitly disabled X.
7945   have_x=disabled
7946 else
7947   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7948     # Both variables are already set.
7949     have_x=yes
7950   else
7951     if test "${ac_cv_have_x+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   # One or both of the vars are not set, and there is no cached value.
7955 ac_x_includes=no ac_x_libraries=no
7956 rm -fr conftest.dir
7957 if mkdir conftest.dir; then
7958   cd conftest.dir
7959   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7960   cat >Imakefile <<'_ACEOF'
7961 acfindx:
7962         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7963 _ACEOF
7964   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7965     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7966     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7967     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7968     for ac_extension in a so sl; do
7969       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7970          test -f $ac_im_libdir/libX11.$ac_extension; then
7971         ac_im_usrlibdir=$ac_im_libdir; break
7972       fi
7973     done
7974     # Screen out bogus values from the imake configuration.  They are
7975     # bogus both because they are the default anyway, and because
7976     # using them would break gcc on systems where it needs fixed includes.
7977     case $ac_im_incroot in
7978         /usr/include) ;;
7979         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7980     esac
7981     case $ac_im_usrlibdir in
7982         /usr/lib | /lib) ;;
7983         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7984     esac
7985   fi
7986   cd ..
7987   rm -fr conftest.dir
7988 fi
7989
7990 # Standard set of common directories for X headers.
7991 # Check X11 before X11Rn because it is often a symlink to the current release.
7992 ac_x_header_dirs='
7993 /usr/X11/include
7994 /usr/X11R6/include
7995 /usr/X11R5/include
7996 /usr/X11R4/include
7997
7998 /usr/include/X11
7999 /usr/include/X11R6
8000 /usr/include/X11R5
8001 /usr/include/X11R4
8002
8003 /usr/local/X11/include
8004 /usr/local/X11R6/include
8005 /usr/local/X11R5/include
8006 /usr/local/X11R4/include
8007
8008 /usr/local/include/X11
8009 /usr/local/include/X11R6
8010 /usr/local/include/X11R5
8011 /usr/local/include/X11R4
8012
8013 /usr/X386/include
8014 /usr/x386/include
8015 /usr/XFree86/include/X11
8016
8017 /usr/include
8018 /usr/local/include
8019 /usr/unsupported/include
8020 /usr/athena/include
8021 /usr/local/x11r5/include
8022 /usr/lpp/Xamples/include
8023
8024 /usr/openwin/include
8025 /usr/openwin/share/include'
8026
8027 if test "$ac_x_includes" = no; then
8028   # Guess where to find include files, by looking for Intrinsic.h.
8029   # First, try using that file with no special directory specified.
8030   cat >conftest.$ac_ext <<_ACEOF
8031 #line $LINENO "configure"
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037 #include <X11/Intrinsic.h>
8038 _ACEOF
8039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } >/dev/null; then
8047   if test -s conftest.err; then
8048     ac_cpp_err=$ac_c_preproc_warn_flag
8049   else
8050     ac_cpp_err=
8051   fi
8052 else
8053   ac_cpp_err=yes
8054 fi
8055 if test -z "$ac_cpp_err"; then
8056   # We can compile using X headers with no special include directory.
8057 ac_x_includes=
8058 else
8059   echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062   for ac_dir in $ac_x_header_dirs; do
8063   if test -r "$ac_dir/X11/Intrinsic.h"; then
8064     ac_x_includes=$ac_dir
8065     break
8066   fi
8067 done
8068 fi
8069 rm -f conftest.err conftest.$ac_ext
8070 fi # $ac_x_includes = no
8071
8072 if test "$ac_x_libraries" = no; then
8073   # Check for the libraries.
8074   # See if we find them without any special options.
8075   # Don't add to $LIBS permanently.
8076   ac_save_LIBS=$LIBS
8077   LIBS="-lXt $LIBS"
8078   cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 #include <X11/Intrinsic.h>
8086 int
8087 main ()
8088 {
8089 XtMalloc (0)
8090   ;
8091   return 0;
8092 }
8093 _ACEOF
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8096   (eval $ac_link) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); } &&
8100          { ac_try='test -s conftest$ac_exeext'
8101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102   (eval $ac_try) 2>&5
8103   ac_status=$?
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   (exit $ac_status); }; }; then
8106   LIBS=$ac_save_LIBS
8107 # We can link X programs with no special library path.
8108 ac_x_libraries=
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 LIBS=$ac_save_LIBS
8114 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8115 do
8116   # Don't even attempt the hair of trying to link an X program!
8117   for ac_extension in a so sl; do
8118     if test -r $ac_dir/libXt.$ac_extension; then
8119       ac_x_libraries=$ac_dir
8120       break 2
8121     fi
8122   done
8123 done
8124 fi
8125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 fi # $ac_x_libraries = no
8127
8128 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8129   # Didn't find X anywhere.  Cache the known absence of X.
8130   ac_cv_have_x="have_x=no"
8131 else
8132   # Record where we found X for the cache.
8133   ac_cv_have_x="have_x=yes \
8134                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8135 fi
8136 fi
8137
8138   fi
8139   eval "$ac_cv_have_x"
8140 fi # $with_x != no
8141
8142 if test "$have_x" != yes; then
8143   echo "$as_me:$LINENO: result: $have_x" >&5
8144 echo "${ECHO_T}$have_x" >&6
8145   no_x=yes
8146 else
8147   # If each of the values was on the command line, it overrides each guess.
8148   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8149   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8150   # Update the cache value to reflect the command line values.
8151   ac_cv_have_x="have_x=yes \
8152                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8153   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8154 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8155 fi
8156
8157 if test "$no_x" = yes; then
8158   # Not all programs may use this symbol, but it does not hurt to define it.
8159
8160 cat >>confdefs.h <<\_ACEOF
8161 #define X_DISPLAY_MISSING 1
8162 _ACEOF
8163
8164   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8165 else
8166   if test -n "$x_includes"; then
8167     X_CFLAGS="$X_CFLAGS -I$x_includes"
8168   fi
8169
8170   # It would also be nice to do this for all -L options, not just this one.
8171   if test -n "$x_libraries"; then
8172     X_LIBS="$X_LIBS -L$x_libraries"
8173     # For Solaris; some versions of Sun CC require a space after -R and
8174     # others require no space.  Words are not sufficient . . . .
8175     case `(uname -sr) 2>/dev/null` in
8176     "SunOS 5"*)
8177       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8178 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8179       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8180       cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187
8188 int
8189 main ()
8190 {
8191
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198   (eval $ac_link) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } &&
8202          { ac_try='test -s conftest$ac_exeext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   ac_R_nospace=yes
8209 else
8210   echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_R_nospace=no
8214 fi
8215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8216       if test $ac_R_nospace = yes; then
8217         echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219         X_LIBS="$X_LIBS -R$x_libraries"
8220       else
8221         LIBS="$ac_xsave_LIBS -R $x_libraries"
8222         cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 /* confdefs.h.  */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h.  */
8229
8230 int
8231 main ()
8232 {
8233
8234   ;
8235   return 0;
8236 }
8237 _ACEOF
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240   (eval $ac_link) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -s conftest$ac_exeext'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_R_space=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_R_space=no
8256 fi
8257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8258         if test $ac_R_space = yes; then
8259           echo "$as_me:$LINENO: result: yes" >&5
8260 echo "${ECHO_T}yes" >&6
8261           X_LIBS="$X_LIBS -R $x_libraries"
8262         else
8263           echo "$as_me:$LINENO: result: neither works" >&5
8264 echo "${ECHO_T}neither works" >&6
8265         fi
8266       fi
8267       LIBS=$ac_xsave_LIBS
8268     esac
8269   fi
8270
8271   # Check for system-dependent libraries X programs must link with.
8272   # Do this before checking for the system-independent R6 libraries
8273   # (-lICE), since we may need -lsocket or whatever for X linking.
8274
8275   if test "$ISC" = yes; then
8276     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8277   else
8278     # Martyn Johnson says this is needed for Ultrix, if the X
8279     # libraries were built with DECnet support.  And Karl Berry says
8280     # the Alpha needs dnet_stub (dnet does not exist).
8281     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8282     cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289
8290 /* Override any gcc2 internal prototype to avoid an error.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 /* We use char because int might match the return type of a gcc2
8295    builtin and then its argument prototype would still apply.  */
8296 char XOpenDisplay ();
8297 int
8298 main ()
8299 {
8300 XOpenDisplay ();
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307   (eval $ac_link) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); } &&
8311          { ac_try='test -s conftest$ac_exeext'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; }; then
8317   :
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8323 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8324 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-ldnet  $LIBS"
8329 cat >conftest.$ac_ext <<_ACEOF
8330 #line $LINENO "configure"
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336
8337 /* Override any gcc2 internal prototype to avoid an error.  */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 /* We use char because int might match the return type of a gcc2
8342    builtin and then its argument prototype would still apply.  */
8343 char dnet_ntoa ();
8344 int
8345 main ()
8346 {
8347 dnet_ntoa ();
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354   (eval $ac_link) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -s conftest$ac_exeext'
8359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_cv_lib_dnet_dnet_ntoa=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_cv_lib_dnet_dnet_ntoa=no
8370 fi
8371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8372 LIBS=$ac_check_lib_save_LIBS
8373 fi
8374 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8375 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8376 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8377   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8378 fi
8379
8380     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8381       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8382 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8383 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386   ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-ldnet_stub  $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 #line $LINENO "configure"
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395
8396 /* Override any gcc2 internal prototype to avoid an error.  */
8397 #ifdef __cplusplus
8398 extern "C"
8399 #endif
8400 /* We use char because int might match the return type of a gcc2
8401    builtin and then its argument prototype would still apply.  */
8402 char dnet_ntoa ();
8403 int
8404 main ()
8405 {
8406 dnet_ntoa ();
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413   (eval $ac_link) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } &&
8417          { ac_try='test -s conftest$ac_exeext'
8418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419   (eval $ac_try) 2>&5
8420   ac_status=$?
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); }; }; then
8423   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8424 else
8425   echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8427
8428 ac_cv_lib_dnet_stub_dnet_ntoa=no
8429 fi
8430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_lib_save_LIBS
8432 fi
8433 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8434 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8435 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8436   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8437 fi
8438
8439     fi
8440 fi
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442     LIBS="$ac_xsave_LIBS"
8443
8444     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8445     # to get the SysV transport functions.
8446     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8447     # needs -lnsl.
8448     # The nsl library prevents programs from opening the X display
8449     # on Irix 5.2, according to T.E. Dickey.
8450     # The functions gethostbyname, getservbyname, and inet_addr are
8451     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8452     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8453 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8454 if test "${ac_cv_func_gethostbyname+set}" = set; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457   cat >conftest.$ac_ext <<_ACEOF
8458 #line $LINENO "configure"
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464 /* System header to define __stub macros and hopefully few prototypes,
8465     which can conflict with char gethostbyname (); below.
8466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467     <limits.h> exists even on freestanding compilers.  */
8468 #ifdef __STDC__
8469 # include <limits.h>
8470 #else
8471 # include <assert.h>
8472 #endif
8473 /* Override any gcc2 internal prototype to avoid an error.  */
8474 #ifdef __cplusplus
8475 extern "C"
8476 {
8477 #endif
8478 /* We use char because int might match the return type of a gcc2
8479    builtin and then its argument prototype would still apply.  */
8480 char gethostbyname ();
8481 /* The GNU C library defines this for functions which it implements
8482     to always fail with ENOSYS.  Some functions are actually named
8483     something starting with __ and the normal name is an alias.  */
8484 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8485 choke me
8486 #else
8487 char (*f) () = gethostbyname;
8488 #endif
8489 #ifdef __cplusplus
8490 }
8491 #endif
8492
8493 int
8494 main ()
8495 {
8496 return f != gethostbyname;
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503   (eval $ac_link) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } &&
8507          { ac_try='test -s conftest$ac_exeext'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; }; then
8513   ac_cv_func_gethostbyname=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 ac_cv_func_gethostbyname=no
8519 fi
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8521 fi
8522 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8523 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8524
8525     if test $ac_cv_func_gethostbyname = no; then
8526       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8527 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8528 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8529   echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531   ac_check_lib_save_LIBS=$LIBS
8532 LIBS="-lnsl  $LIBS"
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540
8541 /* Override any gcc2 internal prototype to avoid an error.  */
8542 #ifdef __cplusplus
8543 extern "C"
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546    builtin and then its argument prototype would still apply.  */
8547 char gethostbyname ();
8548 int
8549 main ()
8550 {
8551 gethostbyname ();
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558   (eval $ac_link) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } &&
8562          { ac_try='test -s conftest$ac_exeext'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; }; then
8568   ac_cv_lib_nsl_gethostbyname=yes
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 ac_cv_lib_nsl_gethostbyname=no
8574 fi
8575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_lib_save_LIBS
8577 fi
8578 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8579 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8580 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8581   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8582 fi
8583
8584       if test $ac_cv_lib_nsl_gethostbyname = no; then
8585         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8586 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8587 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8588   echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590   ac_check_lib_save_LIBS=$LIBS
8591 LIBS="-lbsd  $LIBS"
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599
8600 /* Override any gcc2 internal prototype to avoid an error.  */
8601 #ifdef __cplusplus
8602 extern "C"
8603 #endif
8604 /* We use char because int might match the return type of a gcc2
8605    builtin and then its argument prototype would still apply.  */
8606 char gethostbyname ();
8607 int
8608 main ()
8609 {
8610 gethostbyname ();
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8617   (eval $ac_link) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -s conftest$ac_exeext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_lib_bsd_gethostbyname=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_cv_lib_bsd_gethostbyname=no
8633 fi
8634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8635 LIBS=$ac_check_lib_save_LIBS
8636 fi
8637 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8638 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8639 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8640   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8641 fi
8642
8643       fi
8644     fi
8645
8646     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8647     # socket/setsockopt and other routines are undefined under SCO ODT
8648     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8649     # on later versions), says Simon Leinen: it contains gethostby*
8650     # variants that don't use the name server (or something).  -lsocket
8651     # must be given before -lnsl if both are needed.  We assume that
8652     # if connect needs -lnsl, so does gethostbyname.
8653     echo "$as_me:$LINENO: checking for connect" >&5
8654 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8655 if test "${ac_cv_func_connect+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   cat >conftest.$ac_ext <<_ACEOF
8659 #line $LINENO "configure"
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 /* System header to define __stub macros and hopefully few prototypes,
8666     which can conflict with char connect (); below.
8667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8668     <limits.h> exists even on freestanding compilers.  */
8669 #ifdef __STDC__
8670 # include <limits.h>
8671 #else
8672 # include <assert.h>
8673 #endif
8674 /* Override any gcc2 internal prototype to avoid an error.  */
8675 #ifdef __cplusplus
8676 extern "C"
8677 {
8678 #endif
8679 /* We use char because int might match the return type of a gcc2
8680    builtin and then its argument prototype would still apply.  */
8681 char connect ();
8682 /* The GNU C library defines this for functions which it implements
8683     to always fail with ENOSYS.  Some functions are actually named
8684     something starting with __ and the normal name is an alias.  */
8685 #if defined (__stub_connect) || defined (__stub___connect)
8686 choke me
8687 #else
8688 char (*f) () = connect;
8689 #endif
8690 #ifdef __cplusplus
8691 }
8692 #endif
8693
8694 int
8695 main ()
8696 {
8697 return f != connect;
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704   (eval $ac_link) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } &&
8708          { ac_try='test -s conftest$ac_exeext'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   ac_cv_func_connect=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 ac_cv_func_connect=no
8720 fi
8721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8722 fi
8723 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8724 echo "${ECHO_T}$ac_cv_func_connect" >&6
8725
8726     if test $ac_cv_func_connect = no; then
8727       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8728 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8729 if test "${ac_cv_lib_socket_connect+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 #line $LINENO "configure"
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 /* Override any gcc2 internal prototype to avoid an error.  */
8743 #ifdef __cplusplus
8744 extern "C"
8745 #endif
8746 /* We use char because int might match the return type of a gcc2
8747    builtin and then its argument prototype would still apply.  */
8748 char connect ();
8749 int
8750 main ()
8751 {
8752 connect ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759   (eval $ac_link) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } &&
8763          { ac_try='test -s conftest$ac_exeext'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; }; then
8769   ac_cv_lib_socket_connect=yes
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774 ac_cv_lib_socket_connect=no
8775 fi
8776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8778 fi
8779 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8780 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8781 if test $ac_cv_lib_socket_connect = yes; then
8782   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8783 fi
8784
8785     fi
8786
8787     # Guillermo Gomez says -lposix is necessary on A/UX.
8788     echo "$as_me:$LINENO: checking for remove" >&5
8789 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8790 if test "${ac_cv_func_remove+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   cat >conftest.$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800 /* System header to define __stub macros and hopefully few prototypes,
8801     which can conflict with char remove (); below.
8802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803     <limits.h> exists even on freestanding compilers.  */
8804 #ifdef __STDC__
8805 # include <limits.h>
8806 #else
8807 # include <assert.h>
8808 #endif
8809 /* Override any gcc2 internal prototype to avoid an error.  */
8810 #ifdef __cplusplus
8811 extern "C"
8812 {
8813 #endif
8814 /* We use char because int might match the return type of a gcc2
8815    builtin and then its argument prototype would still apply.  */
8816 char remove ();
8817 /* The GNU C library defines this for functions which it implements
8818     to always fail with ENOSYS.  Some functions are actually named
8819     something starting with __ and the normal name is an alias.  */
8820 #if defined (__stub_remove) || defined (__stub___remove)
8821 choke me
8822 #else
8823 char (*f) () = remove;
8824 #endif
8825 #ifdef __cplusplus
8826 }
8827 #endif
8828
8829 int
8830 main ()
8831 {
8832 return f != remove;
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839   (eval $ac_link) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); } &&
8843          { ac_try='test -s conftest$ac_exeext'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_cv_func_remove=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_cv_func_remove=no
8855 fi
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857 fi
8858 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8859 echo "${ECHO_T}$ac_cv_func_remove" >&6
8860
8861     if test $ac_cv_func_remove = no; then
8862       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8863 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8864 if test "${ac_cv_lib_posix_remove+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   ac_check_lib_save_LIBS=$LIBS
8868 LIBS="-lposix  $LIBS"
8869 cat >conftest.$ac_ext <<_ACEOF
8870 #line $LINENO "configure"
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876
8877 /* Override any gcc2 internal prototype to avoid an error.  */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 /* We use char because int might match the return type of a gcc2
8882    builtin and then its argument prototype would still apply.  */
8883 char remove ();
8884 int
8885 main ()
8886 {
8887 remove ();
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894   (eval $ac_link) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } &&
8898          { ac_try='test -s conftest$ac_exeext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_lib_posix_remove=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_lib_posix_remove=no
8910 fi
8911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8915 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8916 if test $ac_cv_lib_posix_remove = yes; then
8917   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8918 fi
8919
8920     fi
8921
8922     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8923     echo "$as_me:$LINENO: checking for shmat" >&5
8924 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8925 if test "${ac_cv_func_shmat+set}" = set; then
8926   echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928   cat >conftest.$ac_ext <<_ACEOF
8929 #line $LINENO "configure"
8930 /* confdefs.h.  */
8931 _ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h.  */
8935 /* System header to define __stub macros and hopefully few prototypes,
8936     which can conflict with char shmat (); below.
8937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938     <limits.h> exists even on freestanding compilers.  */
8939 #ifdef __STDC__
8940 # include <limits.h>
8941 #else
8942 # include <assert.h>
8943 #endif
8944 /* Override any gcc2 internal prototype to avoid an error.  */
8945 #ifdef __cplusplus
8946 extern "C"
8947 {
8948 #endif
8949 /* We use char because int might match the return type of a gcc2
8950    builtin and then its argument prototype would still apply.  */
8951 char shmat ();
8952 /* The GNU C library defines this for functions which it implements
8953     to always fail with ENOSYS.  Some functions are actually named
8954     something starting with __ and the normal name is an alias.  */
8955 #if defined (__stub_shmat) || defined (__stub___shmat)
8956 choke me
8957 #else
8958 char (*f) () = shmat;
8959 #endif
8960 #ifdef __cplusplus
8961 }
8962 #endif
8963
8964 int
8965 main ()
8966 {
8967 return f != shmat;
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974   (eval $ac_link) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); } &&
8978          { ac_try='test -s conftest$ac_exeext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   ac_cv_func_shmat=yes
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 ac_cv_func_shmat=no
8990 fi
8991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8992 fi
8993 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8994 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8995
8996     if test $ac_cv_func_shmat = no; then
8997       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8998 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8999 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   ac_check_lib_save_LIBS=$LIBS
9003 LIBS="-lipc  $LIBS"
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line $LINENO "configure"
9006 /* confdefs.h.  */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h.  */
9011
9012 /* Override any gcc2 internal prototype to avoid an error.  */
9013 #ifdef __cplusplus
9014 extern "C"
9015 #endif
9016 /* We use char because int might match the return type of a gcc2
9017    builtin and then its argument prototype would still apply.  */
9018 char shmat ();
9019 int
9020 main ()
9021 {
9022 shmat ();
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029   (eval $ac_link) 2>&5
9030   ac_status=$?
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } &&
9033          { ac_try='test -s conftest$ac_exeext'
9034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035   (eval $ac_try) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; }; then
9039   ac_cv_lib_ipc_shmat=yes
9040 else
9041   echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9043
9044 ac_cv_lib_ipc_shmat=no
9045 fi
9046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9047 LIBS=$ac_check_lib_save_LIBS
9048 fi
9049 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9050 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9051 if test $ac_cv_lib_ipc_shmat = yes; then
9052   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9053 fi
9054
9055     fi
9056   fi
9057
9058   # Check for libraries that X11R6 Xt/Xaw programs need.
9059   ac_save_LDFLAGS=$LDFLAGS
9060   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9061   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9062   # check for ICE first), but we must link in the order -lSM -lICE or
9063   # we get undefined symbols.  So assume we have SM if we have ICE.
9064   # These have to be linked with before -lX11, unlike the other
9065   # libraries we check for below, so use a different variable.
9066   # John Interrante, Karl Berry
9067   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9068 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9069 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   ac_check_lib_save_LIBS=$LIBS
9073 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081
9082 /* Override any gcc2 internal prototype to avoid an error.  */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 /* We use char because int might match the return type of a gcc2
9087    builtin and then its argument prototype would still apply.  */
9088 char IceConnectionNumber ();
9089 int
9090 main ()
9091 {
9092 IceConnectionNumber ();
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099   (eval $ac_link) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); } &&
9103          { ac_try='test -s conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   ac_cv_lib_ICE_IceConnectionNumber=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_cv_lib_ICE_IceConnectionNumber=no
9115 fi
9116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9120 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9121 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9122   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9123 fi
9124
9125   LDFLAGS=$ac_save_LDFLAGS
9126
9127 fi
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 for ac_header in \
9153         assert.h \
9154         fcntl.h \
9155         grp.h \
9156         pwd.h \
9157         libc.h \
9158         limits.h \
9159         stdarg.h \
9160         stdlib.h \
9161         stdint.h \
9162         string.h \
9163         termios.h \
9164         unistd.h \
9165         sys/byteorder.h \
9166         sys/ioctl.h \
9167         sys/select.h \
9168         sys/sockio.h \
9169         sys/time.h \
9170         sys/socket.h \
9171         arpa/nameser.h \
9172         resolv.h \
9173         mtio.h \
9174         sys/mtio.h \
9175
9176 do
9177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9179   echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 fi
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9186 else
9187   # Is the header compilable?
9188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197 $ac_includes_default
9198 #include <$ac_header>
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202   (eval $ac_compile) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } &&
9206          { ac_try='test -s conftest.$ac_objext'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; }; then
9212   ac_header_compiler=yes
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 ac_header_compiler=no
9218 fi
9219 rm -f conftest.$ac_objext conftest.$ac_ext
9220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9221 echo "${ECHO_T}$ac_header_compiler" >&6
9222
9223 # Is the header present?
9224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9227 #line $LINENO "configure"
9228 /* confdefs.h.  */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h.  */
9233 #include <$ac_header>
9234 _ACEOF
9235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } >/dev/null; then
9243   if test -s conftest.err; then
9244     ac_cpp_err=$ac_c_preproc_warn_flag
9245   else
9246     ac_cpp_err=
9247   fi
9248 else
9249   ac_cpp_err=yes
9250 fi
9251 if test -z "$ac_cpp_err"; then
9252   ac_header_preproc=yes
9253 else
9254   echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257   ac_header_preproc=no
9258 fi
9259 rm -f conftest.err conftest.$ac_ext
9260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9261 echo "${ECHO_T}$ac_header_preproc" >&6
9262
9263 # So?  What about this header?
9264 case $ac_header_compiler:$ac_header_preproc in
9265   yes:no )
9266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9270     (
9271       cat <<\_ASBOX
9272 ## ------------------------------------ ##
9273 ## Report this to bug-autoconf@gnu.org. ##
9274 ## ------------------------------------ ##
9275 _ASBOX
9276     ) |
9277       sed "s/^/$as_me: WARNING:     /" >&2
9278     ;;
9279   no:yes )
9280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9282     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9286     (
9287       cat <<\_ASBOX
9288 ## ------------------------------------ ##
9289 ## Report this to bug-autoconf@gnu.org. ##
9290 ## ------------------------------------ ##
9291 _ASBOX
9292     ) |
9293       sed "s/^/$as_me: WARNING:     /" >&2
9294     ;;
9295 esac
9296 echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 else
9301   eval "$as_ac_Header=$ac_header_preproc"
9302 fi
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9305
9306 fi
9307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308   cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 _ACEOF
9311
9312 fi
9313
9314 done
9315
9316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9318 if test "${ac_cv_header_stdc+set}" = set; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   cat >conftest.$ac_ext <<_ACEOF
9322 #line $LINENO "configure"
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328 #include <stdlib.h>
9329 #include <stdarg.h>
9330 #include <string.h>
9331 #include <float.h>
9332
9333 int
9334 main ()
9335 {
9336
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343   (eval $ac_compile) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } &&
9347          { ac_try='test -s conftest.$ac_objext'
9348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349   (eval $ac_try) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; }; then
9353   ac_cv_header_stdc=yes
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358 ac_cv_header_stdc=no
9359 fi
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9361
9362 if test $ac_cv_header_stdc = yes; then
9363   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9364   cat >conftest.$ac_ext <<_ACEOF
9365 #line $LINENO "configure"
9366 /* confdefs.h.  */
9367 _ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h.  */
9371 #include <string.h>
9372
9373 _ACEOF
9374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9375   $EGREP "memchr" >/dev/null 2>&1; then
9376   :
9377 else
9378   ac_cv_header_stdc=no
9379 fi
9380 rm -f conftest*
9381
9382 fi
9383
9384 if test $ac_cv_header_stdc = yes; then
9385   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9386   cat >conftest.$ac_ext <<_ACEOF
9387 #line $LINENO "configure"
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393 #include <stdlib.h>
9394
9395 _ACEOF
9396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9397   $EGREP "free" >/dev/null 2>&1; then
9398   :
9399 else
9400   ac_cv_header_stdc=no
9401 fi
9402 rm -f conftest*
9403
9404 fi
9405
9406 if test $ac_cv_header_stdc = yes; then
9407   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9408   if test "$cross_compiling" = yes; then
9409   :
9410 else
9411   cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 /* confdefs.h.  */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h.  */
9418 #include <ctype.h>
9419 #if ((' ' & 0x0FF) == 0x020)
9420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9422 #else
9423 # define ISLOWER(c) \
9424                    (('a' <= (c) && (c) <= 'i') \
9425                      || ('j' <= (c) && (c) <= 'r') \
9426                      || ('s' <= (c) && (c) <= 'z'))
9427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9428 #endif
9429
9430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9431 int
9432 main ()
9433 {
9434   int i;
9435   for (i = 0; i < 256; i++)
9436     if (XOR (islower (i), ISLOWER (i))
9437         || toupper (i) != TOUPPER (i))
9438       exit(2);
9439   exit (0);
9440 }
9441 _ACEOF
9442 rm -f conftest$ac_exeext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444   (eval $ac_link) 2>&5
9445   ac_status=$?
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; }; then
9453   :
9454 else
9455   echo "$as_me: program exited with status $ac_status" >&5
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ( exit $ac_status )
9460 ac_cv_header_stdc=no
9461 fi
9462 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9463 fi
9464 fi
9465 fi
9466 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9467 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9468 if test $ac_cv_header_stdc = yes; then
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define STDC_HEADERS 1
9472 _ACEOF
9473
9474 fi
9475
9476 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9477 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9478 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481   cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488 #include <sys/types.h>
9489 int
9490 main ()
9491 {
9492 return makedev(0, 0);
9493   ;
9494   return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499   (eval $ac_link) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } &&
9503          { ac_try='test -s conftest$ac_exeext'
9504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505   (eval $ac_try) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); }; }; then
9509   ac_cv_header_sys_types_h_makedev=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514 ac_cv_header_sys_types_h_makedev=no
9515 fi
9516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9517
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9520 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9521
9522 if test $ac_cv_header_sys_types_h_makedev = no; then
9523 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9524   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9525 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9526 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 fi
9529 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9530 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9531 else
9532   # Is the header compilable?
9533 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9534 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9535 cat >conftest.$ac_ext <<_ACEOF
9536 #line $LINENO "configure"
9537 /* confdefs.h.  */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h.  */
9542 $ac_includes_default
9543 #include <sys/mkdev.h>
9544 _ACEOF
9545 rm -f conftest.$ac_objext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547   (eval $ac_compile) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -s conftest.$ac_objext'
9552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553   (eval $ac_try) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); }; }; then
9557   ac_header_compiler=yes
9558 else
9559   echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9561
9562 ac_header_compiler=no
9563 fi
9564 rm -f conftest.$ac_objext conftest.$ac_ext
9565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9566 echo "${ECHO_T}$ac_header_compiler" >&6
9567
9568 # Is the header present?
9569 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9570 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9572 #line $LINENO "configure"
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578 #include <sys/mkdev.h>
9579 _ACEOF
9580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9582   ac_status=$?
9583   grep -v '^ *+' conftest.er1 >conftest.err
9584   rm -f conftest.er1
9585   cat conftest.err >&5
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } >/dev/null; then
9588   if test -s conftest.err; then
9589     ac_cpp_err=$ac_c_preproc_warn_flag
9590   else
9591     ac_cpp_err=
9592   fi
9593 else
9594   ac_cpp_err=yes
9595 fi
9596 if test -z "$ac_cpp_err"; then
9597   ac_header_preproc=yes
9598 else
9599   echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602   ac_header_preproc=no
9603 fi
9604 rm -f conftest.err conftest.$ac_ext
9605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9606 echo "${ECHO_T}$ac_header_preproc" >&6
9607
9608 # So?  What about this header?
9609 case $ac_header_compiler:$ac_header_preproc in
9610   yes:no )
9611     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9612 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9613     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9614 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9615     (
9616       cat <<\_ASBOX
9617 ## ------------------------------------ ##
9618 ## Report this to bug-autoconf@gnu.org. ##
9619 ## ------------------------------------ ##
9620 _ASBOX
9621     ) |
9622       sed "s/^/$as_me: WARNING:     /" >&2
9623     ;;
9624   no:yes )
9625     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9626 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9627     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9628 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9629     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9630 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9631     (
9632       cat <<\_ASBOX
9633 ## ------------------------------------ ##
9634 ## Report this to bug-autoconf@gnu.org. ##
9635 ## ------------------------------------ ##
9636 _ASBOX
9637     ) |
9638       sed "s/^/$as_me: WARNING:     /" >&2
9639     ;;
9640 esac
9641 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9642 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9643 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9647 fi
9648 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9649 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9650
9651 fi
9652 if test $ac_cv_header_sys_mkdev_h = yes; then
9653
9654 cat >>confdefs.h <<\_ACEOF
9655 #define MAJOR_IN_MKDEV 1
9656 _ACEOF
9657
9658 fi
9659
9660
9661
9662   if test $ac_cv_header_sys_mkdev_h = no; then
9663     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9664   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9665 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9666 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9671 else
9672   # Is the header compilable?
9673 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9674 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9675 cat >conftest.$ac_ext <<_ACEOF
9676 #line $LINENO "configure"
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682 $ac_includes_default
9683 #include <sys/sysmacros.h>
9684 _ACEOF
9685 rm -f conftest.$ac_objext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9687   (eval $ac_compile) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); } &&
9691          { ac_try='test -s conftest.$ac_objext'
9692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693   (eval $ac_try) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; }; then
9697   ac_header_compiler=yes
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 ac_header_compiler=no
9703 fi
9704 rm -f conftest.$ac_objext conftest.$ac_ext
9705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9706 echo "${ECHO_T}$ac_header_compiler" >&6
9707
9708 # Is the header present?
9709 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9710 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9711 cat >conftest.$ac_ext <<_ACEOF
9712 #line $LINENO "configure"
9713 /* confdefs.h.  */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h.  */
9718 #include <sys/sysmacros.h>
9719 _ACEOF
9720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9722   ac_status=$?
9723   grep -v '^ *+' conftest.er1 >conftest.err
9724   rm -f conftest.er1
9725   cat conftest.err >&5
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); } >/dev/null; then
9728   if test -s conftest.err; then
9729     ac_cpp_err=$ac_c_preproc_warn_flag
9730   else
9731     ac_cpp_err=
9732   fi
9733 else
9734   ac_cpp_err=yes
9735 fi
9736 if test -z "$ac_cpp_err"; then
9737   ac_header_preproc=yes
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742   ac_header_preproc=no
9743 fi
9744 rm -f conftest.err conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9746 echo "${ECHO_T}$ac_header_preproc" >&6
9747
9748 # So?  What about this header?
9749 case $ac_header_compiler:$ac_header_preproc in
9750   yes:no )
9751     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9752 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9753     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9754 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9755     (
9756       cat <<\_ASBOX
9757 ## ------------------------------------ ##
9758 ## Report this to bug-autoconf@gnu.org. ##
9759 ## ------------------------------------ ##
9760 _ASBOX
9761     ) |
9762       sed "s/^/$as_me: WARNING:     /" >&2
9763     ;;
9764   no:yes )
9765     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9766 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9767     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9768 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9769     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9770 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9771     (
9772       cat <<\_ASBOX
9773 ## ------------------------------------ ##
9774 ## Report this to bug-autoconf@gnu.org. ##
9775 ## ------------------------------------ ##
9776 _ASBOX
9777     ) |
9778       sed "s/^/$as_me: WARNING:     /" >&2
9779     ;;
9780 esac
9781 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9782 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9783 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9787 fi
9788 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9789 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9790
9791 fi
9792 if test $ac_cv_header_sys_sysmacros_h = yes; then
9793
9794 cat >>confdefs.h <<\_ACEOF
9795 #define MAJOR_IN_SYSMACROS 1
9796 _ACEOF
9797
9798 fi
9799
9800
9801   fi
9802 fi
9803
9804
9805
9806
9807
9808
9809 ac_header_dirent=no
9810 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9811   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9812 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9813 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   cat >conftest.$ac_ext <<_ACEOF
9818 #line $LINENO "configure"
9819 /* confdefs.h.  */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h.  */
9824 #include <sys/types.h>
9825 #include <$ac_hdr>
9826
9827 int
9828 main ()
9829 {
9830 if ((DIR *) 0)
9831 return 0;
9832   ;
9833   return 0;
9834 }
9835 _ACEOF
9836 rm -f conftest.$ac_objext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838   (eval $ac_compile) 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); } &&
9842          { ac_try='test -s conftest.$ac_objext'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; }; then
9848   eval "$as_ac_Header=yes"
9849 else
9850   echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 eval "$as_ac_Header=no"
9854 fi
9855 rm -f conftest.$ac_objext conftest.$ac_ext
9856 fi
9857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860   cat >>confdefs.h <<_ACEOF
9861 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9862 _ACEOF
9863
9864 ac_header_dirent=$ac_hdr; break
9865 fi
9866
9867 done
9868 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9869 if test $ac_header_dirent = dirent.h; then
9870   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9871 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9872 if test "${ac_cv_search_opendir+set}" = set; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   ac_func_search_save_LIBS=$LIBS
9876 ac_cv_search_opendir=no
9877 cat >conftest.$ac_ext <<_ACEOF
9878 #line $LINENO "configure"
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 /* Override any gcc2 internal prototype to avoid an error.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890    builtin and then its argument prototype would still apply.  */
9891 char opendir ();
9892 int
9893 main ()
9894 {
9895 opendir ();
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902   (eval $ac_link) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_cv_search_opendir="none required"
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9919 if test "$ac_cv_search_opendir" = no; then
9920   for ac_lib in dir; do
9921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9922     cat >conftest.$ac_ext <<_ACEOF
9923 #line $LINENO "configure"
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929
9930 /* Override any gcc2 internal prototype to avoid an error.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935    builtin and then its argument prototype would still apply.  */
9936 char opendir ();
9937 int
9938 main ()
9939 {
9940 opendir ();
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947   (eval $ac_link) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } &&
9951          { ac_try='test -s conftest$ac_exeext'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; }; then
9957   ac_cv_search_opendir="-l$ac_lib"
9958 break
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 fi
9964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9965   done
9966 fi
9967 LIBS=$ac_func_search_save_LIBS
9968 fi
9969 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9970 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9971 if test "$ac_cv_search_opendir" != no; then
9972   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9973
9974 fi
9975
9976 else
9977   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9978 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9979 if test "${ac_cv_search_opendir+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   ac_func_search_save_LIBS=$LIBS
9983 ac_cv_search_opendir=no
9984 cat >conftest.$ac_ext <<_ACEOF
9985 #line $LINENO "configure"
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991
9992 /* Override any gcc2 internal prototype to avoid an error.  */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 /* We use char because int might match the return type of a gcc2
9997    builtin and then its argument prototype would still apply.  */
9998 char opendir ();
9999 int
10000 main ()
10001 {
10002 opendir ();
10003   ;
10004   return 0;
10005 }
10006 _ACEOF
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10009   (eval $ac_link) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } &&
10013          { ac_try='test -s conftest$ac_exeext'
10014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015   (eval $ac_try) 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; }; then
10019   ac_cv_search_opendir="none required"
10020 else
10021   echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10023
10024 fi
10025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10026 if test "$ac_cv_search_opendir" = no; then
10027   for ac_lib in x; do
10028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10029     cat >conftest.$ac_ext <<_ACEOF
10030 #line $LINENO "configure"
10031 /* confdefs.h.  */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h.  */
10036
10037 /* Override any gcc2 internal prototype to avoid an error.  */
10038 #ifdef __cplusplus
10039 extern "C"
10040 #endif
10041 /* We use char because int might match the return type of a gcc2
10042    builtin and then its argument prototype would still apply.  */
10043 char opendir ();
10044 int
10045 main ()
10046 {
10047 opendir ();
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054   (eval $ac_link) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_search_opendir="-l$ac_lib"
10065 break
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070 fi
10071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10072   done
10073 fi
10074 LIBS=$ac_func_search_save_LIBS
10075 fi
10076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10078 if test "$ac_cv_search_opendir" != no; then
10079   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10080
10081 fi
10082
10083 fi
10084
10085 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10086 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10087 if test "${ac_cv_header_stat_broken+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   cat >conftest.$ac_ext <<_ACEOF
10091 #line $LINENO "configure"
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097 #include <sys/types.h>
10098 #include <sys/stat.h>
10099
10100 #if defined(S_ISBLK) && defined(S_IFDIR)
10101 # if S_ISBLK (S_IFDIR)
10102 You lose.
10103 # endif
10104 #endif
10105
10106 #if defined(S_ISBLK) && defined(S_IFCHR)
10107 # if S_ISBLK (S_IFCHR)
10108 You lose.
10109 # endif
10110 #endif
10111
10112 #if defined(S_ISLNK) && defined(S_IFREG)
10113 # if S_ISLNK (S_IFREG)
10114 You lose.
10115 # endif
10116 #endif
10117
10118 #if defined(S_ISSOCK) && defined(S_IFREG)
10119 # if S_ISSOCK (S_IFREG)
10120 You lose.
10121 # endif
10122 #endif
10123
10124 _ACEOF
10125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10126   $EGREP "You lose" >/dev/null 2>&1; then
10127   ac_cv_header_stat_broken=yes
10128 else
10129   ac_cv_header_stat_broken=no
10130 fi
10131 rm -f conftest*
10132
10133 fi
10134 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10135 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10136 if test $ac_cv_header_stat_broken = yes; then
10137
10138 cat >>confdefs.h <<\_ACEOF
10139 #define STAT_MACROS_BROKEN 1
10140 _ACEOF
10141
10142 fi
10143
10144 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10145 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10146 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156 #include <sys/types.h>
10157 #include <sys/wait.h>
10158 #ifndef WEXITSTATUS
10159 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10160 #endif
10161 #ifndef WIFEXITED
10162 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10163 #endif
10164
10165 int
10166 main ()
10167 {
10168   int s;
10169   wait (&s);
10170   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
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   ac_cv_header_sys_wait_h=yes
10188 else
10189   echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10191
10192 ac_cv_header_sys_wait_h=no
10193 fi
10194 rm -f conftest.$ac_objext conftest.$ac_ext
10195 fi
10196 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10197 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10198 if test $ac_cv_header_sys_wait_h = yes; then
10199
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_SYS_WAIT_H 1
10202 _ACEOF
10203
10204 fi
10205
10206 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10207 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10208 if test "${ac_cv_header_time+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
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 #include <sys/types.h>
10219 #include <sys/time.h>
10220 #include <time.h>
10221
10222 int
10223 main ()
10224 {
10225 if ((struct tm *) 0)
10226 return 0;
10227   ;
10228   return 0;
10229 }
10230 _ACEOF
10231 rm -f conftest.$ac_objext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233   (eval $ac_compile) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } &&
10237          { ac_try='test -s conftest.$ac_objext'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   ac_cv_header_time=yes
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248 ac_cv_header_time=no
10249 fi
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10251 fi
10252 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10253 echo "${ECHO_T}$ac_cv_header_time" >&6
10254 if test $ac_cv_header_time = yes; then
10255
10256 cat >>confdefs.h <<\_ACEOF
10257 #define TIME_WITH_SYS_TIME 1
10258 _ACEOF
10259
10260 fi
10261
10262
10263 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10264 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10265 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10266   echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268   cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10270 /* confdefs.h.  */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h.  */
10275 $ac_includes_default
10276 int
10277 main ()
10278 {
10279 static struct stat ac_aggr;
10280 if (ac_aggr.st_blksize)
10281 return 0;
10282   ;
10283   return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext
10287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10288   (eval $ac_compile) 2>&5
10289   ac_status=$?
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } &&
10292          { ac_try='test -s conftest.$ac_objext'
10293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294   (eval $ac_try) 2>&5
10295   ac_status=$?
10296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); }; }; then
10298   ac_cv_member_struct_stat_st_blksize=yes
10299 else
10300   echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303 cat >conftest.$ac_ext <<_ACEOF
10304 #line $LINENO "configure"
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310 $ac_includes_default
10311 int
10312 main ()
10313 {
10314 static struct stat ac_aggr;
10315 if (sizeof ac_aggr.st_blksize)
10316 return 0;
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext
10322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10323   (eval $ac_compile) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } &&
10327          { ac_try='test -s conftest.$ac_objext'
10328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329   (eval $ac_try) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; }; then
10333   ac_cv_member_struct_stat_st_blksize=yes
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_cv_member_struct_stat_st_blksize=no
10339 fi
10340 rm -f conftest.$ac_objext conftest.$ac_ext
10341 fi
10342 rm -f conftest.$ac_objext conftest.$ac_ext
10343 fi
10344 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10345 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10346 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10347
10348 cat >>confdefs.h <<_ACEOF
10349 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10350 _ACEOF
10351
10352
10353 cat >>confdefs.h <<\_ACEOF
10354 #define HAVE_ST_BLKSIZE 1
10355 _ACEOF
10356
10357 fi
10358
10359
10360 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10361 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10362 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10363   echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365   cat >conftest.$ac_ext <<_ACEOF
10366 #line $LINENO "configure"
10367 /* confdefs.h.  */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h.  */
10372 $ac_includes_default
10373 int
10374 main ()
10375 {
10376 static struct stat ac_aggr;
10377 if (ac_aggr.st_blocks)
10378 return 0;
10379   ;
10380   return 0;
10381 }
10382 _ACEOF
10383 rm -f conftest.$ac_objext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10385   (eval $ac_compile) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } &&
10389          { ac_try='test -s conftest.$ac_objext'
10390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391   (eval $ac_try) 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; }; then
10395   ac_cv_member_struct_stat_st_blocks=yes
10396 else
10397   echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10399
10400 cat >conftest.$ac_ext <<_ACEOF
10401 #line $LINENO "configure"
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407 $ac_includes_default
10408 int
10409 main ()
10410 {
10411 static struct stat ac_aggr;
10412 if (sizeof ac_aggr.st_blocks)
10413 return 0;
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420   (eval $ac_compile) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); } &&
10424          { ac_try='test -s conftest.$ac_objext'
10425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426   (eval $ac_try) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   ac_cv_member_struct_stat_st_blocks=yes
10431 else
10432   echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10434
10435 ac_cv_member_struct_stat_st_blocks=no
10436 fi
10437 rm -f conftest.$ac_objext conftest.$ac_ext
10438 fi
10439 rm -f conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10442 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10443 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10444
10445 cat >>confdefs.h <<_ACEOF
10446 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10447 _ACEOF
10448
10449
10450 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_ST_BLOCKS 1
10452 _ACEOF
10453
10454 else
10455   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10456 fi
10457
10458
10459 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10460 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10461 if test "${ac_cv_struct_tm+set}" = set; then
10462   echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464   cat >conftest.$ac_ext <<_ACEOF
10465 #line $LINENO "configure"
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 #include <sys/types.h>
10472 #include <time.h>
10473
10474 int
10475 main ()
10476 {
10477 struct tm *tp; tp->tm_sec;
10478   ;
10479   return 0;
10480 }
10481 _ACEOF
10482 rm -f conftest.$ac_objext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484   (eval $ac_compile) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } &&
10488          { ac_try='test -s conftest.$ac_objext'
10489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490   (eval $ac_try) 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; }; then
10494   ac_cv_struct_tm=time.h
10495 else
10496   echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10498
10499 ac_cv_struct_tm=sys/time.h
10500 fi
10501 rm -f conftest.$ac_objext conftest.$ac_ext
10502 fi
10503 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10504 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10505 if test $ac_cv_struct_tm = sys/time.h; then
10506
10507 cat >>confdefs.h <<\_ACEOF
10508 #define TM_IN_SYS_TIME 1
10509 _ACEOF
10510
10511 fi
10512
10513 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10514 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10515 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   cat >conftest.$ac_ext <<_ACEOF
10519 #line $LINENO "configure"
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525 #include <sys/types.h>
10526 #include <$ac_cv_struct_tm>
10527
10528
10529 int
10530 main ()
10531 {
10532 static struct tm ac_aggr;
10533 if (ac_aggr.tm_zone)
10534 return 0;
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10541   (eval $ac_compile) 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -s conftest.$ac_objext'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   ac_cv_member_struct_tm_tm_zone=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563 #include <sys/types.h>
10564 #include <$ac_cv_struct_tm>
10565
10566
10567 int
10568 main ()
10569 {
10570 static struct tm ac_aggr;
10571 if (sizeof ac_aggr.tm_zone)
10572 return 0;
10573   ;
10574   return 0;
10575 }
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579   (eval $ac_compile) 2>&5
10580   ac_status=$?
10581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582   (exit $ac_status); } &&
10583          { ac_try='test -s conftest.$ac_objext'
10584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585   (eval $ac_try) 2>&5
10586   ac_status=$?
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); }; }; then
10589   ac_cv_member_struct_tm_tm_zone=yes
10590 else
10591   echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10593
10594 ac_cv_member_struct_tm_tm_zone=no
10595 fi
10596 rm -f conftest.$ac_objext conftest.$ac_ext
10597 fi
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10599 fi
10600 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10601 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10602 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10603
10604 cat >>confdefs.h <<_ACEOF
10605 #define HAVE_STRUCT_TM_TM_ZONE 1
10606 _ACEOF
10607
10608
10609 fi
10610
10611 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10612
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_TM_ZONE 1
10615 _ACEOF
10616
10617 else
10618   echo "$as_me:$LINENO: checking for tzname" >&5
10619 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10620 if test "${ac_cv_var_tzname+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   cat >conftest.$ac_ext <<_ACEOF
10624 #line $LINENO "configure"
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630 #include <time.h>
10631 #ifndef tzname /* For SGI.  */
10632 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10633 #endif
10634
10635 int
10636 main ()
10637 {
10638 atoi(*tzname);
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645   (eval $ac_link) 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } &&
10649          { ac_try='test -s conftest$ac_exeext'
10650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651   (eval $ac_try) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; }; then
10655   ac_cv_var_tzname=yes
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660 ac_cv_var_tzname=no
10661 fi
10662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10663 fi
10664 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10665 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10666   if test $ac_cv_var_tzname = yes; then
10667
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_TZNAME 1
10670 _ACEOF
10671
10672   fi
10673 fi
10674
10675
10676 echo "$as_me:$LINENO: checking for utime.h" >&5
10677 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10678 if test "${ba_cv_header_utime_h+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   cat >conftest.$ac_ext <<_ACEOF
10682 #line $LINENO "configure"
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688
10689 #include <sys/types.h>
10690 #include <utime.h>
10691 int
10692 main ()
10693 {
10694 struct utimbuf foo
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10701   (eval $ac_compile) 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -s conftest.$ac_objext'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; }; then
10711   ba_cv_header_utime_h=yes
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 ba_cv_header_utime_h=no
10717 fi
10718 rm -f conftest.$ac_objext conftest.$ac_ext
10719 fi
10720 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10721 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10722 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10723 #define HAVE_UTIME_H 1
10724 _ACEOF
10725
10726
10727 echo "$as_me:$LINENO: checking for socklen_t" >&5
10728 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10729 if test "${ba_cv_header_socklen_t+set}" = set; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732   cat >conftest.$ac_ext <<_ACEOF
10733 #line $LINENO "configure"
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739
10740 #include <sys/types.h>
10741 #include <sys/socket.h>
10742 int
10743 main ()
10744 {
10745 socklen_t x
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10752   (eval $ac_compile) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } &&
10756          { ac_try='test -s conftest.$ac_objext'
10757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758   (eval $ac_try) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); }; }; then
10762   ba_cv_header_socklen_t=yes
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ba_cv_header_socklen_t=no
10768 fi
10769 rm -f conftest.$ac_objext conftest.$ac_ext
10770 fi
10771 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10772 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10773 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10774 #define HAVE_SOCKLEN_T 1
10775 _ACEOF
10776
10777
10778 echo "$as_me:$LINENO: checking for bigendian" >&5
10779 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10780 if test "${ba_cv_bigendian+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783   if test "$cross_compiling" = yes; then
10784   ba_cv_bigendian=no
10785 else
10786   cat >conftest.$ac_ext <<_ACEOF
10787 #line $LINENO "configure"
10788 /* confdefs.h.  */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h.  */
10793 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10794 _ACEOF
10795 rm -f conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797   (eval $ac_link) 2>&5
10798   ac_status=$?
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802   (eval $ac_try) 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; }; then
10806   ba_cv_bigendian=yes
10807 else
10808   echo "$as_me: program exited with status $ac_status" >&5
10809 echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812 ( exit $ac_status )
10813 ba_cv_bigendian=no
10814 fi
10815 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10816 fi
10817 fi
10818 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10819 echo "${ECHO_T}$ba_cv_bigendian" >&6
10820 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10821 #define HAVE_BIGENDIAN 1
10822 _ACEOF
10823
10824
10825
10826 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10827 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10828 if test "${ac_cv_c_const+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   cat >conftest.$ac_ext <<_ACEOF
10832 #line $LINENO "configure"
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838
10839 int
10840 main ()
10841 {
10842 /* FIXME: Include the comments suggested by Paul. */
10843 #ifndef __cplusplus
10844   /* Ultrix mips cc rejects this.  */
10845   typedef int charset[2];
10846   const charset x;
10847   /* SunOS 4.1.1 cc rejects this.  */
10848   char const *const *ccp;
10849   char **p;
10850   /* NEC SVR4.0.2 mips cc rejects this.  */
10851   struct point {int x, y;};
10852   static struct point const zero = {0,0};
10853   /* AIX XL C 1.02.0.0 rejects this.
10854      It does not let you subtract one const X* pointer from another in
10855      an arm of an if-expression whose if-part is not a constant
10856      expression */
10857   const char *g = "string";
10858   ccp = &g + (g ? g-g : 0);
10859   /* HPUX 7.0 cc rejects these. */
10860   ++ccp;
10861   p = (char**) ccp;
10862   ccp = (char const *const *) p;
10863   { /* SCO 3.2v4 cc rejects this.  */
10864     char *t;
10865     char const *s = 0 ? (char *) 0 : (char const *) 0;
10866
10867     *t++ = 0;
10868   }
10869   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10870     int x[] = {25, 17};
10871     const int *foo = &x[0];
10872     ++foo;
10873   }
10874   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10875     typedef const int *iptr;
10876     iptr p = 0;
10877     ++p;
10878   }
10879   { /* AIX XL C 1.02.0.0 rejects this saying
10880        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10881     struct s { int j; const int *ap[3]; };
10882     struct s *b; b->j = 5;
10883   }
10884   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10885     const int foo = 10;
10886   }
10887 #endif
10888
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895   (eval $ac_compile) 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); } &&
10899          { ac_try='test -s conftest.$ac_objext'
10900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901   (eval $ac_try) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905   ac_cv_c_const=yes
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910 ac_cv_c_const=no
10911 fi
10912 rm -f conftest.$ac_objext conftest.$ac_ext
10913 fi
10914 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10915 echo "${ECHO_T}$ac_cv_c_const" >&6
10916 if test $ac_cv_c_const = no; then
10917
10918 cat >>confdefs.h <<\_ACEOF
10919 #define const
10920 _ACEOF
10921
10922 fi
10923
10924
10925
10926 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10927 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10928 fstype=no
10929 # The order of these tests is important.
10930 cat >conftest.$ac_ext <<_ACEOF
10931 #line $LINENO "configure"
10932 /* confdefs.h.  */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h.  */
10937 #include <sys/statvfs.h>
10938 #include <sys/fstyp.h>
10939 _ACEOF
10940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } >/dev/null; then
10948   if test -s conftest.err; then
10949     ac_cpp_err=$ac_c_preproc_warn_flag
10950   else
10951     ac_cpp_err=
10952   fi
10953 else
10954   ac_cpp_err=yes
10955 fi
10956 if test -z "$ac_cpp_err"; then
10957   cat >>confdefs.h <<\_ACEOF
10958 #define FSTYPE_STATVFS 1
10959 _ACEOF
10960  fstype=SVR4
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965
10966 fi
10967 rm -f conftest.err conftest.$ac_ext
10968 if test $fstype = no; then
10969 cat >conftest.$ac_ext <<_ACEOF
10970 #line $LINENO "configure"
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976 #include <sys/statfs.h>
10977 #include <sys/fstyp.h>
10978 _ACEOF
10979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } >/dev/null; then
10987   if test -s conftest.err; then
10988     ac_cpp_err=$ac_c_preproc_warn_flag
10989   else
10990     ac_cpp_err=
10991   fi
10992 else
10993   ac_cpp_err=yes
10994 fi
10995 if test -z "$ac_cpp_err"; then
10996   cat >>confdefs.h <<\_ACEOF
10997 #define FSTYPE_USG_STATFS 1
10998 _ACEOF
10999  fstype=SVR3
11000 else
11001   echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004
11005 fi
11006 rm -f conftest.err conftest.$ac_ext
11007 fi
11008 if test $fstype = no; then
11009 cat >conftest.$ac_ext <<_ACEOF
11010 #line $LINENO "configure"
11011 /* confdefs.h.  */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h.  */
11016 #include <sys/statfs.h>
11017 #include <sys/vmount.h>
11018 _ACEOF
11019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11021   ac_status=$?
11022   grep -v '^ *+' conftest.er1 >conftest.err
11023   rm -f conftest.er1
11024   cat conftest.err >&5
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); } >/dev/null; then
11027   if test -s conftest.err; then
11028     ac_cpp_err=$ac_c_preproc_warn_flag
11029   else
11030     ac_cpp_err=
11031   fi
11032 else
11033   ac_cpp_err=yes
11034 fi
11035 if test -z "$ac_cpp_err"; then
11036   cat >>confdefs.h <<\_ACEOF
11037 #define FSTYPE_AIX_STATFS 1
11038 _ACEOF
11039  fstype=AIX
11040 else
11041   echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044
11045 fi
11046 rm -f conftest.err conftest.$ac_ext
11047 fi
11048 if test $fstype = no; then
11049 cat >conftest.$ac_ext <<_ACEOF
11050 #line $LINENO "configure"
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 #include <mntent.h>
11057 _ACEOF
11058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11060   ac_status=$?
11061   grep -v '^ *+' conftest.er1 >conftest.err
11062   rm -f conftest.er1
11063   cat conftest.err >&5
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); } >/dev/null; then
11066   if test -s conftest.err; then
11067     ac_cpp_err=$ac_c_preproc_warn_flag
11068   else
11069     ac_cpp_err=
11070   fi
11071 else
11072   ac_cpp_err=yes
11073 fi
11074 if test -z "$ac_cpp_err"; then
11075   cat >>confdefs.h <<\_ACEOF
11076 #define FSTYPE_MNTENT 1
11077 _ACEOF
11078  fstype=4.3BSD
11079 else
11080   echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083
11084 fi
11085 rm -f conftest.err conftest.$ac_ext
11086 fi
11087 if test $fstype = no; then
11088 cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11090 /* confdefs.h.  */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h.  */
11095 #include <sys/mount.h>
11096
11097 _ACEOF
11098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11099   $EGREP "f_type;" >/dev/null 2>&1; then
11100   cat >>confdefs.h <<\_ACEOF
11101 #define FSTYPE_STATFS 1
11102 _ACEOF
11103  fstype=4.4BSD/OSF1
11104 fi
11105 rm -f conftest*
11106
11107 fi
11108 if test $fstype = no; then
11109 cat >conftest.$ac_ext <<_ACEOF
11110 #line $LINENO "configure"
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <sys/mount.h>
11117 #include <sys/fs_types.h>
11118 _ACEOF
11119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11121   ac_status=$?
11122   grep -v '^ *+' conftest.er1 >conftest.err
11123   rm -f conftest.er1
11124   cat conftest.err >&5
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); } >/dev/null; then
11127   if test -s conftest.err; then
11128     ac_cpp_err=$ac_c_preproc_warn_flag
11129   else
11130     ac_cpp_err=
11131   fi
11132 else
11133   ac_cpp_err=yes
11134 fi
11135 if test -z "$ac_cpp_err"; then
11136   cat >>confdefs.h <<\_ACEOF
11137 #define FSTYPE_GETMNT 1
11138 _ACEOF
11139  fstype=Ultrix
11140 else
11141   echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144
11145 fi
11146 rm -f conftest.err conftest.$ac_ext
11147 fi
11148 echo "$as_me:$LINENO: result: $fstype" >&5
11149 echo "${ECHO_T}$fstype" >&6
11150
11151 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11152 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11153 if test "${ac_cv_type_signal+set}" = set; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156   cat >conftest.$ac_ext <<_ACEOF
11157 #line $LINENO "configure"
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 #include <sys/types.h>
11164 #include <signal.h>
11165 #ifdef signal
11166 # undef signal
11167 #endif
11168 #ifdef __cplusplus
11169 extern "C" void (*signal (int, void (*)(int)))(int);
11170 #else
11171 void (*signal ()) ();
11172 #endif
11173
11174 int
11175 main ()
11176 {
11177 int i;
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext
11183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11184   (eval $ac_compile) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); } &&
11188          { ac_try='test -s conftest.$ac_objext'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   ac_cv_type_signal=void
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 ac_cv_type_signal=int
11200 fi
11201 rm -f conftest.$ac_objext conftest.$ac_ext
11202 fi
11203 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11204 echo "${ECHO_T}$ac_cv_type_signal" >&6
11205
11206 cat >>confdefs.h <<_ACEOF
11207 #define RETSIGTYPE $ac_cv_type_signal
11208 _ACEOF
11209
11210
11211
11212 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11213 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11214 if test "${bash_cv_signal_vintage+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217
11218   cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11220 /* confdefs.h.  */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h.  */
11225 #include <signal.h>
11226 int
11227 main ()
11228 {
11229
11230     sigset_t ss;
11231     struct sigaction sa;
11232     sigemptyset(&ss); sigsuspend(&ss);
11233     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11234     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11235
11236   ;
11237   return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242   (eval $ac_link) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); } &&
11246          { ac_try='test -s conftest$ac_exeext'
11247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248   (eval $ac_try) 2>&5
11249   ac_status=$?
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); }; }; then
11252   bash_cv_signal_vintage=posix
11253 else
11254   echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11256
11257
11258     cat >conftest.$ac_ext <<_ACEOF
11259 #line $LINENO "configure"
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265 #include <signal.h>
11266 int
11267 main ()
11268 {
11269
11270         int mask = sigmask(SIGINT);
11271         sigsetmask(mask); sigblock(mask); sigpause(mask);
11272
11273   ;
11274   return 0;
11275 }
11276 _ACEOF
11277 rm -f conftest.$ac_objext conftest$ac_exeext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279   (eval $ac_link) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } &&
11283          { ac_try='test -s conftest$ac_exeext'
11284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285   (eval $ac_try) 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; }; then
11289   bash_cv_signal_vintage=4.2bsd
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294
11295       cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302
11303         #include <signal.h>
11304         RETSIGTYPE foo() { }
11305 int
11306 main ()
11307 {
11308
11309                 int mask = sigmask(SIGINT);
11310                 sigset(SIGINT, foo); sigrelse(SIGINT);
11311                 sighold(SIGINT); sigpause(SIGINT);
11312
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319   (eval $ac_link) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } &&
11323          { ac_try='test -s conftest$ac_exeext'
11324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325   (eval $ac_try) 2>&5
11326   ac_status=$?
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); }; }; then
11329   bash_cv_signal_vintage=svr3
11330 else
11331   echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 bash_cv_signal_vintage=v7
11335
11336 fi
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11338
11339 fi
11340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11341
11342 fi
11343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11344
11345 fi
11346
11347 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11348 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11349 if test "$bash_cv_signal_vintage" = posix; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_POSIX_SIGNALS 1
11352 _ACEOF
11353
11354 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11355 cat >>confdefs.h <<\_ACEOF
11356 #define HAVE_BSD_SIGNALS 1
11357 _ACEOF
11358
11359 elif test "$bash_cv_signal_vintage" = svr3; then
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_USG_SIGHOLD 1
11362 _ACEOF
11363
11364 fi
11365
11366 echo "$as_me:$LINENO: checking for mode_t" >&5
11367 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11368 if test "${ac_cv_type_mode_t+set}" = set; then
11369   echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371   cat >conftest.$ac_ext <<_ACEOF
11372 #line $LINENO "configure"
11373 /* confdefs.h.  */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h.  */
11378 $ac_includes_default
11379 int
11380 main ()
11381 {
11382 if ((mode_t *) 0)
11383   return 0;
11384 if (sizeof (mode_t))
11385   return 0;
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest.$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392   (eval $ac_compile) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } &&
11396          { ac_try='test -s conftest.$ac_objext'
11397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398   (eval $ac_try) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   ac_cv_type_mode_t=yes
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 ac_cv_type_mode_t=no
11408 fi
11409 rm -f conftest.$ac_objext conftest.$ac_ext
11410 fi
11411 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11412 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11413 if test $ac_cv_type_mode_t = yes; then
11414   :
11415 else
11416
11417 cat >>confdefs.h <<_ACEOF
11418 #define mode_t int
11419 _ACEOF
11420
11421 fi
11422
11423 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11424 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11425 if test "${ac_cv_type_uid_t+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   cat >conftest.$ac_ext <<_ACEOF
11429 #line $LINENO "configure"
11430 /* confdefs.h.  */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h.  */
11435 #include <sys/types.h>
11436
11437 _ACEOF
11438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11439   $EGREP "uid_t" >/dev/null 2>&1; then
11440   ac_cv_type_uid_t=yes
11441 else
11442   ac_cv_type_uid_t=no
11443 fi
11444 rm -f conftest*
11445
11446 fi
11447 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11448 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11449 if test $ac_cv_type_uid_t = no; then
11450
11451 cat >>confdefs.h <<\_ACEOF
11452 #define uid_t int
11453 _ACEOF
11454
11455
11456 cat >>confdefs.h <<\_ACEOF
11457 #define gid_t int
11458 _ACEOF
11459
11460 fi
11461
11462 echo "$as_me:$LINENO: checking for size_t" >&5
11463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11464 if test "${ac_cv_type_size_t+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   cat >conftest.$ac_ext <<_ACEOF
11468 #line $LINENO "configure"
11469 /* confdefs.h.  */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h.  */
11474 $ac_includes_default
11475 int
11476 main ()
11477 {
11478 if ((size_t *) 0)
11479   return 0;
11480 if (sizeof (size_t))
11481   return 0;
11482   ;
11483   return 0;
11484 }
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488   (eval $ac_compile) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } &&
11492          { ac_try='test -s conftest.$ac_objext'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498   ac_cv_type_size_t=yes
11499 else
11500   echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11502
11503 ac_cv_type_size_t=no
11504 fi
11505 rm -f conftest.$ac_objext conftest.$ac_ext
11506 fi
11507 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11508 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11509 if test $ac_cv_type_size_t = yes; then
11510   :
11511 else
11512
11513 cat >>confdefs.h <<_ACEOF
11514 #define size_t unsigned
11515 _ACEOF
11516
11517 fi
11518
11519 echo "$as_me:$LINENO: checking for pid_t" >&5
11520 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11521 if test "${ac_cv_type_pid_t+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   cat >conftest.$ac_ext <<_ACEOF
11525 #line $LINENO "configure"
11526 /* confdefs.h.  */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h.  */
11531 $ac_includes_default
11532 int
11533 main ()
11534 {
11535 if ((pid_t *) 0)
11536   return 0;
11537 if (sizeof (pid_t))
11538   return 0;
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11545   (eval $ac_compile) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); } &&
11549          { ac_try='test -s conftest.$ac_objext'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_cv_type_pid_t=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_cv_type_pid_t=no
11561 fi
11562 rm -f conftest.$ac_objext conftest.$ac_ext
11563 fi
11564 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11565 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11566 if test $ac_cv_type_pid_t = yes; then
11567   :
11568 else
11569
11570 cat >>confdefs.h <<_ACEOF
11571 #define pid_t int
11572 _ACEOF
11573
11574 fi
11575
11576 echo "$as_me:$LINENO: checking for off_t" >&5
11577 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11578 if test "${ac_cv_type_off_t+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   cat >conftest.$ac_ext <<_ACEOF
11582 #line $LINENO "configure"
11583 /* confdefs.h.  */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h.  */
11588 $ac_includes_default
11589 int
11590 main ()
11591 {
11592 if ((off_t *) 0)
11593   return 0;
11594 if (sizeof (off_t))
11595   return 0;
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602   (eval $ac_compile) 2>&5
11603   ac_status=$?
11604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } &&
11606          { ac_try='test -s conftest.$ac_objext'
11607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608   (eval $ac_try) 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); }; }; then
11612   ac_cv_type_off_t=yes
11613 else
11614   echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617 ac_cv_type_off_t=no
11618 fi
11619 rm -f conftest.$ac_objext conftest.$ac_ext
11620 fi
11621 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11622 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11623 if test $ac_cv_type_off_t = yes; then
11624   :
11625 else
11626
11627 cat >>confdefs.h <<_ACEOF
11628 #define off_t long
11629 _ACEOF
11630
11631 fi
11632
11633 echo "$as_me:$LINENO: checking for ino_t" >&5
11634 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11635 if test "${ac_cv_type_ino_t+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645 $ac_includes_default
11646 int
11647 main ()
11648 {
11649 if ((ino_t *) 0)
11650   return 0;
11651 if (sizeof (ino_t))
11652   return 0;
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext
11658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11659   (eval $ac_compile) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } &&
11663          { ac_try='test -s conftest.$ac_objext'
11664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665   (eval $ac_try) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); }; }; then
11669   ac_cv_type_ino_t=yes
11670 else
11671   echo "$as_me: failed program was:" >&5
11672 sed 's/^/| /' conftest.$ac_ext >&5
11673
11674 ac_cv_type_ino_t=no
11675 fi
11676 rm -f conftest.$ac_objext conftest.$ac_ext
11677 fi
11678 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11679 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11680 if test $ac_cv_type_ino_t = yes; then
11681   :
11682 else
11683
11684 cat >>confdefs.h <<_ACEOF
11685 #define ino_t unsigned long
11686 _ACEOF
11687
11688 fi
11689
11690 echo "$as_me:$LINENO: checking for dev_t" >&5
11691 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11692 if test "${ac_cv_type_dev_t+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   cat >conftest.$ac_ext <<_ACEOF
11696 #line $LINENO "configure"
11697 /* confdefs.h.  */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h.  */
11702 $ac_includes_default
11703 int
11704 main ()
11705 {
11706 if ((dev_t *) 0)
11707   return 0;
11708 if (sizeof (dev_t))
11709   return 0;
11710   ;
11711   return 0;
11712 }
11713 _ACEOF
11714 rm -f conftest.$ac_objext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11716   (eval $ac_compile) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } &&
11720          { ac_try='test -s conftest.$ac_objext'
11721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722   (eval $ac_try) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; }; then
11726   ac_cv_type_dev_t=yes
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 ac_cv_type_dev_t=no
11732 fi
11733 rm -f conftest.$ac_objext conftest.$ac_ext
11734 fi
11735 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11736 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11737 if test $ac_cv_type_dev_t = yes; then
11738   :
11739 else
11740
11741 cat >>confdefs.h <<_ACEOF
11742 #define dev_t unsigned long
11743 _ACEOF
11744
11745 fi
11746
11747 echo "$as_me:$LINENO: checking for daddr_t" >&5
11748 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11749 if test "${ac_cv_type_daddr_t+set}" = set; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 $ac_includes_default
11760 int
11761 main ()
11762 {
11763 if ((daddr_t *) 0)
11764   return 0;
11765 if (sizeof (daddr_t))
11766   return 0;
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773   (eval $ac_compile) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } &&
11777          { ac_try='test -s conftest.$ac_objext'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; }; then
11783   ac_cv_type_daddr_t=yes
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788 ac_cv_type_daddr_t=no
11789 fi
11790 rm -f conftest.$ac_objext conftest.$ac_ext
11791 fi
11792 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11793 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11794 if test $ac_cv_type_daddr_t = yes; then
11795   :
11796 else
11797
11798 cat >>confdefs.h <<_ACEOF
11799 #define daddr_t long
11800 _ACEOF
11801
11802 fi
11803
11804 echo "$as_me:$LINENO: checking for major_t" >&5
11805 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11806 if test "${ac_cv_type_major_t+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   cat >conftest.$ac_ext <<_ACEOF
11810 #line $LINENO "configure"
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 $ac_includes_default
11817 int
11818 main ()
11819 {
11820 if ((major_t *) 0)
11821   return 0;
11822 if (sizeof (major_t))
11823   return 0;
11824   ;
11825   return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830   (eval $ac_compile) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); } &&
11834          { ac_try='test -s conftest.$ac_objext'
11835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836   (eval $ac_try) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840   ac_cv_type_major_t=yes
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 ac_cv_type_major_t=no
11846 fi
11847 rm -f conftest.$ac_objext conftest.$ac_ext
11848 fi
11849 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11850 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11851 if test $ac_cv_type_major_t = yes; then
11852   :
11853 else
11854
11855 cat >>confdefs.h <<_ACEOF
11856 #define major_t int
11857 _ACEOF
11858
11859 fi
11860
11861 echo "$as_me:$LINENO: checking for minor_t" >&5
11862 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11863 if test "${ac_cv_type_minor_t+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 /* confdefs.h.  */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h.  */
11873 $ac_includes_default
11874 int
11875 main ()
11876 {
11877 if ((minor_t *) 0)
11878   return 0;
11879 if (sizeof (minor_t))
11880   return 0;
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887   (eval $ac_compile) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } &&
11891          { ac_try='test -s conftest.$ac_objext'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; }; then
11897   ac_cv_type_minor_t=yes
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_type_minor_t=no
11903 fi
11904 rm -f conftest.$ac_objext conftest.$ac_ext
11905 fi
11906 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11907 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11908 if test $ac_cv_type_minor_t = yes; then
11909   :
11910 else
11911
11912 cat >>confdefs.h <<_ACEOF
11913 #define minor_t int
11914 _ACEOF
11915
11916 fi
11917
11918 echo "$as_me:$LINENO: checking for ssize_t" >&5
11919 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11920 if test "${ac_cv_type_ssize_t+set}" = set; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
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 if ((ssize_t *) 0)
11935   return 0;
11936 if (sizeof (ssize_t))
11937   return 0;
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944   (eval $ac_compile) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); } &&
11948          { ac_try='test -s conftest.$ac_objext'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   ac_cv_type_ssize_t=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 ac_cv_type_ssize_t=no
11960 fi
11961 rm -f conftest.$ac_objext conftest.$ac_ext
11962 fi
11963 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11964 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11965 if test $ac_cv_type_ssize_t = yes; then
11966   :
11967 else
11968
11969 cat >>confdefs.h <<_ACEOF
11970 #define ssize_t int
11971 _ACEOF
11972
11973 fi
11974
11975 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11976 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11977 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   cat >conftest.$ac_ext <<_ACEOF
11981 #line $LINENO "configure"
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987 $ac_includes_default
11988 int
11989 main ()
11990 {
11991 static struct stat ac_aggr;
11992 if (ac_aggr.st_blocks)
11993 return 0;
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 rm -f conftest.$ac_objext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000   (eval $ac_compile) 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } &&
12004          { ac_try='test -s conftest.$ac_objext'
12005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006   (eval $ac_try) 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; }; then
12010   ac_cv_member_struct_stat_st_blocks=yes
12011 else
12012   echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022 $ac_includes_default
12023 int
12024 main ()
12025 {
12026 static struct stat ac_aggr;
12027 if (sizeof ac_aggr.st_blocks)
12028 return 0;
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 rm -f conftest.$ac_objext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035   (eval $ac_compile) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -s conftest.$ac_objext'
12040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041   (eval $ac_try) 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; }; then
12045   ac_cv_member_struct_stat_st_blocks=yes
12046 else
12047   echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_cv_member_struct_stat_st_blocks=no
12051 fi
12052 rm -f conftest.$ac_objext conftest.$ac_ext
12053 fi
12054 rm -f conftest.$ac_objext conftest.$ac_ext
12055 fi
12056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12057 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12058 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12059
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12062 _ACEOF
12063
12064
12065 cat >>confdefs.h <<\_ACEOF
12066 #define HAVE_ST_BLOCKS 1
12067 _ACEOF
12068
12069 else
12070   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12071 fi
12072
12073
12074
12075 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12076 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12077 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080   cat >conftest.$ac_ext <<_ACEOF
12081 #line $LINENO "configure"
12082 /* confdefs.h.  */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h.  */
12087 $ac_includes_default
12088 int
12089 main ()
12090 {
12091 static struct stat ac_aggr;
12092 if (ac_aggr.st_rdev)
12093 return 0;
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12100   (eval $ac_compile) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } &&
12104          { ac_try='test -s conftest.$ac_objext'
12105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106   (eval $ac_try) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); }; }; then
12110   ac_cv_member_struct_stat_st_rdev=yes
12111 else
12112   echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115 cat >conftest.$ac_ext <<_ACEOF
12116 #line $LINENO "configure"
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122 $ac_includes_default
12123 int
12124 main ()
12125 {
12126 static struct stat ac_aggr;
12127 if (sizeof ac_aggr.st_rdev)
12128 return 0;
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 rm -f conftest.$ac_objext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135   (eval $ac_compile) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } &&
12139          { ac_try='test -s conftest.$ac_objext'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_cv_member_struct_stat_st_rdev=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 ac_cv_member_struct_stat_st_rdev=no
12151 fi
12152 rm -f conftest.$ac_objext conftest.$ac_ext
12153 fi
12154 rm -f conftest.$ac_objext conftest.$ac_ext
12155 fi
12156 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12157 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12158 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12159
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_STRUCT_STAT_ST_RDEV 1
12162 _ACEOF
12163
12164
12165 cat >>confdefs.h <<\_ACEOF
12166 #define HAVE_ST_RDEV 1
12167 _ACEOF
12168
12169 fi
12170
12171
12172 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12173 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12174 if test "${ac_cv_struct_tm+set}" = set; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177   cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184 #include <sys/types.h>
12185 #include <time.h>
12186
12187 int
12188 main ()
12189 {
12190 struct tm *tp; tp->tm_sec;
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197   (eval $ac_compile) 2>&5
12198   ac_status=$?
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } &&
12201          { ac_try='test -s conftest.$ac_objext'
12202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203   (eval $ac_try) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); }; }; then
12207   ac_cv_struct_tm=time.h
12208 else
12209   echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 ac_cv_struct_tm=sys/time.h
12213 fi
12214 rm -f conftest.$ac_objext conftest.$ac_ext
12215 fi
12216 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12217 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12218 if test $ac_cv_struct_tm = sys/time.h; then
12219
12220 cat >>confdefs.h <<\_ACEOF
12221 #define TM_IN_SYS_TIME 1
12222 _ACEOF
12223
12224 fi
12225
12226 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12227 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12228 if test "${ac_cv_c_const+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   cat >conftest.$ac_ext <<_ACEOF
12232 #line $LINENO "configure"
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238
12239 int
12240 main ()
12241 {
12242 /* FIXME: Include the comments suggested by Paul. */
12243 #ifndef __cplusplus
12244   /* Ultrix mips cc rejects this.  */
12245   typedef int charset[2];
12246   const charset x;
12247   /* SunOS 4.1.1 cc rejects this.  */
12248   char const *const *ccp;
12249   char **p;
12250   /* NEC SVR4.0.2 mips cc rejects this.  */
12251   struct point {int x, y;};
12252   static struct point const zero = {0,0};
12253   /* AIX XL C 1.02.0.0 rejects this.
12254      It does not let you subtract one const X* pointer from another in
12255      an arm of an if-expression whose if-part is not a constant
12256      expression */
12257   const char *g = "string";
12258   ccp = &g + (g ? g-g : 0);
12259   /* HPUX 7.0 cc rejects these. */
12260   ++ccp;
12261   p = (char**) ccp;
12262   ccp = (char const *const *) p;
12263   { /* SCO 3.2v4 cc rejects this.  */
12264     char *t;
12265     char const *s = 0 ? (char *) 0 : (char const *) 0;
12266
12267     *t++ = 0;
12268   }
12269   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12270     int x[] = {25, 17};
12271     const int *foo = &x[0];
12272     ++foo;
12273   }
12274   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12275     typedef const int *iptr;
12276     iptr p = 0;
12277     ++p;
12278   }
12279   { /* AIX XL C 1.02.0.0 rejects this saying
12280        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12281     struct s { int j; const int *ap[3]; };
12282     struct s *b; b->j = 5;
12283   }
12284   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12285     const int foo = 10;
12286   }
12287 #endif
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12295   (eval $ac_compile) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } &&
12299          { ac_try='test -s conftest.$ac_objext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   ac_cv_c_const=yes
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ac_cv_c_const=no
12311 fi
12312 rm -f conftest.$ac_objext conftest.$ac_ext
12313 fi
12314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12315 echo "${ECHO_T}$ac_cv_c_const" >&6
12316 if test $ac_cv_c_const = no; then
12317
12318 cat >>confdefs.h <<\_ACEOF
12319 #define const
12320 _ACEOF
12321
12322 fi
12323
12324
12325
12326 echo "$as_me:$LINENO: checking for char" >&5
12327 echo $ECHO_N "checking for char... $ECHO_C" >&6
12328 if test "${ac_cv_type_char+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   cat >conftest.$ac_ext <<_ACEOF
12332 #line $LINENO "configure"
12333 /* confdefs.h.  */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h.  */
12338 $ac_includes_default
12339 int
12340 main ()
12341 {
12342 if ((char *) 0)
12343   return 0;
12344 if (sizeof (char))
12345   return 0;
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352   (eval $ac_compile) 2>&5
12353   ac_status=$?
12354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355   (exit $ac_status); } &&
12356          { ac_try='test -s conftest.$ac_objext'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; }; then
12362   ac_cv_type_char=yes
12363 else
12364   echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 ac_cv_type_char=no
12368 fi
12369 rm -f conftest.$ac_objext conftest.$ac_ext
12370 fi
12371 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12372 echo "${ECHO_T}$ac_cv_type_char" >&6
12373
12374 echo "$as_me:$LINENO: checking size of char" >&5
12375 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12376 if test "${ac_cv_sizeof_char+set}" = set; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   if test "$ac_cv_type_char" = yes; then
12380   # The cast to unsigned long works around a bug in the HP C Compiler
12381   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12382   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12383   # This bug is HP SR number 8606223364.
12384   if test "$cross_compiling" = yes; then
12385   # Depending upon the size, compute the lo and hi bounds.
12386 cat >conftest.$ac_ext <<_ACEOF
12387 #line $LINENO "configure"
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393 $ac_includes_default
12394 int
12395 main ()
12396 {
12397 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12398 test_array [0] = 0
12399
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406   (eval $ac_compile) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); } &&
12410          { ac_try='test -s conftest.$ac_objext'
12411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412   (eval $ac_try) 2>&5
12413   ac_status=$?
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); }; }; then
12416   ac_lo=0 ac_mid=0
12417   while :; do
12418     cat >conftest.$ac_ext <<_ACEOF
12419 #line $LINENO "configure"
12420 /* confdefs.h.  */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h.  */
12425 $ac_includes_default
12426 int
12427 main ()
12428 {
12429 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12430 test_array [0] = 0
12431
12432   ;
12433   return 0;
12434 }
12435 _ACEOF
12436 rm -f conftest.$ac_objext
12437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12438   (eval $ac_compile) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); } &&
12442          { ac_try='test -s conftest.$ac_objext'
12443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444   (eval $ac_try) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; }; then
12448   ac_hi=$ac_mid; break
12449 else
12450   echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 ac_lo=`expr $ac_mid + 1`
12454                     if test $ac_lo -le $ac_mid; then
12455                       ac_lo= ac_hi=
12456                       break
12457                     fi
12458                     ac_mid=`expr 2 '*' $ac_mid + 1`
12459 fi
12460 rm -f conftest.$ac_objext conftest.$ac_ext
12461   done
12462 else
12463   echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473 $ac_includes_default
12474 int
12475 main ()
12476 {
12477 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12478 test_array [0] = 0
12479
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext
12485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12486   (eval $ac_compile) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -s conftest.$ac_objext'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; }; then
12496   ac_hi=-1 ac_mid=-1
12497   while :; do
12498     cat >conftest.$ac_ext <<_ACEOF
12499 #line $LINENO "configure"
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 $ac_includes_default
12506 int
12507 main ()
12508 {
12509 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12510 test_array [0] = 0
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518   (eval $ac_compile) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } &&
12522          { ac_try='test -s conftest.$ac_objext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   ac_lo=$ac_mid; break
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 ac_hi=`expr '(' $ac_mid ')' - 1`
12534                        if test $ac_mid -le $ac_hi; then
12535                          ac_lo= ac_hi=
12536                          break
12537                        fi
12538                        ac_mid=`expr 2 '*' $ac_mid`
12539 fi
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541   done
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 ac_lo= ac_hi=
12547 fi
12548 rm -f conftest.$ac_objext conftest.$ac_ext
12549 fi
12550 rm -f conftest.$ac_objext conftest.$ac_ext
12551 # Binary search between lo and hi bounds.
12552 while test "x$ac_lo" != "x$ac_hi"; do
12553   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12554   cat >conftest.$ac_ext <<_ACEOF
12555 #line $LINENO "configure"
12556 /* confdefs.h.  */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h.  */
12561 $ac_includes_default
12562 int
12563 main ()
12564 {
12565 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12566 test_array [0] = 0
12567
12568   ;
12569   return 0;
12570 }
12571 _ACEOF
12572 rm -f conftest.$ac_objext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574   (eval $ac_compile) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -s conftest.$ac_objext'
12579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580   (eval $ac_try) 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   ac_hi=$ac_mid
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 ac_lo=`expr '(' $ac_mid ')' + 1`
12590 fi
12591 rm -f conftest.$ac_objext conftest.$ac_ext
12592 done
12593 case $ac_lo in
12594 ?*) ac_cv_sizeof_char=$ac_lo;;
12595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12596 See \`config.log' for more details." >&5
12597 echo "$as_me: error: cannot compute sizeof (char), 77
12598 See \`config.log' for more details." >&2;}
12599    { (exit 1); exit 1; }; } ;;
12600 esac
12601 else
12602   if test "$cross_compiling" = yes; then
12603   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12604 See \`config.log' for more details." >&5
12605 echo "$as_me: error: cannot run test program while cross compiling
12606 See \`config.log' for more details." >&2;}
12607    { (exit 1); exit 1; }; }
12608 else
12609   cat >conftest.$ac_ext <<_ACEOF
12610 #line $LINENO "configure"
12611 /* confdefs.h.  */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h.  */
12616 $ac_includes_default
12617 long longval () { return (long) (sizeof (char)); }
12618 unsigned long ulongval () { return (long) (sizeof (char)); }
12619 #include <stdio.h>
12620 #include <stdlib.h>
12621 int
12622 main ()
12623 {
12624
12625   FILE *f = fopen ("conftest.val", "w");
12626   if (! f)
12627     exit (1);
12628   if (((long) (sizeof (char))) < 0)
12629     {
12630       long i = longval ();
12631       if (i != ((long) (sizeof (char))))
12632         exit (1);
12633       fprintf (f, "%ld\n", i);
12634     }
12635   else
12636     {
12637       unsigned long i = ulongval ();
12638       if (i != ((long) (sizeof (char))))
12639         exit (1);
12640       fprintf (f, "%lu\n", i);
12641     }
12642   exit (ferror (f) || fclose (f) != 0);
12643
12644   ;
12645   return 0;
12646 }
12647 _ACEOF
12648 rm -f conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650   (eval $ac_link) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655   (eval $ac_try) 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   ac_cv_sizeof_char=`cat conftest.val`
12660 else
12661   echo "$as_me: program exited with status $ac_status" >&5
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 ( exit $ac_status )
12666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12667 See \`config.log' for more details." >&5
12668 echo "$as_me: error: cannot compute sizeof (char), 77
12669 See \`config.log' for more details." >&2;}
12670    { (exit 1); exit 1; }; }
12671 fi
12672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12673 fi
12674 fi
12675 rm -f conftest.val
12676 else
12677   ac_cv_sizeof_char=0
12678 fi
12679 fi
12680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12681 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12682 cat >>confdefs.h <<_ACEOF
12683 #define SIZEOF_CHAR $ac_cv_sizeof_char
12684 _ACEOF
12685
12686
12687 echo "$as_me:$LINENO: checking for short int" >&5
12688 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12689 if test "${ac_cv_type_short_int+set}" = set; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699 $ac_includes_default
12700 int
12701 main ()
12702 {
12703 if ((short int *) 0)
12704   return 0;
12705 if (sizeof (short int))
12706   return 0;
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713   (eval $ac_compile) 2>&5
12714   ac_status=$?
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } &&
12717          { ac_try='test -s conftest.$ac_objext'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; }; then
12723   ac_cv_type_short_int=yes
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_cv_type_short_int=no
12729 fi
12730 rm -f conftest.$ac_objext conftest.$ac_ext
12731 fi
12732 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12733 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12734
12735 echo "$as_me:$LINENO: checking size of short int" >&5
12736 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12737 if test "${ac_cv_sizeof_short_int+set}" = set; then
12738   echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740   if test "$ac_cv_type_short_int" = yes; then
12741   # The cast to unsigned long works around a bug in the HP C Compiler
12742   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12743   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12744   # This bug is HP SR number 8606223364.
12745   if test "$cross_compiling" = yes; then
12746   # Depending upon the size, compute the lo and hi bounds.
12747 cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 $ac_includes_default
12755 int
12756 main ()
12757 {
12758 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12759 test_array [0] = 0
12760
12761   ;
12762   return 0;
12763 }
12764 _ACEOF
12765 rm -f conftest.$ac_objext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12767   (eval $ac_compile) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } &&
12771          { ac_try='test -s conftest.$ac_objext'
12772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773   (eval $ac_try) 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; }; then
12777   ac_lo=0 ac_mid=0
12778   while :; do
12779     cat >conftest.$ac_ext <<_ACEOF
12780 #line $LINENO "configure"
12781 /* confdefs.h.  */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h.  */
12786 $ac_includes_default
12787 int
12788 main ()
12789 {
12790 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12791 test_array [0] = 0
12792
12793   ;
12794   return 0;
12795 }
12796 _ACEOF
12797 rm -f conftest.$ac_objext
12798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12799   (eval $ac_compile) 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); } &&
12803          { ac_try='test -s conftest.$ac_objext'
12804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805   (eval $ac_try) 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; }; then
12809   ac_hi=$ac_mid; break
12810 else
12811   echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ac_lo=`expr $ac_mid + 1`
12815                     if test $ac_lo -le $ac_mid; then
12816                       ac_lo= ac_hi=
12817                       break
12818                     fi
12819                     ac_mid=`expr 2 '*' $ac_mid + 1`
12820 fi
12821 rm -f conftest.$ac_objext conftest.$ac_ext
12822   done
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827 cat >conftest.$ac_ext <<_ACEOF
12828 #line $LINENO "configure"
12829 /* confdefs.h.  */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h.  */
12834 $ac_includes_default
12835 int
12836 main ()
12837 {
12838 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12839 test_array [0] = 0
12840
12841   ;
12842   return 0;
12843 }
12844 _ACEOF
12845 rm -f conftest.$ac_objext
12846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847   (eval $ac_compile) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } &&
12851          { ac_try='test -s conftest.$ac_objext'
12852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853   (eval $ac_try) 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; }; then
12857   ac_hi=-1 ac_mid=-1
12858   while :; do
12859     cat >conftest.$ac_ext <<_ACEOF
12860 #line $LINENO "configure"
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866 $ac_includes_default
12867 int
12868 main ()
12869 {
12870 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12871 test_array [0] = 0
12872
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 rm -f conftest.$ac_objext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879   (eval $ac_compile) 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } &&
12883          { ac_try='test -s conftest.$ac_objext'
12884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885   (eval $ac_try) 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); }; }; then
12889   ac_lo=$ac_mid; break
12890 else
12891   echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12893
12894 ac_hi=`expr '(' $ac_mid ')' - 1`
12895                        if test $ac_mid -le $ac_hi; then
12896                          ac_lo= ac_hi=
12897                          break
12898                        fi
12899                        ac_mid=`expr 2 '*' $ac_mid`
12900 fi
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12902   done
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907 ac_lo= ac_hi=
12908 fi
12909 rm -f conftest.$ac_objext conftest.$ac_ext
12910 fi
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12912 # Binary search between lo and hi bounds.
12913 while test "x$ac_lo" != "x$ac_hi"; do
12914   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12915   cat >conftest.$ac_ext <<_ACEOF
12916 #line $LINENO "configure"
12917 /* confdefs.h.  */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h.  */
12922 $ac_includes_default
12923 int
12924 main ()
12925 {
12926 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12927 test_array [0] = 0
12928
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest.$ac_objext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12935   (eval $ac_compile) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -s conftest.$ac_objext'
12940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941   (eval $ac_try) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; }; then
12945   ac_hi=$ac_mid
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950 ac_lo=`expr '(' $ac_mid ')' + 1`
12951 fi
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12953 done
12954 case $ac_lo in
12955 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12956 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12957 See \`config.log' for more details." >&5
12958 echo "$as_me: error: cannot compute sizeof (short int), 77
12959 See \`config.log' for more details." >&2;}
12960    { (exit 1); exit 1; }; } ;;
12961 esac
12962 else
12963   if test "$cross_compiling" = yes; then
12964   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12965 See \`config.log' for more details." >&5
12966 echo "$as_me: error: cannot run test program while cross compiling
12967 See \`config.log' for more details." >&2;}
12968    { (exit 1); exit 1; }; }
12969 else
12970   cat >conftest.$ac_ext <<_ACEOF
12971 #line $LINENO "configure"
12972 /* confdefs.h.  */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h.  */
12977 $ac_includes_default
12978 long longval () { return (long) (sizeof (short int)); }
12979 unsigned long ulongval () { return (long) (sizeof (short int)); }
12980 #include <stdio.h>
12981 #include <stdlib.h>
12982 int
12983 main ()
12984 {
12985
12986   FILE *f = fopen ("conftest.val", "w");
12987   if (! f)
12988     exit (1);
12989   if (((long) (sizeof (short int))) < 0)
12990     {
12991       long i = longval ();
12992       if (i != ((long) (sizeof (short int))))
12993         exit (1);
12994       fprintf (f, "%ld\n", i);
12995     }
12996   else
12997     {
12998       unsigned long i = ulongval ();
12999       if (i != ((long) (sizeof (short int))))
13000         exit (1);
13001       fprintf (f, "%lu\n", i);
13002     }
13003   exit (ferror (f) || fclose (f) != 0);
13004
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 rm -f conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011   (eval $ac_link) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016   (eval $ac_try) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; }; then
13020   ac_cv_sizeof_short_int=`cat conftest.val`
13021 else
13022   echo "$as_me: program exited with status $ac_status" >&5
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 ( exit $ac_status )
13027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13028 See \`config.log' for more details." >&5
13029 echo "$as_me: error: cannot compute sizeof (short int), 77
13030 See \`config.log' for more details." >&2;}
13031    { (exit 1); exit 1; }; }
13032 fi
13033 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13034 fi
13035 fi
13036 rm -f conftest.val
13037 else
13038   ac_cv_sizeof_short_int=0
13039 fi
13040 fi
13041 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13042 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13043 cat >>confdefs.h <<_ACEOF
13044 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13045 _ACEOF
13046
13047
13048 echo "$as_me:$LINENO: checking for int" >&5
13049 echo $ECHO_N "checking for int... $ECHO_C" >&6
13050 if test "${ac_cv_type_int+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053   cat >conftest.$ac_ext <<_ACEOF
13054 #line $LINENO "configure"
13055 /* confdefs.h.  */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h.  */
13060 $ac_includes_default
13061 int
13062 main ()
13063 {
13064 if ((int *) 0)
13065   return 0;
13066 if (sizeof (int))
13067   return 0;
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074   (eval $ac_compile) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); } &&
13078          { ac_try='test -s conftest.$ac_objext'
13079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080   (eval $ac_try) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); }; }; then
13084   ac_cv_type_int=yes
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ac_cv_type_int=no
13090 fi
13091 rm -f conftest.$ac_objext conftest.$ac_ext
13092 fi
13093 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13094 echo "${ECHO_T}$ac_cv_type_int" >&6
13095
13096 echo "$as_me:$LINENO: checking size of int" >&5
13097 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13098 if test "${ac_cv_sizeof_int+set}" = set; then
13099   echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101   if test "$ac_cv_type_int" = yes; then
13102   # The cast to unsigned long works around a bug in the HP C Compiler
13103   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13104   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13105   # This bug is HP SR number 8606223364.
13106   if test "$cross_compiling" = yes; then
13107   # Depending upon the size, compute the lo and hi bounds.
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #line $LINENO "configure"
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115 $ac_includes_default
13116 int
13117 main ()
13118 {
13119 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13120 test_array [0] = 0
13121
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 rm -f conftest.$ac_objext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13128   (eval $ac_compile) 2>&5
13129   ac_status=$?
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } &&
13132          { ac_try='test -s conftest.$ac_objext'
13133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134   (eval $ac_try) 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }; }; then
13138   ac_lo=0 ac_mid=0
13139   while :; do
13140     cat >conftest.$ac_ext <<_ACEOF
13141 #line $LINENO "configure"
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147 $ac_includes_default
13148 int
13149 main ()
13150 {
13151 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13152 test_array [0] = 0
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160   (eval $ac_compile) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -s conftest.$ac_objext'
13165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166   (eval $ac_try) 2>&5
13167   ac_status=$?
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); }; }; then
13170   ac_hi=$ac_mid; break
13171 else
13172   echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_lo=`expr $ac_mid + 1`
13176                     if test $ac_lo -le $ac_mid; then
13177                       ac_lo= ac_hi=
13178                       break
13179                     fi
13180                     ac_mid=`expr 2 '*' $ac_mid + 1`
13181 fi
13182 rm -f conftest.$ac_objext conftest.$ac_ext
13183   done
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 cat >conftest.$ac_ext <<_ACEOF
13189 #line $LINENO "configure"
13190 /* confdefs.h.  */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h.  */
13195 $ac_includes_default
13196 int
13197 main ()
13198 {
13199 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13200 test_array [0] = 0
13201
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest.$ac_objext
13207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13208   (eval $ac_compile) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } &&
13212          { ac_try='test -s conftest.$ac_objext'
13213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214   (eval $ac_try) 2>&5
13215   ac_status=$?
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); }; }; then
13218   ac_hi=-1 ac_mid=-1
13219   while :; do
13220     cat >conftest.$ac_ext <<_ACEOF
13221 #line $LINENO "configure"
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 $ac_includes_default
13228 int
13229 main ()
13230 {
13231 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13232 test_array [0] = 0
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240   (eval $ac_compile) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); } &&
13244          { ac_try='test -s conftest.$ac_objext'
13245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246   (eval $ac_try) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; }; then
13250   ac_lo=$ac_mid; break
13251 else
13252   echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255 ac_hi=`expr '(' $ac_mid ')' - 1`
13256                        if test $ac_mid -le $ac_hi; then
13257                          ac_lo= ac_hi=
13258                          break
13259                        fi
13260                        ac_mid=`expr 2 '*' $ac_mid`
13261 fi
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13263   done
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 ac_lo= ac_hi=
13269 fi
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13271 fi
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13273 # Binary search between lo and hi bounds.
13274 while test "x$ac_lo" != "x$ac_hi"; do
13275   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13276   cat >conftest.$ac_ext <<_ACEOF
13277 #line $LINENO "configure"
13278 /* confdefs.h.  */
13279 _ACEOF
13280 cat confdefs.h >>conftest.$ac_ext
13281 cat >>conftest.$ac_ext <<_ACEOF
13282 /* end confdefs.h.  */
13283 $ac_includes_default
13284 int
13285 main ()
13286 {
13287 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13288 test_array [0] = 0
13289
13290   ;
13291   return 0;
13292 }
13293 _ACEOF
13294 rm -f conftest.$ac_objext
13295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13296   (eval $ac_compile) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } &&
13300          { ac_try='test -s conftest.$ac_objext'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; }; then
13306   ac_hi=$ac_mid
13307 else
13308   echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311 ac_lo=`expr '(' $ac_mid ')' + 1`
13312 fi
13313 rm -f conftest.$ac_objext conftest.$ac_ext
13314 done
13315 case $ac_lo in
13316 ?*) ac_cv_sizeof_int=$ac_lo;;
13317 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13318 See \`config.log' for more details." >&5
13319 echo "$as_me: error: cannot compute sizeof (int), 77
13320 See \`config.log' for more details." >&2;}
13321    { (exit 1); exit 1; }; } ;;
13322 esac
13323 else
13324   if test "$cross_compiling" = yes; then
13325   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13326 See \`config.log' for more details." >&5
13327 echo "$as_me: error: cannot run test program while cross compiling
13328 See \`config.log' for more details." >&2;}
13329    { (exit 1); exit 1; }; }
13330 else
13331   cat >conftest.$ac_ext <<_ACEOF
13332 #line $LINENO "configure"
13333 /* confdefs.h.  */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h.  */
13338 $ac_includes_default
13339 long longval () { return (long) (sizeof (int)); }
13340 unsigned long ulongval () { return (long) (sizeof (int)); }
13341 #include <stdio.h>
13342 #include <stdlib.h>
13343 int
13344 main ()
13345 {
13346
13347   FILE *f = fopen ("conftest.val", "w");
13348   if (! f)
13349     exit (1);
13350   if (((long) (sizeof (int))) < 0)
13351     {
13352       long i = longval ();
13353       if (i != ((long) (sizeof (int))))
13354         exit (1);
13355       fprintf (f, "%ld\n", i);
13356     }
13357   else
13358     {
13359       unsigned long i = ulongval ();
13360       if (i != ((long) (sizeof (int))))
13361         exit (1);
13362       fprintf (f, "%lu\n", i);
13363     }
13364   exit (ferror (f) || fclose (f) != 0);
13365
13366   ;
13367   return 0;
13368 }
13369 _ACEOF
13370 rm -f conftest$ac_exeext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13372   (eval $ac_link) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   ac_cv_sizeof_int=`cat conftest.val`
13382 else
13383   echo "$as_me: program exited with status $ac_status" >&5
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 ( exit $ac_status )
13388 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13389 See \`config.log' for more details." >&5
13390 echo "$as_me: error: cannot compute sizeof (int), 77
13391 See \`config.log' for more details." >&2;}
13392    { (exit 1); exit 1; }; }
13393 fi
13394 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13395 fi
13396 fi
13397 rm -f conftest.val
13398 else
13399   ac_cv_sizeof_int=0
13400 fi
13401 fi
13402 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13403 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13404 cat >>confdefs.h <<_ACEOF
13405 #define SIZEOF_INT $ac_cv_sizeof_int
13406 _ACEOF
13407
13408
13409 echo "$as_me:$LINENO: checking for long int" >&5
13410 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13411 if test "${ac_cv_type_long_int+set}" = set; then
13412   echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414   cat >conftest.$ac_ext <<_ACEOF
13415 #line $LINENO "configure"
13416 /* confdefs.h.  */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h.  */
13421 $ac_includes_default
13422 int
13423 main ()
13424 {
13425 if ((long int *) 0)
13426   return 0;
13427 if (sizeof (long int))
13428   return 0;
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435   (eval $ac_compile) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_cv_type_long_int=yes
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 ac_cv_type_long_int=no
13451 fi
13452 rm -f conftest.$ac_objext conftest.$ac_ext
13453 fi
13454 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13455 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13456
13457 echo "$as_me:$LINENO: checking size of long int" >&5
13458 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13459 if test "${ac_cv_sizeof_long_int+set}" = set; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462   if test "$ac_cv_type_long_int" = yes; then
13463   # The cast to unsigned long works around a bug in the HP C Compiler
13464   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13465   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13466   # This bug is HP SR number 8606223364.
13467   if test "$cross_compiling" = yes; then
13468   # Depending upon the size, compute the lo and hi bounds.
13469 cat >conftest.$ac_ext <<_ACEOF
13470 #line $LINENO "configure"
13471 /* confdefs.h.  */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h.  */
13476 $ac_includes_default
13477 int
13478 main ()
13479 {
13480 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13481 test_array [0] = 0
13482
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489   (eval $ac_compile) 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); } &&
13493          { ac_try='test -s conftest.$ac_objext'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; }; then
13499   ac_lo=0 ac_mid=0
13500   while :; do
13501     cat >conftest.$ac_ext <<_ACEOF
13502 #line $LINENO "configure"
13503 /* confdefs.h.  */
13504 _ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h.  */
13508 $ac_includes_default
13509 int
13510 main ()
13511 {
13512 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13513 test_array [0] = 0
13514
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 rm -f conftest.$ac_objext
13520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13521   (eval $ac_compile) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   ac_hi=$ac_mid; break
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_lo=`expr $ac_mid + 1`
13537                     if test $ac_lo -le $ac_mid; then
13538                       ac_lo= ac_hi=
13539                       break
13540                     fi
13541                     ac_mid=`expr 2 '*' $ac_mid + 1`
13542 fi
13543 rm -f conftest.$ac_objext conftest.$ac_ext
13544   done
13545 else
13546   echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549 cat >conftest.$ac_ext <<_ACEOF
13550 #line $LINENO "configure"
13551 /* confdefs.h.  */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h.  */
13556 $ac_includes_default
13557 int
13558 main ()
13559 {
13560 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13561 test_array [0] = 0
13562
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13569   (eval $ac_compile) 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } &&
13573          { ac_try='test -s conftest.$ac_objext'
13574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; }; then
13579   ac_hi=-1 ac_mid=-1
13580   while :; do
13581     cat >conftest.$ac_ext <<_ACEOF
13582 #line $LINENO "configure"
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588 $ac_includes_default
13589 int
13590 main ()
13591 {
13592 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13593 test_array [0] = 0
13594
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601   (eval $ac_compile) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); } &&
13605          { ac_try='test -s conftest.$ac_objext'
13606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607   (eval $ac_try) 2>&5
13608   ac_status=$?
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); }; }; then
13611   ac_lo=$ac_mid; break
13612 else
13613   echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13615
13616 ac_hi=`expr '(' $ac_mid ')' - 1`
13617                        if test $ac_mid -le $ac_hi; then
13618                          ac_lo= ac_hi=
13619                          break
13620                        fi
13621                        ac_mid=`expr 2 '*' $ac_mid`
13622 fi
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13624   done
13625 else
13626   echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ac_lo= ac_hi=
13630 fi
13631 rm -f conftest.$ac_objext conftest.$ac_ext
13632 fi
13633 rm -f conftest.$ac_objext conftest.$ac_ext
13634 # Binary search between lo and hi bounds.
13635 while test "x$ac_lo" != "x$ac_hi"; do
13636   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13637   cat >conftest.$ac_ext <<_ACEOF
13638 #line $LINENO "configure"
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 $ac_includes_default
13645 int
13646 main ()
13647 {
13648 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13649 test_array [0] = 0
13650
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657   (eval $ac_compile) 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); } &&
13661          { ac_try='test -s conftest.$ac_objext'
13662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663   (eval $ac_try) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; }; then
13667   ac_hi=$ac_mid
13668 else
13669   echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_lo=`expr '(' $ac_mid ')' + 1`
13673 fi
13674 rm -f conftest.$ac_objext conftest.$ac_ext
13675 done
13676 case $ac_lo in
13677 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13678 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13679 See \`config.log' for more details." >&5
13680 echo "$as_me: error: cannot compute sizeof (long int), 77
13681 See \`config.log' for more details." >&2;}
13682    { (exit 1); exit 1; }; } ;;
13683 esac
13684 else
13685   if test "$cross_compiling" = yes; then
13686   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13687 See \`config.log' for more details." >&5
13688 echo "$as_me: error: cannot run test program while cross compiling
13689 See \`config.log' for more details." >&2;}
13690    { (exit 1); exit 1; }; }
13691 else
13692   cat >conftest.$ac_ext <<_ACEOF
13693 #line $LINENO "configure"
13694 /* confdefs.h.  */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h.  */
13699 $ac_includes_default
13700 long longval () { return (long) (sizeof (long int)); }
13701 unsigned long ulongval () { return (long) (sizeof (long int)); }
13702 #include <stdio.h>
13703 #include <stdlib.h>
13704 int
13705 main ()
13706 {
13707
13708   FILE *f = fopen ("conftest.val", "w");
13709   if (! f)
13710     exit (1);
13711   if (((long) (sizeof (long int))) < 0)
13712     {
13713       long i = longval ();
13714       if (i != ((long) (sizeof (long int))))
13715         exit (1);
13716       fprintf (f, "%ld\n", i);
13717     }
13718   else
13719     {
13720       unsigned long i = ulongval ();
13721       if (i != ((long) (sizeof (long int))))
13722         exit (1);
13723       fprintf (f, "%lu\n", i);
13724     }
13725   exit (ferror (f) || fclose (f) != 0);
13726
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest$ac_exeext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733   (eval $ac_link) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }; then
13742   ac_cv_sizeof_long_int=`cat conftest.val`
13743 else
13744   echo "$as_me: program exited with status $ac_status" >&5
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ( exit $ac_status )
13749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13750 See \`config.log' for more details." >&5
13751 echo "$as_me: error: cannot compute sizeof (long int), 77
13752 See \`config.log' for more details." >&2;}
13753    { (exit 1); exit 1; }; }
13754 fi
13755 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13756 fi
13757 fi
13758 rm -f conftest.val
13759 else
13760   ac_cv_sizeof_long_int=0
13761 fi
13762 fi
13763 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13764 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13765 cat >>confdefs.h <<_ACEOF
13766 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13767 _ACEOF
13768
13769
13770 echo "$as_me:$LINENO: checking for long long int" >&5
13771 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13772 if test "${ac_cv_type_long_long_int+set}" = set; then
13773   echo $ECHO_N "(cached) $ECHO_C" >&6
13774 else
13775   cat >conftest.$ac_ext <<_ACEOF
13776 #line $LINENO "configure"
13777 /* confdefs.h.  */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h.  */
13782 $ac_includes_default
13783 int
13784 main ()
13785 {
13786 if ((long long int *) 0)
13787   return 0;
13788 if (sizeof (long long int))
13789   return 0;
13790   ;
13791   return 0;
13792 }
13793 _ACEOF
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796   (eval $ac_compile) 2>&5
13797   ac_status=$?
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -s conftest.$ac_objext'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }; then
13806   ac_cv_type_long_long_int=yes
13807 else
13808   echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 ac_cv_type_long_long_int=no
13812 fi
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13814 fi
13815 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13816 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13817
13818 echo "$as_me:$LINENO: checking size of long long int" >&5
13819 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13820 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   if test "$ac_cv_type_long_long_int" = yes; then
13824   # The cast to unsigned long works around a bug in the HP C Compiler
13825   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13826   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13827   # This bug is HP SR number 8606223364.
13828   if test "$cross_compiling" = yes; then
13829   # Depending upon the size, compute the lo and hi bounds.
13830 cat >conftest.$ac_ext <<_ACEOF
13831 #line $LINENO "configure"
13832 /* confdefs.h.  */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h.  */
13837 $ac_includes_default
13838 int
13839 main ()
13840 {
13841 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13842 test_array [0] = 0
13843
13844   ;
13845   return 0;
13846 }
13847 _ACEOF
13848 rm -f conftest.$ac_objext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850   (eval $ac_compile) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } &&
13854          { ac_try='test -s conftest.$ac_objext'
13855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856   (eval $ac_try) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; }; then
13860   ac_lo=0 ac_mid=0
13861   while :; do
13862     cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13864 /* confdefs.h.  */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h.  */
13869 $ac_includes_default
13870 int
13871 main ()
13872 {
13873 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13874 test_array [0] = 0
13875
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882   (eval $ac_compile) 2>&5
13883   ac_status=$?
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -s conftest.$ac_objext'
13887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888   (eval $ac_try) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   ac_hi=$ac_mid; break
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897 ac_lo=`expr $ac_mid + 1`
13898                     if test $ac_lo -le $ac_mid; then
13899                       ac_lo= ac_hi=
13900                       break
13901                     fi
13902                     ac_mid=`expr 2 '*' $ac_mid + 1`
13903 fi
13904 rm -f conftest.$ac_objext conftest.$ac_ext
13905   done
13906 else
13907   echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910 cat >conftest.$ac_ext <<_ACEOF
13911 #line $LINENO "configure"
13912 /* confdefs.h.  */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h.  */
13917 $ac_includes_default
13918 int
13919 main ()
13920 {
13921 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13922 test_array [0] = 0
13923
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext
13929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13930   (eval $ac_compile) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -s conftest.$ac_objext'
13935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936   (eval $ac_try) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; }; then
13940   ac_hi=-1 ac_mid=-1
13941   while :; do
13942     cat >conftest.$ac_ext <<_ACEOF
13943 #line $LINENO "configure"
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949 $ac_includes_default
13950 int
13951 main ()
13952 {
13953 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13954 test_array [0] = 0
13955
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest.$ac_objext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13962   (eval $ac_compile) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); } &&
13966          { ac_try='test -s conftest.$ac_objext'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; }; then
13972   ac_lo=$ac_mid; break
13973 else
13974   echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ac_hi=`expr '(' $ac_mid ')' - 1`
13978                        if test $ac_mid -le $ac_hi; then
13979                          ac_lo= ac_hi=
13980                          break
13981                        fi
13982                        ac_mid=`expr 2 '*' $ac_mid`
13983 fi
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13985   done
13986 else
13987   echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.$ac_ext >&5
13989
13990 ac_lo= ac_hi=
13991 fi
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13993 fi
13994 rm -f conftest.$ac_objext conftest.$ac_ext
13995 # Binary search between lo and hi bounds.
13996 while test "x$ac_lo" != "x$ac_hi"; do
13997   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13998   cat >conftest.$ac_ext <<_ACEOF
13999 #line $LINENO "configure"
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 $ac_includes_default
14006 int
14007 main ()
14008 {
14009 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14010 test_array [0] = 0
14011
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14018   (eval $ac_compile) 2>&5
14019   ac_status=$?
14020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); } &&
14022          { ac_try='test -s conftest.$ac_objext'
14023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024   (eval $ac_try) 2>&5
14025   ac_status=$?
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); }; }; then
14028   ac_hi=$ac_mid
14029 else
14030   echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_lo=`expr '(' $ac_mid ')' + 1`
14034 fi
14035 rm -f conftest.$ac_objext conftest.$ac_ext
14036 done
14037 case $ac_lo in
14038 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14039 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14040 See \`config.log' for more details." >&5
14041 echo "$as_me: error: cannot compute sizeof (long long int), 77
14042 See \`config.log' for more details." >&2;}
14043    { (exit 1); exit 1; }; } ;;
14044 esac
14045 else
14046   if test "$cross_compiling" = yes; then
14047   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14048 See \`config.log' for more details." >&5
14049 echo "$as_me: error: cannot run test program while cross compiling
14050 See \`config.log' for more details." >&2;}
14051    { (exit 1); exit 1; }; }
14052 else
14053   cat >conftest.$ac_ext <<_ACEOF
14054 #line $LINENO "configure"
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060 $ac_includes_default
14061 long longval () { return (long) (sizeof (long long int)); }
14062 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14063 #include <stdio.h>
14064 #include <stdlib.h>
14065 int
14066 main ()
14067 {
14068
14069   FILE *f = fopen ("conftest.val", "w");
14070   if (! f)
14071     exit (1);
14072   if (((long) (sizeof (long long int))) < 0)
14073     {
14074       long i = longval ();
14075       if (i != ((long) (sizeof (long long int))))
14076         exit (1);
14077       fprintf (f, "%ld\n", i);
14078     }
14079   else
14080     {
14081       unsigned long i = ulongval ();
14082       if (i != ((long) (sizeof (long long int))))
14083         exit (1);
14084       fprintf (f, "%lu\n", i);
14085     }
14086   exit (ferror (f) || fclose (f) != 0);
14087
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094   (eval $ac_link) 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_long_int=`cat conftest.val`
14104 else
14105   echo "$as_me: program exited with status $ac_status" >&5
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 ( exit $ac_status )
14110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14111 See \`config.log' for more details." >&5
14112 echo "$as_me: error: cannot compute sizeof (long long int), 77
14113 See \`config.log' for more details." >&2;}
14114    { (exit 1); exit 1; }; }
14115 fi
14116 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14117 fi
14118 fi
14119 rm -f conftest.val
14120 else
14121   ac_cv_sizeof_long_long_int=0
14122 fi
14123 fi
14124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14125 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14126 cat >>confdefs.h <<_ACEOF
14127 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14128 _ACEOF
14129
14130
14131 echo "$as_me:$LINENO: checking for int *" >&5
14132 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14133 if test "${ac_cv_type_int_p+set}" = set; then
14134   echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136   cat >conftest.$ac_ext <<_ACEOF
14137 #line $LINENO "configure"
14138 /* confdefs.h.  */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h.  */
14143 $ac_includes_default
14144 int
14145 main ()
14146 {
14147 if ((int * *) 0)
14148   return 0;
14149 if (sizeof (int *))
14150   return 0;
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14157   (eval $ac_compile) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -s conftest.$ac_objext'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   ac_cv_type_int_p=yes
14168 else
14169   echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172 ac_cv_type_int_p=no
14173 fi
14174 rm -f conftest.$ac_objext conftest.$ac_ext
14175 fi
14176 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14177 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14178
14179 echo "$as_me:$LINENO: checking size of int *" >&5
14180 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14181 if test "${ac_cv_sizeof_int_p+set}" = set; then
14182   echo $ECHO_N "(cached) $ECHO_C" >&6
14183 else
14184   if test "$ac_cv_type_int_p" = yes; then
14185   # The cast to unsigned long works around a bug in the HP C Compiler
14186   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14187   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14188   # This bug is HP SR number 8606223364.
14189   if test "$cross_compiling" = yes; then
14190   # Depending upon the size, compute the lo and hi bounds.
14191 cat >conftest.$ac_ext <<_ACEOF
14192 #line $LINENO "configure"
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198 $ac_includes_default
14199 int
14200 main ()
14201 {
14202 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14203 test_array [0] = 0
14204
14205   ;
14206   return 0;
14207 }
14208 _ACEOF
14209 rm -f conftest.$ac_objext
14210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211   (eval $ac_compile) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); } &&
14215          { ac_try='test -s conftest.$ac_objext'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   ac_lo=0 ac_mid=0
14222   while :; do
14223     cat >conftest.$ac_ext <<_ACEOF
14224 #line $LINENO "configure"
14225 /* confdefs.h.  */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h.  */
14230 $ac_includes_default
14231 int
14232 main ()
14233 {
14234 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14235 test_array [0] = 0
14236
14237   ;
14238   return 0;
14239 }
14240 _ACEOF
14241 rm -f conftest.$ac_objext
14242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14243   (eval $ac_compile) 2>&5
14244   ac_status=$?
14245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246   (exit $ac_status); } &&
14247          { ac_try='test -s conftest.$ac_objext'
14248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249   (eval $ac_try) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; }; then
14253   ac_hi=$ac_mid; break
14254 else
14255   echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.$ac_ext >&5
14257
14258 ac_lo=`expr $ac_mid + 1`
14259                     if test $ac_lo -le $ac_mid; then
14260                       ac_lo= ac_hi=
14261                       break
14262                     fi
14263                     ac_mid=`expr 2 '*' $ac_mid + 1`
14264 fi
14265 rm -f conftest.$ac_objext conftest.$ac_ext
14266   done
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 cat >conftest.$ac_ext <<_ACEOF
14272 #line $LINENO "configure"
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 $ac_includes_default
14279 int
14280 main ()
14281 {
14282 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14283 test_array [0] = 0
14284
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291   (eval $ac_compile) 2>&5
14292   ac_status=$?
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } &&
14295          { ac_try='test -s conftest.$ac_objext'
14296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297   (eval $ac_try) 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); }; }; then
14301   ac_hi=-1 ac_mid=-1
14302   while :; do
14303     cat >conftest.$ac_ext <<_ACEOF
14304 #line $LINENO "configure"
14305 /* confdefs.h.  */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h.  */
14310 $ac_includes_default
14311 int
14312 main ()
14313 {
14314 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14315 test_array [0] = 0
14316
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323   (eval $ac_compile) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); } &&
14327          { ac_try='test -s conftest.$ac_objext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_lo=$ac_mid; break
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 ac_hi=`expr '(' $ac_mid ')' - 1`
14339                        if test $ac_mid -le $ac_hi; then
14340                          ac_lo= ac_hi=
14341                          break
14342                        fi
14343                        ac_mid=`expr 2 '*' $ac_mid`
14344 fi
14345 rm -f conftest.$ac_objext conftest.$ac_ext
14346   done
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 ac_lo= ac_hi=
14352 fi
14353 rm -f conftest.$ac_objext conftest.$ac_ext
14354 fi
14355 rm -f conftest.$ac_objext conftest.$ac_ext
14356 # Binary search between lo and hi bounds.
14357 while test "x$ac_lo" != "x$ac_hi"; do
14358   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14359   cat >conftest.$ac_ext <<_ACEOF
14360 #line $LINENO "configure"
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366 $ac_includes_default
14367 int
14368 main ()
14369 {
14370 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14371 test_array [0] = 0
14372
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379   (eval $ac_compile) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -s conftest.$ac_objext'
14384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385   (eval $ac_try) 2>&5
14386   ac_status=$?
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); }; }; then
14389   ac_hi=$ac_mid
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 ac_lo=`expr '(' $ac_mid ')' + 1`
14395 fi
14396 rm -f conftest.$ac_objext conftest.$ac_ext
14397 done
14398 case $ac_lo in
14399 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14401 See \`config.log' for more details." >&5
14402 echo "$as_me: error: cannot compute sizeof (int *), 77
14403 See \`config.log' for more details." >&2;}
14404    { (exit 1); exit 1; }; } ;;
14405 esac
14406 else
14407   if test "$cross_compiling" = yes; then
14408   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14409 See \`config.log' for more details." >&5
14410 echo "$as_me: error: cannot run test program while cross compiling
14411 See \`config.log' for more details." >&2;}
14412    { (exit 1); exit 1; }; }
14413 else
14414   cat >conftest.$ac_ext <<_ACEOF
14415 #line $LINENO "configure"
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421 $ac_includes_default
14422 long longval () { return (long) (sizeof (int *)); }
14423 unsigned long ulongval () { return (long) (sizeof (int *)); }
14424 #include <stdio.h>
14425 #include <stdlib.h>
14426 int
14427 main ()
14428 {
14429
14430   FILE *f = fopen ("conftest.val", "w");
14431   if (! f)
14432     exit (1);
14433   if (((long) (sizeof (int *))) < 0)
14434     {
14435       long i = longval ();
14436       if (i != ((long) (sizeof (int *))))
14437         exit (1);
14438       fprintf (f, "%ld\n", i);
14439     }
14440   else
14441     {
14442       unsigned long i = ulongval ();
14443       if (i != ((long) (sizeof (int *))))
14444         exit (1);
14445       fprintf (f, "%lu\n", i);
14446     }
14447   exit (ferror (f) || fclose (f) != 0);
14448
14449   ;
14450   return 0;
14451 }
14452 _ACEOF
14453 rm -f conftest$ac_exeext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14455   (eval $ac_link) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460   (eval $ac_try) 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); }; }; then
14464   ac_cv_sizeof_int_p=`cat conftest.val`
14465 else
14466   echo "$as_me: program exited with status $ac_status" >&5
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470 ( exit $ac_status )
14471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14472 See \`config.log' for more details." >&5
14473 echo "$as_me: error: cannot compute sizeof (int *), 77
14474 See \`config.log' for more details." >&2;}
14475    { (exit 1); exit 1; }; }
14476 fi
14477 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14478 fi
14479 fi
14480 rm -f conftest.val
14481 else
14482   ac_cv_sizeof_int_p=0
14483 fi
14484 fi
14485 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14486 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14487 cat >>confdefs.h <<_ACEOF
14488 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14489 _ACEOF
14490
14491
14492
14493 # Check for sys/types.h types
14494 echo "$as_me:$LINENO: checking for u_int type" >&5
14495 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14496 if test "${ac_cv_have_u_int+set}" = set; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499
14500     cat >conftest.$ac_ext <<_ACEOF
14501 #line $LINENO "configure"
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507  #include <sys/types.h>
14508 int
14509 main ()
14510 {
14511  u_int a; a = 1;
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 rm -f conftest.$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518   (eval $ac_compile) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); } &&
14522          { ac_try='test -s conftest.$ac_objext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528    ac_cv_have_u_int="yes"
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533  ac_cv_have_u_int="no"
14534
14535 fi
14536 rm -f conftest.$ac_objext conftest.$ac_ext
14537
14538 fi
14539 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14540 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14541 if test "x$ac_cv_have_u_int" = "xyes" ; then
14542    cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_U_INT 1
14544 _ACEOF
14545
14546    have_u_int=1
14547 fi
14548
14549 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14550 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14551 if test "${ac_cv_have_intmax_t+set}" = set; then
14552   echo $ECHO_N "(cached) $ECHO_C" >&6
14553 else
14554
14555    cat >conftest.$ac_ext <<_ACEOF
14556 #line $LINENO "configure"
14557 /* confdefs.h.  */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h.  */
14562  #include <sys/types.h>
14563 int
14564 main ()
14565 {
14566  intmax_t a; a = 1;
14567   ;
14568   return 0;
14569 }
14570 _ACEOF
14571 rm -f conftest.$ac_objext
14572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14573   (eval $ac_compile) 2>&5
14574   ac_status=$?
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } &&
14577          { ac_try='test -s conftest.$ac_objext'
14578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579   (eval $ac_try) 2>&5
14580   ac_status=$?
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); }; }; then
14583    ac_cv_have_intmax_t="yes"
14584 else
14585   echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588
14589          cat >conftest.$ac_ext <<_ACEOF
14590 #line $LINENO "configure"
14591 /* confdefs.h.  */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h.  */
14596  #include <stdint.h>
14597 int
14598 main ()
14599 {
14600  intmax_t a; a = 1;
14601   ;
14602   return 0;
14603 }
14604 _ACEOF
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607   (eval $ac_compile) 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); } &&
14611          { ac_try='test -s conftest.$ac_objext'
14612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613   (eval $ac_try) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; }; then
14617    ac_cv_have_intmax_t="yes"
14618 else
14619   echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622  ac_cv_have_intmax_t="no"
14623
14624 fi
14625 rm -f conftest.$ac_objext conftest.$ac_ext
14626
14627
14628 fi
14629 rm -f conftest.$ac_objext conftest.$ac_ext
14630
14631
14632 fi
14633 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14634 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14635 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14636    cat >>confdefs.h <<\_ACEOF
14637 #define HAVE_INTMAX_T 1
14638 _ACEOF
14639
14640    have_intmax_t=1
14641 fi
14642
14643
14644 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14645 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14646 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14647   echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649
14650    cat >conftest.$ac_ext <<_ACEOF
14651 #line $LINENO "configure"
14652 /* confdefs.h.  */
14653 _ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h.  */
14657  #include <sys/types.h>
14658 int
14659 main ()
14660 {
14661  u_intmax_t a; a = 1;
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668   (eval $ac_compile) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -s conftest.$ac_objext'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; }; then
14678    ac_cv_have_u_intmax_t="yes"
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683
14684          cat >conftest.$ac_ext <<_ACEOF
14685 #line $LINENO "configure"
14686 /* confdefs.h.  */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h.  */
14691  #include <stdint.h>
14692 int
14693 main ()
14694 {
14695  u_intmax_t a; a = 1;
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14702   (eval $ac_compile) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } &&
14706          { ac_try='test -s conftest.$ac_objext'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; }; then
14712    ac_cv_have_u_intmax_t="yes"
14713 else
14714   echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717  ac_cv_have_u_intmax_t="no"
14718
14719 fi
14720 rm -f conftest.$ac_objext conftest.$ac_ext
14721
14722
14723 fi
14724 rm -f conftest.$ac_objext conftest.$ac_ext
14725
14726 fi
14727 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14728 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14729 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14730    cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_U_INTMAX_T 1
14732 _ACEOF
14733
14734    have_u_intmax_t=1
14735 fi
14736
14737
14738 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14739 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14740 if test "${ac_cv_have_intxx_t+set}" = set; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743
14744    cat >conftest.$ac_ext <<_ACEOF
14745 #line $LINENO "configure"
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751  #include <sys/types.h>
14752 int
14753 main ()
14754 {
14755  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762   (eval $ac_compile) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); } &&
14766          { ac_try='test -s conftest.$ac_objext'
14767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768   (eval $ac_try) 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; }; then
14772    ac_cv_have_intxx_t="yes"
14773 else
14774   echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777  ac_cv_have_intxx_t="no"
14778
14779 fi
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14781
14782 fi
14783 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14784 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14785 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14786    cat >>confdefs.h <<\_ACEOF
14787 #define HAVE_INTXX_T 1
14788 _ACEOF
14789
14790    have_intxx_t=1
14791 fi
14792
14793 echo "$as_me:$LINENO: checking for int64_t type" >&5
14794 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14795 if test "${ac_cv_have_int64_t+set}" = set; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 else
14798
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  #include <sys/types.h>
14807 int
14808 main ()
14809 {
14810  int64_t a; a = 1;
14811   ;
14812   return 0;
14813 }
14814 _ACEOF
14815 rm -f conftest.$ac_objext
14816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14817   (eval $ac_compile) 2>&5
14818   ac_status=$?
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   (exit $ac_status); } &&
14821          { ac_try='test -s conftest.$ac_objext'
14822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823   (eval $ac_try) 2>&5
14824   ac_status=$?
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); }; }; then
14827    ac_cv_have_int64_t="yes"
14828 else
14829   echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14831
14832  ac_cv_have_int64_t="no"
14833
14834 fi
14835 rm -f conftest.$ac_objext conftest.$ac_ext
14836
14837 fi
14838 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14839 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14840 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14841    cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_INT64_T 1
14843 _ACEOF
14844
14845    have_int64_t=1
14846 fi
14847
14848 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14849 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14850 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853
14854    cat >conftest.$ac_ext <<_ACEOF
14855 #line $LINENO "configure"
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861  #include <sys/types.h>
14862 int
14863 main ()
14864 {
14865  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 rm -f conftest.$ac_objext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14872   (eval $ac_compile) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } &&
14876          { ac_try='test -s conftest.$ac_objext'
14877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878   (eval $ac_try) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; }; then
14882    ac_cv_have_u_intxx_t="yes"
14883 else
14884   echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887  ac_cv_have_u_intxx_t="no"
14888
14889 fi
14890 rm -f conftest.$ac_objext conftest.$ac_ext
14891
14892 fi
14893 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14894 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14895 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14896    cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_U_INTXX_T 1
14898 _ACEOF
14899
14900    have_u_intxx_t=1
14901 fi
14902
14903 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14904 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14905 if test "${ac_cv_have_u_int64_t+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908
14909    cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916  #include <sys/types.h>
14917 int
14918 main ()
14919 {
14920  u_int64_t a; a = 1;
14921   ;
14922   return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14927   (eval $ac_compile) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } &&
14931          { ac_try='test -s conftest.$ac_objext'
14932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933   (eval $ac_try) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937    ac_cv_have_u_int64_t="yes"
14938 else
14939   echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942  ac_cv_have_u_int64_t="no"
14943
14944 fi
14945 rm -f conftest.$ac_objext conftest.$ac_ext
14946
14947 fi
14948 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14949 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14950 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14951    cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_U_INT64_T 1
14953 _ACEOF
14954
14955    have_u_int64_t=1
14956 fi
14957
14958 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14959            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14960 then
14961    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14962 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14963    cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14965 /* confdefs.h.  */
14966 _ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h.  */
14970  #include <sys/bitypes.h>
14971 int
14972 main ()
14973 {
14974  int8_t a; int16_t b; int32_t c;
14975         u_int8_t e; u_int16_t f; u_int32_t g;
14976         a = b = c = e = f = g = 1;
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983   (eval $ac_compile) 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); } &&
14987          { ac_try='test -s conftest.$ac_objext'
14988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989   (eval $ac_try) 2>&5
14990   ac_status=$?
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); }; }; then
14993    cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_U_INTXX_T 1
14995 _ACEOF
14996
14997         cat >>confdefs.h <<\_ACEOF
14998 #define HAVE_INTXX_T 1
14999 _ACEOF
15000
15001         cat >>confdefs.h <<\_ACEOF
15002 #define HAVE_SYS_BITYPES_H 1
15003 _ACEOF
15004
15005         echo "$as_me:$LINENO: result: yes" >&5
15006 echo "${ECHO_T}yes" >&6
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011  echo "$as_me:$LINENO: result: no" >&5
15012 echo "${ECHO_T}no" >&6
15013
15014 fi
15015 rm -f conftest.$ac_objext conftest.$ac_ext
15016 fi
15017
15018 if test -z "$have_u_intxx_t" ; then
15019    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15020 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15021 if test "${ac_cv_have_uintxx_t+set}" = set; then
15022   echo $ECHO_N "(cached) $ECHO_C" >&6
15023 else
15024
15025       cat >conftest.$ac_ext <<_ACEOF
15026 #line $LINENO "configure"
15027 /* confdefs.h.  */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h.  */
15032  #include <sys/types.h>
15033 int
15034 main ()
15035 {
15036  uint8_t a; uint16_t b;
15037            uint32_t c; a = b = c = 1;
15038   ;
15039   return 0;
15040 }
15041 _ACEOF
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044   (eval $ac_compile) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -s conftest.$ac_objext'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; }; then
15054    ac_cv_have_uintxx_t="yes"
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059  ac_cv_have_uintxx_t="no"
15060
15061 fi
15062 rm -f conftest.$ac_objext conftest.$ac_ext
15063
15064 fi
15065 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15066 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15067    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15068       cat >>confdefs.h <<\_ACEOF
15069 #define HAVE_UINTXX_T 1
15070 _ACEOF
15071
15072    fi
15073 fi
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089 for ac_func in \
15090         fork \
15091         getcwd \
15092         gethostname \
15093         getpid \
15094         gettimeofday \
15095         setpgid \
15096         setpgrp \
15097         setsid \
15098         signal \
15099         strerror \
15100         strncmp \
15101         strncpy \
15102         vfprintf \
15103
15104 do
15105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15106 echo "$as_me:$LINENO: checking for $ac_func" >&5
15107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15108 if eval "test \"\${$as_ac_var+set}\" = set"; then
15109   echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111   cat >conftest.$ac_ext <<_ACEOF
15112 #line $LINENO "configure"
15113 /* confdefs.h.  */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h.  */
15118 /* System header to define __stub macros and hopefully few prototypes,
15119     which can conflict with char $ac_func (); below.
15120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15121     <limits.h> exists even on freestanding compilers.  */
15122 #ifdef __STDC__
15123 # include <limits.h>
15124 #else
15125 # include <assert.h>
15126 #endif
15127 /* Override any gcc2 internal prototype to avoid an error.  */
15128 #ifdef __cplusplus
15129 extern "C"
15130 {
15131 #endif
15132 /* We use char because int might match the return type of a gcc2
15133    builtin and then its argument prototype would still apply.  */
15134 char $ac_func ();
15135 /* The GNU C library defines this for functions which it implements
15136     to always fail with ENOSYS.  Some functions are actually named
15137     something starting with __ and the normal name is an alias.  */
15138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15139 choke me
15140 #else
15141 char (*f) () = $ac_func;
15142 #endif
15143 #ifdef __cplusplus
15144 }
15145 #endif
15146
15147 int
15148 main ()
15149 {
15150 return f != $ac_func;
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15157   (eval $ac_link) 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); } &&
15161          { ac_try='test -s conftest$ac_exeext'
15162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163   (eval $ac_try) 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   eval "$as_ac_var=yes"
15168 else
15169   echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15171
15172 eval "$as_ac_var=no"
15173 fi
15174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15175 fi
15176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15178 if test `eval echo '${'$as_ac_var'}'` = yes; then
15179   cat >>confdefs.h <<_ACEOF
15180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15181 _ACEOF
15182
15183 else
15184   echo 'configure: cannot find needed function.'; exit 1
15185
15186 fi
15187 done
15188
15189
15190
15191 for ac_func in fchdir
15192 do
15193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15194 echo "$as_me:$LINENO: checking for $ac_func" >&5
15195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15196 if eval "test \"\${$as_ac_var+set}\" = set"; then
15197   echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199   cat >conftest.$ac_ext <<_ACEOF
15200 #line $LINENO "configure"
15201 /* confdefs.h.  */
15202 _ACEOF
15203 cat confdefs.h >>conftest.$ac_ext
15204 cat >>conftest.$ac_ext <<_ACEOF
15205 /* end confdefs.h.  */
15206 /* System header to define __stub macros and hopefully few prototypes,
15207     which can conflict with char $ac_func (); below.
15208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15209     <limits.h> exists even on freestanding compilers.  */
15210 #ifdef __STDC__
15211 # include <limits.h>
15212 #else
15213 # include <assert.h>
15214 #endif
15215 /* Override any gcc2 internal prototype to avoid an error.  */
15216 #ifdef __cplusplus
15217 extern "C"
15218 {
15219 #endif
15220 /* We use char because int might match the return type of a gcc2
15221    builtin and then its argument prototype would still apply.  */
15222 char $ac_func ();
15223 /* The GNU C library defines this for functions which it implements
15224     to always fail with ENOSYS.  Some functions are actually named
15225     something starting with __ and the normal name is an alias.  */
15226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15227 choke me
15228 #else
15229 char (*f) () = $ac_func;
15230 #endif
15231 #ifdef __cplusplus
15232 }
15233 #endif
15234
15235 int
15236 main ()
15237 {
15238 return f != $ac_func;
15239   ;
15240   return 0;
15241 }
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15245   (eval $ac_link) 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); } &&
15249          { ac_try='test -s conftest$ac_exeext'
15250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251   (eval $ac_try) 2>&5
15252   ac_status=$?
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); }; }; then
15255   eval "$as_ac_var=yes"
15256 else
15257   echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 eval "$as_ac_var=no"
15261 fi
15262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15263 fi
15264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15266 if test `eval echo '${'$as_ac_var'}'` = yes; then
15267   cat >>confdefs.h <<_ACEOF
15268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15269 _ACEOF
15270  cat >>confdefs.h <<\_ACEOF
15271 #define HAVE_FCHDIR 1
15272 _ACEOF
15273
15274 fi
15275 done
15276
15277
15278 for ac_func in strtoll
15279 do
15280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15281 echo "$as_me:$LINENO: checking for $ac_func" >&5
15282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15283 if eval "test \"\${$as_ac_var+set}\" = set"; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   cat >conftest.$ac_ext <<_ACEOF
15287 #line $LINENO "configure"
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293 /* System header to define __stub macros and hopefully few prototypes,
15294     which can conflict with char $ac_func (); below.
15295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15296     <limits.h> exists even on freestanding compilers.  */
15297 #ifdef __STDC__
15298 # include <limits.h>
15299 #else
15300 # include <assert.h>
15301 #endif
15302 /* Override any gcc2 internal prototype to avoid an error.  */
15303 #ifdef __cplusplus
15304 extern "C"
15305 {
15306 #endif
15307 /* We use char because int might match the return type of a gcc2
15308    builtin and then its argument prototype would still apply.  */
15309 char $ac_func ();
15310 /* The GNU C library defines this for functions which it implements
15311     to always fail with ENOSYS.  Some functions are actually named
15312     something starting with __ and the normal name is an alias.  */
15313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15314 choke me
15315 #else
15316 char (*f) () = $ac_func;
15317 #endif
15318 #ifdef __cplusplus
15319 }
15320 #endif
15321
15322 int
15323 main ()
15324 {
15325 return f != $ac_func;
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15332   (eval $ac_link) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); } &&
15336          { ac_try='test -s conftest$ac_exeext'
15337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338   (eval $ac_try) 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   eval "$as_ac_var=yes"
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 eval "$as_ac_var=no"
15348 fi
15349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15350 fi
15351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15354   cat >>confdefs.h <<_ACEOF
15355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15356 _ACEOF
15357  cat >>confdefs.h <<\_ACEOF
15358 #define HAVE_STRTOLL 1
15359 _ACEOF
15360
15361 fi
15362 done
15363
15364
15365
15366 for ac_func in chflags
15367 do
15368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369 echo "$as_me:$LINENO: checking for $ac_func" >&5
15370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15371 if eval "test \"\${$as_ac_var+set}\" = set"; then
15372   echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374   cat >conftest.$ac_ext <<_ACEOF
15375 #line $LINENO "configure"
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 /* System header to define __stub macros and hopefully few prototypes,
15382     which can conflict with char $ac_func (); below.
15383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384     <limits.h> exists even on freestanding compilers.  */
15385 #ifdef __STDC__
15386 # include <limits.h>
15387 #else
15388 # include <assert.h>
15389 #endif
15390 /* Override any gcc2 internal prototype to avoid an error.  */
15391 #ifdef __cplusplus
15392 extern "C"
15393 {
15394 #endif
15395 /* We use char because int might match the return type of a gcc2
15396    builtin and then its argument prototype would still apply.  */
15397 char $ac_func ();
15398 /* The GNU C library defines this for functions which it implements
15399     to always fail with ENOSYS.  Some functions are actually named
15400     something starting with __ and the normal name is an alias.  */
15401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15402 choke me
15403 #else
15404 char (*f) () = $ac_func;
15405 #endif
15406 #ifdef __cplusplus
15407 }
15408 #endif
15409
15410 int
15411 main ()
15412 {
15413 return f != $ac_func;
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15420   (eval $ac_link) 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -s conftest$ac_exeext'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   eval "$as_ac_var=yes"
15431 else
15432   echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435 eval "$as_ac_var=no"
15436 fi
15437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15438 fi
15439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15441 if test `eval echo '${'$as_ac_var'}'` = yes; then
15442   cat >>confdefs.h <<_ACEOF
15443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15444 _ACEOF
15445
15446 fi
15447 done
15448
15449
15450
15451
15452
15453
15454 for ac_func in snprintf vsnprintf gethostid getdomainname
15455 do
15456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15457 echo "$as_me:$LINENO: checking for $ac_func" >&5
15458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15459 if eval "test \"\${$as_ac_var+set}\" = set"; then
15460   echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462   cat >conftest.$ac_ext <<_ACEOF
15463 #line $LINENO "configure"
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 /* System header to define __stub macros and hopefully few prototypes,
15470     which can conflict with char $ac_func (); below.
15471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15472     <limits.h> exists even on freestanding compilers.  */
15473 #ifdef __STDC__
15474 # include <limits.h>
15475 #else
15476 # include <assert.h>
15477 #endif
15478 /* Override any gcc2 internal prototype to avoid an error.  */
15479 #ifdef __cplusplus
15480 extern "C"
15481 {
15482 #endif
15483 /* We use char because int might match the return type of a gcc2
15484    builtin and then its argument prototype would still apply.  */
15485 char $ac_func ();
15486 /* The GNU C library defines this for functions which it implements
15487     to always fail with ENOSYS.  Some functions are actually named
15488     something starting with __ and the normal name is an alias.  */
15489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15490 choke me
15491 #else
15492 char (*f) () = $ac_func;
15493 #endif
15494 #ifdef __cplusplus
15495 }
15496 #endif
15497
15498 int
15499 main ()
15500 {
15501 return f != $ac_func;
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508   (eval $ac_link) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } &&
15512          { ac_try='test -s conftest$ac_exeext'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   eval "$as_ac_var=yes"
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 eval "$as_ac_var=no"
15524 fi
15525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15526 fi
15527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15529 if test `eval echo '${'$as_ac_var'}'` = yes; then
15530   cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15532 _ACEOF
15533
15534 fi
15535 done
15536
15537
15538
15539
15540
15541
15542 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15543 do
15544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15545 echo "$as_me:$LINENO: checking for $ac_func" >&5
15546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15547 if eval "test \"\${$as_ac_var+set}\" = set"; then
15548   echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550   cat >conftest.$ac_ext <<_ACEOF
15551 #line $LINENO "configure"
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 /* System header to define __stub macros and hopefully few prototypes,
15558     which can conflict with char $ac_func (); below.
15559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15560     <limits.h> exists even on freestanding compilers.  */
15561 #ifdef __STDC__
15562 # include <limits.h>
15563 #else
15564 # include <assert.h>
15565 #endif
15566 /* Override any gcc2 internal prototype to avoid an error.  */
15567 #ifdef __cplusplus
15568 extern "C"
15569 {
15570 #endif
15571 /* We use char because int might match the return type of a gcc2
15572    builtin and then its argument prototype would still apply.  */
15573 char $ac_func ();
15574 /* The GNU C library defines this for functions which it implements
15575     to always fail with ENOSYS.  Some functions are actually named
15576     something starting with __ and the normal name is an alias.  */
15577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15578 choke me
15579 #else
15580 char (*f) () = $ac_func;
15581 #endif
15582 #ifdef __cplusplus
15583 }
15584 #endif
15585
15586 int
15587 main ()
15588 {
15589 return f != $ac_func;
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15596   (eval $ac_link) 2>&5
15597   ac_status=$?
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -s conftest$ac_exeext'
15601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602   (eval $ac_try) 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); }; }; then
15606   eval "$as_ac_var=yes"
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611 eval "$as_ac_var=no"
15612 fi
15613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15614 fi
15615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15617 if test `eval echo '${'$as_ac_var'}'` = yes; then
15618   cat >>confdefs.h <<_ACEOF
15619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15620 _ACEOF
15621
15622 fi
15623 done
15624
15625
15626 # If resolver functions are not in libc check for -lnsl or -lresolv.
15627 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15628 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15629 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   cat >conftest.$ac_ext <<_ACEOF
15633 #line $LINENO "configure"
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639 /* System header to define __stub macros and hopefully few prototypes,
15640     which can conflict with char gethostbyname_r (); below.
15641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15642     <limits.h> exists even on freestanding compilers.  */
15643 #ifdef __STDC__
15644 # include <limits.h>
15645 #else
15646 # include <assert.h>
15647 #endif
15648 /* Override any gcc2 internal prototype to avoid an error.  */
15649 #ifdef __cplusplus
15650 extern "C"
15651 {
15652 #endif
15653 /* We use char because int might match the return type of a gcc2
15654    builtin and then its argument prototype would still apply.  */
15655 char gethostbyname_r ();
15656 /* The GNU C library defines this for functions which it implements
15657     to always fail with ENOSYS.  Some functions are actually named
15658     something starting with __ and the normal name is an alias.  */
15659 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15660 choke me
15661 #else
15662 char (*f) () = gethostbyname_r;
15663 #endif
15664 #ifdef __cplusplus
15665 }
15666 #endif
15667
15668 int
15669 main ()
15670 {
15671 return f != gethostbyname_r;
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15678   (eval $ac_link) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -s conftest$ac_exeext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_cv_func_gethostbyname_r=yes
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 ac_cv_func_gethostbyname_r=no
15694 fi
15695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15696 fi
15697 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15698 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15699 if test $ac_cv_func_gethostbyname_r = yes; then
15700   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15701 echo "${ECHO_T}using libc's resolver" >&6
15702 else
15703
15704 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15705 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15706 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15707   echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709   ac_check_lib_save_LIBS=$LIBS
15710 LIBS="-lnsl  $LIBS"
15711 cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718
15719 /* Override any gcc2 internal prototype to avoid an error.  */
15720 #ifdef __cplusplus
15721 extern "C"
15722 #endif
15723 /* We use char because int might match the return type of a gcc2
15724    builtin and then its argument prototype would still apply.  */
15725 char gethostbyname_r ();
15726 int
15727 main ()
15728 {
15729 gethostbyname_r ();
15730   ;
15731   return 0;
15732 }
15733 _ACEOF
15734 rm -f conftest.$ac_objext conftest$ac_exeext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15736   (eval $ac_link) 2>&5
15737   ac_status=$?
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } &&
15740          { ac_try='test -s conftest$ac_exeext'
15741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742   (eval $ac_try) 2>&5
15743   ac_status=$?
15744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745   (exit $ac_status); }; }; then
15746   ac_cv_lib_nsl_gethostbyname_r=yes
15747 else
15748   echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15750
15751 ac_cv_lib_nsl_gethostbyname_r=no
15752 fi
15753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15754 LIBS=$ac_check_lib_save_LIBS
15755 fi
15756 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15757 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15758 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15759   cat >>confdefs.h <<_ACEOF
15760 #define HAVE_LIBNSL 1
15761 _ACEOF
15762
15763   LIBS="-lnsl $LIBS"
15764
15765 fi
15766
15767
15768 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15769 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15770 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15771   echo $ECHO_N "(cached) $ECHO_C" >&6
15772 else
15773   ac_check_lib_save_LIBS=$LIBS
15774 LIBS="-lresolv  $LIBS"
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782
15783 /* Override any gcc2 internal prototype to avoid an error.  */
15784 #ifdef __cplusplus
15785 extern "C"
15786 #endif
15787 /* We use char because int might match the return type of a gcc2
15788    builtin and then its argument prototype would still apply.  */
15789 char gethostbyname_r ();
15790 int
15791 main ()
15792 {
15793 gethostbyname_r ();
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800   (eval $ac_link) 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } &&
15804          { ac_try='test -s conftest$ac_exeext'
15805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806   (eval $ac_try) 2>&5
15807   ac_status=$?
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); }; }; then
15810   ac_cv_lib_resolv_gethostbyname_r=yes
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 ac_cv_lib_resolv_gethostbyname_r=no
15816 fi
15817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15819 fi
15820 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15821 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15822 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15823   cat >>confdefs.h <<_ACEOF
15824 #define HAVE_LIBRESOLV 1
15825 _ACEOF
15826
15827   LIBS="-lresolv $LIBS"
15828
15829 fi
15830
15831 fi
15832
15833
15834
15835 # Find where sockets are (especially for Solaris)
15836 echo "$as_me:$LINENO: checking for socket" >&5
15837 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15838 if test "${ac_cv_func_socket+set}" = set; then
15839   echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841   cat >conftest.$ac_ext <<_ACEOF
15842 #line $LINENO "configure"
15843 /* confdefs.h.  */
15844 _ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h.  */
15848 /* System header to define __stub macros and hopefully few prototypes,
15849     which can conflict with char socket (); below.
15850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15851     <limits.h> exists even on freestanding compilers.  */
15852 #ifdef __STDC__
15853 # include <limits.h>
15854 #else
15855 # include <assert.h>
15856 #endif
15857 /* Override any gcc2 internal prototype to avoid an error.  */
15858 #ifdef __cplusplus
15859 extern "C"
15860 {
15861 #endif
15862 /* We use char because int might match the return type of a gcc2
15863    builtin and then its argument prototype would still apply.  */
15864 char socket ();
15865 /* The GNU C library defines this for functions which it implements
15866     to always fail with ENOSYS.  Some functions are actually named
15867     something starting with __ and the normal name is an alias.  */
15868 #if defined (__stub_socket) || defined (__stub___socket)
15869 choke me
15870 #else
15871 char (*f) () = socket;
15872 #endif
15873 #ifdef __cplusplus
15874 }
15875 #endif
15876
15877 int
15878 main ()
15879 {
15880 return f != socket;
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887   (eval $ac_link) 2>&5
15888   ac_status=$?
15889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890   (exit $ac_status); } &&
15891          { ac_try='test -s conftest$ac_exeext'
15892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893   (eval $ac_try) 2>&5
15894   ac_status=$?
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); }; }; then
15897   ac_cv_func_socket=yes
15898 else
15899   echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 ac_cv_func_socket=no
15903 fi
15904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15905 fi
15906 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15907 echo "${ECHO_T}$ac_cv_func_socket" >&6
15908 if test $ac_cv_func_socket = yes; then
15909   echo "$as_me:$LINENO: result: using libc's socket" >&5
15910 echo "${ECHO_T}using libc's socket" >&6
15911 else
15912
15913 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15914 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15915 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15916   echo $ECHO_N "(cached) $ECHO_C" >&6
15917 else
15918   ac_check_lib_save_LIBS=$LIBS
15919 LIBS="-lxnet  $LIBS"
15920 cat >conftest.$ac_ext <<_ACEOF
15921 #line $LINENO "configure"
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927
15928 /* Override any gcc2 internal prototype to avoid an error.  */
15929 #ifdef __cplusplus
15930 extern "C"
15931 #endif
15932 /* We use char because int might match the return type of a gcc2
15933    builtin and then its argument prototype would still apply.  */
15934 char socket ();
15935 int
15936 main ()
15937 {
15938 socket ();
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 rm -f conftest.$ac_objext conftest$ac_exeext
15944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15945   (eval $ac_link) 2>&5
15946   ac_status=$?
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -s conftest$ac_exeext'
15950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951   (eval $ac_try) 2>&5
15952   ac_status=$?
15953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954   (exit $ac_status); }; }; then
15955   ac_cv_lib_xnet_socket=yes
15956 else
15957   echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 ac_cv_lib_xnet_socket=no
15961 fi
15962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15964 fi
15965 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15966 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15967 if test $ac_cv_lib_xnet_socket = yes; then
15968   cat >>confdefs.h <<_ACEOF
15969 #define HAVE_LIBXNET 1
15970 _ACEOF
15971
15972   LIBS="-lxnet $LIBS"
15973
15974 fi
15975
15976
15977 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15978 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15979 if test "${ac_cv_lib_socket_socket+set}" = set; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 else
15982   ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-lsocket  $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15986 /* confdefs.h.  */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h.  */
15991
15992 /* Override any gcc2 internal prototype to avoid an error.  */
15993 #ifdef __cplusplus
15994 extern "C"
15995 #endif
15996 /* We use char because int might match the return type of a gcc2
15997    builtin and then its argument prototype would still apply.  */
15998 char socket ();
15999 int
16000 main ()
16001 {
16002 socket ();
16003   ;
16004   return 0;
16005 }
16006 _ACEOF
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009   (eval $ac_link) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } &&
16013          { ac_try='test -s conftest$ac_exeext'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; }; then
16019   ac_cv_lib_socket_socket=yes
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 ac_cv_lib_socket_socket=no
16025 fi
16026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16027 LIBS=$ac_check_lib_save_LIBS
16028 fi
16029 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16030 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16031 if test $ac_cv_lib_socket_socket = yes; then
16032   cat >>confdefs.h <<_ACEOF
16033 #define HAVE_LIBSOCKET 1
16034 _ACEOF
16035
16036   LIBS="-lsocket $LIBS"
16037
16038 fi
16039
16040
16041 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16042 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16043 if test "${ac_cv_lib_inet_socket+set}" = set; then
16044   echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046   ac_check_lib_save_LIBS=$LIBS
16047 LIBS="-linet  $LIBS"
16048 cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055
16056 /* Override any gcc2 internal prototype to avoid an error.  */
16057 #ifdef __cplusplus
16058 extern "C"
16059 #endif
16060 /* We use char because int might match the return type of a gcc2
16061    builtin and then its argument prototype would still apply.  */
16062 char socket ();
16063 int
16064 main ()
16065 {
16066 socket ();
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16073   (eval $ac_link) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); } &&
16077          { ac_try='test -s conftest$ac_exeext'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   ac_cv_lib_inet_socket=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 ac_cv_lib_inet_socket=no
16089 fi
16090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16091 LIBS=$ac_check_lib_save_LIBS
16092 fi
16093 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16094 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16095 if test $ac_cv_lib_inet_socket = yes; then
16096   cat >>confdefs.h <<_ACEOF
16097 #define HAVE_LIBINET 1
16098 _ACEOF
16099
16100   LIBS="-linet $LIBS"
16101
16102 fi
16103
16104 fi
16105
16106
16107
16108 for ac_func in inet_pton
16109 do
16110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16111 echo "$as_me:$LINENO: checking for $ac_func" >&5
16112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16113 if eval "test \"\${$as_ac_var+set}\" = set"; then
16114   echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116   cat >conftest.$ac_ext <<_ACEOF
16117 #line $LINENO "configure"
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123 /* System header to define __stub macros and hopefully few prototypes,
16124     which can conflict with char $ac_func (); below.
16125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16126     <limits.h> exists even on freestanding compilers.  */
16127 #ifdef __STDC__
16128 # include <limits.h>
16129 #else
16130 # include <assert.h>
16131 #endif
16132 /* Override any gcc2 internal prototype to avoid an error.  */
16133 #ifdef __cplusplus
16134 extern "C"
16135 {
16136 #endif
16137 /* We use char because int might match the return type of a gcc2
16138    builtin and then its argument prototype would still apply.  */
16139 char $ac_func ();
16140 /* The GNU C library defines this for functions which it implements
16141     to always fail with ENOSYS.  Some functions are actually named
16142     something starting with __ and the normal name is an alias.  */
16143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16144 choke me
16145 #else
16146 char (*f) () = $ac_func;
16147 #endif
16148 #ifdef __cplusplus
16149 }
16150 #endif
16151
16152 int
16153 main ()
16154 {
16155 return f != $ac_func;
16156   ;
16157   return 0;
16158 }
16159 _ACEOF
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16162   (eval $ac_link) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } &&
16166          { ac_try='test -s conftest$ac_exeext'
16167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168   (eval $ac_try) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); }; }; then
16172   eval "$as_ac_var=yes"
16173 else
16174   echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 eval "$as_ac_var=no"
16178 fi
16179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16180 fi
16181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16183 if test `eval echo '${'$as_ac_var'}'` = yes; then
16184   cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 _ACEOF
16187  cat >>confdefs.h <<\_ACEOF
16188 #define HAVE_INET_PTON 1
16189 _ACEOF
16190
16191 fi
16192 done
16193
16194
16195
16196 for ac_func in strftime
16197 do
16198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199 echo "$as_me:$LINENO: checking for $ac_func" >&5
16200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16201 if eval "test \"\${$as_ac_var+set}\" = set"; then
16202   echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204   cat >conftest.$ac_ext <<_ACEOF
16205 #line $LINENO "configure"
16206 /* confdefs.h.  */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h.  */
16211 /* System header to define __stub macros and hopefully few prototypes,
16212     which can conflict with char $ac_func (); below.
16213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16214     <limits.h> exists even on freestanding compilers.  */
16215 #ifdef __STDC__
16216 # include <limits.h>
16217 #else
16218 # include <assert.h>
16219 #endif
16220 /* Override any gcc2 internal prototype to avoid an error.  */
16221 #ifdef __cplusplus
16222 extern "C"
16223 {
16224 #endif
16225 /* We use char because int might match the return type of a gcc2
16226    builtin and then its argument prototype would still apply.  */
16227 char $ac_func ();
16228 /* The GNU C library defines this for functions which it implements
16229     to always fail with ENOSYS.  Some functions are actually named
16230     something starting with __ and the normal name is an alias.  */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16232 choke me
16233 #else
16234 char (*f) () = $ac_func;
16235 #endif
16236 #ifdef __cplusplus
16237 }
16238 #endif
16239
16240 int
16241 main ()
16242 {
16243 return f != $ac_func;
16244   ;
16245   return 0;
16246 }
16247 _ACEOF
16248 rm -f conftest.$ac_objext conftest$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250   (eval $ac_link) 2>&5
16251   ac_status=$?
16252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253   (exit $ac_status); } &&
16254          { ac_try='test -s conftest$ac_exeext'
16255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256   (eval $ac_try) 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; }; then
16260   eval "$as_ac_var=yes"
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 eval "$as_ac_var=no"
16266 fi
16267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16268 fi
16269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16271 if test `eval echo '${'$as_ac_var'}'` = yes; then
16272   cat >>confdefs.h <<_ACEOF
16273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16274 _ACEOF
16275
16276 else
16277   # strftime is in -lintl on SCO UNIX.
16278 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16279 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16280 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16281   echo $ECHO_N "(cached) $ECHO_C" >&6
16282 else
16283   ac_check_lib_save_LIBS=$LIBS
16284 LIBS="-lintl  $LIBS"
16285 cat >conftest.$ac_ext <<_ACEOF
16286 #line $LINENO "configure"
16287 /* confdefs.h.  */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h.  */
16292
16293 /* Override any gcc2 internal prototype to avoid an error.  */
16294 #ifdef __cplusplus
16295 extern "C"
16296 #endif
16297 /* We use char because int might match the return type of a gcc2
16298    builtin and then its argument prototype would still apply.  */
16299 char strftime ();
16300 int
16301 main ()
16302 {
16303 strftime ();
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310   (eval $ac_link) 2>&5
16311   ac_status=$?
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } &&
16314          { ac_try='test -s conftest$ac_exeext'
16315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316   (eval $ac_try) 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); }; }; then
16320   ac_cv_lib_intl_strftime=yes
16321 else
16322   echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16324
16325 ac_cv_lib_intl_strftime=no
16326 fi
16327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16329 fi
16330 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16331 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16332 if test $ac_cv_lib_intl_strftime = yes; then
16333   cat >>confdefs.h <<\_ACEOF
16334 #define HAVE_STRFTIME 1
16335 _ACEOF
16336
16337 LIBS="-lintl $LIBS"
16338 fi
16339
16340 fi
16341 done
16342
16343
16344 for ac_func in vprintf
16345 do
16346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16347 echo "$as_me:$LINENO: checking for $ac_func" >&5
16348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16349 if eval "test \"\${$as_ac_var+set}\" = set"; then
16350   echo $ECHO_N "(cached) $ECHO_C" >&6
16351 else
16352   cat >conftest.$ac_ext <<_ACEOF
16353 #line $LINENO "configure"
16354 /* confdefs.h.  */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h.  */
16359 /* System header to define __stub macros and hopefully few prototypes,
16360     which can conflict with char $ac_func (); below.
16361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362     <limits.h> exists even on freestanding compilers.  */
16363 #ifdef __STDC__
16364 # include <limits.h>
16365 #else
16366 # include <assert.h>
16367 #endif
16368 /* Override any gcc2 internal prototype to avoid an error.  */
16369 #ifdef __cplusplus
16370 extern "C"
16371 {
16372 #endif
16373 /* We use char because int might match the return type of a gcc2
16374    builtin and then its argument prototype would still apply.  */
16375 char $ac_func ();
16376 /* The GNU C library defines this for functions which it implements
16377     to always fail with ENOSYS.  Some functions are actually named
16378     something starting with __ and the normal name is an alias.  */
16379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16380 choke me
16381 #else
16382 char (*f) () = $ac_func;
16383 #endif
16384 #ifdef __cplusplus
16385 }
16386 #endif
16387
16388 int
16389 main ()
16390 {
16391 return f != $ac_func;
16392   ;
16393   return 0;
16394 }
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16398   (eval $ac_link) 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } &&
16402          { ac_try='test -s conftest$ac_exeext'
16403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404   (eval $ac_try) 2>&5
16405   ac_status=$?
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); }; }; then
16408   eval "$as_ac_var=yes"
16409 else
16410   echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 eval "$as_ac_var=no"
16414 fi
16415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16416 fi
16417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16419 if test `eval echo '${'$as_ac_var'}'` = yes; then
16420   cat >>confdefs.h <<_ACEOF
16421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16422 _ACEOF
16423
16424 echo "$as_me:$LINENO: checking for _doprnt" >&5
16425 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16426 if test "${ac_cv_func__doprnt+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   cat >conftest.$ac_ext <<_ACEOF
16430 #line $LINENO "configure"
16431 /* confdefs.h.  */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h.  */
16436 /* System header to define __stub macros and hopefully few prototypes,
16437     which can conflict with char _doprnt (); below.
16438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439     <limits.h> exists even on freestanding compilers.  */
16440 #ifdef __STDC__
16441 # include <limits.h>
16442 #else
16443 # include <assert.h>
16444 #endif
16445 /* Override any gcc2 internal prototype to avoid an error.  */
16446 #ifdef __cplusplus
16447 extern "C"
16448 {
16449 #endif
16450 /* We use char because int might match the return type of a gcc2
16451    builtin and then its argument prototype would still apply.  */
16452 char _doprnt ();
16453 /* The GNU C library defines this for functions which it implements
16454     to always fail with ENOSYS.  Some functions are actually named
16455     something starting with __ and the normal name is an alias.  */
16456 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16457 choke me
16458 #else
16459 char (*f) () = _doprnt;
16460 #endif
16461 #ifdef __cplusplus
16462 }
16463 #endif
16464
16465 int
16466 main ()
16467 {
16468 return f != _doprnt;
16469   ;
16470   return 0;
16471 }
16472 _ACEOF
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16475   (eval $ac_link) 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); } &&
16479          { ac_try='test -s conftest$ac_exeext'
16480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481   (eval $ac_try) 2>&5
16482   ac_status=$?
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); }; }; then
16485   ac_cv_func__doprnt=yes
16486 else
16487   echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 ac_cv_func__doprnt=no
16491 fi
16492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16493 fi
16494 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16495 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16496 if test $ac_cv_func__doprnt = yes; then
16497
16498 cat >>confdefs.h <<\_ACEOF
16499 #define HAVE_DOPRNT 1
16500 _ACEOF
16501
16502 fi
16503
16504 fi
16505 done
16506
16507
16508 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16509 # for constant arguments.  Useless!
16510 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16511 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16512 if test "${ac_cv_working_alloca_h+set}" = set; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   cat >conftest.$ac_ext <<_ACEOF
16516 #line $LINENO "configure"
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 #include <alloca.h>
16523 int
16524 main ()
16525 {
16526 char *p = (char *) alloca (2 * sizeof (int));
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 rm -f conftest.$ac_objext conftest$ac_exeext
16532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16533   (eval $ac_link) 2>&5
16534   ac_status=$?
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } &&
16537          { ac_try='test -s conftest$ac_exeext'
16538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539   (eval $ac_try) 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; }; then
16543   ac_cv_working_alloca_h=yes
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 ac_cv_working_alloca_h=no
16549 fi
16550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16551 fi
16552 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16553 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16554 if test $ac_cv_working_alloca_h = yes; then
16555
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE_ALLOCA_H 1
16558 _ACEOF
16559
16560 fi
16561
16562 echo "$as_me:$LINENO: checking for alloca" >&5
16563 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16564 if test "${ac_cv_func_alloca_works+set}" = set; then
16565   echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567   cat >conftest.$ac_ext <<_ACEOF
16568 #line $LINENO "configure"
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 #ifdef __GNUC__
16575 # define alloca __builtin_alloca
16576 #else
16577 # ifdef _MSC_VER
16578 #  include <malloc.h>
16579 #  define alloca _alloca
16580 # else
16581 #  if HAVE_ALLOCA_H
16582 #   include <alloca.h>
16583 #  else
16584 #   ifdef _AIX
16585  #pragma alloca
16586 #   else
16587 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16588 char *alloca ();
16589 #    endif
16590 #   endif
16591 #  endif
16592 # endif
16593 #endif
16594
16595 int
16596 main ()
16597 {
16598 char *p = (char *) alloca (1);
16599   ;
16600   return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605   (eval $ac_link) 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } &&
16609          { ac_try='test -s conftest$ac_exeext'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   ac_cv_func_alloca_works=yes
16616 else
16617   echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 ac_cv_func_alloca_works=no
16621 fi
16622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16623 fi
16624 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16625 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16626
16627 if test $ac_cv_func_alloca_works = yes; then
16628
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_ALLOCA 1
16631 _ACEOF
16632
16633 else
16634   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16635 # that cause trouble.  Some versions do not even contain alloca or
16636 # contain a buggy version.  If you still want to use their alloca,
16637 # use ar to extract alloca.o from them instead of compiling alloca.c.
16638
16639 ALLOCA=alloca.$ac_objext
16640
16641 cat >>confdefs.h <<\_ACEOF
16642 #define C_ALLOCA 1
16643 _ACEOF
16644
16645
16646 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16647 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16648 if test "${ac_cv_os_cray+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 #line $LINENO "configure"
16653 /* confdefs.h.  */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h.  */
16658 #if defined(CRAY) && ! defined(CRAY2)
16659 webecray
16660 #else
16661 wenotbecray
16662 #endif
16663
16664 _ACEOF
16665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16666   $EGREP "webecray" >/dev/null 2>&1; then
16667   ac_cv_os_cray=yes
16668 else
16669   ac_cv_os_cray=no
16670 fi
16671 rm -f conftest*
16672
16673 fi
16674 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16675 echo "${ECHO_T}$ac_cv_os_cray" >&6
16676 if test $ac_cv_os_cray = yes; then
16677   for ac_func in _getb67 GETB67 getb67; do
16678     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16679 echo "$as_me:$LINENO: checking for $ac_func" >&5
16680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16681 if eval "test \"\${$as_ac_var+set}\" = set"; then
16682   echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684   cat >conftest.$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691 /* System header to define __stub macros and hopefully few prototypes,
16692     which can conflict with char $ac_func (); below.
16693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16694     <limits.h> exists even on freestanding compilers.  */
16695 #ifdef __STDC__
16696 # include <limits.h>
16697 #else
16698 # include <assert.h>
16699 #endif
16700 /* Override any gcc2 internal prototype to avoid an error.  */
16701 #ifdef __cplusplus
16702 extern "C"
16703 {
16704 #endif
16705 /* We use char because int might match the return type of a gcc2
16706    builtin and then its argument prototype would still apply.  */
16707 char $ac_func ();
16708 /* The GNU C library defines this for functions which it implements
16709     to always fail with ENOSYS.  Some functions are actually named
16710     something starting with __ and the normal name is an alias.  */
16711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16712 choke me
16713 #else
16714 char (*f) () = $ac_func;
16715 #endif
16716 #ifdef __cplusplus
16717 }
16718 #endif
16719
16720 int
16721 main ()
16722 {
16723 return f != $ac_func;
16724   ;
16725   return 0;
16726 }
16727 _ACEOF
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16730   (eval $ac_link) 2>&5
16731   ac_status=$?
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); } &&
16734          { ac_try='test -s conftest$ac_exeext'
16735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736   (eval $ac_try) 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; }; then
16740   eval "$as_ac_var=yes"
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 eval "$as_ac_var=no"
16746 fi
16747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16748 fi
16749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16751 if test `eval echo '${'$as_ac_var'}'` = yes; then
16752
16753 cat >>confdefs.h <<_ACEOF
16754 #define CRAY_STACKSEG_END $ac_func
16755 _ACEOF
16756
16757     break
16758 fi
16759
16760   done
16761 fi
16762
16763 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16764 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16765 if test "${ac_cv_c_stack_direction+set}" = set; then
16766   echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768   if test "$cross_compiling" = yes; then
16769   ac_cv_c_stack_direction=0
16770 else
16771   cat >conftest.$ac_ext <<_ACEOF
16772 #line $LINENO "configure"
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778 int
16779 find_stack_direction ()
16780 {
16781   static char *addr = 0;
16782   auto char dummy;
16783   if (addr == 0)
16784     {
16785       addr = &dummy;
16786       return find_stack_direction ();
16787     }
16788   else
16789     return (&dummy > addr) ? 1 : -1;
16790 }
16791
16792 int
16793 main ()
16794 {
16795   exit (find_stack_direction () < 0);
16796 }
16797 _ACEOF
16798 rm -f conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800   (eval $ac_link) 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805   (eval $ac_try) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; }; then
16809   ac_cv_c_stack_direction=1
16810 else
16811   echo "$as_me: program exited with status $ac_status" >&5
16812 echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 ( exit $ac_status )
16816 ac_cv_c_stack_direction=-1
16817 fi
16818 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16819 fi
16820 fi
16821 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16822 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16823
16824 cat >>confdefs.h <<_ACEOF
16825 #define STACK_DIRECTION $ac_cv_c_stack_direction
16826 _ACEOF
16827
16828
16829 fi
16830
16831 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16832 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16833 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16834 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   ac_check_lib_save_LIBS=$LIBS
16838 LIBS="-lsun  $LIBS"
16839 cat >conftest.$ac_ext <<_ACEOF
16840 #line $LINENO "configure"
16841 /* confdefs.h.  */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h.  */
16846
16847 /* Override any gcc2 internal prototype to avoid an error.  */
16848 #ifdef __cplusplus
16849 extern "C"
16850 #endif
16851 /* We use char because int might match the return type of a gcc2
16852    builtin and then its argument prototype would still apply.  */
16853 char getmntent ();
16854 int
16855 main ()
16856 {
16857 getmntent ();
16858   ;
16859   return 0;
16860 }
16861 _ACEOF
16862 rm -f conftest.$ac_objext conftest$ac_exeext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864   (eval $ac_link) 2>&5
16865   ac_status=$?
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -s conftest$ac_exeext'
16869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870   (eval $ac_try) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; }; then
16874   ac_cv_lib_sun_getmntent=yes
16875 else
16876   echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_cv_lib_sun_getmntent=no
16880 fi
16881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16883 fi
16884 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16885 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16886 if test $ac_cv_lib_sun_getmntent = yes; then
16887   LIBS="-lsun $LIBS"
16888 else
16889   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16890 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16891 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   ac_check_lib_save_LIBS=$LIBS
16895 LIBS="-lseq  $LIBS"
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
16904 /* Override any gcc2 internal prototype to avoid an error.  */
16905 #ifdef __cplusplus
16906 extern "C"
16907 #endif
16908 /* We use char because int might match the return type of a gcc2
16909    builtin and then its argument prototype would still apply.  */
16910 char getmntent ();
16911 int
16912 main ()
16913 {
16914 getmntent ();
16915   ;
16916   return 0;
16917 }
16918 _ACEOF
16919 rm -f conftest.$ac_objext conftest$ac_exeext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16921   (eval $ac_link) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); } &&
16925          { ac_try='test -s conftest$ac_exeext'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931   ac_cv_lib_seq_getmntent=yes
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ac_cv_lib_seq_getmntent=no
16937 fi
16938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16939 LIBS=$ac_check_lib_save_LIBS
16940 fi
16941 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16942 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16943 if test $ac_cv_lib_seq_getmntent = yes; then
16944   LIBS="-lseq $LIBS"
16945 else
16946   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16947 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16948 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16949   echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951   ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-lgen  $LIBS"
16953 cat >conftest.$ac_ext <<_ACEOF
16954 #line $LINENO "configure"
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960
16961 /* Override any gcc2 internal prototype to avoid an error.  */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 /* We use char because int might match the return type of a gcc2
16966    builtin and then its argument prototype would still apply.  */
16967 char getmntent ();
16968 int
16969 main ()
16970 {
16971 getmntent ();
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978   (eval $ac_link) 2>&5
16979   ac_status=$?
16980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981   (exit $ac_status); } &&
16982          { ac_try='test -s conftest$ac_exeext'
16983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984   (eval $ac_try) 2>&5
16985   ac_status=$?
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); }; }; then
16988   ac_cv_lib_gen_getmntent=yes
16989 else
16990   echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16992
16993 ac_cv_lib_gen_getmntent=no
16994 fi
16995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16996 LIBS=$ac_check_lib_save_LIBS
16997 fi
16998 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16999 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17000 if test $ac_cv_lib_gen_getmntent = yes; then
17001   LIBS="-lgen $LIBS"
17002 fi
17003
17004 fi
17005
17006 fi
17007
17008
17009 for ac_func in getmntent
17010 do
17011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17012 echo "$as_me:$LINENO: checking for $ac_func" >&5
17013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17014 if eval "test \"\${$as_ac_var+set}\" = set"; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   cat >conftest.$ac_ext <<_ACEOF
17018 #line $LINENO "configure"
17019 /* confdefs.h.  */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h.  */
17024 /* System header to define __stub macros and hopefully few prototypes,
17025     which can conflict with char $ac_func (); below.
17026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17027     <limits.h> exists even on freestanding compilers.  */
17028 #ifdef __STDC__
17029 # include <limits.h>
17030 #else
17031 # include <assert.h>
17032 #endif
17033 /* Override any gcc2 internal prototype to avoid an error.  */
17034 #ifdef __cplusplus
17035 extern "C"
17036 {
17037 #endif
17038 /* We use char because int might match the return type of a gcc2
17039    builtin and then its argument prototype would still apply.  */
17040 char $ac_func ();
17041 /* The GNU C library defines this for functions which it implements
17042     to always fail with ENOSYS.  Some functions are actually named
17043     something starting with __ and the normal name is an alias.  */
17044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17045 choke me
17046 #else
17047 char (*f) () = $ac_func;
17048 #endif
17049 #ifdef __cplusplus
17050 }
17051 #endif
17052
17053 int
17054 main ()
17055 {
17056 return f != $ac_func;
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17063   (eval $ac_link) 2>&5
17064   ac_status=$?
17065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066   (exit $ac_status); } &&
17067          { ac_try='test -s conftest$ac_exeext'
17068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17069   (eval $ac_try) 2>&5
17070   ac_status=$?
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }; }; then
17073   eval "$as_ac_var=yes"
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 eval "$as_ac_var=no"
17079 fi
17080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17081 fi
17082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17084 if test `eval echo '${'$as_ac_var'}'` = yes; then
17085   cat >>confdefs.h <<_ACEOF
17086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17087 _ACEOF
17088
17089 fi
17090 done
17091
17092
17093 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17094 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17095 if test "${ac_cv_func_closedir_void+set}" = set; then
17096   echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098   if test "$cross_compiling" = yes; then
17099   ac_cv_func_closedir_void=yes
17100 else
17101   cat >conftest.$ac_ext <<_ACEOF
17102 #line $LINENO "configure"
17103 /* confdefs.h.  */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h.  */
17108 $ac_includes_default
17109 #include <$ac_header_dirent>
17110 #ifndef __cplusplus
17111 int closedir ();
17112 #endif
17113
17114 int
17115 main ()
17116 {
17117 exit (closedir (opendir (".")) != 0);
17118   ;
17119   return 0;
17120 }
17121 _ACEOF
17122 rm -f conftest$ac_exeext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124   (eval $ac_link) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   ac_cv_func_closedir_void=no
17134 else
17135   echo "$as_me: program exited with status $ac_status" >&5
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139 ( exit $ac_status )
17140 ac_cv_func_closedir_void=yes
17141 fi
17142 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17143 fi
17144 fi
17145 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17146 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17147 if test $ac_cv_func_closedir_void = yes; then
17148
17149 cat >>confdefs.h <<\_ACEOF
17150 #define CLOSEDIR_VOID 1
17151 _ACEOF
17152
17153 fi
17154
17155 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17156 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17157 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160   if test "$cross_compiling" = yes; then
17161   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17162 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17163    { (exit 1); exit 1; }; }
17164 else
17165   cat >conftest.$ac_ext <<_ACEOF
17166 #line $LINENO "configure"
17167 /* confdefs.h.  */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h.  */
17172 #if HAVE_UNISTD_H
17173 # include <unistd.h>
17174 #endif
17175
17176 int
17177 main ()
17178 {
17179 /* If this system has a BSD-style setpgrp which takes arguments,
17180   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17181   exit successfully. */
17182   exit (setpgrp (1,1) == -1 ? 0 : 1);
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest$ac_exeext
17188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189   (eval $ac_link) 2>&5
17190   ac_status=$?
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194   (eval $ac_try) 2>&5
17195   ac_status=$?
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); }; }; then
17198   ac_cv_func_setpgrp_void=no
17199 else
17200   echo "$as_me: program exited with status $ac_status" >&5
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204 ( exit $ac_status )
17205 ac_cv_func_setpgrp_void=yes
17206 fi
17207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17208 fi
17209 fi
17210 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17211 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17212 if test $ac_cv_func_setpgrp_void = yes; then
17213
17214 cat >>confdefs.h <<\_ACEOF
17215 #define SETPGRP_VOID 1
17216 _ACEOF
17217
17218 fi
17219                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17220 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17221 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17222   echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224   # Some versions of Solaris, SCO, and the GNU C Library
17225    # have a broken or incompatible fnmatch.
17226    # So we run a test program.  If we are cross-compiling, take no chance.
17227    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17228    if test "$cross_compiling" = yes; then
17229   ac_cv_func_fnmatch_works=cross
17230 else
17231   cat >conftest.$ac_ext <<_ACEOF
17232 #line $LINENO "configure"
17233 /* confdefs.h.  */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h.  */
17238 #include <fnmatch.h>
17239 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17240 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17241
17242 int
17243 main ()
17244 {
17245 exit
17246            (!(y ("a*", "abc", 0)
17247               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17248               && y ("a\\\\bc", "abc", 0)
17249               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17250               && y ("*x", ".x", 0)
17251               && n ("*x", ".x", FNM_PERIOD)
17252               && 1));
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest$ac_exeext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259   (eval $ac_link) 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264   (eval $ac_try) 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }; }; then
17268   ac_cv_func_fnmatch_works=yes
17269 else
17270   echo "$as_me: program exited with status $ac_status" >&5
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17273
17274 ( exit $ac_status )
17275 ac_cv_func_fnmatch_works=no
17276 fi
17277 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17278 fi
17279 fi
17280 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17281 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17282 if test $ac_cv_func_fnmatch_works = yes; then
17283
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_FNMATCH 1
17286 _ACEOF
17287
17288 fi
17289
17290
17291
17292
17293
17294 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17295 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17296 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   ac_check_lib_save_LIBS=$LIBS
17300 LIBS="-lxpg4  $LIBS"
17301 cat >conftest.$ac_ext <<_ACEOF
17302 #line $LINENO "configure"
17303 /* confdefs.h.  */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h.  */
17308
17309 /* Override any gcc2 internal prototype to avoid an error.  */
17310 #ifdef __cplusplus
17311 extern "C"
17312 #endif
17313 /* We use char because int might match the return type of a gcc2
17314    builtin and then its argument prototype would still apply.  */
17315 char setlocale ();
17316 int
17317 main ()
17318 {
17319 setlocale ();
17320   ;
17321   return 0;
17322 }
17323 _ACEOF
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17326   (eval $ac_link) 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } &&
17330          { ac_try='test -s conftest$ac_exeext'
17331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332   (eval $ac_try) 2>&5
17333   ac_status=$?
17334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); }; }; then
17336   ac_cv_lib_xpg4_setlocale=yes
17337 else
17338   echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341 ac_cv_lib_xpg4_setlocale=no
17342 fi
17343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17344 LIBS=$ac_check_lib_save_LIBS
17345 fi
17346 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17347 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17348 if test $ac_cv_lib_xpg4_setlocale = yes; then
17349   LIBS="$LIBS -lxpg4"
17350 fi
17351
17352
17353
17354
17355 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17356 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17357 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17358   echo $ECHO_N "(cached) $ECHO_C" >&6
17359 else
17360   ac_check_lib_save_LIBS=$LIBS
17361 LIBS="-lsun  $LIBS"
17362 cat >conftest.$ac_ext <<_ACEOF
17363 #line $LINENO "configure"
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369
17370 /* Override any gcc2 internal prototype to avoid an error.  */
17371 #ifdef __cplusplus
17372 extern "C"
17373 #endif
17374 /* We use char because int might match the return type of a gcc2
17375    builtin and then its argument prototype would still apply.  */
17376 char getpwnam ();
17377 int
17378 main ()
17379 {
17380 getpwnam ();
17381   ;
17382   return 0;
17383 }
17384 _ACEOF
17385 rm -f conftest.$ac_objext conftest$ac_exeext
17386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17387   (eval $ac_link) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } &&
17391          { ac_try='test -s conftest$ac_exeext'
17392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393   (eval $ac_try) 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; }; then
17397   ac_cv_lib_sun_getpwnam=yes
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 ac_cv_lib_sun_getpwnam=no
17403 fi
17404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17406 fi
17407 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17408 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17409 if test $ac_cv_lib_sun_getpwnam = yes; then
17410   cat >>confdefs.h <<_ACEOF
17411 #define HAVE_LIBSUN 1
17412 _ACEOF
17413
17414   LIBS="-lsun $LIBS"
17415
17416 fi
17417
17418
17419
17420 for ac_header in zlib.h
17421 do
17422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17424   echo "$as_me:$LINENO: checking for $ac_header" >&5
17425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17427   echo $ECHO_N "(cached) $ECHO_C" >&6
17428 fi
17429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17431 else
17432   # Is the header compilable?
17433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17435 cat >conftest.$ac_ext <<_ACEOF
17436 #line $LINENO "configure"
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442 $ac_includes_default
17443 #include <$ac_header>
17444 _ACEOF
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447   (eval $ac_compile) 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); } &&
17451          { ac_try='test -s conftest.$ac_objext'
17452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453   (eval $ac_try) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; }; then
17457   ac_header_compiler=yes
17458 else
17459   echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17461
17462 ac_header_compiler=no
17463 fi
17464 rm -f conftest.$ac_objext conftest.$ac_ext
17465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17466 echo "${ECHO_T}$ac_header_compiler" >&6
17467
17468 # Is the header present?
17469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17471 cat >conftest.$ac_ext <<_ACEOF
17472 #line $LINENO "configure"
17473 /* confdefs.h.  */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h.  */
17478 #include <$ac_header>
17479 _ACEOF
17480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17482   ac_status=$?
17483   grep -v '^ *+' conftest.er1 >conftest.err
17484   rm -f conftest.er1
17485   cat conftest.err >&5
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } >/dev/null; then
17488   if test -s conftest.err; then
17489     ac_cpp_err=$ac_c_preproc_warn_flag
17490   else
17491     ac_cpp_err=
17492   fi
17493 else
17494   ac_cpp_err=yes
17495 fi
17496 if test -z "$ac_cpp_err"; then
17497   ac_header_preproc=yes
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502   ac_header_preproc=no
17503 fi
17504 rm -f conftest.err conftest.$ac_ext
17505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17506 echo "${ECHO_T}$ac_header_preproc" >&6
17507
17508 # So?  What about this header?
17509 case $ac_header_compiler:$ac_header_preproc in
17510   yes:no )
17511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17515     (
17516       cat <<\_ASBOX
17517 ## ------------------------------------ ##
17518 ## Report this to bug-autoconf@gnu.org. ##
17519 ## ------------------------------------ ##
17520 _ASBOX
17521     ) |
17522       sed "s/^/$as_me: WARNING:     /" >&2
17523     ;;
17524   no:yes )
17525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17527     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17531     (
17532       cat <<\_ASBOX
17533 ## ------------------------------------ ##
17534 ## Report this to bug-autoconf@gnu.org. ##
17535 ## ------------------------------------ ##
17536 _ASBOX
17537     ) |
17538       sed "s/^/$as_me: WARNING:     /" >&2
17539     ;;
17540 esac
17541 echo "$as_me:$LINENO: checking for $ac_header" >&5
17542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17544   echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546   eval "$as_ac_Header=$ac_header_preproc"
17547 fi
17548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17550
17551 fi
17552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17553   cat >>confdefs.h <<_ACEOF
17554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17555 _ACEOF
17556
17557 fi
17558
17559 done
17560
17561 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17562 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17563 if test "${ac_cv_lib_z_deflate+set}" = set; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   ac_check_lib_save_LIBS=$LIBS
17567 LIBS="-lz  $LIBS"
17568 cat >conftest.$ac_ext <<_ACEOF
17569 #line $LINENO "configure"
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575
17576 /* Override any gcc2 internal prototype to avoid an error.  */
17577 #ifdef __cplusplus
17578 extern "C"
17579 #endif
17580 /* We use char because int might match the return type of a gcc2
17581    builtin and then its argument prototype would still apply.  */
17582 char deflate ();
17583 int
17584 main ()
17585 {
17586 deflate ();
17587   ;
17588   return 0;
17589 }
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17593   (eval $ac_link) 2>&5
17594   ac_status=$?
17595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596   (exit $ac_status); } &&
17597          { ac_try='test -s conftest$ac_exeext'
17598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599   (eval $ac_try) 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; }; then
17603   ac_cv_lib_z_deflate=yes
17604 else
17605   echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17607
17608 ac_cv_lib_z_deflate=no
17609 fi
17610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17612 fi
17613 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17614 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17615 if test $ac_cv_lib_z_deflate = yes; then
17616   FDLIBS="-lz"
17617 fi
17618
17619 have_zlib=no
17620 if test x$FDLIBS = x-lz; then
17621   cat >>confdefs.h <<\_ACEOF
17622 #define HAVE_LIBZ 1
17623 _ACEOF
17624
17625   have_zlib=yes
17626 fi
17627
17628 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17629   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17630 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17631 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17632   echo $ECHO_N "(cached) $ECHO_C" >&6
17633 fi
17634 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17635 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17636 else
17637   # Is the header compilable?
17638 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17639 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17640 cat >conftest.$ac_ext <<_ACEOF
17641 #line $LINENO "configure"
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647 $ac_includes_default
17648 #include <sys/acl.h>
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652   (eval $ac_compile) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); } &&
17656          { ac_try='test -s conftest.$ac_objext'
17657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658   (eval $ac_try) 2>&5
17659   ac_status=$?
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); }; }; then
17662   ac_header_compiler=yes
17663 else
17664   echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17666
17667 ac_header_compiler=no
17668 fi
17669 rm -f conftest.$ac_objext conftest.$ac_ext
17670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17671 echo "${ECHO_T}$ac_header_compiler" >&6
17672
17673 # Is the header present?
17674 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17675 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17676 cat >conftest.$ac_ext <<_ACEOF
17677 #line $LINENO "configure"
17678 /* confdefs.h.  */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h.  */
17683 #include <sys/acl.h>
17684 _ACEOF
17685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } >/dev/null; then
17693   if test -s conftest.err; then
17694     ac_cpp_err=$ac_c_preproc_warn_flag
17695   else
17696     ac_cpp_err=
17697   fi
17698 else
17699   ac_cpp_err=yes
17700 fi
17701 if test -z "$ac_cpp_err"; then
17702   ac_header_preproc=yes
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707   ac_header_preproc=no
17708 fi
17709 rm -f conftest.err conftest.$ac_ext
17710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17711 echo "${ECHO_T}$ac_header_preproc" >&6
17712
17713 # So?  What about this header?
17714 case $ac_header_compiler:$ac_header_preproc in
17715   yes:no )
17716     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17717 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17718     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17719 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17720     (
17721       cat <<\_ASBOX
17722 ## ------------------------------------ ##
17723 ## Report this to bug-autoconf@gnu.org. ##
17724 ## ------------------------------------ ##
17725 _ASBOX
17726     ) |
17727       sed "s/^/$as_me: WARNING:     /" >&2
17728     ;;
17729   no:yes )
17730     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17731 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17732     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17733 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17734     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17735 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17736     (
17737       cat <<\_ASBOX
17738 ## ------------------------------------ ##
17739 ## Report this to bug-autoconf@gnu.org. ##
17740 ## ------------------------------------ ##
17741 _ASBOX
17742     ) |
17743       sed "s/^/$as_me: WARNING:     /" >&2
17744     ;;
17745 esac
17746 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17747 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17748 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17749   echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751   ac_cv_header_sys_acl_h=$ac_header_preproc
17752 fi
17753 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17754 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17755
17756 fi
17757
17758
17759 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17760 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17761 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   ac_check_lib_save_LIBS=$LIBS
17765 LIBS="-lacl  $LIBS"
17766 cat >conftest.$ac_ext <<_ACEOF
17767 #line $LINENO "configure"
17768 /* confdefs.h.  */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h.  */
17773
17774 /* Override any gcc2 internal prototype to avoid an error.  */
17775 #ifdef __cplusplus
17776 extern "C"
17777 #endif
17778 /* We use char because int might match the return type of a gcc2
17779    builtin and then its argument prototype would still apply.  */
17780 char acl_get_file ();
17781 int
17782 main ()
17783 {
17784 acl_get_file ();
17785   ;
17786   return 0;
17787 }
17788 _ACEOF
17789 rm -f conftest.$ac_objext conftest$ac_exeext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17791   (eval $ac_link) 2>&5
17792   ac_status=$?
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -s conftest$ac_exeext'
17796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797   (eval $ac_try) 2>&5
17798   ac_status=$?
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); }; }; then
17801   ac_cv_lib_acl_acl_get_file=yes
17802 else
17803   echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17805
17806 ac_cv_lib_acl_acl_get_file=no
17807 fi
17808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17809 LIBS=$ac_check_lib_save_LIBS
17810 fi
17811 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17812 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17813 if test $ac_cv_lib_acl_acl_get_file = yes; then
17814   FDLIBS="-lacl $FDLIBS"
17815 fi
17816
17817 have_acl=no
17818 if test $ac_cv_lib_acl_acl_get_file = yes; then
17819    cat >>confdefs.h <<\_ACEOF
17820 #define HAVE_ACL 1
17821 _ACEOF
17822
17823    have_acl=yes
17824 fi
17825
17826 PTHREAD_LIB=""
17827 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17828 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17829 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17830   echo $ECHO_N "(cached) $ECHO_C" >&6
17831 else
17832   ac_check_lib_save_LIBS=$LIBS
17833 LIBS="-lpthread  $LIBS"
17834 cat >conftest.$ac_ext <<_ACEOF
17835 #line $LINENO "configure"
17836 /* confdefs.h.  */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h.  */
17841
17842 /* Override any gcc2 internal prototype to avoid an error.  */
17843 #ifdef __cplusplus
17844 extern "C"
17845 #endif
17846 /* We use char because int might match the return type of a gcc2
17847    builtin and then its argument prototype would still apply.  */
17848 char pthread_create ();
17849 int
17850 main ()
17851 {
17852 pthread_create ();
17853   ;
17854   return 0;
17855 }
17856 _ACEOF
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17859   (eval $ac_link) 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } &&
17863          { ac_try='test -s conftest$ac_exeext'
17864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865   (eval $ac_try) 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); }; }; then
17869   ac_cv_lib_pthread_pthread_create=yes
17870 else
17871   echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874 ac_cv_lib_pthread_pthread_create=no
17875 fi
17876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17877 LIBS=$ac_check_lib_save_LIBS
17878 fi
17879 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17880 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17881 if test $ac_cv_lib_pthread_pthread_create = yes; then
17882   PTHREAD_LIB="-lpthread"
17883 else
17884   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17885 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17886 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17887   echo $ECHO_N "(cached) $ECHO_C" >&6
17888 else
17889   ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-lpthreads  $LIBS"
17891 cat >conftest.$ac_ext <<_ACEOF
17892 #line $LINENO "configure"
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898
17899 /* Override any gcc2 internal prototype to avoid an error.  */
17900 #ifdef __cplusplus
17901 extern "C"
17902 #endif
17903 /* We use char because int might match the return type of a gcc2
17904    builtin and then its argument prototype would still apply.  */
17905 char pthread_create ();
17906 int
17907 main ()
17908 {
17909 pthread_create ();
17910   ;
17911   return 0;
17912 }
17913 _ACEOF
17914 rm -f conftest.$ac_objext conftest$ac_exeext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17916   (eval $ac_link) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } &&
17920          { ac_try='test -s conftest$ac_exeext'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   ac_cv_lib_pthreads_pthread_create=yes
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 ac_cv_lib_pthreads_pthread_create=no
17932 fi
17933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17935 fi
17936 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17937 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17938 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17939   PTHREAD_LIB="-lpthreads"
17940 else
17941   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17942 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17943 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   ac_check_lib_save_LIBS=$LIBS
17947 LIBS="-lc_r  $LIBS"
17948 cat >conftest.$ac_ext <<_ACEOF
17949 #line $LINENO "configure"
17950 /* confdefs.h.  */
17951 _ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h.  */
17955
17956 /* Override any gcc2 internal prototype to avoid an error.  */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 /* We use char because int might match the return type of a gcc2
17961    builtin and then its argument prototype would still apply.  */
17962 char pthread_create ();
17963 int
17964 main ()
17965 {
17966 pthread_create ();
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973   (eval $ac_link) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); } &&
17977          { ac_try='test -s conftest$ac_exeext'
17978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979   (eval $ac_try) 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); }; }; then
17983   ac_cv_lib_c_r_pthread_create=yes
17984 else
17985   echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17987
17988 ac_cv_lib_c_r_pthread_create=no
17989 fi
17990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17991 LIBS=$ac_check_lib_save_LIBS
17992 fi
17993 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17994 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17995 if test $ac_cv_lib_c_r_pthread_create = yes; then
17996   PTHREAD_LIB="-lc_r"
17997 else
17998   echo "$as_me:$LINENO: checking for pthread_create" >&5
17999 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18000 if test "${ac_cv_func_pthread_create+set}" = set; then
18001   echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18003   cat >conftest.$ac_ext <<_ACEOF
18004 #line $LINENO "configure"
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010 /* System header to define __stub macros and hopefully few prototypes,
18011     which can conflict with char pthread_create (); below.
18012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18013     <limits.h> exists even on freestanding compilers.  */
18014 #ifdef __STDC__
18015 # include <limits.h>
18016 #else
18017 # include <assert.h>
18018 #endif
18019 /* Override any gcc2 internal prototype to avoid an error.  */
18020 #ifdef __cplusplus
18021 extern "C"
18022 {
18023 #endif
18024 /* We use char because int might match the return type of a gcc2
18025    builtin and then its argument prototype would still apply.  */
18026 char pthread_create ();
18027 /* The GNU C library defines this for functions which it implements
18028     to always fail with ENOSYS.  Some functions are actually named
18029     something starting with __ and the normal name is an alias.  */
18030 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18031 choke me
18032 #else
18033 char (*f) () = pthread_create;
18034 #endif
18035 #ifdef __cplusplus
18036 }
18037 #endif
18038
18039 int
18040 main ()
18041 {
18042 return f != pthread_create;
18043   ;
18044   return 0;
18045 }
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049   (eval $ac_link) 2>&5
18050   ac_status=$?
18051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); } &&
18053          { ac_try='test -s conftest$ac_exeext'
18054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055   (eval $ac_try) 2>&5
18056   ac_status=$?
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); }; }; then
18059   ac_cv_func_pthread_create=yes
18060 else
18061   echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064 ac_cv_func_pthread_create=no
18065 fi
18066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18067 fi
18068 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18069 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18070
18071
18072 fi
18073
18074
18075 fi
18076
18077
18078 fi
18079
18080
18081
18082 cat >>confdefs.h <<\_ACEOF
18083 #define FDLIBS 1
18084 _ACEOF
18085
18086
18087
18088 CFLAGS=${CFLAGS--O}
18089 LDFLAGS=${LDFLAGS--O}
18090 DB_LIBS="${SQL_LFLAGS}"
18091
18092 CPPFLAGS="$CPPFLAGS"
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107 OBJLIST=
18108
18109
18110 lld="lld"
18111 llu="llu"
18112
18113 WCFLAGS=
18114 WLDFLAGS=
18115
18116 #
18117 # Finally we set appropriate distribution specific
18118 #  variables and defaults
18119 #
18120 # PFILES are platform specific files
18121 PFILES="platforms/Makefile"
18122 PSCMD="ps -e"
18123 WIN32=
18124 MACOSX=
18125 hostname=`uname -n | cut -d '.' -f 1`
18126 case "$DISTNAME" in
18127 aix)
18128         DISTVER=`uname -r`
18129         PSCMD="ps -e -o pid,comm"
18130         PFILES="${PFILES} \
18131            platforms/aix/Makefile"
18132         TAPEDRIVE="/dev/rmt0.1"
18133   ;;
18134 alpha)
18135         DISTVER=`uname -r`
18136         PTHREAD_LIB="-lpthread -lexc"
18137         if test "${CC}" = "gcc" ; then
18138            lld="lld"
18139            llu="llu"
18140         else
18141            lld="ld"
18142            llu="lu"
18143         fi
18144         TAPEDRIVE="/dev/nrmt0"
18145   ;;
18146 bsdi)
18147         DISTVER=`uname -a |awk '{print $3}'`
18148         TAPEDRIVE="/dev/nrmt0"
18149         PTHREAD_LIB="-pthread"
18150         CFLAGS="${CFLAGS} -pthread"
18151         PSCMD="ps -x -o pid,command"
18152         lld="qd"
18153         llu="qu"
18154         PFILES="${PFILES} \
18155             platforms/bsdi/Makefile \
18156             platforms/bsdi/bacula-fd \
18157             platforms/bsdi/bacula-sd \
18158             platforms/bsdi/bacula-dir"
18159         largefile_support="yes"
18160   ;;
18161 cygwin)
18162         DISTVER=`uname -a |awk '{print $3}'`
18163         TAPEDRIVE="/dev/nrst0"
18164         WIN32=win32
18165         WCFLAGS="-mwindows"
18166         WLDFLAGS="-mwindows"
18167   ;;
18168 darwin)
18169         DISTVER=`uname -r`
18170         TAPEDRIVE="/dev/nst0"
18171         PSCMD="ps -e -o pid,command"
18172         MACOSX=macosx
18173         PFILES="${PFILES} \
18174            platforms/darwin/Makefile"
18175   ;;
18176 debian)
18177         DISTVER=`cat /etc/debian_version`
18178         TAPEDRIVE="/dev/nrst0"
18179         PSCMD="ps -e -o pid,command"
18180   ;;
18181 freebsd)
18182         DISTVER=`uname -a |awk '{print $3}'`
18183         VER=`echo $DISTVER | cut -c 1`
18184         if test x$VER = x4 ; then
18185            PTHREAD_LIB="-pthread"
18186            CFLAGS="${CFLAGS} -pthread"
18187         fi
18188         lld="qd"
18189         llu="qu"
18190         TAPEDRIVE="/dev/nrsa0"
18191         PSCMD="ps -x -o pid,command"
18192         PFILES="${PFILES} \
18193             platforms/freebsd/Makefile \
18194             platforms/freebsd/bacula-fd \
18195             platforms/freebsd/bacula-sd \
18196             platforms/freebsd/bacula-dir"
18197         largefile_support="yes"
18198   ;;
18199 hpux)
18200         PSCMD="UNIX95=1 ps -e -o pid,comm"
18201         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18202         DISTVER=`uname -r`
18203         TAPEDRIVE="/dev/rmt/0hnb"
18204   ;;
18205 irix)
18206         DISTVER=`uname -r`
18207         TAPEDRIVE="/dev/rmt/0cbn"
18208         PSCMD="ps -e -o pid,comm"
18209         PFILES="${PFILES} \
18210             platforms/irix/Makefile \
18211             platforms/irix/bacula-fd \
18212             platforms/irix/bacula-sd \
18213             platforms/irix/bacula-dir"
18214   ;;
18215 netbsd)
18216         DISTVER=`uname -a |awk '{print $3}'`
18217         lld="qd"
18218         llu="qu"
18219         TAPEDRIVE="/dev/nrst0"
18220         PSCMD="ps -a -o pid,command"
18221         PTHREAD_LIB="-pthread"
18222         CFLAGS="${CFLAGS} -pthread"
18223   ;;
18224 openbsd)
18225         DISTVER=`uname -a |awk '{print $3}'`
18226         lld="qd"
18227         llu="qu"
18228         TAPEDRIVE="/dev/nrst0"
18229         PSCMD="ps -a -o pid,command"
18230         PTHREAD_LIB="-pthread"
18231         CFLAGS="${CFLAGS} -pthread"
18232         PFILES="${PFILES} \
18233             platforms/openbsd/Makefile \
18234             platforms/openbsd/bacula-fd \
18235             platforms/openbsd/bacula-sd \
18236             platforms/openbsd/bacula-dir"
18237   ;;
18238 redhat)
18239         if test `cat /etc/redhat-release | grep release |\
18240                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18241            DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
18242                     cut -f 6 -d ' '`
18243         else
18244             DISTVER=`cat /etc/redhat-release | grep release |\
18245                      cut -f 5 -d ' '`
18246         fi
18247         TAPEDRIVE="/dev/nst0"
18248         PSCMD="ps -e -o pid,command"
18249         PFILES="${PFILES} \
18250             platforms/redhat/Makefile \
18251             platforms/redhat/bacula-fd \
18252             platforms/redhat/bacula-sd \
18253             platforms/redhat/bacula-dir \
18254             platforms/redhat/bacula.spec \
18255             "
18256         hostname=`hostname -s`
18257   ;;
18258 mandrake)
18259         DISTVER=`cat /etc/mandrake-release | grep release |\
18260            cut -f 5 -d ' '`
18261         TAPEDRIVE="/dev/nst0"
18262         PSCMD="ps -e -o pid,command"
18263         PFILES="${PFILES} \
18264             platforms/mandrake/Makefile \
18265             platforms/mandrake/bacula-fd \
18266             platforms/mandrake/bacula-sd \
18267             platforms/mandrake/bacula-dir \
18268             platforms/mandrake/bacula.spec \
18269             "
18270   ;;
18271 gentoo)
18272         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18273         TAPEDRIVE="/dev/nst0"
18274         PSCMD="ps -e -o pid,command"
18275         PFILES="${PFILES} \
18276             platforms/gentoo/Makefile \
18277             platforms/gentoo/bacula-fd \
18278             platforms/gentoo/bacula-sd \
18279             platforms/gentoo/bacula-dir"
18280   ;;
18281 slackware)
18282         DISTVER=`cat /etc/slackware-version`
18283         TAPEDRIVE="/dev/nst0"
18284         PSCMD="ps -e -o pid,command"
18285         PFILES="${PFILES} \
18286             platforms/slackware/Makefile \
18287             platforms/slackware/rc.bacula-fd \
18288             platforms/slackware/rc.bacula-sd \
18289             platforms/slackware/rc.bacula-dir\
18290             platforms/slackware/functions.bacula"
18291   ;;
18292 solaris)
18293         DISTVER=`uname -r`
18294         TAPEDRIVE="/dev/rmt/0cbn"
18295         PSCMD="ps -e -o pid,comm"
18296         PFILES="${PFILES} \
18297             platforms/solaris/Makefile \
18298             platforms/solaris/bacula-fd \
18299             platforms/solaris/bacula-sd \
18300             platforms/solaris/bacula-dir"
18301         if test x$DISTVER = x5.6 ; then
18302             cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_OLD_SOCKOPT 1
18304 _ACEOF
18305
18306         fi
18307   ;;
18308 suse)
18309         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18310             cut -f 3 -d ' '`
18311         TAPEDRIVE="/dev/nst0"
18312         PSCMD="ps -e -o pid,command"
18313         PFILES="${PFILES} \
18314             platforms/suse/Makefile \
18315             platforms/suse/bacula-fd \
18316             platforms/suse/bacula-sd \
18317             platforms/suse/bacula-dir \
18318             platforms/suse/bacula \
18319             platforms/suse/bacula.spec"
18320   ;;
18321 suse5)
18322         DISTNAME=suse
18323         DISTVER=5.x
18324         TAPEDRIVE="/dev/nst0"
18325         PSCMD="ps -e -o pid,command"
18326         PFILES="${PFILES} \
18327             platforms/suse/Makefile \
18328             platforms/suse/bacula-fd \
18329             platforms/suse/bacula-sd \
18330             platforms/suse/bacula-dir"
18331   ;;
18332 unknown)
18333         DISTVER=unknown
18334         TAPEDRIVE="/dev/nst0"
18335   ;;
18336 *)
18337   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18338   ;;
18339 esac
18340
18341
18342
18343 LIBS="$PTHREAD_LIB $LIBS"
18344
18345 cat >>confdefs.h <<_ACEOF
18346 #define lld "$lld"
18347 _ACEOF
18348
18349 cat >>confdefs.h <<_ACEOF
18350 #define llu "$llu"
18351 _ACEOF
18352
18353
18354
18355
18356
18357
18358
18359
18360 MCOMMON=./autoconf/Make.common
18361
18362
18363 if test "x${subsysdir}" = "x${sbindir}" ; then
18364    echo " "
18365    echo " "
18366    echo "You have set both --sbindir and --with-subsys-dir"
18367    echo "  equal to: ${subsysdir} "
18368    echo "This is not permitted. Please reconfigure."
18369    echo " "
18370    echo "Aborting configuration ..."
18371    echo " "
18372    echo " "
18373    exit 1
18374 fi
18375
18376                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18377           ac_config_commands="$ac_config_commands default"
18378 cat >confcache <<\_ACEOF
18379 # This file is a shell script that caches the results of configure
18380 # tests run on this system so they can be shared between configure
18381 # scripts and configure runs, see configure's option --config-cache.
18382 # It is not useful on other systems.  If it contains results you don't
18383 # want to keep, you may remove or edit it.
18384 #
18385 # config.status only pays attention to the cache file if you give it
18386 # the --recheck option to rerun configure.
18387 #
18388 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18390 # following values.
18391
18392 _ACEOF
18393
18394 # The following way of writing the cache mishandles newlines in values,
18395 # but we know of no workaround that is simple, portable, and efficient.
18396 # So, don't put newlines in cache variables' values.
18397 # Ultrix sh set writes to stderr and can't be redirected directly,
18398 # and sets the high bit in the cache file unless we assign to the vars.
18399 {
18400   (set) 2>&1 |
18401     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18402     *ac_space=\ *)
18403       # `set' does not quote correctly, so add quotes (double-quote
18404       # substitution turns \\\\ into \\, and sed turns \\ into \).
18405       sed -n \
18406         "s/'/'\\\\''/g;
18407           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18408       ;;
18409     *)
18410       # `set' quotes correctly as required by POSIX, so do not add quotes.
18411       sed -n \
18412         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18413       ;;
18414     esac;
18415 } |
18416   sed '
18417      t clear
18418      : clear
18419      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18420      t end
18421      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18422      : end' >>confcache
18423 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18424   if test -w $cache_file; then
18425     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18426     cat confcache >$cache_file
18427   else
18428     echo "not updating unwritable cache $cache_file"
18429   fi
18430 fi
18431 rm -f confcache
18432
18433 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18434 # Let make expand exec_prefix.
18435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18436
18437 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18438 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18439 # trailing colons and then remove the whole line if VPATH becomes empty
18440 # (actually we leave an empty line to preserve line numbers).
18441 if test "x$srcdir" = x.; then
18442   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18443 s/:*\$(srcdir):*/:/;
18444 s/:*\${srcdir}:*/:/;
18445 s/:*@srcdir@:*/:/;
18446 s/^\([^=]*=[    ]*\):*/\1/;
18447 s/:*$//;
18448 s/^[^=]*=[      ]*$//;
18449 }'
18450 fi
18451
18452 DEFS=-DHAVE_CONFIG_H
18453
18454 ac_libobjs=
18455 ac_ltlibobjs=
18456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18457   # 1. Remove the extension, and $U if already installed.
18458   ac_i=`echo "$ac_i" |
18459          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18460   # 2. Add them.
18461   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18462   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18463 done
18464 LIBOBJS=$ac_libobjs
18465
18466 LTLIBOBJS=$ac_ltlibobjs
18467
18468
18469
18470 : ${CONFIG_STATUS=./config.status}
18471 ac_clean_files_save=$ac_clean_files
18472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18474 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18475 cat >$CONFIG_STATUS <<_ACEOF
18476 #! $SHELL
18477 # Generated by $as_me.
18478 # Run this file to recreate the current configuration.
18479 # Compiler output produced by configure, useful for debugging
18480 # configure, is in config.log if it exists.
18481
18482 debug=false
18483 ac_cs_recheck=false
18484 ac_cs_silent=false
18485 SHELL=\${CONFIG_SHELL-$SHELL}
18486 _ACEOF
18487
18488 cat >>$CONFIG_STATUS <<\_ACEOF
18489 ## --------------------- ##
18490 ## M4sh Initialization.  ##
18491 ## --------------------- ##
18492
18493 # Be Bourne compatible
18494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18495   emulate sh
18496   NULLCMD=:
18497   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18498   # is contrary to our usage.  Disable this feature.
18499   alias -g '${1+"$@"}'='"$@"'
18500 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18501   set -o posix
18502 fi
18503
18504 # Support unset when possible.
18505 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18506   as_unset=unset
18507 else
18508   as_unset=false
18509 fi
18510
18511
18512 # Work around bugs in pre-3.0 UWIN ksh.
18513 $as_unset ENV MAIL MAILPATH
18514 PS1='$ '
18515 PS2='> '
18516 PS4='+ '
18517
18518 # NLS nuisances.
18519 for as_var in \
18520   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18521   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18522   LC_TELEPHONE LC_TIME
18523 do
18524   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18525     eval $as_var=C; export $as_var
18526   else
18527     $as_unset $as_var
18528   fi
18529 done
18530
18531 # Required to use basename.
18532 if expr a : '\(a\)' >/dev/null 2>&1; then
18533   as_expr=expr
18534 else
18535   as_expr=false
18536 fi
18537
18538 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18539   as_basename=basename
18540 else
18541   as_basename=false
18542 fi
18543
18544
18545 # Name of the executable.
18546 as_me=`$as_basename "$0" ||
18547 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18548          X"$0" : 'X\(//\)$' \| \
18549          X"$0" : 'X\(/\)$' \| \
18550          .     : '\(.\)' 2>/dev/null ||
18551 echo X/"$0" |
18552     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18553           /^X\/\(\/\/\)$/{ s//\1/; q; }
18554           /^X\/\(\/\).*/{ s//\1/; q; }
18555           s/.*/./; q'`
18556
18557
18558 # PATH needs CR, and LINENO needs CR and PATH.
18559 # Avoid depending upon Character Ranges.
18560 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18561 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18562 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18563 as_cr_digits='0123456789'
18564 as_cr_alnum=$as_cr_Letters$as_cr_digits
18565
18566 # The user is always right.
18567 if test "${PATH_SEPARATOR+set}" != set; then
18568   echo "#! /bin/sh" >conf$$.sh
18569   echo  "exit 0"   >>conf$$.sh
18570   chmod +x conf$$.sh
18571   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18572     PATH_SEPARATOR=';'
18573   else
18574     PATH_SEPARATOR=:
18575   fi
18576   rm -f conf$$.sh
18577 fi
18578
18579
18580   as_lineno_1=$LINENO
18581   as_lineno_2=$LINENO
18582   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18583   test "x$as_lineno_1" != "x$as_lineno_2" &&
18584   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18585   # Find who we are.  Look in the path if we contain no path at all
18586   # relative or not.
18587   case $0 in
18588     *[\\/]* ) as_myself=$0 ;;
18589     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18590 for as_dir in $PATH
18591 do
18592   IFS=$as_save_IFS
18593   test -z "$as_dir" && as_dir=.
18594   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18595 done
18596
18597        ;;
18598   esac
18599   # We did not find ourselves, most probably we were run as `sh COMMAND'
18600   # in which case we are not to be found in the path.
18601   if test "x$as_myself" = x; then
18602     as_myself=$0
18603   fi
18604   if test ! -f "$as_myself"; then
18605     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18606 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18607    { (exit 1); exit 1; }; }
18608   fi
18609   case $CONFIG_SHELL in
18610   '')
18611     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18612 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18613 do
18614   IFS=$as_save_IFS
18615   test -z "$as_dir" && as_dir=.
18616   for as_base in sh bash ksh sh5; do
18617          case $as_dir in
18618          /*)
18619            if ("$as_dir/$as_base" -c '
18620   as_lineno_1=$LINENO
18621   as_lineno_2=$LINENO
18622   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18623   test "x$as_lineno_1" != "x$as_lineno_2" &&
18624   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18625              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18626              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18627              CONFIG_SHELL=$as_dir/$as_base
18628              export CONFIG_SHELL
18629              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18630            fi;;
18631          esac
18632        done
18633 done
18634 ;;
18635   esac
18636
18637   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18638   # uniformly replaced by the line number.  The first 'sed' inserts a
18639   # line-number line before each line; the second 'sed' does the real
18640   # work.  The second script uses 'N' to pair each line-number line
18641   # with the numbered line, and appends trailing '-' during
18642   # substitution so that $LINENO is not a special case at line end.
18643   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18644   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18645   sed '=' <$as_myself |
18646     sed '
18647       N
18648       s,$,-,
18649       : loop
18650       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18651       t loop
18652       s,-$,,
18653       s,^['$as_cr_digits']*\n,,
18654     ' >$as_me.lineno &&
18655   chmod +x $as_me.lineno ||
18656     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18657 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18658    { (exit 1); exit 1; }; }
18659
18660   # Don't try to exec as it changes $[0], causing all sort of problems
18661   # (the dirname of $[0] is not the place where we might find the
18662   # original and so on.  Autoconf is especially sensible to this).
18663   . ./$as_me.lineno
18664   # Exit status is that of the last command.
18665   exit
18666 }
18667
18668
18669 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18670   *c*,-n*) ECHO_N= ECHO_C='
18671 ' ECHO_T='      ' ;;
18672   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18673   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18674 esac
18675
18676 if expr a : '\(a\)' >/dev/null 2>&1; then
18677   as_expr=expr
18678 else
18679   as_expr=false
18680 fi
18681
18682 rm -f conf$$ conf$$.exe conf$$.file
18683 echo >conf$$.file
18684 if ln -s conf$$.file conf$$ 2>/dev/null; then
18685   # We could just check for DJGPP; but this test a) works b) is more generic
18686   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18687   if test -f conf$$.exe; then
18688     # Don't use ln at all; we don't have any links
18689     as_ln_s='cp -p'
18690   else
18691     as_ln_s='ln -s'
18692   fi
18693 elif ln conf$$.file conf$$ 2>/dev/null; then
18694   as_ln_s=ln
18695 else
18696   as_ln_s='cp -p'
18697 fi
18698 rm -f conf$$ conf$$.exe conf$$.file
18699
18700 if mkdir -p . 2>/dev/null; then
18701   as_mkdir_p=:
18702 else
18703   as_mkdir_p=false
18704 fi
18705
18706 as_executable_p="test -f"
18707
18708 # Sed expression to map a string onto a valid CPP name.
18709 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18710
18711 # Sed expression to map a string onto a valid variable name.
18712 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18713
18714
18715 # IFS
18716 # We need space, tab and new line, in precisely that order.
18717 as_nl='
18718 '
18719 IFS="   $as_nl"
18720
18721 # CDPATH.
18722 $as_unset CDPATH
18723
18724 exec 6>&1
18725
18726 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18727 # report actual input values of CONFIG_FILES etc. instead of their
18728 # values after options handling.  Logging --version etc. is OK.
18729 exec 5>>config.log
18730 {
18731   echo
18732   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18733 ## Running $as_me. ##
18734 _ASBOX
18735 } >&5
18736 cat >&5 <<_CSEOF
18737
18738 This file was extended by $as_me, which was
18739 generated by GNU Autoconf 2.57.  Invocation command line was
18740
18741   CONFIG_FILES    = $CONFIG_FILES
18742   CONFIG_HEADERS  = $CONFIG_HEADERS
18743   CONFIG_LINKS    = $CONFIG_LINKS
18744   CONFIG_COMMANDS = $CONFIG_COMMANDS
18745   $ $0 $@
18746
18747 _CSEOF
18748 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18749 echo >&5
18750 _ACEOF
18751
18752 # Files that config.status was made for.
18753 if test -n "$ac_config_files"; then
18754   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18755 fi
18756
18757 if test -n "$ac_config_headers"; then
18758   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18759 fi
18760
18761 if test -n "$ac_config_links"; then
18762   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18763 fi
18764
18765 if test -n "$ac_config_commands"; then
18766   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18767 fi
18768
18769 cat >>$CONFIG_STATUS <<\_ACEOF
18770
18771 ac_cs_usage="\
18772 \`$as_me' instantiates files from templates according to the
18773 current configuration.
18774
18775 Usage: $0 [OPTIONS] [FILE]...
18776
18777   -h, --help       print this help, then exit
18778   -V, --version    print version number, then exit
18779   -q, --quiet      do not print progress messages
18780   -d, --debug      don't remove temporary files
18781       --recheck    update $as_me by reconfiguring in the same conditions
18782   --file=FILE[:TEMPLATE]
18783                    instantiate the configuration file FILE
18784   --header=FILE[:TEMPLATE]
18785                    instantiate the configuration header FILE
18786
18787 Configuration files:
18788 $config_files
18789
18790 Configuration headers:
18791 $config_headers
18792
18793 Configuration commands:
18794 $config_commands
18795
18796 Report bugs to <bug-autoconf@gnu.org>."
18797 _ACEOF
18798
18799 cat >>$CONFIG_STATUS <<_ACEOF
18800 ac_cs_version="\\
18801 config.status
18802 configured by $0, generated by GNU Autoconf 2.57,
18803   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18804
18805 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18806 Free Software Foundation, Inc.
18807 This config.status script is free software; the Free Software Foundation
18808 gives unlimited permission to copy, distribute and modify it."
18809 srcdir=$srcdir
18810 INSTALL="$INSTALL"
18811 _ACEOF
18812
18813 cat >>$CONFIG_STATUS <<\_ACEOF
18814 # If no file are specified by the user, then we need to provide default
18815 # value.  By we need to know if files were specified by the user.
18816 ac_need_defaults=:
18817 while test $# != 0
18818 do
18819   case $1 in
18820   --*=*)
18821     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18822     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18823     ac_shift=:
18824     ;;
18825   -*)
18826     ac_option=$1
18827     ac_optarg=$2
18828     ac_shift=shift
18829     ;;
18830   *) # This is not an option, so the user has probably given explicit
18831      # arguments.
18832      ac_option=$1
18833      ac_need_defaults=false;;
18834   esac
18835
18836   case $ac_option in
18837   # Handling of the options.
18838 _ACEOF
18839 cat >>$CONFIG_STATUS <<\_ACEOF
18840   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18841     ac_cs_recheck=: ;;
18842   --version | --vers* | -V )
18843     echo "$ac_cs_version"; exit 0 ;;
18844   --he | --h)
18845     # Conflict between --help and --header
18846     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18847 Try \`$0 --help' for more information." >&5
18848 echo "$as_me: error: ambiguous option: $1
18849 Try \`$0 --help' for more information." >&2;}
18850    { (exit 1); exit 1; }; };;
18851   --help | --hel | -h )
18852     echo "$ac_cs_usage"; exit 0 ;;
18853   --debug | --d* | -d )
18854     debug=: ;;
18855   --file | --fil | --fi | --f )
18856     $ac_shift
18857     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18858     ac_need_defaults=false;;
18859   --header | --heade | --head | --hea )
18860     $ac_shift
18861     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18862     ac_need_defaults=false;;
18863   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18864   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18865     ac_cs_silent=: ;;
18866
18867   # This is an error.
18868   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18869 Try \`$0 --help' for more information." >&5
18870 echo "$as_me: error: unrecognized option: $1
18871 Try \`$0 --help' for more information." >&2;}
18872    { (exit 1); exit 1; }; } ;;
18873
18874   *) ac_config_targets="$ac_config_targets $1" ;;
18875
18876   esac
18877   shift
18878 done
18879
18880 ac_configure_extra_args=
18881
18882 if $ac_cs_silent; then
18883   exec 6>/dev/null
18884   ac_configure_extra_args="$ac_configure_extra_args --silent"
18885 fi
18886
18887 _ACEOF
18888 cat >>$CONFIG_STATUS <<_ACEOF
18889 if \$ac_cs_recheck; then
18890   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18891   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18892 fi
18893
18894 _ACEOF
18895
18896
18897
18898
18899
18900 cat >>$CONFIG_STATUS <<\_ACEOF
18901 for ac_config_target in $ac_config_targets
18902 do
18903   case "$ac_config_target" in
18904   # Handling of arguments.
18905   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18906   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18907   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18908   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18909   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18910   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18911   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18912   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18913   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18914   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18915   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18916   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18917   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18918   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18919   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18920   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18921   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18922   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18923   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18924   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18925   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18926   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18927   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18928   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18929   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18930   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18931   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18932   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18933   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18934   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18935   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18936   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18937   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18938   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18939   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18940   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18941   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18942   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18943   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18944   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18945   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18946   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18947   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18948   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18949   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18950   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18951   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18952   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18953   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18954   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18955   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18956   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18957   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18958   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18959   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18960   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18961   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18962   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18963   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18964   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18965   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18966   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18967   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18968   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18969   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18970   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18971   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18972   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18973   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18974   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18975   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18976   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18977   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18978   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18979   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18980   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18981   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18982   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18983   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18984   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18985   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18986   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18987   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18988   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18989   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18990   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18991   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18992   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18993   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18994   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18995   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18996 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18997    { (exit 1); exit 1; }; };;
18998   esac
18999 done
19000
19001 # If the user did not use the arguments to specify the items to instantiate,
19002 # then the envvar interface is used.  Set only those that are not.
19003 # We use the long form for the default assignment because of an extremely
19004 # bizarre bug on SunOS 4.1.3.
19005 if $ac_need_defaults; then
19006   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19007   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19008   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19009 fi
19010
19011 # Have a temporary directory for convenience.  Make it in the build tree
19012 # simply because there is no reason to put it here, and in addition,
19013 # creating and moving files from /tmp can sometimes cause problems.
19014 # Create a temporary directory, and hook for its removal unless debugging.
19015 $debug ||
19016 {
19017   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19018   trap '{ (exit 1); exit 1; }' 1 2 13 15
19019 }
19020
19021 # Create a (secure) tmp directory for tmp files.
19022
19023 {
19024   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19025   test -n "$tmp" && test -d "$tmp"
19026 }  ||
19027 {
19028   tmp=./confstat$$-$RANDOM
19029   (umask 077 && mkdir $tmp)
19030 } ||
19031 {
19032    echo "$me: cannot create a temporary directory in ." >&2
19033    { (exit 1); exit 1; }
19034 }
19035
19036 _ACEOF
19037
19038 cat >>$CONFIG_STATUS <<_ACEOF
19039
19040 #
19041 # CONFIG_FILES section.
19042 #
19043
19044 # No need to generate the scripts if there are no CONFIG_FILES.
19045 # This happens for instance when ./config.status config.h
19046 if test -n "\$CONFIG_FILES"; then
19047   # Protect against being on the right side of a sed subst in config.status.
19048   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19049    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19050 s,@SHELL@,$SHELL,;t t
19051 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19052 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19053 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19054 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19055 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19056 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19057 s,@exec_prefix@,$exec_prefix,;t t
19058 s,@prefix@,$prefix,;t t
19059 s,@program_transform_name@,$program_transform_name,;t t
19060 s,@bindir@,$bindir,;t t
19061 s,@sbindir@,$sbindir,;t t
19062 s,@libexecdir@,$libexecdir,;t t
19063 s,@datadir@,$datadir,;t t
19064 s,@sysconfdir@,$sysconfdir,;t t
19065 s,@sharedstatedir@,$sharedstatedir,;t t
19066 s,@localstatedir@,$localstatedir,;t t
19067 s,@libdir@,$libdir,;t t
19068 s,@includedir@,$includedir,;t t
19069 s,@oldincludedir@,$oldincludedir,;t t
19070 s,@infodir@,$infodir,;t t
19071 s,@mandir@,$mandir,;t t
19072 s,@build_alias@,$build_alias,;t t
19073 s,@host_alias@,$host_alias,;t t
19074 s,@target_alias@,$target_alias,;t t
19075 s,@DEFS@,$DEFS,;t t
19076 s,@ECHO_C@,$ECHO_C,;t t
19077 s,@ECHO_N@,$ECHO_N,;t t
19078 s,@ECHO_T@,$ECHO_T,;t t
19079 s,@LIBS@,$LIBS,;t t
19080 s,@BUILD_DIR@,$BUILD_DIR,;t t
19081 s,@TRUEPRG@,$TRUEPRG,;t t
19082 s,@FALSEPRG@,$FALSEPRG,;t t
19083 s,@VERSION@,$VERSION,;t t
19084 s,@DATE@,$DATE,;t t
19085 s,@LSMDATE@,$LSMDATE,;t t
19086 s,@CC@,$CC,;t t
19087 s,@CFLAGS@,$CFLAGS,;t t
19088 s,@LDFLAGS@,$LDFLAGS,;t t
19089 s,@CPPFLAGS@,$CPPFLAGS,;t t
19090 s,@ac_ct_CC@,$ac_ct_CC,;t t
19091 s,@EXEEXT@,$EXEEXT,;t t
19092 s,@OBJEXT@,$OBJEXT,;t t
19093 s,@CXX@,$CXX,;t t
19094 s,@CXXFLAGS@,$CXXFLAGS,;t t
19095 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19096 s,@CPP@,$CPP,;t t
19097 s,@EGREP@,$EGREP,;t t
19098 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19099 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19100 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19101 s,@RANLIB@,$RANLIB,;t t
19102 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19103 s,@MV@,$MV,;t t
19104 s,@RM@,$RM,;t t
19105 s,@CP@,$CP,;t t
19106 s,@SED@,$SED,;t t
19107 s,@AWK@,$AWK,;t t
19108 s,@ECHO@,$ECHO,;t t
19109 s,@CMP@,$CMP,;t t
19110 s,@TBL@,$TBL,;t t
19111 s,@AR@,$AR,;t t
19112 s,@OPENSSL@,$OPENSSL,;t t
19113 s,@MTX@,$MTX,;t t
19114 s,@PKGCONFIG@,$PKGCONFIG,;t t
19115 s,@WXCONFIG@,$WXCONFIG,;t t
19116 s,@ARFLAGS@,$ARFLAGS,;t t
19117 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19118 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19119 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19120 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19121 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19122 s,@build@,$build,;t t
19123 s,@build_cpu@,$build_cpu,;t t
19124 s,@build_vendor@,$build_vendor,;t t
19125 s,@build_os@,$build_os,;t t
19126 s,@host@,$host,;t t
19127 s,@host_cpu@,$host_cpu,;t t
19128 s,@host_vendor@,$host_vendor,;t t
19129 s,@host_os@,$host_os,;t t
19130 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19131 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19132 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19133 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19134 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19135 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19136 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19137 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19138 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19139 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19140 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19141 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19142 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19143 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19144 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19145 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19146 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19147 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19148 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19149 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19150 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19151 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19152 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19153 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19154 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19155 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19156 s,@MSGFMT@,$MSGFMT,;t t
19157 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19158 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19159 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19160 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19161 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19162 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19163 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19164 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19165 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19166 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19167 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19168 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19169 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19170 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19171 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19172 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19173 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19174 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19175 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19176 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19177 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19178 s,@GNOME_DIR@,$GNOME_DIR,;t t
19179 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19180 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19181 s,@WX_DIR@,$WX_DIR,;t t
19182 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19183 s,@STATIC_FD@,$STATIC_FD,;t t
19184 s,@STATIC_SD@,$STATIC_SD,;t t
19185 s,@STATIC_DIR@,$STATIC_DIR,;t t
19186 s,@STATIC_CONS@,$STATIC_CONS,;t t
19187 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19188 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19189 s,@ALL_DIRS@,$ALL_DIRS,;t t
19190 s,@CONS_INC@,$CONS_INC,;t t
19191 s,@CONS_OBJ@,$CONS_OBJ,;t t
19192 s,@CONS_SRC@,$CONS_SRC,;t t
19193 s,@CONS_LIBS@,$CONS_LIBS,;t t
19194 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19195 s,@READLINE_SRC@,$READLINE_SRC,;t t
19196 s,@working_dir@,$working_dir,;t t
19197 s,@scriptdir@,$scriptdir,;t t
19198 s,@dump_email@,$dump_email,;t t
19199 s,@job_email@,$job_email,;t t
19200 s,@smtp_host@,$smtp_host,;t t
19201 s,@piddir@,$piddir,;t t
19202 s,@subsysdir@,$subsysdir,;t t
19203 s,@baseport@,$baseport,;t t
19204 s,@dir_port@,$dir_port,;t t
19205 s,@fd_port@,$fd_port,;t t
19206 s,@sd_port@,$sd_port,;t t
19207 s,@dir_password@,$dir_password,;t t
19208 s,@fd_password@,$fd_password,;t t
19209 s,@sd_password@,$sd_password,;t t
19210 s,@dir_user@,$dir_user,;t t
19211 s,@dir_group@,$dir_group,;t t
19212 s,@sd_user@,$sd_user,;t t
19213 s,@sd_group@,$sd_group,;t t
19214 s,@fd_user@,$fd_user,;t t
19215 s,@fd_group@,$fd_group,;t t
19216 s,@SBINPERM@,$SBINPERM,;t t
19217 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19218 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19219 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19220 s,@cats@,$cats,;t t
19221 s,@DB_NAME@,$DB_NAME,;t t
19222 s,@GETCONF@,$GETCONF,;t t
19223 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19224 s,@X_CFLAGS@,$X_CFLAGS,;t t
19225 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19226 s,@X_LIBS@,$X_LIBS,;t t
19227 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19228 s,@LIBOBJS@,$LIBOBJS,;t t
19229 s,@ALLOCA@,$ALLOCA,;t t
19230 s,@FDLIBS@,$FDLIBS,;t t
19231 s,@DEBUG@,$DEBUG,;t t
19232 s,@DINCLUDE@,$DINCLUDE,;t t
19233 s,@DLIB@,$DLIB,;t t
19234 s,@DB_LIBS@,$DB_LIBS,;t t
19235 s,@WCFLAGS@,$WCFLAGS,;t t
19236 s,@WLDFLAGS@,$WLDFLAGS,;t t
19237 s,@OBJLIST@,$OBJLIST,;t t
19238 s,@hostname@,$hostname,;t t
19239 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19240 s,@PSCMD@,$PSCMD,;t t
19241 s,@WIN32@,$WIN32,;t t
19242 s,@MACOSX@,$MACOSX,;t t
19243 s,@DISTNAME@,$DISTNAME,;t t
19244 s,@DISTVER@,$DISTVER,;t t
19245 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19246 /@MCOMMON@/r $MCOMMON
19247 s,@MCOMMON@,,;t t
19248 CEOF
19249
19250 _ACEOF
19251
19252   cat >>$CONFIG_STATUS <<\_ACEOF
19253   # Split the substitutions into bite-sized pieces for seds with
19254   # small command number limits, like on Digital OSF/1 and HP-UX.
19255   ac_max_sed_lines=48
19256   ac_sed_frag=1 # Number of current file.
19257   ac_beg=1 # First line for current file.
19258   ac_end=$ac_max_sed_lines # Line after last line for current file.
19259   ac_more_lines=:
19260   ac_sed_cmds=
19261   while $ac_more_lines; do
19262     if test $ac_beg -gt 1; then
19263       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19264     else
19265       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19266     fi
19267     if test ! -s $tmp/subs.frag; then
19268       ac_more_lines=false
19269     else
19270       # The purpose of the label and of the branching condition is to
19271       # speed up the sed processing (if there are no `@' at all, there
19272       # is no need to browse any of the substitutions).
19273       # These are the two extra sed commands mentioned above.
19274       (echo ':t
19275   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19276       if test -z "$ac_sed_cmds"; then
19277         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19278       else
19279         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19280       fi
19281       ac_sed_frag=`expr $ac_sed_frag + 1`
19282       ac_beg=$ac_end
19283       ac_end=`expr $ac_end + $ac_max_sed_lines`
19284     fi
19285   done
19286   if test -z "$ac_sed_cmds"; then
19287     ac_sed_cmds=cat
19288   fi
19289 fi # test -n "$CONFIG_FILES"
19290
19291 _ACEOF
19292 cat >>$CONFIG_STATUS <<\_ACEOF
19293 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19294   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19295   case $ac_file in
19296   - | *:- | *:-:* ) # input from stdin
19297         cat >$tmp/stdin
19298         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19299         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19300   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19301         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19302   * )   ac_file_in=$ac_file.in ;;
19303   esac
19304
19305   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19306   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19308          X"$ac_file" : 'X\(//\)[^/]' \| \
19309          X"$ac_file" : 'X\(//\)$' \| \
19310          X"$ac_file" : 'X\(/\)' \| \
19311          .     : '\(.\)' 2>/dev/null ||
19312 echo X"$ac_file" |
19313     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19314           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19315           /^X\(\/\/\)$/{ s//\1/; q; }
19316           /^X\(\/\).*/{ s//\1/; q; }
19317           s/.*/./; q'`
19318   { if $as_mkdir_p; then
19319     mkdir -p "$ac_dir"
19320   else
19321     as_dir="$ac_dir"
19322     as_dirs=
19323     while test ! -d "$as_dir"; do
19324       as_dirs="$as_dir $as_dirs"
19325       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19327          X"$as_dir" : 'X\(//\)[^/]' \| \
19328          X"$as_dir" : 'X\(//\)$' \| \
19329          X"$as_dir" : 'X\(/\)' \| \
19330          .     : '\(.\)' 2>/dev/null ||
19331 echo X"$as_dir" |
19332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19333           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19334           /^X\(\/\/\)$/{ s//\1/; q; }
19335           /^X\(\/\).*/{ s//\1/; q; }
19336           s/.*/./; q'`
19337     done
19338     test ! -n "$as_dirs" || mkdir $as_dirs
19339   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19340 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19341    { (exit 1); exit 1; }; }; }
19342
19343   ac_builddir=.
19344
19345 if test "$ac_dir" != .; then
19346   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19347   # A "../" for each directory in $ac_dir_suffix.
19348   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19349 else
19350   ac_dir_suffix= ac_top_builddir=
19351 fi
19352
19353 case $srcdir in
19354   .)  # No --srcdir option.  We are building in place.
19355     ac_srcdir=.
19356     if test -z "$ac_top_builddir"; then
19357        ac_top_srcdir=.
19358     else
19359        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19360     fi ;;
19361   [\\/]* | ?:[\\/]* )  # Absolute path.
19362     ac_srcdir=$srcdir$ac_dir_suffix;
19363     ac_top_srcdir=$srcdir ;;
19364   *) # Relative path.
19365     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19366     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19367 esac
19368 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19369 # absolute.
19370 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19371 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19372 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19373 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19374
19375
19376   case $INSTALL in
19377   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19378   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19379   esac
19380
19381   if test x"$ac_file" != x-; then
19382     { echo "$as_me:$LINENO: creating $ac_file" >&5
19383 echo "$as_me: creating $ac_file" >&6;}
19384     rm -f "$ac_file"
19385   fi
19386   # Let's still pretend it is `configure' which instantiates (i.e., don't
19387   # use $as_me), people would be surprised to read:
19388   #    /* config.h.  Generated by config.status.  */
19389   if test x"$ac_file" = x-; then
19390     configure_input=
19391   else
19392     configure_input="$ac_file.  "
19393   fi
19394   configure_input=$configure_input"Generated from `echo $ac_file_in |
19395                                      sed 's,.*/,,'` by configure."
19396
19397   # First look for the input files in the build tree, otherwise in the
19398   # src tree.
19399   ac_file_inputs=`IFS=:
19400     for f in $ac_file_in; do
19401       case $f in
19402       -) echo $tmp/stdin ;;
19403       [\\/$]*)
19404          # Absolute (can't be DOS-style, as IFS=:)
19405          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19406 echo "$as_me: error: cannot find input file: $f" >&2;}
19407    { (exit 1); exit 1; }; }
19408          echo $f;;
19409       *) # Relative
19410          if test -f "$f"; then
19411            # Build tree
19412            echo $f
19413          elif test -f "$srcdir/$f"; then
19414            # Source tree
19415            echo $srcdir/$f
19416          else
19417            # /dev/null tree
19418            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19419 echo "$as_me: error: cannot find input file: $f" >&2;}
19420    { (exit 1); exit 1; }; }
19421          fi;;
19422       esac
19423     done` || { (exit 1); exit 1; }
19424 _ACEOF
19425 cat >>$CONFIG_STATUS <<_ACEOF
19426   sed "$ac_vpsub
19427 $extrasub
19428 _ACEOF
19429 cat >>$CONFIG_STATUS <<\_ACEOF
19430 :t
19431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19432 s,@configure_input@,$configure_input,;t t
19433 s,@srcdir@,$ac_srcdir,;t t
19434 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19435 s,@top_srcdir@,$ac_top_srcdir,;t t
19436 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19437 s,@builddir@,$ac_builddir,;t t
19438 s,@abs_builddir@,$ac_abs_builddir,;t t
19439 s,@top_builddir@,$ac_top_builddir,;t t
19440 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19441 s,@INSTALL@,$ac_INSTALL,;t t
19442 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19443   rm -f $tmp/stdin
19444   if test x"$ac_file" != x-; then
19445     mv $tmp/out $ac_file
19446   else
19447     cat $tmp/out
19448     rm -f $tmp/out
19449   fi
19450
19451 done
19452 _ACEOF
19453 cat >>$CONFIG_STATUS <<\_ACEOF
19454
19455 #
19456 # CONFIG_HEADER section.
19457 #
19458
19459 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19460 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19461 #
19462 # ac_d sets the value in "#define NAME VALUE" lines.
19463 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19464 ac_dB='[        ].*$,\1#\2'
19465 ac_dC=' '
19466 ac_dD=',;t'
19467 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19468 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19469 ac_uB='$,\1#\2define\3'
19470 ac_uC=' '
19471 ac_uD=',;t'
19472
19473 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19474   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19475   case $ac_file in
19476   - | *:- | *:-:* ) # input from stdin
19477         cat >$tmp/stdin
19478         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19479         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19480   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19481         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19482   * )   ac_file_in=$ac_file.in ;;
19483   esac
19484
19485   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19486 echo "$as_me: creating $ac_file" >&6;}
19487
19488   # First look for the input files in the build tree, otherwise in the
19489   # src tree.
19490   ac_file_inputs=`IFS=:
19491     for f in $ac_file_in; do
19492       case $f in
19493       -) echo $tmp/stdin ;;
19494       [\\/$]*)
19495          # Absolute (can't be DOS-style, as IFS=:)
19496          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19497 echo "$as_me: error: cannot find input file: $f" >&2;}
19498    { (exit 1); exit 1; }; }
19499          echo $f;;
19500       *) # Relative
19501          if test -f "$f"; then
19502            # Build tree
19503            echo $f
19504          elif test -f "$srcdir/$f"; then
19505            # Source tree
19506            echo $srcdir/$f
19507          else
19508            # /dev/null tree
19509            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19510 echo "$as_me: error: cannot find input file: $f" >&2;}
19511    { (exit 1); exit 1; }; }
19512          fi;;
19513       esac
19514     done` || { (exit 1); exit 1; }
19515   # Remove the trailing spaces.
19516   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19517
19518 _ACEOF
19519
19520 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19521 # `conftest.undefs', that substitutes the proper values into
19522 # config.h.in to produce config.h.  The first handles `#define'
19523 # templates, and the second `#undef' templates.
19524 # And first: Protect against being on the right side of a sed subst in
19525 # config.status.  Protect against being in an unquoted here document
19526 # in config.status.
19527 rm -f conftest.defines conftest.undefs
19528 # Using a here document instead of a string reduces the quoting nightmare.
19529 # Putting comments in sed scripts is not portable.
19530 #
19531 # `end' is used to avoid that the second main sed command (meant for
19532 # 0-ary CPP macros) applies to n-ary macro definitions.
19533 # See the Autoconf documentation for `clear'.
19534 cat >confdef2sed.sed <<\_ACEOF
19535 s/[\\&,]/\\&/g
19536 s,[\\$`],\\&,g
19537 t clear
19538 : clear
19539 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19540 t end
19541 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19542 : end
19543 _ACEOF
19544 # If some macros were called several times there might be several times
19545 # the same #defines, which is useless.  Nevertheless, we may not want to
19546 # sort them, since we want the *last* AC-DEFINE to be honored.
19547 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19548 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19549 rm -f confdef2sed.sed
19550
19551 # This sed command replaces #undef with comments.  This is necessary, for
19552 # example, in the case of _POSIX_SOURCE, which is predefined and required
19553 # on some systems where configure will not decide to define it.
19554 cat >>conftest.undefs <<\_ACEOF
19555 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19556 _ACEOF
19557
19558 # Break up conftest.defines because some shells have a limit on the size
19559 # of here documents, and old seds have small limits too (100 cmds).
19560 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19561 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19562 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19563 echo '  :' >>$CONFIG_STATUS
19564 rm -f conftest.tail
19565 while grep . conftest.defines >/dev/null
19566 do
19567   # Write a limited-size here document to $tmp/defines.sed.
19568   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19569   # Speed up: don't consider the non `#define' lines.
19570   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19571   # Work around the forget-to-reset-the-flag bug.
19572   echo 't clr' >>$CONFIG_STATUS
19573   echo ': clr' >>$CONFIG_STATUS
19574   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19575   echo 'CEOF
19576   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19577   rm -f $tmp/in
19578   mv $tmp/out $tmp/in
19579 ' >>$CONFIG_STATUS
19580   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19581   rm -f conftest.defines
19582   mv conftest.tail conftest.defines
19583 done
19584 rm -f conftest.defines
19585 echo '  fi # grep' >>$CONFIG_STATUS
19586 echo >>$CONFIG_STATUS
19587
19588 # Break up conftest.undefs because some shells have a limit on the size
19589 # of here documents, and old seds have small limits too (100 cmds).
19590 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19591 rm -f conftest.tail
19592 while grep . conftest.undefs >/dev/null
19593 do
19594   # Write a limited-size here document to $tmp/undefs.sed.
19595   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19596   # Speed up: don't consider the non `#undef'
19597   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19598   # Work around the forget-to-reset-the-flag bug.
19599   echo 't clr' >>$CONFIG_STATUS
19600   echo ': clr' >>$CONFIG_STATUS
19601   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19602   echo 'CEOF
19603   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19604   rm -f $tmp/in
19605   mv $tmp/out $tmp/in
19606 ' >>$CONFIG_STATUS
19607   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19608   rm -f conftest.undefs
19609   mv conftest.tail conftest.undefs
19610 done
19611 rm -f conftest.undefs
19612
19613 cat >>$CONFIG_STATUS <<\_ACEOF
19614   # Let's still pretend it is `configure' which instantiates (i.e., don't
19615   # use $as_me), people would be surprised to read:
19616   #    /* config.h.  Generated by config.status.  */
19617   if test x"$ac_file" = x-; then
19618     echo "/* Generated by configure.  */" >$tmp/config.h
19619   else
19620     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19621   fi
19622   cat $tmp/in >>$tmp/config.h
19623   rm -f $tmp/in
19624   if test x"$ac_file" != x-; then
19625     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19626       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19627 echo "$as_me: $ac_file is unchanged" >&6;}
19628     else
19629       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19631          X"$ac_file" : 'X\(//\)[^/]' \| \
19632          X"$ac_file" : 'X\(//\)$' \| \
19633          X"$ac_file" : 'X\(/\)' \| \
19634          .     : '\(.\)' 2>/dev/null ||
19635 echo X"$ac_file" |
19636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19637           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19638           /^X\(\/\/\)$/{ s//\1/; q; }
19639           /^X\(\/\).*/{ s//\1/; q; }
19640           s/.*/./; q'`
19641       { if $as_mkdir_p; then
19642     mkdir -p "$ac_dir"
19643   else
19644     as_dir="$ac_dir"
19645     as_dirs=
19646     while test ! -d "$as_dir"; do
19647       as_dirs="$as_dir $as_dirs"
19648       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19650          X"$as_dir" : 'X\(//\)[^/]' \| \
19651          X"$as_dir" : 'X\(//\)$' \| \
19652          X"$as_dir" : 'X\(/\)' \| \
19653          .     : '\(.\)' 2>/dev/null ||
19654 echo X"$as_dir" |
19655     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19656           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19657           /^X\(\/\/\)$/{ s//\1/; q; }
19658           /^X\(\/\).*/{ s//\1/; q; }
19659           s/.*/./; q'`
19660     done
19661     test ! -n "$as_dirs" || mkdir $as_dirs
19662   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19663 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19664    { (exit 1); exit 1; }; }; }
19665
19666       rm -f $ac_file
19667       mv $tmp/config.h $ac_file
19668     fi
19669   else
19670     cat $tmp/config.h
19671     rm -f $tmp/config.h
19672   fi
19673 done
19674 _ACEOF
19675 cat >>$CONFIG_STATUS <<\_ACEOF
19676
19677 #
19678 # CONFIG_COMMANDS section.
19679 #
19680 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19681   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19682   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19683   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19684 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19685          X"$ac_dest" : 'X\(//\)[^/]' \| \
19686          X"$ac_dest" : 'X\(//\)$' \| \
19687          X"$ac_dest" : 'X\(/\)' \| \
19688          .     : '\(.\)' 2>/dev/null ||
19689 echo X"$ac_dest" |
19690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19691           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19692           /^X\(\/\/\)$/{ s//\1/; q; }
19693           /^X\(\/\).*/{ s//\1/; q; }
19694           s/.*/./; q'`
19695   ac_builddir=.
19696
19697 if test "$ac_dir" != .; then
19698   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19699   # A "../" for each directory in $ac_dir_suffix.
19700   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19701 else
19702   ac_dir_suffix= ac_top_builddir=
19703 fi
19704
19705 case $srcdir in
19706   .)  # No --srcdir option.  We are building in place.
19707     ac_srcdir=.
19708     if test -z "$ac_top_builddir"; then
19709        ac_top_srcdir=.
19710     else
19711        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19712     fi ;;
19713   [\\/]* | ?:[\\/]* )  # Absolute path.
19714     ac_srcdir=$srcdir$ac_dir_suffix;
19715     ac_top_srcdir=$srcdir ;;
19716   *) # Relative path.
19717     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19718     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19719 esac
19720 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19721 # absolute.
19722 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19723 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19724 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19725 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19726
19727
19728   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19729 echo "$as_me: executing $ac_dest commands" >&6;}
19730   case $ac_dest in
19731     default ) (echo "Doing make of dependencies"; make depend;)
19732  ;;
19733   esac
19734 done
19735 _ACEOF
19736
19737 cat >>$CONFIG_STATUS <<\_ACEOF
19738
19739 { (exit 0); exit 0; }
19740 _ACEOF
19741 chmod +x $CONFIG_STATUS
19742 ac_clean_files=$ac_clean_files_save
19743
19744
19745 # configure is writing to config.log, and then calls config.status.
19746 # config.status does its own redirection, appending to config.log.
19747 # Unfortunately, on DOS this fails, as config.log is still kept open
19748 # by configure, so config.status won't be able to write to it; its
19749 # output is simply discarded.  So we exec the FD to /dev/null,
19750 # effectively closing config.log, so it can be properly (re)opened and
19751 # appended to by config.status.  When coming back to configure, we
19752 # need to make the FD available again.
19753 if test "$no_create" != yes; then
19754   ac_cs_success=:
19755   ac_config_status_args=
19756   test "$silent" = yes &&
19757     ac_config_status_args="$ac_config_status_args --quiet"
19758   exec 5>/dev/null
19759   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19760   exec 5>>config.log
19761   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19762   # would make configure fail if this is the last instruction.
19763   $ac_cs_success || { (exit 1); exit 1; }
19764 fi
19765
19766
19767 cd scripts
19768 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19769 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19770 cd ..
19771
19772 c=src/cats
19773
19774 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19775 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19776
19777 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19778 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19779
19780 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19781 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19782
19783 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19784 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19785
19786 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19787 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19788
19789 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19790 chmod 755 $c/sqlite
19791 chmod 755 $c/mysql
19792
19793 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19794    largefile_support="yes"
19795 fi
19796
19797 #
19798 # A whole lot of hand springs to get the compiler version.
19799 #  This is because gcc changed the output in version 3.0
19800 #
19801 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19802 if test "x${CCVERSION}" = "x" ; then
19803   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19804 fi
19805 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19806 if test x"${CXXVERSION}" = x ; then
19807   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19808 fi
19809
19810 if test "x${subsysdir}" = "x${sbindir}" ; then
19811    echo " "
19812    echo " "
19813    echo "You have set --sbindir and --with-subsys-dir"
19814    echo "  both equal to: ${subsysdir} "
19815    echo "  This is not permitted. Please reconfigure."
19816    echo " "
19817    echo "Aborting configuration ..."
19818    echo " "
19819    echo " "
19820    exit 1
19821 fi
19822
19823 if test "x${db_name}" = "xInternal" ; then
19824    echo " "
19825    echo " "
19826    echo "You have not specified either --enable-client-only or one of the"
19827    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
19828    echo "  This is not permitted. Please reconfigure."
19829    echo " "
19830    echo "Aborting the configuration ..."
19831    echo " "
19832    echo " "
19833    exit 1
19834 fi
19835
19836 echo "
19837 Configuration on `date`:
19838
19839   Host:                       $host -- ${DISTNAME} ${DISTVER}
19840   Bacula version:             ${VERSION} (${DATE})
19841   Source code location:       ${srcdir}
19842   Install binaries:           ${sbindir}
19843   Install config files:       ${sysconfdir}
19844   Scripts directory:          ${scriptdir}
19845   Working directory:          ${working_dir}
19846   PID directory:              ${piddir}
19847   Subsys directory:           ${subsysdir}
19848   C Compiler:                 ${CC} ${CCVERSION}
19849   C++ Compiler:               ${CXX} ${CXXVERSION}
19850   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19851   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19852   Libraries:                  ${LIBS}
19853   Statically Linked Tools:    ${support_static_tools}
19854   Statically Linked FD:       ${support_static_fd}
19855   Statically Linked SD:       ${support_static_sd}
19856   Statically Linked DIR:      ${support_static_dir}
19857   Statically Linked CONS:     ${support_static_cons}
19858   Database type:              ${db_name}
19859   Database lib:               ${DB_LIBS}
19860
19861   Job Output Email:           ${job_email}
19862   Traceback Email:            ${dump_email}
19863   SMTP Host Address:          ${smtp_host}
19864
19865   Director Port:              ${dir_port}
19866   File daemon Port:           ${fd_port}
19867   Storage daemon Port:        ${sd_port}
19868
19869   Director User:              ${dir_user}
19870   Director Group:             ${dir_group}
19871   Storage Daemon User:        ${sd_user}
19872   Storage DaemonGroup:        ${sd_group}
19873   File Daemon User:           ${fd_user}
19874   File Daemon Group:          ${fd_group}
19875
19876   SQL binaries Directory      ${SQL_BINDIR}
19877
19878   Large file support:         $largefile_support
19879   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19880   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19881   TCP Wrappers support:       ${TCPW_MSG}
19882   ZLIB support:               ${have_zlib}
19883   enable-smartalloc:          ${support_smartalloc}
19884   enable-gnome:               ${support_gnome} ${gnome_version}
19885   enable-wx-console:          ${support_wx_console}
19886   client-only:                ${build_client_only}
19887   ACL support:                ${have_acl}
19888
19889   " > config.out
19890
19891 cat config.out
19892
19893 # old stuff
19894 # cweb support:               ${got_cweb} ${CWEB_SRC}
19895 # gmp support:                ${got_gmp} ${GMP_SRC}