]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Make run_grub print manual procedure for installing grub
[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 CDRECORD 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 TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_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 CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_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-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
894   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
895   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
896   --with-dir-user=USER           specify user for Director daemon
897   --with-dir-group=GROUP                 specify group for Director daemon
898   --with-sd-user=USER            specify user for Storage daemon
899   --with-sd-group=GROUP          specify group for Storage daemon
900   --with-fd-user=USER            specify user for File daemon
901   --with-fd-group=GROUP          specify group for File daemon
902   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
903   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
904                           base install directory, defaults to /usr/local/pgsql
905
906   --with-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-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
911                           install directory, default is to search through
912                           a number of common places for the MySQL files.
913
914   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
915                           install directory, default is to search through
916                           a number of common places for the SQLite files.
917   --with-x                use the X Window System
918
919 Some influential environment variables:
920   CC          C compiler command
921   CFLAGS      C compiler flags
922   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
923               nonstandard directory <lib dir>
924   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
925               headers in a nonstandard directory <include dir>
926   CXX         C++ compiler command
927   CXXFLAGS    C++ compiler flags
928   CPP         C preprocessor
929
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
932
933 _ACEOF
934 fi
935
936 if test "$ac_init_help" = "recursive"; then
937   # If there are subdirs, report their specific --help.
938   ac_popdir=`pwd`
939   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940     test -d $ac_dir || continue
941     ac_builddir=.
942
943 if test "$ac_dir" != .; then
944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945   # A "../" for each directory in $ac_dir_suffix.
946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
947 else
948   ac_dir_suffix= ac_top_builddir=
949 fi
950
951 case $srcdir in
952   .)  # No --srcdir option.  We are building in place.
953     ac_srcdir=.
954     if test -z "$ac_top_builddir"; then
955        ac_top_srcdir=.
956     else
957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958     fi ;;
959   [\\/]* | ?:[\\/]* )  # Absolute path.
960     ac_srcdir=$srcdir$ac_dir_suffix;
961     ac_top_srcdir=$srcdir ;;
962   *) # Relative path.
963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 esac
966 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
967 # absolute.
968 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
969 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
970 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
971 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
972
973     cd $ac_dir
974     # Check for guested configure; otherwise get Cygnus style configure.
975     if test -f $ac_srcdir/configure.gnu; then
976       echo
977       $SHELL $ac_srcdir/configure.gnu  --help=recursive
978     elif test -f $ac_srcdir/configure; then
979       echo
980       $SHELL $ac_srcdir/configure  --help=recursive
981     elif test -f $ac_srcdir/configure.ac ||
982            test -f $ac_srcdir/configure.in; then
983       echo
984       $ac_configure --help
985     else
986       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987     fi
988     cd $ac_popdir
989   done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994   cat <<\_ACEOF
995
996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
997 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001   exit 0
1002 fi
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1007
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.57.  Invocation command line was
1010
1011   $ $0 $@
1012
1013 _ACEOF
1014 {
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1019
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1028
1029 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1030 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1033 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1034 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036
1037 _ASUNAME
1038
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1041 do
1042   IFS=$as_save_IFS
1043   test -z "$as_dir" && as_dir=.
1044   echo "PATH: $as_dir"
1045 done
1046
1047 } >&5
1048
1049 cat >&5 <<_ACEOF
1050
1051
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1055
1056 _ACEOF
1057
1058
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1070 do
1071   for ac_arg
1072   do
1073     case $ac_arg in
1074     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076     | -silent | --silent | --silen | --sile | --sil)
1077       continue ;;
1078     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080     esac
1081     case $ac_pass in
1082     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083     2)
1084       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085       if test $ac_must_keep_next = true; then
1086         ac_must_keep_next=false # Got value, back to normal.
1087       else
1088         case $ac_arg in
1089           *=* | --config-cache | -C | -disable-* | --disable-* \
1090           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092           | -with-* | --with-* | -without-* | --without-* | --x)
1093             case "$ac_configure_args0 " in
1094               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095             esac
1096             ;;
1097           -* ) ac_must_keep_next=true ;;
1098         esac
1099       fi
1100       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101       # Get rid of the leading space.
1102       ac_sep=" "
1103       ;;
1104     esac
1105   done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log.  We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116   # Save into config.log some information that might help in debugging.
1117   {
1118     echo
1119
1120     cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125     echo
1126     # The following way of writing the cache mishandles newlines in values,
1127 {
1128   (set) 2>&1 |
1129     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130     *ac_space=\ *)
1131       sed -n \
1132         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134       ;;
1135     *)
1136       sed -n \
1137         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138       ;;
1139     esac;
1140 }
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148     echo
1149     for ac_var in $ac_subst_vars
1150     do
1151       eval ac_val=$`echo $ac_var`
1152       echo "$ac_var='"'"'$ac_val'"'"'"
1153     done | sort
1154     echo
1155
1156     if test -n "$ac_subst_files"; then
1157       cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162       echo
1163       for ac_var in $ac_subst_files
1164       do
1165         eval ac_val=$`echo $ac_var`
1166         echo "$ac_var='"'"'$ac_val'"'"'"
1167       done | sort
1168       echo
1169     fi
1170
1171     if test -s confdefs.h; then
1172       cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177       echo
1178       sed "/^$/d" confdefs.h | sort
1179       echo
1180     fi
1181     test "$ac_signal" != 0 &&
1182       echo "$as_me: caught signal $ac_signal"
1183     echo "$as_me: exit $exit_status"
1184   } >&5
1185   rm -f core core.* *.core &&
1186   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187     exit $exit_status
1188      ' 0
1189 for ac_signal in 1 2 13 15; do
1190   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1193
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1198
1199 # Predefined preprocessor variables.
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1224
1225
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229   if test "x$prefix" != xNONE; then
1230     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231   else
1232     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233   fi
1234 fi
1235 for ac_site_file in $CONFIG_SITE; do
1236   if test -r "$ac_site_file"; then
1237     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239     sed 's/^/| /' "$ac_site_file" >&5
1240     . "$ac_site_file"
1241   fi
1242 done
1243
1244 if test -r "$cache_file"; then
1245   # Some versions of bash will fail to source /dev/null (special
1246   # files actually), so we avoid doing that.
1247   if test -f "$cache_file"; then
1248     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250     case $cache_file in
1251       [\\/]* | ?:[\\/]* ) . $cache_file;;
1252       *)                      . ./$cache_file;;
1253     esac
1254   fi
1255 else
1256   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258   >$cache_file
1259 fi
1260
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267   eval ac_new_set=\$ac_env_${ac_var}_set
1268   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269   eval ac_new_val="\$ac_env_${ac_var}_value"
1270   case $ac_old_set,$ac_new_set in
1271     set,)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,set)
1276       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278       ac_cache_corrupted=: ;;
1279     ,);;
1280     *)
1281       if test "x$ac_old_val" != "x$ac_new_val"; then
1282         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285 echo "$as_me:   former value:  $ac_old_val" >&2;}
1286         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287 echo "$as_me:   current value: $ac_new_val" >&2;}
1288         ac_cache_corrupted=:
1289       fi;;
1290   esac
1291   # Pass precious variables to config.status.
1292   if test "$ac_new_set" = set; then
1293     case $ac_new_val in
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     *) ac_arg=$ac_var=$ac_new_val ;;
1297     esac
1298     case " $ac_configure_args " in
1299       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301     esac
1302   fi
1303 done
1304 if $ac_cache_corrupted; then
1305   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309    { (exit 1); exit 1; }; }
1310 fi
1311
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336 BUILD_DIR=`pwd`
1337 cd ..
1338 TOP_DIR=`pwd`
1339 cd ${BUILD_DIR}
1340
1341 ac_aux_dir=
1342 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1343   if 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/install.sh; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/install.sh -c"
1350     break
1351   elif test -f $ac_dir/shtool; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/shtool install -c"
1354     break
1355   fi
1356 done
1357 if test -z "$ac_aux_dir"; then
1358   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1367
1368
1369
1370
1371
1372 for ac_prog in true
1373 do
1374   # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy $ac_prog; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   case $TRUEPRG in
1382   [\\/]* | ?:[\\/]*)
1383   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1384   ;;
1385   *)
1386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400   ;;
1401 esac
1402 fi
1403 TRUEPRG=$ac_cv_path_TRUEPRG
1404
1405 if test -n "$TRUEPRG"; then
1406   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1407 echo "${ECHO_T}$TRUEPRG" >&6
1408 else
1409   echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413   test -n "$TRUEPRG" && break
1414 done
1415 test -n "$TRUEPRG" || TRUEPRG=":"
1416
1417 for ac_prog in false
1418 do
1419   # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   case $FALSEPRG in
1427   [\\/]* | ?:[\\/]*)
1428   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1429   ;;
1430   *)
1431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445   ;;
1446 esac
1447 fi
1448 FALSEPRG=$ac_cv_path_FALSEPRG
1449
1450 if test -n "$FALSEPRG"; then
1451   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1452 echo "${ECHO_T}$FALSEPRG" >&6
1453 else
1454   echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1456 fi
1457
1458   test -n "$FALSEPRG" && break
1459 done
1460 test -n "$FALSEPRG" || FALSEPRG=":"
1461
1462
1463 #AC_CANONICAL_HOST
1464
1465 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1466 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1467 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1468 echo "configuring for bacula $VERSION ($DATE)"
1469
1470
1471
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$CC"; then
1486   ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 CC=$ac_cv_prog_CC
1505 if test -n "$CC"; then
1506   echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 fi
1514 if test -z "$ac_cv_prog_CC"; then
1515   ac_ct_CC=$CC
1516   # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$ac_ct_CC"; then
1524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_ac_ct_CC="gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551   CC=$ac_ct_CC
1552 else
1553   CC="$ac_cv_prog_CC"
1554 fi
1555
1556 if test -z "$CC"; then
1557   if test -n "$ac_tool_prefix"; then
1558   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$CC"; then
1566   ac_cv_prog_CC="$CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_CC="${ac_tool_prefix}cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$ac_cv_prog_CC"; then
1595   ac_ct_CC=$CC
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$ac_ct_CC"; then
1604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_ac_ct_CC="cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631   CC=$ac_ct_CC
1632 else
1633   CC="$ac_cv_prog_CC"
1634 fi
1635
1636 fi
1637 if test -z "$CC"; then
1638   # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$CC"; then
1646   ac_cv_prog_CC="$CC" # Let the user override the test.
1647 else
1648   ac_prog_rejected=no
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657        ac_prog_rejected=yes
1658        continue
1659      fi
1660     ac_cv_prog_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 if test $ac_prog_rejected = yes; then
1668   # We found a bogon in the path, so make sure we never use it.
1669   set dummy $ac_cv_prog_CC
1670   shift
1671   if test $# != 0; then
1672     # We chose a different compiler from the bogus one.
1673     # However, it has the same basename, so the bogon will be chosen
1674     # first if we set CC to just the basename; use the full file name.
1675     shift
1676     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677   fi
1678 fi
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683   echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$CC"; then
1692   if test -n "$ac_tool_prefix"; then
1693   for ac_prog in cl
1694   do
1695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730     test -n "$CC" && break
1731   done
1732 fi
1733 if test -z "$CC"; then
1734   ac_ct_CC=$CC
1735   for ac_prog in cl
1736 do
1737   # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$ac_ct_CC"; then
1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_ac_ct_CC="$ac_prog"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772   test -n "$ac_ct_CC" && break
1773 done
1774
1775   CC=$ac_ct_CC
1776 fi
1777
1778 fi
1779
1780
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789      "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792   (eval $ac_compiler --version </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797   (eval $ac_compiler -v </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802   (eval $ac_compiler -V </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806
1807 cat >conftest.$ac_ext <<_ACEOF
1808 #line $LINENO "configure"
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1827 # of exeext.
1828 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1829 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832   (eval $ac_link_default) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; then
1836   # Find the output, starting from the most likely.  This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838 # resort.
1839
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 ac_cv_exeext=
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 do
1846   test -f "$ac_file" || continue
1847   case $ac_file in
1848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849         ;;
1850     conftest.$ac_ext )
1851         # This is the source file.
1852         ;;
1853     [ab].out )
1854         # We found the default executable, but exeext='' is most
1855         # certainly right.
1856         break;;
1857     *.* )
1858         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859         # FIXME: I believe we export ac_cv_exeext for Libtool,
1860         # but it would be cool to find out if it's true.  Does anybody
1861         # maintain Libtool? --akim.
1862         export ac_cv_exeext
1863         break;;
1864     * )
1865         break;;
1866   esac
1867 done
1868 else
1869   echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876    { (exit 77); exit 77; }; }
1877 fi
1878
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1882
1883 # Check the compiler produces executables we can run.  If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890   if { ac_try='./$ac_file'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896     cross_compiling=no
1897   else
1898     if test "$cross_compiling" = maybe; then
1899         cross_compiling=yes
1900     else
1901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908     fi
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1913
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run.  If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1922
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926   (eval $ac_link) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; then
1930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 # `rm'.
1934 for ac_file in conftest.exe conftest conftest.*; do
1935   test -f "$ac_file" || continue
1936   case $ac_file in
1937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1958 ac_exeext=$EXEEXT
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982   (eval $ac_compile) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990        break;;
1991   esac
1992 done
1993 else
1994   echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 fi
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2009 ac_objext=$OBJEXT
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2017 /* confdefs.h.  */
2018 _ACEOF
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h.  */
2022
2023 int
2024 main ()
2025 {
2026 #ifndef __GNUC__
2027        choke me
2028 #endif
2029
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036   (eval $ac_compile) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); } &&
2040          { ac_try='test -s conftest.$ac_objext'
2041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; }; then
2046   ac_compiler_gnu=yes
2047 else
2048   echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_compiler_gnu=no
2052 fi
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055
2056 fi
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2062 CFLAGS="-g"
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 /* confdefs.h.  */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h.  */
2075
2076 int
2077 main ()
2078 {
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_cv_prog_cc_g=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_cv_prog_cc_g=no
2102 fi
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108   CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110   if test "$GCC" = yes; then
2111     CFLAGS="-g -O2"
2112   else
2113     CFLAGS="-g"
2114   fi
2115 else
2116   if test "$GCC" = yes; then
2117     CFLAGS="-O2"
2118   else
2119     CFLAGS=
2120   fi
2121 fi
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_cv_prog_cc_stdc=no
2128 ac_save_CC=$CC
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136 #include <stdarg.h>
2137 #include <stdio.h>
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2144      char **p;
2145      int i;
2146 {
2147   return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151   char *s;
2152   va_list v;
2153   va_start (v,p);
2154   s = g (p, va_arg (v,int));
2155   va_end (v);
2156   return s;
2157 }
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 int argc;
2163 char **argv;
2164 int
2165 main ()
2166 {
2167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX                   -qlanglvl=ansi
2175 # Ultrix and OSF/1      -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2178 # SVR4                  -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 do
2181   CC="$ac_save_CC $ac_arg"
2182   rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); } &&
2188          { ac_try='test -s conftest.$ac_objext'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; }; then
2194   ac_cv_prog_cc_stdc=$ac_arg
2195 break
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 fi
2201 rm -f conftest.$ac_objext
2202 done
2203 rm -f conftest.$ac_ext conftest.$ac_objext
2204 CC=$ac_save_CC
2205
2206 fi
2207
2208 case "x$ac_cv_prog_cc_stdc" in
2209   x|xno)
2210     echo "$as_me:$LINENO: result: none needed" >&5
2211 echo "${ECHO_T}none needed" >&6 ;;
2212   *)
2213     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2214 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2215     CC="$CC $ac_cv_prog_cc_stdc" ;;
2216 esac
2217
2218 # Some people use a C++ compiler to compile C.  Since we use `exit',
2219 # in C++ we need to declare it.  In case someone uses the same compiler
2220 # for both compiling C and C++ we need to have the C++ compiler decide
2221 # the declaration of exit, since it's the most demanding environment.
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #ifndef __cplusplus
2224   choke me
2225 #endif
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229   (eval $ac_compile) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); } &&
2233          { ac_try='test -s conftest.$ac_objext'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239   for ac_declaration in \
2240    ''\
2241    '#include <stdlib.h>' \
2242    'extern "C" void std::exit (int) throw (); using std::exit;' \
2243    'extern "C" void std::exit (int); using std::exit;' \
2244    'extern "C" void exit (int) throw ();' \
2245    'extern "C" void exit (int);' \
2246    'void exit (int);'
2247 do
2248   cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255 #include <stdlib.h>
2256 $ac_declaration
2257 int
2258 main ()
2259 {
2260 exit (42);
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   :
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 continue
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292 $ac_declaration
2293 int
2294 main ()
2295 {
2296 exit (42);
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   break
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 fi
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2320 done
2321 rm -f conftest*
2322 if test -n "$ac_declaration"; then
2323   echo '#ifdef __cplusplus' >>confdefs.h
2324   echo $ac_declaration      >>confdefs.h
2325   echo '#endif'             >>confdefs.h
2326 fi
2327
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340 ac_ext=cc
2341 ac_cpp='$CXXCPP $CPPFLAGS'
2342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2347   do
2348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CXX+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CXX"; then
2356   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 fi
2373 fi
2374 CXX=$ac_cv_prog_CXX
2375 if test -n "$CXX"; then
2376   echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6
2378 else
2379   echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383     test -n "$CXX" && break
2384   done
2385 fi
2386 if test -z "$CXX"; then
2387   ac_ct_CXX=$CXX
2388   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CXX"; then
2398   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_ac_ct_CXX="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2417 if test -n "$ac_ct_CXX"; then
2418   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2419 echo "${ECHO_T}$ac_ct_CXX" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$ac_ct_CXX" && break
2426 done
2427 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2428
2429   CXX=$ac_ct_CXX
2430 fi
2431
2432
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435      "checking for C++ compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438   (eval $ac_compiler --version </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443   (eval $ac_compiler -v </dev/null >&5) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448   (eval $ac_compiler -V </dev/null >&5) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }
2452
2453 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469 #ifndef __GNUC__
2470        choke me
2471 #endif
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479   (eval $ac_compile) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_compiler_gnu=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_compiler_gnu=no
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2498
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2502 GXX=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CXXFLAGS=${CXXFLAGS+set}
2504 ac_save_CXXFLAGS=$CXXFLAGS
2505 CXXFLAGS="-g"
2506 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cxx_g+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 int
2520 main ()
2521 {
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_cv_prog_cxx_g=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_cv_prog_cxx_g=no
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2550 if test "$ac_test_CXXFLAGS" = set; then
2551   CXXFLAGS=$ac_save_CXXFLAGS
2552 elif test $ac_cv_prog_cxx_g = yes; then
2553   if test "$GXX" = yes; then
2554     CXXFLAGS="-g -O2"
2555   else
2556     CXXFLAGS="-g"
2557   fi
2558 else
2559   if test "$GXX" = yes; then
2560     CXXFLAGS="-O2"
2561   else
2562     CXXFLAGS=
2563   fi
2564 fi
2565 for ac_declaration in \
2566    ''\
2567    '#include <stdlib.h>' \
2568    'extern "C" void std::exit (int) throw (); using std::exit;' \
2569    'extern "C" void std::exit (int); using std::exit;' \
2570    'extern "C" void exit (int) throw ();' \
2571    'extern "C" void exit (int);' \
2572    'void exit (int);'
2573 do
2574   cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdlib.h>
2582 $ac_declaration
2583 int
2584 main ()
2585 {
2586 exit (42);
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593   (eval $ac_compile) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   :
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 continue
2609 fi
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660 if test "x$CC" != xcc; then
2661   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2662 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2663 else
2664   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2665 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2666 fi
2667 set dummy $CC; ac_cc=`echo $2 |
2668                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2669 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 # Make sure it works both with $CC and with simple cc.
2689 # We do the test twice because some compilers refuse to overwrite an
2690 # existing .o file with -o, though they will create one.
2691 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2692 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); };
2702 then
2703   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2704   if test "x$CC" != xcc; then
2705     # Test first that cc exists at all.
2706     if { ac_try='cc -c conftest.$ac_ext >&5'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2713       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); };
2723       then
2724         # cc works too.
2725         :
2726       else
2727         # cc exists but doesn't like -o.
2728         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729       fi
2730     fi
2731   fi
2732 else
2733   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 fi
2735 rm -f conftest*
2736
2737 fi
2738 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2739   echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2741 else
2742   echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744
2745 cat >>confdefs.h <<\_ACEOF
2746 #define NO_MINUS_C_MINUS_O 1
2747 _ACEOF
2748
2749 fi
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2760   CPP=
2761 fi
2762 if test -z "$CPP"; then
2763   if test "${ac_cv_prog_CPP+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766       # Double quotes because CPP needs to be expanded
2767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768     do
2769       ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2771 do
2772   # Use a header file that comes with gcc, so configuring glibc
2773   # with a fresh cross-compiler works.
2774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775   # <limits.h> exists even on freestanding compilers.
2776   # On the NeXT, cc -E runs the code through the compiler's parser,
2777   # not just through cpp. "Syntax error" is here to catch this case.
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790                      Syntax error
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   :
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814   # Broken: fails on valid input.
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819   # OK, works on sane cases.  Now check whether non-existent headers
2820   # can be detected and how.
2821   cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 #include <ac_nonexistent.h>
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } >/dev/null; then
2838   if test -s conftest.err; then
2839     ac_cpp_err=$ac_c_preproc_warn_flag
2840   else
2841     ac_cpp_err=
2842   fi
2843 else
2844   ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847   # Broken: success on invalid input.
2848 continue
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2863   break
2864 fi
2865
2866     done
2867     ac_cv_prog_CPP=$CPP
2868
2869 fi
2870   CPP=$ac_cv_prog_CPP
2871 else
2872   ac_cv_prog_CPP=$CPP
2873 fi
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2876 ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879   # Use a header file that comes with gcc, so configuring glibc
2880   # with a fresh cross-compiler works.
2881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882   # <limits.h> exists even on freestanding compilers.
2883   # On the NeXT, cc -E runs the code through the compiler's parser,
2884   # not just through cpp. "Syntax error" is here to catch this case.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897                      Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926   # OK, works on sane cases.  Now check whether non-existent headers
2927   # can be detected and how.
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   # Broken: success on invalid input.
2955 continue
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970   :
2971 else
2972   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992     then ac_cv_prog_egrep='grep -E'
2993     else ac_cv_prog_egrep='egrep'
2994     fi
2995 fi
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998  EGREP=$ac_cv_prog_egrep
2999
3000
3001 if test $ac_cv_c_compiler_gnu = yes; then
3002     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3003 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007     ac_pattern="Autoconf.*'x'"
3008   cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <sgtty.h>
3016 Autoconf TIOCGETP
3017 _ACEOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020   ac_cv_prog_gcc_traditional=yes
3021 else
3022   ac_cv_prog_gcc_traditional=no
3023 fi
3024 rm -f conftest*
3025
3026
3027   if test $ac_cv_prog_gcc_traditional = no; then
3028     cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035 #include <termio.h>
3036 Autoconf TCGETA
3037 _ACEOF
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3040   ac_cv_prog_gcc_traditional=yes
3041 fi
3042 rm -f conftest*
3043
3044   fi
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3047 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3048   if test $ac_cv_prog_gcc_traditional = yes; then
3049     CC="$CC -traditional"
3050   fi
3051 fi
3052
3053 if test "x$CC" = xgcc
3054 then
3055    cat >>confdefs.h <<\_ACEOF
3056 #define HAVE_GCC 1
3057 _ACEOF
3058
3059 fi
3060
3061 # Find a good install program.  We prefer a C program (faster),
3062 # so one script is as good as another.  But avoid the broken or
3063 # incompatible versions:
3064 # SysV /etc/install, /usr/sbin/install
3065 # SunOS /usr/etc/install
3066 # IRIX /sbin/install
3067 # AIX /bin/install
3068 # AmigaOS /C/install, which installs bootblocks on floppy discs
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075 if test -z "$INSTALL"; then
3076 if test "${ac_cv_path_install+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   # Account for people who put trailing slashes in PATH elements.
3085 case $as_dir/ in
3086   ./ | .// | /cC/* | \
3087   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3088   /usr/ucb/* ) ;;
3089   *)
3090     # OSF1 and SCO ODT 3.0 have their own names for install.
3091     # Don't use installbsd from OSF since it installs stuff as root
3092     # by default.
3093     for ac_prog in ginstall scoinst install; do
3094       for ac_exec_ext in '' $ac_executable_extensions; do
3095         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096           if test $ac_prog = install &&
3097             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # AIX install.  It has an incompatible calling convention.
3099             :
3100           elif test $ac_prog = install &&
3101             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102             # program-specific install script used by HP pwplus--don't use.
3103             :
3104           else
3105             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106             break 3
3107           fi
3108         fi
3109       done
3110     done
3111     ;;
3112 esac
3113 done
3114
3115
3116 fi
3117   if test "${ac_cv_path_install+set}" = set; then
3118     INSTALL=$ac_cv_path_install
3119   else
3120     # As a last resort, use the slow shell script.  We don't cache a
3121     # path for INSTALL within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the path is relative.
3124     INSTALL=$ac_install_sh
3125   fi
3126 fi
3127 echo "$as_me:$LINENO: result: $INSTALL" >&5
3128 echo "${ECHO_T}$INSTALL" >&6
3129
3130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3131 # It thinks the first close brace ends the variable substitution.
3132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3133
3134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3135
3136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3137
3138 if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$RANLIB"; then
3147   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162
3163 fi
3164 fi
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167   echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174 fi
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176   ac_ct_RANLIB=$RANLIB
3177   # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_RANLIB"; then
3185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_RANLIB="ranlib"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200
3201   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3202 fi
3203 fi
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209   echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212
3213   RANLIB=$ac_ct_RANLIB
3214 else
3215   RANLIB="$ac_cv_prog_RANLIB"
3216 fi
3217
3218 # Extract the first word of "mv", so it can be a program name with args.
3219 set dummy mv; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_MV+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $MV in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3245   ;;
3246 esac
3247 fi
3248 MV=$ac_cv_path_MV
3249
3250 if test -n "$MV"; then
3251   echo "$as_me:$LINENO: result: $MV" >&5
3252 echo "${ECHO_T}$MV" >&6
3253 else
3254   echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 fi
3257
3258 # Extract the first word of "rm", so it can be a program name with args.
3259 set dummy rm; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_RM+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $RM in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3285   ;;
3286 esac
3287 fi
3288 RM=$ac_cv_path_RM
3289
3290 if test -n "$RM"; then
3291   echo "$as_me:$LINENO: result: $RM" >&5
3292 echo "${ECHO_T}$RM" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "cp", so it can be a program name with args.
3299 set dummy cp; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_CP+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $CP in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3325   ;;
3326 esac
3327 fi
3328 CP=$ac_cv_path_CP
3329
3330 if test -n "$CP"; then
3331   echo "$as_me:$LINENO: result: $CP" >&5
3332 echo "${ECHO_T}$CP" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "sed", so it can be a program name with args.
3339 set dummy sed; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_SED+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $SED in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3365   ;;
3366 esac
3367 fi
3368 SED=$ac_cv_path_SED
3369
3370 if test -n "$SED"; then
3371   echo "$as_me:$LINENO: result: $SED" >&5
3372 echo "${ECHO_T}$SED" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "awk", so it can be a program name with args.
3379 set dummy awk; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_AWK+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $AWK in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3405   ;;
3406 esac
3407 fi
3408 AWK=$ac_cv_path_AWK
3409
3410 if test -n "$AWK"; then
3411   echo "$as_me:$LINENO: result: $AWK" >&5
3412 echo "${ECHO_T}$AWK" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "echo", so it can be a program name with args.
3419 set dummy echo; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_ECHO+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $ECHO in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445   ;;
3446 esac
3447 fi
3448 ECHO=$ac_cv_path_ECHO
3449
3450 if test -n "$ECHO"; then
3451   echo "$as_me:$LINENO: result: $ECHO" >&5
3452 echo "${ECHO_T}$ECHO" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "cmp", so it can be a program name with args.
3459 set dummy cmp; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_CMP+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $CMP in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3485   ;;
3486 esac
3487 fi
3488 CMP=$ac_cv_path_CMP
3489
3490 if test -n "$CMP"; then
3491   echo "$as_me:$LINENO: result: $CMP" >&5
3492 echo "${ECHO_T}$CMP" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "tbl", so it can be a program name with args.
3499 set dummy tbl; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_TBL+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $TBL in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3525   ;;
3526 esac
3527 fi
3528 TBL=$ac_cv_path_TBL
3529
3530 if test -n "$TBL"; then
3531   echo "$as_me:$LINENO: result: $TBL" >&5
3532 echo "${ECHO_T}$TBL" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_AR+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $AR in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3565   ;;
3566 esac
3567 fi
3568 AR=$ac_cv_path_AR
3569
3570 if test -n "$AR"; then
3571   echo "$as_me:$LINENO: result: $AR" >&5
3572 echo "${ECHO_T}$AR" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "openssl", so it can be a program name with args.
3579 set dummy openssl; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_OPENSSL+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $OPENSSL in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605   ;;
3606 esac
3607 fi
3608 OPENSSL=$ac_cv_path_OPENSSL
3609
3610 if test -n "$OPENSSL"; then
3611   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3612 echo "${ECHO_T}$OPENSSL" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "mtx", so it can be a program name with args.
3619 set dummy mtx; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_MTX+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $MTX in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3645   ;;
3646 esac
3647 fi
3648 MTX=$ac_cv_path_MTX
3649
3650 if test -n "$MTX"; then
3651   echo "$as_me:$LINENO: result: $MTX" >&5
3652 echo "${ECHO_T}$MTX" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "pkg-config", so it can be a program name with args.
3659 set dummy pkg-config; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $PKGCONFIG in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685   ;;
3686 esac
3687 fi
3688 PKGCONFIG=$ac_cv_path_PKGCONFIG
3689
3690 if test -n "$PKGCONFIG"; then
3691   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3692 echo "${ECHO_T}$PKGCONFIG" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "wx-config", so it can be a program name with args.
3699 set dummy wx-config; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $WXCONFIG in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725   ;;
3726 esac
3727 fi
3728 WXCONFIG=$ac_cv_path_WXCONFIG
3729
3730 if test -n "$WXCONFIG"; then
3731   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3732 echo "${ECHO_T}$WXCONFIG" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "cdrecord", so it can be a program name with args.
3739 set dummy cdrecord; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_CDRECORD+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $CDRECORD in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   ;;
3765 esac
3766 fi
3767 CDRECORD=$ac_cv_path_CDRECORD
3768
3769 if test -n "$CDRECORD"; then
3770   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3771 echo "${ECHO_T}$CDRECORD" >&6
3772 else
3773   echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777
3778 test -n "$ARFLAG" || ARFLAGS="cr"
3779
3780
3781 MAKE_SHELL=/bin/sh
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791 # Make sure we can run config.sub.
3792 $ac_config_sub sun4 >/dev/null 2>&1 ||
3793   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3794 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3795    { (exit 1); exit 1; }; }
3796
3797 echo "$as_me:$LINENO: checking build system type" >&5
3798 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3799 if test "${ac_cv_build+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   ac_cv_build_alias=$build_alias
3803 test -z "$ac_cv_build_alias" &&
3804   ac_cv_build_alias=`$ac_config_guess`
3805 test -z "$ac_cv_build_alias" &&
3806   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3808    { (exit 1); exit 1; }; }
3809 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3810   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3811 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3812    { (exit 1); exit 1; }; }
3813
3814 fi
3815 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3816 echo "${ECHO_T}$ac_cv_build" >&6
3817 build=$ac_cv_build
3818 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3819 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3820 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3821
3822
3823
3824 echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3826 if test "${ac_cv_host+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   ac_cv_host_alias=$host_alias
3830 test -z "$ac_cv_host_alias" &&
3831   ac_cv_host_alias=$ac_cv_build_alias
3832 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3833   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3834 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3835    { (exit 1); exit 1; }; }
3836
3837 fi
3838 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839 echo "${ECHO_T}$ac_cv_host" >&6
3840 host=$ac_cv_host
3841 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3842 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3843 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3844
3845
3846 case $host_os in
3847   *cygwin* ) CYGWIN=yes;;
3848          * ) CYGWIN=no;;
3849 esac
3850
3851 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3852 then
3853
3854
3855 if $TRUEPRG; then
3856   HAVE_SUN_OS_TRUE=
3857   HAVE_SUN_OS_FALSE='#'
3858 else
3859   HAVE_SUN_OS_TRUE='#'
3860   HAVE_SUN_OS_FALSE=
3861 fi
3862         cat >>confdefs.h <<\_ACEOF
3863 #define HAVE_SUN_OS 1
3864 _ACEOF
3865
3866 else
3867
3868
3869 if $FALSEPRG; then
3870   HAVE_SUN_OS_TRUE=
3871   HAVE_SUN_OS_FALSE='#'
3872 else
3873   HAVE_SUN_OS_TRUE='#'
3874   HAVE_SUN_OS_FALSE=
3875 fi
3876 fi
3877
3878 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3879 then
3880
3881
3882 if $TRUEPRG; then
3883   HAVE_OSF1_OS_TRUE=
3884   HAVE_OSF1_OS_FALSE='#'
3885 else
3886   HAVE_OSF1_OS_TRUE='#'
3887   HAVE_OSF1_OS_FALSE=
3888 fi
3889         cat >>confdefs.h <<\_ACEOF
3890 #define HAVE_OSF1_OS 1
3891 _ACEOF
3892
3893 else
3894
3895
3896 if $FALSEPRG; then
3897   HAVE_OSF1_OS_TRUE=
3898   HAVE_OSF1_OS_FALSE='#'
3899 else
3900   HAVE_OSF1_OS_TRUE='#'
3901   HAVE_OSF1_OS_FALSE=
3902 fi
3903 fi
3904
3905 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3906 then
3907
3908
3909 if $TRUEPRG; then
3910   HAVE_AIX_OS_TRUE=
3911   HAVE_AIX_OS_FALSE='#'
3912 else
3913   HAVE_AIX_OS_TRUE='#'
3914   HAVE_AIX_OS_FALSE=
3915 fi
3916         cat >>confdefs.h <<\_ACEOF
3917 #define HAVE_AIX_OS 1
3918 _ACEOF
3919
3920 else
3921
3922
3923 if $FALSEPRG; then
3924   HAVE_AIX_OS_TRUE=
3925   HAVE_AIX_OS_FALSE='#'
3926 else
3927   HAVE_AIX_OS_TRUE='#'
3928   HAVE_AIX_OS_FALSE=
3929 fi
3930 fi
3931
3932 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3933 then
3934
3935
3936 if $TRUEPRG; then
3937   HAVE_HPUX_OS_TRUE=
3938   HAVE_HPUX_OS_FALSE='#'
3939 else
3940   HAVE_HPUX_OS_TRUE='#'
3941   HAVE_HPUX_OS_FALSE=
3942 fi
3943         cat >>confdefs.h <<\_ACEOF
3944 #define HAVE_HPUX_OS 1
3945 _ACEOF
3946
3947 else
3948
3949
3950 if $FALSEPRG; then
3951   HAVE_HPUX_OS_TRUE=
3952   HAVE_HPUX_OS_FALSE='#'
3953 else
3954   HAVE_HPUX_OS_TRUE='#'
3955   HAVE_HPUX_OS_FALSE=
3956 fi
3957 fi
3958
3959 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3960 then
3961
3962
3963 if $TRUEPRG; then
3964   HAVE_LINUX_OS_TRUE=
3965   HAVE_LINUX_OS_FALSE='#'
3966 else
3967   HAVE_LINUX_OS_TRUE='#'
3968   HAVE_LINUX_OS_FALSE=
3969 fi
3970         cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_LINUX_OS 1
3972 _ACEOF
3973
3974 else
3975
3976
3977 if $FALSEPRG; then
3978   HAVE_LINUX_OS_TRUE=
3979   HAVE_LINUX_OS_FALSE='#'
3980 else
3981   HAVE_LINUX_OS_TRUE='#'
3982   HAVE_LINUX_OS_FALSE=
3983 fi
3984 fi
3985
3986 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3987 then
3988
3989
3990 if $TRUEPRG; then
3991   HAVE_FREEBSD_OS_TRUE=
3992   HAVE_FREEBSD_OS_FALSE='#'
3993 else
3994   HAVE_FREEBSD_OS_TRUE='#'
3995   HAVE_FREEBSD_OS_FALSE=
3996 fi
3997         cat >>confdefs.h <<\_ACEOF
3998 #define HAVE_FREEBSD_OS 1
3999 _ACEOF
4000
4001 else
4002
4003
4004 if $FALSEPRG; then
4005   HAVE_FREEBSD_OS_TRUE=
4006   HAVE_FREEBSD_OS_FALSE='#'
4007 else
4008   HAVE_FREEBSD_OS_TRUE='#'
4009   HAVE_FREEBSD_OS_FALSE=
4010 fi
4011 fi
4012
4013 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4014 then
4015
4016
4017 if $TRUEPRG; then
4018   HAVE_NETBSD_OS_TRUE=
4019   HAVE_NETBSD_OS_FALSE='#'
4020 else
4021   HAVE_NETBSD_OS_TRUE='#'
4022   HAVE_NETBSD_OS_FALSE=
4023 fi
4024         cat >>confdefs.h <<\_ACEOF
4025 #define HAVE_NETBSD_OS 1
4026 _ACEOF
4027
4028 else
4029
4030
4031 if $FALSEPRG; then
4032   HAVE_NETBSD_OS_TRUE=
4033   HAVE_NETBSD_OS_FALSE='#'
4034 else
4035   HAVE_NETBSD_OS_TRUE='#'
4036   HAVE_NETBSD_OS_FALSE=
4037 fi
4038 fi
4039
4040 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4041 then
4042
4043
4044 if $TRUEPRG; then
4045   HAVE_OPENBSD_OS_TRUE=
4046   HAVE_OPENBSD_OS_FALSE='#'
4047 else
4048   HAVE_OPENBSD_OS_TRUE='#'
4049   HAVE_OPENBSD_OS_FALSE=
4050 fi
4051         cat >>confdefs.h <<\_ACEOF
4052 #define HAVE_OPENBSD_OS 1
4053 _ACEOF
4054
4055 else
4056
4057
4058 if $FALSEPRG; then
4059   HAVE_OPENBSD_OS_TRUE=
4060   HAVE_OPENBSD_OS_FALSE='#'
4061 else
4062   HAVE_OPENBSD_OS_TRUE='#'
4063   HAVE_OPENBSD_OS_FALSE=
4064 fi
4065 fi
4066
4067 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4068 then
4069
4070
4071 if $TRUEPRG; then
4072   HAVE_BSDI_OS_TRUE=
4073   HAVE_BSDI_OS_FALSE='#'
4074 else
4075   HAVE_BSDI_OS_TRUE='#'
4076   HAVE_BSDI_OS_FALSE=
4077 fi
4078         cat >>confdefs.h <<\_ACEOF
4079 #define HAVE_BSDI_OS 1
4080 _ACEOF
4081
4082 else
4083
4084
4085 if $FALSEPRG; then
4086   HAVE_BSDI_OS_TRUE=
4087   HAVE_BSDI_OS_FALSE='#'
4088 else
4089   HAVE_BSDI_OS_TRUE='#'
4090   HAVE_BSDI_OS_FALSE=
4091 fi
4092 fi
4093
4094 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4095 then
4096
4097
4098 if $TRUEPRG; then
4099   HAVE_SGI_OS_TRUE=
4100   HAVE_SGI_OS_FALSE='#'
4101 else
4102   HAVE_SGI_OS_TRUE='#'
4103   HAVE_SGI_OS_FALSE=
4104 fi
4105         cat >>confdefs.h <<\_ACEOF
4106 #define HAVE_SGI_OS 1
4107 _ACEOF
4108
4109 else
4110
4111
4112 if $FALSEPRG; then
4113   HAVE_SGI_OS_TRUE=
4114   HAVE_SGI_OS_FALSE='#'
4115 else
4116   HAVE_SGI_OS_TRUE='#'
4117   HAVE_SGI_OS_FALSE=
4118 fi
4119 fi
4120
4121 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4122 then
4123
4124
4125 if $TRUEPRG; then
4126   HAVE_IRIX_OS_TRUE=
4127   HAVE_IRIX_OS_FALSE='#'
4128 else
4129   HAVE_IRIX_OS_TRUE='#'
4130   HAVE_IRIX_OS_FALSE=
4131 fi
4132         cat >>confdefs.h <<\_ACEOF
4133 #define HAVE_IRIX_OS 1
4134 _ACEOF
4135
4136 else
4137
4138
4139 if $FALSEPRG; then
4140   HAVE_IRIX_OS_TRUE=
4141   HAVE_IRIX_OS_FALSE='#'
4142 else
4143   HAVE_IRIX_OS_TRUE='#'
4144   HAVE_IRIX_OS_FALSE=
4145 fi
4146 fi
4147
4148 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4149 then
4150
4151
4152 if $TRUEPRG; then
4153   HAVE_DARWIN_OS_TRUE=
4154   HAVE_DARWIN_OS_FALSE='#'
4155 else
4156   HAVE_DARWIN_OS_TRUE='#'
4157   HAVE_DARWIN_OS_FALSE=
4158 fi
4159     cat >>confdefs.h <<\_ACEOF
4160 #define HAVE_DARWIN_OS 1
4161 _ACEOF
4162
4163 else
4164
4165
4166 if $FALSEPRG; then
4167   HAVE_DARWIN_OS_TRUE=
4168   HAVE_DARWIN_OS_FALSE='#'
4169 else
4170   HAVE_DARWIN_OS_TRUE='#'
4171   HAVE_DARWIN_OS_FALSE=
4172 fi
4173 fi
4174
4175
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4181 then
4182         echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4184 then
4185         DISTNAME=alpha
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4187 then
4188         DISTNAME=aix
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4190 then
4191         DISTNAME=hpux
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4193 then
4194         DISTNAME=solaris
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4196 then
4197         DISTNAME=freebsd
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4199 then
4200         DISTNAME=netbsd
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4202 then
4203         DISTNAME=openbsd
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4205 then
4206         DISTNAME=irix
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4208 then
4209         DISTNAME=bsdi
4210 elif test -f /etc/SuSE-release
4211 then
4212         DISTNAME=suse
4213 elif test -d /etc/SuSEconfig
4214 then
4215         DISTNAME=suse5
4216 elif test -f /etc/mandrake-release
4217 then
4218         DISTNAME=mandrake
4219 elif test -f /etc/whitebox-release
4220 then
4221        DISTNAME=redhat
4222 elif test -f /etc/redhat-release
4223 then
4224         DISTNAME=redhat
4225 elif test -f /etc/gentoo-release
4226 then
4227         DISTNAME=gentoo
4228 elif test -f /etc/debian_version
4229 then
4230         DISTNAME=debian
4231 elif test -f /etc/slackware-version
4232 then
4233         DISTNAME=slackware
4234 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4235 then
4236     DISTNAME=darwin
4237 elif test -f /etc/engarde-version
4238 then
4239         DISTNAME=engarde
4240 elif test "$CYGWIN" = yes
4241 then
4242         DISTNAME=cygwin
4243         cat >>confdefs.h <<\_ACEOF
4244 #define HAVE_CYGWIN 1
4245 _ACEOF
4246
4247 else
4248         DISTNAME=unknown
4249 fi
4250 echo "$as_me:$LINENO: result: done" >&5
4251 echo "${ECHO_T}done" >&6
4252
4253
4254 # -----------------------------------------------------------
4255 # ----------------------------------------------------------
4256
4257
4258
4259 if false; then
4260   INSIDE_GNOME_COMMON_TRUE=
4261   INSIDE_GNOME_COMMON_FALSE='#'
4262 else
4263   INSIDE_GNOME_COMMON_TRUE='#'
4264   INSIDE_GNOME_COMMON_FALSE=
4265 fi
4266
4267         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4268
4269         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4270
4271
4272 # ------------------------------------------------------------------
4273 #  If the user has not set --prefix, we set our default to nothing.
4274 #  In this case, if the user has not set --sysconfdir, we set it
4275 #  to the package default of /etc/bacula.  If either --prefix or
4276 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4277 # ------------------------------------------------------------------
4278 if test x${prefix} = xNONE ; then
4279     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4280         sysconfdir=/etc/bacula
4281     fi
4282     prefix=
4283 fi
4284 sysconfdir=`eval echo ${sysconfdir}`
4285
4286 # -------------------------------------------------------------------------
4287 #  If the user has not set --exec-prefix, we default to ${prefix}
4288 # -------------------------------------------------------------------------
4289 if test x${exec_prefix} = xNONE ; then
4290     exec_prefix=${prefix}
4291 fi
4292
4293 # ------------------------------------------------------------------
4294 # If the user has not set --sbindir, we set our default as /sbin
4295 # ------------------------------------------------------------------
4296 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4297     sbindir=${exec_prefix}/sbin
4298 fi
4299 sbindir=`eval echo ${sbindir}`
4300
4301 # ------------------------------------------------------------------
4302 # All list of languages for which a translation exist. Each
4303 #  language is separated by a space.
4304 # ------------------------------------------------------------------
4305 ALL_LINGUAS=""
4306
4307 for ac_prog in msgfmt
4308 do
4309   # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_MSGFMT+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   case $MSGFMT in
4317   [\\/]* | ?:[\\/]*)
4318   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4319   ;;
4320   *)
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334
4335   ;;
4336 esac
4337 fi
4338 MSGFMT=$ac_cv_path_MSGFMT
4339
4340 if test -n "$MSGFMT"; then
4341   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4342 echo "${ECHO_T}$MSGFMT" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348   test -n "$MSGFMT" && break
4349 done
4350 test -n "$MSGFMT" || MSGFMT="no"
4351
4352 if test "$MSGFMT" = "no"
4353 then
4354    echo 'msgfmt program not found, disabling NLS !'
4355    USE_NLS=no
4356    USE_INCLUDED_LIBINTL=no
4357 #else
4358 #   AM_GNU_GETTEXT
4359 fi
4360
4361
4362 support_mysql=no
4363 support_sqlite=no
4364 support_postgresql=no
4365 support_smartalloc=yes
4366 support_readline=yes
4367 support_conio=yes
4368 support_gnome=no
4369 support_wx_console=no
4370 gnome_version=
4371 support_static_tools=no
4372 support_static_fd=no
4373 support_static_sd=no
4374 support_static_dir=no
4375 support_static_cons=no
4376 build_client_only=no
4377 cats=
4378 db_name=Internal
4379 DB_NAME=bdb
4380
4381
4382 # -------------------------------------------
4383 # gnome (default off)
4384 # -------------------------------------------
4385 # Check whether --enable-gnome or --disable-gnome was given.
4386 if test "${enable_gnome+set}" = set; then
4387   enableval="$enable_gnome"
4388   if test x$enableval = xyes; then
4389     support_gnome=yes
4390   fi
4391 fi;
4392
4393 GNOME_DIR=
4394 if test x$support_gnome = xyes; then
4395   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4396   pkg=$?
4397   if test $pkg = 0; then
4398      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4399      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4400      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4401      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4402
4403
4404
4405
4406      GNOME_DIR=src/gnome2-console
4407      gnome_version="Version 2.x"
4408   else
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4421 if test "${with_gnome_includes+set}" = set; then
4422   withval="$with_gnome_includes"
4423
4424         CFLAGS="$CFLAGS -I$withval"
4425
4426 fi;
4427
4428
4429 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4430 if test "${with_gnome_libs+set}" = set; then
4431   withval="$with_gnome_libs"
4432
4433         LDFLAGS="$LDFLAGS -L$withval"
4434         gnome_prefix=$withval
4435
4436 fi;
4437
4438
4439 # Check whether --with-gnome or --without-gnome was given.
4440 if test "${with_gnome+set}" = set; then
4441   withval="$with_gnome"
4442   if test x$withval = xyes; then
4443                         want_gnome=yes
4444                                                                         :
4445                 else
4446                         if test "x$withval" = xno; then
4447                                 want_gnome=no
4448                         else
4449                                 want_gnome=yes
4450                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4451                                 CFLAGS="$CFLAGS -I$withval/include"
4452                                 gnome_prefix=$withval/lib
4453                         fi
4454                 fi
4455 else
4456   want_gnome=yes
4457 fi;
4458
4459         if test "x$want_gnome" = xyes; then
4460
4461             # Extract the first word of "gnome-config", so it can be a program name with args.
4462 set dummy gnome-config; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   case $GNOME_CONFIG in
4469   [\\/]* | ?:[\\/]*)
4470   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4471   ;;
4472   *)
4473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486
4487   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4488   ;;
4489 esac
4490 fi
4491 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4492
4493 if test -n "$GNOME_CONFIG"; then
4494   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4495 echo "${ECHO_T}$GNOME_CONFIG" >&6
4496 else
4497   echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 fi
4500
4501             if test "$GNOME_CONFIG" = "no"; then
4502               no_gnome_config="yes"
4503             else
4504               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4505 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4506               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4507                 echo "$as_me:$LINENO: result: yes" >&5
4508 echo "${ECHO_T}yes" >&6
4509
4510
4511         # Extract the first word of "orbit-config", so it can be a program name with args.
4512 set dummy orbit-config; ac_word=$2
4513 echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   case $ORBIT_CONFIG in
4519   [\\/]* | ?:[\\/]*)
4520   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4521   ;;
4522   *)
4523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536
4537   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4538   ;;
4539 esac
4540 fi
4541 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4542
4543 if test -n "$ORBIT_CONFIG"; then
4544   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4545 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4546 else
4547   echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551         # Extract the first word of "orbit-idl", so it can be a program name with args.
4552 set dummy orbit-idl; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $ORBIT_IDL in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576
4577   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4578   ;;
4579 esac
4580 fi
4581 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4582
4583 if test -n "$ORBIT_IDL"; then
4584   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4585 echo "${ECHO_T}$ORBIT_IDL" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4592 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4593 if test "${gnome_cv_orbit_found+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596
4597                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4598                         gnome_cv_orbit_found=no
4599                 else
4600                         gnome_cv_orbit_found=yes
4601                 fi
4602
4603 fi
4604 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4605 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4606
4607
4608 if test x$gnome_cv_orbit_found = xyes; then
4609   HAVE_ORBIT_TRUE=
4610   HAVE_ORBIT_FALSE='#'
4611 else
4612   HAVE_ORBIT_TRUE='#'
4613   HAVE_ORBIT_FALSE=
4614 fi
4615         if test x$gnome_cv_orbit_found = xyes; then
4616
4617                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4618                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4619
4620
4621         else
4622                 if test xfail = xfailure; then
4623                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4624 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4625    { (exit 1); exit 1; }; }
4626                 fi
4627         fi
4628
4629         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4630 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4631 if test "${gnome_cv_gnorba_found+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634
4635                 gnome_cv_gnorba_found=no
4636                 if test x$gnome_cv_orbit_found = xyes; then
4637                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4638                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4639                         if test -n "$GNORBA_LIBS"; then
4640                                 gnome_cv_gnorba_found=yes
4641                         fi
4642                 fi
4643
4644 fi
4645 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4646 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4647
4648
4649 if test x$gnome_cv_gnorba_found = xyes; then
4650   HAVE_GNORBA_TRUE=
4651   HAVE_GNORBA_FALSE='#'
4652 else
4653   HAVE_GNORBA_TRUE='#'
4654   HAVE_GNORBA_FALSE=
4655 fi
4656         if test x$gnome_cv_orbit_found = xyes; then
4657
4658                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4659                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4660
4661
4662         else
4663                 if test xfail = xfailure; then
4664                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4665 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4666    { (exit 1); exit 1; }; }
4667                 fi
4668         fi
4669
4670                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4671                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4672                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4673                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4674                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4675                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4676                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4677
4678               else
4679                 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681                 no_gnome_config="yes"
4682               fi
4683             fi
4684
4685             if test x$exec_prefix = xNONE; then
4686                 if test x$prefix = xNONE; then
4687                     gnome_prefix=$ac_default_prefix/lib
4688                 else
4689                     gnome_prefix=$prefix/lib
4690                 fi
4691             else
4692                 gnome_prefix=`eval echo \`echo $libdir\``
4693             fi
4694
4695             if test "$no_gnome_config" = "yes"; then
4696               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4697 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4698               if test -f $gnome_prefix/gnomeConf.sh; then
4699                 echo "$as_me:$LINENO: result: found" >&5
4700 echo "${ECHO_T}found" >&6
4701                 echo "loading gnome configuration from" \
4702                      "$gnome_prefix/gnomeConf.sh"
4703                 . $gnome_prefix/gnomeConf.sh
4704
4705               else
4706                 echo "$as_me:$LINENO: result: not found" >&5
4707 echo "${ECHO_T}not found" >&6
4708                 if test xfail = xfail; then
4709                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4710 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4711    { (exit 1); exit 1; }; }
4712                 fi
4713               fi
4714             fi
4715         fi
4716
4717         if test -n ""; then
4718           n=""
4719           for i in $n; do
4720             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4721 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4722             case $i in
4723               applets)
4724
4725                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4726                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4727 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4728               docklets)
4729
4730                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4731                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4732 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4733               capplet)
4734
4735                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4736                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4737 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4738               *)
4739                 echo "$as_me:$LINENO: result: unknown library" >&5
4740 echo "${ECHO_T}unknown library" >&6
4741             esac
4742             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4743             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4744           done
4745         fi
4746
4747
4748      GNOME_DIR=src/gnome-console
4749      gnome_version="Version 1.4"
4750   fi
4751 fi
4752
4753
4754
4755 # -------------------------------------------
4756 # wx-console (default off)
4757 # -------------------------------------------
4758 # Check whether --enable-wx-console or --disable-wx-console was given.
4759 if test "${enable_wx_console+set}" = set; then
4760   enableval="$enable_wx_console"
4761   if test x$enableval = xyes; then
4762     support_wx_console=yes
4763   fi
4764 fi;
4765
4766 WX_DIR=
4767 if test x$support_wx_console = xyes; then
4768   abc=`$WXCONFIG --cppflags`
4769   pkg=$?
4770   if test $pkg = 0; then
4771      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4772      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4773
4774
4775      WX_DIR=src/wx-console
4776   else
4777      echo " "
4778      echo "wx-config program not found. wx-console disabled."
4779      echo " "
4780      support_wx_console=no
4781   fi
4782 fi
4783
4784
4785
4786 # -------------------------------------------
4787 # tray-monitor (default off)
4788 # -------------------------------------------
4789 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4790 if test "${enable_tray_monitor+set}" = set; then
4791   enableval="$enable_tray_monitor"
4792   if test x$enableval = xyes; then
4793     support_tray_monitor=yes
4794   fi
4795 fi;
4796
4797 TRAY_MONITOR_DIR=
4798 if test x$support_tray_monitor = xyes; then
4799   abc=`$PKGCONFIG --exists gtk+-2.0`
4800   pkg=$?
4801   if test $pkg = 0; then
4802      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4803      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4804
4805
4806      TRAY_MONITOR_DIR=src/tray-monitor
4807      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4808      pkg=$?
4809      if test $pkg = 0; then
4810         cat >>confdefs.h <<\_ACEOF
4811 #define HAVE_GTK_2_4 1
4812 _ACEOF
4813
4814      fi
4815   fi
4816 fi
4817
4818
4819 # -------------------------------------------
4820 # smartalloc (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4823 if test "${enable_smartalloc+set}" = set; then
4824   enableval="$enable_smartalloc"
4825   if test x$enableval = xno; then
4826     support_smartalloc=no
4827   fi
4828 fi;
4829
4830 if test x$support_smartalloc = xyes; then
4831    cat >>confdefs.h <<\_ACEOF
4832 #define SMARTALLOC 1
4833 _ACEOF
4834
4835 fi
4836
4837 # -------------------------------------------
4838 # static-tools (default off)
4839 # -------------------------------------------
4840 # Check whether --enable-static-tools or --disable-static-tools was given.
4841 if test "${enable_static_tools+set}" = set; then
4842   enableval="$enable_static_tools"
4843   if test x$enableval = xyes; then
4844      support_static_tools=yes
4845    fi
4846 fi;
4847
4848 TTOOL_LDFLAGS=
4849 if test x$support_static_tools = xyes; then
4850    TTOOL_LDFLAGS="-static"
4851 fi
4852
4853
4854 # -------------------------------------------
4855 # static-fd    (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-static-fd or --disable-static-fd was given.
4858 if test "${enable_static_fd+set}" = set; then
4859   enableval="$enable_static_fd"
4860   if test x$enableval = xyes; then
4861      support_static_fd=yes
4862    fi
4863 fi;
4864
4865 STATIC_FD=
4866 if test x$support_static_fd = xyes; then
4867    STATIC_FD="static-bacula-fd"
4868 fi
4869
4870
4871 # -------------------------------------------
4872 # static-sd    (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-static-sd or --disable-static-sd was given.
4875 if test "${enable_static_sd+set}" = set; then
4876   enableval="$enable_static_sd"
4877   if test x$enableval = xyes; then
4878      support_static_sd=yes
4879    fi
4880 fi;
4881
4882 STATIC_SD=
4883 if test x$support_static_sd = xyes; then
4884    STATIC_SD="static-bacula-sd"
4885 fi
4886
4887
4888 # -------------------------------------------
4889 # static-dir   (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-static-dir or --disable-static-dir was given.
4892 if test "${enable_static_dir+set}" = set; then
4893   enableval="$enable_static_dir"
4894   if test x$enableval = xyes; then
4895      support_static_dir=yes
4896    fi
4897 fi;
4898
4899 STATIC_DIR=
4900 if test x$support_static_dir = xyes; then
4901    STATIC_DIR="static-bacula-dir"
4902 fi
4903
4904
4905 # -------------------------------------------
4906 # static-cons  (default off)
4907 # -------------------------------------------
4908 # Check whether --enable-static-cons or --disable-static-cons was given.
4909 if test "${enable_static_cons+set}" = set; then
4910   enableval="$enable_static_cons"
4911   if test x$enableval = xyes; then
4912      support_static_cons=yes
4913    fi
4914 fi;
4915
4916 STATIC_CONS=
4917 STATIC_GNOME_CONS=
4918 STATIC_WX_CONS=
4919 if test x$support_static_cons = xyes; then
4920    STATIC_CONS="static-bconsole"
4921    STATIC_GNOME_CONS="static-gnome-console"
4922    STATIC_WX_CONS="static-wx-console"
4923 fi
4924
4925
4926
4927
4928 # -------------------------------------------
4929 # client_only  (default off)
4930 # -------------------------------------------
4931 # Check whether --enable-client-only or --disable-client-only was given.
4932 if test "${enable_client_only+set}" = set; then
4933   enableval="$enable_client_only"
4934   if test x$enableval = xyes; then
4935      build_client_only=yes
4936     db_name=None
4937     DB_NAME=none
4938    fi
4939 fi;
4940 if test x$build_client_only = xno; then
4941    ALL_DIRS="subdirs"
4942 else
4943    ALL_DIRS=""
4944 fi
4945
4946
4947 # ---------------------------------------------------
4948 # Check for conio (Bacula readline substitute)(
4949 # ---------------------------------------------------
4950 # this allows you to turn it completely off
4951 # Check whether --enable-conio or --disable-conio was given.
4952 if test "${enable_conio+set}" = set; then
4953   enableval="$enable_conio"
4954   if test x$enableval = xno; then
4955     support_conio=no
4956   fi
4957 fi;
4958
4959 got_conio="no"
4960 if test x$support_conio = xyes; then
4961    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4963 if test "${ac_cv_header_stdc+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #include <stdlib.h>
4974 #include <stdarg.h>
4975 #include <string.h>
4976 #include <float.h>
4977
4978 int
4979 main ()
4980 {
4981
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988   (eval $ac_compile) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } &&
4992          { ac_try='test -s conftest.$ac_objext'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; }; then
4998   ac_cv_header_stdc=yes
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003 ac_cv_header_stdc=no
5004 fi
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5006
5007 if test $ac_cv_header_stdc = yes; then
5008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009   cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 #include <string.h>
5017
5018 _ACEOF
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020   $EGREP "memchr" >/dev/null 2>&1; then
5021   :
5022 else
5023   ac_cv_header_stdc=no
5024 fi
5025 rm -f conftest*
5026
5027 fi
5028
5029 if test $ac_cv_header_stdc = yes; then
5030   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031   cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 #include <stdlib.h>
5039
5040 _ACEOF
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042   $EGREP "free" >/dev/null 2>&1; then
5043   :
5044 else
5045   ac_cv_header_stdc=no
5046 fi
5047 rm -f conftest*
5048
5049 fi
5050
5051 if test $ac_cv_header_stdc = yes; then
5052   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053   if test "$cross_compiling" = yes; then
5054   :
5055 else
5056   cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5058 /* confdefs.h.  */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h.  */
5063 #include <ctype.h>
5064 #if ((' ' & 0x0FF) == 0x020)
5065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5067 #else
5068 # define ISLOWER(c) \
5069                    (('a' <= (c) && (c) <= 'i') \
5070                      || ('j' <= (c) && (c) <= 'r') \
5071                      || ('s' <= (c) && (c) <= 'z'))
5072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5073 #endif
5074
5075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5076 int
5077 main ()
5078 {
5079   int i;
5080   for (i = 0; i < 256; i++)
5081     if (XOR (islower (i), ISLOWER (i))
5082         || toupper (i) != TOUPPER (i))
5083       exit(2);
5084   exit (0);
5085 }
5086 _ACEOF
5087 rm -f conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089   (eval $ac_link) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   :
5099 else
5100   echo "$as_me: program exited with status $ac_status" >&5
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 ( exit $ac_status )
5105 ac_cv_header_stdc=no
5106 fi
5107 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5108 fi
5109 fi
5110 fi
5111 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5113 if test $ac_cv_header_stdc = yes; then
5114
5115 cat >>confdefs.h <<\_ACEOF
5116 #define STDC_HEADERS 1
5117 _ACEOF
5118
5119 fi
5120
5121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5132                   inttypes.h stdint.h unistd.h
5133 do
5134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 $ac_includes_default
5148
5149 #include <$ac_header>
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153   (eval $ac_compile) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } &&
5157          { ac_try='test -s conftest.$ac_objext'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; }; then
5163   eval "$as_ac_Header=yes"
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 eval "$as_ac_Header=no"
5169 fi
5170 rm -f conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5175   cat >>confdefs.h <<_ACEOF
5176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5177 _ACEOF
5178
5179 fi
5180
5181 done
5182
5183
5184 if test "${ac_cv_header_termcap_h+set}" = set; then
5185   echo "$as_me:$LINENO: checking for termcap.h" >&5
5186 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5187 if test "${ac_cv_header_termcap_h+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 fi
5190 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5191 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5192 else
5193   # Is the header compilable?
5194 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5195 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 $ac_includes_default
5204 #include <termcap.h>
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208   (eval $ac_compile) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_header_compiler=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ac_header_compiler=no
5224 fi
5225 rm -f conftest.$ac_objext conftest.$ac_ext
5226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5227 echo "${ECHO_T}$ac_header_compiler" >&6
5228
5229 # Is the header present?
5230 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5231 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <termcap.h>
5240 _ACEOF
5241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } >/dev/null; then
5249   if test -s conftest.err; then
5250     ac_cpp_err=$ac_c_preproc_warn_flag
5251   else
5252     ac_cpp_err=
5253   fi
5254 else
5255   ac_cpp_err=yes
5256 fi
5257 if test -z "$ac_cpp_err"; then
5258   ac_header_preproc=yes
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263   ac_header_preproc=no
5264 fi
5265 rm -f conftest.err conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5267 echo "${ECHO_T}$ac_header_preproc" >&6
5268
5269 # So?  What about this header?
5270 case $ac_header_compiler:$ac_header_preproc in
5271   yes:no )
5272     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5273 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5274     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5275 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5276     (
5277       cat <<\_ASBOX
5278 ## ------------------------------------ ##
5279 ## Report this to bug-autoconf@gnu.org. ##
5280 ## ------------------------------------ ##
5281 _ASBOX
5282     ) |
5283       sed "s/^/$as_me: WARNING:     /" >&2
5284     ;;
5285   no:yes )
5286     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5287 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5288     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5289 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5290     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5291 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5292     (
5293       cat <<\_ASBOX
5294 ## ------------------------------------ ##
5295 ## Report this to bug-autoconf@gnu.org. ##
5296 ## ------------------------------------ ##
5297 _ASBOX
5298     ) |
5299       sed "s/^/$as_me: WARNING:     /" >&2
5300     ;;
5301 esac
5302 echo "$as_me:$LINENO: checking for termcap.h" >&5
5303 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5304 if test "${ac_cv_header_termcap_h+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   ac_cv_header_termcap_h=$ac_header_preproc
5308 fi
5309 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5310 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5311
5312 fi
5313 if test $ac_cv_header_termcap_h = yes; then
5314    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5315 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5316 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   ac_check_lib_save_LIBS=$LIBS
5320 LIBS="-ltermcap  $LIBS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334    builtin and then its argument prototype would still apply.  */
5335 char tgetent ();
5336 int
5337 main ()
5338 {
5339 tgetent ();
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346   (eval $ac_link) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest$ac_exeext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_lib_termcap_tgetent=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_cv_lib_termcap_tgetent=no
5362 fi
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5367 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5368 if test $ac_cv_lib_termcap_tgetent = yes; then
5369    CONS_LIBS="-ltermcap"
5370          CONS_OBJ="conio.o"
5371          CONS_SRC="conio.c"
5372          got_conio="yes"
5373          support_readline=no
5374
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_CONIO 1
5377 _ACEOF
5378
5379
5380 else
5381    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5382 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5383 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   ac_check_lib_save_LIBS=$LIBS
5387 LIBS="-lncurses  $LIBS"
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395
5396 /* Override any gcc2 internal prototype to avoid an error.  */
5397 #ifdef __cplusplus
5398 extern "C"
5399 #endif
5400 /* We use char because int might match the return type of a gcc2
5401    builtin and then its argument prototype would still apply.  */
5402 char tgetent ();
5403 int
5404 main ()
5405 {
5406 tgetent ();
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413   (eval $ac_link) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -s conftest$ac_exeext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_cv_lib_ncurses_tgetent=yes
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_cv_lib_ncurses_tgetent=no
5429 fi
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5432 fi
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5434 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5435 if test $ac_cv_lib_ncurses_tgetent = yes; then
5436    CONS_LIBS="-lncurses"
5437            CONS_OBJ="conio.o"
5438            CONS_SRC="conio.c"
5439            got_conio="yes"
5440            support_readline=no
5441
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_CONIO 1
5444 _ACEOF
5445
5446
5447 fi
5448
5449
5450 fi
5451
5452
5453 else
5454
5455
5456 for ac_header in curses.h
5457 do
5458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460   echo "$as_me:$LINENO: checking for $ac_header" >&5
5461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5463   echo $ECHO_N "(cached) $ECHO_C" >&6
5464 fi
5465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5467 else
5468   # Is the header compilable?
5469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5473 /* confdefs.h.  */
5474 _ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h.  */
5478 $ac_includes_default
5479 #include <$ac_header>
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483   (eval $ac_compile) 2>&5
5484   ac_status=$?
5485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486   (exit $ac_status); } &&
5487          { ac_try='test -s conftest.$ac_objext'
5488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489   (eval $ac_try) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); }; }; then
5493   ac_header_compiler=yes
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ac_header_compiler=no
5499 fi
5500 rm -f conftest.$ac_objext conftest.$ac_ext
5501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5502 echo "${ECHO_T}$ac_header_compiler" >&6
5503
5504 # Is the header present?
5505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5507 cat >conftest.$ac_ext <<_ACEOF
5508 #line $LINENO "configure"
5509 /* confdefs.h.  */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h.  */
5514 #include <$ac_header>
5515 _ACEOF
5516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } >/dev/null; then
5524   if test -s conftest.err; then
5525     ac_cpp_err=$ac_c_preproc_warn_flag
5526   else
5527     ac_cpp_err=
5528   fi
5529 else
5530   ac_cpp_err=yes
5531 fi
5532 if test -z "$ac_cpp_err"; then
5533   ac_header_preproc=yes
5534 else
5535   echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538   ac_header_preproc=no
5539 fi
5540 rm -f conftest.err conftest.$ac_ext
5541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5542 echo "${ECHO_T}$ac_header_preproc" >&6
5543
5544 # So?  What about this header?
5545 case $ac_header_compiler:$ac_header_preproc in
5546   yes:no )
5547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551     (
5552       cat <<\_ASBOX
5553 ## ------------------------------------ ##
5554 ## Report this to bug-autoconf@gnu.org. ##
5555 ## ------------------------------------ ##
5556 _ASBOX
5557     ) |
5558       sed "s/^/$as_me: WARNING:     /" >&2
5559     ;;
5560   no:yes )
5561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5563     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5567     (
5568       cat <<\_ASBOX
5569 ## ------------------------------------ ##
5570 ## Report this to bug-autoconf@gnu.org. ##
5571 ## ------------------------------------ ##
5572 _ASBOX
5573     ) |
5574       sed "s/^/$as_me: WARNING:     /" >&2
5575     ;;
5576 esac
5577 echo "$as_me:$LINENO: checking for $ac_header" >&5
5578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   eval "$as_ac_Header=$ac_header_preproc"
5583 fi
5584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586
5587 fi
5588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589   cat >>confdefs.h <<_ACEOF
5590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591 _ACEOF
5592
5593 fi
5594
5595 done
5596
5597          echo "$as_me:$LINENO: checking for term.h" >&5
5598 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5599 if test "${ac_cv_header_term_h+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   cat >conftest.$ac_ext <<_ACEOF
5603 #line $LINENO "configure"
5604 /* confdefs.h.  */
5605 _ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h.  */
5609 #if HAVE_CURSES_H
5610 #include <curses.h>
5611 #endif
5612
5613
5614 #include <term.h>
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618   (eval $ac_compile) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); } &&
5622          { ac_try='test -s conftest.$ac_objext'
5623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624   (eval $ac_try) 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); }; }; then
5628   ac_cv_header_term_h=yes
5629 else
5630   echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 ac_cv_header_term_h=no
5634 fi
5635 rm -f conftest.$ac_objext conftest.$ac_ext
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5638 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5639 if test $ac_cv_header_term_h = yes; then
5640    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5641 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5642 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   ac_check_lib_save_LIBS=$LIBS
5646 LIBS="-lcurses  $LIBS"
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654
5655 /* Override any gcc2 internal prototype to avoid an error.  */
5656 #ifdef __cplusplus
5657 extern "C"
5658 #endif
5659 /* We use char because int might match the return type of a gcc2
5660    builtin and then its argument prototype would still apply.  */
5661 char tgetent ();
5662 int
5663 main ()
5664 {
5665 tgetent ();
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672   (eval $ac_link) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } &&
5676          { ac_try='test -s conftest$ac_exeext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_cv_lib_curses_tgetent=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_lib_curses_tgetent=no
5688 fi
5689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5690 LIBS=$ac_check_lib_save_LIBS
5691 fi
5692 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5693 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5694 if test $ac_cv_lib_curses_tgetent = yes; then
5695    CONS_LIBS="-lcurses"
5696                    CONS_OBJ="conio.o"
5697                    CONS_SRC="conio.c"
5698                    got_conio="yes"
5699                    support_readline=no
5700
5701 cat >>confdefs.h <<\_ACEOF
5702 #define HAVE_CONIO 1
5703 _ACEOF
5704
5705
5706 fi
5707
5708
5709 else
5710    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5711 fi
5712
5713
5714
5715 fi
5716
5717
5718 fi
5719
5720
5721 # ---------------------------------------------------
5722 # Check for readline support/directory (default off)
5723 # ---------------------------------------------------
5724 # this allows you to turn it completely off
5725 # Check whether --enable-readline or --disable-readline was given.
5726 if test "${enable_readline+set}" = set; then
5727   enableval="$enable_readline"
5728   if test x$enableval = xno; then
5729     support_readline=no
5730   fi
5731 fi;
5732
5733 got_readline="no"
5734 READLINE_SRC=
5735 if test x$support_readline = xyes; then
5736
5737 # Check whether --with-readline or --without-readline was given.
5738 if test "${with_readline+set}" = set; then
5739   withval="$with_readline"
5740
5741         case "$with_readline" in
5742         no) : ;;
5743         yes|*)
5744           if test "$with_readline" != "yes"; then
5745             CONS_INC="-I${with_readline}"
5746             CONS_LDFLAGS="-L$with_readline"
5747           else
5748              with_readline="/usr/include/readline"
5749           fi
5750           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5753 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755   echo $ECHO_N "(cached) $ECHO_C" >&6
5756 fi
5757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5759 else
5760   # Is the header compilable?
5761 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5762 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 /* confdefs.h.  */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h.  */
5770 $ac_includes_default
5771 #include <${with_readline}/readline.h>
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775   (eval $ac_compile) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } &&
5779          { ac_try='test -s conftest.$ac_objext'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; }; then
5785   ac_header_compiler=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790 ac_header_compiler=no
5791 fi
5792 rm -f conftest.$ac_objext conftest.$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5794 echo "${ECHO_T}$ac_header_compiler" >&6
5795
5796 # Is the header present?
5797 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5798 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 #include <${with_readline}/readline.h>
5807 _ACEOF
5808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5809   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5810   ac_status=$?
5811   grep -v '^ *+' conftest.er1 >conftest.err
5812   rm -f conftest.er1
5813   cat conftest.err >&5
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } >/dev/null; then
5816   if test -s conftest.err; then
5817     ac_cpp_err=$ac_c_preproc_warn_flag
5818   else
5819     ac_cpp_err=
5820   fi
5821 else
5822   ac_cpp_err=yes
5823 fi
5824 if test -z "$ac_cpp_err"; then
5825   ac_header_preproc=yes
5826 else
5827   echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830   ac_header_preproc=no
5831 fi
5832 rm -f conftest.err conftest.$ac_ext
5833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5834 echo "${ECHO_T}$ac_header_preproc" >&6
5835
5836 # So?  What about this header?
5837 case $ac_header_compiler:$ac_header_preproc in
5838   yes:no )
5839     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5840 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5841     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5842 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5843     (
5844       cat <<\_ASBOX
5845 ## ------------------------------------ ##
5846 ## Report this to bug-autoconf@gnu.org. ##
5847 ## ------------------------------------ ##
5848 _ASBOX
5849     ) |
5850       sed "s/^/$as_me: WARNING:     /" >&2
5851     ;;
5852   no:yes )
5853     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5854 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5855     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5856 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5857     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5858 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5859     (
5860       cat <<\_ASBOX
5861 ## ------------------------------------ ##
5862 ## Report this to bug-autoconf@gnu.org. ##
5863 ## ------------------------------------ ##
5864 _ASBOX
5865     ) |
5866       sed "s/^/$as_me: WARNING:     /" >&2
5867     ;;
5868 esac
5869 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5870 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   eval "$as_ac_Header=$ac_header_preproc"
5875 fi
5876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5878
5879 fi
5880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5881    cat >>confdefs.h <<\_ACEOF
5882 #define HAVE_READLINE 1
5883 _ACEOF
5884
5885                CONS_LIBS="-lreadline -ltermcap"
5886                got_readline="yes"
5887
5888 else
5889    echo " "
5890                echo "readline.h not found. readline turned off ..."
5891                echo " "
5892
5893
5894 fi
5895
5896
5897           ;;
5898         esac
5899
5900 else
5901
5902        # check for standard readline library
5903        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5904   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5905 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5906 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 fi
5909 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5910 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5911 else
5912   # Is the header compilable?
5913 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5914 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 /* confdefs.h.  */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h.  */
5922 $ac_includes_default
5923 #include </usr/include/readline/readline.h>
5924 _ACEOF
5925 rm -f conftest.$ac_objext
5926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927   (eval $ac_compile) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); } &&
5931          { ac_try='test -s conftest.$ac_objext'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_header_compiler=yes
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_header_compiler=no
5943 fi
5944 rm -f conftest.$ac_objext conftest.$ac_ext
5945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5946 echo "${ECHO_T}$ac_header_compiler" >&6
5947
5948 # Is the header present?
5949 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5950 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5951 cat >conftest.$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5958 #include </usr/include/readline/readline.h>
5959 _ACEOF
5960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5962   ac_status=$?
5963   grep -v '^ *+' conftest.er1 >conftest.err
5964   rm -f conftest.er1
5965   cat conftest.err >&5
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); } >/dev/null; then
5968   if test -s conftest.err; then
5969     ac_cpp_err=$ac_c_preproc_warn_flag
5970   else
5971     ac_cpp_err=
5972   fi
5973 else
5974   ac_cpp_err=yes
5975 fi
5976 if test -z "$ac_cpp_err"; then
5977   ac_header_preproc=yes
5978 else
5979   echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982   ac_header_preproc=no
5983 fi
5984 rm -f conftest.err conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5986 echo "${ECHO_T}$ac_header_preproc" >&6
5987
5988 # So?  What about this header?
5989 case $ac_header_compiler:$ac_header_preproc in
5990   yes:no )
5991     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5992 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5993     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5994 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5995     (
5996       cat <<\_ASBOX
5997 ## ------------------------------------ ##
5998 ## Report this to bug-autoconf@gnu.org. ##
5999 ## ------------------------------------ ##
6000 _ASBOX
6001     ) |
6002       sed "s/^/$as_me: WARNING:     /" >&2
6003     ;;
6004   no:yes )
6005     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6006 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6007     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6008 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6009     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6010 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6011     (
6012       cat <<\_ASBOX
6013 ## ------------------------------------ ##
6014 ## Report this to bug-autoconf@gnu.org. ##
6015 ## ------------------------------------ ##
6016 _ASBOX
6017     ) |
6018       sed "s/^/$as_me: WARNING:     /" >&2
6019     ;;
6020 esac
6021 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6022 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6023 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6027 fi
6028 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6029 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6030
6031 fi
6032 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6033    cat >>confdefs.h <<\_ACEOF
6034 #define HAVE_READLINE 1
6035 _ACEOF
6036
6037            got_readline="yes"
6038            CONS_INC="-I/usr/include/readline"
6039            CONS_LIBS="-lreadline -ltermcap"
6040
6041 else
6042
6043            # Did not find standard library, so try Bacula's default
6044             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6047 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 fi
6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053 else
6054   # Is the header compilable?
6055 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6056 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6057 cat >conftest.$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 $ac_includes_default
6065 #include <${TOP_DIR}/depkgs/readline/readline.h>
6066 _ACEOF
6067 rm -f conftest.$ac_objext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069   (eval $ac_compile) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } &&
6073          { ac_try='test -s conftest.$ac_objext'
6074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075   (eval $ac_try) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; }; then
6079   ac_header_compiler=yes
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_header_compiler=no
6085 fi
6086 rm -f conftest.$ac_objext conftest.$ac_ext
6087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6088 echo "${ECHO_T}$ac_header_compiler" >&6
6089
6090 # Is the header present?
6091 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6092 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line $LINENO "configure"
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #include <${TOP_DIR}/depkgs/readline/readline.h>
6101 _ACEOF
6102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } >/dev/null; then
6110   if test -s conftest.err; then
6111     ac_cpp_err=$ac_c_preproc_warn_flag
6112   else
6113     ac_cpp_err=
6114   fi
6115 else
6116   ac_cpp_err=yes
6117 fi
6118 if test -z "$ac_cpp_err"; then
6119   ac_header_preproc=yes
6120 else
6121   echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6123
6124   ac_header_preproc=no
6125 fi
6126 rm -f conftest.err conftest.$ac_ext
6127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6128 echo "${ECHO_T}$ac_header_preproc" >&6
6129
6130 # So?  What about this header?
6131 case $ac_header_compiler:$ac_header_preproc in
6132   yes:no )
6133     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6134 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6135     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6136 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6137     (
6138       cat <<\_ASBOX
6139 ## ------------------------------------ ##
6140 ## Report this to bug-autoconf@gnu.org. ##
6141 ## ------------------------------------ ##
6142 _ASBOX
6143     ) |
6144       sed "s/^/$as_me: WARNING:     /" >&2
6145     ;;
6146   no:yes )
6147     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6148 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6149     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6150 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6151     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6152 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6153     (
6154       cat <<\_ASBOX
6155 ## ------------------------------------ ##
6156 ## Report this to bug-autoconf@gnu.org. ##
6157 ## ------------------------------------ ##
6158 _ASBOX
6159     ) |
6160       sed "s/^/$as_me: WARNING:     /" >&2
6161     ;;
6162 esac
6163 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6164 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   eval "$as_ac_Header=$ac_header_preproc"
6169 fi
6170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6172
6173 fi
6174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6175    cat >>confdefs.h <<\_ACEOF
6176 #define HAVE_READLINE 1
6177 _ACEOF
6178
6179                  got_readline="yes"
6180                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6181                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6182                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6183                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6184
6185 else
6186    echo " "
6187                 echo "readline.h not found. readline turned off ..."
6188                 echo " "
6189
6190
6191 fi
6192
6193
6194
6195
6196 fi
6197
6198
6199
6200
6201 fi;
6202 fi
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213 # Minimal stuff for readline Makefile configuration
6214 MAKE_SHELL=/bin/sh
6215
6216 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6217 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6218 if test "${ac_cv_header_stat_broken+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228 #include <sys/types.h>
6229 #include <sys/stat.h>
6230
6231 #if defined(S_ISBLK) && defined(S_IFDIR)
6232 # if S_ISBLK (S_IFDIR)
6233 You lose.
6234 # endif
6235 #endif
6236
6237 #if defined(S_ISBLK) && defined(S_IFCHR)
6238 # if S_ISBLK (S_IFCHR)
6239 You lose.
6240 # endif
6241 #endif
6242
6243 #if defined(S_ISLNK) && defined(S_IFREG)
6244 # if S_ISLNK (S_IFREG)
6245 You lose.
6246 # endif
6247 #endif
6248
6249 #if defined(S_ISSOCK) && defined(S_IFREG)
6250 # if S_ISSOCK (S_IFREG)
6251 You lose.
6252 # endif
6253 #endif
6254
6255 _ACEOF
6256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257   $EGREP "You lose" >/dev/null 2>&1; then
6258   ac_cv_header_stat_broken=yes
6259 else
6260   ac_cv_header_stat_broken=no
6261 fi
6262 rm -f conftest*
6263
6264 fi
6265 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6266 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6267 if test $ac_cv_header_stat_broken = yes; then
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 #define STAT_MACROS_BROKEN 1
6271 _ACEOF
6272
6273 fi
6274
6275
6276
6277
6278
6279
6280 ac_header_dirent=no
6281 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6282   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6283 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6284 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #include <sys/types.h>
6296 #include <$ac_hdr>
6297
6298 int
6299 main ()
6300 {
6301 if ((DIR *) 0)
6302 return 0;
6303   ;
6304   return 0;
6305 }
6306 _ACEOF
6307 rm -f conftest.$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309   (eval $ac_compile) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } &&
6313          { ac_try='test -s conftest.$ac_objext'
6314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315   (eval $ac_try) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); }; }; then
6319   eval "$as_ac_Header=yes"
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 eval "$as_ac_Header=no"
6325 fi
6326 rm -f conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6331   cat >>confdefs.h <<_ACEOF
6332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6333 _ACEOF
6334
6335 ac_header_dirent=$ac_hdr; break
6336 fi
6337
6338 done
6339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6340 if test $ac_header_dirent = dirent.h; then
6341   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6343 if test "${ac_cv_search_opendir+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   ac_func_search_save_LIBS=$LIBS
6347 ac_cv_search_opendir=no
6348 cat >conftest.$ac_ext <<_ACEOF
6349 #line $LINENO "configure"
6350 /* confdefs.h.  */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h.  */
6355
6356 /* Override any gcc2 internal prototype to avoid an error.  */
6357 #ifdef __cplusplus
6358 extern "C"
6359 #endif
6360 /* We use char because int might match the return type of a gcc2
6361    builtin and then its argument prototype would still apply.  */
6362 char opendir ();
6363 int
6364 main ()
6365 {
6366 opendir ();
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   ac_cv_search_opendir="none required"
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6387
6388 fi
6389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6390 if test "$ac_cv_search_opendir" = no; then
6391   for ac_lib in dir; do
6392     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6393     cat >conftest.$ac_ext <<_ACEOF
6394 #line $LINENO "configure"
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400
6401 /* Override any gcc2 internal prototype to avoid an error.  */
6402 #ifdef __cplusplus
6403 extern "C"
6404 #endif
6405 /* We use char because int might match the return type of a gcc2
6406    builtin and then its argument prototype would still apply.  */
6407 char opendir ();
6408 int
6409 main ()
6410 {
6411 opendir ();
6412   ;
6413   return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418   (eval $ac_link) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } &&
6422          { ac_try='test -s conftest$ac_exeext'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_search_opendir="-l$ac_lib"
6429 break
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 fi
6435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6436   done
6437 fi
6438 LIBS=$ac_func_search_save_LIBS
6439 fi
6440 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6441 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6442 if test "$ac_cv_search_opendir" != no; then
6443   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6444
6445 fi
6446
6447 else
6448   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6450 if test "${ac_cv_search_opendir+set}" = set; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   ac_func_search_save_LIBS=$LIBS
6454 ac_cv_search_opendir=no
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
6463 /* Override any gcc2 internal prototype to avoid an error.  */
6464 #ifdef __cplusplus
6465 extern "C"
6466 #endif
6467 /* We use char because int might match the return type of a gcc2
6468    builtin and then its argument prototype would still apply.  */
6469 char opendir ();
6470 int
6471 main ()
6472 {
6473 opendir ();
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480   (eval $ac_link) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); } &&
6484          { ac_try='test -s conftest$ac_exeext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_cv_search_opendir="none required"
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 fi
6496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497 if test "$ac_cv_search_opendir" = no; then
6498   for ac_lib in x; do
6499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6500     cat >conftest.$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507
6508 /* Override any gcc2 internal prototype to avoid an error.  */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 /* We use char because int might match the return type of a gcc2
6513    builtin and then its argument prototype would still apply.  */
6514 char opendir ();
6515 int
6516 main ()
6517 {
6518 opendir ();
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525   (eval $ac_link) 2>&5
6526   ac_status=$?
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -s conftest$ac_exeext'
6530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531   (eval $ac_try) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); }; }; then
6535   ac_cv_search_opendir="-l$ac_lib"
6536 break
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 fi
6542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6543   done
6544 fi
6545 LIBS=$ac_func_search_save_LIBS
6546 fi
6547 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6548 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6549 if test "$ac_cv_search_opendir" != no; then
6550   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6551
6552 fi
6553
6554 fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6565 do
6566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6567 echo "$as_me:$LINENO: checking for $ac_func" >&5
6568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6569 if eval "test \"\${$as_ac_var+set}\" = set"; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 /* System header to define __stub macros and hopefully few prototypes,
6580     which can conflict with char $ac_func (); below.
6581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6582     <limits.h> exists even on freestanding compilers.  */
6583 #ifdef __STDC__
6584 # include <limits.h>
6585 #else
6586 # include <assert.h>
6587 #endif
6588 /* Override any gcc2 internal prototype to avoid an error.  */
6589 #ifdef __cplusplus
6590 extern "C"
6591 {
6592 #endif
6593 /* We use char because int might match the return type of a gcc2
6594    builtin and then its argument prototype would still apply.  */
6595 char $ac_func ();
6596 /* The GNU C library defines this for functions which it implements
6597     to always fail with ENOSYS.  Some functions are actually named
6598     something starting with __ and the normal name is an alias.  */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6600 choke me
6601 #else
6602 char (*f) () = $ac_func;
6603 #endif
6604 #ifdef __cplusplus
6605 }
6606 #endif
6607
6608 int
6609 main ()
6610 {
6611 return f != $ac_func;
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 rm -f conftest.$ac_objext conftest$ac_exeext
6617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618   (eval $ac_link) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); } &&
6622          { ac_try='test -s conftest$ac_exeext'
6623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624   (eval $ac_try) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); }; }; then
6628   eval "$as_ac_var=yes"
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 eval "$as_ac_var=no"
6634 fi
6635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 fi
6637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6639 if test `eval echo '${'$as_ac_var'}'` = yes; then
6640   cat >>confdefs.h <<_ACEOF
6641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6642 _ACEOF
6643
6644 fi
6645 done
6646
6647
6648
6649 for ac_func in nanosleep nl_langinfo
6650 do
6651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6652 echo "$as_me:$LINENO: checking for $ac_func" >&5
6653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6654 if eval "test \"\${$as_ac_var+set}\" = set"; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   cat >conftest.$ac_ext <<_ACEOF
6658 #line $LINENO "configure"
6659 /* confdefs.h.  */
6660 _ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h.  */
6664 /* System header to define __stub macros and hopefully few prototypes,
6665     which can conflict with char $ac_func (); below.
6666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667     <limits.h> exists even on freestanding compilers.  */
6668 #ifdef __STDC__
6669 # include <limits.h>
6670 #else
6671 # include <assert.h>
6672 #endif
6673 /* Override any gcc2 internal prototype to avoid an error.  */
6674 #ifdef __cplusplus
6675 extern "C"
6676 {
6677 #endif
6678 /* We use char because int might match the return type of a gcc2
6679    builtin and then its argument prototype would still apply.  */
6680 char $ac_func ();
6681 /* The GNU C library defines this for functions which it implements
6682     to always fail with ENOSYS.  Some functions are actually named
6683     something starting with __ and the normal name is an alias.  */
6684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6685 choke me
6686 #else
6687 char (*f) () = $ac_func;
6688 #endif
6689 #ifdef __cplusplus
6690 }
6691 #endif
6692
6693 int
6694 main ()
6695 {
6696 return f != $ac_func;
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -s conftest$ac_exeext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713   eval "$as_ac_var=yes"
6714 else
6715   echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 eval "$as_ac_var=no"
6719 fi
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6721 fi
6722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6724 if test `eval echo '${'$as_ac_var'}'` = yes; then
6725   cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6727 _ACEOF
6728
6729 fi
6730 done
6731
6732
6733 for ac_header in varargs.h
6734 do
6735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6737   echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 fi
6742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6744 else
6745   # Is the header compilable?
6746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line $LINENO "configure"
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 $ac_includes_default
6756 #include <$ac_header>
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760   (eval $ac_compile) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -s conftest.$ac_objext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770   ac_header_compiler=yes
6771 else
6772   echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_header_compiler=no
6776 fi
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6779 echo "${ECHO_T}$ac_header_compiler" >&6
6780
6781 # Is the header present?
6782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6785 #line $LINENO "configure"
6786 /* confdefs.h.  */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h.  */
6791 #include <$ac_header>
6792 _ACEOF
6793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } >/dev/null; then
6801   if test -s conftest.err; then
6802     ac_cpp_err=$ac_c_preproc_warn_flag
6803   else
6804     ac_cpp_err=
6805   fi
6806 else
6807   ac_cpp_err=yes
6808 fi
6809 if test -z "$ac_cpp_err"; then
6810   ac_header_preproc=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815   ac_header_preproc=no
6816 fi
6817 rm -f conftest.err conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6819 echo "${ECHO_T}$ac_header_preproc" >&6
6820
6821 # So?  What about this header?
6822 case $ac_header_compiler:$ac_header_preproc in
6823   yes:no )
6824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6828     (
6829       cat <<\_ASBOX
6830 ## ------------------------------------ ##
6831 ## Report this to bug-autoconf@gnu.org. ##
6832 ## ------------------------------------ ##
6833 _ASBOX
6834     ) |
6835       sed "s/^/$as_me: WARNING:     /" >&2
6836     ;;
6837   no:yes )
6838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6840     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6844     (
6845       cat <<\_ASBOX
6846 ## ------------------------------------ ##
6847 ## Report this to bug-autoconf@gnu.org. ##
6848 ## ------------------------------------ ##
6849 _ASBOX
6850     ) |
6851       sed "s/^/$as_me: WARNING:     /" >&2
6852     ;;
6853 esac
6854 echo "$as_me:$LINENO: checking for $ac_header" >&5
6855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   eval "$as_ac_Header=$ac_header_preproc"
6860 fi
6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6863
6864 fi
6865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6866   cat >>confdefs.h <<_ACEOF
6867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6868 _ACEOF
6869
6870 fi
6871
6872 done
6873
6874
6875 # End of readline/conio stuff
6876 # -----------------------------------------------------------------------
6877
6878 # -------------------------------------------
6879 # check for cdrecord writer location
6880 # get scsibus,target,lun
6881 # -------------------------------------------
6882 CDSTL="3,0,0"
6883 if test ! x$CDRECORD = x ; then
6884    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6885    if test x${CDSTL} = x ; then
6886       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6887    fi
6888    if test x${CDSTL} = x ; then
6889       CDSTL="3,0,0"
6890    fi
6891 fi
6892
6893
6894
6895 # ---------------------------------------------------
6896 # Check for GMP support/directory
6897 # ---------------------------------------------------
6898 #GMP_SRC=
6899 #local_gmp="no"
6900 #AC_ARG_WITH(gmp,
6901 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6902 #  [
6903 #     case "$with_gmp" in
6904 #     no) : ;;
6905 #     yes|*)
6906 #       if test "$with_gmp" != "yes"; then
6907 #         GMP_INC="-I$with_gmp"
6908 #         GMP_LIBS="-lgmp"
6909 #         GMP_LDFLAGS="-L$with_gmp"
6910 #       else
6911 #          with_gmp="/usr/include"
6912 #       fi
6913 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6914 #          [ AC_MSG_RESULT(yes)
6915 #            AC_DEFINE(HAVE_GMP)
6916 #            GMP_LIBS="-lgmp"
6917 #            got_gmp="yes"
6918 #          ],
6919 #          [ AC_MSG_ERROR([*** gmp library missing])
6920 #          ]
6921 #       )
6922 #       ;;
6923 #     esac
6924 #  ],[
6925 #    # check for standard gmp library
6926 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6927 #    [ AC_MSG_RESULT(yes)
6928 #      AC_DEFINE(HAVE_GMP)
6929 #      got_gmp="yes"
6930 #      GMP_INC=
6931 #      GMP_LIBS="-lgmp"
6932 #    ], [
6933 #      # Did not find standard library, so use our own
6934 #      AC_MSG_RESULT(yes)
6935 #      AC_DEFINE(HAVE_GMP)
6936 #      got_gmp="yes"
6937 #      local_gmp="yes"
6938 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6939 #      GMP_LIBS="-lgmp"
6940 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6941 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6942 #    ])
6943 #  ]
6944 #)
6945 #AC_SUBST(GMP_INC)
6946 #AC_SUBST(GMP_LIBS)
6947 #AC_SUBST(GMP_LDFLAGS)
6948 #AC_SUBST(GMP_SRC)
6949
6950 # End of GMP stuff
6951 # -----------------------------------------------------------------------
6952
6953
6954 # ---------------------------------------------------
6955 # Check for CWEB support/directory
6956 # ---------------------------------------------------
6957 #CWEB_SRC=
6958 #CWEB=/bin
6959 #local_cweb="no"
6960 #AC_ARG_WITH(cweb,
6961 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6962 #  [
6963 #     case "$with_cweb" in
6964 #     no) : ;;
6965 #     yes|*)
6966 #       if test "$with_cweb" != "yes"; then
6967 #         CWEB_INC="-I$with_cweb"
6968 #         CWEB_LIBS="-lcweb"
6969 #         CWEB_LDFLAGS="-L$with_cweb"
6970 #       else
6971 #          with_cweb="/usr/include"
6972 #       fi
6973 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6974 #          [ AC_MSG_RESULT(yes)
6975 #            AC_DEFINE(HAVE_CWEB)
6976 #            CWEB_LIBS="-lcweb"
6977 #            got_cweb="yes"
6978 #          ],
6979 #          [ AC_MSG_ERROR([*** cweb library missing])
6980 #          ]
6981 #       )
6982 #       ;;
6983 #     esac
6984 #  ],[
6985 #    # check for standard cweb library
6986 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6987 #    [ AC_MSG_RESULT(yes)
6988 #      AC_DEFINE(HAVE_CWEB)
6989 #      got_cweb="yes"
6990 #      CWEB_INC=
6991 #      CWEB_LIBS="-lcweb"
6992 #    ], [
6993 #      # Did not find starndard library, so use our own
6994 #      AC_MSG_RESULT(yes)
6995 #      AC_DEFINE(HAVE_CWEB)
6996 #      got_cweb="yes"
6997 #      local_cweb="yes"
6998 #      CWEB=${TOP_DIR}/depkgs/cweb
6999 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7000 #      CWEB_LIBS="-lcweb"
7001 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7002 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7003 #    ])
7004 #  ]
7005 #)
7006 #AC_SUBST(CWEB)
7007 #AC_SUBST(CWEB_INC)
7008 #AC_SUBST(CWEB_LIBS)
7009 #AC_SUBST(CWEB_LDFLAGS)
7010 #AC_SUBST(CWEB_SRC)
7011
7012 # End of CWEB stuff
7013 # -----------------------------------------------------------------------
7014
7015
7016
7017 # -----------------------------------------------------------
7018 # Check whether user wants TCP wrappers support (default off)
7019 # -----------------------------------------------------------
7020 TCPW_MSG="no"
7021
7022 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7023 if test "${with_tcp_wrappers+set}" = set; then
7024   withval="$with_tcp_wrappers"
7025
7026     if test "x$withval" != "xno" ; then
7027        saved_LIBS="$LIBS"
7028        LIBS="$saved_LIBS -lwrap"
7029        echo "$as_me:$LINENO: checking for libwrap" >&5
7030 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7031        cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038  #include <tcpd.h>
7039              int deny_severity = 0;
7040              int allow_severity = 0;
7041              struct request_info *req;
7042 int
7043 main ()
7044 {
7045  hosts_access(req);
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052   (eval $ac_link) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } &&
7056          { ac_try='test -s conftest$ac_exeext'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; }; then
7062
7063             echo "$as_me:$LINENO: result: yes" >&5
7064 echo "${ECHO_T}yes" >&6
7065             cat >>confdefs.h <<\_ACEOF
7066 #define HAVE_LIBWRAP 1
7067 _ACEOF
7068
7069             TCPW_MSG="yes"
7070
7071 else
7072   echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075
7076             LIBS="$saved_LIBS -lwrap -lnsl"
7077             cat >conftest.$ac_ext <<_ACEOF
7078 #line $LINENO "configure"
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084  #include <tcpd.h>
7085                  int deny_severity = 0;
7086                  int allow_severity = 0;
7087                  struct request_info *req;
7088 int
7089 main ()
7090 {
7091  hosts_access(req);
7092   ;
7093   return 0;
7094 }
7095 _ACEOF
7096 rm -f conftest.$ac_objext conftest$ac_exeext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7098   (eval $ac_link) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); } &&
7102          { ac_try='test -s conftest$ac_exeext'
7103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104   (eval $ac_try) 2>&5
7105   ac_status=$?
7106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107   (exit $ac_status); }; }; then
7108
7109                  echo "$as_me:$LINENO: result: yes" >&5
7110 echo "${ECHO_T}yes" >&6
7111                  cat >>confdefs.h <<\_ACEOF
7112 #define HAVE_LIBWRAP 1
7113 _ACEOF
7114
7115                  TCPW_MSG="yes"
7116
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7122 echo "$as_me: error: *** libwrap missing" >&2;}
7123    { (exit 1); exit 1; }; }
7124
7125 fi
7126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7127
7128 fi
7129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7130     fi
7131
7132
7133 fi;
7134
7135 # ------------------------------------------
7136 # Where to place working dir
7137 # ------------------------------------------
7138 working_dir=`eval echo ${prefix}/var/bacula/working`
7139
7140 # Check whether --with-working-dir or --without-working-dir was given.
7141 if test "${with_working_dir+set}" = set; then
7142   withval="$with_working_dir"
7143
7144        if test "x$withval" != "xno" ; then
7145               working_dir=$withval
7146        fi
7147
7148
7149 fi;
7150
7151
7152
7153
7154 # ------------------------------------------
7155 # Where to place scriptdir (script files)
7156 # ------------------------------------------
7157 scriptdir=`eval echo ${sysconfdir}`
7158
7159 # Check whether --with-scriptdir or --without-scriptdir was given.
7160 if test "${with_scriptdir+set}" = set; then
7161   withval="$with_scriptdir"
7162
7163        if test "x$withval" != "xno" ; then
7164               scriptdir=$withval
7165        fi
7166
7167
7168 fi;
7169
7170
7171
7172
7173 # ------------------------------------------
7174 # Where to send dump email
7175 # ------------------------------------------
7176 dump_email=root@localhost
7177
7178 # Check whether --with-dump-email or --without-dump-email was given.
7179 if test "${with_dump_email+set}" = set; then
7180   withval="$with_dump_email"
7181
7182        if test "x$withval" != "xno" ; then
7183               dump_email=$withval
7184        fi
7185
7186
7187 fi;
7188
7189
7190
7191 # ------------------------------------------
7192 # Where to send job email
7193 # ------------------------------------------
7194 job_email=root@localhost
7195
7196 # Check whether --with-job-email or --without-job-email was given.
7197 if test "${with_job_email+set}" = set; then
7198   withval="$with_job_email"
7199
7200        if test "x$withval" != "xno" ; then
7201               job_email=$withval
7202        fi
7203
7204
7205 fi;
7206
7207
7208
7209 # ------------------------------------------
7210 # Where to find smtp host
7211 # ------------------------------------------
7212 smtp_host=localhost
7213
7214 # Check whether --with-smtp_host or --without-smtp_host was given.
7215 if test "${with_smtp_host+set}" = set; then
7216   withval="$with_smtp_host"
7217
7218        if test "x$withval" != "xno" ; then
7219               smtp_host=$withval
7220        fi
7221
7222
7223 fi;
7224
7225
7226
7227
7228 # ------------------------------------
7229 # Where to place pid files
7230 # ------------------------------------
7231 piddir=/var/run
7232
7233 # Check whether --with-pid-dir or --without-pid-dir was given.
7234 if test "${with_pid_dir+set}" = set; then
7235   withval="$with_pid_dir"
7236
7237         if test "x$withval" != "xno" ; then
7238             piddir=$withval
7239         fi
7240
7241
7242 fi;
7243
7244 cat >>confdefs.h <<_ACEOF
7245 #define _PATH_BACULA_PIDDIR "$piddir"
7246 _ACEOF
7247
7248
7249
7250
7251 # ------------------------------------
7252 # Where to place subsys "lock file"
7253 # ------------------------------------
7254 subsysdir=/var/run/subsys
7255
7256 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7257 if test "${with_subsys_dir+set}" = set; then
7258   withval="$with_subsys_dir"
7259
7260         if test "x$withval" != "xno" ; then
7261             subsysdir=$withval
7262         fi
7263
7264
7265 fi;
7266
7267
7268
7269
7270
7271 # ------------------------------------
7272 # Where to start assigning ports
7273 # ------------------------------------
7274 baseport=9101
7275
7276 # Check whether --with-baseport or --without-baseport was given.
7277 if test "${with_baseport+set}" = set; then
7278   withval="$with_baseport"
7279
7280         if test "x$withval" != "xno" ; then
7281              baseport=$withval
7282         fi
7283
7284
7285 fi;
7286
7287
7288 dir_port=`expr $baseport`
7289 fd_port=`expr $baseport + 1`
7290 sd_port=`expr $fd_port + 1`
7291
7292
7293
7294
7295
7296
7297 # ------------------------------------------
7298 # Generate passwords
7299 # ------------------------------------------
7300 dir_password=
7301
7302 # Check whether --with-dir-password or --without-dir-password was given.
7303 if test "${with_dir_password+set}" = set; then
7304   withval="$with_dir_password"
7305
7306        if test "x$withval" != "xno" ; then
7307            dir_password=$withval
7308        fi
7309
7310
7311 fi;
7312
7313 if test "x$dir_password" = "x" ; then
7314    if test "x$OPENSSL" = "xnone" ; then
7315 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7316       key=`autoconf/randpass 33`
7317    else
7318       key=`openssl rand -base64 33`
7319    fi
7320    dir_password=$key
7321 fi
7322
7323 fd_password=
7324
7325 # Check whether --with-fd-password or --without-fd-password was given.
7326 if test "${with_fd_password+set}" = set; then
7327   withval="$with_fd_password"
7328
7329        if test "x$withval" != "xno" ; then
7330            fd_password=$withval
7331        fi
7332
7333
7334 fi;
7335
7336 if test "x$fd_password" = "x" ; then
7337    if test "x$OPENSSL" = "xnone" ; then
7338 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7339       key=`autoconf/randpass 37`
7340    else
7341       key=`openssl rand -base64 33`
7342    fi
7343    fd_password=$key
7344 fi
7345
7346 sd_password=
7347
7348 # Check whether --with-sd-password or --without-sd-password was given.
7349 if test "${with_sd_password+set}" = set; then
7350   withval="$with_sd_password"
7351
7352        if test "x$withval" != "xno" ; then
7353            sd_password=$withval
7354        fi
7355
7356
7357 fi;
7358
7359 if test "x$sd_password" = "x" ; then
7360    if test "x$OPENSSL" = "xnone" ; then
7361 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7362       key=`autoconf/randpass 41`
7363    else
7364       key=`openssl rand -base64 33`
7365    fi
7366    sd_password=$key
7367 fi
7368
7369 mon_dir_password=
7370
7371 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7372 if test "${with_mon_dir_password+set}" = set; then
7373   withval="$with_mon_dir_password"
7374
7375        if test "x$withval" != "xno" ; then
7376            mon_dir_password=$withval
7377        fi
7378
7379
7380 fi;
7381
7382 if test "x$mon_dir_password" = "x" ; then
7383    if test "x$OPENSSL" = "xnone" ; then
7384 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7385       key=`autoconf/randpass 33`
7386    else
7387       key=`openssl rand -base64 33`
7388    fi
7389    mon_dir_password=$key
7390 fi
7391
7392 mon_fd_password=
7393
7394 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7395 if test "${with_mon_fd_password+set}" = set; then
7396   withval="$with_mon_fd_password"
7397
7398        if test "x$withval" != "xno" ; then
7399            mon_fd_password=$withval
7400        fi
7401
7402
7403 fi;
7404
7405 if test "x$mon_fd_password" = "x" ; then
7406    if test "x$OPENSSL" = "xnone" ; then
7407 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7408       key=`autoconf/randpass 37`
7409    else
7410       key=`openssl rand -base64 33`
7411    fi
7412    mon_fd_password=$key
7413 fi
7414
7415 mon_sd_password=
7416
7417 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7418 if test "${with_mon_sd_password+set}" = set; then
7419   withval="$with_mon_sd_password"
7420
7421        if test "x$withval" != "xno" ; then
7422            mon_sd_password=$withval
7423        fi
7424
7425
7426 fi;
7427
7428 if test "x$mon_sd_password" = "x" ; then
7429    if test "x$OPENSSL" = "xnone" ; then
7430 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7431       key=`autoconf/randpass 41`
7432    else
7433       key=`openssl rand -base64 33`
7434    fi
7435    mon_sd_password=$key
7436 fi
7437
7438
7439
7440
7441
7442
7443
7444
7445 #
7446 # Handle users and groups for each daemon
7447 #
7448 dir_user=
7449
7450 # Check whether --with-dir_user or --without-dir_user was given.
7451 if test "${with_dir_user+set}" = set; then
7452   withval="$with_dir_user"
7453
7454         if test "x$withval" != "x" ; then
7455              dir_user=$withval
7456         fi
7457
7458
7459 fi;
7460
7461 dir_group=
7462
7463 # Check whether --with-dir_group or --without-dir_group was given.
7464 if test "${with_dir_group+set}" = set; then
7465   withval="$with_dir_group"
7466
7467         if test "x$withval" != "x" ; then
7468              dir_group=$withval
7469         fi
7470
7471
7472 fi;
7473
7474 sd_user=
7475
7476 # Check whether --with-sd_user or --without-sd_user was given.
7477 if test "${with_sd_user+set}" = set; then
7478   withval="$with_sd_user"
7479
7480         if test "x$withval" != "x" ; then
7481              sd_user=$withval
7482         fi
7483
7484
7485 fi;
7486
7487 sd_group=
7488
7489 # Check whether --with-sd_group or --without-sd_group was given.
7490 if test "${with_sd_group+set}" = set; then
7491   withval="$with_sd_group"
7492
7493         if test "x$withval" != "x" ; then
7494              sd_group=$withval
7495         fi
7496
7497
7498 fi;
7499
7500 fd_user=
7501
7502 # Check whether --with-fd_user or --without-fd_user was given.
7503 if test "${with_fd_user+set}" = set; then
7504   withval="$with_fd_user"
7505
7506         if test "x$withval" != "x" ; then
7507              fd_user=$withval
7508         fi
7509
7510
7511 fi;
7512
7513 fd_group=
7514
7515 # Check whether --with-fd_group or --without-fd_group was given.
7516 if test "${with_fd_group+set}" = set; then
7517   withval="$with_fd_group"
7518
7519         if test "x$withval" != "x" ; then
7520              fd_group=$withval
7521         fi
7522
7523
7524 fi;
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 #
7537 # allow setting default executable permissions
7538 #
7539 SBINPERM=0754
7540
7541 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7542 if test "${with_sbin_perm+set}" = set; then
7543   withval="$with_sbin_perm"
7544
7545         if test "x$withval" != "x" ; then
7546             SBINPERM=$withval
7547         fi
7548
7549
7550 fi;
7551
7552
7553
7554 # ------------------------------------------------
7555 # Bacula check for various SQL database engines
7556 # ------------------------------------------------
7557
7558 db_found=no
7559 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7560 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7561
7562 # Check whether --with-postgresql or --without-postgresql was given.
7563 if test "${with_postgresql+set}" = set; then
7564   withval="$with_postgresql"
7565
7566   if test "$withval" != "no"; then
7567       if test "$db_found" = "yes"; then
7568           echo "$as_me:$LINENO: result: error" >&5
7569 echo "${ECHO_T}error" >&6
7570           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7571 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7572    { (exit 1); exit 1; }; };
7573       fi
7574       if test "$withval" = "yes"; then
7575           if test -f /usr/local/include/libpq-fe.h; then
7576               POSTGRESQL_INCDIR=/usr/local/include
7577               POSTGRESQL_LIBDIR=/usr/local/lib
7578               POSTGRESQL_BINDIR=/usr/local/bin
7579           elif test -f /usr/include/libpq-fe.h; then
7580               POSTGRESQL_INCDIR=/usr/include
7581               POSTGRESQL_LIBDIR=/usr/lib
7582               POSTGRESQL_BINDIR=/usr/bin
7583           elif test -f /usr/include/pgsql/libpq-fe.h; then
7584               POSTGRESQL_INCDIR=/usr/include/pgsql
7585               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7586               POSTGRESQL_BINDIR=/usr/bin
7587           elif test -f /usr/include/postgresql/libpq-fe.h; then
7588               POSTGRESQL_INCDIR=/usr/include/postgresql
7589               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7590               POSTGRESQL_BINDIR=/usr/bin
7591           else
7592               echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7595 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7596    { (exit 1); exit 1; }; }
7597           fi
7598       elif test -f $withval/include/libpq-fe.h; then
7599           POSTGRESQL_INCDIR=$withval/include
7600           POSTGRESQL_LIBDIR=$withval/lib
7601           POSTGRESQL_BINDIR=$withval/bin
7602       else
7603           echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7605           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7606 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7607    { (exit 1); exit 1; }; }
7608       fi
7609       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7610       echo "$as_me:$LINENO: checking for crypt" >&5
7611 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7612 if test "${ac_cv_func_crypt+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   cat >conftest.$ac_ext <<_ACEOF
7616 #line $LINENO "configure"
7617 /* confdefs.h.  */
7618 _ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h.  */
7622 /* System header to define __stub macros and hopefully few prototypes,
7623     which can conflict with char crypt (); below.
7624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7625     <limits.h> exists even on freestanding compilers.  */
7626 #ifdef __STDC__
7627 # include <limits.h>
7628 #else
7629 # include <assert.h>
7630 #endif
7631 /* Override any gcc2 internal prototype to avoid an error.  */
7632 #ifdef __cplusplus
7633 extern "C"
7634 {
7635 #endif
7636 /* We use char because int might match the return type of a gcc2
7637    builtin and then its argument prototype would still apply.  */
7638 char crypt ();
7639 /* The GNU C library defines this for functions which it implements
7640     to always fail with ENOSYS.  Some functions are actually named
7641     something starting with __ and the normal name is an alias.  */
7642 #if defined (__stub_crypt) || defined (__stub___crypt)
7643 choke me
7644 #else
7645 char (*f) () = crypt;
7646 #endif
7647 #ifdef __cplusplus
7648 }
7649 #endif
7650
7651 int
7652 main ()
7653 {
7654 return f != crypt;
7655   ;
7656   return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661   (eval $ac_link) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } &&
7665          { ac_try='test -s conftest$ac_exeext'
7666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667   (eval $ac_try) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }; }; then
7671   ac_cv_func_crypt=yes
7672 else
7673   echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_cv_func_crypt=no
7677 fi
7678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7679 fi
7680 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7681 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7682 if test $ac_cv_func_crypt = yes; then
7683   :
7684 else
7685   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7686 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7687 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   ac_check_lib_save_LIBS=$LIBS
7691 LIBS="-lcrypt  $LIBS"
7692 cat >conftest.$ac_ext <<_ACEOF
7693 #line $LINENO "configure"
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699
7700 /* Override any gcc2 internal prototype to avoid an error.  */
7701 #ifdef __cplusplus
7702 extern "C"
7703 #endif
7704 /* We use char because int might match the return type of a gcc2
7705    builtin and then its argument prototype would still apply.  */
7706 char crypt ();
7707 int
7708 main ()
7709 {
7710 crypt ();
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest.$ac_objext conftest$ac_exeext
7716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7717   (eval $ac_link) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); } &&
7721          { ac_try='test -s conftest$ac_exeext'
7722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723   (eval $ac_try) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); }; }; then
7727   ac_cv_lib_crypt_crypt=yes
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 ac_cv_lib_crypt_crypt=no
7733 fi
7734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7735 LIBS=$ac_check_lib_save_LIBS
7736 fi
7737 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7738 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7739 if test $ac_cv_lib_crypt_crypt = yes; then
7740   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7741 fi
7742
7743 fi
7744
7745       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7746       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7747       SQL_BINDIR=$POSTGRESQL_BINDIR
7748       cat >>confdefs.h <<\_ACEOF
7749 #define HAVE_POSTGRESQL 1
7750 _ACEOF
7751
7752       echo "$as_me:$LINENO: result: yes" >&5
7753 echo "${ECHO_T}yes" >&6
7754       db_found=yes
7755       support_postgresql=yes
7756       db_name=PostgreSQL
7757       DB_NAME=postgresql
7758   else
7759       echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6
7761   fi
7762
7763 else
7764
7765   echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7767
7768 fi;
7769
7770
7771
7772
7773
7774
7775
7776 db_found=no
7777 echo "$as_me:$LINENO: checking for MySQL support" >&5
7778 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7779
7780 # Check whether --with-mysql or --without-mysql was given.
7781 if test "${with_mysql+set}" = set; then
7782   withval="$with_mysql"
7783
7784   if test "$withval" != "no"; then
7785         if test "$withval" = "yes"; then
7786                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7787                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7788                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7789                         MYSQL_BINDIR=/usr/local/mysql/bin
7790                 elif test -f /usr/include/mysql/mysql.h; then
7791                         MYSQL_INCDIR=/usr/include/mysql
7792                         MYSQL_LIBDIR=/usr/lib/mysql
7793                         MYSQL_BINDIR=/usr/bin
7794                 elif test -f /usr/include/mysql.h; then
7795                         MYSQL_INCDIR=/usr/include
7796                         MYSQL_LIBDIR=/usr/lib
7797                         MYSQL_BINDIR=/usr/bin
7798                 elif test -f /usr/local/include/mysql/mysql.h; then
7799                         MYSQL_INCDIR=/usr/local/include/mysql
7800                         MYSQL_LIBDIR=/usr/local/lib/mysql
7801                         MYSQL_BINDIR=/usr/local/bin
7802                 elif test -f /usr/local/include/mysql.h; then
7803                         MYSQL_INCDIR=/usr/local/include
7804                         MYSQL_LIBDIR=/usr/local/lib
7805                         MYSQL_BINDIR=/usr/local/bin
7806                 else
7807                    echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6
7809                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7810 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7811    { (exit 1); exit 1; }; }
7812                 fi
7813         else
7814                 if test -f $withval/include/mysql/mysql.h; then
7815                         MYSQL_INCDIR=$withval/include/mysql
7816                         MYSQL_LIBDIR=$withval/lib/mysql
7817                         MYSQL_BINDIR=$withval/bin
7818                 elif test -f $withval/include/mysql.h; then
7819                         MYSQL_INCDIR=$withval/include
7820                         MYSQL_LIBDIR=$withval/lib
7821                         MYSQL_BINDIR=$withval/bin
7822                 else
7823                    echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6
7825                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7826 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7827    { (exit 1); exit 1; }; }
7828                 fi
7829         fi
7830     SQL_INCLUDE=-I$MYSQL_INCDIR
7831     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7832        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7833        cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_THREAD_SAFE_MYSQL 1
7835 _ACEOF
7836
7837     else
7838        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7839     fi
7840     SQL_BINDIR=$MYSQL_BINDIR
7841
7842     cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_MYSQL 1
7844 _ACEOF
7845
7846     echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7848     db_found=yes
7849     support_mysql=yes
7850     db_name=MySQL
7851     DB_NAME=mysql
7852
7853   else
7854         echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6
7856   fi
7857
7858
7859 fi;
7860
7861
7862 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7863 if test "${with_embedded_mysql+set}" = set; then
7864   withval="$with_embedded_mysql"
7865
7866   if test "$withval" != "no"; then
7867         if test "$withval" = "yes"; then
7868                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7869                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7870                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7871                         MYSQL_BINDIR=/usr/local/mysql/bin
7872                 elif test -f /usr/include/mysql/mysql.h; then
7873                         MYSQL_INCDIR=/usr/include/mysql
7874                         MYSQL_LIBDIR=/usr/lib/mysql
7875                         MYSQL_BINDIR=/usr/bin
7876                 elif test -f /usr/include/mysql.h; then
7877                         MYSQL_INCDIR=/usr/include
7878                         MYSQL_LIBDIR=/usr/lib
7879                         MYSQL_BINDIR=/usr/bin
7880                 elif test -f /usr/local/include/mysql/mysql.h; then
7881                         MYSQL_INCDIR=/usr/local/include/mysql
7882                         MYSQL_LIBDIR=/usr/local/lib/mysql
7883                         MYSQL_BINDIR=/usr/local/bin
7884                 elif test -f /usr/local/include/mysql.h; then
7885                         MYSQL_INCDIR=/usr/local/include
7886                         MYSQL_LIBDIR=/usr/local/lib
7887                         MYSQL_BINDIR=/usr/local/bin
7888                 else
7889                    echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6
7891                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7892 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7893    { (exit 1); exit 1; }; }
7894                 fi
7895         else
7896                 if test -f $withval/include/mysql/mysql.h; then
7897                         MYSQL_INCDIR=$withval/include/mysql
7898                         MYSQL_LIBDIR=$withval/lib/mysql
7899                         MYSQL_BINDIR=$withval/bin
7900                 elif test -f $withval/include/mysql.h; then
7901                         MYSQL_INCDIR=$withval/include
7902                         MYSQL_LIBDIR=$withval/lib
7903                         MYSQL_BINDIR=$withval/bin
7904                 else
7905                    echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6
7907                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7908 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7909    { (exit 1); exit 1; }; }
7910                 fi
7911         fi
7912     SQL_INCLUDE=-I$MYSQL_INCDIR
7913     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7914     SQL_BINDIR=$MYSQL_BINDIR
7915
7916     cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_MYSQL 1
7918 _ACEOF
7919
7920     cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_EMBEDDED_MYSQL 1
7922 _ACEOF
7923
7924     echo "$as_me:$LINENO: result: yes" >&5
7925 echo "${ECHO_T}yes" >&6
7926     db_found=yes
7927     support_mysql=yes
7928     db_name=MySQL
7929     DB_NAME=mysql
7930
7931   else
7932         echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6
7934   fi
7935
7936
7937 fi;
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 db_found=no
7948 echo "$as_me:$LINENO: checking for SQLite support" >&5
7949 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7950
7951 # Check whether --with-sqlite or --without-sqlite was given.
7952 if test "${with_sqlite+set}" = set; then
7953   withval="$with_sqlite"
7954
7955   if test "$withval" != "no"; then
7956      if test "$withval" = "yes"; then
7957         if test -f /usr/local/include/sqlite.h; then
7958            SQLITE_INCDIR=/usr/local/include
7959            SQLITE_LIBDIR=/usr/local/lib
7960            SQLITE_BINDIR=/usr/local/bin
7961         elif test -f /usr/include/sqlite.h; then
7962            SQLITE_INCDIR=/usr/include
7963            SQLITE_LIBDIR=/usr/lib
7964            SQLITE_BINDIR=/usr/bin
7965         elif test -f $prefix/include/sqlite.h; then
7966            SQLITE_INCDIR=$prefix/include
7967            SQLITE_LIBDIR=$prefix/lib
7968            SQLITE_BINDIR=$prefix/bin
7969         else
7970            echo "$as_me:$LINENO: result: no" >&5
7971 echo "${ECHO_T}no" >&6
7972            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7973 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7974    { (exit 1); exit 1; }; }
7975         fi
7976      else
7977         if test -f $withval/sqlite.h; then
7978            SQLITE_INCDIR=$withval
7979            SQLITE_LIBDIR=$withval
7980            SQLITE_BINDIR=$withval
7981         elif test -f $withval/include/sqlite.h; then
7982            SQLITE_INCDIR=$withval/include
7983            SQLITE_LIBDIR=$withval/lib
7984            SQLITE_BINDIR=$withval/bin
7985         else
7986            echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6
7988            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7989 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7990    { (exit 1); exit 1; }; }
7991         fi
7992      fi
7993      SQL_INCLUDE=-I$SQLITE_INCDIR
7994      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7995      SQL_BINDIR=$SQLITE_BINDIR
7996
7997      cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_SQLITE 1
7999 _ACEOF
8000
8001      echo "$as_me:$LINENO: result: yes" >&5
8002 echo "${ECHO_T}yes" >&6
8003      db_found=yes
8004      support_sqlite=yes
8005      db_name=SQLite
8006      DB_NAME=sqlite
8007
8008   else
8009      echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6
8011   fi
8012
8013 else
8014
8015   echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6
8017
8018 fi;
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 cat >>confdefs.h <<\_ACEOF
8029 #define PROTOTYPES 1
8030 _ACEOF
8031
8032
8033 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8034     if test -z "$CCOPTS"; then
8035         CCOPTS='-g -O2 -Wall'
8036     fi
8037     CFLAGS="$CCOPTS"
8038 fi
8039
8040
8041
8042
8043 largefile_support="no"
8044
8045    # Check whether --enable-largefile or --disable-largefile was given.
8046 if test "${enable_largefile+set}" = set; then
8047   enableval="$enable_largefile"
8048
8049 fi;
8050    if test "$enable_largefile" != no; then
8051      if test -n "$ac_tool_prefix"; then
8052   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8054 echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8056 if test "${ac_cv_prog_GETCONF+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   if test -n "$GETCONF"; then
8060   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065   IFS=$as_save_IFS
8066   test -z "$as_dir" && as_dir=.
8067   for ac_exec_ext in '' $ac_executable_extensions; do
8068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071     break 2
8072   fi
8073 done
8074 done
8075
8076 fi
8077 fi
8078 GETCONF=$ac_cv_prog_GETCONF
8079 if test -n "$GETCONF"; then
8080   echo "$as_me:$LINENO: result: $GETCONF" >&5
8081 echo "${ECHO_T}$GETCONF" >&6
8082 else
8083   echo "$as_me:$LINENO: result: no" >&5
8084 echo "${ECHO_T}no" >&6
8085 fi
8086
8087 fi
8088 if test -z "$ac_cv_prog_GETCONF"; then
8089   ac_ct_GETCONF=$GETCONF
8090   # Extract the first word of "getconf", so it can be a program name with args.
8091 set dummy getconf; ac_word=$2
8092 echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8094 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   if test -n "$ac_ct_GETCONF"; then
8098   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103   IFS=$as_save_IFS
8104   test -z "$as_dir" && as_dir=.
8105   for ac_exec_ext in '' $ac_executable_extensions; do
8106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107     ac_cv_prog_ac_ct_GETCONF="getconf"
8108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109     break 2
8110   fi
8111 done
8112 done
8113
8114 fi
8115 fi
8116 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8117 if test -n "$ac_ct_GETCONF"; then
8118   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8119 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8120 else
8121   echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8123 fi
8124
8125   GETCONF=$ac_ct_GETCONF
8126 else
8127   GETCONF="$ac_cv_prog_GETCONF"
8128 fi
8129
8130      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8131 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8132 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8136         ac_cv_sys_largefile_CFLAGS=no
8137         case "$host_os" in
8138            # IRIX 6.2 and later require cc -n32.
8139            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8140              if test "$GCC" != yes; then
8141                ac_cv_sys_largefile_CFLAGS=-n32
8142              fi
8143              ac_save_CC="$CC"
8144              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8145              cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152
8153 int
8154 main ()
8155 {
8156
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext conftest$ac_exeext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8163   (eval $ac_link) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } &&
8167          { ac_try='test -s conftest$ac_exeext'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   :
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 ac_cv_sys_largefile_CFLAGS=no
8179 fi
8180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8181              CC="$ac_save_CC"
8182            esac
8183       }
8184 fi
8185 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8186 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8187      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8188 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8189 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8190   echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8193         ac_cv_sys_largefile_LDFLAGS=no
8194
8195       }
8196 fi
8197 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8198 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8199      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8200 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8201 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8205         ac_cv_sys_largefile_LIBS=no
8206
8207       }
8208 fi
8209 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8210 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8211
8212      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8213        case "$ac_flag" in
8214        no) ;;
8215        -D_FILE_OFFSET_BITS=*) ;;
8216        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8217        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8218        -D?* | -I?*)
8219          case "$ac_flag" in
8220    no) ;;
8221    ?*)
8222      case "$CPPFLAGS" in
8223      '') CPPFLAGS="$ac_flag" ;;
8224      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8225      esac ;;
8226    esac ;;
8227        *)
8228          case "$ac_flag" in
8229    no) ;;
8230    ?*)
8231      case "$CFLAGS" in
8232      '') CFLAGS="$ac_flag" ;;
8233      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8234      esac ;;
8235    esac ;;
8236        esac
8237      done
8238      case "$ac_cv_sys_largefile_LDFLAGS" in
8239    no) ;;
8240    ?*)
8241      case "$LDFLAGS" in
8242      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8243      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8244      esac ;;
8245    esac
8246      case "$ac_cv_sys_largefile_LIBS" in
8247    no) ;;
8248    ?*)
8249      case "$LIBS" in
8250      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8251      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8252      esac ;;
8253    esac
8254      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8255 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8256 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   ac_cv_sys_file_offset_bits=no
8260       case "$host_os" in
8261         # HP-UX 10.20 and later
8262         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8263           ac_cv_sys_file_offset_bits=64 ;;
8264         esac
8265       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8266         case "$ac_flag" in
8267         -D_FILE_OFFSET_BITS)
8268           ac_cv_sys_file_offset_bits=1 ;;
8269         -D_FILE_OFFSET_BITS=*)
8270           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8271         esac
8272       done
8273
8274 fi
8275 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8276 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8277    if test "$ac_cv_sys_file_offset_bits" != no; then
8278
8279 cat >>confdefs.h <<_ACEOF
8280 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8281 _ACEOF
8282
8283    fi
8284      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8285 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8286 if test "${ac_cv_sys_largefile_source+set}" = set; then
8287   echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289   ac_cv_sys_largefile_source=no
8290       case "$host_os" in
8291         # HP-UX 10.20 and later
8292         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8293           ac_cv_sys_largefile_source=1 ;;
8294         esac
8295       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8296         case "$ac_flag" in
8297         -D_LARGEFILE_SOURCE)
8298           ac_cv_sys_largefile_source=1 ;;
8299         -D_LARGEFILE_SOURCE=*)
8300           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8301         esac
8302       done
8303
8304 fi
8305 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8306 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8307    if test "$ac_cv_sys_largefile_source" != no; then
8308
8309 cat >>confdefs.h <<_ACEOF
8310 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8311 _ACEOF
8312
8313    fi
8314      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8315 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8316 if test "${ac_cv_sys_large_files+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   ac_cv_sys_large_files=no
8320       case "$host_os" in
8321         # AIX 4.2 and later
8322         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8323           ac_cv_sys_large_files=1 ;;
8324         esac
8325       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8326         case "$ac_flag" in
8327         -D_LARGE_FILES)
8328           ac_cv_sys_large_files=1 ;;
8329         -D_LARGE_FILES=*)
8330           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8331         esac
8332       done
8333
8334 fi
8335 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8336 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8337    if test "$ac_cv_sys_large_files" != no; then
8338
8339 cat >>confdefs.h <<_ACEOF
8340 #define _LARGE_FILES $ac_cv_sys_large_files
8341 _ACEOF
8342
8343    fi
8344    fi
8345
8346
8347
8348 echo "$as_me:$LINENO: checking for X" >&5
8349 echo $ECHO_N "checking for X... $ECHO_C" >&6
8350
8351
8352 # Check whether --with-x or --without-x was given.
8353 if test "${with_x+set}" = set; then
8354   withval="$with_x"
8355
8356 fi;
8357 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8358 if test "x$with_x" = xno; then
8359   # The user explicitly disabled X.
8360   have_x=disabled
8361 else
8362   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8363     # Both variables are already set.
8364     have_x=yes
8365   else
8366     if test "${ac_cv_have_x+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   # One or both of the vars are not set, and there is no cached value.
8370 ac_x_includes=no ac_x_libraries=no
8371 rm -fr conftest.dir
8372 if mkdir conftest.dir; then
8373   cd conftest.dir
8374   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8375   cat >Imakefile <<'_ACEOF'
8376 acfindx:
8377         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8378 _ACEOF
8379   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8380     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8381     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8382     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8383     for ac_extension in a so sl; do
8384       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8385          test -f $ac_im_libdir/libX11.$ac_extension; then
8386         ac_im_usrlibdir=$ac_im_libdir; break
8387       fi
8388     done
8389     # Screen out bogus values from the imake configuration.  They are
8390     # bogus both because they are the default anyway, and because
8391     # using them would break gcc on systems where it needs fixed includes.
8392     case $ac_im_incroot in
8393         /usr/include) ;;
8394         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8395     esac
8396     case $ac_im_usrlibdir in
8397         /usr/lib | /lib) ;;
8398         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8399     esac
8400   fi
8401   cd ..
8402   rm -fr conftest.dir
8403 fi
8404
8405 # Standard set of common directories for X headers.
8406 # Check X11 before X11Rn because it is often a symlink to the current release.
8407 ac_x_header_dirs='
8408 /usr/X11/include
8409 /usr/X11R6/include
8410 /usr/X11R5/include
8411 /usr/X11R4/include
8412
8413 /usr/include/X11
8414 /usr/include/X11R6
8415 /usr/include/X11R5
8416 /usr/include/X11R4
8417
8418 /usr/local/X11/include
8419 /usr/local/X11R6/include
8420 /usr/local/X11R5/include
8421 /usr/local/X11R4/include
8422
8423 /usr/local/include/X11
8424 /usr/local/include/X11R6
8425 /usr/local/include/X11R5
8426 /usr/local/include/X11R4
8427
8428 /usr/X386/include
8429 /usr/x386/include
8430 /usr/XFree86/include/X11
8431
8432 /usr/include
8433 /usr/local/include
8434 /usr/unsupported/include
8435 /usr/athena/include
8436 /usr/local/x11r5/include
8437 /usr/lpp/Xamples/include
8438
8439 /usr/openwin/include
8440 /usr/openwin/share/include'
8441
8442 if test "$ac_x_includes" = no; then
8443   # Guess where to find include files, by looking for Intrinsic.h.
8444   # First, try using that file with no special directory specified.
8445   cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 #include <X11/Intrinsic.h>
8453 _ACEOF
8454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } >/dev/null; then
8462   if test -s conftest.err; then
8463     ac_cpp_err=$ac_c_preproc_warn_flag
8464   else
8465     ac_cpp_err=
8466   fi
8467 else
8468   ac_cpp_err=yes
8469 fi
8470 if test -z "$ac_cpp_err"; then
8471   # We can compile using X headers with no special include directory.
8472 ac_x_includes=
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477   for ac_dir in $ac_x_header_dirs; do
8478   if test -r "$ac_dir/X11/Intrinsic.h"; then
8479     ac_x_includes=$ac_dir
8480     break
8481   fi
8482 done
8483 fi
8484 rm -f conftest.err conftest.$ac_ext
8485 fi # $ac_x_includes = no
8486
8487 if test "$ac_x_libraries" = no; then
8488   # Check for the libraries.
8489   # See if we find them without any special options.
8490   # Don't add to $LIBS permanently.
8491   ac_save_LIBS=$LIBS
8492   LIBS="-lXt $LIBS"
8493   cat >conftest.$ac_ext <<_ACEOF
8494 #line $LINENO "configure"
8495 /* confdefs.h.  */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h.  */
8500 #include <X11/Intrinsic.h>
8501 int
8502 main ()
8503 {
8504 XtMalloc (0)
8505   ;
8506   return 0;
8507 }
8508 _ACEOF
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8511   (eval $ac_link) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } &&
8515          { ac_try='test -s conftest$ac_exeext'
8516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517   (eval $ac_try) 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; }; then
8521   LIBS=$ac_save_LIBS
8522 # We can link X programs with no special library path.
8523 ac_x_libraries=
8524 else
8525   echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528 LIBS=$ac_save_LIBS
8529 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8530 do
8531   # Don't even attempt the hair of trying to link an X program!
8532   for ac_extension in a so sl; do
8533     if test -r $ac_dir/libXt.$ac_extension; then
8534       ac_x_libraries=$ac_dir
8535       break 2
8536     fi
8537   done
8538 done
8539 fi
8540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8541 fi # $ac_x_libraries = no
8542
8543 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8544   # Didn't find X anywhere.  Cache the known absence of X.
8545   ac_cv_have_x="have_x=no"
8546 else
8547   # Record where we found X for the cache.
8548   ac_cv_have_x="have_x=yes \
8549                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8550 fi
8551 fi
8552
8553   fi
8554   eval "$ac_cv_have_x"
8555 fi # $with_x != no
8556
8557 if test "$have_x" != yes; then
8558   echo "$as_me:$LINENO: result: $have_x" >&5
8559 echo "${ECHO_T}$have_x" >&6
8560   no_x=yes
8561 else
8562   # If each of the values was on the command line, it overrides each guess.
8563   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8564   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8565   # Update the cache value to reflect the command line values.
8566   ac_cv_have_x="have_x=yes \
8567                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8568   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8569 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8570 fi
8571
8572 if test "$no_x" = yes; then
8573   # Not all programs may use this symbol, but it does not hurt to define it.
8574
8575 cat >>confdefs.h <<\_ACEOF
8576 #define X_DISPLAY_MISSING 1
8577 _ACEOF
8578
8579   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8580 else
8581   if test -n "$x_includes"; then
8582     X_CFLAGS="$X_CFLAGS -I$x_includes"
8583   fi
8584
8585   # It would also be nice to do this for all -L options, not just this one.
8586   if test -n "$x_libraries"; then
8587     X_LIBS="$X_LIBS -L$x_libraries"
8588     # For Solaris; some versions of Sun CC require a space after -R and
8589     # others require no space.  Words are not sufficient . . . .
8590     case `(uname -sr) 2>/dev/null` in
8591     "SunOS 5"*)
8592       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8593 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8594       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8595       cat >conftest.$ac_ext <<_ACEOF
8596 #line $LINENO "configure"
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602
8603 int
8604 main ()
8605 {
8606
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613   (eval $ac_link) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } &&
8617          { ac_try='test -s conftest$ac_exeext'
8618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619   (eval $ac_try) 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }; }; then
8623   ac_R_nospace=yes
8624 else
8625   echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628 ac_R_nospace=no
8629 fi
8630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8631       if test $ac_R_nospace = yes; then
8632         echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6
8634         X_LIBS="$X_LIBS -R$x_libraries"
8635       else
8636         LIBS="$ac_xsave_LIBS -R $x_libraries"
8637         cat >conftest.$ac_ext <<_ACEOF
8638 #line $LINENO "configure"
8639 /* confdefs.h.  */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h.  */
8644
8645 int
8646 main ()
8647 {
8648
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655   (eval $ac_link) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } &&
8659          { ac_try='test -s conftest$ac_exeext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_R_space=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 ac_R_space=no
8671 fi
8672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8673         if test $ac_R_space = yes; then
8674           echo "$as_me:$LINENO: result: yes" >&5
8675 echo "${ECHO_T}yes" >&6
8676           X_LIBS="$X_LIBS -R $x_libraries"
8677         else
8678           echo "$as_me:$LINENO: result: neither works" >&5
8679 echo "${ECHO_T}neither works" >&6
8680         fi
8681       fi
8682       LIBS=$ac_xsave_LIBS
8683     esac
8684   fi
8685
8686   # Check for system-dependent libraries X programs must link with.
8687   # Do this before checking for the system-independent R6 libraries
8688   # (-lICE), since we may need -lsocket or whatever for X linking.
8689
8690   if test "$ISC" = yes; then
8691     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8692   else
8693     # Martyn Johnson says this is needed for Ultrix, if the X
8694     # libraries were built with DECnet support.  And Karl Berry says
8695     # the Alpha needs dnet_stub (dnet does not exist).
8696     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8697     cat >conftest.$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8699 /* confdefs.h.  */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h.  */
8704
8705 /* Override any gcc2 internal prototype to avoid an error.  */
8706 #ifdef __cplusplus
8707 extern "C"
8708 #endif
8709 /* We use char because int might match the return type of a gcc2
8710    builtin and then its argument prototype would still apply.  */
8711 char XOpenDisplay ();
8712 int
8713 main ()
8714 {
8715 XOpenDisplay ();
8716   ;
8717   return 0;
8718 }
8719 _ACEOF
8720 rm -f conftest.$ac_objext conftest$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722   (eval $ac_link) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   :
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8738 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8739 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   ac_check_lib_save_LIBS=$LIBS
8743 LIBS="-ldnet  $LIBS"
8744 cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751
8752 /* Override any gcc2 internal prototype to avoid an error.  */
8753 #ifdef __cplusplus
8754 extern "C"
8755 #endif
8756 /* We use char because int might match the return type of a gcc2
8757    builtin and then its argument prototype would still apply.  */
8758 char dnet_ntoa ();
8759 int
8760 main ()
8761 {
8762 dnet_ntoa ();
8763   ;
8764   return 0;
8765 }
8766 _ACEOF
8767 rm -f conftest.$ac_objext conftest$ac_exeext
8768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8769   (eval $ac_link) 2>&5
8770   ac_status=$?
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -s conftest$ac_exeext'
8774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775   (eval $ac_try) 2>&5
8776   ac_status=$?
8777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778   (exit $ac_status); }; }; then
8779   ac_cv_lib_dnet_dnet_ntoa=yes
8780 else
8781   echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 ac_cv_lib_dnet_dnet_ntoa=no
8785 fi
8786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8787 LIBS=$ac_check_lib_save_LIBS
8788 fi
8789 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8790 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8791 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8792   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8793 fi
8794
8795     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8796       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8797 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8798 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   ac_check_lib_save_LIBS=$LIBS
8802 LIBS="-ldnet_stub  $LIBS"
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810
8811 /* Override any gcc2 internal prototype to avoid an error.  */
8812 #ifdef __cplusplus
8813 extern "C"
8814 #endif
8815 /* We use char because int might match the return type of a gcc2
8816    builtin and then its argument prototype would still apply.  */
8817 char dnet_ntoa ();
8818 int
8819 main ()
8820 {
8821 dnet_ntoa ();
8822   ;
8823   return 0;
8824 }
8825 _ACEOF
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828   (eval $ac_link) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); } &&
8832          { ac_try='test -s conftest$ac_exeext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_cv_lib_dnet_stub_dnet_ntoa=no
8844 fi
8845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8846 LIBS=$ac_check_lib_save_LIBS
8847 fi
8848 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8849 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8850 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8851   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8852 fi
8853
8854     fi
8855 fi
8856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8857     LIBS="$ac_xsave_LIBS"
8858
8859     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8860     # to get the SysV transport functions.
8861     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8862     # needs -lnsl.
8863     # The nsl library prevents programs from opening the X display
8864     # on Irix 5.2, according to T.E. Dickey.
8865     # The functions gethostbyname, getservbyname, and inet_addr are
8866     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8867     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8868 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8869 if test "${ac_cv_func_gethostbyname+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879 /* System header to define __stub macros and hopefully few prototypes,
8880     which can conflict with char gethostbyname (); below.
8881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882     <limits.h> exists even on freestanding compilers.  */
8883 #ifdef __STDC__
8884 # include <limits.h>
8885 #else
8886 # include <assert.h>
8887 #endif
8888 /* Override any gcc2 internal prototype to avoid an error.  */
8889 #ifdef __cplusplus
8890 extern "C"
8891 {
8892 #endif
8893 /* We use char because int might match the return type of a gcc2
8894    builtin and then its argument prototype would still apply.  */
8895 char gethostbyname ();
8896 /* The GNU C library defines this for functions which it implements
8897     to always fail with ENOSYS.  Some functions are actually named
8898     something starting with __ and the normal name is an alias.  */
8899 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8900 choke me
8901 #else
8902 char (*f) () = gethostbyname;
8903 #endif
8904 #ifdef __cplusplus
8905 }
8906 #endif
8907
8908 int
8909 main ()
8910 {
8911 return f != gethostbyname;
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918   (eval $ac_link) 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } &&
8922          { ac_try='test -s conftest$ac_exeext'
8923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924   (eval $ac_try) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; }; then
8928   ac_cv_func_gethostbyname=yes
8929 else
8930   echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ac_cv_func_gethostbyname=no
8934 fi
8935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8936 fi
8937 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8938 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8939
8940     if test $ac_cv_func_gethostbyname = no; then
8941       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8942 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8943 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8944   echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946   ac_check_lib_save_LIBS=$LIBS
8947 LIBS="-lnsl  $LIBS"
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 /* confdefs.h.  */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h.  */
8955
8956 /* Override any gcc2 internal prototype to avoid an error.  */
8957 #ifdef __cplusplus
8958 extern "C"
8959 #endif
8960 /* We use char because int might match the return type of a gcc2
8961    builtin and then its argument prototype would still apply.  */
8962 char gethostbyname ();
8963 int
8964 main ()
8965 {
8966 gethostbyname ();
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973   (eval $ac_link) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } &&
8977          { ac_try='test -s conftest$ac_exeext'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; }; then
8983   ac_cv_lib_nsl_gethostbyname=yes
8984 else
8985   echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 ac_cv_lib_nsl_gethostbyname=no
8989 fi
8990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8992 fi
8993 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8994 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8995 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8996   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8997 fi
8998
8999       if test $ac_cv_lib_nsl_gethostbyname = no; then
9000         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9001 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9002 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   ac_check_lib_save_LIBS=$LIBS
9006 LIBS="-lbsd  $LIBS"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014
9015 /* Override any gcc2 internal prototype to avoid an error.  */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 /* We use char because int might match the return type of a gcc2
9020    builtin and then its argument prototype would still apply.  */
9021 char gethostbyname ();
9022 int
9023 main ()
9024 {
9025 gethostbyname ();
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032   (eval $ac_link) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } &&
9036          { ac_try='test -s conftest$ac_exeext'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; }; then
9042   ac_cv_lib_bsd_gethostbyname=yes
9043 else
9044   echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ac_cv_lib_bsd_gethostbyname=no
9048 fi
9049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9051 fi
9052 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9053 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9054 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9055   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9056 fi
9057
9058       fi
9059     fi
9060
9061     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9062     # socket/setsockopt and other routines are undefined under SCO ODT
9063     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9064     # on later versions), says Simon Leinen: it contains gethostby*
9065     # variants that don't use the name server (or something).  -lsocket
9066     # must be given before -lnsl if both are needed.  We assume that
9067     # if connect needs -lnsl, so does gethostbyname.
9068     echo "$as_me:$LINENO: checking for connect" >&5
9069 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9070 if test "${ac_cv_func_connect+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   cat >conftest.$ac_ext <<_ACEOF
9074 #line $LINENO "configure"
9075 /* confdefs.h.  */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h.  */
9080 /* System header to define __stub macros and hopefully few prototypes,
9081     which can conflict with char connect (); below.
9082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9083     <limits.h> exists even on freestanding compilers.  */
9084 #ifdef __STDC__
9085 # include <limits.h>
9086 #else
9087 # include <assert.h>
9088 #endif
9089 /* Override any gcc2 internal prototype to avoid an error.  */
9090 #ifdef __cplusplus
9091 extern "C"
9092 {
9093 #endif
9094 /* We use char because int might match the return type of a gcc2
9095    builtin and then its argument prototype would still apply.  */
9096 char connect ();
9097 /* The GNU C library defines this for functions which it implements
9098     to always fail with ENOSYS.  Some functions are actually named
9099     something starting with __ and the normal name is an alias.  */
9100 #if defined (__stub_connect) || defined (__stub___connect)
9101 choke me
9102 #else
9103 char (*f) () = connect;
9104 #endif
9105 #ifdef __cplusplus
9106 }
9107 #endif
9108
9109 int
9110 main ()
9111 {
9112 return f != connect;
9113   ;
9114   return 0;
9115 }
9116 _ACEOF
9117 rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119   (eval $ac_link) 2>&5
9120   ac_status=$?
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); } &&
9123          { ac_try='test -s conftest$ac_exeext'
9124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125   (eval $ac_try) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); }; }; then
9129   ac_cv_func_connect=yes
9130 else
9131   echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9133
9134 ac_cv_func_connect=no
9135 fi
9136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9137 fi
9138 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9139 echo "${ECHO_T}$ac_cv_func_connect" >&6
9140
9141     if test $ac_cv_func_connect = no; then
9142       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9143 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9144 if test "${ac_cv_lib_socket_connect+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   ac_check_lib_save_LIBS=$LIBS
9148 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line $LINENO "configure"
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156
9157 /* Override any gcc2 internal prototype to avoid an error.  */
9158 #ifdef __cplusplus
9159 extern "C"
9160 #endif
9161 /* We use char because int might match the return type of a gcc2
9162    builtin and then its argument prototype would still apply.  */
9163 char connect ();
9164 int
9165 main ()
9166 {
9167 connect ();
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174   (eval $ac_link) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); } &&
9178          { ac_try='test -s conftest$ac_exeext'
9179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180   (eval $ac_try) 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); }; }; then
9184   ac_cv_lib_socket_connect=yes
9185 else
9186   echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189 ac_cv_lib_socket_connect=no
9190 fi
9191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9192 LIBS=$ac_check_lib_save_LIBS
9193 fi
9194 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9195 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9196 if test $ac_cv_lib_socket_connect = yes; then
9197   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9198 fi
9199
9200     fi
9201
9202     # Guillermo Gomez says -lposix is necessary on A/UX.
9203     echo "$as_me:$LINENO: checking for remove" >&5
9204 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9205 if test "${ac_cv_func_remove+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   cat >conftest.$ac_ext <<_ACEOF
9209 #line $LINENO "configure"
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215 /* System header to define __stub macros and hopefully few prototypes,
9216     which can conflict with char remove (); below.
9217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9218     <limits.h> exists even on freestanding compilers.  */
9219 #ifdef __STDC__
9220 # include <limits.h>
9221 #else
9222 # include <assert.h>
9223 #endif
9224 /* Override any gcc2 internal prototype to avoid an error.  */
9225 #ifdef __cplusplus
9226 extern "C"
9227 {
9228 #endif
9229 /* We use char because int might match the return type of a gcc2
9230    builtin and then its argument prototype would still apply.  */
9231 char remove ();
9232 /* The GNU C library defines this for functions which it implements
9233     to always fail with ENOSYS.  Some functions are actually named
9234     something starting with __ and the normal name is an alias.  */
9235 #if defined (__stub_remove) || defined (__stub___remove)
9236 choke me
9237 #else
9238 char (*f) () = remove;
9239 #endif
9240 #ifdef __cplusplus
9241 }
9242 #endif
9243
9244 int
9245 main ()
9246 {
9247 return f != remove;
9248   ;
9249   return 0;
9250 }
9251 _ACEOF
9252 rm -f conftest.$ac_objext conftest$ac_exeext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254   (eval $ac_link) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } &&
9258          { ac_try='test -s conftest$ac_exeext'
9259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9260   (eval $ac_try) 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; }; then
9264   ac_cv_func_remove=yes
9265 else
9266   echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9268
9269 ac_cv_func_remove=no
9270 fi
9271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9272 fi
9273 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9274 echo "${ECHO_T}$ac_cv_func_remove" >&6
9275
9276     if test $ac_cv_func_remove = no; then
9277       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9278 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9279 if test "${ac_cv_lib_posix_remove+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   ac_check_lib_save_LIBS=$LIBS
9283 LIBS="-lposix  $LIBS"
9284 cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291
9292 /* Override any gcc2 internal prototype to avoid an error.  */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 /* We use char because int might match the return type of a gcc2
9297    builtin and then its argument prototype would still apply.  */
9298 char remove ();
9299 int
9300 main ()
9301 {
9302 remove ();
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309   (eval $ac_link) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } &&
9313          { ac_try='test -s conftest$ac_exeext'
9314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315   (eval $ac_try) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; }; then
9319   ac_cv_lib_posix_remove=yes
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9323
9324 ac_cv_lib_posix_remove=no
9325 fi
9326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9327 LIBS=$ac_check_lib_save_LIBS
9328 fi
9329 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9330 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9331 if test $ac_cv_lib_posix_remove = yes; then
9332   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9333 fi
9334
9335     fi
9336
9337     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9338     echo "$as_me:$LINENO: checking for shmat" >&5
9339 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9340 if test "${ac_cv_func_shmat+set}" = set; then
9341   echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343   cat >conftest.$ac_ext <<_ACEOF
9344 #line $LINENO "configure"
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 /* System header to define __stub macros and hopefully few prototypes,
9351     which can conflict with char shmat (); below.
9352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353     <limits.h> exists even on freestanding compilers.  */
9354 #ifdef __STDC__
9355 # include <limits.h>
9356 #else
9357 # include <assert.h>
9358 #endif
9359 /* Override any gcc2 internal prototype to avoid an error.  */
9360 #ifdef __cplusplus
9361 extern "C"
9362 {
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365    builtin and then its argument prototype would still apply.  */
9366 char shmat ();
9367 /* The GNU C library defines this for functions which it implements
9368     to always fail with ENOSYS.  Some functions are actually named
9369     something starting with __ and the normal name is an alias.  */
9370 #if defined (__stub_shmat) || defined (__stub___shmat)
9371 choke me
9372 #else
9373 char (*f) () = shmat;
9374 #endif
9375 #ifdef __cplusplus
9376 }
9377 #endif
9378
9379 int
9380 main ()
9381 {
9382 return f != shmat;
9383   ;
9384   return 0;
9385 }
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9389   (eval $ac_link) 2>&5
9390   ac_status=$?
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } &&
9393          { ac_try='test -s conftest$ac_exeext'
9394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395   (eval $ac_try) 2>&5
9396   ac_status=$?
9397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398   (exit $ac_status); }; }; then
9399   ac_cv_func_shmat=yes
9400 else
9401   echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9403
9404 ac_cv_func_shmat=no
9405 fi
9406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9407 fi
9408 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9409 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9410
9411     if test $ac_cv_func_shmat = no; then
9412       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9413 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9414 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9415   echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9417   ac_check_lib_save_LIBS=$LIBS
9418 LIBS="-lipc  $LIBS"
9419 cat >conftest.$ac_ext <<_ACEOF
9420 #line $LINENO "configure"
9421 /* confdefs.h.  */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h.  */
9426
9427 /* Override any gcc2 internal prototype to avoid an error.  */
9428 #ifdef __cplusplus
9429 extern "C"
9430 #endif
9431 /* We use char because int might match the return type of a gcc2
9432    builtin and then its argument prototype would still apply.  */
9433 char shmat ();
9434 int
9435 main ()
9436 {
9437 shmat ();
9438   ;
9439   return 0;
9440 }
9441 _ACEOF
9442 rm -f conftest.$ac_objext 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); } &&
9448          { ac_try='test -s conftest$ac_exeext'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; }; then
9454   ac_cv_lib_ipc_shmat=yes
9455 else
9456   echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_cv_lib_ipc_shmat=no
9460 fi
9461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9462 LIBS=$ac_check_lib_save_LIBS
9463 fi
9464 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9465 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9466 if test $ac_cv_lib_ipc_shmat = yes; then
9467   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9468 fi
9469
9470     fi
9471   fi
9472
9473   # Check for libraries that X11R6 Xt/Xaw programs need.
9474   ac_save_LDFLAGS=$LDFLAGS
9475   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9476   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9477   # check for ICE first), but we must link in the order -lSM -lICE or
9478   # we get undefined symbols.  So assume we have SM if we have ICE.
9479   # These have to be linked with before -lX11, unlike the other
9480   # libraries we check for below, so use a different variable.
9481   # John Interrante, Karl Berry
9482   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9483 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9484 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   ac_check_lib_save_LIBS=$LIBS
9488 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 /* confdefs.h.  */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h.  */
9496
9497 /* Override any gcc2 internal prototype to avoid an error.  */
9498 #ifdef __cplusplus
9499 extern "C"
9500 #endif
9501 /* We use char because int might match the return type of a gcc2
9502    builtin and then its argument prototype would still apply.  */
9503 char IceConnectionNumber ();
9504 int
9505 main ()
9506 {
9507 IceConnectionNumber ();
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514   (eval $ac_link) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -s conftest$ac_exeext'
9519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520   (eval $ac_try) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; }; then
9524   ac_cv_lib_ICE_IceConnectionNumber=yes
9525 else
9526   echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 ac_cv_lib_ICE_IceConnectionNumber=no
9530 fi
9531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9533 fi
9534 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9535 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9536 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9537   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9538 fi
9539
9540   LDFLAGS=$ac_save_LDFLAGS
9541
9542 fi
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572 for ac_header in \
9573         assert.h \
9574         fcntl.h \
9575         grp.h \
9576         pwd.h \
9577         libc.h \
9578         limits.h \
9579         stdarg.h \
9580         stdlib.h \
9581         stdint.h \
9582         string.h \
9583         termios.h \
9584         termcap.h \
9585         term.h \
9586         unistd.h \
9587         sys/bitypes.h \
9588         sys/byteorder.h \
9589         sys/ioctl.h \
9590         sys/select.h \
9591         sys/sockio.h \
9592         sys/time.h \
9593         sys/socket.h \
9594         arpa/nameser.h \
9595         resolv.h \
9596         mtio.h \
9597         sys/mtio.h \
9598         sys/tape.h \
9599         regex.h \
9600
9601 do
9602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9604   echo "$as_me:$LINENO: checking for $ac_header" >&5
9605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 fi
9609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9611 else
9612   # Is the header compilable?
9613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9617 /* confdefs.h.  */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h.  */
9622 $ac_includes_default
9623 #include <$ac_header>
9624 _ACEOF
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627   (eval $ac_compile) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } &&
9631          { ac_try='test -s conftest.$ac_objext'
9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633   (eval $ac_try) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; }; then
9637   ac_header_compiler=yes
9638 else
9639   echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 ac_header_compiler=no
9643 fi
9644 rm -f conftest.$ac_objext conftest.$ac_ext
9645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6
9647
9648 # Is the header present?
9649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9653 /* confdefs.h.  */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h.  */
9658 #include <$ac_header>
9659 _ACEOF
9660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } >/dev/null; then
9668   if test -s conftest.err; then
9669     ac_cpp_err=$ac_c_preproc_warn_flag
9670   else
9671     ac_cpp_err=
9672   fi
9673 else
9674   ac_cpp_err=yes
9675 fi
9676 if test -z "$ac_cpp_err"; then
9677   ac_header_preproc=yes
9678 else
9679   echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682   ac_header_preproc=no
9683 fi
9684 rm -f conftest.err conftest.$ac_ext
9685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9686 echo "${ECHO_T}$ac_header_preproc" >&6
9687
9688 # So?  What about this header?
9689 case $ac_header_compiler:$ac_header_preproc in
9690   yes:no )
9691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9695     (
9696       cat <<\_ASBOX
9697 ## ------------------------------------ ##
9698 ## Report this to bug-autoconf@gnu.org. ##
9699 ## ------------------------------------ ##
9700 _ASBOX
9701     ) |
9702       sed "s/^/$as_me: WARNING:     /" >&2
9703     ;;
9704   no:yes )
9705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9711     (
9712       cat <<\_ASBOX
9713 ## ------------------------------------ ##
9714 ## Report this to bug-autoconf@gnu.org. ##
9715 ## ------------------------------------ ##
9716 _ASBOX
9717     ) |
9718       sed "s/^/$as_me: WARNING:     /" >&2
9719     ;;
9720 esac
9721 echo "$as_me:$LINENO: checking for $ac_header" >&5
9722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   eval "$as_ac_Header=$ac_header_preproc"
9727 fi
9728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9730
9731 fi
9732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9733   cat >>confdefs.h <<_ACEOF
9734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9735 _ACEOF
9736
9737 fi
9738
9739 done
9740
9741 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9742 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9743 if test "${ac_cv_header_stdc+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746   cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753 #include <stdlib.h>
9754 #include <stdarg.h>
9755 #include <string.h>
9756 #include <float.h>
9757
9758 int
9759 main ()
9760 {
9761
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768   (eval $ac_compile) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); } &&
9772          { ac_try='test -s conftest.$ac_objext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778   ac_cv_header_stdc=yes
9779 else
9780   echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783 ac_cv_header_stdc=no
9784 fi
9785 rm -f conftest.$ac_objext conftest.$ac_ext
9786
9787 if test $ac_cv_header_stdc = yes; then
9788   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9789   cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796 #include <string.h>
9797
9798 _ACEOF
9799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9800   $EGREP "memchr" >/dev/null 2>&1; then
9801   :
9802 else
9803   ac_cv_header_stdc=no
9804 fi
9805 rm -f conftest*
9806
9807 fi
9808
9809 if test $ac_cv_header_stdc = yes; then
9810   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9811   cat >conftest.$ac_ext <<_ACEOF
9812 #line $LINENO "configure"
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818 #include <stdlib.h>
9819
9820 _ACEOF
9821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9822   $EGREP "free" >/dev/null 2>&1; then
9823   :
9824 else
9825   ac_cv_header_stdc=no
9826 fi
9827 rm -f conftest*
9828
9829 fi
9830
9831 if test $ac_cv_header_stdc = yes; then
9832   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9833   if test "$cross_compiling" = yes; then
9834   :
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9838 /* confdefs.h.  */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h.  */
9843 #include <ctype.h>
9844 #if ((' ' & 0x0FF) == 0x020)
9845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9847 #else
9848 # define ISLOWER(c) \
9849                    (('a' <= (c) && (c) <= 'i') \
9850                      || ('j' <= (c) && (c) <= 'r') \
9851                      || ('s' <= (c) && (c) <= 'z'))
9852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9853 #endif
9854
9855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9856 int
9857 main ()
9858 {
9859   int i;
9860   for (i = 0; i < 256; i++)
9861     if (XOR (islower (i), ISLOWER (i))
9862         || toupper (i) != TOUPPER (i))
9863       exit(2);
9864   exit (0);
9865 }
9866 _ACEOF
9867 rm -f conftest$ac_exeext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9869   (eval $ac_link) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874   (eval $ac_try) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878   :
9879 else
9880   echo "$as_me: program exited with status $ac_status" >&5
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 ( exit $ac_status )
9885 ac_cv_header_stdc=no
9886 fi
9887 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9888 fi
9889 fi
9890 fi
9891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9893 if test $ac_cv_header_stdc = yes; then
9894
9895 cat >>confdefs.h <<\_ACEOF
9896 #define STDC_HEADERS 1
9897 _ACEOF
9898
9899 fi
9900
9901 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9902 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9903 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913 #include <sys/types.h>
9914 int
9915 main ()
9916 {
9917 return makedev(0, 0);
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924   (eval $ac_link) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); } &&
9928          { ac_try='test -s conftest$ac_exeext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_cv_header_sys_types_h_makedev=yes
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_header_sys_types_h_makedev=no
9940 fi
9941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9942
9943 fi
9944 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9945 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9946
9947 if test $ac_cv_header_sys_types_h_makedev = no; then
9948 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9949   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9950 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9951 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9952   echo $ECHO_N "(cached) $ECHO_C" >&6
9953 fi
9954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9955 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9956 else
9957   # Is the header compilable?
9958 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9959 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 $ac_includes_default
9968 #include <sys/mkdev.h>
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972   (eval $ac_compile) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } &&
9976          { ac_try='test -s conftest.$ac_objext'
9977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978   (eval $ac_try) 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982   ac_header_compiler=yes
9983 else
9984   echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_header_compiler=no
9988 fi
9989 rm -f conftest.$ac_objext conftest.$ac_ext
9990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9991 echo "${ECHO_T}$ac_header_compiler" >&6
9992
9993 # Is the header present?
9994 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9995 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9996 cat >conftest.$ac_ext <<_ACEOF
9997 #line $LINENO "configure"
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003 #include <sys/mkdev.h>
10004 _ACEOF
10005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10007   ac_status=$?
10008   grep -v '^ *+' conftest.er1 >conftest.err
10009   rm -f conftest.er1
10010   cat conftest.err >&5
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } >/dev/null; then
10013   if test -s conftest.err; then
10014     ac_cpp_err=$ac_c_preproc_warn_flag
10015   else
10016     ac_cpp_err=
10017   fi
10018 else
10019   ac_cpp_err=yes
10020 fi
10021 if test -z "$ac_cpp_err"; then
10022   ac_header_preproc=yes
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027   ac_header_preproc=no
10028 fi
10029 rm -f conftest.err conftest.$ac_ext
10030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10031 echo "${ECHO_T}$ac_header_preproc" >&6
10032
10033 # So?  What about this header?
10034 case $ac_header_compiler:$ac_header_preproc in
10035   yes:no )
10036     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10037 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10038     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10039 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10040     (
10041       cat <<\_ASBOX
10042 ## ------------------------------------ ##
10043 ## Report this to bug-autoconf@gnu.org. ##
10044 ## ------------------------------------ ##
10045 _ASBOX
10046     ) |
10047       sed "s/^/$as_me: WARNING:     /" >&2
10048     ;;
10049   no:yes )
10050     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10051 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10052     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10053 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10054     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10055 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10056     (
10057       cat <<\_ASBOX
10058 ## ------------------------------------ ##
10059 ## Report this to bug-autoconf@gnu.org. ##
10060 ## ------------------------------------ ##
10061 _ASBOX
10062     ) |
10063       sed "s/^/$as_me: WARNING:     /" >&2
10064     ;;
10065 esac
10066 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10067 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10068 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10072 fi
10073 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10074 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10075
10076 fi
10077 if test $ac_cv_header_sys_mkdev_h = yes; then
10078
10079 cat >>confdefs.h <<\_ACEOF
10080 #define MAJOR_IN_MKDEV 1
10081 _ACEOF
10082
10083 fi
10084
10085
10086
10087   if test $ac_cv_header_sys_mkdev_h = no; then
10088     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10089   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10090 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10091 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10092   echo $ECHO_N "(cached) $ECHO_C" >&6
10093 fi
10094 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10095 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10096 else
10097   # Is the header compilable?
10098 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10099 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10100 cat >conftest.$ac_ext <<_ACEOF
10101 #line $LINENO "configure"
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107 $ac_includes_default
10108 #include <sys/sysmacros.h>
10109 _ACEOF
10110 rm -f conftest.$ac_objext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112   (eval $ac_compile) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -s conftest.$ac_objext'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_header_compiler=yes
10123 else
10124   echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127 ac_header_compiler=no
10128 fi
10129 rm -f conftest.$ac_objext conftest.$ac_ext
10130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10131 echo "${ECHO_T}$ac_header_compiler" >&6
10132
10133 # Is the header present?
10134 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10135 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10136 cat >conftest.$ac_ext <<_ACEOF
10137 #line $LINENO "configure"
10138 /* confdefs.h.  */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h.  */
10143 #include <sys/sysmacros.h>
10144 _ACEOF
10145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10147   ac_status=$?
10148   grep -v '^ *+' conftest.er1 >conftest.err
10149   rm -f conftest.er1
10150   cat conftest.err >&5
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); } >/dev/null; then
10153   if test -s conftest.err; then
10154     ac_cpp_err=$ac_c_preproc_warn_flag
10155   else
10156     ac_cpp_err=
10157   fi
10158 else
10159   ac_cpp_err=yes
10160 fi
10161 if test -z "$ac_cpp_err"; then
10162   ac_header_preproc=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167   ac_header_preproc=no
10168 fi
10169 rm -f conftest.err conftest.$ac_ext
10170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10171 echo "${ECHO_T}$ac_header_preproc" >&6
10172
10173 # So?  What about this header?
10174 case $ac_header_compiler:$ac_header_preproc in
10175   yes:no )
10176     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10177 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10178     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10179 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10180     (
10181       cat <<\_ASBOX
10182 ## ------------------------------------ ##
10183 ## Report this to bug-autoconf@gnu.org. ##
10184 ## ------------------------------------ ##
10185 _ASBOX
10186     ) |
10187       sed "s/^/$as_me: WARNING:     /" >&2
10188     ;;
10189   no:yes )
10190     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10191 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10192     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10193 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10194     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10195 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10196     (
10197       cat <<\_ASBOX
10198 ## ------------------------------------ ##
10199 ## Report this to bug-autoconf@gnu.org. ##
10200 ## ------------------------------------ ##
10201 _ASBOX
10202     ) |
10203       sed "s/^/$as_me: WARNING:     /" >&2
10204     ;;
10205 esac
10206 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10207 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10208 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10212 fi
10213 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10214 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10215
10216 fi
10217 if test $ac_cv_header_sys_sysmacros_h = yes; then
10218
10219 cat >>confdefs.h <<\_ACEOF
10220 #define MAJOR_IN_SYSMACROS 1
10221 _ACEOF
10222
10223 fi
10224
10225
10226   fi
10227 fi
10228
10229
10230
10231
10232
10233
10234 ac_header_dirent=no
10235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10236   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10237 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10238 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249 #include <sys/types.h>
10250 #include <$ac_hdr>
10251
10252 int
10253 main ()
10254 {
10255 if ((DIR *) 0)
10256 return 0;
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263   (eval $ac_compile) 2>&5
10264   ac_status=$?
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } &&
10267          { ac_try='test -s conftest.$ac_objext'
10268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269   (eval $ac_try) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; }; then
10273   eval "$as_ac_Header=yes"
10274 else
10275   echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 eval "$as_ac_Header=no"
10279 fi
10280 rm -f conftest.$ac_objext conftest.$ac_ext
10281 fi
10282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10285   cat >>confdefs.h <<_ACEOF
10286 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10287 _ACEOF
10288
10289 ac_header_dirent=$ac_hdr; break
10290 fi
10291
10292 done
10293 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10294 if test $ac_header_dirent = dirent.h; then
10295   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10296 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10297 if test "${ac_cv_search_opendir+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300   ac_func_search_save_LIBS=$LIBS
10301 ac_cv_search_opendir=no
10302 cat >conftest.$ac_ext <<_ACEOF
10303 #line $LINENO "configure"
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309
10310 /* Override any gcc2 internal prototype to avoid an error.  */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 /* We use char because int might match the return type of a gcc2
10315    builtin and then its argument prototype would still apply.  */
10316 char opendir ();
10317 int
10318 main ()
10319 {
10320 opendir ();
10321   ;
10322   return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327   (eval $ac_link) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); } &&
10331          { ac_try='test -s conftest$ac_exeext'
10332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333   (eval $ac_try) 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; }; then
10337   ac_cv_search_opendir="none required"
10338 else
10339   echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 fi
10343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10344 if test "$ac_cv_search_opendir" = no; then
10345   for ac_lib in dir; do
10346     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10347     cat >conftest.$ac_ext <<_ACEOF
10348 #line $LINENO "configure"
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354
10355 /* Override any gcc2 internal prototype to avoid an error.  */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 /* We use char because int might match the return type of a gcc2
10360    builtin and then its argument prototype would still apply.  */
10361 char opendir ();
10362 int
10363 main ()
10364 {
10365 opendir ();
10366   ;
10367   return 0;
10368 }
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372   (eval $ac_link) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } &&
10376          { ac_try='test -s conftest$ac_exeext'
10377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378   (eval $ac_try) 2>&5
10379   ac_status=$?
10380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381   (exit $ac_status); }; }; then
10382   ac_cv_search_opendir="-l$ac_lib"
10383 break
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 fi
10389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10390   done
10391 fi
10392 LIBS=$ac_func_search_save_LIBS
10393 fi
10394 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10395 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10396 if test "$ac_cv_search_opendir" != no; then
10397   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10398
10399 fi
10400
10401 else
10402   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10403 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10404 if test "${ac_cv_search_opendir+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   ac_func_search_save_LIBS=$LIBS
10408 ac_cv_search_opendir=no
10409 cat >conftest.$ac_ext <<_ACEOF
10410 #line $LINENO "configure"
10411 /* confdefs.h.  */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h.  */
10416
10417 /* Override any gcc2 internal prototype to avoid an error.  */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 /* We use char because int might match the return type of a gcc2
10422    builtin and then its argument prototype would still apply.  */
10423 char opendir ();
10424 int
10425 main ()
10426 {
10427 opendir ();
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434   (eval $ac_link) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); } &&
10438          { ac_try='test -s conftest$ac_exeext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   ac_cv_search_opendir="none required"
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 fi
10450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10451 if test "$ac_cv_search_opendir" = no; then
10452   for ac_lib in x; do
10453     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10454     cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10456 /* confdefs.h.  */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h.  */
10461
10462 /* Override any gcc2 internal prototype to avoid an error.  */
10463 #ifdef __cplusplus
10464 extern "C"
10465 #endif
10466 /* We use char because int might match the return type of a gcc2
10467    builtin and then its argument prototype would still apply.  */
10468 char opendir ();
10469 int
10470 main ()
10471 {
10472 opendir ();
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479   (eval $ac_link) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -s conftest$ac_exeext'
10484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485   (eval $ac_try) 2>&5
10486   ac_status=$?
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); }; }; then
10489   ac_cv_search_opendir="-l$ac_lib"
10490 break
10491 else
10492   echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10494
10495 fi
10496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10497   done
10498 fi
10499 LIBS=$ac_func_search_save_LIBS
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10502 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10503 if test "$ac_cv_search_opendir" != no; then
10504   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10505
10506 fi
10507
10508 fi
10509
10510 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10511 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10512 if test "${ac_cv_header_stat_broken+set}" = set; then
10513   echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515   cat >conftest.$ac_ext <<_ACEOF
10516 #line $LINENO "configure"
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 #include <sys/types.h>
10523 #include <sys/stat.h>
10524
10525 #if defined(S_ISBLK) && defined(S_IFDIR)
10526 # if S_ISBLK (S_IFDIR)
10527 You lose.
10528 # endif
10529 #endif
10530
10531 #if defined(S_ISBLK) && defined(S_IFCHR)
10532 # if S_ISBLK (S_IFCHR)
10533 You lose.
10534 # endif
10535 #endif
10536
10537 #if defined(S_ISLNK) && defined(S_IFREG)
10538 # if S_ISLNK (S_IFREG)
10539 You lose.
10540 # endif
10541 #endif
10542
10543 #if defined(S_ISSOCK) && defined(S_IFREG)
10544 # if S_ISSOCK (S_IFREG)
10545 You lose.
10546 # endif
10547 #endif
10548
10549 _ACEOF
10550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10551   $EGREP "You lose" >/dev/null 2>&1; then
10552   ac_cv_header_stat_broken=yes
10553 else
10554   ac_cv_header_stat_broken=no
10555 fi
10556 rm -f conftest*
10557
10558 fi
10559 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10560 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10561 if test $ac_cv_header_stat_broken = yes; then
10562
10563 cat >>confdefs.h <<\_ACEOF
10564 #define STAT_MACROS_BROKEN 1
10565 _ACEOF
10566
10567 fi
10568
10569 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10570 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10571 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 #include <sys/types.h>
10582 #include <sys/wait.h>
10583 #ifndef WEXITSTATUS
10584 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10585 #endif
10586 #ifndef WIFEXITED
10587 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10588 #endif
10589
10590 int
10591 main ()
10592 {
10593   int s;
10594   wait (&s);
10595   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602   (eval $ac_compile) 2>&5
10603   ac_status=$?
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } &&
10606          { ac_try='test -s conftest.$ac_objext'
10607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608   (eval $ac_try) 2>&5
10609   ac_status=$?
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); }; }; then
10612   ac_cv_header_sys_wait_h=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617 ac_cv_header_sys_wait_h=no
10618 fi
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10620 fi
10621 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10622 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10623 if test $ac_cv_header_sys_wait_h = yes; then
10624
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_SYS_WAIT_H 1
10627 _ACEOF
10628
10629 fi
10630
10631 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10632 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10633 if test "${ac_cv_header_time+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636   cat >conftest.$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 #include <sys/types.h>
10644 #include <sys/time.h>
10645 #include <time.h>
10646
10647 int
10648 main ()
10649 {
10650 if ((struct tm *) 0)
10651 return 0;
10652   ;
10653   return 0;
10654 }
10655 _ACEOF
10656 rm -f conftest.$ac_objext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10658   (eval $ac_compile) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } &&
10662          { ac_try='test -s conftest.$ac_objext'
10663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664   (eval $ac_try) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; }; then
10668   ac_cv_header_time=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_cv_header_time=no
10674 fi
10675 rm -f conftest.$ac_objext conftest.$ac_ext
10676 fi
10677 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10678 echo "${ECHO_T}$ac_cv_header_time" >&6
10679 if test $ac_cv_header_time = yes; then
10680
10681 cat >>confdefs.h <<\_ACEOF
10682 #define TIME_WITH_SYS_TIME 1
10683 _ACEOF
10684
10685 fi
10686
10687
10688 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10689 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10690 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   cat >conftest.$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10695 /* confdefs.h.  */
10696 _ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h.  */
10700 $ac_includes_default
10701 int
10702 main ()
10703 {
10704 static struct stat ac_aggr;
10705 if (ac_aggr.st_blksize)
10706 return 0;
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713   (eval $ac_compile) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } &&
10717          { ac_try='test -s conftest.$ac_objext'
10718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719   (eval $ac_try) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }; }; then
10723   ac_cv_member_struct_stat_st_blksize=yes
10724 else
10725   echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 cat >conftest.$ac_ext <<_ACEOF
10729 #line $LINENO "configure"
10730 /* confdefs.h.  */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h.  */
10735 $ac_includes_default
10736 int
10737 main ()
10738 {
10739 static struct stat ac_aggr;
10740 if (sizeof ac_aggr.st_blksize)
10741 return 0;
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748   (eval $ac_compile) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -s conftest.$ac_objext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   ac_cv_member_struct_stat_st_blksize=yes
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 ac_cv_member_struct_stat_st_blksize=no
10764 fi
10765 rm -f conftest.$ac_objext conftest.$ac_ext
10766 fi
10767 rm -f conftest.$ac_objext conftest.$ac_ext
10768 fi
10769 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10770 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10771 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10772
10773 cat >>confdefs.h <<_ACEOF
10774 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10775 _ACEOF
10776
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define HAVE_ST_BLKSIZE 1
10780 _ACEOF
10781
10782 fi
10783
10784
10785 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10786 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10787 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790   cat >conftest.$ac_ext <<_ACEOF
10791 #line $LINENO "configure"
10792 /* confdefs.h.  */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h.  */
10797 $ac_includes_default
10798 int
10799 main ()
10800 {
10801 static struct stat ac_aggr;
10802 if (ac_aggr.st_blocks)
10803 return 0;
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10810   (eval $ac_compile) 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } &&
10814          { ac_try='test -s conftest.$ac_objext'
10815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816   (eval $ac_try) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; }; then
10820   ac_cv_member_struct_stat_st_blocks=yes
10821 else
10822   echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 $ac_includes_default
10833 int
10834 main ()
10835 {
10836 static struct stat ac_aggr;
10837 if (sizeof ac_aggr.st_blocks)
10838 return 0;
10839   ;
10840   return 0;
10841 }
10842 _ACEOF
10843 rm -f conftest.$ac_objext
10844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10845   (eval $ac_compile) 2>&5
10846   ac_status=$?
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); } &&
10849          { ac_try='test -s conftest.$ac_objext'
10850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851   (eval $ac_try) 2>&5
10852   ac_status=$?
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); }; }; then
10855   ac_cv_member_struct_stat_st_blocks=yes
10856 else
10857   echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10859
10860 ac_cv_member_struct_stat_st_blocks=no
10861 fi
10862 rm -f conftest.$ac_objext conftest.$ac_ext
10863 fi
10864 rm -f conftest.$ac_objext conftest.$ac_ext
10865 fi
10866 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10867 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10868 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10869
10870 cat >>confdefs.h <<_ACEOF
10871 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10872 _ACEOF
10873
10874
10875 cat >>confdefs.h <<\_ACEOF
10876 #define HAVE_ST_BLOCKS 1
10877 _ACEOF
10878
10879 else
10880   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10881 fi
10882
10883
10884 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10886 if test "${ac_cv_struct_tm+set}" = set; then
10887   echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889   cat >conftest.$ac_ext <<_ACEOF
10890 #line $LINENO "configure"
10891 /* confdefs.h.  */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h.  */
10896 #include <sys/types.h>
10897 #include <time.h>
10898
10899 int
10900 main ()
10901 {
10902 struct tm *tp; tp->tm_sec;
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909   (eval $ac_compile) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } &&
10913          { ac_try='test -s conftest.$ac_objext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_struct_tm=time.h
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 ac_cv_struct_tm=sys/time.h
10925 fi
10926 rm -f conftest.$ac_objext conftest.$ac_ext
10927 fi
10928 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10929 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10930 if test $ac_cv_struct_tm = sys/time.h; then
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define TM_IN_SYS_TIME 1
10934 _ACEOF
10935
10936 fi
10937
10938 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10939 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10940 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10941   echo $ECHO_N "(cached) $ECHO_C" >&6
10942 else
10943   cat >conftest.$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10945 /* confdefs.h.  */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h.  */
10950 #include <sys/types.h>
10951 #include <$ac_cv_struct_tm>
10952
10953
10954 int
10955 main ()
10956 {
10957 static struct tm ac_aggr;
10958 if (ac_aggr.tm_zone)
10959 return 0;
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 rm -f conftest.$ac_objext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10966   (eval $ac_compile) 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); } &&
10970          { ac_try='test -s conftest.$ac_objext'
10971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972   (eval $ac_try) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   ac_cv_member_struct_tm_tm_zone=yes
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981 cat >conftest.$ac_ext <<_ACEOF
10982 #line $LINENO "configure"
10983 /* confdefs.h.  */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h.  */
10988 #include <sys/types.h>
10989 #include <$ac_cv_struct_tm>
10990
10991
10992 int
10993 main ()
10994 {
10995 static struct tm ac_aggr;
10996 if (sizeof ac_aggr.tm_zone)
10997 return 0;
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004   (eval $ac_compile) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } &&
11008          { ac_try='test -s conftest.$ac_objext'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; }; then
11014   ac_cv_member_struct_tm_tm_zone=yes
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ac_cv_member_struct_tm_tm_zone=no
11020 fi
11021 rm -f conftest.$ac_objext conftest.$ac_ext
11022 fi
11023 rm -f conftest.$ac_objext conftest.$ac_ext
11024 fi
11025 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11026 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11027 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11028
11029 cat >>confdefs.h <<_ACEOF
11030 #define HAVE_STRUCT_TM_TM_ZONE 1
11031 _ACEOF
11032
11033
11034 fi
11035
11036 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11037
11038 cat >>confdefs.h <<\_ACEOF
11039 #define HAVE_TM_ZONE 1
11040 _ACEOF
11041
11042 else
11043   echo "$as_me:$LINENO: checking for tzname" >&5
11044 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11045 if test "${ac_cv_var_tzname+set}" = set; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   cat >conftest.$ac_ext <<_ACEOF
11049 #line $LINENO "configure"
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 #include <time.h>
11056 #ifndef tzname /* For SGI.  */
11057 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11058 #endif
11059
11060 int
11061 main ()
11062 {
11063 atoi(*tzname);
11064   ;
11065   return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070   (eval $ac_link) 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } &&
11074          { ac_try='test -s conftest$ac_exeext'
11075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11076   (eval $ac_try) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   ac_cv_var_tzname=yes
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085 ac_cv_var_tzname=no
11086 fi
11087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11088 fi
11089 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11090 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11091   if test $ac_cv_var_tzname = yes; then
11092
11093 cat >>confdefs.h <<\_ACEOF
11094 #define HAVE_TZNAME 1
11095 _ACEOF
11096
11097   fi
11098 fi
11099
11100
11101 echo "$as_me:$LINENO: checking for utime.h" >&5
11102 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11103 if test "${ba_cv_header_utime_h+set}" = set; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   cat >conftest.$ac_ext <<_ACEOF
11107 #line $LINENO "configure"
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113
11114 #include <sys/types.h>
11115 #include <utime.h>
11116 int
11117 main ()
11118 {
11119 struct utimbuf foo
11120   ;
11121   return 0;
11122 }
11123 _ACEOF
11124 rm -f conftest.$ac_objext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11126   (eval $ac_compile) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -s conftest.$ac_objext'
11131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132   (eval $ac_try) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; }; then
11136   ba_cv_header_utime_h=yes
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 ba_cv_header_utime_h=no
11142 fi
11143 rm -f conftest.$ac_objext conftest.$ac_ext
11144 fi
11145 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11146 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11147 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_UTIME_H 1
11149 _ACEOF
11150
11151
11152 echo "$as_me:$LINENO: checking for socklen_t" >&5
11153 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11154 if test "${ba_cv_header_socklen_t+set}" = set; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   cat >conftest.$ac_ext <<_ACEOF
11158 #line $LINENO "configure"
11159 /* confdefs.h.  */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h.  */
11164
11165 #include <sys/types.h>
11166 #include <sys/socket.h>
11167 int
11168 main ()
11169 {
11170 socklen_t x
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11177   (eval $ac_compile) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -s conftest.$ac_objext'
11182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183   (eval $ac_try) 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   ba_cv_header_socklen_t=yes
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 ba_cv_header_socklen_t=no
11193 fi
11194 rm -f conftest.$ac_objext conftest.$ac_ext
11195 fi
11196 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11197 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11198 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11199 #define HAVE_SOCKLEN_T 1
11200 _ACEOF
11201
11202
11203 echo "$as_me:$LINENO: checking for bigendian" >&5
11204 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11205 if test "${ba_cv_bigendian+set}" = set; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   if test "$cross_compiling" = yes; then
11209   ba_cv_bigendian=no
11210 else
11211   cat >conftest.$ac_ext <<_ACEOF
11212 #line $LINENO "configure"
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11219 _ACEOF
11220 rm -f conftest$ac_exeext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11222   (eval $ac_link) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   ba_cv_bigendian=yes
11232 else
11233   echo "$as_me: program exited with status $ac_status" >&5
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237 ( exit $ac_status )
11238 ba_cv_bigendian=no
11239 fi
11240 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11241 fi
11242 fi
11243 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11244 echo "${ECHO_T}$ba_cv_bigendian" >&6
11245 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_BIGENDIAN 1
11247 _ACEOF
11248
11249
11250
11251 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11252 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11253 if test "${ac_cv_c_const+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256   cat >conftest.$ac_ext <<_ACEOF
11257 #line $LINENO "configure"
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263
11264 int
11265 main ()
11266 {
11267 /* FIXME: Include the comments suggested by Paul. */
11268 #ifndef __cplusplus
11269   /* Ultrix mips cc rejects this.  */
11270   typedef int charset[2];
11271   const charset x;
11272   /* SunOS 4.1.1 cc rejects this.  */
11273   char const *const *ccp;
11274   char **p;
11275   /* NEC SVR4.0.2 mips cc rejects this.  */
11276   struct point {int x, y;};
11277   static struct point const zero = {0,0};
11278   /* AIX XL C 1.02.0.0 rejects this.
11279      It does not let you subtract one const X* pointer from another in
11280      an arm of an if-expression whose if-part is not a constant
11281      expression */
11282   const char *g = "string";
11283   ccp = &g + (g ? g-g : 0);
11284   /* HPUX 7.0 cc rejects these. */
11285   ++ccp;
11286   p = (char**) ccp;
11287   ccp = (char const *const *) p;
11288   { /* SCO 3.2v4 cc rejects this.  */
11289     char *t;
11290     char const *s = 0 ? (char *) 0 : (char const *) 0;
11291
11292     *t++ = 0;
11293   }
11294   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11295     int x[] = {25, 17};
11296     const int *foo = &x[0];
11297     ++foo;
11298   }
11299   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11300     typedef const int *iptr;
11301     iptr p = 0;
11302     ++p;
11303   }
11304   { /* AIX XL C 1.02.0.0 rejects this saying
11305        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11306     struct s { int j; const int *ap[3]; };
11307     struct s *b; b->j = 5;
11308   }
11309   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11310     const int foo = 10;
11311   }
11312 #endif
11313
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320   (eval $ac_compile) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } &&
11324          { ac_try='test -s conftest.$ac_objext'
11325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326   (eval $ac_try) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; }; then
11330   ac_cv_c_const=yes
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 ac_cv_c_const=no
11336 fi
11337 rm -f conftest.$ac_objext conftest.$ac_ext
11338 fi
11339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11340 echo "${ECHO_T}$ac_cv_c_const" >&6
11341 if test $ac_cv_c_const = no; then
11342
11343 cat >>confdefs.h <<\_ACEOF
11344 #define const
11345 _ACEOF
11346
11347 fi
11348
11349
11350
11351 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11352 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11353 fstype=no
11354 # The order of these tests is important.
11355 cat >conftest.$ac_ext <<_ACEOF
11356 #line $LINENO "configure"
11357 /* confdefs.h.  */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h.  */
11362 #include <sys/statvfs.h>
11363 #include <sys/fstyp.h>
11364 _ACEOF
11365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11367   ac_status=$?
11368   grep -v '^ *+' conftest.er1 >conftest.err
11369   rm -f conftest.er1
11370   cat conftest.err >&5
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); } >/dev/null; then
11373   if test -s conftest.err; then
11374     ac_cpp_err=$ac_c_preproc_warn_flag
11375   else
11376     ac_cpp_err=
11377   fi
11378 else
11379   ac_cpp_err=yes
11380 fi
11381 if test -z "$ac_cpp_err"; then
11382   cat >>confdefs.h <<\_ACEOF
11383 #define FSTYPE_STATVFS 1
11384 _ACEOF
11385  fstype=SVR4
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390
11391 fi
11392 rm -f conftest.err conftest.$ac_ext
11393 if test $fstype = no; then
11394 cat >conftest.$ac_ext <<_ACEOF
11395 #line $LINENO "configure"
11396 /* confdefs.h.  */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h.  */
11401 #include <sys/statfs.h>
11402 #include <sys/fstyp.h>
11403 _ACEOF
11404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11406   ac_status=$?
11407   grep -v '^ *+' conftest.er1 >conftest.err
11408   rm -f conftest.er1
11409   cat conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } >/dev/null; then
11412   if test -s conftest.err; then
11413     ac_cpp_err=$ac_c_preproc_warn_flag
11414   else
11415     ac_cpp_err=
11416   fi
11417 else
11418   ac_cpp_err=yes
11419 fi
11420 if test -z "$ac_cpp_err"; then
11421   cat >>confdefs.h <<\_ACEOF
11422 #define FSTYPE_USG_STATFS 1
11423 _ACEOF
11424  fstype=SVR3
11425 else
11426   echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429
11430 fi
11431 rm -f conftest.err conftest.$ac_ext
11432 fi
11433 if test $fstype = no; then
11434 cat >conftest.$ac_ext <<_ACEOF
11435 #line $LINENO "configure"
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441 #include <sys/statfs.h>
11442 #include <sys/vmount.h>
11443 _ACEOF
11444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11446   ac_status=$?
11447   grep -v '^ *+' conftest.er1 >conftest.err
11448   rm -f conftest.er1
11449   cat conftest.err >&5
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); } >/dev/null; then
11452   if test -s conftest.err; then
11453     ac_cpp_err=$ac_c_preproc_warn_flag
11454   else
11455     ac_cpp_err=
11456   fi
11457 else
11458   ac_cpp_err=yes
11459 fi
11460 if test -z "$ac_cpp_err"; then
11461   cat >>confdefs.h <<\_ACEOF
11462 #define FSTYPE_AIX_STATFS 1
11463 _ACEOF
11464  fstype=AIX
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469
11470 fi
11471 rm -f conftest.err conftest.$ac_ext
11472 fi
11473 if test $fstype = no; then
11474 cat >conftest.$ac_ext <<_ACEOF
11475 #line $LINENO "configure"
11476 /* confdefs.h.  */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h.  */
11481 #include <mntent.h>
11482 _ACEOF
11483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } >/dev/null; then
11491   if test -s conftest.err; then
11492     ac_cpp_err=$ac_c_preproc_warn_flag
11493   else
11494     ac_cpp_err=
11495   fi
11496 else
11497   ac_cpp_err=yes
11498 fi
11499 if test -z "$ac_cpp_err"; then
11500   cat >>confdefs.h <<\_ACEOF
11501 #define FSTYPE_MNTENT 1
11502 _ACEOF
11503  fstype=4.3BSD
11504 else
11505   echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508
11509 fi
11510 rm -f conftest.err conftest.$ac_ext
11511 fi
11512 if test $fstype = no; then
11513 cat >conftest.$ac_ext <<_ACEOF
11514 #line $LINENO "configure"
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520 #include <sys/mount.h>
11521
11522 _ACEOF
11523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11524   $EGREP "f_type;" >/dev/null 2>&1; then
11525   cat >>confdefs.h <<\_ACEOF
11526 #define FSTYPE_STATFS 1
11527 _ACEOF
11528  fstype=4.4BSD/OSF1
11529 fi
11530 rm -f conftest*
11531
11532 fi
11533 if test $fstype = no; then
11534 cat >conftest.$ac_ext <<_ACEOF
11535 #line $LINENO "configure"
11536 /* confdefs.h.  */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h.  */
11541 #include <sys/mount.h>
11542 #include <sys/fs_types.h>
11543 _ACEOF
11544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11546   ac_status=$?
11547   grep -v '^ *+' conftest.er1 >conftest.err
11548   rm -f conftest.er1
11549   cat conftest.err >&5
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); } >/dev/null; then
11552   if test -s conftest.err; then
11553     ac_cpp_err=$ac_c_preproc_warn_flag
11554   else
11555     ac_cpp_err=
11556   fi
11557 else
11558   ac_cpp_err=yes
11559 fi
11560 if test -z "$ac_cpp_err"; then
11561   cat >>confdefs.h <<\_ACEOF
11562 #define FSTYPE_GETMNT 1
11563 _ACEOF
11564  fstype=Ultrix
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569
11570 fi
11571 rm -f conftest.err conftest.$ac_ext
11572 fi
11573 echo "$as_me:$LINENO: result: $fstype" >&5
11574 echo "${ECHO_T}$fstype" >&6
11575
11576 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11577 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11578 if test "${ac_cv_type_signal+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 #include <sys/types.h>
11589 #include <signal.h>
11590 #ifdef signal
11591 # undef signal
11592 #endif
11593 #ifdef __cplusplus
11594 extern "C" void (*signal (int, void (*)(int)))(int);
11595 #else
11596 void (*signal ()) ();
11597 #endif
11598
11599 int
11600 main ()
11601 {
11602 int i;
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 rm -f conftest.$ac_objext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609   (eval $ac_compile) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); } &&
11613          { ac_try='test -s conftest.$ac_objext'
11614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615   (eval $ac_try) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; }; then
11619   ac_cv_type_signal=void
11620 else
11621   echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11623
11624 ac_cv_type_signal=int
11625 fi
11626 rm -f conftest.$ac_objext conftest.$ac_ext
11627 fi
11628 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11629 echo "${ECHO_T}$ac_cv_type_signal" >&6
11630
11631 cat >>confdefs.h <<_ACEOF
11632 #define RETSIGTYPE $ac_cv_type_signal
11633 _ACEOF
11634
11635
11636
11637 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11638 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11639 if test "${bash_cv_signal_vintage+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642
11643   cat >conftest.$ac_ext <<_ACEOF
11644 #line $LINENO "configure"
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 #include <signal.h>
11651 int
11652 main ()
11653 {
11654
11655     sigset_t ss;
11656     struct sigaction sa;
11657     sigemptyset(&ss); sigsuspend(&ss);
11658     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11659     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11660
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 rm -f conftest.$ac_objext conftest$ac_exeext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11667   (eval $ac_link) 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -s conftest$ac_exeext'
11672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673   (eval $ac_try) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; }; then
11677   bash_cv_signal_vintage=posix
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682
11683     cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 /* confdefs.h.  */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h.  */
11690 #include <signal.h>
11691 int
11692 main ()
11693 {
11694
11695         int mask = sigmask(SIGINT);
11696         sigsetmask(mask); sigblock(mask); sigpause(mask);
11697
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704   (eval $ac_link) 2>&5
11705   ac_status=$?
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -s conftest$ac_exeext'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   bash_cv_signal_vintage=4.2bsd
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719
11720       cat >conftest.$ac_ext <<_ACEOF
11721 #line $LINENO "configure"
11722 /* confdefs.h.  */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h.  */
11727
11728         #include <signal.h>
11729         RETSIGTYPE foo() { }
11730 int
11731 main ()
11732 {
11733
11734                 int mask = sigmask(SIGINT);
11735                 sigset(SIGINT, foo); sigrelse(SIGINT);
11736                 sighold(SIGINT); sigpause(SIGINT);
11737
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 rm -f conftest.$ac_objext conftest$ac_exeext
11743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11744   (eval $ac_link) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } &&
11748          { ac_try='test -s conftest$ac_exeext'
11749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750   (eval $ac_try) 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; }; then
11754   bash_cv_signal_vintage=svr3
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 bash_cv_signal_vintage=v7
11760
11761 fi
11762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11763
11764 fi
11765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11766
11767 fi
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11769
11770 fi
11771
11772 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11773 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11774 if test "$bash_cv_signal_vintage" = posix; then
11775 cat >>confdefs.h <<\_ACEOF
11776 #define HAVE_POSIX_SIGNALS 1
11777 _ACEOF
11778
11779 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11780 cat >>confdefs.h <<\_ACEOF
11781 #define HAVE_BSD_SIGNALS 1
11782 _ACEOF
11783
11784 elif test "$bash_cv_signal_vintage" = svr3; then
11785 cat >>confdefs.h <<\_ACEOF
11786 #define HAVE_USG_SIGHOLD 1
11787 _ACEOF
11788
11789 fi
11790
11791 echo "$as_me:$LINENO: checking for mode_t" >&5
11792 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11793 if test "${ac_cv_type_mode_t+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   cat >conftest.$ac_ext <<_ACEOF
11797 #line $LINENO "configure"
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803 $ac_includes_default
11804 int
11805 main ()
11806 {
11807 if ((mode_t *) 0)
11808   return 0;
11809 if (sizeof (mode_t))
11810   return 0;
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11817   (eval $ac_compile) 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } &&
11821          { ac_try='test -s conftest.$ac_objext'
11822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823   (eval $ac_try) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; }; then
11827   ac_cv_type_mode_t=yes
11828 else
11829   echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_cv_type_mode_t=no
11833 fi
11834 rm -f conftest.$ac_objext conftest.$ac_ext
11835 fi
11836 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11837 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11838 if test $ac_cv_type_mode_t = yes; then
11839   :
11840 else
11841
11842 cat >>confdefs.h <<_ACEOF
11843 #define mode_t int
11844 _ACEOF
11845
11846 fi
11847
11848 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11849 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11850 if test "${ac_cv_type_uid_t+set}" = set; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   cat >conftest.$ac_ext <<_ACEOF
11854 #line $LINENO "configure"
11855 /* confdefs.h.  */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h.  */
11860 #include <sys/types.h>
11861
11862 _ACEOF
11863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11864   $EGREP "uid_t" >/dev/null 2>&1; then
11865   ac_cv_type_uid_t=yes
11866 else
11867   ac_cv_type_uid_t=no
11868 fi
11869 rm -f conftest*
11870
11871 fi
11872 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11873 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11874 if test $ac_cv_type_uid_t = no; then
11875
11876 cat >>confdefs.h <<\_ACEOF
11877 #define uid_t int
11878 _ACEOF
11879
11880
11881 cat >>confdefs.h <<\_ACEOF
11882 #define gid_t int
11883 _ACEOF
11884
11885 fi
11886
11887 echo "$as_me:$LINENO: checking for size_t" >&5
11888 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11889 if test "${ac_cv_type_size_t+set}" = set; then
11890   echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892   cat >conftest.$ac_ext <<_ACEOF
11893 #line $LINENO "configure"
11894 /* confdefs.h.  */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h.  */
11899 $ac_includes_default
11900 int
11901 main ()
11902 {
11903 if ((size_t *) 0)
11904   return 0;
11905 if (sizeof (size_t))
11906   return 0;
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913   (eval $ac_compile) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -s conftest.$ac_objext'
11918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919   (eval $ac_try) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; }; then
11923   ac_cv_type_size_t=yes
11924 else
11925   echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 ac_cv_type_size_t=no
11929 fi
11930 rm -f conftest.$ac_objext conftest.$ac_ext
11931 fi
11932 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11933 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11934 if test $ac_cv_type_size_t = yes; then
11935   :
11936 else
11937
11938 cat >>confdefs.h <<_ACEOF
11939 #define size_t unsigned
11940 _ACEOF
11941
11942 fi
11943
11944 echo "$as_me:$LINENO: checking for pid_t" >&5
11945 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11946 if test "${ac_cv_type_pid_t+set}" = set; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949   cat >conftest.$ac_ext <<_ACEOF
11950 #line $LINENO "configure"
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956 $ac_includes_default
11957 int
11958 main ()
11959 {
11960 if ((pid_t *) 0)
11961   return 0;
11962 if (sizeof (pid_t))
11963   return 0;
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970   (eval $ac_compile) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -s conftest.$ac_objext'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; }; then
11980   ac_cv_type_pid_t=yes
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 ac_cv_type_pid_t=no
11986 fi
11987 rm -f conftest.$ac_objext conftest.$ac_ext
11988 fi
11989 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11990 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11991 if test $ac_cv_type_pid_t = yes; then
11992   :
11993 else
11994
11995 cat >>confdefs.h <<_ACEOF
11996 #define pid_t int
11997 _ACEOF
11998
11999 fi
12000
12001 echo "$as_me:$LINENO: checking for off_t" >&5
12002 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12003 if test "${ac_cv_type_off_t+set}" = set; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006   cat >conftest.$ac_ext <<_ACEOF
12007 #line $LINENO "configure"
12008 /* confdefs.h.  */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h.  */
12013 $ac_includes_default
12014 int
12015 main ()
12016 {
12017 if ((off_t *) 0)
12018   return 0;
12019 if (sizeof (off_t))
12020   return 0;
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12027   (eval $ac_compile) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } &&
12031          { ac_try='test -s conftest.$ac_objext'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; }; then
12037   ac_cv_type_off_t=yes
12038 else
12039   echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042 ac_cv_type_off_t=no
12043 fi
12044 rm -f conftest.$ac_objext conftest.$ac_ext
12045 fi
12046 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12047 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12048 if test $ac_cv_type_off_t = yes; then
12049   :
12050 else
12051
12052 cat >>confdefs.h <<_ACEOF
12053 #define off_t long
12054 _ACEOF
12055
12056 fi
12057
12058 echo "$as_me:$LINENO: checking for ino_t" >&5
12059 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12060 if test "${ac_cv_type_ino_t+set}" = set; then
12061   echo $ECHO_N "(cached) $ECHO_C" >&6
12062 else
12063   cat >conftest.$ac_ext <<_ACEOF
12064 #line $LINENO "configure"
12065 /* confdefs.h.  */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h.  */
12070 $ac_includes_default
12071 int
12072 main ()
12073 {
12074 if ((ino_t *) 0)
12075   return 0;
12076 if (sizeof (ino_t))
12077   return 0;
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084   (eval $ac_compile) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -s conftest.$ac_objext'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   ac_cv_type_ino_t=yes
12095 else
12096   echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ac_cv_type_ino_t=no
12100 fi
12101 rm -f conftest.$ac_objext conftest.$ac_ext
12102 fi
12103 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12104 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12105 if test $ac_cv_type_ino_t = yes; then
12106   :
12107 else
12108
12109 cat >>confdefs.h <<_ACEOF
12110 #define ino_t unsigned long
12111 _ACEOF
12112
12113 fi
12114
12115 echo "$as_me:$LINENO: checking for dev_t" >&5
12116 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12117 if test "${ac_cv_type_dev_t+set}" = set; then
12118   echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120   cat >conftest.$ac_ext <<_ACEOF
12121 #line $LINENO "configure"
12122 /* confdefs.h.  */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h.  */
12127 $ac_includes_default
12128 int
12129 main ()
12130 {
12131 if ((dev_t *) 0)
12132   return 0;
12133 if (sizeof (dev_t))
12134   return 0;
12135   ;
12136   return 0;
12137 }
12138 _ACEOF
12139 rm -f conftest.$ac_objext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141   (eval $ac_compile) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } &&
12145          { ac_try='test -s conftest.$ac_objext'
12146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147   (eval $ac_try) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); }; }; then
12151   ac_cv_type_dev_t=yes
12152 else
12153   echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_cv_type_dev_t=no
12157 fi
12158 rm -f conftest.$ac_objext conftest.$ac_ext
12159 fi
12160 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12161 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12162 if test $ac_cv_type_dev_t = yes; then
12163   :
12164 else
12165
12166 cat >>confdefs.h <<_ACEOF
12167 #define dev_t unsigned long
12168 _ACEOF
12169
12170 fi
12171
12172 echo "$as_me:$LINENO: checking for daddr_t" >&5
12173 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12174 if test "${ac_cv_type_daddr_t+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 $ac_includes_default
12185 int
12186 main ()
12187 {
12188 if ((daddr_t *) 0)
12189   return 0;
12190 if (sizeof (daddr_t))
12191   return 0;
12192   ;
12193   return 0;
12194 }
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198   (eval $ac_compile) 2>&5
12199   ac_status=$?
12200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201   (exit $ac_status); } &&
12202          { ac_try='test -s conftest.$ac_objext'
12203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204   (eval $ac_try) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; }; then
12208   ac_cv_type_daddr_t=yes
12209 else
12210   echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213 ac_cv_type_daddr_t=no
12214 fi
12215 rm -f conftest.$ac_objext conftest.$ac_ext
12216 fi
12217 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12218 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12219 if test $ac_cv_type_daddr_t = yes; then
12220   :
12221 else
12222
12223 cat >>confdefs.h <<_ACEOF
12224 #define daddr_t long
12225 _ACEOF
12226
12227 fi
12228
12229 echo "$as_me:$LINENO: checking for major_t" >&5
12230 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12231 if test "${ac_cv_type_major_t+set}" = set; then
12232   echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234   cat >conftest.$ac_ext <<_ACEOF
12235 #line $LINENO "configure"
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241 $ac_includes_default
12242 int
12243 main ()
12244 {
12245 if ((major_t *) 0)
12246   return 0;
12247 if (sizeof (major_t))
12248   return 0;
12249   ;
12250   return 0;
12251 }
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255   (eval $ac_compile) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } &&
12259          { ac_try='test -s conftest.$ac_objext'
12260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261   (eval $ac_try) 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); }; }; then
12265   ac_cv_type_major_t=yes
12266 else
12267   echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270 ac_cv_type_major_t=no
12271 fi
12272 rm -f conftest.$ac_objext conftest.$ac_ext
12273 fi
12274 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12275 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12276 if test $ac_cv_type_major_t = yes; then
12277   :
12278 else
12279
12280 cat >>confdefs.h <<_ACEOF
12281 #define major_t int
12282 _ACEOF
12283
12284 fi
12285
12286 echo "$as_me:$LINENO: checking for minor_t" >&5
12287 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12288 if test "${ac_cv_type_minor_t+set}" = set; then
12289   echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291   cat >conftest.$ac_ext <<_ACEOF
12292 #line $LINENO "configure"
12293 /* confdefs.h.  */
12294 _ACEOF
12295 cat confdefs.h >>conftest.$ac_ext
12296 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h.  */
12298 $ac_includes_default
12299 int
12300 main ()
12301 {
12302 if ((minor_t *) 0)
12303   return 0;
12304 if (sizeof (minor_t))
12305   return 0;
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312   (eval $ac_compile) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } &&
12316          { ac_try='test -s conftest.$ac_objext'
12317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318   (eval $ac_try) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; }; then
12322   ac_cv_type_minor_t=yes
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327 ac_cv_type_minor_t=no
12328 fi
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12330 fi
12331 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12332 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12333 if test $ac_cv_type_minor_t = yes; then
12334   :
12335 else
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define minor_t int
12339 _ACEOF
12340
12341 fi
12342
12343 echo "$as_me:$LINENO: checking for ssize_t" >&5
12344 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12345 if test "${ac_cv_type_ssize_t+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   cat >conftest.$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12350 /* confdefs.h.  */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h.  */
12355 $ac_includes_default
12356 int
12357 main ()
12358 {
12359 if ((ssize_t *) 0)
12360   return 0;
12361 if (sizeof (ssize_t))
12362   return 0;
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369   (eval $ac_compile) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } &&
12373          { ac_try='test -s conftest.$ac_objext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   ac_cv_type_ssize_t=yes
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ac_cv_type_ssize_t=no
12385 fi
12386 rm -f conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12389 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12390 if test $ac_cv_type_ssize_t = yes; then
12391   :
12392 else
12393
12394 cat >>confdefs.h <<_ACEOF
12395 #define ssize_t int
12396 _ACEOF
12397
12398 fi
12399
12400 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12401 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12402 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 /* confdefs.h.  */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h.  */
12412 $ac_includes_default
12413 int
12414 main ()
12415 {
12416 static struct stat ac_aggr;
12417 if (ac_aggr.st_blocks)
12418 return 0;
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425   (eval $ac_compile) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); } &&
12429          { ac_try='test -s conftest.$ac_objext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_cv_member_struct_stat_st_blocks=yes
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 cat >conftest.$ac_ext <<_ACEOF
12441 #line $LINENO "configure"
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447 $ac_includes_default
12448 int
12449 main ()
12450 {
12451 static struct stat ac_aggr;
12452 if (sizeof ac_aggr.st_blocks)
12453 return 0;
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460   (eval $ac_compile) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -s conftest.$ac_objext'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }; then
12470   ac_cv_member_struct_stat_st_blocks=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475 ac_cv_member_struct_stat_st_blocks=no
12476 fi
12477 rm -f conftest.$ac_objext conftest.$ac_ext
12478 fi
12479 rm -f conftest.$ac_objext conftest.$ac_ext
12480 fi
12481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12482 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12483 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12484
12485 cat >>confdefs.h <<_ACEOF
12486 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12487 _ACEOF
12488
12489
12490 cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_ST_BLOCKS 1
12492 _ACEOF
12493
12494 else
12495   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12496 fi
12497
12498
12499
12500 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12501 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12502 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12503   echo $ECHO_N "(cached) $ECHO_C" >&6
12504 else
12505   cat >conftest.$ac_ext <<_ACEOF
12506 #line $LINENO "configure"
12507 /* confdefs.h.  */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h.  */
12512 $ac_includes_default
12513 int
12514 main ()
12515 {
12516 static struct stat ac_aggr;
12517 if (ac_aggr.st_rdev)
12518 return 0;
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525   (eval $ac_compile) 2>&5
12526   ac_status=$?
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   (exit $ac_status); } &&
12529          { ac_try='test -s conftest.$ac_objext'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; }; then
12535   ac_cv_member_struct_stat_st_rdev=yes
12536 else
12537   echo "$as_me: failed program was:" >&5
12538 sed 's/^/| /' conftest.$ac_ext >&5
12539
12540 cat >conftest.$ac_ext <<_ACEOF
12541 #line $LINENO "configure"
12542 /* confdefs.h.  */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h.  */
12547 $ac_includes_default
12548 int
12549 main ()
12550 {
12551 static struct stat ac_aggr;
12552 if (sizeof ac_aggr.st_rdev)
12553 return 0;
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12560   (eval $ac_compile) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -s conftest.$ac_objext'
12565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566   (eval $ac_try) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; }; then
12570   ac_cv_member_struct_stat_st_rdev=yes
12571 else
12572   echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12574
12575 ac_cv_member_struct_stat_st_rdev=no
12576 fi
12577 rm -f conftest.$ac_objext conftest.$ac_ext
12578 fi
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12580 fi
12581 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12582 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12583 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12584
12585 cat >>confdefs.h <<_ACEOF
12586 #define HAVE_STRUCT_STAT_ST_RDEV 1
12587 _ACEOF
12588
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_ST_RDEV 1
12592 _ACEOF
12593
12594 fi
12595
12596
12597 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12598 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12599 if test "${ac_cv_struct_tm+set}" = set; then
12600   echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602   cat >conftest.$ac_ext <<_ACEOF
12603 #line $LINENO "configure"
12604 /* confdefs.h.  */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h.  */
12609 #include <sys/types.h>
12610 #include <time.h>
12611
12612 int
12613 main ()
12614 {
12615 struct tm *tp; tp->tm_sec;
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622   (eval $ac_compile) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } &&
12626          { ac_try='test -s conftest.$ac_objext'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; }; then
12632   ac_cv_struct_tm=time.h
12633 else
12634   echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12636
12637 ac_cv_struct_tm=sys/time.h
12638 fi
12639 rm -f conftest.$ac_objext conftest.$ac_ext
12640 fi
12641 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12642 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12643 if test $ac_cv_struct_tm = sys/time.h; then
12644
12645 cat >>confdefs.h <<\_ACEOF
12646 #define TM_IN_SYS_TIME 1
12647 _ACEOF
12648
12649 fi
12650
12651 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12652 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12653 if test "${ac_cv_c_const+set}" = set; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656   cat >conftest.$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12658 /* confdefs.h.  */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h.  */
12663
12664 int
12665 main ()
12666 {
12667 /* FIXME: Include the comments suggested by Paul. */
12668 #ifndef __cplusplus
12669   /* Ultrix mips cc rejects this.  */
12670   typedef int charset[2];
12671   const charset x;
12672   /* SunOS 4.1.1 cc rejects this.  */
12673   char const *const *ccp;
12674   char **p;
12675   /* NEC SVR4.0.2 mips cc rejects this.  */
12676   struct point {int x, y;};
12677   static struct point const zero = {0,0};
12678   /* AIX XL C 1.02.0.0 rejects this.
12679      It does not let you subtract one const X* pointer from another in
12680      an arm of an if-expression whose if-part is not a constant
12681      expression */
12682   const char *g = "string";
12683   ccp = &g + (g ? g-g : 0);
12684   /* HPUX 7.0 cc rejects these. */
12685   ++ccp;
12686   p = (char**) ccp;
12687   ccp = (char const *const *) p;
12688   { /* SCO 3.2v4 cc rejects this.  */
12689     char *t;
12690     char const *s = 0 ? (char *) 0 : (char const *) 0;
12691
12692     *t++ = 0;
12693   }
12694   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12695     int x[] = {25, 17};
12696     const int *foo = &x[0];
12697     ++foo;
12698   }
12699   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12700     typedef const int *iptr;
12701     iptr p = 0;
12702     ++p;
12703   }
12704   { /* AIX XL C 1.02.0.0 rejects this saying
12705        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12706     struct s { int j; const int *ap[3]; };
12707     struct s *b; b->j = 5;
12708   }
12709   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12710     const int foo = 10;
12711   }
12712 #endif
12713
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720   (eval $ac_compile) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } &&
12724          { ac_try='test -s conftest.$ac_objext'
12725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726   (eval $ac_try) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; }; then
12730   ac_cv_c_const=yes
12731 else
12732   echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12734
12735 ac_cv_c_const=no
12736 fi
12737 rm -f conftest.$ac_objext conftest.$ac_ext
12738 fi
12739 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12740 echo "${ECHO_T}$ac_cv_c_const" >&6
12741 if test $ac_cv_c_const = no; then
12742
12743 cat >>confdefs.h <<\_ACEOF
12744 #define const
12745 _ACEOF
12746
12747 fi
12748
12749
12750
12751 echo "$as_me:$LINENO: checking for char" >&5
12752 echo $ECHO_N "checking for char... $ECHO_C" >&6
12753 if test "${ac_cv_type_char+set}" = set; then
12754   echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12756   cat >conftest.$ac_ext <<_ACEOF
12757 #line $LINENO "configure"
12758 /* confdefs.h.  */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h.  */
12763 $ac_includes_default
12764 int
12765 main ()
12766 {
12767 if ((char *) 0)
12768   return 0;
12769 if (sizeof (char))
12770   return 0;
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777   (eval $ac_compile) 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); } &&
12781          { ac_try='test -s conftest.$ac_objext'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; }; then
12787   ac_cv_type_char=yes
12788 else
12789   echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_cv_type_char=no
12793 fi
12794 rm -f conftest.$ac_objext conftest.$ac_ext
12795 fi
12796 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12797 echo "${ECHO_T}$ac_cv_type_char" >&6
12798
12799 echo "$as_me:$LINENO: checking size of char" >&5
12800 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12801 if test "${ac_cv_sizeof_char+set}" = set; then
12802   echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804   if test "$ac_cv_type_char" = yes; then
12805   # The cast to unsigned long works around a bug in the HP C Compiler
12806   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12807   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12808   # This bug is HP SR number 8606223364.
12809   if test "$cross_compiling" = yes; then
12810   # Depending upon the size, compute the lo and hi bounds.
12811 cat >conftest.$ac_ext <<_ACEOF
12812 #line $LINENO "configure"
12813 /* confdefs.h.  */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h.  */
12818 $ac_includes_default
12819 int
12820 main ()
12821 {
12822 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12823 test_array [0] = 0
12824
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831   (eval $ac_compile) 2>&5
12832   ac_status=$?
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } &&
12835          { ac_try='test -s conftest.$ac_objext'
12836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837   (eval $ac_try) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); }; }; then
12841   ac_lo=0 ac_mid=0
12842   while :; do
12843     cat >conftest.$ac_ext <<_ACEOF
12844 #line $LINENO "configure"
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 $ac_includes_default
12851 int
12852 main ()
12853 {
12854 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12855 test_array [0] = 0
12856
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12863   (eval $ac_compile) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } &&
12867          { ac_try='test -s conftest.$ac_objext'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   ac_hi=$ac_mid; break
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 ac_lo=`expr $ac_mid + 1`
12879                     if test $ac_lo -le $ac_mid; then
12880                       ac_lo= ac_hi=
12881                       break
12882                     fi
12883                     ac_mid=`expr 2 '*' $ac_mid + 1`
12884 fi
12885 rm -f conftest.$ac_objext conftest.$ac_ext
12886   done
12887 else
12888   echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 cat >conftest.$ac_ext <<_ACEOF
12892 #line $LINENO "configure"
12893 /* confdefs.h.  */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h.  */
12898 $ac_includes_default
12899 int
12900 main ()
12901 {
12902 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12903 test_array [0] = 0
12904
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 rm -f conftest.$ac_objext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911   (eval $ac_compile) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -s conftest.$ac_objext'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   ac_hi=-1 ac_mid=-1
12922   while :; do
12923     cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12925 /* confdefs.h.  */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h.  */
12930 $ac_includes_default
12931 int
12932 main ()
12933 {
12934 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12935 test_array [0] = 0
12936
12937   ;
12938   return 0;
12939 }
12940 _ACEOF
12941 rm -f conftest.$ac_objext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943   (eval $ac_compile) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } &&
12947          { ac_try='test -s conftest.$ac_objext'
12948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949   (eval $ac_try) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ac_lo=$ac_mid; break
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 ac_hi=`expr '(' $ac_mid ')' - 1`
12959                        if test $ac_mid -le $ac_hi; then
12960                          ac_lo= ac_hi=
12961                          break
12962                        fi
12963                        ac_mid=`expr 2 '*' $ac_mid`
12964 fi
12965 rm -f conftest.$ac_objext conftest.$ac_ext
12966   done
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971 ac_lo= ac_hi=
12972 fi
12973 rm -f conftest.$ac_objext conftest.$ac_ext
12974 fi
12975 rm -f conftest.$ac_objext conftest.$ac_ext
12976 # Binary search between lo and hi bounds.
12977 while test "x$ac_lo" != "x$ac_hi"; do
12978   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12979   cat >conftest.$ac_ext <<_ACEOF
12980 #line $LINENO "configure"
12981 /* confdefs.h.  */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h.  */
12986 $ac_includes_default
12987 int
12988 main ()
12989 {
12990 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12991 test_array [0] = 0
12992
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 rm -f conftest.$ac_objext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12999   (eval $ac_compile) 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); } &&
13003          { ac_try='test -s conftest.$ac_objext'
13004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005   (eval $ac_try) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; }; then
13009   ac_hi=$ac_mid
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 ac_lo=`expr '(' $ac_mid ')' + 1`
13015 fi
13016 rm -f conftest.$ac_objext conftest.$ac_ext
13017 done
13018 case $ac_lo in
13019 ?*) ac_cv_sizeof_char=$ac_lo;;
13020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13021 See \`config.log' for more details." >&5
13022 echo "$as_me: error: cannot compute sizeof (char), 77
13023 See \`config.log' for more details." >&2;}
13024    { (exit 1); exit 1; }; } ;;
13025 esac
13026 else
13027   if test "$cross_compiling" = yes; then
13028   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13029 See \`config.log' for more details." >&5
13030 echo "$as_me: error: cannot run test program while cross compiling
13031 See \`config.log' for more details." >&2;}
13032    { (exit 1); exit 1; }; }
13033 else
13034   cat >conftest.$ac_ext <<_ACEOF
13035 #line $LINENO "configure"
13036 /* confdefs.h.  */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h.  */
13041 $ac_includes_default
13042 long longval () { return (long) (sizeof (char)); }
13043 unsigned long ulongval () { return (long) (sizeof (char)); }
13044 #include <stdio.h>
13045 #include <stdlib.h>
13046 int
13047 main ()
13048 {
13049
13050   FILE *f = fopen ("conftest.val", "w");
13051   if (! f)
13052     exit (1);
13053   if (((long) (sizeof (char))) < 0)
13054     {
13055       long i = longval ();
13056       if (i != ((long) (sizeof (char))))
13057         exit (1);
13058       fprintf (f, "%ld\n", i);
13059     }
13060   else
13061     {
13062       unsigned long i = ulongval ();
13063       if (i != ((long) (sizeof (char))))
13064         exit (1);
13065       fprintf (f, "%lu\n", i);
13066     }
13067   exit (ferror (f) || fclose (f) != 0);
13068
13069   ;
13070   return 0;
13071 }
13072 _ACEOF
13073 rm -f conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075   (eval $ac_link) 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_char=`cat conftest.val`
13085 else
13086   echo "$as_me: program exited with status $ac_status" >&5
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 ( exit $ac_status )
13091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13092 See \`config.log' for more details." >&5
13093 echo "$as_me: error: cannot compute sizeof (char), 77
13094 See \`config.log' for more details." >&2;}
13095    { (exit 1); exit 1; }; }
13096 fi
13097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13098 fi
13099 fi
13100 rm -f conftest.val
13101 else
13102   ac_cv_sizeof_char=0
13103 fi
13104 fi
13105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13106 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13107 cat >>confdefs.h <<_ACEOF
13108 #define SIZEOF_CHAR $ac_cv_sizeof_char
13109 _ACEOF
13110
13111
13112 echo "$as_me:$LINENO: checking for short int" >&5
13113 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13114 if test "${ac_cv_type_short_int+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117   cat >conftest.$ac_ext <<_ACEOF
13118 #line $LINENO "configure"
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124 $ac_includes_default
13125 int
13126 main ()
13127 {
13128 if ((short int *) 0)
13129   return 0;
13130 if (sizeof (short int))
13131   return 0;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138   (eval $ac_compile) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -s conftest.$ac_objext'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   ac_cv_type_short_int=yes
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 ac_cv_type_short_int=no
13154 fi
13155 rm -f conftest.$ac_objext conftest.$ac_ext
13156 fi
13157 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13158 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13159
13160 echo "$as_me:$LINENO: checking size of short int" >&5
13161 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13162 if test "${ac_cv_sizeof_short_int+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   if test "$ac_cv_type_short_int" = yes; then
13166   # The cast to unsigned long works around a bug in the HP C Compiler
13167   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13168   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13169   # This bug is HP SR number 8606223364.
13170   if test "$cross_compiling" = yes; then
13171   # Depending upon the size, compute the lo and hi bounds.
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13174 /* confdefs.h.  */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h.  */
13179 $ac_includes_default
13180 int
13181 main ()
13182 {
13183 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13184 test_array [0] = 0
13185
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } &&
13196          { ac_try='test -s conftest.$ac_objext'
13197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198   (eval $ac_try) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; }; then
13202   ac_lo=0 ac_mid=0
13203   while :; do
13204     cat >conftest.$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13206 /* confdefs.h.  */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h.  */
13211 $ac_includes_default
13212 int
13213 main ()
13214 {
13215 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13216 test_array [0] = 0
13217
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 rm -f conftest.$ac_objext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13224   (eval $ac_compile) 2>&5
13225   ac_status=$?
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); } &&
13228          { ac_try='test -s conftest.$ac_objext'
13229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230   (eval $ac_try) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); }; }; then
13234   ac_hi=$ac_mid; break
13235 else
13236   echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13238
13239 ac_lo=`expr $ac_mid + 1`
13240                     if test $ac_lo -le $ac_mid; then
13241                       ac_lo= ac_hi=
13242                       break
13243                     fi
13244                     ac_mid=`expr 2 '*' $ac_mid + 1`
13245 fi
13246 rm -f conftest.$ac_objext conftest.$ac_ext
13247   done
13248 else
13249   echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 cat >conftest.$ac_ext <<_ACEOF
13253 #line $LINENO "configure"
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259 $ac_includes_default
13260 int
13261 main ()
13262 {
13263 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13264 test_array [0] = 0
13265
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272   (eval $ac_compile) 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); } &&
13276          { ac_try='test -s conftest.$ac_objext'
13277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278   (eval $ac_try) 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; }; then
13282   ac_hi=-1 ac_mid=-1
13283   while :; do
13284     cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 $ac_includes_default
13292 int
13293 main ()
13294 {
13295 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13296 test_array [0] = 0
13297
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304   (eval $ac_compile) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -s conftest.$ac_objext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_lo=$ac_mid; break
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_hi=`expr '(' $ac_mid ')' - 1`
13320                        if test $ac_mid -le $ac_hi; then
13321                          ac_lo= ac_hi=
13322                          break
13323                        fi
13324                        ac_mid=`expr 2 '*' $ac_mid`
13325 fi
13326 rm -f conftest.$ac_objext conftest.$ac_ext
13327   done
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_lo= ac_hi=
13333 fi
13334 rm -f conftest.$ac_objext conftest.$ac_ext
13335 fi
13336 rm -f conftest.$ac_objext conftest.$ac_ext
13337 # Binary search between lo and hi bounds.
13338 while test "x$ac_lo" != "x$ac_hi"; do
13339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13340   cat >conftest.$ac_ext <<_ACEOF
13341 #line $LINENO "configure"
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 $ac_includes_default
13348 int
13349 main ()
13350 {
13351 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13352 test_array [0] = 0
13353
13354   ;
13355   return 0;
13356 }
13357 _ACEOF
13358 rm -f conftest.$ac_objext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13360   (eval $ac_compile) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } &&
13364          { ac_try='test -s conftest.$ac_objext'
13365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366   (eval $ac_try) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); }; }; then
13370   ac_hi=$ac_mid
13371 else
13372   echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 ac_lo=`expr '(' $ac_mid ')' + 1`
13376 fi
13377 rm -f conftest.$ac_objext conftest.$ac_ext
13378 done
13379 case $ac_lo in
13380 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13382 See \`config.log' for more details." >&5
13383 echo "$as_me: error: cannot compute sizeof (short int), 77
13384 See \`config.log' for more details." >&2;}
13385    { (exit 1); exit 1; }; } ;;
13386 esac
13387 else
13388   if test "$cross_compiling" = yes; then
13389   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13390 See \`config.log' for more details." >&5
13391 echo "$as_me: error: cannot run test program while cross compiling
13392 See \`config.log' for more details." >&2;}
13393    { (exit 1); exit 1; }; }
13394 else
13395   cat >conftest.$ac_ext <<_ACEOF
13396 #line $LINENO "configure"
13397 /* confdefs.h.  */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h.  */
13402 $ac_includes_default
13403 long longval () { return (long) (sizeof (short int)); }
13404 unsigned long ulongval () { return (long) (sizeof (short int)); }
13405 #include <stdio.h>
13406 #include <stdlib.h>
13407 int
13408 main ()
13409 {
13410
13411   FILE *f = fopen ("conftest.val", "w");
13412   if (! f)
13413     exit (1);
13414   if (((long) (sizeof (short int))) < 0)
13415     {
13416       long i = longval ();
13417       if (i != ((long) (sizeof (short int))))
13418         exit (1);
13419       fprintf (f, "%ld\n", i);
13420     }
13421   else
13422     {
13423       unsigned long i = ulongval ();
13424       if (i != ((long) (sizeof (short int))))
13425         exit (1);
13426       fprintf (f, "%lu\n", i);
13427     }
13428   exit (ferror (f) || fclose (f) != 0);
13429
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest$ac_exeext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13436   (eval $ac_link) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_short_int=`cat conftest.val`
13446 else
13447   echo "$as_me: program exited with status $ac_status" >&5
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 ( exit $ac_status )
13452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13453 See \`config.log' for more details." >&5
13454 echo "$as_me: error: cannot compute sizeof (short int), 77
13455 See \`config.log' for more details." >&2;}
13456    { (exit 1); exit 1; }; }
13457 fi
13458 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13459 fi
13460 fi
13461 rm -f conftest.val
13462 else
13463   ac_cv_sizeof_short_int=0
13464 fi
13465 fi
13466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13467 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13468 cat >>confdefs.h <<_ACEOF
13469 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13470 _ACEOF
13471
13472
13473 echo "$as_me:$LINENO: checking for int" >&5
13474 echo $ECHO_N "checking for int... $ECHO_C" >&6
13475 if test "${ac_cv_type_int+set}" = set; then
13476   echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478   cat >conftest.$ac_ext <<_ACEOF
13479 #line $LINENO "configure"
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485 $ac_includes_default
13486 int
13487 main ()
13488 {
13489 if ((int *) 0)
13490   return 0;
13491 if (sizeof (int))
13492   return 0;
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499   (eval $ac_compile) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } &&
13503          { ac_try='test -s conftest.$ac_objext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_type_int=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_type_int=no
13515 fi
13516 rm -f conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13519 echo "${ECHO_T}$ac_cv_type_int" >&6
13520
13521 echo "$as_me:$LINENO: checking size of int" >&5
13522 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13523 if test "${ac_cv_sizeof_int+set}" = set; then
13524   echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526   if test "$ac_cv_type_int" = yes; then
13527   # The cast to unsigned long works around a bug in the HP C Compiler
13528   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13529   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13530   # This bug is HP SR number 8606223364.
13531   if test "$cross_compiling" = yes; then
13532   # Depending upon the size, compute the lo and hi bounds.
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line $LINENO "configure"
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540 $ac_includes_default
13541 int
13542 main ()
13543 {
13544 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13545 test_array [0] = 0
13546
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13553   (eval $ac_compile) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } &&
13557          { ac_try='test -s conftest.$ac_objext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   ac_lo=0 ac_mid=0
13564   while :; do
13565     cat >conftest.$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13567 /* confdefs.h.  */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h.  */
13572 $ac_includes_default
13573 int
13574 main ()
13575 {
13576 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13577 test_array [0] = 0
13578
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585   (eval $ac_compile) 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); } &&
13589          { ac_try='test -s conftest.$ac_objext'
13590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591   (eval $ac_try) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }; }; then
13595   ac_hi=$ac_mid; break
13596 else
13597   echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_lo=`expr $ac_mid + 1`
13601                     if test $ac_lo -le $ac_mid; then
13602                       ac_lo= ac_hi=
13603                       break
13604                     fi
13605                     ac_mid=`expr 2 '*' $ac_mid + 1`
13606 fi
13607 rm -f conftest.$ac_objext conftest.$ac_ext
13608   done
13609 else
13610   echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 cat >conftest.$ac_ext <<_ACEOF
13614 #line $LINENO "configure"
13615 /* confdefs.h.  */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h.  */
13620 $ac_includes_default
13621 int
13622 main ()
13623 {
13624 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13625 test_array [0] = 0
13626
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633   (eval $ac_compile) 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); } &&
13637          { ac_try='test -s conftest.$ac_objext'
13638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639   (eval $ac_try) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; }; then
13643   ac_hi=-1 ac_mid=-1
13644   while :; do
13645     cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652 $ac_includes_default
13653 int
13654 main ()
13655 {
13656 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13657 test_array [0] = 0
13658
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665   (eval $ac_compile) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -s conftest.$ac_objext'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   ac_lo=$ac_mid; break
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 ac_hi=`expr '(' $ac_mid ')' - 1`
13681                        if test $ac_mid -le $ac_hi; then
13682                          ac_lo= ac_hi=
13683                          break
13684                        fi
13685                        ac_mid=`expr 2 '*' $ac_mid`
13686 fi
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13688   done
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_lo= ac_hi=
13694 fi
13695 rm -f conftest.$ac_objext conftest.$ac_ext
13696 fi
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13698 # Binary search between lo and hi bounds.
13699 while test "x$ac_lo" != "x$ac_hi"; do
13700   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13701   cat >conftest.$ac_ext <<_ACEOF
13702 #line $LINENO "configure"
13703 /* confdefs.h.  */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h.  */
13708 $ac_includes_default
13709 int
13710 main ()
13711 {
13712 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13713 test_array [0] = 0
13714
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721   (eval $ac_compile) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -s conftest.$ac_objext'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   ac_hi=$ac_mid
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_lo=`expr '(' $ac_mid ')' + 1`
13737 fi
13738 rm -f conftest.$ac_objext conftest.$ac_ext
13739 done
13740 case $ac_lo in
13741 ?*) ac_cv_sizeof_int=$ac_lo;;
13742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13743 See \`config.log' for more details." >&5
13744 echo "$as_me: error: cannot compute sizeof (int), 77
13745 See \`config.log' for more details." >&2;}
13746    { (exit 1); exit 1; }; } ;;
13747 esac
13748 else
13749   if test "$cross_compiling" = yes; then
13750   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13751 See \`config.log' for more details." >&5
13752 echo "$as_me: error: cannot run test program while cross compiling
13753 See \`config.log' for more details." >&2;}
13754    { (exit 1); exit 1; }; }
13755 else
13756   cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 $ac_includes_default
13764 long longval () { return (long) (sizeof (int)); }
13765 unsigned long ulongval () { return (long) (sizeof (int)); }
13766 #include <stdio.h>
13767 #include <stdlib.h>
13768 int
13769 main ()
13770 {
13771
13772   FILE *f = fopen ("conftest.val", "w");
13773   if (! f)
13774     exit (1);
13775   if (((long) (sizeof (int))) < 0)
13776     {
13777       long i = longval ();
13778       if (i != ((long) (sizeof (int))))
13779         exit (1);
13780       fprintf (f, "%ld\n", i);
13781     }
13782   else
13783     {
13784       unsigned long i = ulongval ();
13785       if (i != ((long) (sizeof (int))))
13786         exit (1);
13787       fprintf (f, "%lu\n", i);
13788     }
13789   exit (ferror (f) || fclose (f) != 0);
13790
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797   (eval $ac_link) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_int=`cat conftest.val`
13807 else
13808   echo "$as_me: program exited with status $ac_status" >&5
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812 ( exit $ac_status )
13813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13814 See \`config.log' for more details." >&5
13815 echo "$as_me: error: cannot compute sizeof (int), 77
13816 See \`config.log' for more details." >&2;}
13817    { (exit 1); exit 1; }; }
13818 fi
13819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 fi
13822 rm -f conftest.val
13823 else
13824   ac_cv_sizeof_int=0
13825 fi
13826 fi
13827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13828 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13829 cat >>confdefs.h <<_ACEOF
13830 #define SIZEOF_INT $ac_cv_sizeof_int
13831 _ACEOF
13832
13833
13834 echo "$as_me:$LINENO: checking for long int" >&5
13835 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13836 if test "${ac_cv_type_long_int+set}" = set; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847 int
13848 main ()
13849 {
13850 if ((long int *) 0)
13851   return 0;
13852 if (sizeof (long int))
13853   return 0;
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860   (eval $ac_compile) 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); } &&
13864          { ac_try='test -s conftest.$ac_objext'
13865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866   (eval $ac_try) 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); }; }; then
13870   ac_cv_type_long_int=yes
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 ac_cv_type_long_int=no
13876 fi
13877 rm -f conftest.$ac_objext conftest.$ac_ext
13878 fi
13879 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13880 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13881
13882 echo "$as_me:$LINENO: checking size of long int" >&5
13883 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13884 if test "${ac_cv_sizeof_long_int+set}" = set; then
13885   echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887   if test "$ac_cv_type_long_int" = yes; then
13888   # The cast to unsigned long works around a bug in the HP C Compiler
13889   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13890   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13891   # This bug is HP SR number 8606223364.
13892   if test "$cross_compiling" = yes; then
13893   # Depending upon the size, compute the lo and hi bounds.
13894 cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 $ac_includes_default
13902 int
13903 main ()
13904 {
13905 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13906 test_array [0] = 0
13907
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 rm -f conftest.$ac_objext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13914   (eval $ac_compile) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -s conftest.$ac_objext'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924   ac_lo=0 ac_mid=0
13925   while :; do
13926     cat >conftest.$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13928 /* confdefs.h.  */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h.  */
13933 $ac_includes_default
13934 int
13935 main ()
13936 {
13937 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13938 test_array [0] = 0
13939
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 rm -f conftest.$ac_objext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946   (eval $ac_compile) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); } &&
13950          { ac_try='test -s conftest.$ac_objext'
13951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952   (eval $ac_try) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; }; then
13956   ac_hi=$ac_mid; break
13957 else
13958   echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 ac_lo=`expr $ac_mid + 1`
13962                     if test $ac_lo -le $ac_mid; then
13963                       ac_lo= ac_hi=
13964                       break
13965                     fi
13966                     ac_mid=`expr 2 '*' $ac_mid + 1`
13967 fi
13968 rm -f conftest.$ac_objext conftest.$ac_ext
13969   done
13970 else
13971   echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974 cat >conftest.$ac_ext <<_ACEOF
13975 #line $LINENO "configure"
13976 /* confdefs.h.  */
13977 _ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h.  */
13981 $ac_includes_default
13982 int
13983 main ()
13984 {
13985 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13986 test_array [0] = 0
13987
13988   ;
13989   return 0;
13990 }
13991 _ACEOF
13992 rm -f conftest.$ac_objext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994   (eval $ac_compile) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } &&
13998          { ac_try='test -s conftest.$ac_objext'
13999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000   (eval $ac_try) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; }; then
14004   ac_hi=-1 ac_mid=-1
14005   while :; do
14006     cat >conftest.$ac_ext <<_ACEOF
14007 #line $LINENO "configure"
14008 /* confdefs.h.  */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h.  */
14013 $ac_includes_default
14014 int
14015 main ()
14016 {
14017 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14018 test_array [0] = 0
14019
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026   (eval $ac_compile) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -s conftest.$ac_objext'
14031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032   (eval $ac_try) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; }; then
14036   ac_lo=$ac_mid; break
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 ac_hi=`expr '(' $ac_mid ')' - 1`
14042                        if test $ac_mid -le $ac_hi; then
14043                          ac_lo= ac_hi=
14044                          break
14045                        fi
14046                        ac_mid=`expr 2 '*' $ac_mid`
14047 fi
14048 rm -f conftest.$ac_objext conftest.$ac_ext
14049   done
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_lo= ac_hi=
14055 fi
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14057 fi
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14059 # Binary search between lo and hi bounds.
14060 while test "x$ac_lo" != "x$ac_hi"; do
14061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14062   cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069 $ac_includes_default
14070 int
14071 main ()
14072 {
14073 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14074 test_array [0] = 0
14075
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082   (eval $ac_compile) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } &&
14086          { ac_try='test -s conftest.$ac_objext'
14087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088   (eval $ac_try) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092   ac_hi=$ac_mid
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_lo=`expr '(' $ac_mid ')' + 1`
14098 fi
14099 rm -f conftest.$ac_objext conftest.$ac_ext
14100 done
14101 case $ac_lo in
14102 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14104 See \`config.log' for more details." >&5
14105 echo "$as_me: error: cannot compute sizeof (long int), 77
14106 See \`config.log' for more details." >&2;}
14107    { (exit 1); exit 1; }; } ;;
14108 esac
14109 else
14110   if test "$cross_compiling" = yes; then
14111   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14112 See \`config.log' for more details." >&5
14113 echo "$as_me: error: cannot run test program while cross compiling
14114 See \`config.log' for more details." >&2;}
14115    { (exit 1); exit 1; }; }
14116 else
14117   cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124 $ac_includes_default
14125 long longval () { return (long) (sizeof (long int)); }
14126 unsigned long ulongval () { return (long) (sizeof (long int)); }
14127 #include <stdio.h>
14128 #include <stdlib.h>
14129 int
14130 main ()
14131 {
14132
14133   FILE *f = fopen ("conftest.val", "w");
14134   if (! f)
14135     exit (1);
14136   if (((long) (sizeof (long int))) < 0)
14137     {
14138       long i = longval ();
14139       if (i != ((long) (sizeof (long int))))
14140         exit (1);
14141       fprintf (f, "%ld\n", i);
14142     }
14143   else
14144     {
14145       unsigned long i = ulongval ();
14146       if (i != ((long) (sizeof (long int))))
14147         exit (1);
14148       fprintf (f, "%lu\n", i);
14149     }
14150   exit (ferror (f) || fclose (f) != 0);
14151
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158   (eval $ac_link) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_int=`cat conftest.val`
14168 else
14169   echo "$as_me: program exited with status $ac_status" >&5
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 ( exit $ac_status )
14174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14175 See \`config.log' for more details." >&5
14176 echo "$as_me: error: cannot compute sizeof (long int), 77
14177 See \`config.log' for more details." >&2;}
14178    { (exit 1); exit 1; }; }
14179 fi
14180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 fi
14183 rm -f conftest.val
14184 else
14185   ac_cv_sizeof_long_int=0
14186 fi
14187 fi
14188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14189 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14190 cat >>confdefs.h <<_ACEOF
14191 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14192 _ACEOF
14193
14194
14195 echo "$as_me:$LINENO: checking for long long int" >&5
14196 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14197 if test "${ac_cv_type_long_long_int+set}" = set; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   cat >conftest.$ac_ext <<_ACEOF
14201 #line $LINENO "configure"
14202 /* confdefs.h.  */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h.  */
14207 $ac_includes_default
14208 int
14209 main ()
14210 {
14211 if ((long long int *) 0)
14212   return 0;
14213 if (sizeof (long long int))
14214   return 0;
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221   (eval $ac_compile) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -s conftest.$ac_objext'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; }; then
14231   ac_cv_type_long_long_int=yes
14232 else
14233   echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ac_cv_type_long_long_int=no
14237 fi
14238 rm -f conftest.$ac_objext conftest.$ac_ext
14239 fi
14240 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14241 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14242
14243 echo "$as_me:$LINENO: checking size of long long int" >&5
14244 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14245 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   if test "$ac_cv_type_long_long_int" = yes; then
14249   # The cast to unsigned long works around a bug in the HP C Compiler
14250   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14251   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14252   # This bug is HP SR number 8606223364.
14253   if test "$cross_compiling" = yes; then
14254   # Depending upon the size, compute the lo and hi bounds.
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262 $ac_includes_default
14263 int
14264 main ()
14265 {
14266 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14267 test_array [0] = 0
14268
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275   (eval $ac_compile) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } &&
14279          { ac_try='test -s conftest.$ac_objext'
14280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281   (eval $ac_try) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; }; then
14285   ac_lo=0 ac_mid=0
14286   while :; do
14287     cat >conftest.$ac_ext <<_ACEOF
14288 #line $LINENO "configure"
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 $ac_includes_default
14295 int
14296 main ()
14297 {
14298 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14299 test_array [0] = 0
14300
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } &&
14311          { ac_try='test -s conftest.$ac_objext'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; }; then
14317   ac_hi=$ac_mid; break
14318 else
14319   echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 ac_lo=`expr $ac_mid + 1`
14323                     if test $ac_lo -le $ac_mid; then
14324                       ac_lo= ac_hi=
14325                       break
14326                     fi
14327                     ac_mid=`expr 2 '*' $ac_mid + 1`
14328 fi
14329 rm -f conftest.$ac_objext conftest.$ac_ext
14330   done
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 int
14344 main ()
14345 {
14346 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14347 test_array [0] = 0
14348
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355   (eval $ac_compile) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } &&
14359          { ac_try='test -s conftest.$ac_objext'
14360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361   (eval $ac_try) 2>&5
14362   ac_status=$?
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); }; }; then
14365   ac_hi=-1 ac_mid=-1
14366   while :; do
14367     cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14369 /* confdefs.h.  */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h.  */
14374 $ac_includes_default
14375 int
14376 main ()
14377 {
14378 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14379 test_array [0] = 0
14380
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -s conftest.$ac_objext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397   ac_lo=$ac_mid; break
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402 ac_hi=`expr '(' $ac_mid ')' - 1`
14403                        if test $ac_mid -le $ac_hi; then
14404                          ac_lo= ac_hi=
14405                          break
14406                        fi
14407                        ac_mid=`expr 2 '*' $ac_mid`
14408 fi
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14410   done
14411 else
14412   echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ac_lo= ac_hi=
14416 fi
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14418 fi
14419 rm -f conftest.$ac_objext conftest.$ac_ext
14420 # Binary search between lo and hi bounds.
14421 while test "x$ac_lo" != "x$ac_hi"; do
14422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14423   cat >conftest.$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14425 /* confdefs.h.  */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h.  */
14430 $ac_includes_default
14431 int
14432 main ()
14433 {
14434 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14435 test_array [0] = 0
14436
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443   (eval $ac_compile) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   ac_hi=$ac_mid
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_lo=`expr '(' $ac_mid ')' + 1`
14459 fi
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14461 done
14462 case $ac_lo in
14463 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14465 See \`config.log' for more details." >&5
14466 echo "$as_me: error: cannot compute sizeof (long long int), 77
14467 See \`config.log' for more details." >&2;}
14468    { (exit 1); exit 1; }; } ;;
14469 esac
14470 else
14471   if test "$cross_compiling" = yes; then
14472   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14473 See \`config.log' for more details." >&5
14474 echo "$as_me: error: cannot run test program while cross compiling
14475 See \`config.log' for more details." >&2;}
14476    { (exit 1); exit 1; }; }
14477 else
14478   cat >conftest.$ac_ext <<_ACEOF
14479 #line $LINENO "configure"
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 $ac_includes_default
14486 long longval () { return (long) (sizeof (long long int)); }
14487 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14488 #include <stdio.h>
14489 #include <stdlib.h>
14490 int
14491 main ()
14492 {
14493
14494   FILE *f = fopen ("conftest.val", "w");
14495   if (! f)
14496     exit (1);
14497   if (((long) (sizeof (long long int))) < 0)
14498     {
14499       long i = longval ();
14500       if (i != ((long) (sizeof (long long int))))
14501         exit (1);
14502       fprintf (f, "%ld\n", i);
14503     }
14504   else
14505     {
14506       unsigned long i = ulongval ();
14507       if (i != ((long) (sizeof (long long int))))
14508         exit (1);
14509       fprintf (f, "%lu\n", i);
14510     }
14511   exit (ferror (f) || fclose (f) != 0);
14512
14513   ;
14514   return 0;
14515 }
14516 _ACEOF
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519   (eval $ac_link) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_long_long_int=`cat conftest.val`
14529 else
14530   echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534 ( exit $ac_status )
14535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14536 See \`config.log' for more details." >&5
14537 echo "$as_me: error: cannot compute sizeof (long long int), 77
14538 See \`config.log' for more details." >&2;}
14539    { (exit 1); exit 1; }; }
14540 fi
14541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14542 fi
14543 fi
14544 rm -f conftest.val
14545 else
14546   ac_cv_sizeof_long_long_int=0
14547 fi
14548 fi
14549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14550 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14551 cat >>confdefs.h <<_ACEOF
14552 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14553 _ACEOF
14554
14555
14556 echo "$as_me:$LINENO: checking for int *" >&5
14557 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14558 if test "${ac_cv_type_int_p+set}" = set; then
14559   echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561   cat >conftest.$ac_ext <<_ACEOF
14562 #line $LINENO "configure"
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 $ac_includes_default
14569 int
14570 main ()
14571 {
14572 if ((int * *) 0)
14573   return 0;
14574 if (sizeof (int *))
14575   return 0;
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582   (eval $ac_compile) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -s conftest.$ac_objext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   ac_cv_type_int_p=yes
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 ac_cv_type_int_p=no
14598 fi
14599 rm -f conftest.$ac_objext conftest.$ac_ext
14600 fi
14601 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14602 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14603
14604 echo "$as_me:$LINENO: checking size of int *" >&5
14605 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14606 if test "${ac_cv_sizeof_int_p+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609   if test "$ac_cv_type_int_p" = yes; then
14610   # The cast to unsigned long works around a bug in the HP C Compiler
14611   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14612   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14613   # This bug is HP SR number 8606223364.
14614   if test "$cross_compiling" = yes; then
14615   # Depending upon the size, compute the lo and hi bounds.
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 /* confdefs.h.  */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h.  */
14623 $ac_includes_default
14624 int
14625 main ()
14626 {
14627 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14628 test_array [0] = 0
14629
14630   ;
14631   return 0;
14632 }
14633 _ACEOF
14634 rm -f conftest.$ac_objext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636   (eval $ac_compile) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } &&
14640          { ac_try='test -s conftest.$ac_objext'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; }; then
14646   ac_lo=0 ac_mid=0
14647   while :; do
14648     cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 $ac_includes_default
14656 int
14657 main ()
14658 {
14659 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14660 test_array [0] = 0
14661
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_hi=$ac_mid; break
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683 ac_lo=`expr $ac_mid + 1`
14684                     if test $ac_lo -le $ac_mid; then
14685                       ac_lo= ac_hi=
14686                       break
14687                     fi
14688                     ac_mid=`expr 2 '*' $ac_mid + 1`
14689 fi
14690 rm -f conftest.$ac_objext conftest.$ac_ext
14691   done
14692 else
14693   echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696 cat >conftest.$ac_ext <<_ACEOF
14697 #line $LINENO "configure"
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703 $ac_includes_default
14704 int
14705 main ()
14706 {
14707 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14708 test_array [0] = 0
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716   (eval $ac_compile) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); } &&
14720          { ac_try='test -s conftest.$ac_objext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_hi=-1 ac_mid=-1
14727   while :; do
14728     cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 $ac_includes_default
14736 int
14737 main ()
14738 {
14739 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14740 test_array [0] = 0
14741
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748   (eval $ac_compile) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -s conftest.$ac_objext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_lo=$ac_mid; break
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 ac_hi=`expr '(' $ac_mid ')' - 1`
14764                        if test $ac_mid -le $ac_hi; then
14765                          ac_lo= ac_hi=
14766                          break
14767                        fi
14768                        ac_mid=`expr 2 '*' $ac_mid`
14769 fi
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14771   done
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_lo= ac_hi=
14777 fi
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14779 fi
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14781 # Binary search between lo and hi bounds.
14782 while test "x$ac_lo" != "x$ac_hi"; do
14783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14784   cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791 $ac_includes_default
14792 int
14793 main ()
14794 {
14795 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14796 test_array [0] = 0
14797
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804   (eval $ac_compile) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } &&
14808          { ac_try='test -s conftest.$ac_objext'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }; then
14814   ac_hi=$ac_mid
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_lo=`expr '(' $ac_mid ')' + 1`
14820 fi
14821 rm -f conftest.$ac_objext conftest.$ac_ext
14822 done
14823 case $ac_lo in
14824 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14826 See \`config.log' for more details." >&5
14827 echo "$as_me: error: cannot compute sizeof (int *), 77
14828 See \`config.log' for more details." >&2;}
14829    { (exit 1); exit 1; }; } ;;
14830 esac
14831 else
14832   if test "$cross_compiling" = yes; then
14833   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14834 See \`config.log' for more details." >&5
14835 echo "$as_me: error: cannot run test program while cross compiling
14836 See \`config.log' for more details." >&2;}
14837    { (exit 1); exit 1; }; }
14838 else
14839   cat >conftest.$ac_ext <<_ACEOF
14840 #line $LINENO "configure"
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 $ac_includes_default
14847 long longval () { return (long) (sizeof (int *)); }
14848 unsigned long ulongval () { return (long) (sizeof (int *)); }
14849 #include <stdio.h>
14850 #include <stdlib.h>
14851 int
14852 main ()
14853 {
14854
14855   FILE *f = fopen ("conftest.val", "w");
14856   if (! f)
14857     exit (1);
14858   if (((long) (sizeof (int *))) < 0)
14859     {
14860       long i = longval ();
14861       if (i != ((long) (sizeof (int *))))
14862         exit (1);
14863       fprintf (f, "%ld\n", i);
14864     }
14865   else
14866     {
14867       unsigned long i = ulongval ();
14868       if (i != ((long) (sizeof (int *))))
14869         exit (1);
14870       fprintf (f, "%lu\n", i);
14871     }
14872   exit (ferror (f) || fclose (f) != 0);
14873
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest$ac_exeext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14880   (eval $ac_link) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885   (eval $ac_try) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; }; then
14889   ac_cv_sizeof_int_p=`cat conftest.val`
14890 else
14891   echo "$as_me: program exited with status $ac_status" >&5
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14894
14895 ( exit $ac_status )
14896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14897 See \`config.log' for more details." >&5
14898 echo "$as_me: error: cannot compute sizeof (int *), 77
14899 See \`config.log' for more details." >&2;}
14900    { (exit 1); exit 1; }; }
14901 fi
14902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14903 fi
14904 fi
14905 rm -f conftest.val
14906 else
14907   ac_cv_sizeof_int_p=0
14908 fi
14909 fi
14910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14911 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14912 cat >>confdefs.h <<_ACEOF
14913 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14914 _ACEOF
14915
14916
14917
14918 # Check for sys/types.h types
14919 echo "$as_me:$LINENO: checking for u_int type" >&5
14920 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14921 if test "${ac_cv_have_u_int+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924
14925     cat >conftest.$ac_ext <<_ACEOF
14926 #line $LINENO "configure"
14927 /* confdefs.h.  */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h.  */
14932  #include <sys/types.h>
14933 int
14934 main ()
14935 {
14936  u_int a; a = 1;
14937   ;
14938   return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943   (eval $ac_compile) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } &&
14947          { ac_try='test -s conftest.$ac_objext'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; }; then
14953    ac_cv_have_u_int="yes"
14954 else
14955   echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958  ac_cv_have_u_int="no"
14959
14960 fi
14961 rm -f conftest.$ac_objext conftest.$ac_ext
14962
14963 fi
14964 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14965 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14966 if test "x$ac_cv_have_u_int" = "xyes" ; then
14967    cat >>confdefs.h <<\_ACEOF
14968 #define HAVE_U_INT 1
14969 _ACEOF
14970
14971    have_u_int=1
14972 fi
14973
14974 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14975 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14976 if test "${ac_cv_have_intmax_t+set}" = set; then
14977   echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979
14980    cat >conftest.$ac_ext <<_ACEOF
14981 #line $LINENO "configure"
14982 /* confdefs.h.  */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h.  */
14987  #include <sys/types.h>
14988 int
14989 main ()
14990 {
14991  intmax_t a; a = 1;
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998   (eval $ac_compile) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -s conftest.$ac_objext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008    ac_cv_have_intmax_t="yes"
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013
15014          cat >conftest.$ac_ext <<_ACEOF
15015 #line $LINENO "configure"
15016 /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021  #include <stdint.h>
15022 int
15023 main ()
15024 {
15025  intmax_t a; a = 1;
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032   (eval $ac_compile) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } &&
15036          { ac_try='test -s conftest.$ac_objext'
15037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038   (eval $ac_try) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; }; then
15042    ac_cv_have_intmax_t="yes"
15043 else
15044   echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047  ac_cv_have_intmax_t="no"
15048
15049 fi
15050 rm -f conftest.$ac_objext conftest.$ac_ext
15051
15052
15053 fi
15054 rm -f conftest.$ac_objext conftest.$ac_ext
15055
15056
15057 fi
15058 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15059 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15060 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15061    cat >>confdefs.h <<\_ACEOF
15062 #define HAVE_INTMAX_T 1
15063 _ACEOF
15064
15065    have_intmax_t=1
15066 fi
15067
15068
15069 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15070 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15071 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074
15075    cat >conftest.$ac_ext <<_ACEOF
15076 #line $LINENO "configure"
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082  #include <sys/types.h>
15083 int
15084 main ()
15085 {
15086  u_intmax_t a; a = 1;
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093   (eval $ac_compile) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } &&
15097          { ac_try='test -s conftest.$ac_objext'
15098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099   (eval $ac_try) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103    ac_cv_have_u_intmax_t="yes"
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108
15109          cat >conftest.$ac_ext <<_ACEOF
15110 #line $LINENO "configure"
15111 /* confdefs.h.  */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h.  */
15116  #include <stdint.h>
15117 int
15118 main ()
15119 {
15120  u_intmax_t a; a = 1;
15121   ;
15122   return 0;
15123 }
15124 _ACEOF
15125 rm -f conftest.$ac_objext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15127   (eval $ac_compile) 2>&5
15128   ac_status=$?
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); } &&
15131          { ac_try='test -s conftest.$ac_objext'
15132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133   (eval $ac_try) 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; }; then
15137    ac_cv_have_u_intmax_t="yes"
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142  ac_cv_have_u_intmax_t="no"
15143
15144 fi
15145 rm -f conftest.$ac_objext conftest.$ac_ext
15146
15147
15148 fi
15149 rm -f conftest.$ac_objext conftest.$ac_ext
15150
15151 fi
15152 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15153 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15154 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15155    cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_U_INTMAX_T 1
15157 _ACEOF
15158
15159    have_u_intmax_t=1
15160 fi
15161
15162
15163 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15164 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15165 if test "${ac_cv_have_intxx_t+set}" = set; then
15166   echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168
15169    cat >conftest.$ac_ext <<_ACEOF
15170 #line $LINENO "configure"
15171 /* confdefs.h.  */
15172 _ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h.  */
15176  #include <sys/types.h>
15177 int
15178 main ()
15179 {
15180  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15181   ;
15182   return 0;
15183 }
15184 _ACEOF
15185 rm -f conftest.$ac_objext
15186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15187   (eval $ac_compile) 2>&5
15188   ac_status=$?
15189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190   (exit $ac_status); } &&
15191          { ac_try='test -s conftest.$ac_objext'
15192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193   (eval $ac_try) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; }; then
15197    ac_cv_have_intxx_t="yes"
15198 else
15199   echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202  ac_cv_have_intxx_t="no"
15203
15204 fi
15205 rm -f conftest.$ac_objext conftest.$ac_ext
15206
15207 fi
15208 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15209 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15210 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15211    cat >>confdefs.h <<\_ACEOF
15212 #define HAVE_INTXX_T 1
15213 _ACEOF
15214
15215    have_intxx_t=1
15216 fi
15217
15218 echo "$as_me:$LINENO: checking for int64_t type" >&5
15219 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15220 if test "${ac_cv_have_int64_t+set}" = set; then
15221   echo $ECHO_N "(cached) $ECHO_C" >&6
15222 else
15223
15224    cat >conftest.$ac_ext <<_ACEOF
15225 #line $LINENO "configure"
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231  #include <sys/types.h>
15232 int
15233 main ()
15234 {
15235  int64_t a; a = 1;
15236   ;
15237   return 0;
15238 }
15239 _ACEOF
15240 rm -f conftest.$ac_objext
15241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15242   (eval $ac_compile) 2>&5
15243   ac_status=$?
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); } &&
15246          { ac_try='test -s conftest.$ac_objext'
15247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248   (eval $ac_try) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; }; then
15252    ac_cv_have_int64_t="yes"
15253 else
15254   echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15256
15257  ac_cv_have_int64_t="no"
15258
15259 fi
15260 rm -f conftest.$ac_objext conftest.$ac_ext
15261
15262 fi
15263 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15264 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15265 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15266    cat >>confdefs.h <<\_ACEOF
15267 #define HAVE_INT64_T 1
15268 _ACEOF
15269
15270    have_int64_t=1
15271 fi
15272
15273 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15274 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15275 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278
15279    cat >conftest.$ac_ext <<_ACEOF
15280 #line $LINENO "configure"
15281 /* confdefs.h.  */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h.  */
15286  #include <sys/types.h>
15287 int
15288 main ()
15289 {
15290  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297   (eval $ac_compile) 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); } &&
15301          { ac_try='test -s conftest.$ac_objext'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; }; then
15307    ac_cv_have_u_intxx_t="yes"
15308 else
15309   echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15311
15312  ac_cv_have_u_intxx_t="no"
15313
15314 fi
15315 rm -f conftest.$ac_objext conftest.$ac_ext
15316
15317 fi
15318 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15319 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15320 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15321    cat >>confdefs.h <<\_ACEOF
15322 #define HAVE_U_INTXX_T 1
15323 _ACEOF
15324
15325    have_u_intxx_t=1
15326 fi
15327
15328 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15329 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15330 if test "${ac_cv_have_u_int64_t+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333
15334    cat >conftest.$ac_ext <<_ACEOF
15335 #line $LINENO "configure"
15336 /* confdefs.h.  */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h.  */
15341  #include <sys/types.h>
15342 int
15343 main ()
15344 {
15345  u_int64_t a; a = 1;
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.$ac_objext
15351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352   (eval $ac_compile) 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); } &&
15356          { ac_try='test -s conftest.$ac_objext'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; }; then
15362    ac_cv_have_u_int64_t="yes"
15363 else
15364   echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367  ac_cv_have_u_int64_t="no"
15368
15369 fi
15370 rm -f conftest.$ac_objext conftest.$ac_ext
15371
15372 fi
15373 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15374 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15375 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15376    cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_U_INT64_T 1
15378 _ACEOF
15379
15380    have_u_int64_t=1
15381 fi
15382
15383 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15384            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15385 then
15386    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15387 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15388    cat >conftest.$ac_ext <<_ACEOF
15389 #line $LINENO "configure"
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395  #include <sys/bitypes.h>
15396 int
15397 main ()
15398 {
15399  int8_t a; int16_t b; int32_t c;
15400         u_int8_t e; u_int16_t f; u_int32_t g;
15401         a = b = c = e = f = g = 1;
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 rm -f conftest.$ac_objext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15408   (eval $ac_compile) 2>&5
15409   ac_status=$?
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); } &&
15412          { ac_try='test -s conftest.$ac_objext'
15413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414   (eval $ac_try) 2>&5
15415   ac_status=$?
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); }; }; then
15418    cat >>confdefs.h <<\_ACEOF
15419 #define HAVE_U_INTXX_T 1
15420 _ACEOF
15421
15422         cat >>confdefs.h <<\_ACEOF
15423 #define HAVE_INTXX_T 1
15424 _ACEOF
15425
15426         cat >>confdefs.h <<\_ACEOF
15427 #define HAVE_SYS_BITYPES_H 1
15428 _ACEOF
15429
15430         echo "$as_me:$LINENO: result: yes" >&5
15431 echo "${ECHO_T}yes" >&6
15432 else
15433   echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436  echo "$as_me:$LINENO: result: no" >&5
15437 echo "${ECHO_T}no" >&6
15438
15439 fi
15440 rm -f conftest.$ac_objext conftest.$ac_ext
15441 fi
15442
15443 if test -z "$have_u_intxx_t" ; then
15444    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15445 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15446 if test "${ac_cv_have_uintxx_t+set}" = set; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449
15450       cat >conftest.$ac_ext <<_ACEOF
15451 #line $LINENO "configure"
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457  #include <sys/types.h>
15458 int
15459 main ()
15460 {
15461  uint8_t a; uint16_t b;
15462            uint32_t c; a = b = c = 1;
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469   (eval $ac_compile) 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -s conftest.$ac_objext'
15474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475   (eval $ac_try) 2>&5
15476   ac_status=$?
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); }; }; then
15479    ac_cv_have_uintxx_t="yes"
15480 else
15481   echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15483
15484  ac_cv_have_uintxx_t="no"
15485
15486 fi
15487 rm -f conftest.$ac_objext conftest.$ac_ext
15488
15489 fi
15490 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15491 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15492    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15493       cat >>confdefs.h <<\_ACEOF
15494 #define HAVE_UINTXX_T 1
15495 _ACEOF
15496
15497    fi
15498 fi
15499
15500 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15501           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15502 then
15503    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15504 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15505    cat >conftest.$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15507 /* confdefs.h.  */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h.  */
15512  #include <sys/bitypes.h>
15513 int
15514 main ()
15515 {
15516  int64_t a; u_int64_t b;
15517        a = b = 1;
15518   ;
15519   return 0;
15520 }
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524   (eval $ac_compile) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534    cat >>confdefs.h <<\_ACEOF
15535 #define HAVE_U_INT64_T 1
15536 _ACEOF
15537
15538        cat >>confdefs.h <<\_ACEOF
15539 #define HAVE_INT64_T 1
15540 _ACEOF
15541
15542        echo "$as_me:$LINENO: result: yes" >&5
15543 echo "${ECHO_T}yes" >&6
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548  echo "$as_me:$LINENO: result: no" >&5
15549 echo "${ECHO_T}no" >&6
15550
15551 fi
15552 rm -f conftest.$ac_objext conftest.$ac_ext
15553 fi
15554
15555 if (test -z "$have_uintxx_t" && \
15556           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15557 then
15558    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15559 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15560    cat >conftest.$ac_ext <<_ACEOF
15561 #line $LINENO "configure"
15562 /* confdefs.h.  */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h.  */
15567  #include <sys/bitypes.h>
15568 int
15569 main ()
15570 {
15571  uint8_t a; uint16_t b;
15572           uint32_t c; a = b = c = 1;
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579   (eval $ac_compile) 2>&5
15580   ac_status=$?
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } &&
15583          { ac_try='test -s conftest.$ac_objext'
15584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585   (eval $ac_try) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589    cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_UINTXX_T 1
15591 _ACEOF
15592
15593        echo "$as_me:$LINENO: result: yes" >&5
15594 echo "${ECHO_T}yes" >&6
15595 else
15596   echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599  echo "$as_me:$LINENO: result: no" >&5
15600 echo "${ECHO_T}no" >&6
15601
15602 fi
15603 rm -f conftest.$ac_objext conftest.$ac_ext
15604
15605 fi
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623 for ac_func in \
15624         fork \
15625         getcwd \
15626         gethostname \
15627         getpid \
15628         gettimeofday \
15629         setpgid \
15630         setpgrp \
15631         setsid \
15632         signal \
15633         strerror \
15634         strncmp \
15635         strncpy \
15636         vfprintf \
15637
15638 do
15639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15640 echo "$as_me:$LINENO: checking for $ac_func" >&5
15641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15642 if eval "test \"\${$as_ac_var+set}\" = set"; then
15643   echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645   cat >conftest.$ac_ext <<_ACEOF
15646 #line $LINENO "configure"
15647 /* confdefs.h.  */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h.  */
15652 /* System header to define __stub macros and hopefully few prototypes,
15653     which can conflict with char $ac_func (); below.
15654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15655     <limits.h> exists even on freestanding compilers.  */
15656 #ifdef __STDC__
15657 # include <limits.h>
15658 #else
15659 # include <assert.h>
15660 #endif
15661 /* Override any gcc2 internal prototype to avoid an error.  */
15662 #ifdef __cplusplus
15663 extern "C"
15664 {
15665 #endif
15666 /* We use char because int might match the return type of a gcc2
15667    builtin and then its argument prototype would still apply.  */
15668 char $ac_func ();
15669 /* The GNU C library defines this for functions which it implements
15670     to always fail with ENOSYS.  Some functions are actually named
15671     something starting with __ and the normal name is an alias.  */
15672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15673 choke me
15674 #else
15675 char (*f) () = $ac_func;
15676 #endif
15677 #ifdef __cplusplus
15678 }
15679 #endif
15680
15681 int
15682 main ()
15683 {
15684 return f != $ac_func;
15685   ;
15686   return 0;
15687 }
15688 _ACEOF
15689 rm -f conftest.$ac_objext conftest$ac_exeext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691   (eval $ac_link) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } &&
15695          { ac_try='test -s conftest$ac_exeext'
15696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697   (eval $ac_try) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); }; }; then
15701   eval "$as_ac_var=yes"
15702 else
15703   echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 eval "$as_ac_var=no"
15707 fi
15708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15709 fi
15710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15712 if test `eval echo '${'$as_ac_var'}'` = yes; then
15713   cat >>confdefs.h <<_ACEOF
15714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15715 _ACEOF
15716
15717 else
15718   echo 'configure: cannot find needed function.'; exit 1
15719
15720 fi
15721 done
15722
15723
15724
15725 for ac_func in fchdir
15726 do
15727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15728 echo "$as_me:$LINENO: checking for $ac_func" >&5
15729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15730 if eval "test \"\${$as_ac_var+set}\" = set"; then
15731   echo $ECHO_N "(cached) $ECHO_C" >&6
15732 else
15733   cat >conftest.$ac_ext <<_ACEOF
15734 #line $LINENO "configure"
15735 /* confdefs.h.  */
15736 _ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h.  */
15740 /* System header to define __stub macros and hopefully few prototypes,
15741     which can conflict with char $ac_func (); below.
15742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15743     <limits.h> exists even on freestanding compilers.  */
15744 #ifdef __STDC__
15745 # include <limits.h>
15746 #else
15747 # include <assert.h>
15748 #endif
15749 /* Override any gcc2 internal prototype to avoid an error.  */
15750 #ifdef __cplusplus
15751 extern "C"
15752 {
15753 #endif
15754 /* We use char because int might match the return type of a gcc2
15755    builtin and then its argument prototype would still apply.  */
15756 char $ac_func ();
15757 /* The GNU C library defines this for functions which it implements
15758     to always fail with ENOSYS.  Some functions are actually named
15759     something starting with __ and the normal name is an alias.  */
15760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15761 choke me
15762 #else
15763 char (*f) () = $ac_func;
15764 #endif
15765 #ifdef __cplusplus
15766 }
15767 #endif
15768
15769 int
15770 main ()
15771 {
15772 return f != $ac_func;
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15779   (eval $ac_link) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } &&
15783          { ac_try='test -s conftest$ac_exeext'
15784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785   (eval $ac_try) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789   eval "$as_ac_var=yes"
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 eval "$as_ac_var=no"
15795 fi
15796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15797 fi
15798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801   cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15803 _ACEOF
15804  cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_FCHDIR 1
15806 _ACEOF
15807
15808 fi
15809 done
15810
15811
15812 for ac_func in strtoll
15813 do
15814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15815 echo "$as_me:$LINENO: checking for $ac_func" >&5
15816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15817 if eval "test \"\${$as_ac_var+set}\" = set"; then
15818   echo $ECHO_N "(cached) $ECHO_C" >&6
15819 else
15820   cat >conftest.$ac_ext <<_ACEOF
15821 #line $LINENO "configure"
15822 /* confdefs.h.  */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h.  */
15827 /* System header to define __stub macros and hopefully few prototypes,
15828     which can conflict with char $ac_func (); below.
15829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15830     <limits.h> exists even on freestanding compilers.  */
15831 #ifdef __STDC__
15832 # include <limits.h>
15833 #else
15834 # include <assert.h>
15835 #endif
15836 /* Override any gcc2 internal prototype to avoid an error.  */
15837 #ifdef __cplusplus
15838 extern "C"
15839 {
15840 #endif
15841 /* We use char because int might match the return type of a gcc2
15842    builtin and then its argument prototype would still apply.  */
15843 char $ac_func ();
15844 /* The GNU C library defines this for functions which it implements
15845     to always fail with ENOSYS.  Some functions are actually named
15846     something starting with __ and the normal name is an alias.  */
15847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15848 choke me
15849 #else
15850 char (*f) () = $ac_func;
15851 #endif
15852 #ifdef __cplusplus
15853 }
15854 #endif
15855
15856 int
15857 main ()
15858 {
15859 return f != $ac_func;
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest.$ac_objext conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866   (eval $ac_link) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -s conftest$ac_exeext'
15871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872   (eval $ac_try) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; }; then
15876   eval "$as_ac_var=yes"
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 eval "$as_ac_var=no"
15882 fi
15883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15884 fi
15885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15887 if test `eval echo '${'$as_ac_var'}'` = yes; then
15888   cat >>confdefs.h <<_ACEOF
15889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15890 _ACEOF
15891  cat >>confdefs.h <<\_ACEOF
15892 #define HAVE_STRTOLL 1
15893 _ACEOF
15894
15895 fi
15896 done
15897
15898
15899
15900 for ac_func in chflags
15901 do
15902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15903 echo "$as_me:$LINENO: checking for $ac_func" >&5
15904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15905 if eval "test \"\${$as_ac_var+set}\" = set"; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   cat >conftest.$ac_ext <<_ACEOF
15909 #line $LINENO "configure"
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915 /* System header to define __stub macros and hopefully few prototypes,
15916     which can conflict with char $ac_func (); below.
15917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918     <limits.h> exists even on freestanding compilers.  */
15919 #ifdef __STDC__
15920 # include <limits.h>
15921 #else
15922 # include <assert.h>
15923 #endif
15924 /* Override any gcc2 internal prototype to avoid an error.  */
15925 #ifdef __cplusplus
15926 extern "C"
15927 {
15928 #endif
15929 /* We use char because int might match the return type of a gcc2
15930    builtin and then its argument prototype would still apply.  */
15931 char $ac_func ();
15932 /* The GNU C library defines this for functions which it implements
15933     to always fail with ENOSYS.  Some functions are actually named
15934     something starting with __ and the normal name is an alias.  */
15935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15936 choke me
15937 #else
15938 char (*f) () = $ac_func;
15939 #endif
15940 #ifdef __cplusplus
15941 }
15942 #endif
15943
15944 int
15945 main ()
15946 {
15947 return f != $ac_func;
15948   ;
15949   return 0;
15950 }
15951 _ACEOF
15952 rm -f conftest.$ac_objext conftest$ac_exeext
15953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15954   (eval $ac_link) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -s conftest$ac_exeext'
15959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960   (eval $ac_try) 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; }; then
15964   eval "$as_ac_var=yes"
15965 else
15966   echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 eval "$as_ac_var=no"
15970 fi
15971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15972 fi
15973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15975 if test `eval echo '${'$as_ac_var'}'` = yes; then
15976   cat >>confdefs.h <<_ACEOF
15977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15978 _ACEOF
15979
15980 fi
15981 done
15982
15983
15984
15985
15986
15987
15988 for ac_func in snprintf vsnprintf gethostid getdomainname
15989 do
15990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15991 echo "$as_me:$LINENO: checking for $ac_func" >&5
15992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15993 if eval "test \"\${$as_ac_var+set}\" = set"; then
15994   echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996   cat >conftest.$ac_ext <<_ACEOF
15997 #line $LINENO "configure"
15998 /* confdefs.h.  */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h.  */
16003 /* System header to define __stub macros and hopefully few prototypes,
16004     which can conflict with char $ac_func (); below.
16005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16006     <limits.h> exists even on freestanding compilers.  */
16007 #ifdef __STDC__
16008 # include <limits.h>
16009 #else
16010 # include <assert.h>
16011 #endif
16012 /* Override any gcc2 internal prototype to avoid an error.  */
16013 #ifdef __cplusplus
16014 extern "C"
16015 {
16016 #endif
16017 /* We use char because int might match the return type of a gcc2
16018    builtin and then its argument prototype would still apply.  */
16019 char $ac_func ();
16020 /* The GNU C library defines this for functions which it implements
16021     to always fail with ENOSYS.  Some functions are actually named
16022     something starting with __ and the normal name is an alias.  */
16023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16024 choke me
16025 #else
16026 char (*f) () = $ac_func;
16027 #endif
16028 #ifdef __cplusplus
16029 }
16030 #endif
16031
16032 int
16033 main ()
16034 {
16035 return f != $ac_func;
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16042   (eval $ac_link) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } &&
16046          { ac_try='test -s conftest$ac_exeext'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052   eval "$as_ac_var=yes"
16053 else
16054   echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 eval "$as_ac_var=no"
16058 fi
16059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16060 fi
16061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16063 if test `eval echo '${'$as_ac_var'}'` = yes; then
16064   cat >>confdefs.h <<_ACEOF
16065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16066 _ACEOF
16067
16068 fi
16069 done
16070
16071
16072
16073
16074
16075
16076 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16077 do
16078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16079 echo "$as_me:$LINENO: checking for $ac_func" >&5
16080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16081 if eval "test \"\${$as_ac_var+set}\" = set"; then
16082   echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084   cat >conftest.$ac_ext <<_ACEOF
16085 #line $LINENO "configure"
16086 /* confdefs.h.  */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h.  */
16091 /* System header to define __stub macros and hopefully few prototypes,
16092     which can conflict with char $ac_func (); below.
16093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16094     <limits.h> exists even on freestanding compilers.  */
16095 #ifdef __STDC__
16096 # include <limits.h>
16097 #else
16098 # include <assert.h>
16099 #endif
16100 /* Override any gcc2 internal prototype to avoid an error.  */
16101 #ifdef __cplusplus
16102 extern "C"
16103 {
16104 #endif
16105 /* We use char because int might match the return type of a gcc2
16106    builtin and then its argument prototype would still apply.  */
16107 char $ac_func ();
16108 /* The GNU C library defines this for functions which it implements
16109     to always fail with ENOSYS.  Some functions are actually named
16110     something starting with __ and the normal name is an alias.  */
16111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16112 choke me
16113 #else
16114 char (*f) () = $ac_func;
16115 #endif
16116 #ifdef __cplusplus
16117 }
16118 #endif
16119
16120 int
16121 main ()
16122 {
16123 return f != $ac_func;
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest.$ac_objext conftest$ac_exeext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16130   (eval $ac_link) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } &&
16134          { ac_try='test -s conftest$ac_exeext'
16135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136   (eval $ac_try) 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; }; then
16140   eval "$as_ac_var=yes"
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 eval "$as_ac_var=no"
16146 fi
16147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16148 fi
16149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16151 if test `eval echo '${'$as_ac_var'}'` = yes; then
16152   cat >>confdefs.h <<_ACEOF
16153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16154 _ACEOF
16155
16156 fi
16157 done
16158
16159
16160 # If resolver functions are not in libc check for -lnsl or -lresolv.
16161 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16162 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16163 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   cat >conftest.$ac_ext <<_ACEOF
16167 #line $LINENO "configure"
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173 /* System header to define __stub macros and hopefully few prototypes,
16174     which can conflict with char gethostbyname_r (); below.
16175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16176     <limits.h> exists even on freestanding compilers.  */
16177 #ifdef __STDC__
16178 # include <limits.h>
16179 #else
16180 # include <assert.h>
16181 #endif
16182 /* Override any gcc2 internal prototype to avoid an error.  */
16183 #ifdef __cplusplus
16184 extern "C"
16185 {
16186 #endif
16187 /* We use char because int might match the return type of a gcc2
16188    builtin and then its argument prototype would still apply.  */
16189 char gethostbyname_r ();
16190 /* The GNU C library defines this for functions which it implements
16191     to always fail with ENOSYS.  Some functions are actually named
16192     something starting with __ and the normal name is an alias.  */
16193 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16194 choke me
16195 #else
16196 char (*f) () = gethostbyname_r;
16197 #endif
16198 #ifdef __cplusplus
16199 }
16200 #endif
16201
16202 int
16203 main ()
16204 {
16205 return f != gethostbyname_r;
16206   ;
16207   return 0;
16208 }
16209 _ACEOF
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16212   (eval $ac_link) 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } &&
16216          { ac_try='test -s conftest$ac_exeext'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; }; then
16222   ac_cv_func_gethostbyname_r=yes
16223 else
16224   echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ac_cv_func_gethostbyname_r=no
16228 fi
16229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16230 fi
16231 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16232 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16233 if test $ac_cv_func_gethostbyname_r = yes; then
16234   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16235 echo "${ECHO_T}using libc's resolver" >&6
16236 else
16237
16238 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16239 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16240 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16241   echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243   ac_check_lib_save_LIBS=$LIBS
16244 LIBS="-lnsl  $LIBS"
16245 cat >conftest.$ac_ext <<_ACEOF
16246 #line $LINENO "configure"
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252
16253 /* Override any gcc2 internal prototype to avoid an error.  */
16254 #ifdef __cplusplus
16255 extern "C"
16256 #endif
16257 /* We use char because int might match the return type of a gcc2
16258    builtin and then its argument prototype would still apply.  */
16259 char gethostbyname_r ();
16260 int
16261 main ()
16262 {
16263 gethostbyname_r ();
16264   ;
16265   return 0;
16266 }
16267 _ACEOF
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16270   (eval $ac_link) 2>&5
16271   ac_status=$?
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } &&
16274          { ac_try='test -s conftest$ac_exeext'
16275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276   (eval $ac_try) 2>&5
16277   ac_status=$?
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); }; }; then
16280   ac_cv_lib_nsl_gethostbyname_r=yes
16281 else
16282   echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285 ac_cv_lib_nsl_gethostbyname_r=no
16286 fi
16287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16288 LIBS=$ac_check_lib_save_LIBS
16289 fi
16290 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16291 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16292 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16293   cat >>confdefs.h <<_ACEOF
16294 #define HAVE_LIBNSL 1
16295 _ACEOF
16296
16297   LIBS="-lnsl $LIBS"
16298
16299 fi
16300
16301
16302 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16303 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16304 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16305   echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307   ac_check_lib_save_LIBS=$LIBS
16308 LIBS="-lresolv  $LIBS"
16309 cat >conftest.$ac_ext <<_ACEOF
16310 #line $LINENO "configure"
16311 /* confdefs.h.  */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h.  */
16316
16317 /* Override any gcc2 internal prototype to avoid an error.  */
16318 #ifdef __cplusplus
16319 extern "C"
16320 #endif
16321 /* We use char because int might match the return type of a gcc2
16322    builtin and then its argument prototype would still apply.  */
16323 char gethostbyname_r ();
16324 int
16325 main ()
16326 {
16327 gethostbyname_r ();
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 rm -f conftest.$ac_objext conftest$ac_exeext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16334   (eval $ac_link) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); } &&
16338          { ac_try='test -s conftest$ac_exeext'
16339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340   (eval $ac_try) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; }; then
16344   ac_cv_lib_resolv_gethostbyname_r=yes
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349 ac_cv_lib_resolv_gethostbyname_r=no
16350 fi
16351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16353 fi
16354 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16355 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16356 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16357   cat >>confdefs.h <<_ACEOF
16358 #define HAVE_LIBRESOLV 1
16359 _ACEOF
16360
16361   LIBS="-lresolv $LIBS"
16362
16363 fi
16364
16365 fi
16366
16367
16368
16369 # Find where sockets are (especially for Solaris)
16370 echo "$as_me:$LINENO: checking for socket" >&5
16371 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16372 if test "${ac_cv_func_socket+set}" = set; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375   cat >conftest.$ac_ext <<_ACEOF
16376 #line $LINENO "configure"
16377 /* confdefs.h.  */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h.  */
16382 /* System header to define __stub macros and hopefully few prototypes,
16383     which can conflict with char socket (); below.
16384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16385     <limits.h> exists even on freestanding compilers.  */
16386 #ifdef __STDC__
16387 # include <limits.h>
16388 #else
16389 # include <assert.h>
16390 #endif
16391 /* Override any gcc2 internal prototype to avoid an error.  */
16392 #ifdef __cplusplus
16393 extern "C"
16394 {
16395 #endif
16396 /* We use char because int might match the return type of a gcc2
16397    builtin and then its argument prototype would still apply.  */
16398 char socket ();
16399 /* The GNU C library defines this for functions which it implements
16400     to always fail with ENOSYS.  Some functions are actually named
16401     something starting with __ and the normal name is an alias.  */
16402 #if defined (__stub_socket) || defined (__stub___socket)
16403 choke me
16404 #else
16405 char (*f) () = socket;
16406 #endif
16407 #ifdef __cplusplus
16408 }
16409 #endif
16410
16411 int
16412 main ()
16413 {
16414 return f != socket;
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 rm -f conftest.$ac_objext conftest$ac_exeext
16420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16421   (eval $ac_link) 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -s conftest$ac_exeext'
16426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427   (eval $ac_try) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; }; then
16431   ac_cv_func_socket=yes
16432 else
16433   echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 ac_cv_func_socket=no
16437 fi
16438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16439 fi
16440 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16441 echo "${ECHO_T}$ac_cv_func_socket" >&6
16442 if test $ac_cv_func_socket = yes; then
16443   echo "$as_me:$LINENO: result: using libc's socket" >&5
16444 echo "${ECHO_T}using libc's socket" >&6
16445 else
16446
16447 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16448 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16449 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16450   echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452   ac_check_lib_save_LIBS=$LIBS
16453 LIBS="-lxnet  $LIBS"
16454 cat >conftest.$ac_ext <<_ACEOF
16455 #line $LINENO "configure"
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461
16462 /* Override any gcc2 internal prototype to avoid an error.  */
16463 #ifdef __cplusplus
16464 extern "C"
16465 #endif
16466 /* We use char because int might match the return type of a gcc2
16467    builtin and then its argument prototype would still apply.  */
16468 char socket ();
16469 int
16470 main ()
16471 {
16472 socket ();
16473   ;
16474   return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16479   (eval $ac_link) 2>&5
16480   ac_status=$?
16481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482   (exit $ac_status); } &&
16483          { ac_try='test -s conftest$ac_exeext'
16484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485   (eval $ac_try) 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); }; }; then
16489   ac_cv_lib_xnet_socket=yes
16490 else
16491   echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16493
16494 ac_cv_lib_xnet_socket=no
16495 fi
16496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16497 LIBS=$ac_check_lib_save_LIBS
16498 fi
16499 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16500 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16501 if test $ac_cv_lib_xnet_socket = yes; then
16502   cat >>confdefs.h <<_ACEOF
16503 #define HAVE_LIBXNET 1
16504 _ACEOF
16505
16506   LIBS="-lxnet $LIBS"
16507
16508 fi
16509
16510
16511 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16512 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16513 if test "${ac_cv_lib_socket_socket+set}" = set; then
16514   echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516   ac_check_lib_save_LIBS=$LIBS
16517 LIBS="-lsocket  $LIBS"
16518 cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525
16526 /* Override any gcc2 internal prototype to avoid an error.  */
16527 #ifdef __cplusplus
16528 extern "C"
16529 #endif
16530 /* We use char because int might match the return type of a gcc2
16531    builtin and then its argument prototype would still apply.  */
16532 char socket ();
16533 int
16534 main ()
16535 {
16536 socket ();
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext conftest$ac_exeext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16543   (eval $ac_link) 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); } &&
16547          { ac_try='test -s conftest$ac_exeext'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_lib_socket_socket=yes
16554 else
16555   echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16557
16558 ac_cv_lib_socket_socket=no
16559 fi
16560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16561 LIBS=$ac_check_lib_save_LIBS
16562 fi
16563 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16564 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16565 if test $ac_cv_lib_socket_socket = yes; then
16566   cat >>confdefs.h <<_ACEOF
16567 #define HAVE_LIBSOCKET 1
16568 _ACEOF
16569
16570   LIBS="-lsocket $LIBS"
16571
16572 fi
16573
16574
16575 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16576 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16577 if test "${ac_cv_lib_inet_socket+set}" = set; then
16578   echo $ECHO_N "(cached) $ECHO_C" >&6
16579 else
16580   ac_check_lib_save_LIBS=$LIBS
16581 LIBS="-linet  $LIBS"
16582 cat >conftest.$ac_ext <<_ACEOF
16583 #line $LINENO "configure"
16584 /* confdefs.h.  */
16585 _ACEOF
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h.  */
16589
16590 /* Override any gcc2 internal prototype to avoid an error.  */
16591 #ifdef __cplusplus
16592 extern "C"
16593 #endif
16594 /* We use char because int might match the return type of a gcc2
16595    builtin and then its argument prototype would still apply.  */
16596 char socket ();
16597 int
16598 main ()
16599 {
16600 socket ();
16601   ;
16602   return 0;
16603 }
16604 _ACEOF
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16607   (eval $ac_link) 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); } &&
16611          { ac_try='test -s conftest$ac_exeext'
16612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613   (eval $ac_try) 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; }; then
16617   ac_cv_lib_inet_socket=yes
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622 ac_cv_lib_inet_socket=no
16623 fi
16624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16625 LIBS=$ac_check_lib_save_LIBS
16626 fi
16627 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16628 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16629 if test $ac_cv_lib_inet_socket = yes; then
16630   cat >>confdefs.h <<_ACEOF
16631 #define HAVE_LIBINET 1
16632 _ACEOF
16633
16634   LIBS="-linet $LIBS"
16635
16636 fi
16637
16638 fi
16639
16640
16641
16642 for ac_func in inet_pton
16643 do
16644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16645 echo "$as_me:$LINENO: checking for $ac_func" >&5
16646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16647 if eval "test \"\${$as_ac_var+set}\" = set"; then
16648   echo $ECHO_N "(cached) $ECHO_C" >&6
16649 else
16650   cat >conftest.$ac_ext <<_ACEOF
16651 #line $LINENO "configure"
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 /* System header to define __stub macros and hopefully few prototypes,
16658     which can conflict with char $ac_func (); below.
16659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660     <limits.h> exists even on freestanding compilers.  */
16661 #ifdef __STDC__
16662 # include <limits.h>
16663 #else
16664 # include <assert.h>
16665 #endif
16666 /* Override any gcc2 internal prototype to avoid an error.  */
16667 #ifdef __cplusplus
16668 extern "C"
16669 {
16670 #endif
16671 /* We use char because int might match the return type of a gcc2
16672    builtin and then its argument prototype would still apply.  */
16673 char $ac_func ();
16674 /* The GNU C library defines this for functions which it implements
16675     to always fail with ENOSYS.  Some functions are actually named
16676     something starting with __ and the normal name is an alias.  */
16677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16678 choke me
16679 #else
16680 char (*f) () = $ac_func;
16681 #endif
16682 #ifdef __cplusplus
16683 }
16684 #endif
16685
16686 int
16687 main ()
16688 {
16689 return f != $ac_func;
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16696   (eval $ac_link) 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } &&
16700          { ac_try='test -s conftest$ac_exeext'
16701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702   (eval $ac_try) 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); }; }; then
16706   eval "$as_ac_var=yes"
16707 else
16708   echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.$ac_ext >&5
16710
16711 eval "$as_ac_var=no"
16712 fi
16713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16714 fi
16715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16716 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16717 if test `eval echo '${'$as_ac_var'}'` = yes; then
16718   cat >>confdefs.h <<_ACEOF
16719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16720 _ACEOF
16721  cat >>confdefs.h <<\_ACEOF
16722 #define HAVE_INET_PTON 1
16723 _ACEOF
16724
16725 fi
16726 done
16727
16728
16729 for ac_func in inet_ntop
16730 do
16731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16732 echo "$as_me:$LINENO: checking for $ac_func" >&5
16733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16734 if eval "test \"\${$as_ac_var+set}\" = set"; then
16735   echo $ECHO_N "(cached) $ECHO_C" >&6
16736 else
16737   cat >conftest.$ac_ext <<_ACEOF
16738 #line $LINENO "configure"
16739 /* confdefs.h.  */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h.  */
16744 /* System header to define __stub macros and hopefully few prototypes,
16745     which can conflict with char $ac_func (); below.
16746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16747     <limits.h> exists even on freestanding compilers.  */
16748 #ifdef __STDC__
16749 # include <limits.h>
16750 #else
16751 # include <assert.h>
16752 #endif
16753 /* Override any gcc2 internal prototype to avoid an error.  */
16754 #ifdef __cplusplus
16755 extern "C"
16756 {
16757 #endif
16758 /* We use char because int might match the return type of a gcc2
16759    builtin and then its argument prototype would still apply.  */
16760 char $ac_func ();
16761 /* The GNU C library defines this for functions which it implements
16762     to always fail with ENOSYS.  Some functions are actually named
16763     something starting with __ and the normal name is an alias.  */
16764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16765 choke me
16766 #else
16767 char (*f) () = $ac_func;
16768 #endif
16769 #ifdef __cplusplus
16770 }
16771 #endif
16772
16773 int
16774 main ()
16775 {
16776 return f != $ac_func;
16777   ;
16778   return 0;
16779 }
16780 _ACEOF
16781 rm -f conftest.$ac_objext conftest$ac_exeext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16783   (eval $ac_link) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } &&
16787          { ac_try='test -s conftest$ac_exeext'
16788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789   (eval $ac_try) 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; }; then
16793   eval "$as_ac_var=yes"
16794 else
16795   echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16797
16798 eval "$as_ac_var=no"
16799 fi
16800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16801 fi
16802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16804 if test `eval echo '${'$as_ac_var'}'` = yes; then
16805   cat >>confdefs.h <<_ACEOF
16806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16807 _ACEOF
16808  cat >>confdefs.h <<\_ACEOF
16809 #define HAVE_INET_NTOP 1
16810 _ACEOF
16811
16812 fi
16813 done
16814
16815
16816 for ac_func in gethostbyname2
16817 do
16818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16819 echo "$as_me:$LINENO: checking for $ac_func" >&5
16820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16821 if eval "test \"\${$as_ac_var+set}\" = set"; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   cat >conftest.$ac_ext <<_ACEOF
16825 #line $LINENO "configure"
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831 /* System header to define __stub macros and hopefully few prototypes,
16832     which can conflict with char $ac_func (); below.
16833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16834     <limits.h> exists even on freestanding compilers.  */
16835 #ifdef __STDC__
16836 # include <limits.h>
16837 #else
16838 # include <assert.h>
16839 #endif
16840 /* Override any gcc2 internal prototype to avoid an error.  */
16841 #ifdef __cplusplus
16842 extern "C"
16843 {
16844 #endif
16845 /* We use char because int might match the return type of a gcc2
16846    builtin and then its argument prototype would still apply.  */
16847 char $ac_func ();
16848 /* The GNU C library defines this for functions which it implements
16849     to always fail with ENOSYS.  Some functions are actually named
16850     something starting with __ and the normal name is an alias.  */
16851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16852 choke me
16853 #else
16854 char (*f) () = $ac_func;
16855 #endif
16856 #ifdef __cplusplus
16857 }
16858 #endif
16859
16860 int
16861 main ()
16862 {
16863 return f != $ac_func;
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870   (eval $ac_link) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } &&
16874          { ac_try='test -s conftest$ac_exeext'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; }; then
16880   eval "$as_ac_var=yes"
16881 else
16882   echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16884
16885 eval "$as_ac_var=no"
16886 fi
16887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16888 fi
16889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16891 if test `eval echo '${'$as_ac_var'}'` = yes; then
16892   cat >>confdefs.h <<_ACEOF
16893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16894 _ACEOF
16895  cat >>confdefs.h <<\_ACEOF
16896 #define HAVE_GETHOSTBYNAME2 1
16897 _ACEOF
16898
16899 fi
16900 done
16901
16902
16903 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16904 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16905 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16906   echo $ECHO_N "(cached) $ECHO_C" >&6
16907 else
16908   cat >conftest.$ac_ext <<_ACEOF
16909 #line $LINENO "configure"
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915 #include <sys/socket.h>
16916 int
16917 main ()
16918 {
16919 struct sockaddr s; s.sa_len;
16920   ;
16921   return 0;
16922 }
16923 _ACEOF
16924 rm -f conftest.$ac_objext
16925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926   (eval $ac_compile) 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } &&
16930          { ac_try='test -s conftest.$ac_objext'
16931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932   (eval $ac_try) 2>&5
16933   ac_status=$?
16934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); }; }; then
16936   ac_cv_struct_sockaddr_sa_len=yes
16937 else
16938   echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16940
16941 ac_cv_struct_sockaddr_sa_len=no
16942 fi
16943 rm -f conftest.$ac_objext conftest.$ac_ext
16944 fi
16945 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16946 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16947
16948  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16949
16950 cat >>confdefs.h <<\_ACEOF
16951 #define HAVE_SA_LEN 1
16952 _ACEOF
16953
16954  fi
16955
16956
16957 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16958 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16959 if test "${ac_cv_ipv6_support+set}" = set; then
16960   echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962   cat >conftest.$ac_ext <<_ACEOF
16963 #line $LINENO "configure"
16964 /* confdefs.h.  */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h.  */
16969  #include <sys/types.h>
16970 #include <sys/socket.h>
16971 #include <netinet/in.h>
16972 int
16973 main ()
16974 {
16975 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16976  0;
16977   ;
16978   return 0;
16979 }
16980 _ACEOF
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983   (eval $ac_link) 2>&5
16984   ac_status=$?
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } &&
16987          { ac_try='test -s conftest$ac_exeext'
16988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16989   (eval $ac_try) 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); }; }; then
16993   ac_cv_ipv6_support=yes
16994 else
16995   echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16997
16998 ac_cv_ipv6_support=no
16999 fi
17000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17001 fi
17002 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17003 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17004
17005 if test "$ac_cv_ipv6_support" = yes; then
17006
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_IPV6 1
17009 _ACEOF
17010
17011 fi
17012
17013
17014
17015
17016 for ac_func in strftime
17017 do
17018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17019 echo "$as_me:$LINENO: checking for $ac_func" >&5
17020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17021 if eval "test \"\${$as_ac_var+set}\" = set"; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024   cat >conftest.$ac_ext <<_ACEOF
17025 #line $LINENO "configure"
17026 /* confdefs.h.  */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h.  */
17031 /* System header to define __stub macros and hopefully few prototypes,
17032     which can conflict with char $ac_func (); below.
17033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17034     <limits.h> exists even on freestanding compilers.  */
17035 #ifdef __STDC__
17036 # include <limits.h>
17037 #else
17038 # include <assert.h>
17039 #endif
17040 /* Override any gcc2 internal prototype to avoid an error.  */
17041 #ifdef __cplusplus
17042 extern "C"
17043 {
17044 #endif
17045 /* We use char because int might match the return type of a gcc2
17046    builtin and then its argument prototype would still apply.  */
17047 char $ac_func ();
17048 /* The GNU C library defines this for functions which it implements
17049     to always fail with ENOSYS.  Some functions are actually named
17050     something starting with __ and the normal name is an alias.  */
17051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17052 choke me
17053 #else
17054 char (*f) () = $ac_func;
17055 #endif
17056 #ifdef __cplusplus
17057 }
17058 #endif
17059
17060 int
17061 main ()
17062 {
17063 return f != $ac_func;
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070   (eval $ac_link) 2>&5
17071   ac_status=$?
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } &&
17074          { ac_try='test -s conftest$ac_exeext'
17075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076   (eval $ac_try) 2>&5
17077   ac_status=$?
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); }; }; then
17080   eval "$as_ac_var=yes"
17081 else
17082   echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085 eval "$as_ac_var=no"
17086 fi
17087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17088 fi
17089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17091 if test `eval echo '${'$as_ac_var'}'` = yes; then
17092   cat >>confdefs.h <<_ACEOF
17093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17094 _ACEOF
17095
17096 else
17097   # strftime is in -lintl on SCO UNIX.
17098 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17099 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17100 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17101   echo $ECHO_N "(cached) $ECHO_C" >&6
17102 else
17103   ac_check_lib_save_LIBS=$LIBS
17104 LIBS="-lintl  $LIBS"
17105 cat >conftest.$ac_ext <<_ACEOF
17106 #line $LINENO "configure"
17107 /* confdefs.h.  */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h.  */
17112
17113 /* Override any gcc2 internal prototype to avoid an error.  */
17114 #ifdef __cplusplus
17115 extern "C"
17116 #endif
17117 /* We use char because int might match the return type of a gcc2
17118    builtin and then its argument prototype would still apply.  */
17119 char strftime ();
17120 int
17121 main ()
17122 {
17123 strftime ();
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest$ac_exeext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130   (eval $ac_link) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -s conftest$ac_exeext'
17135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136   (eval $ac_try) 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; }; then
17140   ac_cv_lib_intl_strftime=yes
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 ac_cv_lib_intl_strftime=no
17146 fi
17147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17148 LIBS=$ac_check_lib_save_LIBS
17149 fi
17150 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17151 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17152 if test $ac_cv_lib_intl_strftime = yes; then
17153   cat >>confdefs.h <<\_ACEOF
17154 #define HAVE_STRFTIME 1
17155 _ACEOF
17156
17157 LIBS="-lintl $LIBS"
17158 fi
17159
17160 fi
17161 done
17162
17163
17164 for ac_func in vprintf
17165 do
17166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17167 echo "$as_me:$LINENO: checking for $ac_func" >&5
17168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17169 if eval "test \"\${$as_ac_var+set}\" = set"; then
17170   echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172   cat >conftest.$ac_ext <<_ACEOF
17173 #line $LINENO "configure"
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 /* System header to define __stub macros and hopefully few prototypes,
17180     which can conflict with char $ac_func (); below.
17181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17182     <limits.h> exists even on freestanding compilers.  */
17183 #ifdef __STDC__
17184 # include <limits.h>
17185 #else
17186 # include <assert.h>
17187 #endif
17188 /* Override any gcc2 internal prototype to avoid an error.  */
17189 #ifdef __cplusplus
17190 extern "C"
17191 {
17192 #endif
17193 /* We use char because int might match the return type of a gcc2
17194    builtin and then its argument prototype would still apply.  */
17195 char $ac_func ();
17196 /* The GNU C library defines this for functions which it implements
17197     to always fail with ENOSYS.  Some functions are actually named
17198     something starting with __ and the normal name is an alias.  */
17199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17200 choke me
17201 #else
17202 char (*f) () = $ac_func;
17203 #endif
17204 #ifdef __cplusplus
17205 }
17206 #endif
17207
17208 int
17209 main ()
17210 {
17211 return f != $ac_func;
17212   ;
17213   return 0;
17214 }
17215 _ACEOF
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17218   (eval $ac_link) 2>&5
17219   ac_status=$?
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } &&
17222          { ac_try='test -s conftest$ac_exeext'
17223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224   (eval $ac_try) 2>&5
17225   ac_status=$?
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); }; }; then
17228   eval "$as_ac_var=yes"
17229 else
17230   echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17232
17233 eval "$as_ac_var=no"
17234 fi
17235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17236 fi
17237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17239 if test `eval echo '${'$as_ac_var'}'` = yes; then
17240   cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 _ACEOF
17243
17244 echo "$as_me:$LINENO: checking for _doprnt" >&5
17245 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17246 if test "${ac_cv_func__doprnt+set}" = set; then
17247   echo $ECHO_N "(cached) $ECHO_C" >&6
17248 else
17249   cat >conftest.$ac_ext <<_ACEOF
17250 #line $LINENO "configure"
17251 /* confdefs.h.  */
17252 _ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h.  */
17256 /* System header to define __stub macros and hopefully few prototypes,
17257     which can conflict with char _doprnt (); below.
17258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259     <limits.h> exists even on freestanding compilers.  */
17260 #ifdef __STDC__
17261 # include <limits.h>
17262 #else
17263 # include <assert.h>
17264 #endif
17265 /* Override any gcc2 internal prototype to avoid an error.  */
17266 #ifdef __cplusplus
17267 extern "C"
17268 {
17269 #endif
17270 /* We use char because int might match the return type of a gcc2
17271    builtin and then its argument prototype would still apply.  */
17272 char _doprnt ();
17273 /* The GNU C library defines this for functions which it implements
17274     to always fail with ENOSYS.  Some functions are actually named
17275     something starting with __ and the normal name is an alias.  */
17276 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17277 choke me
17278 #else
17279 char (*f) () = _doprnt;
17280 #endif
17281 #ifdef __cplusplus
17282 }
17283 #endif
17284
17285 int
17286 main ()
17287 {
17288 return f != _doprnt;
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17295   (eval $ac_link) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } &&
17299          { ac_try='test -s conftest$ac_exeext'
17300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301   (eval $ac_try) 2>&5
17302   ac_status=$?
17303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; }; then
17305   ac_cv_func__doprnt=yes
17306 else
17307   echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 ac_cv_func__doprnt=no
17311 fi
17312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17313 fi
17314 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17315 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17316 if test $ac_cv_func__doprnt = yes; then
17317
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_DOPRNT 1
17320 _ACEOF
17321
17322 fi
17323
17324 fi
17325 done
17326
17327
17328 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17329 # for constant arguments.  Useless!
17330 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17331 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17332 if test "${ac_cv_working_alloca_h+set}" = set; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335   cat >conftest.$ac_ext <<_ACEOF
17336 #line $LINENO "configure"
17337 /* confdefs.h.  */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h.  */
17342 #include <alloca.h>
17343 int
17344 main ()
17345 {
17346 char *p = (char *) alloca (2 * sizeof (int));
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17353   (eval $ac_link) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } &&
17357          { ac_try='test -s conftest$ac_exeext'
17358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359   (eval $ac_try) 2>&5
17360   ac_status=$?
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); }; }; then
17363   ac_cv_working_alloca_h=yes
17364 else
17365   echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368 ac_cv_working_alloca_h=no
17369 fi
17370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17371 fi
17372 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17373 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17374 if test $ac_cv_working_alloca_h = yes; then
17375
17376 cat >>confdefs.h <<\_ACEOF
17377 #define HAVE_ALLOCA_H 1
17378 _ACEOF
17379
17380 fi
17381
17382 echo "$as_me:$LINENO: checking for alloca" >&5
17383 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17384 if test "${ac_cv_func_alloca_works+set}" = set; then
17385   echo $ECHO_N "(cached) $ECHO_C" >&6
17386 else
17387   cat >conftest.$ac_ext <<_ACEOF
17388 #line $LINENO "configure"
17389 /* confdefs.h.  */
17390 _ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h.  */
17394 #ifdef __GNUC__
17395 # define alloca __builtin_alloca
17396 #else
17397 # ifdef _MSC_VER
17398 #  include <malloc.h>
17399 #  define alloca _alloca
17400 # else
17401 #  if HAVE_ALLOCA_H
17402 #   include <alloca.h>
17403 #  else
17404 #   ifdef _AIX
17405  #pragma alloca
17406 #   else
17407 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17408 char *alloca ();
17409 #    endif
17410 #   endif
17411 #  endif
17412 # endif
17413 #endif
17414
17415 int
17416 main ()
17417 {
17418 char *p = (char *) alloca (1);
17419   ;
17420   return 0;
17421 }
17422 _ACEOF
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17425   (eval $ac_link) 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } &&
17429          { ac_try='test -s conftest$ac_exeext'
17430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431   (eval $ac_try) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; }; then
17435   ac_cv_func_alloca_works=yes
17436 else
17437   echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440 ac_cv_func_alloca_works=no
17441 fi
17442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17443 fi
17444 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17445 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17446
17447 if test $ac_cv_func_alloca_works = yes; then
17448
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_ALLOCA 1
17451 _ACEOF
17452
17453 else
17454   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17455 # that cause trouble.  Some versions do not even contain alloca or
17456 # contain a buggy version.  If you still want to use their alloca,
17457 # use ar to extract alloca.o from them instead of compiling alloca.c.
17458
17459 ALLOCA=alloca.$ac_objext
17460
17461 cat >>confdefs.h <<\_ACEOF
17462 #define C_ALLOCA 1
17463 _ACEOF
17464
17465
17466 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17467 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17468 if test "${ac_cv_os_cray+set}" = set; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
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 #if defined(CRAY) && ! defined(CRAY2)
17479 webecray
17480 #else
17481 wenotbecray
17482 #endif
17483
17484 _ACEOF
17485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17486   $EGREP "webecray" >/dev/null 2>&1; then
17487   ac_cv_os_cray=yes
17488 else
17489   ac_cv_os_cray=no
17490 fi
17491 rm -f conftest*
17492
17493 fi
17494 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17495 echo "${ECHO_T}$ac_cv_os_cray" >&6
17496 if test $ac_cv_os_cray = yes; then
17497   for ac_func in _getb67 GETB67 getb67; do
17498     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17499 echo "$as_me:$LINENO: checking for $ac_func" >&5
17500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17501 if eval "test \"\${$as_ac_var+set}\" = set"; then
17502   echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504   cat >conftest.$ac_ext <<_ACEOF
17505 #line $LINENO "configure"
17506 /* confdefs.h.  */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h.  */
17511 /* System header to define __stub macros and hopefully few prototypes,
17512     which can conflict with char $ac_func (); below.
17513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17514     <limits.h> exists even on freestanding compilers.  */
17515 #ifdef __STDC__
17516 # include <limits.h>
17517 #else
17518 # include <assert.h>
17519 #endif
17520 /* Override any gcc2 internal prototype to avoid an error.  */
17521 #ifdef __cplusplus
17522 extern "C"
17523 {
17524 #endif
17525 /* We use char because int might match the return type of a gcc2
17526    builtin and then its argument prototype would still apply.  */
17527 char $ac_func ();
17528 /* The GNU C library defines this for functions which it implements
17529     to always fail with ENOSYS.  Some functions are actually named
17530     something starting with __ and the normal name is an alias.  */
17531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17532 choke me
17533 #else
17534 char (*f) () = $ac_func;
17535 #endif
17536 #ifdef __cplusplus
17537 }
17538 #endif
17539
17540 int
17541 main ()
17542 {
17543 return f != $ac_func;
17544   ;
17545   return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17550   (eval $ac_link) 2>&5
17551   ac_status=$?
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); } &&
17554          { ac_try='test -s conftest$ac_exeext'
17555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556   (eval $ac_try) 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); }; }; then
17560   eval "$as_ac_var=yes"
17561 else
17562   echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565 eval "$as_ac_var=no"
17566 fi
17567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17568 fi
17569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17571 if test `eval echo '${'$as_ac_var'}'` = yes; then
17572
17573 cat >>confdefs.h <<_ACEOF
17574 #define CRAY_STACKSEG_END $ac_func
17575 _ACEOF
17576
17577     break
17578 fi
17579
17580   done
17581 fi
17582
17583 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17584 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17585 if test "${ac_cv_c_stack_direction+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588   if test "$cross_compiling" = yes; then
17589   ac_cv_c_stack_direction=0
17590 else
17591   cat >conftest.$ac_ext <<_ACEOF
17592 #line $LINENO "configure"
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 int
17599 find_stack_direction ()
17600 {
17601   static char *addr = 0;
17602   auto char dummy;
17603   if (addr == 0)
17604     {
17605       addr = &dummy;
17606       return find_stack_direction ();
17607     }
17608   else
17609     return (&dummy > addr) ? 1 : -1;
17610 }
17611
17612 int
17613 main ()
17614 {
17615   exit (find_stack_direction () < 0);
17616 }
17617 _ACEOF
17618 rm -f conftest$ac_exeext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17620   (eval $ac_link) 2>&5
17621   ac_status=$?
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625   (eval $ac_try) 2>&5
17626   ac_status=$?
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); }; }; then
17629   ac_cv_c_stack_direction=1
17630 else
17631   echo "$as_me: program exited with status $ac_status" >&5
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635 ( exit $ac_status )
17636 ac_cv_c_stack_direction=-1
17637 fi
17638 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17639 fi
17640 fi
17641 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17642 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17643
17644 cat >>confdefs.h <<_ACEOF
17645 #define STACK_DIRECTION $ac_cv_c_stack_direction
17646 _ACEOF
17647
17648
17649 fi
17650
17651 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17652 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17653 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17654 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   ac_check_lib_save_LIBS=$LIBS
17658 LIBS="-lsun  $LIBS"
17659 cat >conftest.$ac_ext <<_ACEOF
17660 #line $LINENO "configure"
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666
17667 /* Override any gcc2 internal prototype to avoid an error.  */
17668 #ifdef __cplusplus
17669 extern "C"
17670 #endif
17671 /* We use char because int might match the return type of a gcc2
17672    builtin and then its argument prototype would still apply.  */
17673 char getmntent ();
17674 int
17675 main ()
17676 {
17677 getmntent ();
17678   ;
17679   return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684   (eval $ac_link) 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } &&
17688          { ac_try='test -s conftest$ac_exeext'
17689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690   (eval $ac_try) 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); }; }; then
17694   ac_cv_lib_sun_getmntent=yes
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 ac_cv_lib_sun_getmntent=no
17700 fi
17701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17702 LIBS=$ac_check_lib_save_LIBS
17703 fi
17704 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17705 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17706 if test $ac_cv_lib_sun_getmntent = yes; then
17707   LIBS="-lsun $LIBS"
17708 else
17709   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17710 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17711 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17712   echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714   ac_check_lib_save_LIBS=$LIBS
17715 LIBS="-lseq  $LIBS"
17716 cat >conftest.$ac_ext <<_ACEOF
17717 #line $LINENO "configure"
17718 /* confdefs.h.  */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h.  */
17723
17724 /* Override any gcc2 internal prototype to avoid an error.  */
17725 #ifdef __cplusplus
17726 extern "C"
17727 #endif
17728 /* We use char because int might match the return type of a gcc2
17729    builtin and then its argument prototype would still apply.  */
17730 char getmntent ();
17731 int
17732 main ()
17733 {
17734 getmntent ();
17735   ;
17736   return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext conftest$ac_exeext
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741   (eval $ac_link) 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); } &&
17745          { ac_try='test -s conftest$ac_exeext'
17746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747   (eval $ac_try) 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }; }; then
17751   ac_cv_lib_seq_getmntent=yes
17752 else
17753   echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17755
17756 ac_cv_lib_seq_getmntent=no
17757 fi
17758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17759 LIBS=$ac_check_lib_save_LIBS
17760 fi
17761 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17762 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17763 if test $ac_cv_lib_seq_getmntent = yes; then
17764   LIBS="-lseq $LIBS"
17765 else
17766   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17767 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17768 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17769   echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771   ac_check_lib_save_LIBS=$LIBS
17772 LIBS="-lgen  $LIBS"
17773 cat >conftest.$ac_ext <<_ACEOF
17774 #line $LINENO "configure"
17775 /* confdefs.h.  */
17776 _ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h.  */
17780
17781 /* Override any gcc2 internal prototype to avoid an error.  */
17782 #ifdef __cplusplus
17783 extern "C"
17784 #endif
17785 /* We use char because int might match the return type of a gcc2
17786    builtin and then its argument prototype would still apply.  */
17787 char getmntent ();
17788 int
17789 main ()
17790 {
17791 getmntent ();
17792   ;
17793   return 0;
17794 }
17795 _ACEOF
17796 rm -f conftest.$ac_objext conftest$ac_exeext
17797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17798   (eval $ac_link) 2>&5
17799   ac_status=$?
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } &&
17802          { ac_try='test -s conftest$ac_exeext'
17803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804   (eval $ac_try) 2>&5
17805   ac_status=$?
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); }; }; then
17808   ac_cv_lib_gen_getmntent=yes
17809 else
17810   echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17812
17813 ac_cv_lib_gen_getmntent=no
17814 fi
17815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17817 fi
17818 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17819 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17820 if test $ac_cv_lib_gen_getmntent = yes; then
17821   LIBS="-lgen $LIBS"
17822 fi
17823
17824 fi
17825
17826 fi
17827
17828
17829 for ac_func in getmntent
17830 do
17831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17832 echo "$as_me:$LINENO: checking for $ac_func" >&5
17833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17834 if eval "test \"\${$as_ac_var+set}\" = set"; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837   cat >conftest.$ac_ext <<_ACEOF
17838 #line $LINENO "configure"
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844 /* System header to define __stub macros and hopefully few prototypes,
17845     which can conflict with char $ac_func (); below.
17846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17847     <limits.h> exists even on freestanding compilers.  */
17848 #ifdef __STDC__
17849 # include <limits.h>
17850 #else
17851 # include <assert.h>
17852 #endif
17853 /* Override any gcc2 internal prototype to avoid an error.  */
17854 #ifdef __cplusplus
17855 extern "C"
17856 {
17857 #endif
17858 /* We use char because int might match the return type of a gcc2
17859    builtin and then its argument prototype would still apply.  */
17860 char $ac_func ();
17861 /* The GNU C library defines this for functions which it implements
17862     to always fail with ENOSYS.  Some functions are actually named
17863     something starting with __ and the normal name is an alias.  */
17864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17865 choke me
17866 #else
17867 char (*f) () = $ac_func;
17868 #endif
17869 #ifdef __cplusplus
17870 }
17871 #endif
17872
17873 int
17874 main ()
17875 {
17876 return f != $ac_func;
17877   ;
17878   return 0;
17879 }
17880 _ACEOF
17881 rm -f conftest.$ac_objext conftest$ac_exeext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17883   (eval $ac_link) 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } &&
17887          { ac_try='test -s conftest$ac_exeext'
17888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889   (eval $ac_try) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; }; then
17893   eval "$as_ac_var=yes"
17894 else
17895   echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898 eval "$as_ac_var=no"
17899 fi
17900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17901 fi
17902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17904 if test `eval echo '${'$as_ac_var'}'` = yes; then
17905   cat >>confdefs.h <<_ACEOF
17906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17907 _ACEOF
17908
17909 fi
17910 done
17911
17912
17913 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17914 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17915 if test "${ac_cv_func_closedir_void+set}" = set; then
17916   echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918   if test "$cross_compiling" = yes; then
17919   ac_cv_func_closedir_void=yes
17920 else
17921   cat >conftest.$ac_ext <<_ACEOF
17922 #line $LINENO "configure"
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928 $ac_includes_default
17929 #include <$ac_header_dirent>
17930 #ifndef __cplusplus
17931 int closedir ();
17932 #endif
17933
17934 int
17935 main ()
17936 {
17937 exit (closedir (opendir (".")) != 0);
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest$ac_exeext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17944   (eval $ac_link) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949   (eval $ac_try) 2>&5
17950   ac_status=$?
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); }; }; then
17953   ac_cv_func_closedir_void=no
17954 else
17955   echo "$as_me: program exited with status $ac_status" >&5
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ( exit $ac_status )
17960 ac_cv_func_closedir_void=yes
17961 fi
17962 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17963 fi
17964 fi
17965 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17966 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17967 if test $ac_cv_func_closedir_void = yes; then
17968
17969 cat >>confdefs.h <<\_ACEOF
17970 #define CLOSEDIR_VOID 1
17971 _ACEOF
17972
17973 fi
17974
17975 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17976 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17977 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17978   echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980   if test "$cross_compiling" = yes; then
17981   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17982 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17983    { (exit 1); exit 1; }; }
17984 else
17985   cat >conftest.$ac_ext <<_ACEOF
17986 #line $LINENO "configure"
17987 /* confdefs.h.  */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h.  */
17992 #if HAVE_UNISTD_H
17993 # include <unistd.h>
17994 #endif
17995
17996 int
17997 main ()
17998 {
17999 /* If this system has a BSD-style setpgrp which takes arguments,
18000   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18001   exit successfully. */
18002   exit (setpgrp (1,1) == -1 ? 0 : 1);
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest$ac_exeext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009   (eval $ac_link) 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014   (eval $ac_try) 2>&5
18015   ac_status=$?
18016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017   (exit $ac_status); }; }; then
18018   ac_cv_func_setpgrp_void=no
18019 else
18020   echo "$as_me: program exited with status $ac_status" >&5
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 ( exit $ac_status )
18025 ac_cv_func_setpgrp_void=yes
18026 fi
18027 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18028 fi
18029 fi
18030 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18031 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18032 if test $ac_cv_func_setpgrp_void = yes; then
18033
18034 cat >>confdefs.h <<\_ACEOF
18035 #define SETPGRP_VOID 1
18036 _ACEOF
18037
18038 fi
18039                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18040 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18041 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18042   echo $ECHO_N "(cached) $ECHO_C" >&6
18043 else
18044   # Some versions of Solaris, SCO, and the GNU C Library
18045    # have a broken or incompatible fnmatch.
18046    # So we run a test program.  If we are cross-compiling, take no chance.
18047    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18048    if test "$cross_compiling" = yes; then
18049   ac_cv_func_fnmatch_works=cross
18050 else
18051   cat >conftest.$ac_ext <<_ACEOF
18052 #line $LINENO "configure"
18053 /* confdefs.h.  */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h.  */
18058 #include <fnmatch.h>
18059 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
18060 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18061
18062 int
18063 main ()
18064 {
18065 exit
18066            (!(y ("a*", "abc", 0)
18067               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18068               && y ("a\\\\bc", "abc", 0)
18069               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18070               && y ("*x", ".x", 0)
18071               && n ("*x", ".x", FNM_PERIOD)
18072               && 1));
18073   ;
18074   return 0;
18075 }
18076 _ACEOF
18077 rm -f conftest$ac_exeext
18078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18079   (eval $ac_link) 2>&5
18080   ac_status=$?
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084   (eval $ac_try) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); }; }; then
18088   ac_cv_func_fnmatch_works=yes
18089 else
18090   echo "$as_me: program exited with status $ac_status" >&5
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 ( exit $ac_status )
18095 ac_cv_func_fnmatch_works=no
18096 fi
18097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18098 fi
18099 fi
18100 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18101 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18102 if test $ac_cv_func_fnmatch_works = yes; then
18103
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE_FNMATCH 1
18106 _ACEOF
18107
18108 fi
18109
18110
18111
18112
18113
18114 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18115 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18116 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18117   echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119   ac_check_lib_save_LIBS=$LIBS
18120 LIBS="-lxpg4  $LIBS"
18121 cat >conftest.$ac_ext <<_ACEOF
18122 #line $LINENO "configure"
18123 /* confdefs.h.  */
18124 _ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h.  */
18128
18129 /* Override any gcc2 internal prototype to avoid an error.  */
18130 #ifdef __cplusplus
18131 extern "C"
18132 #endif
18133 /* We use char because int might match the return type of a gcc2
18134    builtin and then its argument prototype would still apply.  */
18135 char setlocale ();
18136 int
18137 main ()
18138 {
18139 setlocale ();
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 rm -f conftest.$ac_objext conftest$ac_exeext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18146   (eval $ac_link) 2>&5
18147   ac_status=$?
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } &&
18150          { ac_try='test -s conftest$ac_exeext'
18151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152   (eval $ac_try) 2>&5
18153   ac_status=$?
18154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); }; }; then
18156   ac_cv_lib_xpg4_setlocale=yes
18157 else
18158   echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 ac_cv_lib_xpg4_setlocale=no
18162 fi
18163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18164 LIBS=$ac_check_lib_save_LIBS
18165 fi
18166 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18167 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18168 if test $ac_cv_lib_xpg4_setlocale = yes; then
18169   LIBS="$LIBS -lxpg4"
18170 fi
18171
18172
18173
18174
18175 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18176 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18177 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180   ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-lsun  $LIBS"
18182 cat >conftest.$ac_ext <<_ACEOF
18183 #line $LINENO "configure"
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189
18190 /* Override any gcc2 internal prototype to avoid an error.  */
18191 #ifdef __cplusplus
18192 extern "C"
18193 #endif
18194 /* We use char because int might match the return type of a gcc2
18195    builtin and then its argument prototype would still apply.  */
18196 char getpwnam ();
18197 int
18198 main ()
18199 {
18200 getpwnam ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207   (eval $ac_link) 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -s conftest$ac_exeext'
18212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213   (eval $ac_try) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; }; then
18217   ac_cv_lib_sun_getpwnam=yes
18218 else
18219   echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 ac_cv_lib_sun_getpwnam=no
18223 fi
18224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18226 fi
18227 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18228 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18229 if test $ac_cv_lib_sun_getpwnam = yes; then
18230   cat >>confdefs.h <<_ACEOF
18231 #define HAVE_LIBSUN 1
18232 _ACEOF
18233
18234   LIBS="-lsun $LIBS"
18235
18236 fi
18237
18238
18239
18240 for ac_header in zlib.h
18241 do
18242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18244   echo "$as_me:$LINENO: checking for $ac_header" >&5
18245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18247   echo $ECHO_N "(cached) $ECHO_C" >&6
18248 fi
18249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18251 else
18252   # Is the header compilable?
18253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18255 cat >conftest.$ac_ext <<_ACEOF
18256 #line $LINENO "configure"
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262 $ac_includes_default
18263 #include <$ac_header>
18264 _ACEOF
18265 rm -f conftest.$ac_objext
18266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18267   (eval $ac_compile) 2>&5
18268   ac_status=$?
18269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270   (exit $ac_status); } &&
18271          { ac_try='test -s conftest.$ac_objext'
18272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273   (eval $ac_try) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); }; }; then
18277   ac_header_compiler=yes
18278 else
18279   echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281
18282 ac_header_compiler=no
18283 fi
18284 rm -f conftest.$ac_objext conftest.$ac_ext
18285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18286 echo "${ECHO_T}$ac_header_compiler" >&6
18287
18288 # Is the header present?
18289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18291 cat >conftest.$ac_ext <<_ACEOF
18292 #line $LINENO "configure"
18293 /* confdefs.h.  */
18294 _ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h.  */
18298 #include <$ac_header>
18299 _ACEOF
18300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18302   ac_status=$?
18303   grep -v '^ *+' conftest.er1 >conftest.err
18304   rm -f conftest.er1
18305   cat conftest.err >&5
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } >/dev/null; then
18308   if test -s conftest.err; then
18309     ac_cpp_err=$ac_c_preproc_warn_flag
18310   else
18311     ac_cpp_err=
18312   fi
18313 else
18314   ac_cpp_err=yes
18315 fi
18316 if test -z "$ac_cpp_err"; then
18317   ac_header_preproc=yes
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322   ac_header_preproc=no
18323 fi
18324 rm -f conftest.err conftest.$ac_ext
18325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18326 echo "${ECHO_T}$ac_header_preproc" >&6
18327
18328 # So?  What about this header?
18329 case $ac_header_compiler:$ac_header_preproc in
18330   yes:no )
18331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18335     (
18336       cat <<\_ASBOX
18337 ## ------------------------------------ ##
18338 ## Report this to bug-autoconf@gnu.org. ##
18339 ## ------------------------------------ ##
18340 _ASBOX
18341     ) |
18342       sed "s/^/$as_me: WARNING:     /" >&2
18343     ;;
18344   no:yes )
18345     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18347     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18351     (
18352       cat <<\_ASBOX
18353 ## ------------------------------------ ##
18354 ## Report this to bug-autoconf@gnu.org. ##
18355 ## ------------------------------------ ##
18356 _ASBOX
18357     ) |
18358       sed "s/^/$as_me: WARNING:     /" >&2
18359     ;;
18360 esac
18361 echo "$as_me:$LINENO: checking for $ac_header" >&5
18362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18364   echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366   eval "$as_ac_Header=$ac_header_preproc"
18367 fi
18368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18370
18371 fi
18372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18373   cat >>confdefs.h <<_ACEOF
18374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18375 _ACEOF
18376
18377 fi
18378
18379 done
18380
18381 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18382 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18383 if test "${ac_cv_lib_z_deflate+set}" = set; then
18384   echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386   ac_check_lib_save_LIBS=$LIBS
18387 LIBS="-lz  $LIBS"
18388 cat >conftest.$ac_ext <<_ACEOF
18389 #line $LINENO "configure"
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395
18396 /* Override any gcc2 internal prototype to avoid an error.  */
18397 #ifdef __cplusplus
18398 extern "C"
18399 #endif
18400 /* We use char because int might match the return type of a gcc2
18401    builtin and then its argument prototype would still apply.  */
18402 char deflate ();
18403 int
18404 main ()
18405 {
18406 deflate ();
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413   (eval $ac_link) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); } &&
18417          { ac_try='test -s conftest$ac_exeext'
18418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419   (eval $ac_try) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); }; }; then
18423   ac_cv_lib_z_deflate=yes
18424 else
18425   echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428 ac_cv_lib_z_deflate=no
18429 fi
18430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18432 fi
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18434 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18435 if test $ac_cv_lib_z_deflate = yes; then
18436   FDLIBS="-lz"
18437 fi
18438
18439 have_zlib=no
18440 if test x$FDLIBS = x-lz; then
18441   cat >>confdefs.h <<\_ACEOF
18442 #define HAVE_LIBZ 1
18443 _ACEOF
18444
18445   have_zlib=yes
18446 fi
18447
18448 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18449   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18450 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18451 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18452   echo $ECHO_N "(cached) $ECHO_C" >&6
18453 fi
18454 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18455 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18456 else
18457   # Is the header compilable?
18458 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18459 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18460 cat >conftest.$ac_ext <<_ACEOF
18461 #line $LINENO "configure"
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467 $ac_includes_default
18468 #include <sys/acl.h>
18469 _ACEOF
18470 rm -f conftest.$ac_objext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472   (eval $ac_compile) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); } &&
18476          { ac_try='test -s conftest.$ac_objext'
18477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478   (eval $ac_try) 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); }; }; then
18482   ac_header_compiler=yes
18483 else
18484   echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 ac_header_compiler=no
18488 fi
18489 rm -f conftest.$ac_objext conftest.$ac_ext
18490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18491 echo "${ECHO_T}$ac_header_compiler" >&6
18492
18493 # Is the header present?
18494 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18495 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18496 cat >conftest.$ac_ext <<_ACEOF
18497 #line $LINENO "configure"
18498 /* confdefs.h.  */
18499 _ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h.  */
18503 #include <sys/acl.h>
18504 _ACEOF
18505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18507   ac_status=$?
18508   grep -v '^ *+' conftest.er1 >conftest.err
18509   rm -f conftest.er1
18510   cat conftest.err >&5
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); } >/dev/null; then
18513   if test -s conftest.err; then
18514     ac_cpp_err=$ac_c_preproc_warn_flag
18515   else
18516     ac_cpp_err=
18517   fi
18518 else
18519   ac_cpp_err=yes
18520 fi
18521 if test -z "$ac_cpp_err"; then
18522   ac_header_preproc=yes
18523 else
18524   echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527   ac_header_preproc=no
18528 fi
18529 rm -f conftest.err conftest.$ac_ext
18530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18531 echo "${ECHO_T}$ac_header_preproc" >&6
18532
18533 # So?  What about this header?
18534 case $ac_header_compiler:$ac_header_preproc in
18535   yes:no )
18536     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18537 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18538     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18539 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18540     (
18541       cat <<\_ASBOX
18542 ## ------------------------------------ ##
18543 ## Report this to bug-autoconf@gnu.org. ##
18544 ## ------------------------------------ ##
18545 _ASBOX
18546     ) |
18547       sed "s/^/$as_me: WARNING:     /" >&2
18548     ;;
18549   no:yes )
18550     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18551 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18552     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18553 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18554     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18555 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18556     (
18557       cat <<\_ASBOX
18558 ## ------------------------------------ ##
18559 ## Report this to bug-autoconf@gnu.org. ##
18560 ## ------------------------------------ ##
18561 _ASBOX
18562     ) |
18563       sed "s/^/$as_me: WARNING:     /" >&2
18564     ;;
18565 esac
18566 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18567 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18568 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   ac_cv_header_sys_acl_h=$ac_header_preproc
18572 fi
18573 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18574 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18575
18576 fi
18577
18578
18579 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18580 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18581 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lacl  $LIBS"
18586 cat >conftest.$ac_ext <<_ACEOF
18587 #line $LINENO "configure"
18588 /* confdefs.h.  */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h.  */
18593
18594 /* Override any gcc2 internal prototype to avoid an error.  */
18595 #ifdef __cplusplus
18596 extern "C"
18597 #endif
18598 /* We use char because int might match the return type of a gcc2
18599    builtin and then its argument prototype would still apply.  */
18600 char acl_get_file ();
18601 int
18602 main ()
18603 {
18604 acl_get_file ();
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611   (eval $ac_link) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); } &&
18615          { ac_try='test -s conftest$ac_exeext'
18616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617   (eval $ac_try) 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; }; then
18621   ac_cv_lib_acl_acl_get_file=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626 ac_cv_lib_acl_acl_get_file=no
18627 fi
18628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18629 LIBS=$ac_check_lib_save_LIBS
18630 fi
18631 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18632 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18633 if test $ac_cv_lib_acl_acl_get_file = yes; then
18634   FDLIBS="-lacl $FDLIBS"
18635 fi
18636
18637 have_acl=no
18638 if test $ac_cv_lib_acl_acl_get_file = yes; then
18639    cat >>confdefs.h <<\_ACEOF
18640 #define HAVE_ACL 1
18641 _ACEOF
18642
18643    have_acl=yes
18644 fi
18645
18646 PTHREAD_LIB=""
18647 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18648 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18649 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18650   echo $ECHO_N "(cached) $ECHO_C" >&6
18651 else
18652   ac_check_lib_save_LIBS=$LIBS
18653 LIBS="-lpthread  $LIBS"
18654 cat >conftest.$ac_ext <<_ACEOF
18655 #line $LINENO "configure"
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661
18662 /* Override any gcc2 internal prototype to avoid an error.  */
18663 #ifdef __cplusplus
18664 extern "C"
18665 #endif
18666 /* We use char because int might match the return type of a gcc2
18667    builtin and then its argument prototype would still apply.  */
18668 char pthread_create ();
18669 int
18670 main ()
18671 {
18672 pthread_create ();
18673   ;
18674   return 0;
18675 }
18676 _ACEOF
18677 rm -f conftest.$ac_objext conftest$ac_exeext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18679   (eval $ac_link) 2>&5
18680   ac_status=$?
18681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); } &&
18683          { ac_try='test -s conftest$ac_exeext'
18684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685   (eval $ac_try) 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; }; then
18689   ac_cv_lib_pthread_pthread_create=yes
18690 else
18691   echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18693
18694 ac_cv_lib_pthread_pthread_create=no
18695 fi
18696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18697 LIBS=$ac_check_lib_save_LIBS
18698 fi
18699 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18700 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18701 if test $ac_cv_lib_pthread_pthread_create = yes; then
18702   PTHREAD_LIB="-lpthread"
18703 else
18704   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18705 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18706 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709   ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-lpthreads  $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18712 #line $LINENO "configure"
18713 /* confdefs.h.  */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h.  */
18718
18719 /* Override any gcc2 internal prototype to avoid an error.  */
18720 #ifdef __cplusplus
18721 extern "C"
18722 #endif
18723 /* We use char because int might match the return type of a gcc2
18724    builtin and then its argument prototype would still apply.  */
18725 char pthread_create ();
18726 int
18727 main ()
18728 {
18729 pthread_create ();
18730   ;
18731   return 0;
18732 }
18733 _ACEOF
18734 rm -f conftest.$ac_objext conftest$ac_exeext
18735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18736   (eval $ac_link) 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } &&
18740          { ac_try='test -s conftest$ac_exeext'
18741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742   (eval $ac_try) 2>&5
18743   ac_status=$?
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); }; }; then
18746   ac_cv_lib_pthreads_pthread_create=yes
18747 else
18748   echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18750
18751 ac_cv_lib_pthreads_pthread_create=no
18752 fi
18753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18754 LIBS=$ac_check_lib_save_LIBS
18755 fi
18756 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18757 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18758 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18759   PTHREAD_LIB="-lpthreads"
18760 else
18761   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18762 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18763 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   ac_check_lib_save_LIBS=$LIBS
18767 LIBS="-lc_r  $LIBS"
18768 cat >conftest.$ac_ext <<_ACEOF
18769 #line $LINENO "configure"
18770 /* confdefs.h.  */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h.  */
18775
18776 /* Override any gcc2 internal prototype to avoid an error.  */
18777 #ifdef __cplusplus
18778 extern "C"
18779 #endif
18780 /* We use char because int might match the return type of a gcc2
18781    builtin and then its argument prototype would still apply.  */
18782 char pthread_create ();
18783 int
18784 main ()
18785 {
18786 pthread_create ();
18787   ;
18788   return 0;
18789 }
18790 _ACEOF
18791 rm -f conftest.$ac_objext conftest$ac_exeext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18793   (eval $ac_link) 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); } &&
18797          { ac_try='test -s conftest$ac_exeext'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; }; then
18803   ac_cv_lib_c_r_pthread_create=yes
18804 else
18805   echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18807
18808 ac_cv_lib_c_r_pthread_create=no
18809 fi
18810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18811 LIBS=$ac_check_lib_save_LIBS
18812 fi
18813 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18814 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18815 if test $ac_cv_lib_c_r_pthread_create = yes; then
18816   PTHREAD_LIB="-lc_r"
18817 else
18818   echo "$as_me:$LINENO: checking for pthread_create" >&5
18819 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18820 if test "${ac_cv_func_pthread_create+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823   cat >conftest.$ac_ext <<_ACEOF
18824 #line $LINENO "configure"
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830 /* System header to define __stub macros and hopefully few prototypes,
18831     which can conflict with char pthread_create (); below.
18832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18833     <limits.h> exists even on freestanding compilers.  */
18834 #ifdef __STDC__
18835 # include <limits.h>
18836 #else
18837 # include <assert.h>
18838 #endif
18839 /* Override any gcc2 internal prototype to avoid an error.  */
18840 #ifdef __cplusplus
18841 extern "C"
18842 {
18843 #endif
18844 /* We use char because int might match the return type of a gcc2
18845    builtin and then its argument prototype would still apply.  */
18846 char pthread_create ();
18847 /* The GNU C library defines this for functions which it implements
18848     to always fail with ENOSYS.  Some functions are actually named
18849     something starting with __ and the normal name is an alias.  */
18850 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18851 choke me
18852 #else
18853 char (*f) () = pthread_create;
18854 #endif
18855 #ifdef __cplusplus
18856 }
18857 #endif
18858
18859 int
18860 main ()
18861 {
18862 return f != pthread_create;
18863   ;
18864   return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869   (eval $ac_link) 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); } &&
18873          { ac_try='test -s conftest$ac_exeext'
18874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875   (eval $ac_try) 2>&5
18876   ac_status=$?
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); }; }; then
18879   ac_cv_func_pthread_create=yes
18880 else
18881   echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 ac_cv_func_pthread_create=no
18885 fi
18886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18887 fi
18888 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18889 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18890
18891
18892 fi
18893
18894
18895 fi
18896
18897
18898 fi
18899
18900
18901
18902 cat >>confdefs.h <<\_ACEOF
18903 #define FDLIBS 1
18904 _ACEOF
18905
18906
18907
18908 CFLAGS=${CFLAGS--O}
18909 LDFLAGS=${LDFLAGS--O}
18910 DB_LIBS="${SQL_LFLAGS}"
18911
18912 CPPFLAGS="$CPPFLAGS"
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927 OBJLIST=
18928
18929
18930 lld="lld"
18931 llu="llu"
18932
18933 WCFLAGS=
18934 WLDFLAGS=
18935
18936 #
18937 # Finally we set appropriate distribution specific
18938 #  variables and defaults
18939 #
18940 # PFILES are platform specific files
18941 PFILES="platforms/Makefile"
18942 PSCMD="ps -e"
18943 WIN32=
18944 MACOSX=
18945 hostname=`uname -n | cut -d '.' -f 1`
18946 case "$DISTNAME" in
18947 aix)
18948         DISTVER=`uname -r`
18949         PSCMD="ps -e -o pid,comm"
18950         PFILES="${PFILES} \
18951            platforms/aix/Makefile"
18952         TAPEDRIVE="/dev/rmt0.1"
18953   ;;
18954 alpha)
18955         DISTVER=`uname -r`
18956         PTHREAD_LIB="-lpthread -lexc"
18957         if test "${CC}" = "gcc" ; then
18958            lld="lld"
18959            llu="llu"
18960         else
18961            lld="ld"
18962            llu="lu"
18963         fi
18964         TAPEDRIVE="/dev/nrmt0"
18965   ;;
18966 bsdi)
18967         DISTVER=`uname -a |awk '{print $3}'`
18968         TAPEDRIVE="/dev/nrmt0"
18969         PTHREAD_LIB="-pthread"
18970         CFLAGS="${CFLAGS} -pthread"
18971         PSCMD="ps -x -o pid,command"
18972         lld="qd"
18973         llu="qu"
18974         PFILES="${PFILES} \
18975             platforms/bsdi/Makefile \
18976             platforms/bsdi/bacula-fd \
18977             platforms/bsdi/bacula-sd \
18978             platforms/bsdi/bacula-dir"
18979         largefile_support="yes"
18980   ;;
18981 cygwin)
18982         DISTVER=`uname -a |awk '{print $3}'`
18983         TAPEDRIVE="/dev/nrst0"
18984         WIN32=win32
18985         WCFLAGS="-mwindows"
18986         WLDFLAGS="-mwindows"
18987   ;;
18988 darwin)
18989         DISTVER=`uname -r`
18990         TAPEDRIVE="/dev/nst0"
18991         PSCMD="ps -e -o pid,command"
18992         MACOSX=macosx
18993         PFILES="${PFILES} \
18994            platforms/darwin/Makefile"
18995   ;;
18996 debian)
18997         DISTVER=`cat /etc/debian_version`
18998         TAPEDRIVE="/dev/nrst0"
18999         PSCMD="ps -e -o pid,command"
19000   ;;
19001 freebsd)
19002         DISTVER=`uname -a |awk '{print $3}'`
19003         VER=`echo $DISTVER | cut -c 1`
19004         if test x$VER = x4 ; then
19005            PTHREAD_LIB="-pthread"
19006            CFLAGS="${CFLAGS} -pthread"
19007         fi
19008         lld="qd"
19009         llu="qu"
19010         TAPEDRIVE="/dev/nrsa0"
19011         PSCMD="ps -x -o pid,command"
19012         PFILES="${PFILES} \
19013             platforms/freebsd/Makefile \
19014             platforms/freebsd/bacula-fd \
19015             platforms/freebsd/bacula-sd \
19016             platforms/freebsd/bacula-dir"
19017         largefile_support="yes"
19018   ;;
19019 hpux)
19020         PSCMD="UNIX95=1 ps -e -o pid,comm"
19021         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19022         DISTVER=`uname -r`
19023         TAPEDRIVE="/dev/rmt/0hnb"
19024   ;;
19025 irix)
19026         DISTVER=`uname -r`
19027         TAPEDRIVE="/dev/rmt/0cbn"
19028         PSCMD="ps -e -o pid,comm"
19029         PFILES="${PFILES} \
19030             platforms/irix/Makefile \
19031             platforms/irix/bacula-fd \
19032             platforms/irix/bacula-sd \
19033             platforms/irix/bacula-dir"
19034   ;;
19035 netbsd)
19036         DISTVER=`uname -a |awk '{print $3}'`
19037         lld="qd"
19038         llu="qu"
19039         TAPEDRIVE="/dev/nrst0"
19040         PSCMD="ps -a -o pid,command"
19041         PTHREAD_LIB="-pthread"
19042         CFLAGS="${CFLAGS} -pthread"
19043   ;;
19044 openbsd)
19045         DISTVER=`uname -a |awk '{print $3}'`
19046         lld="qd"
19047         llu="qu"
19048         TAPEDRIVE="/dev/nrst0"
19049         PSCMD="ps -a -o pid,command"
19050         PTHREAD_LIB="-pthread"
19051         CFLAGS="${CFLAGS} -pthread"
19052         PFILES="${PFILES} \
19053             platforms/openbsd/Makefile \
19054             platforms/openbsd/bacula-fd \
19055             platforms/openbsd/bacula-sd \
19056             platforms/openbsd/bacula-dir"
19057   ;;
19058 redhat)
19059         if test -f /etc/whitebox-release ; then
19060            f=/etc/whitebox-release
19061         else
19062            f=/etc/redhat-release
19063         fi
19064         if test `cat $f | grep release |\
19065                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19066            DISTVER="Enterprise "`cat $f | grep release |\
19067                     cut -f 6 -d ' '`
19068         else
19069             DISTVER=`cat /etc/redhat-release | grep release |\
19070                      cut -f 5 -d ' '`
19071         fi
19072         TAPEDRIVE="/dev/nst0"
19073         PSCMD="ps -e -o pid,command"
19074         PFILES="${PFILES} \
19075             platforms/redhat/Makefile \
19076             platforms/redhat/bacula-fd \
19077             platforms/redhat/bacula-sd \
19078             platforms/redhat/bacula-dir \
19079             platforms/redhat/bacula.spec \
19080             "
19081         hostname=`hostname -s`
19082   ;;
19083 mandrake)
19084         DISTVER=`cat /etc/mandrake-release | grep release |\
19085            cut -f 5 -d ' '`
19086         TAPEDRIVE="/dev/nst0"
19087         PSCMD="ps -e -o pid,command"
19088         PFILES="${PFILES} \
19089             platforms/mandrake/Makefile \
19090             platforms/mandrake/bacula-fd \
19091             platforms/mandrake/bacula-sd \
19092             platforms/mandrake/bacula-dir \
19093             platforms/mandrake/bacula.spec \
19094             "
19095   ;;
19096 gentoo)
19097         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19098         TAPEDRIVE="/dev/nst0"
19099         PSCMD="ps -e -o pid,command"
19100         PFILES="${PFILES} \
19101             platforms/gentoo/Makefile \
19102             platforms/gentoo/bacula-fd \
19103             platforms/gentoo/bacula-sd \
19104             platforms/gentoo/bacula-dir"
19105   ;;
19106 slackware)
19107         DISTVER=`cat /etc/slackware-version`
19108         TAPEDRIVE="/dev/nst0"
19109         PSCMD="ps -e -o pid,command"
19110         PFILES="${PFILES} \
19111             platforms/slackware/Makefile \
19112             platforms/slackware/rc.bacula-fd \
19113             platforms/slackware/rc.bacula-sd \
19114             platforms/slackware/rc.bacula-dir\
19115             platforms/slackware/functions.bacula"
19116   ;;
19117 solaris)
19118         DISTVER=`uname -r`
19119         TAPEDRIVE="/dev/rmt/0cbn"
19120         PSCMD="ps -e -o pid,comm"
19121         PFILES="${PFILES} \
19122             platforms/solaris/Makefile \
19123             platforms/solaris/bacula-fd \
19124             platforms/solaris/bacula-sd \
19125             platforms/solaris/bacula-dir"
19126         if test x$DISTVER = x5.6 ; then
19127             cat >>confdefs.h <<\_ACEOF
19128 #define HAVE_OLD_SOCKOPT 1
19129 _ACEOF
19130
19131         fi
19132   ;;
19133 suse)
19134         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19135             cut -f 3 -d ' '`
19136         TAPEDRIVE="/dev/nst0"
19137         PSCMD="ps -e -o pid,command"
19138         PFILES="${PFILES} \
19139             platforms/suse/Makefile \
19140             platforms/suse/bacula-fd \
19141             platforms/suse/bacula-sd \
19142             platforms/suse/bacula-dir \
19143             platforms/suse/bacula \
19144             platforms/suse/bacula.spec"
19145   ;;
19146 suse5)
19147         DISTNAME=suse
19148         DISTVER=5.x
19149         TAPEDRIVE="/dev/nst0"
19150         PSCMD="ps -e -o pid,command"
19151         PFILES="${PFILES} \
19152             platforms/suse/Makefile \
19153             platforms/suse/bacula-fd \
19154             platforms/suse/bacula-sd \
19155             platforms/suse/bacula-dir"
19156   ;;
19157 unknown)
19158         DISTVER=unknown
19159         TAPEDRIVE="/dev/nst0"
19160   ;;
19161 *)
19162   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19163   ;;
19164 esac
19165
19166
19167
19168 LIBS="$PTHREAD_LIB $LIBS"
19169
19170 cat >>confdefs.h <<_ACEOF
19171 #define lld "$lld"
19172 _ACEOF
19173
19174 cat >>confdefs.h <<_ACEOF
19175 #define llu "$llu"
19176 _ACEOF
19177
19178
19179
19180
19181
19182
19183
19184
19185 MCOMMON=./autoconf/Make.common
19186
19187
19188 if test "x${subsysdir}" = "x${sbindir}" ; then
19189    echo " "
19190    echo " "
19191    echo "You have set both --sbindir and --with-subsys-dir"
19192    echo "  equal to: ${subsysdir} "
19193    echo "This is not permitted. Please reconfigure."
19194    echo " "
19195    echo "Aborting configuration ..."
19196    echo " "
19197    echo " "
19198    exit 1
19199 fi
19200
19201                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/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/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/tray-monitor/Makefile src/tray-monitor/tray-monitor.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"
19202           ac_config_commands="$ac_config_commands default"
19203 cat >confcache <<\_ACEOF
19204 # This file is a shell script that caches the results of configure
19205 # tests run on this system so they can be shared between configure
19206 # scripts and configure runs, see configure's option --config-cache.
19207 # It is not useful on other systems.  If it contains results you don't
19208 # want to keep, you may remove or edit it.
19209 #
19210 # config.status only pays attention to the cache file if you give it
19211 # the --recheck option to rerun configure.
19212 #
19213 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19214 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19215 # following values.
19216
19217 _ACEOF
19218
19219 # The following way of writing the cache mishandles newlines in values,
19220 # but we know of no workaround that is simple, portable, and efficient.
19221 # So, don't put newlines in cache variables' values.
19222 # Ultrix sh set writes to stderr and can't be redirected directly,
19223 # and sets the high bit in the cache file unless we assign to the vars.
19224 {
19225   (set) 2>&1 |
19226     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19227     *ac_space=\ *)
19228       # `set' does not quote correctly, so add quotes (double-quote
19229       # substitution turns \\\\ into \\, and sed turns \\ into \).
19230       sed -n \
19231         "s/'/'\\\\''/g;
19232           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19233       ;;
19234     *)
19235       # `set' quotes correctly as required by POSIX, so do not add quotes.
19236       sed -n \
19237         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19238       ;;
19239     esac;
19240 } |
19241   sed '
19242      t clear
19243      : clear
19244      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19245      t end
19246      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19247      : end' >>confcache
19248 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19249   if test -w $cache_file; then
19250     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19251     cat confcache >$cache_file
19252   else
19253     echo "not updating unwritable cache $cache_file"
19254   fi
19255 fi
19256 rm -f confcache
19257
19258 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19259 # Let make expand exec_prefix.
19260 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19261
19262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19264 # trailing colons and then remove the whole line if VPATH becomes empty
19265 # (actually we leave an empty line to preserve line numbers).
19266 if test "x$srcdir" = x.; then
19267   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19268 s/:*\$(srcdir):*/:/;
19269 s/:*\${srcdir}:*/:/;
19270 s/:*@srcdir@:*/:/;
19271 s/^\([^=]*=[    ]*\):*/\1/;
19272 s/:*$//;
19273 s/^[^=]*=[      ]*$//;
19274 }'
19275 fi
19276
19277 DEFS=-DHAVE_CONFIG_H
19278
19279 ac_libobjs=
19280 ac_ltlibobjs=
19281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19282   # 1. Remove the extension, and $U if already installed.
19283   ac_i=`echo "$ac_i" |
19284          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19285   # 2. Add them.
19286   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19287   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19288 done
19289 LIBOBJS=$ac_libobjs
19290
19291 LTLIBOBJS=$ac_ltlibobjs
19292
19293
19294
19295 : ${CONFIG_STATUS=./config.status}
19296 ac_clean_files_save=$ac_clean_files
19297 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19298 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19299 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19300 cat >$CONFIG_STATUS <<_ACEOF
19301 #! $SHELL
19302 # Generated by $as_me.
19303 # Run this file to recreate the current configuration.
19304 # Compiler output produced by configure, useful for debugging
19305 # configure, is in config.log if it exists.
19306
19307 debug=false
19308 ac_cs_recheck=false
19309 ac_cs_silent=false
19310 SHELL=\${CONFIG_SHELL-$SHELL}
19311 _ACEOF
19312
19313 cat >>$CONFIG_STATUS <<\_ACEOF
19314 ## --------------------- ##
19315 ## M4sh Initialization.  ##
19316 ## --------------------- ##
19317
19318 # Be Bourne compatible
19319 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19320   emulate sh
19321   NULLCMD=:
19322   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19323   # is contrary to our usage.  Disable this feature.
19324   alias -g '${1+"$@"}'='"$@"'
19325 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19326   set -o posix
19327 fi
19328
19329 # Support unset when possible.
19330 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19331   as_unset=unset
19332 else
19333   as_unset=false
19334 fi
19335
19336
19337 # Work around bugs in pre-3.0 UWIN ksh.
19338 $as_unset ENV MAIL MAILPATH
19339 PS1='$ '
19340 PS2='> '
19341 PS4='+ '
19342
19343 # NLS nuisances.
19344 for as_var in \
19345   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19346   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19347   LC_TELEPHONE LC_TIME
19348 do
19349   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19350     eval $as_var=C; export $as_var
19351   else
19352     $as_unset $as_var
19353   fi
19354 done
19355
19356 # Required to use basename.
19357 if expr a : '\(a\)' >/dev/null 2>&1; then
19358   as_expr=expr
19359 else
19360   as_expr=false
19361 fi
19362
19363 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19364   as_basename=basename
19365 else
19366   as_basename=false
19367 fi
19368
19369
19370 # Name of the executable.
19371 as_me=`$as_basename "$0" ||
19372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19373          X"$0" : 'X\(//\)$' \| \
19374          X"$0" : 'X\(/\)$' \| \
19375          .     : '\(.\)' 2>/dev/null ||
19376 echo X/"$0" |
19377     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19378           /^X\/\(\/\/\)$/{ s//\1/; q; }
19379           /^X\/\(\/\).*/{ s//\1/; q; }
19380           s/.*/./; q'`
19381
19382
19383 # PATH needs CR, and LINENO needs CR and PATH.
19384 # Avoid depending upon Character Ranges.
19385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19388 as_cr_digits='0123456789'
19389 as_cr_alnum=$as_cr_Letters$as_cr_digits
19390
19391 # The user is always right.
19392 if test "${PATH_SEPARATOR+set}" != set; then
19393   echo "#! /bin/sh" >conf$$.sh
19394   echo  "exit 0"   >>conf$$.sh
19395   chmod +x conf$$.sh
19396   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19397     PATH_SEPARATOR=';'
19398   else
19399     PATH_SEPARATOR=:
19400   fi
19401   rm -f conf$$.sh
19402 fi
19403
19404
19405   as_lineno_1=$LINENO
19406   as_lineno_2=$LINENO
19407   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19408   test "x$as_lineno_1" != "x$as_lineno_2" &&
19409   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19410   # Find who we are.  Look in the path if we contain no path at all
19411   # relative or not.
19412   case $0 in
19413     *[\\/]* ) as_myself=$0 ;;
19414     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19415 for as_dir in $PATH
19416 do
19417   IFS=$as_save_IFS
19418   test -z "$as_dir" && as_dir=.
19419   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19420 done
19421
19422        ;;
19423   esac
19424   # We did not find ourselves, most probably we were run as `sh COMMAND'
19425   # in which case we are not to be found in the path.
19426   if test "x$as_myself" = x; then
19427     as_myself=$0
19428   fi
19429   if test ! -f "$as_myself"; then
19430     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19431 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19432    { (exit 1); exit 1; }; }
19433   fi
19434   case $CONFIG_SHELL in
19435   '')
19436     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19437 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19438 do
19439   IFS=$as_save_IFS
19440   test -z "$as_dir" && as_dir=.
19441   for as_base in sh bash ksh sh5; do
19442          case $as_dir in
19443          /*)
19444            if ("$as_dir/$as_base" -c '
19445   as_lineno_1=$LINENO
19446   as_lineno_2=$LINENO
19447   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19448   test "x$as_lineno_1" != "x$as_lineno_2" &&
19449   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19450              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19451              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19452              CONFIG_SHELL=$as_dir/$as_base
19453              export CONFIG_SHELL
19454              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19455            fi;;
19456          esac
19457        done
19458 done
19459 ;;
19460   esac
19461
19462   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19463   # uniformly replaced by the line number.  The first 'sed' inserts a
19464   # line-number line before each line; the second 'sed' does the real
19465   # work.  The second script uses 'N' to pair each line-number line
19466   # with the numbered line, and appends trailing '-' during
19467   # substitution so that $LINENO is not a special case at line end.
19468   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19469   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19470   sed '=' <$as_myself |
19471     sed '
19472       N
19473       s,$,-,
19474       : loop
19475       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19476       t loop
19477       s,-$,,
19478       s,^['$as_cr_digits']*\n,,
19479     ' >$as_me.lineno &&
19480   chmod +x $as_me.lineno ||
19481     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19482 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19483    { (exit 1); exit 1; }; }
19484
19485   # Don't try to exec as it changes $[0], causing all sort of problems
19486   # (the dirname of $[0] is not the place where we might find the
19487   # original and so on.  Autoconf is especially sensible to this).
19488   . ./$as_me.lineno
19489   # Exit status is that of the last command.
19490   exit
19491 }
19492
19493
19494 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19495   *c*,-n*) ECHO_N= ECHO_C='
19496 ' ECHO_T='      ' ;;
19497   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19498   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19499 esac
19500
19501 if expr a : '\(a\)' >/dev/null 2>&1; then
19502   as_expr=expr
19503 else
19504   as_expr=false
19505 fi
19506
19507 rm -f conf$$ conf$$.exe conf$$.file
19508 echo >conf$$.file
19509 if ln -s conf$$.file conf$$ 2>/dev/null; then
19510   # We could just check for DJGPP; but this test a) works b) is more generic
19511   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19512   if test -f conf$$.exe; then
19513     # Don't use ln at all; we don't have any links
19514     as_ln_s='cp -p'
19515   else
19516     as_ln_s='ln -s'
19517   fi
19518 elif ln conf$$.file conf$$ 2>/dev/null; then
19519   as_ln_s=ln
19520 else
19521   as_ln_s='cp -p'
19522 fi
19523 rm -f conf$$ conf$$.exe conf$$.file
19524
19525 if mkdir -p . 2>/dev/null; then
19526   as_mkdir_p=:
19527 else
19528   as_mkdir_p=false
19529 fi
19530
19531 as_executable_p="test -f"
19532
19533 # Sed expression to map a string onto a valid CPP name.
19534 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19535
19536 # Sed expression to map a string onto a valid variable name.
19537 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19538
19539
19540 # IFS
19541 # We need space, tab and new line, in precisely that order.
19542 as_nl='
19543 '
19544 IFS="   $as_nl"
19545
19546 # CDPATH.
19547 $as_unset CDPATH
19548
19549 exec 6>&1
19550
19551 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19552 # report actual input values of CONFIG_FILES etc. instead of their
19553 # values after options handling.  Logging --version etc. is OK.
19554 exec 5>>config.log
19555 {
19556   echo
19557   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19558 ## Running $as_me. ##
19559 _ASBOX
19560 } >&5
19561 cat >&5 <<_CSEOF
19562
19563 This file was extended by $as_me, which was
19564 generated by GNU Autoconf 2.57.  Invocation command line was
19565
19566   CONFIG_FILES    = $CONFIG_FILES
19567   CONFIG_HEADERS  = $CONFIG_HEADERS
19568   CONFIG_LINKS    = $CONFIG_LINKS
19569   CONFIG_COMMANDS = $CONFIG_COMMANDS
19570   $ $0 $@
19571
19572 _CSEOF
19573 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19574 echo >&5
19575 _ACEOF
19576
19577 # Files that config.status was made for.
19578 if test -n "$ac_config_files"; then
19579   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19580 fi
19581
19582 if test -n "$ac_config_headers"; then
19583   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19584 fi
19585
19586 if test -n "$ac_config_links"; then
19587   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19588 fi
19589
19590 if test -n "$ac_config_commands"; then
19591   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19592 fi
19593
19594 cat >>$CONFIG_STATUS <<\_ACEOF
19595
19596 ac_cs_usage="\
19597 \`$as_me' instantiates files from templates according to the
19598 current configuration.
19599
19600 Usage: $0 [OPTIONS] [FILE]...
19601
19602   -h, --help       print this help, then exit
19603   -V, --version    print version number, then exit
19604   -q, --quiet      do not print progress messages
19605   -d, --debug      don't remove temporary files
19606       --recheck    update $as_me by reconfiguring in the same conditions
19607   --file=FILE[:TEMPLATE]
19608                    instantiate the configuration file FILE
19609   --header=FILE[:TEMPLATE]
19610                    instantiate the configuration header FILE
19611
19612 Configuration files:
19613 $config_files
19614
19615 Configuration headers:
19616 $config_headers
19617
19618 Configuration commands:
19619 $config_commands
19620
19621 Report bugs to <bug-autoconf@gnu.org>."
19622 _ACEOF
19623
19624 cat >>$CONFIG_STATUS <<_ACEOF
19625 ac_cs_version="\\
19626 config.status
19627 configured by $0, generated by GNU Autoconf 2.57,
19628   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19629
19630 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19631 Free Software Foundation, Inc.
19632 This config.status script is free software; the Free Software Foundation
19633 gives unlimited permission to copy, distribute and modify it."
19634 srcdir=$srcdir
19635 INSTALL="$INSTALL"
19636 _ACEOF
19637
19638 cat >>$CONFIG_STATUS <<\_ACEOF
19639 # If no file are specified by the user, then we need to provide default
19640 # value.  By we need to know if files were specified by the user.
19641 ac_need_defaults=:
19642 while test $# != 0
19643 do
19644   case $1 in
19645   --*=*)
19646     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19647     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19648     ac_shift=:
19649     ;;
19650   -*)
19651     ac_option=$1
19652     ac_optarg=$2
19653     ac_shift=shift
19654     ;;
19655   *) # This is not an option, so the user has probably given explicit
19656      # arguments.
19657      ac_option=$1
19658      ac_need_defaults=false;;
19659   esac
19660
19661   case $ac_option in
19662   # Handling of the options.
19663 _ACEOF
19664 cat >>$CONFIG_STATUS <<\_ACEOF
19665   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19666     ac_cs_recheck=: ;;
19667   --version | --vers* | -V )
19668     echo "$ac_cs_version"; exit 0 ;;
19669   --he | --h)
19670     # Conflict between --help and --header
19671     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19672 Try \`$0 --help' for more information." >&5
19673 echo "$as_me: error: ambiguous option: $1
19674 Try \`$0 --help' for more information." >&2;}
19675    { (exit 1); exit 1; }; };;
19676   --help | --hel | -h )
19677     echo "$ac_cs_usage"; exit 0 ;;
19678   --debug | --d* | -d )
19679     debug=: ;;
19680   --file | --fil | --fi | --f )
19681     $ac_shift
19682     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19683     ac_need_defaults=false;;
19684   --header | --heade | --head | --hea )
19685     $ac_shift
19686     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19687     ac_need_defaults=false;;
19688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19690     ac_cs_silent=: ;;
19691
19692   # This is an error.
19693   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19694 Try \`$0 --help' for more information." >&5
19695 echo "$as_me: error: unrecognized option: $1
19696 Try \`$0 --help' for more information." >&2;}
19697    { (exit 1); exit 1; }; } ;;
19698
19699   *) ac_config_targets="$ac_config_targets $1" ;;
19700
19701   esac
19702   shift
19703 done
19704
19705 ac_configure_extra_args=
19706
19707 if $ac_cs_silent; then
19708   exec 6>/dev/null
19709   ac_configure_extra_args="$ac_configure_extra_args --silent"
19710 fi
19711
19712 _ACEOF
19713 cat >>$CONFIG_STATUS <<_ACEOF
19714 if \$ac_cs_recheck; then
19715   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19716   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19717 fi
19718
19719 _ACEOF
19720
19721
19722
19723
19724
19725 cat >>$CONFIG_STATUS <<\_ACEOF
19726 for ac_config_target in $ac_config_targets
19727 do
19728   case "$ac_config_target" in
19729   # Handling of arguments.
19730   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19731   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19732   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19733   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19734   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19735   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19736   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19737   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19738   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19739   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19740   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19741   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19742   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19743   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19744   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19745   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19746   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19747   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19748   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19749   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19750   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19751   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19752   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19753   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19754   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19755   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19756   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19757   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19758   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19759   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19760   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19761   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19762   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19763   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19764   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19765   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19766   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19767   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19768   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19769   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19770   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19771   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19772   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19773   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19774   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19775   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19776   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19777   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19778   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19779   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19780   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19781   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19782   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19783   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19784   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19785   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19786   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19787   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19788   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19789   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19790   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19791   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19792   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19793   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19794   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19795   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19796   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19797   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19798   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19799   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19800   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19801   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19802   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19803   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19804   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19805   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19806   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19807   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19808   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19809   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19810   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19811   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19812   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19813   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19814   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19815   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19816   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19817   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19818   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19819   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19820   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19821   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19822   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19823   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19824 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19825    { (exit 1); exit 1; }; };;
19826   esac
19827 done
19828
19829 # If the user did not use the arguments to specify the items to instantiate,
19830 # then the envvar interface is used.  Set only those that are not.
19831 # We use the long form for the default assignment because of an extremely
19832 # bizarre bug on SunOS 4.1.3.
19833 if $ac_need_defaults; then
19834   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19835   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19836   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19837 fi
19838
19839 # Have a temporary directory for convenience.  Make it in the build tree
19840 # simply because there is no reason to put it here, and in addition,
19841 # creating and moving files from /tmp can sometimes cause problems.
19842 # Create a temporary directory, and hook for its removal unless debugging.
19843 $debug ||
19844 {
19845   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19846   trap '{ (exit 1); exit 1; }' 1 2 13 15
19847 }
19848
19849 # Create a (secure) tmp directory for tmp files.
19850
19851 {
19852   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19853   test -n "$tmp" && test -d "$tmp"
19854 }  ||
19855 {
19856   tmp=./confstat$$-$RANDOM
19857   (umask 077 && mkdir $tmp)
19858 } ||
19859 {
19860    echo "$me: cannot create a temporary directory in ." >&2
19861    { (exit 1); exit 1; }
19862 }
19863
19864 _ACEOF
19865
19866 cat >>$CONFIG_STATUS <<_ACEOF
19867
19868 #
19869 # CONFIG_FILES section.
19870 #
19871
19872 # No need to generate the scripts if there are no CONFIG_FILES.
19873 # This happens for instance when ./config.status config.h
19874 if test -n "\$CONFIG_FILES"; then
19875   # Protect against being on the right side of a sed subst in config.status.
19876   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19877    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19878 s,@SHELL@,$SHELL,;t t
19879 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19880 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19881 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19882 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19883 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19884 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19885 s,@exec_prefix@,$exec_prefix,;t t
19886 s,@prefix@,$prefix,;t t
19887 s,@program_transform_name@,$program_transform_name,;t t
19888 s,@bindir@,$bindir,;t t
19889 s,@sbindir@,$sbindir,;t t
19890 s,@libexecdir@,$libexecdir,;t t
19891 s,@datadir@,$datadir,;t t
19892 s,@sysconfdir@,$sysconfdir,;t t
19893 s,@sharedstatedir@,$sharedstatedir,;t t
19894 s,@localstatedir@,$localstatedir,;t t
19895 s,@libdir@,$libdir,;t t
19896 s,@includedir@,$includedir,;t t
19897 s,@oldincludedir@,$oldincludedir,;t t
19898 s,@infodir@,$infodir,;t t
19899 s,@mandir@,$mandir,;t t
19900 s,@build_alias@,$build_alias,;t t
19901 s,@host_alias@,$host_alias,;t t
19902 s,@target_alias@,$target_alias,;t t
19903 s,@DEFS@,$DEFS,;t t
19904 s,@ECHO_C@,$ECHO_C,;t t
19905 s,@ECHO_N@,$ECHO_N,;t t
19906 s,@ECHO_T@,$ECHO_T,;t t
19907 s,@LIBS@,$LIBS,;t t
19908 s,@BUILD_DIR@,$BUILD_DIR,;t t
19909 s,@TRUEPRG@,$TRUEPRG,;t t
19910 s,@FALSEPRG@,$FALSEPRG,;t t
19911 s,@VERSION@,$VERSION,;t t
19912 s,@DATE@,$DATE,;t t
19913 s,@LSMDATE@,$LSMDATE,;t t
19914 s,@CC@,$CC,;t t
19915 s,@CFLAGS@,$CFLAGS,;t t
19916 s,@LDFLAGS@,$LDFLAGS,;t t
19917 s,@CPPFLAGS@,$CPPFLAGS,;t t
19918 s,@ac_ct_CC@,$ac_ct_CC,;t t
19919 s,@EXEEXT@,$EXEEXT,;t t
19920 s,@OBJEXT@,$OBJEXT,;t t
19921 s,@CXX@,$CXX,;t t
19922 s,@CXXFLAGS@,$CXXFLAGS,;t t
19923 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19924 s,@CPP@,$CPP,;t t
19925 s,@EGREP@,$EGREP,;t t
19926 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19927 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19928 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19929 s,@RANLIB@,$RANLIB,;t t
19930 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19931 s,@MV@,$MV,;t t
19932 s,@RM@,$RM,;t t
19933 s,@CP@,$CP,;t t
19934 s,@SED@,$SED,;t t
19935 s,@AWK@,$AWK,;t t
19936 s,@ECHO@,$ECHO,;t t
19937 s,@CMP@,$CMP,;t t
19938 s,@TBL@,$TBL,;t t
19939 s,@AR@,$AR,;t t
19940 s,@OPENSSL@,$OPENSSL,;t t
19941 s,@MTX@,$MTX,;t t
19942 s,@PKGCONFIG@,$PKGCONFIG,;t t
19943 s,@WXCONFIG@,$WXCONFIG,;t t
19944 s,@CDRECORD@,$CDRECORD,;t t
19945 s,@ARFLAGS@,$ARFLAGS,;t t
19946 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19947 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19948 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19949 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19950 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19951 s,@build@,$build,;t t
19952 s,@build_cpu@,$build_cpu,;t t
19953 s,@build_vendor@,$build_vendor,;t t
19954 s,@build_os@,$build_os,;t t
19955 s,@host@,$host,;t t
19956 s,@host_cpu@,$host_cpu,;t t
19957 s,@host_vendor@,$host_vendor,;t t
19958 s,@host_os@,$host_os,;t t
19959 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19960 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19961 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19962 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19963 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19964 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19965 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19966 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19967 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19968 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19969 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19970 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19971 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19972 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19973 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19974 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19975 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19976 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19977 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19978 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19979 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19980 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19981 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19982 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19983 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19984 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19985 s,@MSGFMT@,$MSGFMT,;t t
19986 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19987 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19988 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19989 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19990 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19991 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19992 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19993 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19994 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19995 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19996 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19997 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19998 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19999 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20000 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20001 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20002 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20003 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20004 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20005 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20006 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20007 s,@GNOME_DIR@,$GNOME_DIR,;t t
20008 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20009 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20010 s,@WX_DIR@,$WX_DIR,;t t
20011 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20012 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20013 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20014 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20015 s,@STATIC_FD@,$STATIC_FD,;t t
20016 s,@STATIC_SD@,$STATIC_SD,;t t
20017 s,@STATIC_DIR@,$STATIC_DIR,;t t
20018 s,@STATIC_CONS@,$STATIC_CONS,;t t
20019 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20020 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20021 s,@ALL_DIRS@,$ALL_DIRS,;t t
20022 s,@CONS_INC@,$CONS_INC,;t t
20023 s,@CONS_OBJ@,$CONS_OBJ,;t t
20024 s,@CONS_SRC@,$CONS_SRC,;t t
20025 s,@CONS_LIBS@,$CONS_LIBS,;t t
20026 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20027 s,@READLINE_SRC@,$READLINE_SRC,;t t
20028 s,@CDSTL@,$CDSTL,;t t
20029 s,@working_dir@,$working_dir,;t t
20030 s,@scriptdir@,$scriptdir,;t t
20031 s,@dump_email@,$dump_email,;t t
20032 s,@job_email@,$job_email,;t t
20033 s,@smtp_host@,$smtp_host,;t t
20034 s,@piddir@,$piddir,;t t
20035 s,@subsysdir@,$subsysdir,;t t
20036 s,@baseport@,$baseport,;t t
20037 s,@dir_port@,$dir_port,;t t
20038 s,@fd_port@,$fd_port,;t t
20039 s,@sd_port@,$sd_port,;t t
20040 s,@dir_password@,$dir_password,;t t
20041 s,@fd_password@,$fd_password,;t t
20042 s,@sd_password@,$sd_password,;t t
20043 s,@mon_dir_password@,$mon_dir_password,;t t
20044 s,@mon_fd_password@,$mon_fd_password,;t t
20045 s,@mon_sd_password@,$mon_sd_password,;t t
20046 s,@dir_user@,$dir_user,;t t
20047 s,@dir_group@,$dir_group,;t t
20048 s,@sd_user@,$sd_user,;t t
20049 s,@sd_group@,$sd_group,;t t
20050 s,@fd_user@,$fd_user,;t t
20051 s,@fd_group@,$fd_group,;t t
20052 s,@SBINPERM@,$SBINPERM,;t t
20053 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20054 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20055 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20056 s,@cats@,$cats,;t t
20057 s,@DB_NAME@,$DB_NAME,;t t
20058 s,@GETCONF@,$GETCONF,;t t
20059 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20060 s,@X_CFLAGS@,$X_CFLAGS,;t t
20061 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20062 s,@X_LIBS@,$X_LIBS,;t t
20063 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20064 s,@LIBOBJS@,$LIBOBJS,;t t
20065 s,@ALLOCA@,$ALLOCA,;t t
20066 s,@FDLIBS@,$FDLIBS,;t t
20067 s,@DEBUG@,$DEBUG,;t t
20068 s,@DINCLUDE@,$DINCLUDE,;t t
20069 s,@DLIB@,$DLIB,;t t
20070 s,@DB_LIBS@,$DB_LIBS,;t t
20071 s,@WCFLAGS@,$WCFLAGS,;t t
20072 s,@WLDFLAGS@,$WLDFLAGS,;t t
20073 s,@OBJLIST@,$OBJLIST,;t t
20074 s,@hostname@,$hostname,;t t
20075 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20076 s,@PSCMD@,$PSCMD,;t t
20077 s,@WIN32@,$WIN32,;t t
20078 s,@MACOSX@,$MACOSX,;t t
20079 s,@DISTNAME@,$DISTNAME,;t t
20080 s,@DISTVER@,$DISTVER,;t t
20081 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20082 /@MCOMMON@/r $MCOMMON
20083 s,@MCOMMON@,,;t t
20084 CEOF
20085
20086 _ACEOF
20087
20088   cat >>$CONFIG_STATUS <<\_ACEOF
20089   # Split the substitutions into bite-sized pieces for seds with
20090   # small command number limits, like on Digital OSF/1 and HP-UX.
20091   ac_max_sed_lines=48
20092   ac_sed_frag=1 # Number of current file.
20093   ac_beg=1 # First line for current file.
20094   ac_end=$ac_max_sed_lines # Line after last line for current file.
20095   ac_more_lines=:
20096   ac_sed_cmds=
20097   while $ac_more_lines; do
20098     if test $ac_beg -gt 1; then
20099       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20100     else
20101       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20102     fi
20103     if test ! -s $tmp/subs.frag; then
20104       ac_more_lines=false
20105     else
20106       # The purpose of the label and of the branching condition is to
20107       # speed up the sed processing (if there are no `@' at all, there
20108       # is no need to browse any of the substitutions).
20109       # These are the two extra sed commands mentioned above.
20110       (echo ':t
20111   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20112       if test -z "$ac_sed_cmds"; then
20113         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20114       else
20115         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20116       fi
20117       ac_sed_frag=`expr $ac_sed_frag + 1`
20118       ac_beg=$ac_end
20119       ac_end=`expr $ac_end + $ac_max_sed_lines`
20120     fi
20121   done
20122   if test -z "$ac_sed_cmds"; then
20123     ac_sed_cmds=cat
20124   fi
20125 fi # test -n "$CONFIG_FILES"
20126
20127 _ACEOF
20128 cat >>$CONFIG_STATUS <<\_ACEOF
20129 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20130   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20131   case $ac_file in
20132   - | *:- | *:-:* ) # input from stdin
20133         cat >$tmp/stdin
20134         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20135         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20136   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20137         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20138   * )   ac_file_in=$ac_file.in ;;
20139   esac
20140
20141   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20142   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20144          X"$ac_file" : 'X\(//\)[^/]' \| \
20145          X"$ac_file" : 'X\(//\)$' \| \
20146          X"$ac_file" : 'X\(/\)' \| \
20147          .     : '\(.\)' 2>/dev/null ||
20148 echo X"$ac_file" |
20149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20151           /^X\(\/\/\)$/{ s//\1/; q; }
20152           /^X\(\/\).*/{ s//\1/; q; }
20153           s/.*/./; q'`
20154   { if $as_mkdir_p; then
20155     mkdir -p "$ac_dir"
20156   else
20157     as_dir="$ac_dir"
20158     as_dirs=
20159     while test ! -d "$as_dir"; do
20160       as_dirs="$as_dir $as_dirs"
20161       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20163          X"$as_dir" : 'X\(//\)[^/]' \| \
20164          X"$as_dir" : 'X\(//\)$' \| \
20165          X"$as_dir" : 'X\(/\)' \| \
20166          .     : '\(.\)' 2>/dev/null ||
20167 echo X"$as_dir" |
20168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20170           /^X\(\/\/\)$/{ s//\1/; q; }
20171           /^X\(\/\).*/{ s//\1/; q; }
20172           s/.*/./; q'`
20173     done
20174     test ! -n "$as_dirs" || mkdir $as_dirs
20175   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20177    { (exit 1); exit 1; }; }; }
20178
20179   ac_builddir=.
20180
20181 if test "$ac_dir" != .; then
20182   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20183   # A "../" for each directory in $ac_dir_suffix.
20184   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20185 else
20186   ac_dir_suffix= ac_top_builddir=
20187 fi
20188
20189 case $srcdir in
20190   .)  # No --srcdir option.  We are building in place.
20191     ac_srcdir=.
20192     if test -z "$ac_top_builddir"; then
20193        ac_top_srcdir=.
20194     else
20195        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20196     fi ;;
20197   [\\/]* | ?:[\\/]* )  # Absolute path.
20198     ac_srcdir=$srcdir$ac_dir_suffix;
20199     ac_top_srcdir=$srcdir ;;
20200   *) # Relative path.
20201     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20202     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20203 esac
20204 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20205 # absolute.
20206 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20207 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20208 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20209 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20210
20211
20212   case $INSTALL in
20213   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20214   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20215   esac
20216
20217   if test x"$ac_file" != x-; then
20218     { echo "$as_me:$LINENO: creating $ac_file" >&5
20219 echo "$as_me: creating $ac_file" >&6;}
20220     rm -f "$ac_file"
20221   fi
20222   # Let's still pretend it is `configure' which instantiates (i.e., don't
20223   # use $as_me), people would be surprised to read:
20224   #    /* config.h.  Generated by config.status.  */
20225   if test x"$ac_file" = x-; then
20226     configure_input=
20227   else
20228     configure_input="$ac_file.  "
20229   fi
20230   configure_input=$configure_input"Generated from `echo $ac_file_in |
20231                                      sed 's,.*/,,'` by configure."
20232
20233   # First look for the input files in the build tree, otherwise in the
20234   # src tree.
20235   ac_file_inputs=`IFS=:
20236     for f in $ac_file_in; do
20237       case $f in
20238       -) echo $tmp/stdin ;;
20239       [\\/$]*)
20240          # Absolute (can't be DOS-style, as IFS=:)
20241          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20242 echo "$as_me: error: cannot find input file: $f" >&2;}
20243    { (exit 1); exit 1; }; }
20244          echo $f;;
20245       *) # Relative
20246          if test -f "$f"; then
20247            # Build tree
20248            echo $f
20249          elif test -f "$srcdir/$f"; then
20250            # Source tree
20251            echo $srcdir/$f
20252          else
20253            # /dev/null tree
20254            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20255 echo "$as_me: error: cannot find input file: $f" >&2;}
20256    { (exit 1); exit 1; }; }
20257          fi;;
20258       esac
20259     done` || { (exit 1); exit 1; }
20260 _ACEOF
20261 cat >>$CONFIG_STATUS <<_ACEOF
20262   sed "$ac_vpsub
20263 $extrasub
20264 _ACEOF
20265 cat >>$CONFIG_STATUS <<\_ACEOF
20266 :t
20267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20268 s,@configure_input@,$configure_input,;t t
20269 s,@srcdir@,$ac_srcdir,;t t
20270 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20271 s,@top_srcdir@,$ac_top_srcdir,;t t
20272 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20273 s,@builddir@,$ac_builddir,;t t
20274 s,@abs_builddir@,$ac_abs_builddir,;t t
20275 s,@top_builddir@,$ac_top_builddir,;t t
20276 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20277 s,@INSTALL@,$ac_INSTALL,;t t
20278 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20279   rm -f $tmp/stdin
20280   if test x"$ac_file" != x-; then
20281     mv $tmp/out $ac_file
20282   else
20283     cat $tmp/out
20284     rm -f $tmp/out
20285   fi
20286
20287 done
20288 _ACEOF
20289 cat >>$CONFIG_STATUS <<\_ACEOF
20290
20291 #
20292 # CONFIG_HEADER section.
20293 #
20294
20295 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20296 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20297 #
20298 # ac_d sets the value in "#define NAME VALUE" lines.
20299 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20300 ac_dB='[        ].*$,\1#\2'
20301 ac_dC=' '
20302 ac_dD=',;t'
20303 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20304 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20305 ac_uB='$,\1#\2define\3'
20306 ac_uC=' '
20307 ac_uD=',;t'
20308
20309 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20310   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20311   case $ac_file in
20312   - | *:- | *:-:* ) # input from stdin
20313         cat >$tmp/stdin
20314         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20315         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20316   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20317         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20318   * )   ac_file_in=$ac_file.in ;;
20319   esac
20320
20321   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20322 echo "$as_me: creating $ac_file" >&6;}
20323
20324   # First look for the input files in the build tree, otherwise in the
20325   # src tree.
20326   ac_file_inputs=`IFS=:
20327     for f in $ac_file_in; do
20328       case $f in
20329       -) echo $tmp/stdin ;;
20330       [\\/$]*)
20331          # Absolute (can't be DOS-style, as IFS=:)
20332          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20333 echo "$as_me: error: cannot find input file: $f" >&2;}
20334    { (exit 1); exit 1; }; }
20335          echo $f;;
20336       *) # Relative
20337          if test -f "$f"; then
20338            # Build tree
20339            echo $f
20340          elif test -f "$srcdir/$f"; then
20341            # Source tree
20342            echo $srcdir/$f
20343          else
20344            # /dev/null tree
20345            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20346 echo "$as_me: error: cannot find input file: $f" >&2;}
20347    { (exit 1); exit 1; }; }
20348          fi;;
20349       esac
20350     done` || { (exit 1); exit 1; }
20351   # Remove the trailing spaces.
20352   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20353
20354 _ACEOF
20355
20356 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20357 # `conftest.undefs', that substitutes the proper values into
20358 # config.h.in to produce config.h.  The first handles `#define'
20359 # templates, and the second `#undef' templates.
20360 # And first: Protect against being on the right side of a sed subst in
20361 # config.status.  Protect against being in an unquoted here document
20362 # in config.status.
20363 rm -f conftest.defines conftest.undefs
20364 # Using a here document instead of a string reduces the quoting nightmare.
20365 # Putting comments in sed scripts is not portable.
20366 #
20367 # `end' is used to avoid that the second main sed command (meant for
20368 # 0-ary CPP macros) applies to n-ary macro definitions.
20369 # See the Autoconf documentation for `clear'.
20370 cat >confdef2sed.sed <<\_ACEOF
20371 s/[\\&,]/\\&/g
20372 s,[\\$`],\\&,g
20373 t clear
20374 : clear
20375 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20376 t end
20377 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20378 : end
20379 _ACEOF
20380 # If some macros were called several times there might be several times
20381 # the same #defines, which is useless.  Nevertheless, we may not want to
20382 # sort them, since we want the *last* AC-DEFINE to be honored.
20383 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20384 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20385 rm -f confdef2sed.sed
20386
20387 # This sed command replaces #undef with comments.  This is necessary, for
20388 # example, in the case of _POSIX_SOURCE, which is predefined and required
20389 # on some systems where configure will not decide to define it.
20390 cat >>conftest.undefs <<\_ACEOF
20391 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20392 _ACEOF
20393
20394 # Break up conftest.defines because some shells have a limit on the size
20395 # of here documents, and old seds have small limits too (100 cmds).
20396 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20397 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20398 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20399 echo '  :' >>$CONFIG_STATUS
20400 rm -f conftest.tail
20401 while grep . conftest.defines >/dev/null
20402 do
20403   # Write a limited-size here document to $tmp/defines.sed.
20404   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20405   # Speed up: don't consider the non `#define' lines.
20406   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20407   # Work around the forget-to-reset-the-flag bug.
20408   echo 't clr' >>$CONFIG_STATUS
20409   echo ': clr' >>$CONFIG_STATUS
20410   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20411   echo 'CEOF
20412   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20413   rm -f $tmp/in
20414   mv $tmp/out $tmp/in
20415 ' >>$CONFIG_STATUS
20416   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20417   rm -f conftest.defines
20418   mv conftest.tail conftest.defines
20419 done
20420 rm -f conftest.defines
20421 echo '  fi # grep' >>$CONFIG_STATUS
20422 echo >>$CONFIG_STATUS
20423
20424 # Break up conftest.undefs because some shells have a limit on the size
20425 # of here documents, and old seds have small limits too (100 cmds).
20426 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20427 rm -f conftest.tail
20428 while grep . conftest.undefs >/dev/null
20429 do
20430   # Write a limited-size here document to $tmp/undefs.sed.
20431   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20432   # Speed up: don't consider the non `#undef'
20433   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20434   # Work around the forget-to-reset-the-flag bug.
20435   echo 't clr' >>$CONFIG_STATUS
20436   echo ': clr' >>$CONFIG_STATUS
20437   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20438   echo 'CEOF
20439   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20440   rm -f $tmp/in
20441   mv $tmp/out $tmp/in
20442 ' >>$CONFIG_STATUS
20443   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20444   rm -f conftest.undefs
20445   mv conftest.tail conftest.undefs
20446 done
20447 rm -f conftest.undefs
20448
20449 cat >>$CONFIG_STATUS <<\_ACEOF
20450   # Let's still pretend it is `configure' which instantiates (i.e., don't
20451   # use $as_me), people would be surprised to read:
20452   #    /* config.h.  Generated by config.status.  */
20453   if test x"$ac_file" = x-; then
20454     echo "/* Generated by configure.  */" >$tmp/config.h
20455   else
20456     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20457   fi
20458   cat $tmp/in >>$tmp/config.h
20459   rm -f $tmp/in
20460   if test x"$ac_file" != x-; then
20461     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20462       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20463 echo "$as_me: $ac_file is unchanged" >&6;}
20464     else
20465       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20467          X"$ac_file" : 'X\(//\)[^/]' \| \
20468          X"$ac_file" : 'X\(//\)$' \| \
20469          X"$ac_file" : 'X\(/\)' \| \
20470          .     : '\(.\)' 2>/dev/null ||
20471 echo X"$ac_file" |
20472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20474           /^X\(\/\/\)$/{ s//\1/; q; }
20475           /^X\(\/\).*/{ s//\1/; q; }
20476           s/.*/./; q'`
20477       { if $as_mkdir_p; then
20478     mkdir -p "$ac_dir"
20479   else
20480     as_dir="$ac_dir"
20481     as_dirs=
20482     while test ! -d "$as_dir"; do
20483       as_dirs="$as_dir $as_dirs"
20484       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20486          X"$as_dir" : 'X\(//\)[^/]' \| \
20487          X"$as_dir" : 'X\(//\)$' \| \
20488          X"$as_dir" : 'X\(/\)' \| \
20489          .     : '\(.\)' 2>/dev/null ||
20490 echo X"$as_dir" |
20491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20492           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20493           /^X\(\/\/\)$/{ s//\1/; q; }
20494           /^X\(\/\).*/{ s//\1/; q; }
20495           s/.*/./; q'`
20496     done
20497     test ! -n "$as_dirs" || mkdir $as_dirs
20498   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20500    { (exit 1); exit 1; }; }; }
20501
20502       rm -f $ac_file
20503       mv $tmp/config.h $ac_file
20504     fi
20505   else
20506     cat $tmp/config.h
20507     rm -f $tmp/config.h
20508   fi
20509 done
20510 _ACEOF
20511 cat >>$CONFIG_STATUS <<\_ACEOF
20512
20513 #
20514 # CONFIG_COMMANDS section.
20515 #
20516 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20517   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20518   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20519   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20520 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20521          X"$ac_dest" : 'X\(//\)[^/]' \| \
20522          X"$ac_dest" : 'X\(//\)$' \| \
20523          X"$ac_dest" : 'X\(/\)' \| \
20524          .     : '\(.\)' 2>/dev/null ||
20525 echo X"$ac_dest" |
20526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20528           /^X\(\/\/\)$/{ s//\1/; q; }
20529           /^X\(\/\).*/{ s//\1/; q; }
20530           s/.*/./; q'`
20531   ac_builddir=.
20532
20533 if test "$ac_dir" != .; then
20534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20535   # A "../" for each directory in $ac_dir_suffix.
20536   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20537 else
20538   ac_dir_suffix= ac_top_builddir=
20539 fi
20540
20541 case $srcdir in
20542   .)  # No --srcdir option.  We are building in place.
20543     ac_srcdir=.
20544     if test -z "$ac_top_builddir"; then
20545        ac_top_srcdir=.
20546     else
20547        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20548     fi ;;
20549   [\\/]* | ?:[\\/]* )  # Absolute path.
20550     ac_srcdir=$srcdir$ac_dir_suffix;
20551     ac_top_srcdir=$srcdir ;;
20552   *) # Relative path.
20553     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20554     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20555 esac
20556 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20557 # absolute.
20558 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20559 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20560 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20561 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20562
20563
20564   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20565 echo "$as_me: executing $ac_dest commands" >&6;}
20566   case $ac_dest in
20567     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20568  ;;
20569   esac
20570 done
20571 _ACEOF
20572
20573 cat >>$CONFIG_STATUS <<\_ACEOF
20574
20575 { (exit 0); exit 0; }
20576 _ACEOF
20577 chmod +x $CONFIG_STATUS
20578 ac_clean_files=$ac_clean_files_save
20579
20580
20581 # configure is writing to config.log, and then calls config.status.
20582 # config.status does its own redirection, appending to config.log.
20583 # Unfortunately, on DOS this fails, as config.log is still kept open
20584 # by configure, so config.status won't be able to write to it; its
20585 # output is simply discarded.  So we exec the FD to /dev/null,
20586 # effectively closing config.log, so it can be properly (re)opened and
20587 # appended to by config.status.  When coming back to configure, we
20588 # need to make the FD available again.
20589 if test "$no_create" != yes; then
20590   ac_cs_success=:
20591   ac_config_status_args=
20592   test "$silent" = yes &&
20593     ac_config_status_args="$ac_config_status_args --quiet"
20594   exec 5>/dev/null
20595   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20596   exec 5>>config.log
20597   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20598   # would make configure fail if this is the last instruction.
20599   $ac_cs_success || { (exit 1); exit 1; }
20600 fi
20601
20602
20603 cd scripts
20604 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20605 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20606 cd ..
20607
20608 c=src/cats
20609
20610 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20611 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20612
20613 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20614 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20615
20616 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20617 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20618
20619 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20620 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20621
20622 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20623 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20624
20625 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20626 chmod 755 $c/sqlite
20627 chmod 755 $c/mysql
20628
20629 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20630    largefile_support="yes"
20631 fi
20632
20633 #
20634 # A whole lot of hand springs to get the compiler version.
20635 #  This is because gcc changed the output in version 3.0
20636 #
20637 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20638 if test "x${CCVERSION}" = "x" ; then
20639   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20640 fi
20641 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20642 if test x"${CXXVERSION}" = x ; then
20643   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20644 fi
20645
20646 if test "x${subsysdir}" = "x${sbindir}" ; then
20647    echo " "
20648    echo " "
20649    echo "You have set --sbindir and --with-subsys-dir"
20650    echo "  both equal to: ${subsysdir} "
20651    echo "  This is not permitted. Please reconfigure."
20652    echo " "
20653    echo "Aborting configuration ..."
20654    echo " "
20655    echo " "
20656    exit 1
20657 fi
20658
20659 if test "x${db_name}" = "xInternal" ; then
20660    echo " "
20661    echo " "
20662    echo "You have not specified either --enable-client-only or one of the"
20663    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20664    echo "  This is not permitted. Please reconfigure."
20665    echo " "
20666    echo "Aborting the configuration ..."
20667    echo " "
20668    echo " "
20669    exit 1
20670 fi
20671
20672 echo "
20673 Configuration on `date`:
20674
20675   Host:                       $host -- ${DISTNAME} ${DISTVER}
20676   Bacula version:             ${VERSION} (${DATE})
20677   Source code location:       ${srcdir}
20678   Install binaries:           ${sbindir}
20679   Install config files:       ${sysconfdir}
20680   Scripts directory:          ${scriptdir}
20681   Working directory:          ${working_dir}
20682   PID directory:              ${piddir}
20683   Subsys directory:           ${subsysdir}
20684   C Compiler:                 ${CC} ${CCVERSION}
20685   C++ Compiler:               ${CXX} ${CXXVERSION}
20686   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20687   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20688   Libraries:                  ${LIBS}
20689   Statically Linked Tools:    ${support_static_tools}
20690   Statically Linked FD:       ${support_static_fd}
20691   Statically Linked SD:       ${support_static_sd}
20692   Statically Linked DIR:      ${support_static_dir}
20693   Statically Linked CONS:     ${support_static_cons}
20694   Database type:              ${db_name}
20695   Database lib:               ${DB_LIBS}
20696
20697   Job Output Email:           ${job_email}
20698   Traceback Email:            ${dump_email}
20699   SMTP Host Address:          ${smtp_host}
20700
20701   Director Port:              ${dir_port}
20702   File daemon Port:           ${fd_port}
20703   Storage daemon Port:        ${sd_port}
20704
20705   Director User:              ${dir_user}
20706   Director Group:             ${dir_group}
20707   Storage Daemon User:        ${sd_user}
20708   Storage DaemonGroup:        ${sd_group}
20709   File Daemon User:           ${fd_user}
20710   File Daemon Group:          ${fd_group}
20711
20712   SQL binaries Directory      ${SQL_BINDIR}
20713
20714   Large file support:         $largefile_support
20715   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20716   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20717   TCP Wrappers support:       ${TCPW_MSG}
20718   ZLIB support:               ${have_zlib}
20719   enable-smartalloc:          ${support_smartalloc}
20720   enable-gnome:               ${support_gnome} ${gnome_version}
20721   enable-wx-console:          ${support_wx_console}
20722   enable-tray-monitor:        ${support_tray_monitor}
20723   client-only:                ${build_client_only}
20724   ACL support:                ${have_acl}
20725
20726   " > config.out
20727
20728 cat config.out
20729
20730 # old stuff
20731 # cweb support:               ${got_cweb} ${CWEB_SRC}
20732   # gmp support:                      ${got_gmp} ${GMP_SRC}